github.com/oinume/lekcije@v0.0.0-20231017100347-5b4c5eb6ab24/backend/infrastructure/dmm_eikaiwa/testdata/49393_files/7.5efe687b.chunk.js (about) 1 (this["webpackJsonp@biboglobal/eikaiwa-core-front"]=this["webpackJsonp@biboglobal/eikaiwa-core-front"]||[]).push([[7],{229:function(t,e,r){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function r(t){return u(t)?t:F(t)}function n(t){return a(t)?t:H(t)}function i(t){return s(t)?t:G(t)}function o(t){return u(t)&&!c(t)?t:Q(t)}function u(t){return!(!t||!t[l])}function a(t){return!(!t||!t[h])}function s(t){return!(!t||!t[p])}function c(t){return a(t)||s(t)}function f(t){return!(!t||!t[d])}e(n,r),e(i,r),e(o,r),r.isIterable=u,r.isKeyed=a,r.isIndexed=s,r.isAssociative=c,r.isOrdered=f,r.Keyed=n,r.Indexed=i,r.Set=o;var l="@@__IMMUTABLE_ITERABLE__@@",h="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",d="@@__IMMUTABLE_ORDERED__@@",v="delete",y=5,_=1<<y,m=_-1,b={},g={value:!1},w={value:!1};function E(t){return t.value=!1,t}function S(t){t&&(t.value=!0)}function O(){}function I(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function M(t){return void 0===t.size&&(t.size=t.__iterate(P)),t.size}function A(t,e){if("number"!==typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?M(t)+e:e}function P(){return!0}function j(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function x(t,e){return z(t,e,0)}function N(t,e){return z(t,e,e)}function z(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var D=0,R=1,T=2,k="function"===typeof Symbol&&Symbol.iterator,C="@@iterator",q=k||C;function B(t){this.next=t}function L(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function U(){return{value:void 0,done:!0}}function K(t){return!!J(t)}function V(t){return t&&"function"===typeof t.next}function W(t){var e=J(t);return e&&e.call(t)}function J(t){var e=t&&(k&&t[k]||t[C]);if("function"===typeof e)return e}function Y(t){return t&&"number"===typeof t.length}function F(t){return null===t||void 0===t?ut():u(t)?t.toSeq():ct(t)}function H(t){return null===t||void 0===t?ut().toKeyedSeq():u(t)?a(t)?t.toSeq():t.fromEntrySeq():at(t)}function G(t){return null===t||void 0===t?ut():u(t)?a(t)?t.entrySeq():t.toIndexedSeq():st(t)}function Q(t){return(null===t||void 0===t?ut():u(t)?a(t)?t.entrySeq():t:st(t)).toSetSeq()}B.prototype.toString=function(){return"[Iterator]"},B.KEYS=D,B.VALUES=R,B.ENTRIES=T,B.prototype.inspect=B.prototype.toSource=function(){return this.toString()},B.prototype[q]=function(){return this},e(F,r),F.of=function(){return F(arguments)},F.prototype.toSeq=function(){return this},F.prototype.toString=function(){return this.__toString("Seq {","}")},F.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},F.prototype.__iterate=function(t,e){return lt(this,t,e,!0)},F.prototype.__iterator=function(t,e){return ht(this,t,e,!0)},e(H,F),H.prototype.toKeyedSeq=function(){return this},e(G,F),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(t,e){return lt(this,t,e,!1)},G.prototype.__iterator=function(t,e){return ht(this,t,e,!1)},e(Q,F),Q.of=function(){return Q(arguments)},Q.prototype.toSetSeq=function(){return this},F.isSeq=ot,F.Keyed=H,F.Set=Q,F.Indexed=G;var X,$,Z,tt="@@__IMMUTABLE_SEQ__@@";function et(t){this._array=t,this.size=t.length}function rt(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function nt(t){this._iterable=t,this.size=t.length||t.size}function it(t){this._iterator=t,this._iteratorCache=[]}function ot(t){return!(!t||!t[tt])}function ut(){return X||(X=new et([]))}function at(t){var e=Array.isArray(t)?new et(t).fromEntrySeq():V(t)?new it(t).fromEntrySeq():K(t)?new nt(t).fromEntrySeq():"object"===typeof t?new rt(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function st(t){var e=ft(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ct(t){var e=ft(t)||"object"===typeof t&&new rt(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function ft(t){return Y(t)?new et(t):V(t)?new it(t):K(t)?new nt(t):void 0}function lt(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var a=i[r?o-u:u];if(!1===e(a[1],n?a[0]:u,t))return u+1}return u}return t.__iterateUncached(e,r)}function ht(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new B((function(){var t=i[r?o-u:u];return u++>o?U():L(e,n?t[0]:u-1,t[1])}))}return t.__iteratorUncached(e,r)}function pt(t,e){return e?dt(e,t,"",{"":t}):vt(t)}function dt(t,e,r,n){return Array.isArray(e)?t.call(n,r,G(e).map((function(r,n){return dt(t,r,n,e)}))):yt(e)?t.call(n,r,H(e).map((function(r,n){return dt(t,r,n,e)}))):e}function vt(t){return Array.isArray(t)?G(t).map(vt).toList():yt(t)?H(t).map(vt).toMap():t}function yt(t){return t&&(t.constructor===Object||void 0===t.constructor)}function _t(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"===typeof t.valueOf&&"function"===typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!("function"!==typeof t.equals||"function"!==typeof e.equals||!t.equals(e))}function mt(t,e){if(t===e)return!0;if(!u(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||s(t)!==s(e)||f(t)!==f(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!c(t);if(f(t)){var n=t.entries();return e.every((function(t,e){var i=n.next().value;return i&&_t(i[1],t)&&(r||_t(i[0],e))}))&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"===typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var l=!0,h=e.__iterate((function(e,n){if(r?!t.has(e):i?!_t(e,t.get(n,b)):!_t(t.get(n,b),e))return l=!1,!1}));return l&&t.size===h}function bt(t,e){if(!(this instanceof bt))return new bt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if($)return $;$=this}}function gt(t,e){if(!t)throw new Error(e)}function wt(t,e,r){if(!(this instanceof wt))return new wt(t,e,r);if(gt(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Z)return Z;Z=this}}function Et(){throw TypeError("Abstract")}function St(){}function Ot(){}function It(){}F.prototype[tt]=!0,e(et,G),et.prototype.get=function(t,e){return this.has(t)?this._array[A(this,t)]:e},et.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(!1===t(r[e?n-i:i],i,this))return i+1;return i},et.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new B((function(){return i>n?U():L(t,i,r[e?n-i++:i++])}))},e(rt,H),rt.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},rt.prototype.has=function(t){return this._object.hasOwnProperty(t)},rt.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var u=n[e?i-o:o];if(!1===t(r[u],u,this))return o+1}return o},rt.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new B((function(){var u=n[e?i-o:o];return o++>i?U():L(t,u,r[u])}))},rt.prototype[d]=!0,e(nt,G),nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=W(this._iterable),n=0;if(V(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=W(this._iterable);if(!V(r))return new B(U);var n=0;return new B((function(){var e=r.next();return e.done?e:L(t,n++,e.value)}))},e(it,G),it.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r,n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(r=n.next()).done;){var u=r.value;if(i[o]=u,!1===t(u,o++,this))break}return o},it.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new B((function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return L(t,i,n[i++])}))},e(bt,G),bt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},bt.prototype.get=function(t,e){return this.has(t)?this._value:e},bt.prototype.includes=function(t){return _t(this._value,t)},bt.prototype.slice=function(t,e){var r=this.size;return j(t,e,r)?this:new bt(this._value,N(e,r)-x(t,r))},bt.prototype.reverse=function(){return this},bt.prototype.indexOf=function(t){return _t(this._value,t)?0:-1},bt.prototype.lastIndexOf=function(t){return _t(this._value,t)?this.size:-1},bt.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(!1===t(this._value,r,this))return r+1;return r},bt.prototype.__iterator=function(t,e){var r=this,n=0;return new B((function(){return n<r.size?L(t,n++,r._value):U()}))},bt.prototype.equals=function(t){return t instanceof bt?_t(this._value,t._value):mt(t)},e(wt,G),wt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},wt.prototype.get=function(t,e){return this.has(t)?this._start+A(this,t)*this._step:e},wt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},wt.prototype.slice=function(t,e){return j(t,e,this.size)?this:(t=x(t,this.size),(e=N(e,this.size))<=t?new wt(0,0):new wt(this.get(t,this._end),this.get(e,this._end),this._step))},wt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},wt.prototype.lastIndexOf=function(t){return this.indexOf(t)},wt.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===t(i,o,this))return o+1;i+=e?-n:n}return o},wt.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new B((function(){var u=i;return i+=e?-n:n,o>r?U():L(t,o++,u)}))},wt.prototype.equals=function(t){return t instanceof wt?this._start===t._start&&this._end===t._end&&this._step===t._step:mt(this,t)},e(Et,r),e(St,Et),e(Ot,Et),e(It,Et),Et.Keyed=St,Et.Indexed=Ot,Et.Set=It;var Mt="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function At(t){return t>>>1&1073741824|3221225471&t}function Pt(t){if(!1===t||null===t||void 0===t)return 0;if("function"===typeof t.valueOf&&(!1===(t=t.valueOf())||null===t||void 0===t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){if(t!==t||t===1/0)return 0;var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)r^=t/=4294967295;return At(r)}if("string"===e)return t.length>Bt?jt(t):xt(t);if("function"===typeof t.hashCode)return t.hashCode();if("object"===e)return Nt(t);if("function"===typeof t.toString)return xt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function jt(t){var e=Kt[t];return void 0===e&&(e=xt(t),Ut===Lt&&(Ut=0,Kt={}),Ut++,Kt[t]=e),e}function xt(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return At(e)}function Nt(t){var e;if(kt&&void 0!==(e=Tt.get(t)))return e;if(void 0!==(e=t[qt]))return e;if(!Dt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[qt]))return e;if(void 0!==(e=Rt(t)))return e}if(e=++Ct,1073741824&Ct&&(Ct=0),kt)Tt.set(t,e);else{if(void 0!==zt&&!1===zt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Dt)Object.defineProperty(t,qt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[qt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[qt]=e}}return e}var zt=Object.isExtensible,Dt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function Rt(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}var Tt,kt="function"===typeof WeakMap;kt&&(Tt=new WeakMap);var Ct=0,qt="__immutablehash__";"function"===typeof Symbol&&(qt=Symbol(qt));var Bt=16,Lt=255,Ut=0,Kt={};function Vt(t){gt(t!==1/0,"Cannot perform this action with an infinite size.")}function Wt(t){return null===t||void 0===t?ie():Jt(t)&&!f(t)?t:ie().withMutations((function(e){var r=n(t);Vt(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}function Jt(t){return!(!t||!t[Ft])}e(Wt,St),Wt.of=function(){var e=t.call(arguments,0);return ie().withMutations((function(t){for(var r=0;r<e.length;r+=2){if(r+1>=e.length)throw new Error("Missing value for key: "+e[r]);t.set(e[r],e[r+1])}}))},Wt.prototype.toString=function(){return this.__toString("Map {","}")},Wt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Wt.prototype.set=function(t,e){return oe(this,t,e)},Wt.prototype.setIn=function(t,e){return this.updateIn(t,b,(function(){return e}))},Wt.prototype.remove=function(t){return oe(this,t,b)},Wt.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return b}))},Wt.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},Wt.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=ye(this,wr(t),e,r);return n===b?void 0:n},Wt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ie()},Wt.prototype.merge=function(){return he(this,void 0,arguments)},Wt.prototype.mergeWith=function(e){return he(this,e,t.call(arguments,1))},Wt.prototype.mergeIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,ie(),(function(t){return"function"===typeof t.merge?t.merge.apply(t,r):r[r.length-1]}))},Wt.prototype.mergeDeep=function(){return he(this,pe,arguments)},Wt.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return he(this,de(e),r)},Wt.prototype.mergeDeepIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,ie(),(function(t){return"function"===typeof t.mergeDeep?t.mergeDeep.apply(t,r):r[r.length-1]}))},Wt.prototype.sort=function(t){return Ke(fr(this,t))},Wt.prototype.sortBy=function(t,e){return Ke(fr(this,e,t))},Wt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Wt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new O)},Wt.prototype.asImmutable=function(){return this.__ensureOwner()},Wt.prototype.wasAltered=function(){return this.__altered},Wt.prototype.__iterator=function(t,e){return new te(this,t,e)},Wt.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate((function(e){return n++,t(e[1],e[0],r)}),e),n},Wt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?ne(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Wt.isMap=Jt;var Yt,Ft="@@__IMMUTABLE_MAP__@@",Ht=Wt.prototype;function Gt(t,e){this.ownerID=t,this.entries=e}function Qt(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function Xt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function $t(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function Zt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function te(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&re(t._root)}function ee(t,e){return L(t,e[0],e[1])}function re(t,e){return{node:t,index:0,__prev:e}}function ne(t,e,r,n){var i=Object.create(Ht);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function ie(){return Yt||(Yt=ne(0))}function oe(t,e,r){var n,i;if(t._root){var o=E(g),u=E(w);if(n=ue(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===b?-1:1:0)}else{if(r===b)return t;i=1,n=new Gt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?ne(i,n):ie()}function ue(t,e,r,n,i,o,u,a){return t?t.update(e,r,n,i,o,u,a):o===b?t:(S(a),S(u),new Zt(e,n,[i,o]))}function ae(t){return t.constructor===Zt||t.constructor===$t}function se(t,e,r,n,i){if(t.keyHash===n)return new $t(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&m,a=(0===r?n:n>>>r)&m;return new Qt(e,1<<u|1<<a,u===a?[se(t,e,r+y,n,i)]:(o=new Zt(e,n,i),u<a?[t,o]:[o,t]))}function ce(t,e,r,n){t||(t=new O);for(var i=new Zt(t,Pt(r),[r,n]),o=0;o<e.length;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}function fe(t,e,r,n){for(var i=0,o=0,u=new Array(r),a=0,s=1,c=e.length;a<c;a++,s<<=1){var f=e[a];void 0!==f&&a!==n&&(i|=s,u[o++]=f)}return new Qt(t,i,u)}function le(t,e,r,n,i){for(var o=0,u=new Array(_),a=0;0!==r;a++,r>>>=1)u[a]=1&r?e[o++]:void 0;return u[n]=i,new Xt(t,o+1,u)}function he(t,e,r){for(var i=[],o=0;o<r.length;o++){var a=r[o],s=n(a);u(a)||(s=s.map((function(t){return pt(t)}))),i.push(s)}return ve(t,e,i)}function pe(t,e,r){return t&&t.mergeDeep&&u(e)?t.mergeDeep(e):_t(t,e)?t:e}function de(t){return function(e,r,n){if(e&&e.mergeDeepWith&&u(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return _t(e,i)?e:i}}function ve(t,e,r){return 0===(r=r.filter((function(t){return 0!==t.size}))).length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations((function(t){for(var n=e?function(r,n){t.update(n,b,(function(t){return t===b?r:e(t,r,n)}))}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)})):t.constructor(r[0])}function ye(t,e,r,n){var i=t===b,o=e.next();if(o.done){var u=i?r:t,a=n(u);return a===u?t:a}gt(i||t&&t.set,"invalid keyPath");var s=o.value,c=i?b:t.get(s,b),f=ye(c,e,r,n);return f===c?t:f===b?t.remove(s):(i?ie():t).set(s,f)}function _e(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function me(t,e,r,n){var i=n?t:I(t);return i[e]=r,i}function be(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),u=0,a=0;a<i;a++)a===e?(o[a]=r,u=-1):o[a]=t[a+u];return o}function ge(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}Ht[Ft]=!0,Ht[v]=Ht.remove,Ht.removeIn=Ht.deleteIn,Gt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(_t(r,i[o][0]))return i[o][1];return n},Gt.prototype.update=function(t,e,r,n,i,o,u){for(var a=i===b,s=this.entries,c=0,f=s.length;c<f&&!_t(n,s[c][0]);c++);var l=c<f;if(l?s[c][1]===i:a)return this;if(S(u),(a||!l)&&S(o),!a||1!==s.length){if(!l&&!a&&s.length>=we)return ce(t,s,n,i);var h=t&&t===this.ownerID,p=h?s:I(s);return l?a?c===f-1?p.pop():p[c]=p.pop():p[c]=[n,i]:p.push([n,i]),h?(this.entries=p,this):new Gt(t,p)}},Qt.prototype.get=function(t,e,r,n){void 0===e&&(e=Pt(r));var i=1<<((0===t?e:e>>>t)&m),o=this.bitmap;return 0===(o&i)?n:this.nodes[_e(o&i-1)].get(t+y,e,r,n)},Qt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=Pt(n));var a=(0===e?r:r>>>e)&m,s=1<<a,c=this.bitmap,f=0!==(c&s);if(!f&&i===b)return this;var l=_e(c&s-1),h=this.nodes,p=f?h[l]:void 0,d=ue(p,t,e+y,r,n,i,o,u);if(d===p)return this;if(!f&&d&&h.length>=Ee)return le(t,h,c,a,d);if(f&&!d&&2===h.length&&ae(h[1^l]))return h[1^l];if(f&&d&&1===h.length&&ae(d))return d;var v=t&&t===this.ownerID,_=f?d?c:c^s:c|s,g=f?d?me(h,l,d,v):ge(h,l,v):be(h,l,d,v);return v?(this.bitmap=_,this.nodes=g,this):new Qt(t,_,g)},Xt.prototype.get=function(t,e,r,n){void 0===e&&(e=Pt(r));var i=(0===t?e:e>>>t)&m,o=this.nodes[i];return o?o.get(t+y,e,r,n):n},Xt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=Pt(n));var a=(0===e?r:r>>>e)&m,s=i===b,c=this.nodes,f=c[a];if(s&&!f)return this;var l=ue(f,t,e+y,r,n,i,o,u);if(l===f)return this;var h=this.count;if(f){if(!l&&--h<Se)return fe(t,c,h,a)}else h++;var p=t&&t===this.ownerID,d=me(c,a,l,p);return p?(this.count=h,this.nodes=d,this):new Xt(t,h,d)},$t.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(_t(r,i[o][0]))return i[o][1];return n},$t.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=Pt(n));var a=i===b;if(r!==this.keyHash)return a?this:(S(u),S(o),se(this,t,e,r,[n,i]));for(var s=this.entries,c=0,f=s.length;c<f&&!_t(n,s[c][0]);c++);var l=c<f;if(l?s[c][1]===i:a)return this;if(S(u),(a||!l)&&S(o),a&&2===f)return new Zt(t,this.keyHash,s[1^c]);var h=t&&t===this.ownerID,p=h?s:I(s);return l?a?c===f-1?p.pop():p[c]=p.pop():p[c]=[n,i]:p.push([n,i]),h?(this.entries=p,this):new $t(t,this.keyHash,p)},Zt.prototype.get=function(t,e,r,n){return _t(r,this.entry[0])?this.entry[1]:n},Zt.prototype.update=function(t,e,r,n,i,o,u){var a=i===b,s=_t(n,this.entry[0]);return(s?i===this.entry[1]:a)?this:(S(u),a?void S(o):s?t&&t===this.ownerID?(this.entry[1]=i,this):new Zt(t,this.keyHash,[n,i]):(S(o),se(this,t,e,Pt(n),[n,i])))},Gt.prototype.iterate=$t.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},Qt.prototype.iterate=Xt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},Zt.prototype.iterate=function(t,e){return t(this.entry)},e(te,B),te.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return ee(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return ee(t,n.entries[this._reverse?r-i:i])}else if(i<=(r=n.nodes.length-1)){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return ee(t,o.entry);e=this._stack=re(o,e)}continue}e=this._stack=this._stack.__prev}return U()};var we=_/4,Ee=_/2,Se=_/4;function Oe(t){var e=Re();if(null===t||void 0===t)return e;if(Ie(t))return t;var r=i(t),n=r.size;return 0===n?e:(Vt(n),n>0&&n<_?De(0,n,y,null,new Pe(r.toArray())):e.withMutations((function(t){t.setSize(n),r.forEach((function(e,r){return t.set(r,e)}))})))}function Ie(t){return!(!t||!t[Me])}e(Oe,Ot),Oe.of=function(){return this(arguments)},Oe.prototype.toString=function(){return this.__toString("List [","]")},Oe.prototype.get=function(t,e){if((t=A(this,t))>=0&&t<this.size){var r=qe(this,t+=this._origin);return r&&r.array[t&m]}return e},Oe.prototype.set=function(t,e){return Te(this,t,e)},Oe.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Oe.prototype.insert=function(t,e){return this.splice(t,0,e)},Oe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Re()},Oe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(r){Be(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])}))},Oe.prototype.pop=function(){return Be(this,0,-1)},Oe.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){Be(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])}))},Oe.prototype.shift=function(){return Be(this,1)},Oe.prototype.merge=function(){return Le(this,void 0,arguments)},Oe.prototype.mergeWith=function(e){return Le(this,e,t.call(arguments,1))},Oe.prototype.mergeDeep=function(){return Le(this,pe,arguments)},Oe.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return Le(this,de(e),r)},Oe.prototype.setSize=function(t){return Be(this,0,t)},Oe.prototype.slice=function(t,e){var r=this.size;return j(t,e,r)?this:Be(this,x(t,r),N(e,r))},Oe.prototype.__iterator=function(t,e){var r=0,n=ze(this,e);return new B((function(){var e=n();return e===Ne?U():L(t,r++,e)}))},Oe.prototype.__iterate=function(t,e){for(var r,n=0,i=ze(this,e);(r=i())!==Ne&&!1!==t(r,n++,this););return n},Oe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?De(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},Oe.isList=Ie;var Me="@@__IMMUTABLE_LIST__@@",Ae=Oe.prototype;function Pe(t,e){this.array=t,this.ownerID=e}Ae[Me]=!0,Ae[v]=Ae.remove,Ae.setIn=Ht.setIn,Ae.deleteIn=Ae.removeIn=Ht.removeIn,Ae.update=Ht.update,Ae.updateIn=Ht.updateIn,Ae.mergeIn=Ht.mergeIn,Ae.mergeDeepIn=Ht.mergeDeepIn,Ae.withMutations=Ht.withMutations,Ae.asMutable=Ht.asMutable,Ae.asImmutable=Ht.asImmutable,Ae.wasAltered=Ht.wasAltered,Pe.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&m;if(n>=this.array.length)return new Pe([],t);var i,o=0===n;if(e>0){var u=this.array[n];if((i=u&&u.removeBefore(t,e-y,r))===u&&o)return this}if(o&&!i)return this;var a=Ce(this,t);if(!o)for(var s=0;s<n;s++)a.array[s]=void 0;return i&&(a.array[n]=i),a},Pe.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&m;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-y,r))===o&&i===this.array.length-1)return this}var u=Ce(this,t);return u.array.splice(i+1),n&&(u.array[i]=n),u};var je,xe,Ne={};function ze(t,e){var r=t._origin,n=t._capacity,i=Ue(n),o=t._tail;return u(t._root,t._level,0);function u(t,e,r){return 0===e?a(t,r):s(t,e,r)}function a(t,u){var a=u===i?o&&o.array:t&&t.array,s=u>r?0:r-u,c=n-u;return c>_&&(c=_),function(){if(s===c)return Ne;var t=e?--c:s++;return a&&a[t]}}function s(t,i,o){var a,s=t&&t.array,c=o>r?0:r-o>>i,f=1+(n-o>>i);return f>_&&(f=_),function(){for(;;){if(a){var t=a();if(t!==Ne)return t;a=null}if(c===f)return Ne;var r=e?--f:c++;a=u(s&&s[r],i-y,o+(r<<i))}}}}function De(t,e,r,n,i,o,u){var a=Object.create(Ae);return a.size=e-t,a._origin=t,a._capacity=e,a._level=r,a._root=n,a._tail=i,a.__ownerID=o,a.__hash=u,a.__altered=!1,a}function Re(){return je||(je=De(0,0,y))}function Te(t,e,r){if((e=A(t,e))!==e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?Be(t,e).set(0,r):Be(t,0,e+1).set(e,r)}));e+=t._origin;var n=t._tail,i=t._root,o=E(w);return e>=Ue(t._capacity)?n=ke(n,t.__ownerID,0,e,r,o):i=ke(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):De(t._origin,t._capacity,t._level,i,n):t}function ke(t,e,r,n,i,o){var u,a=n>>>r&m,s=t&&a<t.array.length;if(!s&&void 0===i)return t;if(r>0){var c=t&&t.array[a],f=ke(c,e,r-y,n,i,o);return f===c?t:((u=Ce(t,e)).array[a]=f,u)}return s&&t.array[a]===i?t:(S(o),u=Ce(t,e),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function Ce(t,e){return e&&t&&e===t.ownerID?t:new Pe(t?t.array.slice():[],e)}function qe(t,e){if(e>=Ue(t._capacity))return t._tail;if(e<1<<t._level+y){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&m],n-=y;return r}}function Be(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new O,i=t._origin,o=t._capacity,u=i+e,a=void 0===r?o:r<0?o+r:i+r;if(u===i&&a===o)return t;if(u>=a)return t.clear();for(var s=t._level,c=t._root,f=0;u+f<0;)c=new Pe(c&&c.array.length?[void 0,c]:[],n),f+=1<<(s+=y);f&&(u+=f,i+=f,a+=f,o+=f);for(var l=Ue(o),h=Ue(a);h>=1<<s+y;)c=new Pe(c&&c.array.length?[c]:[],n),s+=y;var p=t._tail,d=h<l?qe(t,a-1):h>l?new Pe([],n):p;if(p&&h>l&&u<o&&p.array.length){for(var v=c=Ce(c,n),_=s;_>y;_-=y){var b=l>>>_&m;v=v.array[b]=Ce(v.array[b],n)}v.array[l>>>y&m]=p}if(a<o&&(d=d&&d.removeAfter(n,0,a)),u>=h)u-=h,a-=h,s=y,c=null,d=d&&d.removeBefore(n,0,u);else if(u>i||h<l){for(f=0;c;){var g=u>>>s&m;if(g!==h>>>s&m)break;g&&(f+=(1<<s)*g),s-=y,c=c.array[g]}c&&u>i&&(c=c.removeBefore(n,s,u-f)),c&&h<l&&(c=c.removeAfter(n,s,h-f)),f&&(u-=f,a-=f)}return t.__ownerID?(t.size=a-u,t._origin=u,t._capacity=a,t._level=s,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):De(u,a,s,c,d)}function Le(t,e,r){for(var n=[],o=0,a=0;a<r.length;a++){var s=r[a],c=i(s);c.size>o&&(o=c.size),u(s)||(c=c.map((function(t){return pt(t)}))),n.push(c)}return o>t.size&&(t=t.setSize(o)),ve(t,e,n)}function Ue(t){return t<_?0:t-1>>>y<<y}function Ke(t){return null===t||void 0===t?Je():Ve(t)?t:Je().withMutations((function(e){var r=n(t);Vt(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}function Ve(t){return Jt(t)&&f(t)}function We(t,e,r,n){var i=Object.create(Ke.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function Je(){return xe||(xe=We(ie(),Re()))}function Ye(t,e,r){var n,i,o=t._map,u=t._list,a=o.get(e),s=void 0!==a;if(r===b){if(!s)return t;u.size>=_&&u.size>=2*o.size?(n=(i=u.filter((function(t,e){return void 0!==t&&a!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=a===u.size-1?u.pop():u.set(a,void 0))}else if(s){if(r===u.get(a)[1])return t;n=o,i=u.set(a,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):We(n,i)}function Fe(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function He(t){this._iter=t,this.size=t.size}function Ge(t){this._iter=t,this.size=t.size}function Qe(t){this._iter=t,this.size=t.size}function Xe(t){var e=mr(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=br,e.__iterateUncached=function(e,r){var n=this;return t.__iterate((function(t,r){return!1!==e(r,t,n)}),r)},e.__iteratorUncached=function(e,r){if(e===T){var n=t.__iterator(e,r);return new B((function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(e===R?D:R,r)},e}function $e(t,e,r){var n=mr(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,b);return o===b?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate((function(t,i,u){return!1!==n(e.call(r,t,i,u),i,o)}),i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(T,i);return new B((function(){var i=o.next();if(i.done)return i;var u=i.value,a=u[0];return L(n,a,e.call(r,u[1],a,t),i)}))},n}function Ze(t,e){var r=mr(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=Xe(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=br,r.__iterate=function(e,r){var n=this;return t.__iterate((function(t,r){return e(t,r,n)}),!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function tr(t,e,r,n){var i=mr(t);return n&&(i.has=function(n){var i=t.get(n,b);return i!==b&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,b);return o!==b&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,a=0;return t.__iterate((function(t,o,s){if(e.call(r,t,o,s))return a++,i(t,n?o:a-1,u)}),o),a},i.__iteratorUncached=function(i,o){var u=t.__iterator(T,o),a=0;return new B((function(){for(;;){var o=u.next();if(o.done)return o;var s=o.value,c=s[0],f=s[1];if(e.call(r,f,c,t))return L(i,n?c:a++,f,o)}}))},i}function er(t,e,r){var n=Wt().asMutable();return t.__iterate((function(i,o){n.update(e.call(r,i,o,t),0,(function(t){return t+1}))})),n.asImmutable()}function rr(t,e,r){var n=a(t),i=(f(t)?Ke():Wt()).asMutable();t.__iterate((function(o,u){i.update(e.call(r,o,u,t),(function(t){return(t=t||[]).push(n?[u,o]:o),t}))}));var o=_r(t);return i.map((function(e){return dr(t,o(e))}))}function nr(t,e,r,n){var i=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r===1/0?r=i:r|=0),j(e,r,i))return t;var o=x(e,i),u=N(r,i);if(o!==o||u!==u)return nr(t.toSeq().cacheResult(),e,r,n);var a,s=u-o;s===s&&(a=s<0?0:s);var c=mr(t);return c.size=0===a?a:t.size&&a||void 0,!n&&ot(t)&&a>=0&&(c.get=function(e,r){return(e=A(this,e))>=0&&e<a?t.get(e+o,r):r}),c.__iterateUncached=function(e,r){var i=this;if(0===a)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,s=!0,c=0;return t.__iterate((function(t,r){if(!s||!(s=u++<o))return c++,!1!==e(t,n?r:c-1,i)&&c!==a})),c},c.__iteratorUncached=function(e,r){if(0!==a&&r)return this.cacheResult().__iterator(e,r);var i=0!==a&&t.__iterator(e,r),u=0,s=0;return new B((function(){for(;u++<o;)i.next();if(++s>a)return U();var t=i.next();return n||e===R?t:L(e,s-1,e===D?void 0:t.value[1],t)}))},c}function ir(t,e,r){var n=mr(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate((function(t,i,a){return e.call(r,t,i,a)&&++u&&n(t,i,o)})),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(T,i),a=!0;return new B((function(){if(!a)return U();var t=u.next();if(t.done)return t;var i=t.value,s=i[0],c=i[1];return e.call(r,c,s,o)?n===T?t:L(n,s,c,t):(a=!1,U())}))},n}function or(t,e,r,n){var i=mr(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,s=0;return t.__iterate((function(t,o,c){if(!a||!(a=e.call(r,t,o,c)))return s++,i(t,n?o:s-1,u)})),s},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var a=t.__iterator(T,o),s=!0,c=0;return new B((function(){var t,o,f;do{if((t=a.next()).done)return n||i===R?t:L(i,c++,i===D?void 0:t.value[1],t);var l=t.value;o=l[0],f=l[1],s&&(s=e.call(r,f,o,u))}while(s);return i===T?t:L(i,o,f,t)}))},i}function ur(t,e){var r=a(t),i=[t].concat(e).map((function(t){return u(t)?r&&(t=n(t)):t=r?at(t):st(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||r&&a(o)||s(t)&&s(o))return o}var c=new et(i);return r?c=c.toKeyedSeq():s(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}}),0),c}function ar(t,e,r){var n=mr(t);return n.__iterateUncached=function(n,i){var o=0,a=!1;function s(t,c){var f=this;t.__iterate((function(t,i){return(!e||c<e)&&u(t)?s(t,c+1):!1===n(t,r?i:o++,f)&&(a=!0),!a}),i)}return s(t,0),o},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),a=[],s=0;return new B((function(){for(;o;){var t=o.next();if(!1===t.done){var c=t.value;if(n===T&&(c=c[1]),e&&!(a.length<e)||!u(c))return r?t:L(n,s++,c,t);a.push(o),o=c.__iterator(n,i)}else o=a.pop()}return U()}))},n}function sr(t,e,r){var n=_r(t);return t.toSeq().map((function(i,o){return n(e.call(r,i,o,t))})).flatten(!0)}function cr(t,e){var r=mr(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate((function(t,n){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)}),n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(R,n),u=0;return new B((function(){return(!i||u%2)&&(i=o.next()).done?i:u%2?L(r,u++,e):L(r,u++,i.value,i)}))},r}function fr(t,e,r){e||(e=gr);var n=a(t),i=0,o=t.toSeq().map((function(e,n){return[n,e,i++,r?r(e,n,t):e]})).toArray();return o.sort((function(t,r){return e(t[3],r[3])||t[2]-r[2]})).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?H(o):s(t)?G(o):Q(o)}function lr(t,e,r){if(e||(e=gr),r){var n=t.toSeq().map((function(e,n){return[e,r(e,n,t)]})).reduce((function(t,r){return hr(e,t[1],r[1])?r:t}));return n&&n[0]}return t.reduce((function(t,r){return hr(e,t,r)?r:t}))}function hr(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(void 0===r||null===r||r!==r)||n>0}function pr(t,e,n){var i=mr(t);return i.size=new et(n).map((function(t){return t.size})).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(R,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=n.map((function(t){return t=r(t),W(i?t.reverse():t)})),u=0,a=!1;return new B((function(){var r;return a||(r=o.map((function(t){return t.next()})),a=r.some((function(t){return t.done}))),a?U():L(t,u++,e.apply(null,r.map((function(t){return t.value}))))}))},i}function dr(t,e){return ot(t)?e:t.constructor(e)}function vr(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function yr(t){return Vt(t.size),M(t)}function _r(t){return a(t)?n:s(t)?i:o}function mr(t){return Object.create((a(t)?H:s(t)?G:Q).prototype)}function br(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):F.prototype.cacheResult.call(this)}function gr(t,e){return t>e?1:t<e?-1:0}function wr(t){var e=W(t);if(!e){if(!Y(t))throw new TypeError("Expected iterable or array-like: "+t);e=W(r(t))}return e}function Er(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);Mr(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=Wt(o)},i=n.prototype=Object.create(Sr);return i.constructor=n,n}e(Ke,Wt),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ke.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Je()},Ke.prototype.set=function(t,e){return Ye(this,t,e)},Ke.prototype.remove=function(t){return Ye(this,t,b)},Ke.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ke.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],r)}),e)},Ke.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Ke.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?We(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},Ke.isOrderedMap=Ve,Ke.prototype[d]=!0,Ke.prototype[v]=Ke.prototype.remove,e(Fe,H),Fe.prototype.get=function(t,e){return this._iter.get(t,e)},Fe.prototype.has=function(t){return this._iter.has(t)},Fe.prototype.valueSeq=function(){return this._iter.valueSeq()},Fe.prototype.reverse=function(){var t=this,e=Ze(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Fe.prototype.map=function(t,e){var r=this,n=$e(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},Fe.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?yr(this):0,function(i){return t(i,e?--r:r++,n)}),e)},Fe.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(R,e),n=e?yr(this):0;return new B((function(){var i=r.next();return i.done?i:L(t,e?--n:n++,i.value,i)}))},Fe.prototype[d]=!0,e(He,G),He.prototype.includes=function(t){return this._iter.includes(t)},He.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate((function(e){return t(e,n++,r)}),e)},He.prototype.__iterator=function(t,e){var r=this._iter.__iterator(R,e),n=0;return new B((function(){var e=r.next();return e.done?e:L(t,n++,e.value,e)}))},e(Ge,Q),Ge.prototype.has=function(t){return this._iter.includes(t)},Ge.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){return t(e,e,r)}),e)},Ge.prototype.__iterator=function(t,e){var r=this._iter.__iterator(R,e);return new B((function(){var e=r.next();return e.done?e:L(t,e.value,e.value,e)}))},e(Qe,H),Qe.prototype.entrySeq=function(){return this._iter.toSeq()},Qe.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){if(e){vr(e);var n=u(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}}),e)},Qe.prototype.__iterator=function(t,e){var r=this._iter.__iterator(R,e);return new B((function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){vr(n);var i=u(n);return L(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}}))},He.prototype.cacheResult=Fe.prototype.cacheResult=Ge.prototype.cacheResult=Qe.prototype.cacheResult=br,e(Er,St),Er.prototype.toString=function(){return this.__toString(Ir(this)+" {","}")},Er.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Er.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},Er.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Or(this,ie()))},Er.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Ir(this));if(this._map&&!this._map.has(t)&&e===this._defaultValues[t])return this;var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:Or(this,r)},Er.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:Or(this,e)},Er.prototype.wasAltered=function(){return this._map.wasAltered()},Er.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map((function(t,e){return r.get(e)})).__iterator(t,e)},Er.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map((function(t,e){return r.get(e)})).__iterate(t,e)},Er.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Or(this,e,t):(this.__ownerID=t,this._map=e,this)};var Sr=Er.prototype;function Or(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function Ir(t){return t._name||t.constructor.name||"Record"}function Mr(t,e){try{e.forEach(Ar.bind(void 0,t))}catch(r){}}function Ar(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){gt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Pr(t){return null===t||void 0===t?Tr():jr(t)&&!f(t)?t:Tr().withMutations((function(e){var r=o(t);Vt(r.size),r.forEach((function(t){return e.add(t)}))}))}function jr(t){return!(!t||!t[Nr])}Sr[v]=Sr.remove,Sr.deleteIn=Sr.removeIn=Ht.removeIn,Sr.merge=Ht.merge,Sr.mergeWith=Ht.mergeWith,Sr.mergeIn=Ht.mergeIn,Sr.mergeDeep=Ht.mergeDeep,Sr.mergeDeepWith=Ht.mergeDeepWith,Sr.mergeDeepIn=Ht.mergeDeepIn,Sr.setIn=Ht.setIn,Sr.update=Ht.update,Sr.updateIn=Ht.updateIn,Sr.withMutations=Ht.withMutations,Sr.asMutable=Ht.asMutable,Sr.asImmutable=Ht.asImmutable,e(Pr,It),Pr.of=function(){return this(arguments)},Pr.fromKeys=function(t){return this(n(t).keySeq())},Pr.prototype.toString=function(){return this.__toString("Set {","}")},Pr.prototype.has=function(t){return this._map.has(t)},Pr.prototype.add=function(t){return Dr(this,this._map.set(t,!0))},Pr.prototype.remove=function(t){return Dr(this,this._map.remove(t))},Pr.prototype.clear=function(){return Dr(this,this._map.clear())},Pr.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(t){for(var r=0;r<e.length;r++)o(e[r]).forEach((function(e){return t.add(e)}))})):this.constructor(e[0])},Pr.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var r=this;return this.withMutations((function(t){r.forEach((function(r){e.every((function(t){return t.includes(r)}))||t.remove(r)}))}))},Pr.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return o(t)}));var r=this;return this.withMutations((function(t){r.forEach((function(r){e.some((function(t){return t.includes(r)}))&&t.remove(r)}))}))},Pr.prototype.merge=function(){return this.union.apply(this,arguments)},Pr.prototype.mergeWith=function(e){var r=t.call(arguments,1);return this.union.apply(this,r)},Pr.prototype.sort=function(t){return kr(fr(this,t))},Pr.prototype.sortBy=function(t,e){return kr(fr(this,e,t))},Pr.prototype.wasAltered=function(){return this._map.wasAltered()},Pr.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate((function(e,n){return t(n,n,r)}),e)},Pr.prototype.__iterator=function(t,e){return this._map.map((function(t,e){return e})).__iterator(t,e)},Pr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Pr.isSet=jr;var xr,Nr="@@__IMMUTABLE_SET__@@",zr=Pr.prototype;function Dr(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Rr(t,e){var r=Object.create(zr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Tr(){return xr||(xr=Rr(ie()))}function kr(t){return null===t||void 0===t?Ur():Cr(t)?t:Ur().withMutations((function(e){var r=o(t);Vt(r.size),r.forEach((function(t){return e.add(t)}))}))}function Cr(t){return jr(t)&&f(t)}zr[Nr]=!0,zr[v]=zr.remove,zr.mergeDeep=zr.merge,zr.mergeDeepWith=zr.mergeWith,zr.withMutations=Ht.withMutations,zr.asMutable=Ht.asMutable,zr.asImmutable=Ht.asImmutable,zr.__empty=Tr,zr.__make=Rr,e(kr,Pr),kr.of=function(){return this(arguments)},kr.fromKeys=function(t){return this(n(t).keySeq())},kr.prototype.toString=function(){return this.__toString("OrderedSet {","}")},kr.isOrderedSet=Cr;var qr,Br=kr.prototype;function Lr(t,e){var r=Object.create(Br);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Ur(){return qr||(qr=Lr(Je()))}function Kr(t){return null===t||void 0===t?Hr():Vr(t)?t:Hr().unshiftAll(t)}function Vr(t){return!(!t||!t[Jr])}Br[d]=!0,Br.__empty=Ur,Br.__make=Lr,e(Kr,Ot),Kr.of=function(){return this(arguments)},Kr.prototype.toString=function(){return this.__toString("Stack [","]")},Kr.prototype.get=function(t,e){var r=this._head;for(t=A(this,t);r&&t--;)r=r.next;return r?r.value:e},Kr.prototype.peek=function(){return this._head&&this._head.value},Kr.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Fr(t,e)},Kr.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;Vt(t.size);var e=this.size,r=this._head;return t.reverse().forEach((function(t){e++,r={value:t,next:r}})),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Fr(e,r)},Kr.prototype.pop=function(){return this.slice(1)},Kr.prototype.unshift=function(){return this.push.apply(this,arguments)},Kr.prototype.unshiftAll=function(t){return this.pushAll(t)},Kr.prototype.shift=function(){return this.pop.apply(this,arguments)},Kr.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Hr()},Kr.prototype.slice=function(t,e){if(j(t,e,this.size))return this;var r=x(t,this.size);if(N(e,this.size)!==this.size)return Ot.prototype.slice.call(this,t,e);for(var n=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=n,this._head=i,this.__hash=void 0,this.__altered=!0,this):Fr(n,i)},Kr.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Fr(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Kr.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&!1!==t(n.value,r++,this);)n=n.next;return r},Kr.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new B((function(){if(n){var e=n.value;return n=n.next,L(t,r++,e)}return U()}))},Kr.isStack=Vr;var Wr,Jr="@@__IMMUTABLE_STACK__@@",Yr=Kr.prototype;function Fr(t,e,r,n){var i=Object.create(Yr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Hr(){return Wr||(Wr=Fr(0))}function Gr(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}Yr[Jr]=!0,Yr.withMutations=Ht.withMutations,Yr.asMutable=Ht.asMutable,Yr.asImmutable=Ht.asImmutable,Yr.wasAltered=Ht.wasAltered,r.Iterator=B,Gr(r,{toArray:function(){Vt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,r){t[r]=e})),t},toIndexedSeq:function(){return new He(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"===typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"===typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new Fe(this,!0)},toMap:function(){return Wt(this.toKeyedSeq())},toObject:function(){Vt(this.size);var t={};return this.__iterate((function(e,r){t[r]=e})),t},toOrderedMap:function(){return Ke(this.toKeyedSeq())},toOrderedSet:function(){return kr(a(this)?this.valueSeq():this)},toSet:function(){return Pr(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ge(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Kr(a(this)?this.valueSeq():this)},toList:function(){return Oe(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return dr(this,ur(this,t.call(arguments,0)))},includes:function(t){return this.some((function(e){return _t(e,t)}))},entries:function(){return this.__iterator(T)},every:function(t,e){Vt(this.size);var r=!0;return this.__iterate((function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1})),r},filter:function(t,e){return dr(this,tr(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return Vt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Vt(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate((function(n){r?r=!1:e+=t,e+=null!==n&&void 0!==n?n.toString():""})),e},keys:function(){return this.__iterator(D)},map:function(t,e){return dr(this,$e(this,t,e))},reduce:function(t,e,r){var n,i;return Vt(this.size),arguments.length<2?i=!0:n=e,this.__iterate((function(e,o,u){i?(i=!1,n=e):n=t.call(r,n,e,o,u)})),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return dr(this,Ze(this,!0))},slice:function(t,e){return dr(this,nr(this,t,e,!0))},some:function(t,e){return!this.every(tn(t),e)},sort:function(t){return dr(this,fr(this,t))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return M(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return er(this,t,e)},equals:function(t){return mt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new et(t._cache);var e=t.toSeq().map(Zr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(tn(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate((function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1})),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(P)},flatMap:function(t,e){return dr(this,sr(this,t,e))},flatten:function(t){return dr(this,ar(this,t,!0))},fromEntrySeq:function(){return new Qe(this)},get:function(t,e){return this.find((function(e,r){return _t(r,t)}),void 0,e)},getIn:function(t,e){for(var r,n=this,i=wr(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,b):b)===b)return e}return n},groupBy:function(t,e){return rr(this,t,e)},has:function(t){return this.get(t,b)!==b},hasIn:function(t){return this.getIn(t,b)!==b},isSubset:function(t){return t="function"===typeof t.includes?t:r(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"===typeof t.isSubset?t:r(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return _t(e,t)}))},keySeq:function(){return this.toSeq().map($r).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return lr(this,t)},maxBy:function(t,e){return lr(this,e,t)},min:function(t){return lr(this,t?en(t):on)},minBy:function(t,e){return lr(this,e?en(e):on,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return dr(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return dr(this,or(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(tn(t),e)},sortBy:function(t,e){return dr(this,fr(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return dr(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return dr(this,ir(this,t,e))},takeUntil:function(t,e){return this.takeWhile(tn(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=un(this))}});var Qr=r.prototype;Qr[l]=!0,Qr[q]=Qr.values,Qr.__toJS=Qr.toArray,Qr.__toStringMapper=rn,Qr.inspect=Qr.toSource=function(){return this.toString()},Qr.chain=Qr.flatMap,Qr.contains=Qr.includes,Gr(n,{flip:function(){return dr(this,Xe(this))},mapEntries:function(t,e){var r=this,n=0;return dr(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],n++,r)})).fromEntrySeq())},mapKeys:function(t,e){var r=this;return dr(this,this.toSeq().flip().map((function(n,i){return t.call(e,n,i,r)})).flip())}});var Xr=n.prototype;function $r(t,e){return e}function Zr(t,e){return[e,t]}function tn(t){return function(){return!t.apply(this,arguments)}}function en(t){return function(){return-t.apply(this,arguments)}}function rn(t){return"string"===typeof t?JSON.stringify(t):String(t)}function nn(){return I(arguments)}function on(t,e){return t<e?1:t>e?-1:0}function un(t){if(t.size===1/0)return 0;var e=f(t),r=a(t),n=e?1:0;return an(t.__iterate(r?e?function(t,e){n=31*n+sn(Pt(t),Pt(e))|0}:function(t,e){n=n+sn(Pt(t),Pt(e))|0}:e?function(t){n=31*n+Pt(t)|0}:function(t){n=n+Pt(t)|0}),n)}function an(t,e){return e=Mt(e,3432918353),e=Mt(e<<15|e>>>-15,461845907),e=Mt(e<<13|e>>>-13,5),e=Mt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=At((e=Mt(e^e>>>13,3266489909))^e>>>16)}function sn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return Xr[h]=!0,Xr[q]=Qr.entries,Xr.__toJS=Qr.toObject,Xr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+rn(t)},Gr(i,{toKeyedSeq:function(){return new Fe(this,!1)},filter:function(t,e){return dr(this,tr(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return dr(this,Ze(this,!1))},slice:function(t,e){return dr(this,nr(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=x(t,t<0?this.count():this.size);var n=this.slice(0,t);return dr(this,1===r?n:n.concat(I(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(t){return dr(this,ar(this,t,!1))},get:function(t,e){return(t=A(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,r){return r===t}),void 0,e)},has:function(t){return(t=A(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return dr(this,cr(this,t))},interleave:function(){var t=[this].concat(I(arguments)),e=pr(this.toSeq(),G.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),dr(this,r)},keySeq:function(){return wt(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return dr(this,or(this,t,e,!1))},zip:function(){return dr(this,pr(this,nn,[this].concat(I(arguments))))},zipWith:function(t){var e=I(arguments);return e[0]=this,dr(this,pr(this,t,e))}}),i.prototype[p]=!0,i.prototype[d]=!0,Gr(o,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Qr.includes,o.prototype.contains=o.prototype.includes,Gr(H,n.prototype),Gr(G,i.prototype),Gr(Q,o.prototype),Gr(St,n.prototype),Gr(Ot,i.prototype),Gr(It,o.prototype),{Iterable:r,Seq:F,Collection:Et,Map:Wt,OrderedMap:Ke,List:Oe,Stack:Kr,Set:Pr,OrderedSet:kr,Record:Er,Range:wt,Repeat:bt,is:_t,fromJS:pt}}()},230:function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=new(((n=r(291))&&n.__esModule?n:{default:n}).default);e.default=i},253:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MIGRATED=e.VERSION=e.REF=e.LOCK_VERSION=e.ID=e.NEW=e.TYPE=void 0,e.TYPE="_type",e.NEW="_new",e.ID="id",e.LOCK_VERSION="lock_version",e.REF="_ref",e.VERSION="_version",e.MIGRATED="_migrated",e.default={TYPE:e.TYPE,ID:e.ID,NEW:e.NEW,LOCK_VERSION:e.LOCK_VERSION,REF:e.REF,VERSION:e.VERSION,MIGRATED:e.MIGRATED}},259:function(t,e,r){"use strict";var n=r(264),i=r(265),o=r(266),u=r(341);Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){i(r,t);var e=o(r);function r(t){var i;return n(this,r),(i=e.call(this,t)).name="ViewModelClientError",i.message=t,i}return r}(u(Error));e.default=a},264:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},265:function(t,e,r){var n=r(280);t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}},266:function(t,e,r){var n=r(292),i=r(293),o=r(336);t.exports=function(t){var e=i();return function(){var r,i=n(t);if(e){var u=n(this).constructor;r=Reflect.construct(i,arguments,u)}else r=i.apply(this,arguments);return o(this,r)}}},267:function(t,e,r){"use strict";var n=r(340),i=r(133),o=r(134),u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.parseExternalAssociationSchema=e.recordFromSchema=e.parseSchema=e.Association=e.Attribute=e.EXTERNAL_ASSOCIATION=e.ENTITY=void 0;var a=r(229),s=u(r(253)),c=u(r(259));e.ENTITY="entity",e.EXTERNAL_ASSOCIATION="external_association";var f={type:"string",notNull:!1,collection:!1,marshaller:void 0,from:s.default.ID,writeOnly:!1},l={type:"number",notNull:!1,collection:!1,marshaller:void 0,from:s.default.LOCK_VERSION,writeOnly:!1};e.Attribute=(0,a.Record)({type:void 0,collection:!1,notNull:!1,marshaller:void 0,from:void 0,writeOnly:!1}),e.Association=(0,a.Record)({type:void 0,collection:!1,notNull:!1,shared:!1,from:void 0});var h=(0,a.Set)(["string","boolean","number"]),p=function(t){var e=t.type,r=t.marshaller,n="undefined"!==typeof r;if("string"===typeof e){if(!h.has(e))throw new c.default("When providing a string, the type must one of: ".concat(h.toList().join(","),"."))}else{if("function"!==typeof e)throw new c.default("".concat(JSON.stringify(e)," is not valid value for type."));if(!n)throw new c.default("Constructor type not provided with a valid marshaller.");var i=r.serialize,o=r.deserialize;if("function"!==typeof i||"function"!==typeof o)throw new c.default("Marshaller requires both a deserialize and serialize method.")}};e.parseSchema=function(t,r){var n=r.namingStrategy,u=r.types,h=t.extends,d=t.persisted,v=void 0!==d&&d,y=t.lockable,_=void 0!==y&&y,m=t.typeName,b=t.version;if("string"!==typeof m)throw new c.default("Expected typeName to be a string, for ".concat(JSON.stringify(t),"."));if("number"!==typeof b)throw new c.default("Expected version to be a number, for ".concat(JSON.stringify(t),"."));var g=t.storePrefix||m,w={},E={},S={},O=function(t,r,i){var o=new t(Object.assign({from:n(r)},function(t){if(Array.isArray(t)){if(1!==t.length)throw new c.default("Malformed collection attribute definition: '".concat(JSON.stringify(t),"'.\n Collection shorthand requires a single element array."));return{type:t[0],collection:!0}}return"string"===typeof t||"function"===typeof t?{type:t,collection:!1}:t}(i))),u=o.from;return o instanceof e.Attribute?w[r]=o:o instanceof e.Association&&(E[r]=o),S[u]=r,o};if(v&&O(e.Attribute,s.default.ID,f),"undefined"!==typeof h){if(!u.has(h))throw new c.default("".concat(m,".extends not in registry."));g=h.storePrefix,Object.assign(w,h.attributes),Object.assign(E,h.associations),Object.assign(S,h.attributeNameMap)}if(_&&O(e.Attribute,s.default.LOCK_VERSION,l),t.hasOwnProperty("attributes")){var I,M=o((0,a.Iterable)(t.attributes));try{for(M.s();!(I=M.n()).done;){var A=i(I.value,2),P=A[0],j=A[1],x=O(e.Attribute,P,j);try{p(x)}catch(C){throw new c.default("Error with attribute for ".concat(m,".").concat(P,". ").concat(C.message))}}}catch(q){M.e(q)}finally{M.f()}}if(t.hasOwnProperty("associations")){var N,z=o((0,a.Iterable)(t.associations));try{for(z.s();!(N=z.n()).done;){var D=i(N.value,2),R=D[0],T=D[1],k=O(e.Association,R,T);if(!u.has(k.type))throw new c.default("Error with association for ".concat(m,".").concat(R,". ")+"Type not in registry.")}}catch(q){z.e(q)}finally{z.f()}}return{kind:e.ENTITY,typeName:m,version:b,extends:h,storePrefix:g,persisted:v,lockable:_,attributes:Object.freeze(w),associations:Object.freeze(E),attributeNameMap:Object.freeze(S)}};e.recordFromSchema=function(t){var e,r=t.typeName,u=n({},s.default.MIGRATED,void 0),c=t.attributes,f=t.associations,l=o((0,a.Iterable)(c));try{for(l.s();!(e=l.n()).done;){var h=i(e.value,2),p=h[0],v=h[1].collection;u[p]=v?(0,a.List)():void 0}}catch(E){l.e(E)}finally{l.f()}var y,_=o((0,a.Iterable)(f));try{for(_.s();!(y=_.n()).done;){var m=i(y.value,2),b=m[0],g=m[1].collection;u[b]=g?(0,a.List)():void 0}}catch(E){_.e(E)}finally{_.f()}var w=(0,a.Record)(u,r);return Object.assign(w,t),w.makeNew=function(){return a.Map.of(s.default.NEW,!0,s.default.TYPE,r)},w.registerSubtype=function(t){this.subtypes||(this.subtypes={}),this.subtypes[t.typeName]=t},w.makeReferenceForId=function(t){return d(r,t)},w.prototype.schema=w,w.prototype.makeReference=function(){return d(r,this[s.default.ID])},w};var d=function(t,e){return a.Map.of(s.default.ID,e,s.default.TYPE,t)};e.parseExternalAssociationSchema=function(t,r){var n=t.typeName,i=t.associationType,o=t.storePrefix||n;if("string"!==typeof n)throw new c.default("Expected typeName to be a string, for ".concat(JSON.stringify(t),"."));if(!r.has(i))throw new c.default("Error with association for ".concat(n,". ")+"Type not in registry.");return{kind:e.EXTERNAL_ASSOCIATION,typeName:n,associationType:i,storePrefix:o}}},278:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BannerPosition",{enumerable:!0,get:function(){return u.default}}),e.default=void 0,Object.defineProperty(e,"targetUrl",{enumerable:!0,get:function(){return m.targetUrl}}),Object.defineProperty(e,"unboundedDate",{enumerable:!0,get:function(){return _.unboundedDate}});var n=r(135),i=r(229),o=r(333),u=b(r(334)),a=b(r(335)),s=b(r(296)),c=b(r(297)),f=r(298),l=r(299),h=b(r(230)),p=r(291),d=b(r(357)),v=r(364),y=b(r(282)),_=r(304),m=r(305);function b(t){return t&&t.__esModule?t:{default:t}}function g(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||E(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,i,o=[],u=!0,a=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);u=!0);}catch(s){a=!0,i=s}finally{try{u||null==r.return||r.return()}finally{if(a)throw i}}return o}(t,e)||E(t,e)||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 E(t,e){if(t){if("string"===typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){M(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function M(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var j=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A(this,t);var r=e.api,n=void 0===r?"":r;this.api=n.replace(/\/+$/,""),this.pendingRequests=[],this.store=(0,d.default)(),this.currentRequestId=0,this.subscribers=[]}var e,r,u;return e=t,(r=[{key:"callSubscribers",value:function(){this.subscribers.forEach((function(t){return t()}))}},{key:"choose",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.brandId,n=e.service,u=e.studyLanguage,c=e.subscriptions,l=void 0===c?[]:c;this.currentRequestId+=1;var d=this.currentRequestId,_=new a.default({brandId:r,service:n,studyLanguage:u,subscriptions:(0,i.List)(l.map((function(t){return new s.default(t)})))}),m=h.default.serializeEntity(_);return this.pendingRequests.forEach((function(t){return t.abort()})),this.pendingRequests=[(0,v.request)({method:"post",url:"".concat(this.api).concat(o.CHOOSE_BANNERS),data:I(I({},m),{},{versions:I(I({},(0,p.calculateVersions)(y.default)),(0,p.calculateVersions)(a.default))})})],Promise.all(this.pendingRequests).then((function(e){var r=w(e,1)[0];t.store.dispatch((0,f.setBanners)(r)),t.callSubscribers()}),(function(e){if(t.currentRequestId===d)throw e}))}},{key:"pickBanner",value:function(){for(var t,e,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i.locale,u=i.bannerPosition,a=this.store.getState(),s=Array.isArray(o)?o:[o],h=(t=[]).concat.apply(t,g(s.map((function(t){return(0,n.getFallbackPattern)(t)})))),p=h.map((function(t){return new c.default({locale:t,bannerPosition:u})})),d=Date.now(),v=(0,l.getBanners)(a),y=(0,l.getScheduledBanners)(a),_=function(t){if(e=y.get(t),(0,l.isBannerExpired)(a,e,d))return"continue";var n=v.get(e),i=p.find((function(t){return n.has(t)}));r=n.get(i)},m=0;m<y.size&&void 0===r;m++)_(m);return r&&this.store.dispatch((0,f.scheduledBanner)(e)),r}},{key:"subscribe",value:function(t){var e=this;return this.subscribers.push(t),function(){return e.subscribers.splice(e.subscribers.indexOf(t))}}}])&&P(e.prototype,r),u&&P(e,u),t}();e.default=j},279:function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},280:function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(e,n)}t.exports=r},281:function(t,e,r){"use strict";var n=r(133),i=r(134),o=r(264),u=r(265),a=r(266),s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.postNestedValidation=e.postNormalizedValidation=e.postDeserializationValidation=e.preDeserializationValidation=e.NormalizeNonPersistedError=e.UnexpectedFieldError=e.UnexpectedWriteOnlyFieldError=e.FieldMissingError=e.AssignmentError=e.CollectionError=e.NotNullError=e.SharedReferenceError=e.ValidationError=void 0;var c=r(229),f=s(r(253)),l=r(267),h=function(t){u(r,t);var e=a(r);function r(t,n,i,u){var a;o(this,r);var s="";if(n){var c=u?"(".concat(u,")"):"",f=i?"[".concat(i,"]"):"";s="Error on ".concat(n).concat(c).concat(f,". ")}return(a=e.call(this,"".concat(s).concat(t))).typeName=n,a.field=i,a.id=u,a}return r}(s(r(259)).default);e.ValidationError=h;var p=function(t){u(r,t);var e=a(r);function r(t,n,i,u){return o(this,r),e.call(this,"Cannot find ".concat(JSON.stringify(t)," in references."),n,i,u)}return r}(h);e.SharedReferenceError=p;var d=function(t){u(r,t);var e=a(r);function r(t,n,i){return o(this,r),e.call(this,"Expected a non null value.",t,n,i)}return r}(h);e.NotNullError=d;var v=function(t){u(r,t);var e=a(r);function r(t,n,i){return o(this,r),e.call(this,"Type conflicts with collection flag.",t,n,i)}return r}(h);e.CollectionError=v;var y=function(t){u(r,t);var e=a(r);function r(t,n,i,u,a){o(this,r);var s="string"===typeof t?t:t.constructor.name,c="object"===typeof n?n.constructor.name:typeof n;return e.call(this,"Expected ".concat(s,", but got ").concat(c,"."),i,u,a)}return r}(h);e.AssignmentError=y;var _=function(t){u(r,t);var e=a(r);function r(t,n,i){return o(this,r),e.call(this,"Expected field is missing.",t,n,i)}return r}(h);e.FieldMissingError=_;var m=function(t){u(r,t);var e=a(r);function r(t,n,i){return o(this,r),e.call(this,"Received a write only field.",t,n,i)}return r}(h);e.UnexpectedWriteOnlyFieldError=m;var b=function(t){u(r,t);var e=a(r);function r(t,n,i){return o(this,r),e.call(this,"Received unexpected field.",t,n,i)}return r}(h);e.UnexpectedFieldError=b;var g=function(t){u(r,t);var e=a(r);function r(t){return o(this,r),e.call(this,"Cannot normalize a non persisted type.",t)}return r}(h);e.NormalizeNonPersistedError=g;var w=function(t){return null===t||void 0===t},E=function(t,e){return!t.notNull||null!==e},S=function(t,e){var r=t.collection,n=t.notNull,i=Array.isArray(e);return!(n||!w(e))||(r&&i||!r&&!i)},O=function(t,e){return typeof e===t.type},I=function(t,e){return e instanceof t.type};e.preDeserializationValidation=function(t,e){var r,o=t.attributes,u=t.associations,a=t.attributeNameMap,s=t.typeName,h=e[f.default.ID],p=i((0,c.Iterable)(Object.assign(Object.assign({},o),u)));try{for(p.s();!(r=p.n()).done;){var y=n(r.value,2),g=y[0],w=y[1],O=w.from,I=e[O],M=w instanceof l.Attribute&&w.writeOnly;if(!M&&void 0===e[O])throw new _(s,g,h);if(M&&void 0!==e[O])throw new m(s,g,h);if(!E(w,I))throw new d(s,g,h);if(!S(w,I))throw new v(s,g,h)}}catch(A){p.e(A)}finally{p.f()}Object.keys(e).filter((function(t){return t!==f.default.TYPE&&t!==f.default.VERSION&&t!==f.default.MIGRATED})).forEach((function(t){if(!a.hasOwnProperty(t))throw new b(s,t,h)}))};e.postDeserializationValidation=function(t){var e=t.schema,r=e.attributes,n=e.typeName,i=t.get(f.default.ID),o=function(t,e){var o=r[t];if(!function(t,e){return"function"===typeof t.type?I(t,e):O(t,e)}(o,e))throw new y(o.type,e,n,t,i)};Object.keys(r).forEach((function(e){var r=t.get(e);w(r)||(c.List.isList(r)?r.forEach((function(t){return o(e,t)})):o(e,r))}))};e.postNormalizedValidation=function(t,e){var r=t.schema,n=r.associations,i=r.typeName,o=t.get(f.default.ID);Object.keys(n).forEach((function(r){var u=n[r],a=t.get(r),s=u.type.storePrefix,f=function(t){if(!e.hasIn([s,t]))throw new h("Unable to find ".concat(t," in ").concat(s,"."),i,r,o)};w(a)||(c.List.isList(a)?a.forEach(f):f(a))}))};e.postNestedValidation=function(t){var e=t.schema,r=e.associations,n=e.typeName,i=t.get(f.default.ID),o=function(t,e){var o=r[t];if(!I(o,e))throw new y(o.type,e,n,t,i)};Object.keys(r).forEach((function(e){var r=t.get(e);w(r)||(c.List.isList(r)?r.forEach((function(t){return o(e,t)})):o(e,r))}))}},282:function(t,e,r){"use strict";function n(t){return(n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=c(r(230)),o=c(r(348)),u=c(r(301)),a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var r=s(e);if(r&&r.has(t))return r.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var a=o?Object.getOwnPropertyDescriptor(t,u):null;a&&(a.get||a.set)?Object.defineProperty(i,u,a):i[u]=t[u]}i.default=t,r&&r.set(t,i);return i}(r(356));function s(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(s=function(t){return t?r:e})(t)}function c(t){return t&&t.__esModule?t:{default:t}}var f=i.default.defineClass({typeName:"Banner",version:4,lockable:!0,persisted:!0,attributes:{name:{type:"string",notNull:!0},period:{type:a.default,marshaller:a.PeriodMarshaller,notNull:!0},weight:"number"},associations:{bannerContext:{type:o.default,collection:!1,notNull:!0},bannerTranslations:{type:u.default,collection:!0,notNull:!0}}});e.default=f},283:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.useTranscoderService=e.useBannerLocale=e.useBannerService=e.BannerProvider=void 0;var u=o(r(0)),a=(0,u.createContext)(void 0),s=(0,u.createContext)(void 0),c=(0,u.createContext)(void 0);e.BannerProvider=function(t){var e=t.bannerService,r=t.children,n=t.locale,i=t.transcoderService;return u.default.createElement(a.Provider,{value:e},u.default.createElement(s.Provider,{value:n},u.default.createElement(c.Provider,{value:i},r)))};e.useBannerService=function(){return(0,u.useContext)(a)};e.useBannerLocale=function(){return(0,u.useContext)(s)};e.useTranscoderService=function(){return(0,u.useContext)(c)}},291:function(t,e,r){"use strict";var n=r(264),i=r(279),o=r(265),u=r(266),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.calculateVersions=e.ViewModelClientError=e.EXTERNAL_ASSOCIATION=e.ENTITY=e.NamingStrategies=e.Fields=e.Association=e.Attribute=void 0;var s=r(339),c=r(344),f=r(345),l=r(267);Object.defineProperty(e,"ENTITY",{enumerable:!0,get:function(){return l.ENTITY}}),Object.defineProperty(e,"EXTERNAL_ASSOCIATION",{enumerable:!0,get:function(){return l.EXTERNAL_ASSOCIATION}}),Object.defineProperty(e,"Attribute",{enumerable:!0,get:function(){return l.Attribute}}),Object.defineProperty(e,"Association",{enumerable:!0,get:function(){return l.Association}});var h=r(295);Object.defineProperty(e,"calculateVersions",{enumerable:!0,get:function(){return h.calculateVersions}});var p=a(r(253));e.Fields=p.default;var d=a(r(346));e.NamingStrategies=d.default;var v=a(r(347)),y=a(r(259));e.ViewModelClientError=y.default;var _=function(t){o(r,t);var e=u(r);function r(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,r),(t=e.call(this)).namingStrategy=i.namingStrategy||d.default.CAMEL_CASE_TO_UNDERSCORE,t}return i(r,[{key:"defineClass",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.namingStrategy,r=new Set(this.types.values()),n=(0,l.parseSchema)(t,{namingStrategy:e,types:r}),i=(0,l.recordFromSchema)(n),o=i.typeName;if(this.types.has(o))throw new y.default("".concat(o," has already been defined."));return this.types.set(o,i),"undefined"!==typeof i.extends&&i.extends.registerSubtype(i),i}},{key:"defineExternalAssociation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new Set(this.types.values()),r=(0,l.parseExternalAssociationSchema)(t,e),n=r.typeName;if(this.types.has(n))throw new y.default("".concat(n," has already been defined."));return this.types.set(n,r),r}},{key:"recordize",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=c.recordize).call.apply(t,[this].concat(r))}},{key:"serializeEdits",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=f.serializeEdits).call.apply(t,[this].concat(r))}},{key:"serializeEntity",value:function(t){return f.serializeEntity.call(this,t)}},{key:"update",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=s.update).call.apply(t,[this].concat(r))}},{key:"updateExternalAssociation",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=s.updateExternalAssociation).call.apply(t,[this].concat(r))}}]),r}(v.default);e.default=_},292:function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(e)}t.exports=r},293:function(t,e){t.exports=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(t){return!1}}},294:function(t,e,r){"use strict";var n=r(133),i=r(134),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.deserialize=e.deserializeAttribute=void 0;var u=r(229),a=r(281),s=o(r(253));e.deserializeAttribute=function(t,e){var r=t.collection,n=function(e){var r=t.marshaller,n=r&&r.deserialize;return"function"===typeof n?n(e):(0,u.fromJS)(e)};return null===e?null:r?(0,u.List)(e).map((function(t){return n(t)})):n(e)};e.deserialize=function(t,r,o){if(!r||"object"!==typeof r)throw new Error("Expected responseData to be an object, but got: ".concat(r));var f=function r(c){var f=t(c),h={};(0,a.preDeserializationValidation)(f,c),h[s.default.MIGRATED]=c[s.default.MIGRATED];var p,d=i((0,u.Iterable)(f.attributes));try{for(d.s();!(p=d.n()).done;){var v=n(p.value,2),y=v[0],_=v[1],m=_.from;if(c.hasOwnProperty(m)){var b=c[m];h[y]=(0,e.deserializeAttribute)(_,b)}}}catch(x){d.e(x)}finally{d.f()}var g,w=i((0,u.Iterable)(f.associations));try{for(w.s();!(g=w.n()).done;){var E=n(g.value,2),S=E[0],O=E[1],I=O.shared,M=O.collection,A=O.from;if(c.hasOwnProperty(A)){var P=c[A],j=I?l:r;h[S]=P&&(M?(0,u.List)(P.map(j)):j(P))}}}catch(x){w.e(x)}finally{w.f()}return o(f,h)},l=c(f,r),h=r.data;return{data:Array.isArray(h)?h.map(f):f(h)}};var c=function(t,e){var r=e.references,n=e.hasOwnProperty("references"),i={};return function(e){var o=e[s.default.REF];if(!i.hasOwnProperty(o)){if(!n||!r.hasOwnProperty(o))throw new a.SharedReferenceError(e);i[o]=t(r[o])}return i[o]}}},295:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculateVersions=void 0;var n=r(229),i=r(267);e.calculateVersions=function(t){var e={},r=function t(r){var n=r.typeName,o=r.version,u=r.kind;if(e.hasOwnProperty(n)){if(e[n]!==o)throw new Error("Multiple versions for ".concat(n,": ").concat(e[n]," and ").concat(o))}else if(u===i.EXTERNAL_ASSOCIATION)t(r.associationType);else if(u===i.ENTITY){e[n]=o;for(var a=0,s=Object.values(r.associations);a<s.length;a++){t(s[a].type)}if(r.subtypes)for(var c=0,f=Object.values(r.subtypes);c<f.length;c++){t(f[c])}}};return Array.isArray(t)||n.List.isList(t)?t.forEach(r):r(t),e}},296:function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=((n=r(230))&&n.__esModule?n:{default:n}).default.defineClass({typeName:"BannerFilter::Subscription",version:2,attributes:{product:{type:"string",notNull:!0},state:{type:"string",notNull:!0},type:{type:"string",notNull:!0}}});e.default=i},297:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(0,r(229).Record)({locale:void 0,bannerPosition:void 0});e.default=n},298:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setBanners=e.scheduledBanner=e.SET_BANNERS=e.SCHEDULED_BANNER=void 0;var n="bannerService/scheduleBanner";e.SCHEDULED_BANNER=n;var i="bannerService/addBanners";e.SET_BANNERS=i;e.scheduledBanner=function(t){return{type:n,payload:t}};e.setBanners=function(t){return{type:i,payload:{banners:t}}}},299:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isBannerExpired=e.getScheduledBanners=e.getImageById=e.getBanners=e.getBannerTranslationById=e.getBannerImageById=e.getBannerById=void 0;var n=r(300),i=c(r(282)),o=c(r(301)),u=c(r(302)),a=c(r(303)),s=r(304);function c(t){return t&&t.__esModule?t:{default:t}}var f=i.default.storePrefix,l=o.default.storePrefix,h=u.default.storePrefix,p=a.default.storePrefix,d=function(t){return function(e,r){return e.getIn([n.ENTITIES_KEY,t,r])}},v=d(f);e.getBannerById=v;var y=d(l);e.getBannerTranslationById=y;var _=d(h);e.getBannerImageById=_;var m=d(p);e.getImageById=m;e.getBanners=function(t){return t.get(n.BANNERS_KEY)};e.getScheduledBanners=function(t){return t.get(n.SCHEDULE_QUEUE_KEY)};e.isBannerExpired=function(t,e,r){var n=v(t,e).period.max;return!(0,s.unboundedDate)(n)&&r>=n}},300:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SCHEDULE_QUEUE_KEY=e.ENTITIES_KEY=e.BANNERS_KEY=void 0;e.BANNERS_KEY="banners";e.ENTITIES_KEY="entities";e.SCHEDULE_QUEUE_KEY="scheduleQueue"},301:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(230)),i=o(r(302));function o(t){return t&&t.__esModule?t:{default:t}}var u=n.default.defineClass({typeName:"BannerTranslation",version:2,lockable:!0,persisted:!0,attributes:{text:{type:"string",notNull:!0},language:{type:"string",notNull:!0},target:{type:"string",notNull:!0}},associations:{bannerImages:{type:i.default,collection:!0,notNull:!0}}});e.default=u},302:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(230)),i=o(r(303));function o(t){return t&&t.__esModule?t:{default:t}}var u=n.default.defineClass({typeName:"BannerImage",version:3,lockable:!0,persisted:!0,attributes:{bannerPosition:{type:"string",notNull:!0}},associations:{image:{type:i.default,notNull:!0}}});e.default=u},303:function(t,e,r){"use strict";function n(t){return(n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o=(i=r(230))&&i.__esModule?i:{default:i},u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var r=a(e);if(r&&r.has(t))return r.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var s=o?Object.getOwnPropertyDescriptor(t,u):null;s&&(s.get||s.set)?Object.defineProperty(i,u,s):i[u]=t[u]}i.default=t,r&&r.set(t,i);return i}(r(355));function a(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(a=function(t){return t?r:e})(t)}var s=o.default.defineClass({typeName:"Image",version:2,lockable:!0,persisted:!0,attributes:{url:"string",dimensions:{type:u.default,marshaller:u.PointMarshaller},attribution:"string",publicAttribution:"boolean"}});e.default=s},304:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unboundedDate=void 0;e.unboundedDate=function(t){return null===t}},305:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.targetUrl=void 0;var n,i=(n=r(360))&&n.__esModule?n:{default:n};e.targetUrl=function(t,e){var r=new i.default(t,{}),n=new i.default(e,{});return n.hostname&&!r.hostname?n.set("hash",r.hash).set("query",r.query).set("pathname",r.pathname).toString():t||e||""}},306:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.usePickBanner=e.SimpleBanner=e.BannerPosition=e.BannerProvider=void 0;var i=r(278);Object.defineProperty(e,"BannerPosition",{enumerable:!0,get:function(){return i.BannerPosition}});var o=n(r(368)),u=r(283);Object.defineProperty(e,"BannerProvider",{enumerable:!0,get:function(){return u.BannerProvider}});var a=n(r(307));e.SimpleBanner=a.default;var s=n(r(308));e.usePickBanner=s.default,e.default=o.default},307:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0});var a=r(369),s=u(r(0)),c={display:"flex",borderRadius:"3px",overflow:"hidden",boxShadow:"0px 1px 1px rgba(0,0,0,0.2)",transition:"box-shadow 0.15s ease-out"},f={filter:"brightness(100%)",flexGrow:1,transition:"filter 0.15s linear"},l={wrapper:c,wrapperHovered:n(n({},c),{boxShadow:"0px 2px 6px rgba(0,0,0,0.2)"}),inner:f,innerHovered:n(n({},f),{filter:"brightness(105%)"}),image:{display:"block"}};e.default=function(t){var e=t.src,r=t.target,n=t.text,i=(0,a.useHoverState)(),o=i[0],u=i[1],c=(0,s.useRef)(null),f=(0,s.useState)("undefined"===typeof HTMLImageElement||"loading"in HTMLImageElement.prototype||"undefined"===typeof IntersectionObserver),h=f[0],p=f[1];return(0,s.useEffect)((function(){var t=c.current;if(null!==t&&!h){var e=new IntersectionObserver((function(e){e.some((function(e){return e.isIntersecting&&e.target===t}))&&p(!0)}),{rootMargin:"0px 0px 200px 0px"});return e.observe(t),function(){e.unobserve(t),e.disconnect()}}}),[h]),s.default.createElement("div",{ref:u,style:o?l.wrapperHovered:l.wrapper},s.default.createElement("div",{style:o?l.innerHovered:l.inner},s.default.createElement("a",{href:r},s.default.createElement("img",{alt:n,height:"auto",loading:"lazy",ref:c,src:h?e:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=",style:l.image,width:"100%"}))))}},308:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(283);e.default=function(t,e){var r=(0,i.useBannerService)(),o=(0,i.useBannerLocale)(),u=e||o,a=(0,n.useRef)(!1),s=(0,n.useRef)(!1);r||!1!==a.current||(console.warn("Attempted to use BannerService, but not specified by BannerProvider."),a.current=!0),u||!1!==s.current||(console.warn("Attempted to use locale, but not specified as argument or through BannerProvider."),s.current=!0);var c=(0,n.useReducer)((function(){return Symbol()}),Symbol()),f=c[0],l=c[1];(0,n.useEffect)((function(){if(r)return r.subscribe((function(){l()}))}),[r]);var h=(0,n.useMemo)((function(){return{}}),[r,u,f]);return h[t]=(0,n.useMemo)((function(){if(t in h)return h[t];if(r&&u)try{return r.pickBanner({bannerPosition:t,locale:u})}catch(e){return void console.error(e)}}),[t,r,h,u]),h[t]}},333:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CHOOSE_BANNERS=void 0;e.CHOOSE_BANNERS="/banners/choose"},334:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=Object.freeze({Content:"Content",Mobile:"Mobile",Sidebar:"Sidebar"});e.default=n},335:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(230)),i=o(r(296));function o(t){return t&&t.__esModule?t:{default:t}}var u=n.default.defineClass({typeName:"BannerFilter",version:1,attributes:{service:{type:"string",notNull:!0},studyLanguage:{type:"string",notNull:!0},brandId:{type:"string",notNull:!0}},associations:{subscriptions:{type:i.default,collection:!0}}});e.default=u},336:function(t,e,r){var n=r(337),i=r(338);t.exports=function(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?i(t):e}},337:function(t,e){function r(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},338:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},339:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.updateExternalAssociation=e.update=void 0;var i=r(229),o=n(r(253)),u=r(267),a=n(r(259)),s=r(294),c=r(281);e.update=function(t,e){var r=this,n=t;return(0,s.deserialize)((function(t){return r.forEntity(t)}),e,(function(t,e){var r=t.persisted,u=t.storePrefix,a=t.typeName;if(!r)throw new c.NormalizeNonPersistedError(a);var s=e[o.default.ID],f=n.getIn([u,s]),l=f?f.merge(e):new t(e);return(0,c.postDeserializationValidation)(l),(0,c.postNormalizedValidation)(l,n),f&&(0,i.is)(l,f)||(n=n.setIn([u,s],l)),s})),n},e.updateExternalAssociation=function(t,e,r,n){if(r.kind!==u.EXTERNAL_ASSOCIATION)throw new a.default("".concat(JSON.stringify(r)," is not an external association type"));var s=e.data;if(!Array.isArray(s))throw new a.default("External associations only support lists");var c=this.update(t,e),f=s.map((function(t){return t[o.default.ID]}));return c=c.setIn([r.storePrefix,n],(0,i.List)(f))}},340:function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},341:function(t,e,r){var n=r(292),i=r(280),o=r(342),u=r(343);function a(e){var r="function"===typeof Map?new Map:void 0;return t.exports=a=function(t){if(null===t||!o(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return u(t,arguments,n(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)},a(e)}t.exports=a},342:function(t,e){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}},343:function(t,e,r){var n=r(280),i=r(293);function o(e,r,u){return i()?t.exports=o=Reflect.construct:t.exports=o=function(t,e,r){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return r&&n(o,r.prototype),o},o.apply(null,arguments)}t.exports=o},344:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.recordize=void 0;var n=r(229),i=r(294),o=r(281);e.recordize=function(t){var e=this,r=(0,i.deserialize)((function(t){return e.forEntity(t)}),t,(function(t,e){var r=new t(e);return(0,o.postDeserializationValidation)(r),(0,o.postNestedValidation)(r),r})).data;return Array.isArray(r)&&(r=(0,n.List)(r)),r}},345:function(t,e,r){"use strict";var n=r(133),i=r(134),o=r(265),u=r(266),a=r(264),s=r(279),c=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),f=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),l=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&c(e,t,r);return f(e,t),e},h=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.serializeEntity=e.serializeEdits=e.longestCommonSubsequence=void 0;var p=l(r(229)),d=h(r(253)),v=r(267),y=r(295),_=h(r(259)),m=function(t,e){return t.size>e.size?t:e};e.longestCommonSubsequence=function(t,e,r){for(var n=r&&r.equal||p.default.is,i=t.size<e.size?e:t,o=t.size<e.size?t:e,u=new Array(o.size+1),a=new Array(o.size+1),s=0;s<u.length;s++)u[s]=(0,p.List)();for(var c=0;c<i.size;c++){var f=i.get(c);a[0]=(0,p.List)();for(var l=0;l<o.size;l++)a[l+1]=n(f,o.get(l))?u[l].push(f):m(a[l],u[l+1]);var h=u;u=a,a=h}return u[o.size]};var b=function(){function t(){a(this,t)}return s(t,[{key:"isNothing",value:function(){return!1}},{key:"isJust",value:function(){return!1}},{key:"fromJust",value:function(){throw new Error("Attempted to call fromJust on Nothing")}}],[{key:"fromJS",value:function(t){return t?new w(t):g.instance}}]),t}(),g=function(t){o(r,t);var e=u(r);function r(){return a(this,r),e.apply(this,arguments)}return s(r,[{key:"isNothing",value:function(){return!0}}]),r}(b);g.instance=new g;var w=function(t){o(r,t);var e=u(r);function r(t){var n;return a(this,r),(n=e.call(this)).value=t,n}return s(r,[{key:"isJust",value:function(){return!0}},{key:"fromJust",value:function(){return this.value}}]),r}(b),E=function(t){return function(e){return p.default.Map.of("_type",t,"values",e)}},S=E("append"),O=E("remove"),I=E("update"),M=function(t,r,n,i,o){var u=o.updateEntity,a=o.referToEntity,s=o.referenceOnly,c=(0,p.List)();if(n){var f=r.map((function(t){return a(i,t)}));return new w(f)}var l=function(t){return s(i,t)},h=(0,e.longestCommonSubsequence)(t,r),d=h.toSet();if(h.isEmpty()){var v=(0,p.List)();if(!t.isEmpty()){var y=t.map(l);v=v.push(O(y))}if(!r.isEmpty()){var _=r.map((function(t){return a(i,t)}));v=v.push(S(_))}return v.isEmpty()?g.instance:new w(p.default.Map.of("_type","_update","actions",v))}for(var m,b=h.first(),E=(0,p.List)(),M=r;!M.isEmpty();){var A=M.first();if(d.has(A)){var P=u(i,A);P&&(E=E.push(P)),m=A,b=null,M=M.rest()}else{var j=M.takeWhile((function(t){return!d.has(t)})),x=j.map((function(t){return a(i,t)})),N=S(x);N=m?N.set("after",s(i,m)):N.set("before",s(i,b)),c=c.push(N),M=M.skip(j.size)}}var z=t.filterNot((function(t){return-1!==r.indexOf(t)}));if(!z.isEmpty()){var D=z.map(l);c=c.push(O(D))}return E.isEmpty()||(c=c.push(I(E))),c.isEmpty()?g.instance:new w(p.default.Map.of("_type","_update","actions",c))},A=function(t,e){var r=t.marshaller,n=r&&r.serialize;return null===e?null:"function"===typeof n?n(e):e},P=function(t,e,r){return p.List.isList(e)?e.map((function(e){return r(t,e)})):r(t,e)},j=function(t,e,r,n,i){var o=i.updateEntity,u=i.referToEntity;i.referenceOnly;return r||!p.default.is(t,e)?e?new w(u(n,e)):null===e?new w(null):g.instance:e?b.fromJS(o(n,e)):g.instance},x=function(t){return"ref".concat(t)},N=function(t){return p.default.Map.of(d.default.REF,t)},z=function(t,e,r){return p.default.Map({data:t,references:e,versions:r}).toJSON()};e.serializeEdits=function(t,e,r,o){var u,a=this,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=1,f=p.default.Map(),l=p.default.Map(),h=r.storePrefix,m=s.serializeShared,b=void 0===m||m,g=function(t,e,r){var n=p.default.List.of(t,e);if(l.has(n))return l.get(n);var i=r();if(i){var o=x(c++),u=N(o);return l=l.set(n,u),f=f.set(o,i),u}return null},w=function(r,n){var i,o,u,a,s=r.storePrefix;return null!==(a=null!==(o=null===(i=t.getIn([s,n]))||void 0===i?void 0:i.makeReference())&&void 0!==o?o:null===(u=e.getIn([s,n]))||void 0===u?void 0:u.makeReference())&&void 0!==a?a:r.makeReferenceForId(n)},E={referenceOnly:w,updateEntity:function(t,e){var r=t.storePrefix;return O(r,e)},referToEntity:function(e,r){var n=e.storePrefix;return O(n,r)||t.getIn([n,r]).makeReference()}},S={referenceOnly:w,updateEntity:function(t,e){var r=t.storePrefix;return g(r,e,(function(){return b?E.updateEntity(t,e):t.makeReferenceForId(e)}))},referToEntity:function(t,e){var r=t.storePrefix;return g(r,e,(function(){return b?E.referToEntity(t,e):t.makeReferenceForId(e)}))}},O=function(r,o){var u=e.getIn([r,o]),s=t.getIn([r,o]);if(!s)return null;var c=p.default.Map();u||(c=c.set(d.default.NEW,!0));var f,l=s.schema,h=l.attributes,v=l.associations,y=i((0,p.Iterable)(h));try{for(y.s();!(f=y.n()).done;){var _=n(f.value,2),m=_[0],b=_[1],g=b.from,w=s.get(m);if((!u||!p.default.is(u.get(m),w))&&void 0!==w){var O=P(b,w,A);c=c.set(g,O)}}}catch(W){y.e(W)}finally{y.f()}var I,x=i((0,p.Iterable)(v));try{for(x.s();!(I=x.n()).done;){var N=n(I.value,2),z=N[0],D=N[1],R=D.type,T=D.collection,k=D.from,C=D.shared,q=R.typeName,B=C?S:E,L=T?M:j;a.getStorePrefixByTypeName(q);var U=L(u&&u.get(z),s.get(z),!u,R,B);U.isJust()&&(c=c.set(k,U.fromJust()))}}catch(W){x.e(W)}finally{x.f()}if(c.isEmpty())return null;var K=s.makeReference(),V=s.get(d.default.LOCK_VERSION);return void 0!==V&&(K=K.set(d.default.LOCK_VERSION,V)),c.merge(K)},I=function(n,i){var o=r.associationType,u=e.getIn([n,i]),a=t.getIn([n,i]);if(!a)return null;var s=M(u,a,!1,o,E);return s.isJust()?s.fromJust():null};if(r.kind===v.ENTITY)u=O(h,o);else{if(r.kind!==v.EXTERNAL_ASSOCIATION)throw new _.default("Serializing an unknown type");u=I(h,o)}return z(u,f,(0,y.calculateVersions)(r))},e.serializeEntity=function(t){var e=1,r=p.default.Map().asMutable(),i=p.default.Map().asMutable(),o=function(t){var e=t.schema,r=e.attributes,i=e.associations,o=e.typeName,a=e.version;return t.toMap().filter((function(t){return void 0!==t})).mapEntries((function(e){var o,a=n(e,2),s=a[0],c=a[1],f=r[s]||i[s],l=f.from;if(f instanceof v.Attribute)o=P(f,c,A);else{if(!(f instanceof v.Association)){var h=JSON.stringify(t);throw new Error("Cannot find definition for ".concat(s," when trying to serialize: ").concat(h,"."))}o=P(f,c,u)}return[l,o]})).set(d.default.TYPE,o).set(d.default.VERSION,a)},u=function(t,e){var r=t.shared;return null!==e?r?a(e):o(e):e},a=function(t){var n=r.get(t);if(void 0===n){var u=o(t);n=x(e++),r.set(t,n),i.set(n,u)}return N(n)},s=Array.isArray(t)||p.List.isList(t)?t.map(o):o(t),c=Array.isArray(t)||p.List.isList(t)?t.map((function(t){return t.schema})):t.schema;return z(s,i,(0,y.calculateVersions)(c))}},346:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IDENTITY=e.CAMEL_CASE_TO_UNDERSCORE=void 0;e.CAMEL_CASE_TO_UNDERSCORE=function(t){return t.replace(/[A-Z0-9]/g,(function(t){return"_".concat(t[0].toLowerCase())}))};e.IDENTITY=function(t){return t},e.default={CAMEL_CASE_TO_UNDERSCORE:e.CAMEL_CASE_TO_UNDERSCORE,IDENTITY:e.IDENTITY}},347:function(t,e,r){"use strict";var n=r(279),i=r(264),o=r(265),u=r(266),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypeRegistryError=void 0;var s=r(229),c=a(r(253)),f=function(t){o(r,t);var e=u(r);function r(){return i(this,r),e.apply(this,arguments)}return r}(a(r(259)).default);e.TypeRegistryError=f;var l=function(){function t(){i(this,t),this.types=new Map}return n(t,[{key:"forEntity",value:function(t){var e=t[c.default.TYPE],r=t[c.default.VERSION];if(!this.types.has(e))throw new f("Unable to find type for ".concat(e,". Passed ").concat(JSON.stringify(t),"."));var n=this.types.get(e);if(r!==n.version)throw new f("Mismatched versions on type ".concat(e,".")+"Local version is ".concat(n.version,". Provided with ").concat(r,"."));return n}},{key:"getStorePrefixes",value:function(){return(0,s.Iterable)(this.types.values()).map((function(t){return t.storePrefix})).toSet()}},{key:"getStorePrefixByTypeName",value:function(t){if(!this.types.has(t))throw new f("Unable to find type: ".concat(t,"."));return this.types.get(t).storePrefix}},{key:"isTypeShared",value:function(t){if(!this.types.has(t))throw new f("Unable to find type: ".concat(t,"."));return this.types.get(t).shared}}]),t}();e.default=l},348:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=u(r(230)),i=u(r(349)),o=u(r(350));function u(t){return t&&t.__esModule?t:{default:t}}var a=n.default.defineClass({typeName:"BannerContext",version:1,lockable:!0,persisted:!0,attributes:{name:"string",services:{type:"string",collection:!0,notNull:!0},studyLanguages:{type:"string",collection:!0,notNull:!0}},associations:{bannerProducts:{type:i.default,collection:!0,notNull:!0},brands:{type:o.default,notNull:!0,collection:!0,shared:!0}}});e.default=a},349:function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=((n=r(230))&&n.__esModule?n:{default:n}).default.defineClass({typeName:"BannerProduct",version:3,lockable:!0,persisted:!0,attributes:{product:"string",subscriptionTypes:{type:"string",collection:!0,notNull:!0},subscriptionStates:{type:"string",collection:!0,notNull:!0}}});e.default=i},350:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=u(r(230)),i=u(r(351)),o=u(r(352));function u(t){return t&&t.__esModule?t:{default:t}}var a=n.default.defineClass({typeName:"BrandReference",version:2,persisted:!0,associations:{name:{type:o.default,notNull:!0},organization:{type:i.default,notNull:!0,shared:!0}}});e.default=a},351:function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=((n=r(230))&&n.__esModule?n:{default:n}).default.defineClass({typeName:"OrganizationReference",version:3,persisted:!0,attributes:{companyName:{type:"string",notNull:!0},sharesMaterials:{type:"boolean",notNull:!0}}});e.default=i},352:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(230)),i=o(r(353));function o(t){return t&&t.__esModule?t:{default:t}}var u=n.default.defineClass({typeName:"Text",version:1,lockable:!0,persisted:!0,attributes:{formatted:{type:"boolean",notNull:!0},text:{type:"string",notNull:!0}},associations:{textTranslations:{collection:!0,type:i.default,notNull:!0}}});e.default=u},353:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=(n=r(230))&&n.__esModule?n:{default:n},o=r(354);var u=i.default.defineClass({typeName:"TextTranslation",version:1,lockable:!0,persisted:!0,attributes:{language:{type:o.Unknown,marshaller:o.UnknownMarshaller,notNull:!0},translation:{type:"string",notNull:!0}}});e.default=u},354:function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.UnknownMarshaller=e.Unknown=void 0;var i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.val=e,this.toString.bind(this)}var e,r,i;return e=t,(r=[{key:"toString",value:function(){return"Unknown ".concat(JSON.stringify(this.val))}}])&&n(e.prototype,r),i&&n(e,i),t}();e.Unknown=i;var o={serialize:function(t){return t.val},deserialize:function(t){return new i(t)}};e.UnknownMarshaller=o},355:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.PointMarshaller=e.Point=void 0;var n=(0,r(229).Record)({x:void 0,y:void 0});e.Point=n;var i={deserialize:function(t){return n(t)},serialize:function(t){return t.toJS()}};e.PointMarshaller=i;var o=n;e.default=o},356:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.PeriodMarshaller=e.Period=void 0;var n=(0,r(229).Record)({min:void 0,max:void 0});e.Period=n;var i={deserialize:function(t){var e=t.min,r=t.max;return n({min:e&&new Date(e),max:r&&new Date(r)})},serialize:function(t){return t.toJSON()}};e.PeriodMarshaller=i;var o=n;e.default=o},357:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=r(460),o=(n=r(358))&&n.__esModule?n:{default:n};e.default=function(){return(0,i.createStore)(o.default)}},358:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=r(229),o=r(298),u=r(299),a=d(r(230)),s=d(r(297)),c=d(r(359)),f=r(300),l=r(305),h=r(363),p=d(r(282));function d(t){return t&&t.__esModule?t:{default:t}}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,i,o=[],u=!0,a=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);u=!0);}catch(s){a=!0,i=s}finally{try{u||null==r.return||r.return()}finally{if(a)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(t,e)}(t,e)||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 y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var m=new((0,i.Record)((_(n={},f.BANNERS_KEY,(0,i.Map)()),_(n,f.ENTITIES_KEY,(0,i.Map)()),_(n,f.SCHEDULE_QUEUE_KEY,(0,i.List)()),n))),b=function(t,e,r){return(0,i.Map)().withMutations((function(n){e.forEach((function(e){var i=(0,u.getBannerTranslationById)(t,e),o=i.language;i.bannerImages.forEach((function(e){var a=(0,u.getBannerImageById)(t,e),f=a.bannerPosition,h=a.image,p=(0,s.default)({locale:o,bannerPosition:f}),d=(0,u.getImageById)(t,h),v=function(t,e,r){var n=e.url,i=t.text,o=(0,l.targetUrl)(t.target,r);return new c.default({src:n,target:o,text:i})}(i,d,r);n.set(p,v)}))}))}))},g=function(t,e,r){return(0,i.Map)().withMutations((function(n){e.forEach((function(e){var i=(0,u.getBannerById)(t,e).bannerTranslations;n.set(e,b(t,i,r))}))}))},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.payload,n=e.type;if(n===o.SET_BANNERS){var u=r.banners;return m.withMutations((function(t){var e,r;t.update(f.ENTITIES_KEY,(function(t){return a.default.update(t,u)}));var n=t.getIn([f.ENTITIES_KEY,p.default.storePrefix],(0,i.Map)()).filter((function(t){return t instanceof p.default})).keySeq(),o=(0,i.fromJS)(null===u||void 0===u||null===(e=u.meta)||void 0===e?void 0:e.supplementary),s=null===u||void 0===u||null===(r=u.meta)||void 0===r?void 0:r.brand_default_uri,c=(0,i.Map)(n.map((function(t){return[t,o.getIn([t,"_score"])]})).filter((function(t){return"number"===typeof v(t,2)[1]})));t.set(f.SCHEDULE_QUEUE_KEY,(0,h.weightedShuffle)(c));var l=g(t,n,s);t.set(f.BANNERS_KEY,l)}))}return n===o.SCHEDULED_BANNER?t.update(f.SCHEDULE_QUEUE_KEY,(function(t){var e=t.indexOf(r);return-1!==e?t.delete(e).push(r):t})):t};e.default=w},359:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(0,r(229).Record)({src:void 0,target:void 0,text:void 0});e.default=n},360:function(t,e,r){"use strict";(function(e){var n=r(361),i=r(362),o=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,a=/^[a-zA-Z]:/,s=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function c(t){return(t||"").toString().replace(s,"")}var f=[["#","hash"],["?","query"],function(t,e){return p(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function h(t){var r,n=("undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{}).location||{},i={},u=typeof(t=t||n);if("blob:"===t.protocol)i=new v(unescape(t.pathname),{});else if("string"===u)for(r in i=new v(t,{}),l)delete i[r];else if("object"===u){for(r in t)r in l||(i[r]=t[r]);void 0===i.slashes&&(i.slashes=o.test(t.href))}return i}function p(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function d(t,e){t=c(t),e=e||{};var r,n=u.exec(t),i=n[1]?n[1].toLowerCase():"",o=!!n[2],a=!!n[3],s=0;return o?a?(r=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(r=n[2]+n[4],s=n[2].length):a?(r=n[3]+n[4],s=n[3].length):r=n[4],"file:"===i?s>=2&&(r=r.slice(2)):p(i)?r=n[4]:i?o&&(r=r.slice(2)):s>=2&&p(e.protocol)&&(r=n[4]),{protocol:i,slashes:o||p(i),slashesCount:s,rest:r}}function v(t,e,r){if(t=c(t),!(this instanceof v))return new v(t,e,r);var o,u,s,l,y,_,m=f.slice(),b=typeof e,g=this,w=0;for("object"!==b&&"string"!==b&&(r=e,e=null),r&&"function"!==typeof r&&(r=i.parse),o=!(u=d(t||"",e=h(e))).protocol&&!u.slashes,g.slashes=u.slashes||o&&e.slashes,g.protocol=u.protocol||e.protocol||"",t=u.rest,("file:"===u.protocol&&(2!==u.slashesCount||a.test(t))||!u.slashes&&(u.protocol||u.slashesCount<2||!p(g.protocol)))&&(m[3]=[/(.*)/,"pathname"]);w<m.length;w++)"function"!==typeof(l=m[w])?(s=l[0],_=l[1],s!==s?g[_]=t:"string"===typeof s?~(y=t.indexOf(s))&&("number"===typeof l[2]?(g[_]=t.slice(0,y),t=t.slice(y+l[2])):(g[_]=t.slice(y),t=t.slice(0,y))):(y=s.exec(t))&&(g[_]=y[1],t=t.slice(0,y.index)),g[_]=g[_]||o&&l[3]&&e[_]||"",l[4]&&(g[_]=g[_].toLowerCase())):t=l(t,g);r&&(g.query=r(g.query)),o&&e.slashes&&"/"!==g.pathname.charAt(0)&&(""!==g.pathname||""!==e.pathname)&&(g.pathname=function(t,e){if(""===t)return e;for(var r=(e||"/").split("/").slice(0,-1).concat(t.split("/")),n=r.length,i=r[n-1],o=!1,u=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),u++):u&&(0===n&&(o=!0),r.splice(n,1),u--);return o&&r.unshift(""),"."!==i&&".."!==i||r.push(""),r.join("/")}(g.pathname,e.pathname)),"/"!==g.pathname.charAt(0)&&p(g.protocol)&&(g.pathname="/"+g.pathname),n(g.port,g.protocol)||(g.host=g.hostname,g.port=""),g.username=g.password="",g.auth&&(l=g.auth.split(":"),g.username=l[0]||"",g.password=l[1]||""),g.origin="file:"!==g.protocol&&p(g.protocol)&&g.host?g.protocol+"//"+g.host:"null",g.href=g.toString()}v.prototype={set:function(t,e,r){var o=this;switch(t){case"query":"string"===typeof e&&e.length&&(e=(r||i.parse)(e)),o[t]=e;break;case"port":o[t]=e,n(e,o.protocol)?e&&(o.host=o.hostname+":"+e):(o.host=o.hostname,o[t]="");break;case"hostname":o[t]=e,o.port&&(e+=":"+o.port),o.host=e;break;case"host":o[t]=e,/:\d+$/.test(e)?(e=e.split(":"),o.port=e.pop(),o.hostname=e.join(":")):(o.hostname=e,o.port="");break;case"protocol":o.protocol=e.toLowerCase(),o.slashes=!r;break;case"pathname":case"hash":if(e){var u="pathname"===t?"/":"#";o[t]=e.charAt(0)!==u?u+e:e}else o[t]=e;break;default:o[t]=e}for(var a=0;a<f.length;a++){var s=f[a];s[4]&&(o[s[1]]=o[s[1]].toLowerCase())}return o.origin="file:"!==o.protocol&&p(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(t){t&&"function"===typeof t||(t=i.stringify);var e,r=this,n=r.protocol;n&&":"!==n.charAt(n.length-1)&&(n+=":");var o=n+(r.slashes||p(r.protocol)?"//":"");return r.username&&(o+=r.username,r.password&&(o+=":"+r.password),o+="@"),o+=r.host+r.pathname,(e="object"===typeof r.query?t(r.query):r.query)&&(o+="?"!==e.charAt(0)?"?"+e:e),r.hash&&(o+=r.hash),o}},v.extractProtocol=d,v.location=h,v.trimLeft=c,v.qs=i,t.exports=v}).call(this,r(79))},361:function(t,e,r){"use strict";t.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},362:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty;function i(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return null}}function o(t){try{return encodeURIComponent(t)}catch(e){return null}}e.stringify=function(t,e){e=e||"";var r,i,u=[];for(i in"string"!==typeof e&&(e="?"),t)if(n.call(t,i)){if((r=t[i])||null!==r&&undefined!==r&&!isNaN(r)||(r=""),i=o(i),r=o(r),null===i||null===r)continue;u.push(i+"="+r)}return u.length?e+u.join("&"):""},e.parse=function(t){for(var e,r=/([^=?#&]+)=?([^&]*)/g,n={};e=r.exec(t);){var o=i(e[1]),u=i(e[2]);null===o||null===u||o in n||(n[o]=u)}return n}},363:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.weightedShuffle=void 0;var n=r(229);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,i,o=[],u=!0,a=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);u=!0);}catch(s){a=!0,i=s}finally{try{u||null==r.return||r.return()}finally{if(a)throw i}}return o}(t,e)||u(t,e)||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(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=u(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function u(t,e){if(t){if("string"===typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}e.weightedShuffle=function(t){return(0,n.List)().withMutations((function(e){var r=Math.abs(t.reduce((function(t,e){return Math.min(t,e)}),0));t.map((function(t){return t+r})).withMutations((function(r){for(var n=t.reduce((function(t,e){return t+e}),0);r.size>0;){var u,a=Math.random()*n,s=void 0,c=void 0,f=o(r);try{for(f.s();!(u=f.n()).done;){var l=i(u.value,2);if(s=l[0],(a-=c=l[1])<0)break}}catch(h){f.e(h)}finally{f.f()}e.push(s),n-=c,r.delete(s)}}))}))}},364:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.request=void 0;var n=o(r(78)),i=o(r(230));o(r(365));function o(t){return t&&t.__esModule?t:{default:t}}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.request=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.default.CancelToken.source(),o=(0,n.default)(a(a({},t),{},{headers:a({"Content-Type":"application/json"},e),cancelToken:r.token})).then((function(t){return t.data})).catch((function(t){var e=t.response.data;try{return Promise.reject(i.default.recordize(e))}catch(r){return Promise.reject(e)}}));return{then:o.then.bind(o),abort:function(){return r.cancel("Aborted")}}}},365:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=(n=r(230))&&n.__esModule?n:{default:n},o=r(366);var u={deserialize:function(t){return t},serialize:function(t){return JSON.stringify(t)}},a=i.default.defineClass({typeName:"Error",version:1,persisted:!1,attributes:{status:"number",detail:"string",title:"string",code:"string",meta:{type:Object,marshaller:u},exception:{type:Object,marshaller:u},causes:{collection:!0,marshaller:o.CauseMarshaller,type:o.Cause}}});e.default=a},366:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CauseMarshaller=e.Cause=void 0;var n=(0,r(229).Record)({status:void 0,detail:void 0,title:void 0,code:void 0,meta:{},exception:{}});e.Cause=n;var i={deserialize:function(t){return n(t)},serialize:function(t){return t.toJSON()}};e.CauseMarshaller=i;var o=n;e.default=o},367:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Format=e.CropMode=void 0;var i,o;!function(t){t.Fill="lfill",t.Limit="limit",t.Pad="pad"}(i=e.CropMode||(e.CropMode={})),function(t){t.Auto="auto",t.Gif="gif",t.Jpeg="jpeg",t.Png="png"}(o=e.Format||(e.Format={}));var u=function(){function t(t){if(this.config=n({protocol:"https:",startIndex:0,shards:0,allowedDefaultPixelRatios:[3,2,1]},t),0===this.config.allowedDefaultPixelRatios.length)throw new Error("allowedDefaultPixelRatios must not be empty")}return t.prototype.getHost=function(t){var e=this.config,r=e.host,n=e.startIndex,i=e.shards,o="";if("number"===typeof i&&i>0){for(var u=0,a=0;a<t.length;a++)u+=t.charCodeAt(a);o=""+(n+u%i)}return r.replace("%d",o).replace(/\/*$/,"")},t.prototype.getTranscodedSrc=function(t,e){if(void 0===e&&(e={}),t.match(/^data:/))return t;var r=e.devicePixelRatio||this.getDefaultDevicePixelRatio(e.width),n=[];n.push("f_"+(e.format||o.Auto)),n.push("c_"+(e.cropMode||i.Limit)),e.width&&n.push("w_"+e.width),e.height&&n.push("h_"+e.height),e.quality&&n.push("q_"+e.quality),"number"===typeof r&&n.push("dpr_"+r);var u=n.join(","),a=this.getHost(t),s=encodeURI(t);return this.config.protocol+"//"+a+"/image/fetch/"+u+"/"+s},t.prototype.getDefaultDevicePixelRatio=function(t){var e;if("undefined"===typeof window||"number"!==typeof window.devicePixelRatio)return Math.min.apply(Math,this.config.allowedDefaultPixelRatios);var r=this.config.allowedDefaultPixelRatios.filter((function(t){return t<=Math.ceil(window.devicePixelRatio)}));if(0===r.length)return Math.min.apply(Math,this.config.allowedDefaultPixelRatios);if(void 0===t||"number"!==typeof(null===(e=window.screen)||void 0===e?void 0:e.width))return Math.max.apply(Math,r);for(var n=window.devicePixelRatio*window.screen.width,i=Math.max.apply(Math,r),o=1/0,u=0,a=r;u<a.length;u++){var s=a[u],c=s*t,f=Math.abs(n-c);f<o&&(o=f,i=s)}return i},t}();e.default=u},368:function(t,e,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TranscodingWidths=void 0;var s=r(278),c=u(r(0)),f=r(283),l=a(r(307)),h=a(r(308));e.TranscodingWidths=((n={})[s.BannerPosition.Content]=1200,n[s.BannerPosition.Mobile]=700,n[s.BannerPosition.Sidebar]=400,n);var p=function(t){var r=t.bannerPosition,n=t.src,i=t.target,o=t.text,u=(0,f.useTranscoderService)(),a=(0,c.useRef)(!1),s=(0,c.useMemo)((function(){if(u){var t=e.TranscodingWidths[r];try{return u.getTranscodedSrc(n,{width:t})}catch(i){return console.error(i),n}}else!1===a.current&&(a.current=!0,console.warn("Banner images are not being transcoded, please provide a TranscoderService."));return n}),[r,u,n,a]);return c.default.createElement(l.default,{src:s,target:i,text:o})};e.default=function(t){var e=t.bannerPosition,r=t.locale,n=(0,h.default)(e,r);if(!n)return null;var i=n.src,o=n.target,u=n.text;return void 0===i||void 0===o?null:c.default.createElement(p,{bannerPosition:e,src:i,target:o,text:u})}},369:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useHoverState=void 0;var n,i=r(0);!function(t){t.MouseEnter="mouseenter",t.MouseLeave="mouseleave",t.PointerCancel="pointercancel",t.PointerEnter="pointerenter",t.PointerLeave="pointerleave",t.TouchCancel="touchcancel",t.TouchEnd="touchend",t.TouchStart="touchstart"}(n||(n={}));e.useHoverState=function(){var t=(0,i.useRef)(null),e=(0,i.useState)(!1),r=e[0],a=e[1],s=(0,i.useRef)({});return[r,(0,i.useCallback)((function(e){var r,i,c;if(t.current&&Object.keys(s.current).forEach((function(e){var r=s.current[e];t.current.removeEventListener(e,r)})),e){var f=function(t){return a(!0)},l=function(t){return a(!1)};u(e,[n.PointerEnter,n.PointerLeave])?s.current=((r={})[n.PointerEnter]=f,r[n.PointerCancel]=l,r[n.PointerLeave]=l,r):u(e,[n.TouchStart,n.TouchEnd,n.TouchCancel])?s.current=((i={})[n.TouchStart]=f,i[n.TouchEnd]=l,i[n.TouchCancel]=l,i[n.MouseEnter]=function(t){return!o(t)&&f()},i[n.MouseLeave]=function(t){return!o(t)&&l()},i):s.current=((c={})[n.MouseEnter]=f,c[n.MouseLeave]=l,c),Object.keys(s.current).forEach((function(t){var r=s.current[t];e.addEventListener(t,r)}))}t.current=e}),[])]};var o=function(t){return t instanceof Event&&("mozInputSource"in t&&5===t.mozInputSource||"webkitForce"in t&&"WEBKIT_FORCE_AT_MOUSE_DOWN"in Event&&t.webkitForce>=Event.WEBKIT_FORCE_AT_MOUSE_DOWN)},u=function(t,e){if("function"!==typeof t.addEventListener)return!1;for(var r=0,n=e;r<n.length;r++){if(!("on"+n[r]in t))return!1}return!0}},460:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}r.r(e),r.d(e,"__DO_NOT_USE__ActionTypes",(function(){return c})),r.d(e,"applyMiddleware",(function(){return y})),r.d(e,"bindActionCreators",(function(){return d})),r.d(e,"combineReducers",(function(){return h})),r.d(e,"compose",(function(){return v})),r.d(e,"createStore",(function(){return l}));var a="function"===typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function f(t){if("object"!==typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function l(t,e,r){var n;if("function"===typeof e&&"function"===typeof r||"function"===typeof r&&"function"===typeof arguments[3])throw new Error(u(0));if("function"===typeof e&&"undefined"===typeof r&&(r=e,e=void 0),"undefined"!==typeof r){if("function"!==typeof r)throw new Error(u(1));return r(l)(t,e)}if("function"!==typeof t)throw new Error(u(2));var i=t,o=e,s=[],h=s,p=!1;function d(){h===s&&(h=s.slice())}function v(){if(p)throw new Error(u(3));return o}function y(t){if("function"!==typeof t)throw new Error(u(4));if(p)throw new Error(u(5));var e=!0;return d(),h.push(t),function(){if(e){if(p)throw new Error(u(6));e=!1,d();var r=h.indexOf(t);h.splice(r,1),s=null}}}function _(t){if(!f(t))throw new Error(u(7));if("undefined"===typeof t.type)throw new Error(u(8));if(p)throw new Error(u(9));try{p=!0,o=i(o,t)}finally{p=!1}for(var e=s=h,r=0;r<e.length;r++){(0,e[r])()}return t}function m(t){if("function"!==typeof t)throw new Error(u(10));i=t,_({type:c.REPLACE})}function b(){var t,e=y;return(t={subscribe:function(t){if("object"!==typeof t||null===t)throw new Error(u(11));function r(){t.next&&t.next(v())}return r(),{unsubscribe:e(r)}}})[a]=function(){return this},t}return _({type:c.INIT}),(n={dispatch:_,subscribe:y,getState:v,replaceReducer:m})[a]=b,n}function h(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];0,"function"===typeof t[i]&&(r[i]=t[i])}var o,a=Object.keys(r);try{!function(t){Object.keys(t).forEach((function(e){var r=t[e];if("undefined"===typeof r(void 0,{type:c.INIT}))throw new Error(u(12));if("undefined"===typeof r(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw new Error(u(13))}))}(r)}catch(s){o=s}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var n=!1,i={},s=0;s<a.length;s++){var c=a[s],f=r[c],l=t[c],h=f(l,e);if("undefined"===typeof h){e&&e.type;throw new Error(u(14))}i[c]=h,n=n||h!==l}return(n=n||a.length!==Object.keys(t).length)?i:t}}function p(t,e){return function(){return e(t.apply(this,arguments))}}function d(t,e){if("function"===typeof t)return p(t,e);if("object"!==typeof t||null===t)throw new Error(u(16));var r={};for(var n in t){var i=t[n];"function"===typeof i&&(r[n]=p(i,e))}return r}function v(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function y(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return function(){var r=t.apply(void 0,arguments),n=function(){throw new Error(u(15))},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},a=e.map((function(t){return t(i)}));return n=v.apply(void 0,a)(r.dispatch),o(o({},r),{},{dispatch:n})}}}}}]); 2 //# sourceMappingURL=7.5efe687b.chunk.js.map