!function(t,e){for(var r in e)t[r]=e[r]}(window,function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=7)}([,,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return o}));var n="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=n||void 0!==t&&t||i}).call(this,r(5))},,,function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){},function(t,e,r){"use strict";function n(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function i(t){return function e(r){return 0===arguments.length||n(r)?e:t.apply(this,arguments)}}function o(t){return t}r.r(e);var u=i(o);function s(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var c=Object.prototype.toString,a=function(){return"[object Arguments]"===c.call(arguments)?function(t){return"[object Arguments]"===c.call(t)}:function(t){return s("callee",t)}}(),f=!{toString:null}.propertyIsEnumerable("toString"),l=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],h=function(){return arguments.propertyIsEnumerable("length")}(),p=function(t,e){for(var r=0;r=0;)s(e=l[r],t)&&!p(n,e)&&(n[n.length]=e),r-=1;return n})):i((function(t){return Object(t)!==t?[]:Object.keys(t)})),y=i((function(t){for(var e=d(t),r=e.length,n=[],i=0;i1?n.next(Array.prototype.slice.call(arguments)):n.next(t)}),n,r)}))}var st=new q(P);var ct=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return b(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(N);function at(t,e,r,n,i){if(void 0===i&&(i=new ct(t,r,n)),!i.closed)return e instanceof q?e.subscribe(i):rt(e)(i)}var ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(N);var lt=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new ht(t,this.project,this.concurrent))},t}(),ht=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return b(e,t),e.prototype._next=function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(ft);function pt(t){return t}function dt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(e,r,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof r?function(i){return i.pipe(t((function(t,n){return it(e(t,n)).pipe(G((function(e,i){return r(t,e,n,i)})))}),n))}:("number"==typeof r&&(n=r),function(t){return t.lift(new lt(e,n))})}(pt,t)}function yt(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof i&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof q?t[0]:dt(r)(z(t,n))}var vt=r(2);function bt(t,e){return void 0===e&&(e=null),new Et({method:"GET",url:t,headers:e})}function mt(t,e,r){return new Et({method:"POST",url:t,body:e,headers:r})}function wt(t,e){return new Et({method:"DELETE",url:t,headers:e})}function gt(t,e,r){return new Et({method:"PUT",url:t,body:e,headers:r})}function _t(t,e,r){return new Et({method:"PATCH",url:t,body:e,headers:r})}var xt=G((function(t,e){return t.response}));function St(t,e){return xt(new Et({method:"GET",url:t,responseType:"json",headers:e}))}var Et=function(t){function e(e){var r=t.call(this)||this,n={async:!0,createXHR:function(){return this.crossDomain?function(){if(vt.a.XMLHttpRequest)return new vt.a.XMLHttpRequest;if(vt.a.XDomainRequest)return new vt.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(vt.a.XMLHttpRequest)return new vt.a.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r=0;r<3;r++)try{if(t=e[r],new vt.a.ActiveXObject(t))break}catch(t){}return new vt.a.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)n.url=e;else for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return r.request=n,r}var r;return b(e,t),e.prototype._subscribe=function(t){return new Tt(t,this.request)},e.create=((r=function(t){return new e(t)}).get=bt,r.post=mt,r.delete=wt,r.put=gt,r.patch=_t,r.getJSON=St,r),e}(q),Tt=function(t){function e(e,r){var n=t.call(this,e)||this;n.request=r,n.done=!1;var i=r.headers=r.headers||{};return r.crossDomain||n.getHeader(i,"X-Requested-With")||(i["X-Requested-With"]="XMLHttpRequest"),n.getHeader(i,"Content-Type")||vt.a.FormData&&r.body instanceof vt.a.FormData||void 0===r.body||(i["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=n.serializeBody(r.body,n.getHeader(r.headers,"Content-Type")),n.send(),n}return b(e,t),e.prototype.next=function(t){this.done=!0;var e,r=this.xhr,n=this.request,i=this.destination;try{e=new Ot(t,r,n)}catch(t){return i.error(t)}i.next(e)},e.prototype.send=function(){var t=this.request,e=this.request,r=e.user,n=e.method,i=e.url,o=e.async,u=e.password,s=e.headers,c=e.body;try{var a=this.xhr=t.createXHR();this.setupEvents(a,t),r?a.open(n,i,o,r,u):a.open(n,i,o),o&&(a.timeout=t.timeout,a.responseType=t.responseType),"withCredentials"in a&&(a.withCredentials=!!t.withCredentials),this.setHeaders(a,s),c?a.send(c):a.send()}catch(t){this.error(t)}},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(vt.a.FormData&&t instanceof vt.a.FormData)return t;if(e){var r=e.indexOf(";");-1!==r&&(e=e.substring(0,r))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var r in e)e.hasOwnProperty(r)&&t.setRequestHeader(r,e[r])},e.prototype.getHeader=function(t,e){for(var r in t)if(r.toLowerCase()===e.toLowerCase())return t[r]},e.prototype.setupEvents=function(t,e){var r=e.progressSubscriber;function n(t){var e,r=n,i=r.subscriber,o=r.progressSubscriber,u=r.request;o&&o.error(t);try{e=new Nt(this,u)}catch(t){e=t}i.error(e)}if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=r,t.upload&&"withCredentials"in t){var i,o;if(r)i=function(t){i.progressSubscriber.next(t)},vt.a.XDomainRequest?t.onprogress=i:t.upload.onprogress=i,i.progressSubscriber=r;o=function(t){var e,r=o,n=r.progressSubscriber,i=r.subscriber,u=r.request;n&&n.error(t);try{e=new jt("ajax error",this,u)}catch(t){e=t}i.error(e)},t.onerror=o,o.request=e,o.subscriber=this,o.progressSubscriber=r}function u(t){}function s(t){var e=s,r=e.subscriber,n=e.progressSubscriber,i=e.request;if(4===this.readyState){var o=1223===this.status?204:this.status,u="text"===this.responseType?this.response||this.responseText:this.response;if(0===o&&(o=u?200:0),o<400)n&&n.complete(),r.next(t),r.complete();else{n&&n.error(t);var c=void 0;try{c=new jt("ajax error "+o,this,i)}catch(t){c=t}r.error(c)}}}t.onreadystatechange=u,u.subscriber=this,u.progressSubscriber=r,u.request=e,t.onload=s,s.subscriber=this,s.progressSubscriber=r,s.request=e},e.prototype.unsubscribe=function(){var e=this.done,r=this.xhr;!e&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),t.prototype.unsubscribe.call(this)},e}(N),Ot=function(){return function(t,e,r){this.originalEvent=t,this.xhr=e,this.request=r,this.status=e.status,this.responseType=e.responseType||r.responseType,this.response=It(this.responseType,e)}}(),jt=function(){function t(t,e,r){return Error.call(this),this.message=t,this.name="AjaxError",this.xhr=e,this.request=r,this.status=e.status,this.responseType=e.responseType||r.responseType,this.response=It(this.responseType,e),this}return t.prototype=Object.create(Error.prototype),t}();function It(t,e){switch(t){case"json":return function(t){return"response"in t?t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):JSON.parse(t.responseText||"null")}(e);case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}var Nt=function(t,e){return jt.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this},kt=function(){return Et.create}();function At(t,e){return function(r){return r.lift(new Pt(t,e))}}var Pt=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new $t(t,this.predicate,this.thisArg))},t}(),$t=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return b(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(N);function Ct(t,e,r){return function(n){return n.lift(new qt(t,e,r))}}var qt=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new Mt(t,this.nextOrObserver,this.error,this.complete))},t}(),Mt=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o._tapNext=P,o._tapError=P,o._tapComplete=P,o._tapError=n||P,o._tapComplete=i||P,m(r)?(o._context=o,o._tapNext=r):r&&(o._context=r,o._tapNext=r.next||P,o._tapError=r.error||P,o._tapComplete=r.complete||P),o}return b(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(N);function Rt(){for(var t=[],e=0;e0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var o=Math.max(0,r[0].time-n.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,r=new te(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(Jt.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(Jt.createComplete()),this.unsubscribe()},e}(N),te=function(){return function(t,e){this.time=t,this.notification=e}}();function ee(t,e){return e?Vt((function(){return t}),e):Vt((function(){return t}))}function re(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new ne(t,e,r))}}var ne=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new ie(t,this.accumulator,this.seed,this.hasSeed))},t}(),ie=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.accumulator=r,o._seed=n,o.hasSeed=i,o.index=0,o}return b(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(N),oe=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return b(e,t),e.prototype.schedule=function(e,r){return void 0===r&&(r=0),r>0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(zt),ue=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e}(Wt))(oe);function se(t,e){return void 0===e&&(e=0),function(r){return r.lift(new ce(t,e))}}var ce=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new ae(t,this.scheduler,this.delay))},t}(),ae=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return b(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new fe(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Jt.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Jt.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(Jt.createComplete()),this.unsubscribe()},e}(N),fe=function(){return function(t,e){this.notification=t,this.destination=e}}(),le=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return b(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new he(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;if(this.closed)throw new R;if(this.isStopped||this.hasError?e=O.EMPTY:(this.observers.push(t),e=new H(this,t)),i&&t.add(t=new ae(t,i)),r)for(var u=0;ue&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},e}(L),he=function(){return function(t,e){this.time=t,this.value=e}}();function pe(t,e,r){var n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:r},function(t){return t.lift(function(t){var e,r,n=t.bufferSize,i=void 0===n?Number.POSITIVE_INFINITY:n,o=t.windowTime,u=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,c=t.scheduler,a=0,f=!1,l=!1;return function(t){a++,e&&!f||(f=!1,e=new le(i,u,c),r=t.subscribe({next:function(t){e.next(t)},error:function(t){f=!0,e.error(t)},complete:function(){l=!0,e.complete()}}));var n=e.subscribe(this);this.add((function(){a--,n.unsubscribe(),r&&!l&&s&&0===a&&(r.unsubscribe(),r=void 0,e=void 0)}))}}(n))}}function de(t){return function(e){return e.lift(new ye(t))}}var ye=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new ve(t,this.value))},t}(),ve=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return b(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(N);function be(){for(var t=[],e=0;e1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(N),Ne=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return b(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new O).add(this.source.subscribe(new Ae(this.getSubject(),this))),t.closed&&(this._connection=null,t=O.EMPTY)),t},e.prototype.refCount=function(){return Oe()(this)},e}(q),ke=function(){var t=Ne.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),Ae=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return b(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(D);var Pe=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(t);return i.add(e.subscribe(n)),i},t}();function $e(){return new L}function Ce(){return function(t){return Oe()((e=$e,function(t){var n;if(n="function"==typeof e?e:function(){return e},"function"==typeof r)return t.lift(new Pe(n,r));var i=Object.create(t,ke);return i.source=t,i.subjectFactory=n,i})(t));var e,r}}var qe=ut(window,"hashchange"),Me=ut(window,"popstate");function Re(t){var e=matchMedia(t);return function t(e,r,n){return n?t(e,r).pipe(G((function(t){return S(t)?n.apply(void 0,t):n(t)}))):new q((function(t){var n,i=function(){for(var e=[],r=0;r0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(zt),We=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n=e})),we(),se(We),Ct((function(e){!function(t,e){t.setAttribute("data-md-state",e?"hidden":"")}(t,e)})),Be((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}function ir(t,e){var r=e;if(t.length>r){for(;" "!==t[r]&&--r>0;);return t.substring(0,r)+"..."}return t}function or(t,e){if(void 0===Ge){var r=Se("#__lang");Ge=JSON.parse(r.innerText)}if(void 0===Ge[t])throw new ReferenceError("Invalid translation: "+t);return void 0!==e?Ge[t].replace("#",e):Ge[t]}var ur=function(){return(ur=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function cr(t){return e=function(){var e="sticky"===getComputedStyle(t).getPropertyValue("position");return X({sticky:e,height:e?t.offsetHeight:0})},new q((function(t){var r;try{r=e()}catch(e){return void t.error(e)}return(r?it(r):B()).subscribe(t)}));var e}var ar={};function fr(){for(var t=[],e=0;e0)&&!(n=o.next()).done;)u.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u};function dr(t,e,r){var n=e.viewport,i=r.header$,o=n.size$.pipe(ee(i),G((function(e){var r=e.height;return t.offsetTop-r})),we());return fr([n.offset$,o]).pipe(G((function(t){var e=pr(t,2),r=e[0];return{x:r.x,y:r.y-e[1]}})),pe(1))}function yr(t){return $((e="active",we((function(t,n){return r?r(t[e],n[e]):t[e]===n[e]}))),se(We),Ct((function(e){var r=e.active;!function(t,e){t.setAttribute("data-md-state",e?"shadow":"")}(t,r)})),Be((function(){!function(t){t.removeAttribute("data-md-state")}(t)})));var e,r}r(6);var vr=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function br(t,e){var r,n;if("string"==typeof e||"number"==typeof e)t.innerHTML+=e.toString();else if(e instanceof Node)t.appendChild(e);else if(Array.isArray(e))try{for(var i=vr(e),o=i.next();!o.done;o=i.next()){br(t,o.value)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}function mr(t,e){for(var r,n,i,o,u=[],s=2;s0)&&!(n=o.next()).done;)u.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u};function xr(t,e){var r=t.pipe(At((function(t){return t}))),n=t.pipe(At((function(t){return!t})));return $(Vt((function(t){return fr([X(t),r])})),Vt((function(t){var r,i=_r(t,2),o=i[0];return i[1]?e(o).pipe((r=n,function(t){return t.lift(new wr(r))})):W})))}function Sr(t,e){return $(xr(t.media.screen$,(function(r){return function(t,e,r){return dr(t,e,{header$:r.header$}).pipe(nr(t,20)).pipe(G((function(t){return{hidden:t}})))}(r,t,e)})),pe(1))}var Er=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u};function Tr(t,e){return $(Vt((function(r){return function(t,e,r){var n=e.viewport,i=r.header$.pipe(Rt("height")),o=fr([n.offset$,n.size$,i]).pipe(G((function(e){var r=Er(e,3),n=r[0].y,i=r[1].height,o=r[2],u=t.offsetTop,s=t.offsetHeight+u;return i-Math.max(0,u-n,o)-Math.max(0,i+n-s)})),we()),u=fr([n.offset$,i]).pipe(G((function(e){var r=Er(e,2),n=r[0].y,i=r[1];return n>=t.offsetTop-i})),we());return fr([o,i,u]).pipe(G((function(e){var r=Er(e,3),n=r[0],i=r[1],o=r[2];return{offset:t.offsetTop-i,height:n,active:o}})))}(r,t,e)})),pe(1))}function Or(t){return function e(r,o){switch(arguments.length){case 0:return e;case 1:return n(r)?e:i((function(e){return t(r,e)}));default:return n(r)&&n(o)?e:n(r)?i((function(e){return t(e,o)})):n(o)?i((function(e){return t(r,e)})):t(r,o)}}}function jr(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function Ir(t,e,r){for(var n=0,i=r.length;n=0;){if(r[c]===t)return n[c]===e;c-=1}switch(u){case"Map":return t.size===e.size&&Ar(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&Ar(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=d(t);if(a.length!==d(e).length)return!1;var f=r.concat([t]),l=n.concat([e]);for(c=a.length-1;c>=0;){var h=a[c];if(!s(h,e)||!Pr(e[h],t[h],f,l))return!1;c-=1}return!0}var $r=Or((function(t,e){return Pr(t,e,[],[])})),Cr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u};function qr(t,e,r){var n=e.viewport,i=r.main$,o=parseFloat(getComputedStyle(t.parentElement).getPropertyValue("padding-top")),u=fr([n.offset$,i]).pipe(G((function(t){var e=Cr(t,2),r=e[0].y,n=e[1],i=n.offset;return n.height-o+Math.min(o,Math.max(0,r-i))}))),s=fr([n.offset$,i]).pipe(G((function(t){var e=Cr(t,2);return e[0].y>=e[1].offset+o})));return fr([u,s]).pipe(G((function(t){var e=Cr(t,2);return{height:e[0],lock:e[1]}})),we($r),pe(1))}function Mr(t){return $(se(We),Ct((function(e){var r=e.height,n=e.lock;!function(t,e){t.style.height=e+"px"}(t,r),function(t,e){t.setAttribute("data-md-state",e?"lock":"")}(t,n)})),Be((function(){!function(t){t.style.height=""}(t),function(t){t.removeAttribute("data-md-state")}(t)})))}function Rr(t,e){return $(xr(t.media.screen$,(function(r){return function(t,e,r){return qr(t,e,{main$:r.main$}).pipe(Mr(t)).pipe(G((function(t){return{sidebar:t}})))}(r,t,e)})),pe(1))}var Hr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u};function Dr(t,e){var r=e.prepare;return fr([ut(t,"keyup").pipe(G((function(){return r(t.value)})),me(""),we()),function(t){var e=ut(t,"focus"),r=ut(t,"blur");return yt(e.pipe(de(!0)),r.pipe(de(!1))).pipe(me(t===document.activeElement),pe(1))}(t)]).pipe(G((function(t){var e=Hr(t,2);return{value:e[0],focus:e[1]}})),pe(1))}function Lr(t){return ut(t,"click").pipe(de(void 0))}var Vr={link:"md-search-result__link",article:"md-search-result__article md-search-result__article--document",title:"md-search-result__title",teaser:"md-search-result__teaser"};var Fr={link:"md-search-result__link",article:"md-search-result__article",title:"md-search-result__title",teaser:"md-search-result__teaser"};function Ur(t){var e=t.location,r=t.title,n=t.text;return mr("a",{href:e,title:r,class:Fr.link,tabIndex:-1},mr("article",{class:Fr.article},mr("h1",{class:Fr.title},r),n.length?mr("p",{class:Fr.teaser},ir(n,320)):void 0))}var Yr={item:"md-search-result__item"};function zr(t){var e=t.article,r=t.sections;return mr("li",{class:Yr.item},function(t){var e=t.location,r=t.title,n=t.text;return mr("a",{href:e,title:r,class:Vr.link,tabIndex:-1},mr("article",{class:Vr.article},mr("h1",{class:Vr.title},r),n.length?mr("p",{class:Vr.teaser},ir(n,320)):void 0))}(e),r.map(Ur))}var Xr={facts:"md-source__facts",fact:"md-source__fact"};var Wr=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new Br(t,this.observables,this.project))},t}(),Br=function(t){function e(e,r,n){var i=t.call(this,e)||this;i.observables=r,i.project=n,i.toRespond=[];var o=r.length;i.values=new Array(o);for(var u=0;u0){var u=o.indexOf(r);-1!==u&&o.splice(u,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(ft),Gr=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u};function Jr(t,e){var r=e.query$,n=Se(".md-search-result__meta",t);return $(function(){for(var t=[],e=0;e1?or("search.result.other",e.toString()):or(1===e?"search.result.one":"search.result.none")}(n,r.length):function(t){t.textContent=or("search.result.placeholder")}(n),r})))}function Kr(t,e,r){var n=r.result$,i=r.query$,o=t.parentElement,s=function(t,e){var r=e.viewport;return yt(ut(t,"scroll"),r.size$).pipe(G((function(){return Te(t)})),me(Te(t)),pe(1))}(o,e).pipe(G((function(t){return t.y>=o.scrollHeight-o.offsetHeight-16})),we(),At(u));return n.pipe(Jr(t,{query$:i}),function(t,e){var r=e.render$,n=t.parentElement,i=Se(".md-search-result__list",t);return $(Vt((function(t){return r.pipe(se(We),re((function(e){for(;e16)););return e}),0),de(t),Be((function(){!function(t){t.innerHTML=""}(i)})))})))}(t,{render$:s}))}function Qr(t,e){return $(xr(t.media.screen$,(function(r){return function(t,e,r){return dr(t,e,{header$:r.header$}).pipe(nr(t,8)).pipe(G((function(t){return{hidden:t}})))}(r,t,e)})),pe(1))}var Zr=i((function(t){return e=t,"[object String]"===Object.prototype.toString.call(e)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse();var e}));function tn(t,e){return function(t,e,r){var n,i;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r=0}function en(t,e,r){var n,i=typeof t;switch(i){case"string":case"number":return 0===t&&1/t==-1/0?!!r._items["-0"]||(e&&(r._items["-0"]=!0),!1):null!==r._nativeSet?e?(n=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===n):r._nativeSet.has(t):i in r._items?t in r._items[i]||(e&&(r._items[i][t]=!0),!1):(e&&(r._items[i]={},r._items[i][t]=!0),!1);case"boolean":if(i in r._items){var o=t?1:0;return!!r._items[i][o]||(e&&(r._items[i][o]=!0),!1)}return e&&(r._items[i]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?e?(n=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===n):r._nativeSet.has(t):i in r._items?!!tn(t,r._items[i])||(e&&r._items[i].push(t),!1):(e&&(r._items[i]=[t]),!1);case"undefined":return!!r._items[i]||(e&&(r._items[i]=!0),!1);case"object":if(null===t)return!!r._items.null||(e&&(r._items.null=!0),!1);default:return(i=Object.prototype.toString.call(t))in r._items?!!tn(t,r._items[i])||(e&&r._items[i].push(t),!1):(e&&(r._items[i]=[t]),!1)}}var rn=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!en(t,!0,this)},t.prototype.has=function(t){return en(t,!1,this)},t}(),nn=Or((function(t,e){for(var r=[],n=0,i=t.length,o=e.length,u=new rn,s=0;s=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},un=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u},sn=function(){for(var t=[],e=0;e0)&&!(n=o.next()).done;)u.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u};function ln(t,e,r){var n=r.header$,i=qr(t,e,{main$:r.main$}).pipe(Mr(t)),o=Ee(".md-nav__link",t),u=function(t,e,r){var n,i,o=e.viewport,u=r.header$,s=new Map;try{for(var c=on(t),a=c.next();!a.done;a=c.next()){var f=a.value,l=Se('[id="'+decodeURIComponent(f.hash.substring(1))+'"]');void 0!==l&&s.set(f,l)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}var h=u.pipe(G((function(t){return 18+t.height})));return o.size$.pipe(G((function(){var t=[];return sn(s).reduce((function(e,r){for(var n=un(r,2),i=n[0],o=n[1];t.length;){if(!(s.get(t[t.length-1]).tagName>=o.tagName))break;t.pop()}return e.set(Zr(t=sn(t,[i])),o.offsetTop)}),new Map)})),Vt((function(t){return fr(o.offset$,h).pipe(re((function(t,e){for(var r=un(t,2),n=r[0],i=r[1],o=un(e,2),u=o[0].y,s=o[1];i.length;){if(!(un(i[0],2)[1]-s=u))break;i=sn([n.pop()],i)}return[n,i]}),[[],sn(t)]),we((function(t,e){return t[0]===e[0]&&t[1]===e[1]})))}))).pipe(G((function(t){var e=un(t,2),r=e[0],n=e[1];return{prev:r.map((function(t){return un(t,1)[0]})),next:n.map((function(t){return un(t,1)[0]}))}})),re((function(t,e){var r=Math.max(0,Math.min(e.prev.length,t.prev.length)-1),n=Math.max(e.prev.length,t.prev.length);return{prev:e.prev.slice(r,n+1),next:nn(e.next,t.next)}}),{prev:[],next:[]})).pipe(pe(1))}(o,e,{header$:n}).pipe(function(t){return $(se(We),Ct((function(t){var e,r,n,i,o=t.prev,u=t.next;try{for(var s=on(u),c=s.next();!c.done;c=s.next()){er(l=un(c.value,1)[0]),Ze(l)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}try{for(var a=on(o.entries()),f=a.next();!f.done;f=a.next()){var l,h=un(f.value,2),p=h[0];tr(l=un(h[1],1)[0],p===o.length-1),Qe(l,!0)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}})),Be((function(){var e,r;try{for(var n=on(t),i=n.next();!i.done;i=n.next()){var o=i.value;er(o),Ze(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}})))}(o));return fr([i,u]).pipe(G((function(t){var e=fn(t,2);return{sidebar:e[0],anchors:e[1]}})))}function hn(t){return t.type===an.DUMP}function pn(t){return t.type===an.RESULT}!function(t){t[t.STRING=0]="STRING",t[t.BINARY=1]="BINARY"}(cn||(cn={})),function(t){t[t.SETUP=0]="SETUP",t[t.DUMP=1]="DUMP",t[t.QUERY=2]="QUERY",t[t.RESULT=3]="RESULT"}(an||(an={})),r.d(e,"initialize",(function(){return _n}));var dn=function(){return(dn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)u.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u},bn=function(){for(var t=[],e=0;e0})),Ce())},media:{screen$:Re("(min-width: 1220px)"),tablet$:Re("(min-width: 960px)")},viewport:{offset$:yt(He,De).pipe(G(Le),me(Le()),pe(1)),size$:De.pipe(G(Ve),me(Ve()),pe(1))}},n=vn(gn(t),2),i=n[0],o=n[1];(function(){var t=Se("[data-md-source][href]");if(console.log(t),!t)return W;var e=sessionStorage.getItem("repository");if(e)return X(JSON.parse(e));function r(t){return t>999?(t/1e3).toFixed(1)+"k":""+t}var n=vn(t.href.match(/^.+github\.com\/([^\/]+)\/?([^\/]+)?.*$/i),3),i=n[1],o=n[2];return i&&o?kt({url:"https://api.github.com/repos/"+i+"/"+o,responseType:"json"}).pipe(G((function(t){var e=t.status,n=t.response;if(200===e){var i=n.stargazers_count,o=n.forks_count;return[r(i)+" Stars",r(o)+" Forks"]}return[]})),Ct((function(t){return sessionStorage.setItem("repository",JSON.stringify(t))}))):i?kt({url:"https://api.github.com/users/"+i,responseType:"json"}).pipe(G((function(t){var e=t.status,n=t.response;return 200===e?[r(n.public_repos)+" Repositories"]:[]})),Ct((function(t){return sessionStorage.setItem("repository",JSON.stringify(t))}))):X([])})().subscribe((function(t){t.length&&Ee("[data-md-source] .md-source__repository").forEach((function(e){e.dataset.mdState="done",e.appendChild(function(t){return mr("ul",{class:Xr.facts},t.map((function(t){return mr("li",{class:Xr.fact},t)})))}(t))}))}));var s=function(t,e){return e.document$.pipe(G((function(e){return t.reduce((function(t,r){var n,i=Se("[data-md-component="+r+"]",e);return ur(ur({},t),void 0!==i?((n={})[r]=i,n):{})}),{})})),re((function(t,e){var r,n;try{for(var i=sr(d(t)),o=i.next();!o.done;o=i.next()){var u=o.value;switch(u){case"header-title":case"container":u in t&&void 0!==t[u]&&(t[u].replaceWith(e[u]),t[u]=e[u]);break;default:t[u]=Se("[data-md-component="+u+"]")}}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return t}))).pipe(pe(1))}(mn,{document$:r.document.load$}),c=function(t){return s.pipe(function(t){return $(Vt((function(e){return void 0!==e[t]?X(e[t]):st})))}(t))},a=c("header").pipe(Vt(cr));c("header").pipe(Vt((function(t){return p.pipe(yr(t))}))).subscribe();var f=i.pipe(At(pn),Rt("data"),Ct((function(e){return e.forEach((function(e){e.article.location=t.base+"/"+e.article.location,e.sections.forEach((function(e){e.location=t.base+"/"+e.location}))}))}))),l=c("search-query").pipe(Vt((function(t){return Dr(t,{prepare:wn})})));l.pipe(G((function(t){return{type:an.QUERY,data:t.value}}))).subscribe(o),l.pipe(Ct((function(t){var e,r;t.focus&&(r=!0,(e=_).checked!==r&&e.click())}))).subscribe();var h,p=c("main").pipe(Tr(r,{header$:a})),v=c("navigation").pipe(Rr(r,{main$:p})),b=c("toc").pipe(function(t,e){return $(xr(t.media.tablet$,(function(r){return ln(r,t,e)})),pe(1))}(r,{header$:a,main$:p})),m=c("search-result").pipe(function(t,e){return $(Vt((function(r){return Kr(r,t,e)})),pe(1))}(r,{result$:f,query$:l.pipe(Rt("value"))})),w=c("tabs").pipe(Qr(r,{header$:a})),g=c("hero").pipe(Sr(r,{header$:a})),_=(Se("[data-md-toggle=drawer]"),Se("[data-md-toggle=search]")),x=(h=_,ut(h,"change").pipe(G((function(){return h.checked})))).pipe(Kt(400)),S=c("search-reset").pipe(Vt(Lr)),E=x.pipe(Vt((function(t){return!0===t?ut(window,"keydown"):st})));yt(x.pipe(At(u)),S,E).pipe(ee(c("search-query")),Ct((function(t){return t.focus()}))).subscribe(),yt(Re("print").pipe(At(u)),ut(window,"beforeprint")).subscribe((function(){var t=document.querySelectorAll("details");Array.prototype.forEach.call(t,(function(t){t.setAttribute("open","")}))}));var T={search:{query$:l,result$:m,reset$:S},main$:p,navigation$:v,toc$:b,tabs$:w,hero$:g},O=T.search,j=yn(T,["search"]);return yt.apply(void 0,bn(y(j),y(O))).subscribe(),{agent:r,state:T}}}])); //# sourceMappingURL=bundle.js.map