mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
9 lines
87 KiB
JavaScript
9 lines
87 KiB
JavaScript
!function(t,e){for(var n in e)t[n]=e[n]}(window,function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([,,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i}));var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=r||void 0!==t&&t||o}).call(this,n(6))},,function(t,e,n){
|
|
/*!
|
|
* clipboard.js v2.0.4
|
|
* https://zenorocha.github.io/clipboard.js
|
|
*
|
|
* Licensed MIT © Zeno Rocha
|
|
*/
|
|
var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";var r="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},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=c(n(1)),u=c(n(3)),s=c(n(4));function c(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.resolveOptions(n),r.listenClick(t),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,s.default)(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return l("action",t)}},{key:"defaultTarget",value:function(t){var e=l("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return l("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(u.default);function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=a},function(t,e,n){"use strict";var r,o="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},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(2),s=(r=u)&&r.__esModule?r:{default:r},c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return i(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,s.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,s.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=c},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(t),r.removeAllRanges(),r.addRange(o),e=r.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function o(){r.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],o=[];if(r&&e)for(var i=0,u=r.length;i<u;i++)r[i].fn!==e&&r[i].fn._!==e&&o.push(r[i]);return o.length?n[t]=o:delete n[t],this}},t.exports=n},function(t,e,n){var r=n(5),o=n(6);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(r.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(r.string(t))return function(t,e,n){return o(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var r=n(7);function o(t,e,n,r,o){var u=i.apply(this,arguments);return t.addEventListener(n,u,o),{destroy:function(){t.removeEventListener(n,u,o)}}}function i(t,e,n,o){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}t.exports=function(t,e,n,r,i){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return o(t,e,n,r,i)})))}},function(t,e){var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}t.exports=function(t,e){for(;t&&t.nodeType!==n;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}}])},t.exports=r()},,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";n.r(e);var r=n(4);function o(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function i(t){return function e(n){return 0===arguments.length||o(n)?e:t.apply(this,arguments)}}function u(t){return t}var s=i(u);function c(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var a=Object.prototype.toString,l=function(){return"[object Arguments]"===a.call(arguments)?function(t){return"[object Arguments]"===a.call(t)}:function(t){return c("callee",t)}}(),f=!{toString:null}.propertyIsEnumerable("toString"),h=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],p=function(){return arguments.propertyIsEnumerable("length")}(),d=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},y="function"!=typeof Object.keys||p?i((function(t){if(Object(t)!==t)return[];var e,n,r=[],o=p&&l(t);for(e in t)!c(e,t)||o&&"length"===e||(r[r.length]=e);if(f)for(n=h.length-1;n>=0;)c(e=h[n],t)&&!d(r,e)&&(r[r.length]=e),n-=1;return r})):i((function(t){return Object(t)!==t?[]:Object.keys(t)})),v=i((function(t){for(var e=y(t),n=e.length,r=[],o=0;o<n;)r[o]=t[e[o]],o+=1;return r})),b=function(t,e){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function m(t,e){function n(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function g(t){return"function"==typeof t}var w=!1,_={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;w=t},get useDeprecatedSynchronousErrorHandling(){return w}};function x(t){setTimeout((function(){throw t}),0)}var S={closed:!0,next:function(t){},error:function(t){if(_.useDeprecatedSynchronousErrorHandling)throw t;x(t)},complete:function(){}},E=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function T(t){return null!==t&&"object"==typeof t}var O=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),k=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var i=0;i<n.length;++i){n[i].remove(this)}if(g(r))try{r.call(this)}catch(t){e=t instanceof O?j(t.errors):[t]}if(E(o)){i=-1;for(var u=o.length;++i<u;){var s=o[i];if(T(s))try{s.unsubscribe()}catch(t){e=e||[],t instanceof O?e=e.concat(j(t.errors)):e.push(t)}}}if(e)throw new O(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof t){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function j(t){return t.reduce((function(t,e){return t.concat(e instanceof O?e.errors:e)}),[])}var A=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),I=function(t){function e(n,r,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=S;break;case 1:if(!n){i.destination=S;break}if("object"==typeof n){n instanceof e?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new N(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new N(i,n,r,o)}return i}return m(e,t),e.prototype[A]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(k),N=function(t){function e(e,n,r,o){var i,u=t.call(this)||this;u._parentSubscriber=e;var s=u;return g(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==S&&(g((s=Object.create(n)).unsubscribe)&&u.add(s.unsubscribe.bind(s)),s.unsubscribe=u.unsubscribe.bind(u))),u._context=s,u._next=i,u._error=r,u._complete=o,u}return m(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;_.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=_.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):x(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;x(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};_.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),_.useDeprecatedSynchronousErrorHandling)throw t;x(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!_.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return _.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(x(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(I);var C=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function P(){}function q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return M(t)}function M(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:P}var $=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=function(t,e,n){if(t){if(t instanceof I)return t;if(t[A])return t[A]()}return t||e||n?new I(t,e,n):new I(S)}(t,e,n);if(r?o.add(r.call(o,this.source)):o.add(this.source||_.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),_.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){_.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,r=e.destination,o=e.isStopped;if(n||o)return!1;t=r&&r instanceof I?r:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=L(e))((function(e,r){var o;o=n.subscribe((function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[C]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:M(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=L(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function L(t){if(t||(t=_.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var R=new $((function(t){return t.complete()}));function H(t){return t?function(t){return new $((function(e){return t.schedule((function(){return e.complete()}))}))}(t):R}function F(t){return t&&"function"==typeof t.schedule}var D=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}};function V(t,e){return new $((function(n){var r=new k,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function U(t,e){return e?V(t,e):new $(D(t))}function Y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return F(n)?(t.pop(),V(t,n)):U(t)}var z=function(t){function e(e,n,r){var o=t.call(this)||this;return o.parent=e,o.outerValue=n,o.outerIndex=r,o.index=0,o}return m(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}(I);function X(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var W=X(),B=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function G(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var J=function(t){if(t&&"function"==typeof t[C])return r=t,function(t){var e=r[C]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(B(t))return D(t);if(G(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,x),t};if(t&&"function"==typeof t[W])return e=t,function(t){for(var n=e[W]();;){var r=n.next();if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,r,o=T(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+o+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function K(t,e,n,r,o){if(void 0===o&&(o=new z(t,n,r)),!o.closed)return e instanceof $?e.subscribe(o):J(e)(o)}var Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(I);function Z(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new tt(t,e))}}var tt=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new et(t,this.project,this.thisArg))},t}(),et=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return m(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(I);function nt(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[C]}(t))return function(t,e){return new $((function(n){var r=new k;return r.add(e.schedule((function(){var o=t[C]();r.add(o.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(G(t))return function(t,e){return new $((function(n){var r=new k;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(B(t))return V(t,e);if(function(t){return t&&"function"==typeof t[W]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new $((function(n){var r,o=new k;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[W](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var o=r.next();t=o.value,e=o.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function rt(t,e){return e?nt(t,e):t instanceof $?t:new $(J(t))}var ot=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 it(t,this.project,this.concurrent))},t}(),it=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return m(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new z(this,void 0,void 0);this.destination.add(r),K(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Q);function ut(t){return t}function st(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(e,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(o){return o.pipe(t((function(t,r){return rt(e(t,r)).pipe(Z((function(e,o){return n(t,e,r,o)})))}),r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new ot(e,r))})}(ut,t)}function ct(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return F(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof $?t[0]:st(n)(U(t,r))}function at(t,e,n,r){return g(n)&&(r=n,n=void 0),r?at(t,e,n).pipe(Z((function(t){return E(t)?r.apply(void 0,t):r(t)}))):new $((function(r){!function t(e,n,r,o,i){var u;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,i),u=function(){return s.removeEventListener(n,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(n,r),u=function(){return c.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var a=e;e.addListener(n,r),u=function(){return a.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,f=e.length;l<f;l++)t(e[l],n,r,o,i)}o.add(u)}(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}function lt(t,e,n){return function(r){return r.lift(new ft(t,e,n))}}var ft=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new ht(t,this.nextOrObserver,this.error,this.complete))},t}(),ht=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=P,i._tapError=P,i._tapComplete=P,i._tapError=r||P,i._tapComplete=o||P,g(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||P,i._tapError=n.error||P,i._tapComplete=n.complete||P),i}return m(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}(I);function pt(t,e){return"function"==typeof e?function(n){return n.pipe(pt((function(n,r){return rt(t(n,r)).pipe(Z((function(t,o){return e(n,t,r,o)})))})))}:function(e){return e.lift(new yt(t))}}var dt,yt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new vt(t,this.project))},t}(),vt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return m(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new z(this,void 0,void 0);this.destination.add(o),this.innerSubscription=K(this,t,e,n,o)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(Q),bt=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),mt=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return m(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(k),gt=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return m(e,t),e}(I),wt=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return m(e,t),e.prototype[A]=function(){return new gt(this)},e.prototype.lift=function(t){var e=new _t(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new bt;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new bt;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new bt;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new bt;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new bt;return this.hasError?(t.error(this.thrownError),k.EMPTY):this.isStopped?(t.complete(),k.EMPTY):(this.observers.push(t),new mt(this,t))},e.prototype.asObservable=function(){var t=new $;return t.source=this,t},e.create=function(t,e){return new _t(t,e)},e}($),_t=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return m(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):k.EMPTY},e}(wt),xt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return m(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return m(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(k)),St=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return m(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(xt),Et=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),Tt=function(t){function e(n,r){void 0===r&&(r=Et.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return m(e,t),e.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,o):t.prototype.schedule.call(this,n,r,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(Et),Ot=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(Tt))(St);function kt(t){var e=t.error;t.subscriber.error(e)}dt||(dt={});var jt=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return Y(this.value);case"E":return t=this.error,new $(e?function(n){return e.schedule(kt,0,{error:t,subscriber:n})}:function(e){return e.error(t)});case"C":return H()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function At(t,e){return void 0===e&&(e=0),function(n){return n.lift(new It(t,e))}}var It=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 Nt(t,this.scheduler,this.delay))},t}(),Nt=function(t){function e(e,n,r){void 0===r&&(r=0);var o=t.call(this,e)||this;return o.scheduler=n,o.delay=r,o}return m(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new Ct(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}(I),Ct=function(){return function(t,e){this.notification=t,this.destination=e}}(),Pt=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var o=t.call(this)||this;return o.scheduler=r,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=e<1?1:e,o._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return m(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new qt(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new bt;if(this.isStopped||this.hasError?e=k.EMPTY:(this.observers.push(t),e=new mt(this,t)),o&&t.add(t=new Nt(t,o)),n)for(var u=0;u<i&&!t.closed;u++)t.next(r[u]);else for(u=0;u<i&&!t.closed;u++)t.next(r[u].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||Ot).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,o=r.length,i=0;i<o&&!(t-r[i].time<n);)i++;return o>e&&(i=Math.max(i,o-e)),i>0&&r.splice(0,i),r},e}(wt),qt=function(){return function(t,e){this.time=t,this.value=e}}();function Mt(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,o=void 0===r?Number.POSITIVE_INFINITY:r,i=t.windowTime,u=void 0===i?Number.POSITIVE_INFINITY:i,s=t.refCount,c=t.scheduler,a=0,l=!1,f=!1;return function(t){a++,e&&!l||(l=!1,e=new Pt(o,u,c),n=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){f=!0,e.complete()}}));var r=e.subscribe(this);this.add((function(){a--,r.unsubscribe(),n&&!f&&s&&0===a&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}function $t(t,e){return function(n){return n.lift(new Lt(t,e))}}var Lt=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Rt(t,this.predicate,this.thisArg))},t}(),Rt=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return m(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}(I);function Ht(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Z(function(t,e){return function(n){for(var r=n,o=0;o<e;o++){var i=r[t[o]];if(void 0===i)return;r=i}return r}}(t,n))(e)}}var Ft=new Tt(xt);function Dt(t,e){void 0===e&&(e=Ft);var n,r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new Vt(r,e))}}var Vt=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Ut(t,this.delay,this.scheduler))},t}(),Ut=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.delay=n,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return m(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,o=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var i=Math.max(0,n[0].time-r.now());this.schedule(t,i)}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,n=new Yt(e.now()+this.delay,t);this.queue.push(n),!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}(I),Yt=function(){return function(t,e){this.time=t,this.notification=e}}();function zt(t,e){return function(n){return n.lift(new Xt(t,e))}}var Xt=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Wt(t,this.compare,this.keySelector))},t}(),Wt=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return m(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(I);function Bt(t,e){return zt((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}function Gt(t,e){return e?pt((function(){return t}),e):pt((function(){return t}))}var Jt=new $(P);function Kt(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Qt(t,e,n))}}var Qt=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Zt(t,this.accumulator,this.seed,this.hasSeed))},t}(),Zt=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return m(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,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(I),te=n(2);function ee(t,e){return void 0===e&&(e=null),new ce({method:"GET",url:t,headers:e})}function ne(t,e,n){return new ce({method:"POST",url:t,body:e,headers:n})}function re(t,e){return new ce({method:"DELETE",url:t,headers:e})}function oe(t,e,n){return new ce({method:"PUT",url:t,body:e,headers:n})}function ie(t,e,n){return new ce({method:"PATCH",url:t,body:e,headers:n})}var ue=Z((function(t,e){return t.response}));function se(t,e){return ue(new ce({method:"GET",url:t,responseType:"json",headers:e}))}var ce=function(t){function e(e){var n=t.call(this)||this,r={async:!0,createXHR:function(){return this.crossDomain?function(){if(te.a.XMLHttpRequest)return new te.a.XMLHttpRequest;if(te.a.XDomainRequest)return new te.a.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(te.a.XMLHttpRequest)return new te.a.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(t=e[n],new te.a.ActiveXObject(t))break}catch(t){}return new te.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)r.url=e;else for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);return n.request=r,n}var n;return m(e,t),e.prototype._subscribe=function(t){return new ae(t,this.request)},e.create=((n=function(t){return new e(t)}).get=ee,n.post=ne,n.delete=re,n.put=oe,n.patch=ie,n.getJSON=se,n),e}($),ae=function(t){function e(e,n){var r=t.call(this,e)||this;r.request=n,r.done=!1;var o=n.headers=n.headers||{};return n.crossDomain||r.getHeader(o,"X-Requested-With")||(o["X-Requested-With"]="XMLHttpRequest"),r.getHeader(o,"Content-Type")||te.a.FormData&&n.body instanceof te.a.FormData||void 0===n.body||(o["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=r.serializeBody(n.body,r.getHeader(n.headers,"Content-Type")),r.send(),r}return m(e,t),e.prototype.next=function(t){this.done=!0;var e,n=this.xhr,r=this.request,o=this.destination;try{e=new le(t,n,r)}catch(t){return o.error(t)}o.next(e)},e.prototype.send=function(){var t=this.request,e=this.request,n=e.user,r=e.method,o=e.url,i=e.async,u=e.password,s=e.headers,c=e.body;try{var a=this.xhr=t.createXHR();this.setupEvents(a,t),n?a.open(r,o,i,n,u):a.open(r,o,i),i&&(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(te.a.FormData&&t instanceof te.a.FormData)return t;if(e){var n=e.indexOf(";");-1!==n&&(e=e.substring(0,n))}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 n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])},e.prototype.getHeader=function(t,e){for(var n in t)if(n.toLowerCase()===e.toLowerCase())return t[n]},e.prototype.setupEvents=function(t,e){var n=e.progressSubscriber;function r(t){var e,n=r,o=n.subscriber,i=n.progressSubscriber,u=n.request;i&&i.error(t);try{e=new pe(this,u)}catch(t){e=t}o.error(e)}if(t.ontimeout=r,r.request=e,r.subscriber=this,r.progressSubscriber=n,t.upload&&"withCredentials"in t){var o,i;if(n)o=function(t){o.progressSubscriber.next(t)},te.a.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=n;i=function(t){var e,n=i,r=n.progressSubscriber,o=n.subscriber,u=n.request;r&&r.error(t);try{e=new fe("ajax error",this,u)}catch(t){e=t}o.error(e)},t.onerror=i,i.request=e,i.subscriber=this,i.progressSubscriber=n}function u(t){}function s(t){var e=s,n=e.subscriber,r=e.progressSubscriber,o=e.request;if(4===this.readyState){var i=1223===this.status?204:this.status,u="text"===this.responseType?this.response||this.responseText:this.response;if(0===i&&(i=u?200:0),i<400)r&&r.complete(),n.next(t),n.complete();else{r&&r.error(t);var c=void 0;try{c=new fe("ajax error "+i,this,o)}catch(t){c=t}n.error(c)}}}t.onreadystatechange=u,u.subscriber=this,u.progressSubscriber=n,u.request=e,t.onload=s,s.subscriber=this,s.progressSubscriber=n,s.request=e},e.prototype.unsubscribe=function(){var e=this.done,n=this.xhr;!e&&n&&4!==n.readyState&&"function"==typeof n.abort&&n.abort(),t.prototype.unsubscribe.call(this)},e}(I),le=function(){return function(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=he(this.responseType,e)}}(),fe=function(){function t(t,e,n){return Error.call(this),this.message=t,this.name="AjaxError",this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=he(this.responseType,e),this}return t.prototype=Object.create(Error.prototype),t}();function he(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 pe=function(t,e){return fe.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this},de=function(){return ce.create}();function ye(t){return function(e){return e.lift(new ve(t))}}var ve=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new be(t,this.value))},t}(),be=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return m(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(I);function me(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return st(1)(Y.apply(void 0,t))}function ge(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return F(n)?(t.pop(),function(e){return me(t,e,n)}):function(e){return me(t,e)}}var we=at(document,"DOMContentLoaded");function _e(t,e){return void 0===e&&(e=document),e.querySelector(t)||void 0}function xe(t,e){return void 0===e&&(e=document),Array.from(e.querySelectorAll(t))}function Se(t){return{x:t.scrollLeft,y:t.scrollTop}}function Ee(){return function(t){return t.lift(new Te(t))}}var Te=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new Oe(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),Oe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return m(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(I),ke=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return m(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 k).add(this.source.subscribe(new Ae(this.getSubject(),this))),t.closed&&(this._connection=null,t=k.EMPTY)),t},e.prototype.refCount=function(){return Ee()(this)},e}($),je=function(){var t=ke.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,n){var r=t.call(this,e)||this;return r.connectable=n,r}return m(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}(gt);var Ie=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();function Ne(){return new wt}function Ce(){return function(t){return Ee()((e=Ne,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new Ie(r,n));var o=Object.create(t,je);return o.source=t,o.subjectFactory=r,o})(t));var e,n}}var Pe=at(window,"keydown");var qe=at(window,"hashchange");at(window,"popstate");function Me(t){var e=matchMedia(t);return function t(e,n,r){return r?t(e,n).pipe(Z((function(t){return E(t)?r.apply(void 0,t):r(t)}))):new $((function(t){var r,o=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(1===e.length?e[0]:e)};try{r=e(o)}catch(e){return void t.error(e)}if(g(n))return function(){return n(o,r)}}))}((function(t){return e.addListener((function(){return t(e.matches)}))})).pipe(ge(e.matches),Mt(1))}var $e={};function Le(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return F(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&E(t[0])&&(t=t[0]),U(t,r).lift(new Re(n))}var Re=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new He(t,this.resultSelector))},t}(),He=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return m(e,t),e.prototype._next=function(t){this.values.push($e),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(K(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){var i=this.values,u=i[n],s=this.toRespond?u===$e?--this.toRespond:this.toRespond:0;i[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Q),Fe=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},De=at(window,"scroll"),Ve=at(window,"resize");function Ue(){return{x:pageXOffset,y:pageYOffset}}function Ye(){return{width:innerWidth,height:innerHeight}}var ze=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u};function Xe(t,e){var n=e.header$;return Le([e.viewport$,n]).pipe(Z((function(e){var n=ze(e,2),r=n[0],o=r.offset,i=r.size,u=n[1].height;return{offset:{x:o.x-t.offsetLeft,y:o.y-t.offsetTop+u},size:i}})),Mt(1))}var We={leading:!0,trailing:!1};var Be=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new Ge(t,this.durationSelector,this.leading,this.trailing))},t}(),Ge=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.destination=e,i.durationSelector=n,i._leading=r,i._trailing=o,i._hasValue=!1,i}return m(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=K(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,o){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(Q);function Je(t,e){var n,r,o=e.tx$,i=at(t,"message").pipe(Ht("data"));return o.pipe((n=function(){return i},void 0===(r={leading:!0,trailing:!0})&&(r=We),function(t){return t.lift(new Be(n,r.leading,r.trailing))}),lt((function(e){return t.postMessage(e)})),Gt(i),Ce())}var Ke=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 Qe(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return o(n)?e:i((function(e){return t(n,e)}));default:return o(n)&&o(r)?e:o(n)?i((function(e){return t(e,r)})):o(r)?i((function(e){return t(n,e)})):t(n,r)}}}function Ze(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function tn(t,e,n){for(var r=0,o=n.length;r<o;){if(t(e,n[r]))return!0;r+=1}return!1}var en="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},nn=i((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function rn(t,e,n,r){var o=Ze(t);function i(t,e){return on(t,e,n.slice(),r.slice())}return!tn((function(t,e){return!tn(i,e,t)}),Ze(e),o)}function on(t,e,n,r){if(en(t,e))return!0;var o,i,u=nn(t);if(u!==nn(e))return!1;if(null==t||null==e)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(o=t.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!en(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!en(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var s=n.length-1;s>=0;){if(n[s]===t)return r[s]===e;s-=1}switch(u){case"Map":return t.size===e.size&&rn(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&rn(t.values(),e.values(),n.concat([t]),r.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=y(t);if(a.length!==y(e).length)return!1;var l=n.concat([t]),f=r.concat([e]);for(s=a.length-1;s>=0;){var h=a[s];if(!c(h,e)||!on(e[h],t[h],l,f))return!1;s-=1}return!0}var un=Qe((function(t,e){return on(t,e,[],[])}));function sn(t,e){return function(t,e,n){var r,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n<t.length;){if(0===(o=t[n])&&1/o===r)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(o=t[n])&&o!=o)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(un(t[n],e))return n;n+=1}return-1}(e,t,0)>=0}function cn(t,e,n){var r,o=typeof t;switch(o){case"string":case"number":return 0===t&&1/t==-1/0?!!n._items["-0"]||(e&&(n._items["-0"]=!0),!1):null!==n._nativeSet?e?(r=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===r):n._nativeSet.has(t):o in n._items?t in n._items[o]||(e&&(n._items[o][t]=!0),!1):(e&&(n._items[o]={},n._items[o][t]=!0),!1);case"boolean":if(o in n._items){var i=t?1:0;return!!n._items[o][i]||(e&&(n._items[o][i]=!0),!1)}return e&&(n._items[o]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?e?(r=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===r):n._nativeSet.has(t):o in n._items?!!sn(t,n._items[o])||(e&&n._items[o].push(t),!1):(e&&(n._items[o]=[t]),!1);case"undefined":return!!n._items[o]||(e&&(n._items[o]=!0),!1);case"object":if(null===t)return!!n._items.null||(e&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(t))in n._items?!!sn(t,n._items[o])||(e&&n._items[o].push(t),!1):(e&&(n._items[o]=[t]),!1)}}var an=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!cn(t,!0,this)},t.prototype.has=function(t){return cn(t,!1,this)},t}(),ln=Qe((function(t,e){for(var n=[],r=0,o=t.length,i=e.length,u=new an,s=0;s<i;s+=1)u.add(e[s]);for(;r<o;)u.add(t[r])&&(n[n.length]=t[r]),r+=1;return n})),fn=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return m(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(xt),hn=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<o&&(t=n.shift()));if(this.active=!1,e){for(;++r<o&&(t=n.shift());)t.unsubscribe();throw e}},e}(Tt))(fn);function pn(t){return function(e){return e.lift(new dn(t))}}var dn=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new yn(t,this.callback))},t}(),yn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new k(n)),r}return m(e,t),e}(I);function vn(t,e){t.setAttribute("data-md-state",e?"blur":"")}function bn(t){t.removeAttribute("data-md-state")}function mn(t,e){t.classList.toggle("md-nav__link--active",e)}function gn(t){t.classList.remove("md-nav__link--active")}function wn(t){t.style.backgroundColor="",t.style.webkitOverflowScrolling=""}var _n=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function xn(t,e){var n,r;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 o=_n(e),i=o.next();!i.done;i=o.next()){xn(t,i.value)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function Sn(t,e){for(var n,r,o,i,u=[],s=2;s<arguments.length;s++)u[s-2]=arguments[s];var c=document.createElement(t);if(e)try{for(var a=_n(y(e)),l=a.next();!l.done;l=a.next()){var f=l.value;"boolean"!=typeof e[f]?c.setAttribute(f,e[f]):e[f]&&c.setAttribute(f,"")}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var h=_n(u),p=h.next();!p.done;p=h.next()){xn(c,p.value)}}catch(t){o={error:t}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}return c}var En=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Tn(t),r=K(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),Tn=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return m(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(Q);function On(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new jn(r,n))}}var kn,jn=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new An(t,this.observables,this.project))},t}(),An=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.observables=n,o.project=r,o.toRespond=[];var i=n.length;o.values=new Array(i);for(var u=0;u<i;u++)o.toRespond.push(u);for(u=0;u<i;u++){var s=n[u];o.add(K(o,s,s,u))}return o}return m(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e;var i=this.toRespond;if(i.length>0){var u=i.indexOf(n);-1!==u&&i.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}(Q),In=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u};function Nn(t,e){var n=t.pipe($t((function(t){return t}))),r=t.pipe($t((function(t){return!t})));return q(pt((function(t){return Le([Y(t),n])})),pt((function(t){var n,o=In(t,2),i=o[0];return o[1]?e(i).pipe((n=r,function(t){return t.lift(new En(n))})):R})))}function Cn(t){return q(On(t),$t((function(t){return In(t,2)[1]})),Z((function(t){return In(t,1)[0]})))}function Pn(t,e){if(void 0===kn){var n=_e("#__lang");kn=JSON.parse(n.innerText)}if(void 0===kn[t])throw new ReferenceError("Invalid translation: "+t);return void 0!==e?kn[t].replace("#",e):kn[t]}function qn(t,e){t.appendChild(e)}var Mn=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$n=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},Ln=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat($n(arguments[e]));return t};function Rn(t){var e="sticky"===getComputedStyle(t).position;return Y({sticky:e,height:e?t.offsetHeight:0})}var Hn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u};function Fn(t,e){return void 0===e&&(e=0),q(Z((function(t){return t.offset.y>=e})),zt(),At(hn),lt((function(e){!function(t,e){t.setAttribute("data-md-state",e?"hidden":"")}(t,e)})),pn((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}var Dn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u};function Vn(t,e){var n=e.main$,r=e.viewport$,o=parseFloat(getComputedStyle(t.parentElement).getPropertyValue("padding-top")),i=Le([r,n]).pipe(Z((function(t){var e=Dn(t,2),n=e[0].offset.y,r=e[1],i=r.offset;return r.height-o+Math.min(o,Math.max(0,n-i))}))),u=Le([r,n]).pipe(Z((function(t){var e=Dn(t,2);return e[0].offset.y>=e[1].offset+o})));return Le([i,u]).pipe(Z((function(t){var e=Dn(t,2);return{height:e[0],lock:e[1]}})),zt(un),Mt(1))}function Un(t){return q(At(hn),lt((function(e){var n=e.height,r=e.lock;!function(t,e){t.style.height=e+"px"}(t,n),function(t,e){t.setAttribute("data-md-state",e?"lock":"")}(t,r)})),pn((function(){!function(t){t.style.height=""}(t),function(t){t.removeAttribute("data-md-state")}(t)})))}var Yn=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function zn(t){return null!=t&&"function"==typeof t["@@transducer/step"]}function Xn(t,e,n){return function(){if(0===arguments.length)return n();var r=Array.prototype.slice.call(arguments,0),o=r.pop();if(!Yn(o)){for(var i=0;i<t.length;){if("function"==typeof o[t[i]])return o[t[i]].apply(o,r);i+=1}if(zn(o)){var u=e.apply(null,r);return u(o)}}return n.apply(this,arguments)}}var Wn=function(){return this.xf["@@transducer/init"]()},Bn=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Wn,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.last=e),t},t}(),Gn=Qe(Xn([],Qe((function(t,e){return new Bn(t,e)})),(function(t,e){for(var n=e.length-1;n>=0;){if(t(e[n]))return e[n];n-=1}}))),Jn=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Kn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},Qn=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Kn(arguments[e]));return t};var Zn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u};function tr(t){return t.replace(/(?:^|\s+)[*+-:^~]+(?=\s+|$)/g,"").trim().replace(/\s+|\b$/g,"* ")}function er(t,e){var n=(void 0===e?{}:e).transform,r=void 0===n?tr:n;return Le([at(t,"keyup").pipe(Z((function(){return r(t.value)})),ge(t.value),zt()),function(t){var e=at(t,"focus"),n=at(t,"blur");return ct(e.pipe(ye(!0)),n.pipe(ye(!1))).pipe(ge(t===document.activeElement),Mt(1))}(t)]).pipe(Z((function(t){var e=Zn(t,2);return{value:e[0],focus:e[1]}})),Mt(1))}function nr(t){return at(t,"click").pipe(ye(void 0))}var rr={container:"md-clipboard md-icon"};var or=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},ir=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(or(arguments[e]));return t},ur={item:"md-search-result__item",link:"md-search-result__link",article:"md-search-result__article md-search-result__article--document",section:"md-search-result__article",title:"md-search-result__title",teaser:"md-search-result__teaser"};function sr(t){var e=t.article,n=t.sections,r=ir([e],n).map((function(t){var e=t.location,n=t.title,r=t.text;return Sn("a",{href:e,class:ur.link,tabIndex:-1},Sn("article",{class:"parent"in t?ur.section:ur.article},Sn("h1",{class:ur.title},n),r.length?Sn("p",{class:ur.teaser},function(t,e){var n=e;if(t.length>n){for(;" "!==t[n]&&--n>0;);return t.substring(0,n)+"..."}return t}(r,320)):void 0))}));return Sn("li",{class:ur.item},r)}var cr={facts:"md-source__facts",fact:"md-source__fact"};var ar={wrapper:"md-typeset__scrollwrap",table:"md-typeset__table"};var lr=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u};function fr(t,e){var n=e.query$,r=e.fetch$,o=_e(".md-search-result__list",t),i=_e(".md-search-result__meta",t);return q(On(n),Z((function(t){var e=lr(t,2),n=e[0];return e[1].value?function(t,e){switch(e){case 0:t.textContent=Pn("search.result.none");break;case 1:t.textContent=Pn("search.result.one");break;default:t.textContent=Pn("search.result.other",e.toString())}}(i,n.length):function(t){t.textContent=Pn("search.result.placeholder")}(i),n})),pt((function(e){return r.pipe(At(hn),Kt((function(n){for(var r=t.parentElement;n<e.length&&(qn(o,sr(e[n++])),!(r.scrollHeight-r.offsetHeight>16)););return n}),0),ye(e),pn((function(){!function(t){t.innerHTML=""}(o)})))})))}function hr(t,e){t.checked!==e&&t.click()}function pr(t){return at(t,"change").pipe(Z((function(){return t.checked})),ge(t.checked))}var dr=function(){return(dr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},yr=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t){return q(pt((function(e){return function(t,e){return Xe(t,e).pipe(Fn(t,20)).pipe(Z((function(t){return{hidden:t}})))}(e,t)})),Mt(1))}function br(t){return q(Nn(t.screen$,(function(e){return function(t,e){return Xe(t,e).pipe(Fn(t,8)).pipe(Z((function(t){return{hidden:t}})))}(e,t)})),Mt(1))}var mr,gr,wr=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u};function _r(t,e){var n=e.header$,r=e.main$,o=e.viewport$,i=Vn(t,{main$:r,viewport$:o}).pipe(Un(t)),u=xe(".md-nav__link",t),s=function(t,e){var n,r,o=e.header$,i=e.viewport$,u=new Map;try{for(var s=Mn(t),c=s.next();!c.done;c=s.next()){var a=c.value,l=_e('[id="'+decodeURIComponent(a.hash.substring(1))+'"]');void 0!==l&&u.set(a,l)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}var f=o.pipe(Z((function(t){return 18+t.height})));return i.pipe(Bt("size"),Z((function(){var t=[];return Ln(u).reduce((function(e,n){for(var r=$n(n,2),o=r[0],i=r[1];t.length;){if(!(u.get(t[t.length-1]).tagName>=i.tagName))break;t.pop()}return e.set(Ke(t=Ln(t,[o])),i.offsetTop)}),new Map)})),pt((function(t){return Le(i,f).pipe(Kt((function(t,e){for(var n=$n(t,2),r=n[0],o=n[1],i=$n(e,2),u=i[0].offset.y,s=i[1];o.length;){if(!($n(o[0],2)[1]-s<u))break;r=Ln(r,[o.shift()])}for(;r.length;){if(!($n(r[r.length-1],2)[1]-s>=u))break;o=Ln([r.pop()],o)}return[r,o]}),[[],Ln(t)]),zt((function(t,e){return t[0]===e[0]&&t[1]===e[1]})))}))).pipe(Z((function(t){var e=$n(t,2),n=e[0],r=e[1];return{prev:n.map((function(t){return $n(t,1)[0]})),next:r.map((function(t){return $n(t,1)[0]}))}})),Kt((function(t,e){var n=Math.max(0,Math.min(e.prev.length,t.prev.length)-1),r=Math.max(e.prev.length,t.prev.length);return{prev:e.prev.slice(n,r+1),next:ln(e.next,t.next)}}),{prev:[],next:[]})).pipe(Mt(1))}(u,{header$:n,viewport$:o}).pipe(function(t){return q(At(hn),lt((function(t){var e,n,r,o,i=t.prev,u=t.next;try{for(var s=Mn(u),c=s.next();!c.done;c=s.next()){gn(f=$n(c.value,1)[0]),bn(f)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}try{for(var a=Mn(i.entries()),l=a.next();!l.done;l=a.next()){var f,h=$n(l.value,2),p=h[0];mn(f=$n(h[1],1)[0],p===i.length-1),vn(f,!0)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}})),pn((function(){var e,n;try{for(var r=Mn(t),o=r.next();!o.done;o=r.next()){var i=o.value;gn(i),bn(i)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}})))}(u));return Le([i,s]).pipe(Z((function(t){var e=wr(t,2);return{sidebar:e[0],anchors:e[1]}})))}function xr(t){return t.type===gr.RESULT}!function(t){t[t.STRING=0]="STRING",t[t.BINARY=1]="BINARY"}(mr||(mr={})),function(t){t[t.SETUP=0]="SETUP",t[t.DUMP=1]="DUMP",t[t.QUERY=2]="QUERY",t[t.RESULT=3]="RESULT"}(gr||(gr={}));var Sr=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Er(t,e){return de({url:"https://api.github.com/"+(void 0!==e?"repos/"+t+"/"+e:"users/"+t),responseType:"json"}).pipe($t((function(t){return 200===t.status})),Ht("response"),Mt(1))}function Tr(t){return q(Z((function(t){return xe("nav",t)})),pt((function(t){return function(t){var e,n,r=new Map;try{for(var o=Jn(t),i=o.next();!i.done;i=o.next()){var u=i.value,s=_e("label",u);if(void 0!==s){var c=_e("#"+s.htmlFor);r.set(c,u)}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return ct.apply(void 0,Qn(Qn(r.keys()).map((function(t){return at(t,"change")})))).pipe(Z((function(){return _e(".md-nav__list",r.get(Gn((function(t){return t.checked}),Qn(r.keys()))))}))).pipe(Z((function(t){return{next:t}})),Kt((function(t,e){return{prev:t.next,next:e.next}})),Mt(1))}(t).pipe(function(t){return q(At(hn),lt((function(t){var e=t.prev;e&&wn(e)})),Dt(250),At(hn),lt((function(t){var e,n=t.next;(e=n).style.backgroundColor="yellow",e.style.webkitOverflowScrolling="touch"})),pn((function(){var e,n;try{for(var r=Jn(t),o=r.next();!o.done;o=r.next()){wn(_e(".md-nav__list",o.value))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}})))}(t),Z((function(t){return{layer:t}})))})))}function Or(t){return q(pt((function(e){return t.screen$.pipe(pt((function(n){return n?Y(e).pipe(function(t){return q(pt((function(e){return Vn(e,t).pipe(Un(e),Z((function(t){return{sidebar:t}})))})))}(t)):Y(e).pipe(Tr())})))})),Mt(1))}function kr(t){var e=t.query$,n=t.result$,r=t.viewport$;return q(pt((function(t){var o=t.parentElement,i=function(t,e){var n=e.viewport$;return ct(at(t,"scroll"),n.pipe(Bt("size"))).pipe(Z((function(){return Se(t)})),ge(Se(t)),Mt(1))}(o,{viewport$:r}).pipe(Z((function(t){return t.y>=o.scrollHeight-o.offsetHeight-16})),zt(),$t(s));return n.pipe(fr(t,{query$:e,fetch$:i}))})),Mt(1))}n.d(e,"initialize",(function(){return Pr}));var jr=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},Ar=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},Ir=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Nr=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Ar(arguments[e]));return t};document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js"),navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.documentElement.classList.add("ios");var Cr=["container","header","header-title","hero","main","navigation","search","search-query","search-reset","search-result","tabs","toc"];function Pr(t){var e,n;if(!function(t){return"object"==typeof t&&"string"==typeof t.base&&"object"==typeof t.worker&&"string"==typeof t.worker.search&&"string"==typeof t.worker.packer}(t))throw new SyntaxError("Invalid configuration: "+JSON.stringify(t));(function(){var t=_e(".md-source[href]");if(console.log(t),!t)return R;var e=sessionStorage.getItem("repository");if(e)return Y(JSON.parse(e));function n(t){return t>999?(t/1e3).toFixed(1)+"k":""+t}var r=Ar(t.href.match(/^.+github\.com\/([^\/]+)\/?([^\/]+)?.*$/i),3),o=r[1],i=r[2];return o&&i?Er(o,i).pipe(Z((function(t){var e=t.stargazers_count,r=t.forks_count;return[n(e||0)+" Stars",n(r||0)+" Forks"]})),lt((function(t){return sessionStorage.setItem("repository",JSON.stringify(t))}))):o?Er(o).pipe(Z((function(t){return[n(t.public_repos||0)+" Repositories"]})),lt((function(t){return sessionStorage.setItem("repository",JSON.stringify(t))}))):Y([])})().subscribe((function(t){t.length&&xe(".md-source__repository").forEach((function(e){e.dataset.mdState="done",e.appendChild(function(t){return Sn("ul",{class:cr.facts},t.map((function(t){return Sn("li",{class:cr.fact},t)})))}(t))}))}));var o=we.pipe(ye(document),Mt(1)),i=qe.pipe(Z((function(){return location.hash})),$t((function(t){return t.length>0})),Ce()),u=Le([ct(De,Ve).pipe(Z(Ue),ge(Ue())),Ve.pipe(Z(Ye),ge(Ye()))]).pipe(Z((function(t){var e=Fe(t,2);return{offset:e[0],size:e[1]}})),Mt(1)),c=Me("(min-width: 960px)"),a=Me("(min-width: 1220px)"),l=function(t,e){return e.document$.pipe(Z((function(e){return t.reduce((function(t,n){var r,o=_e("[data-md-component="+n+"]",e);return dr(dr({},t),void 0!==o?((r={})[n]=o,r):{})}),{})})),Kt((function(t,e){var n,r;try{for(var o=yr(y(t)),i=o.next();!i.done;i=o.next()){var u=i.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]=_e("[data-md-component="+u+"]")}}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t}))).pipe(Mt(1))}(Cr,{document$:o}),f=function(t){return l.pipe(function(t){return q(pt((function(e){return void 0!==e[t]?Y(e[t]):Jt})))}(t))},h=f("header").pipe(pt(Rn));f("header").pipe(pt((function(t){return p.pipe(function(t){return q(Bt("active"),At(hn),lt((function(e){var n=e.active;!function(t,e){t.setAttribute("data-md-state",e?"shadow":"")}(t,n)})),pn((function(){!function(t){t.removeAttribute("data-md-state")}(t)})))}(t))}))).subscribe();var p=f("main").pipe(pt((function(t){return function(t,e){var n=e.header$,r=e.viewport$,o=n.pipe(Ht("height")),i=Le([r,o]).pipe(Z((function(e){var n=Hn(e,2),r=n[0],o=r.offset.y,i=r.size.height,u=n[1],s=t.offsetTop,c=t.offsetHeight+s;return i-Math.max(0,s-o,u)-Math.max(0,i+o-c)})),zt()),u=Le([r,o]).pipe(Z((function(e){var n=Hn(e,2),r=n[0].offset.y,o=n[1];return r>=t.offsetTop-o})),zt());return Le([i,o,u]).pipe(Z((function(e){var n=Hn(e,3),r=n[0],o=n[1],i=n[2];return{offset:t.offsetTop-o,height:r,active:i}})),Mt(1))}(t,{header$:h,viewport$:u})})),Mt(1)),d=_e("[data-md-toggle=drawer]"),b=f("search-query").pipe(pt((function(t){return er(t)}))),m=function(t,e){var n=e.base,r=e.query$,o=new Worker(t),i=new URL(n,location.href),u=new wt,s=Je(o,{tx$:u}).pipe(Z((function(t){var e,n,r,o;if(xr(t))try{for(var u=Sr(t.data),s=u.next();!s.done;s=u.next()){var c=s.value,a=c.article,l=c.sections;a.location=i+"/"+a.location;try{for(var f=(r=void 0,Sr(l)),h=f.next();!h.done;h=f.next()){var p=h.value;p.location=i+"/"+p.location}}catch(t){r={error:t}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}return t})));return de({url:n+"/search/search_index.json",responseType:"json",withCredentials:!0}).pipe(Ht("response"),Z((function(t){return{type:gr.SETUP,data:t}}))).subscribe(u.next.bind(u)),r.pipe(Bt("value"),Z((function(t){return{type:gr.QUERY,data:t.value}}))).subscribe(u.next.bind(u)),{tx$:u,rx$:s}}(t.worker.search,{base:t.base,query$:b}).rx$.pipe($t(xr),Ht("data")),g=_e("[data-md-toggle=search]"),w=pr(g).pipe(Dt(400));b.pipe(Bt("focus"),lt((function(t){t.focus&&hr(g,t.focus)}))).subscribe();var _,x,S,E=f("search-reset").pipe(pt(nr)),T=f("navigation").pipe(Or({main$:p,viewport$:u,screen$:c})),O=f("toc").pipe(q(Nn((_={header$:h,main$:p,viewport$:u,tablet$:a}).tablet$,(function(t){return _r(t,_)})),Mt(1))),k=f("search-result").pipe(kr({viewport$:u,result$:m,query$:b.pipe(Bt("value"))})),j=f("tabs").pipe(br({header$:h,viewport$:u,screen$:c})),A=f("hero").pipe(vr({header$:h,viewport$:u,screen$:c})),I=Pe.pipe($t((function(t){return!(t.shiftKey||t.metaKey||t.ctrlKey)})),Z((function(t){return{type:t.code,claim:function(){t.preventDefault(),t.stopPropagation()}}})),Ce());if(I.pipe(Cn((x=w,x.pipe(Z((function(t){return!t})))))).subscribe((function(t){document.activeElement&&(["TEXTAREA","SELECT","INPUT"].includes(document.activeElement.tagName)||document.activeElement instanceof HTMLElement&&document.activeElement.isContentEditable)||"KeyS"!==t.type&&"KeyF"!==t.type||hr(g,!0)})),I.pipe(Cn(w),lt((function(t){if(console.log("jo",t),"Enter"===t.type&&(document.activeElement===_e("[data-md-component=search-query]")?t.claim():hr(g,!1)),"ArrowUp"===t.type||"ArrowDown"===t.type){var e=xe("[data-md-component=search-query], [data-md-component=search-result] [href]"),n=Math.max(0,e.findIndex((function(t){return t===document.activeElement})));e[Math.max(0,(n+e.length+("ArrowUp"===t.type?-1:1))%e.length)].focus(),t.claim()}else"Escape"===t.type||"Tab"===t.type?(hr(g,!1),_e("[data-md-component=search-query]").blur()):g.checked&&document.activeElement!==_e("[data-md-component=search-query]")&&_e("[data-md-component=search-query]").focus()}))).subscribe(),ct(w.pipe($t(s)),E).pipe(Gt(f("search-query")),lt((function(t){return t.focus()}))).subscribe(),ct(Me("print").pipe($t(s)),at(window,"beforeprint")).subscribe((function(){var t=xe("details");Array.prototype.forEach.call(t,(function(t){t.setAttribute("open","")}))})),i.subscribe((function(){hr(d,!1),hr(g,!1)})),r.isSupported()){var N=xe("pre > code");try{for(var C=Ir(N.entries()),P=C.next();!P.done;P=C.next()){var M=Ar(P.value,2),$=M[0],L=M[1],H=L.parentElement;H.id="__code_"+$,H.insertBefore((S=H.id,Sn("button",{class:rr.container,title:Pn("clipboard.copy"),"data-clipboard-target":"#"+S+" code"},"")),L)}}catch(t){e={error:t}}finally{try{P&&!P.done&&(n=C.return)&&n.call(C)}finally{if(e)throw e.error}}new r(".md-clipboard")}var F=xe("table:not([class])"),D=document.createElement("table");F.forEach((function(t){t.replaceWith(D),D.replaceWith(function(t){return Sn("div",{class:ar.wrapper},Sn("div",{class:ar.table},t))}(t))}));var V=0;a.pipe(pt((function(t){return t?R:pr(g)})),pt((function(t){return t?(console.log("ACTIVE"),Y(document.body).pipe(lt((function(){return V=window.pageYOffset})),Dt(400),lt((function(){window.scrollTo(0,0),console.log("scrolled... to top, locked body"),document.body.dataset.mdState="lock"})))):(console.log("INACTIVE"),Y(document.body).pipe(lt((function(){return document.body.dataset.mdState=""})),Dt(100),lt((function(){window.scrollTo(0,V)}))))}))).subscribe((function(t){return console.log("SEARCHLOCK",t)}));var U={search:{query$:b,result$:k,reset$:E},main$:p,navigation$:T,toc$:O,tabs$:j,hero$:A},z=U.search,X=jr(U,["search"]);return ct.apply(void 0,Nr(v(X),v(z))).subscribe(),{state:U}}}]));
|
|
//# sourceMappingURL=bundle.65b5374b.min.js.map
|