mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
33 lines
70 KiB
JavaScript
33 lines
70 KiB
JavaScript
(()=>{var Po=Object.create,_t=Object.defineProperty,Vo=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty,Uo=Object.getOwnPropertyNames,Wo=Object.getOwnPropertyDescriptor;var No=e=>_t(e,"__esModule",{value:!0});var Ht=(e,t)=>()=>(t||(t={exports:{}},e(t.exports,t)),t.exports);var zo=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Uo(t))!Do.call(e,n)&&n!=="default"&&_t(e,n,{get:()=>t[n],enumerable:!(r=Wo(t,n))||r.enumerable});return e},nt=e=>e&&e.__esModule?e:zo(No(_t(e!=null?Po(Vo(e)):{},"default",{value:e,enumerable:!0})),e);var ur=Ht((Ct,cr)=>{(function(e,t){typeof Ct=="object"&&typeof cr!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Ct,function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(y){return!!(y&&y!==document&&y.nodeName!=="HTML"&&y.nodeName!=="BODY"&&"classList"in y&&"contains"in y.classList)}function u(y){var Ke=y.type,At=y.tagName;return!!(At==="INPUT"&&a[Ke]&&!y.readOnly||At==="TEXTAREA"&&!y.readOnly||y.isContentEditable)}function s(y){y.classList.contains("focus-visible")||(y.classList.add("focus-visible"),y.setAttribute("data-focus-visible-added",""))}function l(y){!y.hasAttribute("data-focus-visible-added")||(y.classList.remove("focus-visible"),y.removeAttribute("data-focus-visible-added"))}function p(y){y.metaKey||y.altKey||y.ctrlKey||(c(r.activeElement)&&s(r.activeElement),n=!0)}function m(y){n=!1}function A(y){!c(y.target)||(n||u(y.target))&&s(y.target)}function I(y){!c(y.target)||(y.target.classList.contains("focus-visible")||y.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),l(y.target))}function T(y){document.visibilityState==="hidden"&&(o&&(n=!0),W())}function W(){document.addEventListener("mousemove",H),document.addEventListener("mousedown",H),document.addEventListener("mouseup",H),document.addEventListener("pointermove",H),document.addEventListener("pointerdown",H),document.addEventListener("pointerup",H),document.addEventListener("touchmove",H),document.addEventListener("touchstart",H),document.addEventListener("touchend",H)}function ne(){document.removeEventListener("mousemove",H),document.removeEventListener("mousedown",H),document.removeEventListener("mouseup",H),document.removeEventListener("pointermove",H),document.removeEventListener("pointerdown",H),document.removeEventListener("pointerup",H),document.removeEventListener("touchmove",H),document.removeEventListener("touchstart",H),document.removeEventListener("touchend",H)}function H(y){y.target.nodeName&&y.target.nodeName.toLowerCase()==="html"||(n=!1,ne())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",T,!0),W(),r.addEventListener("focus",A,!0),r.addEventListener("blur",I,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var Xt=Ht((rt,Jt)=>{(function(t,r){typeof rt=="object"&&typeof Jt=="object"?Jt.exports=r():typeof define=="function"&&define.amd?define([],r):typeof rt=="object"?rt.ClipboardJS=r():t.ClipboardJS=r()})(rt,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(n,o,i){r.o(n,o)||Object.defineProperty(n,o,{enumerable:!0,get:i})},r.r=function(n){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,o){if(o&1&&(n=r(n)),o&8||o&4&&typeof n=="object"&&n&&n.__esModule)return n;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),o&2&&typeof n!="string")for(var a in n)r.d(i,a,function(c){return n[c]}.bind(null,a));return i},r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,"a",o),o},r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},r.p="",r(r.s=6)}([function(e,t){function r(n){var o;if(n.nodeName==="SELECT")n.focus(),o=n.value;else if(n.nodeName==="INPUT"||n.nodeName==="TEXTAREA"){var i=n.hasAttribute("readonly");i||n.setAttribute("readonly",""),n.select(),n.setSelectionRange(0,n.value.length),i||n.removeAttribute("readonly"),o=n.value}else{n.hasAttribute("contenteditable")&&n.focus();var a=window.getSelection(),c=document.createRange();c.selectNodeContents(n),a.removeAllRanges(),a.addRange(c),o=a.toString()}return o}e.exports=r},function(e,t){function r(){}r.prototype={on:function(n,o,i){var a=this.e||(this.e={});return(a[n]||(a[n]=[])).push({fn:o,ctx:i}),this},once:function(n,o,i){var a=this;function c(){a.off(n,c),o.apply(i,arguments)}return c._=o,this.on(n,c,i)},emit:function(n){var o=[].slice.call(arguments,1),i=((this.e||(this.e={}))[n]||[]).slice(),a=0,c=i.length;for(a;a<c;a++)i[a].fn.apply(i[a].ctx,o);return this},off:function(n,o){var i=this.e||(this.e={}),a=i[n],c=[];if(a&&o)for(var u=0,s=a.length;u<s;u++)a[u].fn!==o&&a[u].fn._!==o&&c.push(a[u]);return c.length?i[n]=c:delete i[n],this}},e.exports=r,e.exports.TinyEmitter=r},function(e,t,r){var n=r(3),o=r(4);function i(s,l,p){if(!s&&!l&&!p)throw new Error("Missing required arguments");if(!n.string(l))throw new TypeError("Second argument must be a String");if(!n.fn(p))throw new TypeError("Third argument must be a Function");if(n.node(s))return a(s,l,p);if(n.nodeList(s))return c(s,l,p);if(n.string(s))return u(s,l,p);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(s,l,p){return s.addEventListener(l,p),{destroy:function(){s.removeEventListener(l,p)}}}function c(s,l,p){return Array.prototype.forEach.call(s,function(m){m.addEventListener(l,p)}),{destroy:function(){Array.prototype.forEach.call(s,function(m){m.removeEventListener(l,p)})}}}function u(s,l,p){return o(document.body,s,l,p)}e.exports=i},function(e,t){t.node=function(r){return r!==void 0&&r instanceof HTMLElement&&r.nodeType===1},t.nodeList=function(r){var n=Object.prototype.toString.call(r);return r!==void 0&&(n==="[object NodeList]"||n==="[object HTMLCollection]")&&"length"in r&&(r.length===0||t.node(r[0]))},t.string=function(r){return typeof r=="string"||r instanceof String},t.fn=function(r){var n=Object.prototype.toString.call(r);return n==="[object Function]"}},function(e,t,r){var n=r(5);function o(c,u,s,l,p){var m=a.apply(this,arguments);return c.addEventListener(s,m,p),{destroy:function(){c.removeEventListener(s,m,p)}}}function i(c,u,s,l,p){return typeof c.addEventListener=="function"?o.apply(null,arguments):typeof s=="function"?o.bind(null,document).apply(null,arguments):(typeof c=="string"&&(c=document.querySelectorAll(c)),Array.prototype.map.call(c,function(m){return o(m,u,s,l,p)}))}function a(c,u,s,l){return function(p){p.delegateTarget=n(p.target,u),p.delegateTarget&&l.call(c,p)}}e.exports=i},function(e,t){var r=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function o(i,a){for(;i&&i.nodeType!==r;){if(typeof i.matches=="function"&&i.matches(a))return i;i=i.parentNode}}e.exports=o},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n),i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},a=function(){function S(d,b){for(var x=0;x<b.length;x++){var _=b[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(d,_.key,_)}}return function(d,b,x){return b&&S(d.prototype,b),x&&S(d,x),d}}();function c(S,d){if(!(S instanceof d))throw new TypeError("Cannot call a class as a function")}var u=function(){function S(d){c(this,S),this.resolveOptions(d),this.initSelection()}return a(S,[{key:"resolveOptions",value:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=b.action,this.container=b.container,this.emitter=b.emitter,this.target=b.target,this.text=b.text,this.trigger=b.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var b=this,x=document.documentElement.getAttribute("dir")=="rtl";this.removeFake(),this.fakeHandlerCallback=function(){return b.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[x?"right":"left"]="-9999px";var _=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=_+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(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=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var b=void 0;try{b=document.execCommand(this.action)}catch(x){b=!1}this.handleResult(b)}},{key:"handleResult",value:function(b){this.emitter.emit(b?"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(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=b,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(b){if(b!==void 0)if(b&&(typeof b=="undefined"?"undefined":i(b))==="object"&&b.nodeType===1){if(this.action==="copy"&&b.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(b.hasAttribute("readonly")||b.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=b}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),S}(),s=u,l=r(1),p=r.n(l),m=r(2),A=r.n(m),I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},T=function(){function S(d,b){for(var x=0;x<b.length;x++){var _=b[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(d,_.key,_)}}return function(d,b,x){return b&&S(d.prototype,b),x&&S(d,x),d}}();function W(S,d){if(!(S instanceof d))throw new TypeError("Cannot call a class as a function")}function ne(S,d){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:S}function H(S,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);S.prototype=Object.create(d&&d.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(S,d):S.__proto__=d)}var y=function(S){H(d,S);function d(b,x){W(this,d);var _=ne(this,(d.__proto__||Object.getPrototypeOf(d)).call(this));return _.resolveOptions(x),_.listenClick(b),_}return T(d,[{key:"resolveOptions",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof x.action=="function"?x.action:this.defaultAction,this.target=typeof x.target=="function"?x.target:this.defaultTarget,this.text=typeof x.text=="function"?x.text:this.defaultText,this.container=I(x.container)==="object"?x.container:document.body}},{key:"listenClick",value:function(x){var _=this;this.listener=A()(x,"click",function(Ye){return _.onClick(Ye)})}},{key:"onClick",value:function(x){var _=x.delegateTarget||x.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s({action:this.action(_),target:this.target(_),text:this.text(_),container:this.container,trigger:_,emitter:this})}},{key:"defaultAction",value:function(x){return Ke("action",x)}},{key:"defaultTarget",value:function(x){var _=Ke("target",x);if(_)return document.querySelector(_)}},{key:"defaultText",value:function(x){return Ke("text",x)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],_=typeof x=="string"?[x]:x,Ye=!!document.queryCommandSupported;return _.forEach(function($o){Ye=Ye&&!!document.queryCommandSupported($o)}),Ye}}]),d}(p.a);function Ke(S,d){var b="data-clipboard-"+S;if(!!d.hasAttribute(b))return d.getAttribute(b)}var At=t.default=y}]).default})});var vo=Ht((ev,bo)=>{"use strict";var ki=/["'&<>]/;bo.exports=ji;function ji(e){var t=""+e,r=ki.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=n}return a!==i?o+t.substring(a,i):o}});var Gy=nt(ur());var kt=function(e,t){return kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])},kt(e,t)};function D(e,t){kt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function lr(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function c(l){try{s(n.next(l))}catch(p){a(p)}}function u(l){try{s(n.throw(l))}catch(p){a(p)}}function s(l){l.done?i(l.value):o(l.value).then(c,u)}s((n=n.apply(e,t||[])).next())})}function fr(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(s){return function(l){return u([s,l])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,o=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1],i=s;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(s);break}i[2]&&r.ops.pop(),r.trys.pop();continue}s=t.call(e,r)}catch(l){s=[6,l],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function re(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(c){a={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function F(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(jt(arguments[t]));return e}function pr(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof re=="function"?re(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(c,u){a=e[i](a),o(c,u,a.done,a.value)})}}function o(i,a,c,u){Promise.resolve(u).then(function(s){i({value:s,done:c})},a)}}function g(e){return typeof e=="function"}function ot(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var it=ot(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
`):"",this.name="UnsubscriptionError",this.errors=r}});function de(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var G=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))try{for(var c=re(a),u=c.next();!u.done;u=c.next()){var s=u.value;s.remove(this)}}catch(T){t={error:T}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else a==null||a.remove(this);var l=this.initialTeardown;if(g(l))try{l()}catch(T){i=T instanceof it?T.errors:[T]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var m=re(p),A=m.next();!A.done;A=m.next()){var I=A.value;try{mr(I)}catch(T){i=i??[],T instanceof it?i=F(i,T.errors):i.push(T)}}}catch(T){n={error:T}}finally{try{A&&!A.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}}if(i)throw new it(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)mr(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=(r=this._teardowns)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&de(r,t)},e.prototype.remove=function(t){var r=this._teardowns;r&&de(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Ft=G.EMPTY;function at(e){return e instanceof G||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function mr(e){g(e)?e():e.unsubscribe()}var le={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ie={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ie.delegate;return((r==null?void 0:r.setTimeout)||setTimeout).apply(void 0,F(e))},clearTimeout:function(e){var t=Ie.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function st(e){Ie.setTimeout(function(){var t=le.onUnhandledError;if(t)t(e);else throw e})}function N(){}var dr=function(){return It("C",void 0,void 0)}();function hr(e){return It("E",void 0,e)}function br(e){return It("N",e,void 0)}function It(e,t,r){return{kind:e,value:t,error:r}}var Ae=function(e){D(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,at(r)&&r.add(n)):n.destination=Pt,n}return t.create=function(r,n,o){return new Rt(r,n,o)},t.prototype.next=function(r){this.isStopped?$t(br(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?$t(hr(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?$t(dr,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){this.destination.error(r),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t}(G);var Rt=function(e){D(t,e);function t(r,n,o){var i=e.call(this)||this;if(i.destination=Pt,(r||n||o)&&r!==Pt){var a=void 0;if(g(r))a=r;else if(r){a=r.next,n=r.error,o=r.complete;var c;i&&le.useDeprecatedNextContext?(c=Object.create(r),c.unsubscribe=function(){return i.unsubscribe()}):c=r,a=a==null?void 0:a.bind(c),n=n==null?void 0:n.bind(c),o=o==null?void 0:o.bind(c)}i.destination={next:a||N,error:n||vr,complete:o||N}}return i}return t}(Ae);function vr(e){if(le.useDeprecatedSynchronousErrorHandling)throw e;st(e)}function $t(e,t){var r=le.onStoppedNotification;r&&Ie.setTimeout(function(){return r(e,t)})}var Pt={closed:!0,next:N,error:vr,complete:N};var ge=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function oe(e){return e}function gr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Vt(e)}function Vt(e){return e.length===0?oe:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var E=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=Qo(t)?t:new Rt(t,r,n),i=this,a=i.operator,c=i.source;return o.add(a?a.call(o,c):c||le.useDeprecatedSynchronousErrorHandling?this._subscribe(o):this._trySubscribe(o)),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){if(le.useDeprecatedSynchronousErrorHandling)throw r;t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=yr(r),new r(function(o,i){var a;a=n.subscribe(function(c){try{t(c)}catch(u){i(u),a==null||a.unsubscribe()}},i,o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[ge]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t.length?Vt(t)(this):this},e.prototype.toPromise=function(t){var r=this;return t=yr(t),new t(function(n,o){var i;r.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function yr(e){var t;return(t=e??le.Promise)!==null&&t!==void 0?t:Promise}function qo(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}function Qo(e){return e&&e instanceof Ae||qo(e)&&at(e)}function Ko(e){return g(e==null?void 0:e.lift)}function h(e){return function(t){if(Ko(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}var v=function(e){D(t,e);function t(r,n,o,i,a){var c=e.call(this,r)||this;return c.onUnsubscribe=a,c._next=n?function(u){try{n(u)}catch(s){this.destination.error(s)}}:e.prototype._next,c._error=o?function(u){try{o(u)}catch(s){this.destination.error(s)}this.unsubscribe()}:e.prototype._error,c._complete=i?function(){try{i()}catch(u){this.destination.error(u)}this.unsubscribe()}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;!this.closed&&((r=this.onUnsubscribe)===null||r===void 0||r.call(this)),e.prototype.unsubscribe.call(this)},t}(Ae);var Re={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,n=Re.delegate;n&&(t=n.requestAnimationFrame,r=n.cancelAnimationFrame);var o=t(function(i){r=void 0,e(i)});return new G(function(){return r==null?void 0:r(o)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Re.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,F(e))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Re.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,F(e))},delegate:void 0};var xr=ot(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var M=function(e){D(t,e);function t(){var r=e.call(this)||this;return r.observers=[],r.closed=!1,r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Sr(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new xr},t.prototype.next=function(r){var n,o;if(this._throwIfClosed(),!this.isStopped){var i=this.observers.slice();try{for(var a=re(i),c=a.next();!c.done;c=a.next()){var u=c.value;u.next(r)}}catch(s){n={error:s}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}}},t.prototype.error=function(r){if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;for(var n=this.observers;n.length;)n.shift().error(r)}},t.prototype.complete=function(){if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;for(var r=this.observers;r.length;)r.shift().complete()}},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,c=o.observers;return i||a?Ft:(c.push(r),new G(function(){return de(n.observers,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new E;return r.source=this,r},t.create=function(r,n){return new Sr(r,n)},t}(E);var Sr=function(e){D(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Ft},t}(M);var Je={now:function(){return(Je.delegate||Date).now()},delegate:void 0};var ct=function(e){D(t,e);function t(r,n,o){r===void 0&&(r=Infinity),n===void 0&&(n=Infinity),o===void 0&&(o=Je);var i=e.call(this)||this;return i.bufferSize=r,i.windowTime=n,i.timestampProvider=o,i.buffer=[],i.infiniteTimeWindow=!0,i.infiniteTimeWindow=n===Infinity,i.bufferSize=Math.max(1,r),i.windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n.buffer,a=n.infiniteTimeWindow,c=n.timestampProvider,u=n.windowTime;o||(i.push(r),!a&&i.push(c.now()+u)),this.trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this.trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o.infiniteTimeWindow,a=o.buffer,c=a.slice(),u=0;u<c.length&&!r.closed;u+=i?1:2)r.next(c[u]);return this._checkFinalizedStatuses(r),n},t.prototype.trimBuffer=function(){var r=this,n=r.bufferSize,o=r.timestampProvider,i=r.buffer,a=r.infiniteTimeWindow,c=(a?1:2)*n;if(n<Infinity&&c<i.length&&i.splice(0,i.length-c),!a){for(var u=o.now(),s=0,l=1;l<i.length&&i[l]<=u;l+=2)s=l;s&&i.splice(0,s+1)}},t}(M);var wr=function(e){D(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t}(G);var Xe={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xe.delegate;return((r==null?void 0:r.setInterval)||setInterval).apply(void 0,F(e))},clearInterval:function(e){var t=Xe.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var ut=function(e){D(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return t.prototype.schedule=function(r,n){if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Xe.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;Xe.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(a){o=!0,i=!!a&&a||new Error(a)}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,de(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(wr);var Dt=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=Je.now,e}();var lt=function(e){D(t,e);function t(r,n){n===void 0&&(n=Dt.now);var o=e.call(this,r,n)||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return t.prototype.flush=function(r){var n=this.actions;if(this.active){n.push(r);return}var o;this.active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this.active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},t}(Dt);var Be=new lt(ut),Er=Be;var Or=function(e){D(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r.scheduled||(r.scheduled=Re.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);r.actions.length===0&&(Re.cancelAnimationFrame(n),r.scheduled=void 0)},t}(ut);var Tr=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this.active=!0,this.scheduled=void 0;var n=this.actions,o,i=-1;r=r||n.shift();var a=n.length;do if(o=r.execute(r.state,r.delay))break;while(++i<a&&(r=n.shift()));if(this.active=!1,o){for(;++i<a&&(r=n.shift());)r.unsubscribe();throw o}},t}(lt);var K=new Tr(Or);var fe=new E(function(e){return e.complete()});function $e(e,t){return new E(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}var Pe=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function ft(e){return g(e==null?void 0:e.then)}function Yo(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ve=Yo();function Mr(e,t){return new E(function(r){var n=new G;return n.add(t.schedule(function(){var o=e[ge]();n.add(o.subscribe({next:function(i){n.add(t.schedule(function(){return r.next(i)}))},error:function(i){n.add(t.schedule(function(){return r.error(i)}))},complete:function(){n.add(t.schedule(function(){return r.complete()}))}}))})),n})}function Lr(e,t){return new E(function(r){return t.schedule(function(){return e.then(function(n){r.add(t.schedule(function(){r.next(n),r.add(t.schedule(function(){return r.complete()}))}))},function(n){r.add(t.schedule(function(){return r.error(n)}))})})})}function Ar(e,t,r,n){n===void 0&&(n=0);var o=t.schedule(function(){try{r.call(this)}catch(i){e.error(i)}},n);return e.add(o),o}function _r(e,t){return new E(function(r){var n;return r.add(t.schedule(function(){n=e[Ve](),Ar(r,t,function(){var o=n.next(),i=o.value,a=o.done;a?r.complete():(r.next(i),this.schedule())})})),function(){return g(n==null?void 0:n.return)&&n.return()}})}function pt(e){return g(e[ge])}function mt(e){return g(e==null?void 0:e[Ve])}function Hr(e,t){if(!e)throw new Error("Iterable cannot be null");return new E(function(r){var n=new G;return n.add(t.schedule(function(){var o=e[Symbol.asyncIterator]();n.add(t.schedule(function(){var i=this;o.next().then(function(a){a.done?r.complete():(r.next(a.value),i.schedule())})}))})),n})}function dt(e){return Symbol.asyncIterator&&g(e==null?void 0:e[Symbol.asyncIterator])}function ht(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, AsyncIterable, or Iterable.")}function Cr(e,t){if(e!=null){if(pt(e))return Mr(e,t);if(Pe(e))return $e(e,t);if(ft(e))return Lr(e,t);if(dt(e))return Hr(e,t);if(mt(e))return _r(e,t)}throw ht(e)}function he(e,t){return t?Cr(e,t):R(e)}function R(e){if(e instanceof E)return e;if(e!=null){if(pt(e))return Jo(e);if(Pe(e))return Ut(e);if(ft(e))return Xo(e);if(dt(e))return Go(e);if(mt(e))return Bo(e)}throw ht(e)}function Jo(e){return new E(function(t){var r=e[ge]();if(g(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ut(e){return new E(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function Xo(e){return new E(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,st)})}function Bo(e){return new E(function(t){for(var r=e[Ve]();!t.closed;){var n=r.next(),o=n.done,i=n.value;o?t.complete():t.next(i)}return function(){return g(r==null?void 0:r.return)&&r.return()}})}function Go(e){return new E(function(t){Zo(e,t).catch(function(r){return t.error(r)})})}function Zo(e,t){var r,n,o,i;return lr(this,void 0,void 0,function(){var a,c;return fr(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=pr(e),u.label=1;case 1:return[4,r.next()];case 2:if(n=u.sent(),!!n.done)return[3,4];a=n.value,t.next(a),u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=u.sent(),o={error:c},[3,11];case 6:return u.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function pe(e,t){return t?$e(e,t):Ut(e)}function bt(e){return e&&g(e.schedule)}function Wt(e){return e[e.length-1]}function ye(e){return g(Wt(e))?e.pop():void 0}function ie(e){return bt(Wt(e))?e.pop():void 0}function vt(e,t){return typeof Wt(e)=="number"?e.pop():t}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ie(e);return r?$e(e,r):pe(e)}function kr(e){return e instanceof Date&&!isNaN(e)}function f(e,t){return h(function(r,n){var o=0;r.subscribe(new v(n,function(i){n.next(e.call(t,i,o++))}))})}var ei=Array.isArray;function ti(e,t){return ei(t)?e.apply(void 0,F(t)):e(t)}function De(e){return f(function(t){return ti(e,t)})}function Y(e,t){return t===void 0&&(t=0),h(function(r,n){r.subscribe(new v(n,function(o){return n.add(e.schedule(function(){return n.next(o)},t))},function(o){return n.add(e.schedule(function(){return n.error(o)},t))},function(){return n.add(e.schedule(function(){return n.complete()},t))}))})}var ri=Array.isArray,ni=Object.getPrototypeOf,oi=Object.prototype,ii=Object.keys;function jr(e){if(e.length===1){var t=e[0];if(ri(t))return{args:t,keys:null};if(ai(t)){var r=ii(t);return{args:r.map(function(n){return t[n]}),keys:r}}}return{args:e,keys:null}}function ai(e){return e&&typeof e=="object"&&ni(e)===oi}function J(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ie(e),n=ye(e),o=jr(e),i=o.args,a=o.keys;if(i.length===0)return he([],r);var c=new E(Nt(i,r,a?function(u){for(var s={},l=0;l<u.length;l++)s[a[l]]=u[l];return s}:oe));return n?c.pipe(De(n)):c}var si=function(e){D(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i._next=n,i.shouldComplete=o,i}return t.prototype._complete=function(){this.shouldComplete()?e.prototype._complete.call(this):this.unsubscribe()},t}(Ae);function Nt(e,t,r){return r===void 0&&(r=oe),function(n){var o=function(){for(var i=e.length,a=new Array(i),c=i,u=e.map(function(){return!1}),s=!0,l=function(){return n.next(r(a.slice()))},p=function(A){var I=function(){var T=he(e[A],t);T.subscribe(new si(n,function(W){a[A]=W,s&&(u[A]=!0,s=!u.every(oe)),s||l()},function(){return--c==0}))};Fr(t,I,n)},m=0;m<i;m++)p(m)};Fr(t,o,n)}}function Fr(e,t,r){e?r.add(e.schedule(t)):t()}function Ir(e,t,r,n,o,i,a,c){var u=[],s=0,l=0,p=!1,m=function(){p&&!u.length&&!s&&t.complete()},A=function(T){return s<n?I(T):u.push(T)},I=function(T){i&&t.next(T),s++,R(r(T,l++)).subscribe(new v(t,function(W){o==null||o(W),i?A(W):t.next(W)},void 0,function(){s--;for(var W=function(){var ne=u.shift();a?t.add(a.schedule(function(){return I(ne)})):I(ne)};u.length&&s<n;)W();m()}))};return e.subscribe(new v(t,A,void 0,function(){p=!0,m()})),function(){u=null,c==null||c()}}function ae(e,t,r){return r===void 0&&(r=Infinity),g(t)?ae(function(n,o){return f(function(i,a){return t(n,i,o,a)})(R(e(n,o)))},r):(typeof t=="number"&&(r=t),h(function(n,o){return Ir(n,o,e,r)}))}function Ue(e){return e===void 0&&(e=Infinity),ae(oe,e)}function Rr(){return Ue(1)}function Ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Rr()(pe(e,ie(e)))}function xe(e){return new E(function(t){R(e()).subscribe(t)})}var ci=["addListener","removeListener"],ui=["addEventListener","removeEventListener"],li=["on","off"];function O(e,t,r,n){if(g(r)&&(n=r,r=void 0),n)return O(e,t,r).pipe(De(n));var o=jt(mi(e)?ui.map(function(c){return function(u){return e[c](t,u,r)}}):fi(e)?ci.map($r(e,t)):pi(e)?li.map($r(e,t)):[],2),i=o[0],a=o[1];return!i&&Pe(e)?ae(function(c){return O(c,t,r)})(pe(e)):new E(function(c){if(!i)throw new TypeError("Invalid event target");var u=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return c.next(1<s.length?s:s[0])};return i(u),function(){return a(u)}})}function $r(e,t){return function(r){return function(n){return e[r](t,n)}}}function fi(e){return g(e.addListener)&&g(e.removeListener)}function pi(e){return g(e.on)&&g(e.off)}function mi(e){return g(e.addEventListener)&&g(e.removeEventListener)}function gt(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Er);var n=-1;return t!=null&&(bt(t)?r=t:n=t),new E(function(o){var i=kr(e)?+e-r.now():e;i<0&&(i=0);var a=0;return r.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},i)})}var di=Array.isArray;function Se(e){return e.length===1&&di(e[0])?e[0]:e}function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ie(e),n=vt(e,Infinity),o=Se(e);return o.length?o.length===1?R(o[0]):Ue(n)(pe(o,r)):fe}var X=new E(N);function L(e,t){return h(function(r,n){var o=0;r.subscribe(new v(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function Pr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ye(e),n=Se(e);return n.length?new E(function(o){var i=n.map(function(){return[]}),a=n.map(function(){return!1});o.add(function(){i=a=null});for(var c=function(s){R(n[s]).subscribe(new v(o,function(l){if(i[s].push(l),i.every(function(m){return m.length})){var p=i.map(function(m){return m.shift()});o.next(r?r.apply(void 0,F(p)):p),i.some(function(m,A){return!m.length&&a[A]})&&o.complete()}},void 0,function(){a[s]=!0,!i[s].length&&o.complete()}))},u=0;!o.closed&&u<n.length;u++)c(u);return function(){i=a=null}}):fe}function we(e,t){return t===void 0&&(t=null),t=t??e,h(function(r,n){var o=[],i=0;r.subscribe(new v(n,function(a){var c,u,s,l,p=null;i++%t==0&&o.push([]);try{for(var m=re(o),A=m.next();!A.done;A=m.next()){var I=A.value;I.push(a),e<=I.length&&(p=p??[],p.push(I))}}catch(ne){c={error:ne}}finally{try{A&&!A.done&&(u=m.return)&&u.call(m)}finally{if(c)throw c.error}}if(p)try{for(var T=re(p),W=T.next();!W.done;W=T.next()){var I=W.value;de(o,I),n.next(I)}}catch(ne){s={error:ne}}finally{try{W&&!W.done&&(l=T.return)&&l.call(T)}finally{if(s)throw s.error}}},void 0,function(){var a,c;try{for(var u=re(o),s=u.next();!s.done;s=u.next()){var l=s.value;n.next(l)}}catch(p){a={error:p}}finally{try{s&&!s.done&&(c=u.return)&&c.call(u)}finally{if(a)throw a.error}}n.complete()},function(){o=null}))})}function Ze(e){return h(function(t,r){var n=null,o=!1,i;n=t.subscribe(new v(r,void 0,function(a){i=R(e(a,Ze(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Vr(e,t,r,n,o){return function(i,a){var c=r,u=t,s=0;i.subscribe(new v(a,function(l){var p=s++;u=c?e(u,l,p):(c=!0,l),n&&a.next(u)},void 0,o&&function(){c&&a.next(u),a.complete()}))}}function Dr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ye(e);return r?gr(Dr.apply(void 0,F(e)),De(r)):h(function(n,o){Nt(F([n],Se(e)))(o)})}function zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Dr.apply(void 0,F(e))}function Ur(e,t){return g(t)?ae(e,t,1):ae(e,1)}function Wr(e){return h(function(t,r){var n=!1,o=null,i=null,a=function(){if(i==null||i.unsubscribe(),i=null,n){n=!1;var c=o;o=null,r.next(c)}};t.subscribe(new v(r,function(c){i==null||i.unsubscribe(),n=!0,o=c,i=new v(r,a,void 0,N),R(e(c)).subscribe(i)},void 0,function(){a(),r.complete()},function(){o=i=null}))})}function Nr(e,t){t===void 0&&(t=Be);var r=gt(e,t);return Wr(function(){return r})}function yt(e){return e===void 0&&(e=null),h(function(t,r){var n=!1;t.subscribe(new v(r,function(o){n=!0,r.next(o)},void 0,function(){n||r.next(e),r.complete()}))})}function et(e){return e<=0?function(){return fe}:h(function(t,r){var n=0;t.subscribe(new v(r,function(o){++n<=e&&(r.next(o),e<=n&&r.complete())}))})}function zr(){return h(function(e,t){e.subscribe(new v(t,N))})}function ue(e){return h(function(t,r){t.subscribe(new v(r,function(){return r.next(e)}))})}function Qt(e,t){return t?function(r){return Ge(t.pipe(et(1),zr()),r.pipe(Qt(e)))}:ae(function(r,n){return e(r,n).pipe(et(1),ue(r))})}function Ee(e,t){t===void 0&&(t=Be);var r=gt(e,t);return Qt(function(){return r})}function z(e,t){return e=e??hi,h(function(r,n){var o,i=!0;r.subscribe(new v(n,function(a){(i&&(o=a,1)||!e(o,o=t?t(a):a))&&n.next(a),i=!1}))})}function hi(e,t){return e===t}function U(e,t){return z(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}function P(e){return h(function(t,r){t.subscribe(r),r.add(e)})}function Qr(e){return e<=0?function(){return fe}:h(function(t,r){var n=[];t.subscribe(new v(r,function(o){n.push(o),e<n.length&&n.shift()},void 0,function(){var o,i;try{for(var a=re(n),c=a.next();!c.done;c=a.next()){var u=c.value;r.next(u)}}catch(s){o={error:s}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}r.complete()},function(){n=null}))})}function bi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ie(e),n=vt(e,Infinity);return e=Se(e),h(function(o,i){Ue(n)(pe(F([o],e),r)).subscribe(i)})}function xt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return bi.apply(void 0,F(e))}function tt(e){return h(function(t,r){var n=!1,o=null;t.subscribe(new v(r,function(a){n=!0,o=a}));var i=function(){if(n){n=!1;var a=o;o=null,r.next(a)}};e.subscribe(new v(r,i,void 0,N))})}function qr(e,t){return h(Vr(e,t,arguments.length>=2,!0))}function Z(e){e=e||{};var t=e.connector,r=t===void 0?function(){return new M}:t,n=e.resetOnComplete,o=n===void 0?!0:n,i=e.resetOnError,a=i===void 0?!0:i,c=e.resetOnRefCountZero,u=c===void 0?!0:c,s=null,l=null,p=0,m=!1,A=!1,I=function(){s=l=null,m=A=!1};return h(function(T,W){p++,l||(l=r());var ne=l.subscribe(W);return s||(s=he(T).subscribe({next:function(H){return l.next(H)},error:function(H){A=!0;var y=l;a&&I(),y.error(H)},complete:function(){m=!0;var H=l;o&&I(),H.complete()}})),function(){if(p--,ne.unsubscribe(),!p&&u&&!A&&!m){var H=s;I(),H==null||H.unsubscribe()}}})}function ee(e,t,r){var n,o,i,a=!1;return e&&typeof e=="object"?(i=(n=e.bufferSize)!==null&&n!==void 0?n:Infinity,t=(o=e.windowTime)!==null&&o!==void 0?o:Infinity,a=!!e.refCount,r=e.scheduler):i=e??Infinity,Z({connector:function(){return new ct(i,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function qt(e){return L(function(t,r){return e<=r})}function Kr(e){return h(function(t,r){var n=!1,o=new v(r,function(){o==null||o.unsubscribe(),n=!0},void 0,N);R(e).subscribe(o),t.subscribe(new v(r,function(i){return n&&r.next(i)}))})}function V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ie(e);return h(function(n,o){(r?Ge(e,n,r):Ge(e,n)).subscribe(o)})}function w(e,t){return h(function(r,n){var o=null,i=0,a=!1,c=function(){return a&&!o&&n.complete()};r.subscribe(new v(n,function(u){o==null||o.unsubscribe();var s=0,l=i++;R(e(u,l)).subscribe(o=new v(n,function(p){return n.next(t?t(u,p,l,s++):p)},void 0,function(){o=null,c()}))},void 0,function(){a=!0,c()}))})}function Yr(e,t){return t?w(function(){return e},t):w(function(){return e})}function Jr(e){return h(function(t,r){R(e).subscribe(new v(r,function(){return r.complete()},void 0,N)),!r.closed&&t.subscribe(r)})}function j(e,t,r){var n=g(e)||t||r?{next:e,error:t,complete:r}:e;return n?h(function(o,i){o.subscribe(new v(i,function(a){var c;(c=n.next)===null||c===void 0||c.call(n,a),i.next(a)},function(a){var c;(c=n.error)===null||c===void 0||c.call(n,a),i.error(a)},function(){var a;(a=n.complete)===null||a===void 0||a.call(n),i.complete()}))}):oe}var vi={leading:!0,trailing:!1};function Xr(e,t){var r=t===void 0?vi:t,n=r.leading,o=r.trailing;return h(function(i,a){var c=!1,u=null,s=null,l=!1,p=function(){s==null||s.unsubscribe(),s=null,o&&(I(),l&&a.complete())},m=function(){s=null,l&&a.complete()},A=function(T){return s=R(e(T)).subscribe(new v(a,p,void 0,m))},I=function(){c&&(a.next(u),!l&&A(u)),c=!1,u=null};i.subscribe(new v(a,function(T){c=!0,u=T,!(s&&!s.closed)&&(n?I():A(T))},void 0,function(){l=!0,!(o&&c&&s&&!s.closed)&&a.complete()}))})}function Oe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ye(e);return h(function(n,o){for(var i=e.length,a=new Array(i),c=e.map(function(){return!1}),u=!1,s=function(p){R(e[p]).subscribe(new v(o,function(m){a[p]=m,!u&&!c[p]&&(c[p]=!0,(u=c.every(oe))&&(c=null))},void 0,N))},l=0;l<i;l++)s(l);n.subscribe(new v(o,function(p){if(u){var m=F([p],a);o.next(r?r.apply(void 0,F(m)):m)}}))})}function gi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return h(function(r,n){Pr.apply(void 0,F([r],e)).subscribe(n)})}function Br(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return gi.apply(void 0,F(e))}function Gr(){let e=new ct;return O(document,"DOMContentLoaded").pipe(ue(document)).subscribe(e),e}function te(e,t=document){return t.querySelector(e)||void 0}function se(e,t=document){let r=te(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function _e(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function Q(e,t=document){return Array.from(t.querySelectorAll(e))}function We(e){return document.createElement(e)}function He(e,t){e.replaceWith(t)}function Te(e,t=!0){t?e.focus():e.blur()}function Zr(e){return C(O(e,"focus"),O(e,"blur")).pipe(f(({type:t})=>t==="focus"),V(e===_e()))}var en=new M,yi=xe(()=>k(new ResizeObserver(e=>{for(let t of e)en.next(t)}))).pipe(w(e=>X.pipe(V(e)).pipe(P(()=>e.disconnect()))),ee(1));function Ce(e){return{width:e.offsetWidth,height:e.offsetHeight}}function St(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Ne(e){return yi.pipe(j(t=>t.observe(e)),w(t=>en.pipe(L(({target:r})=>r===e),P(()=>t.unobserve(e)),f(({contentRect:r})=>({width:r.width,height:r.height})))),V(Ce(e)))}function tn(e){return{x:e.scrollLeft,y:e.scrollTop}}function xi(e){return C(O(e,"scroll"),O(window,"resize")).pipe(f(()=>tn(e)),V(tn(e)))}function rn(e,t=16){return xi(e).pipe(f(({y:r})=>{let n=Ce(e),o=St(e);return r>=o.height-n.height-t}),z())}function nn(e){if(e instanceof HTMLInputElement)e.select();else throw new Error("Not implemented")}var wt={drawer:se("[data-md-toggle=drawer]"),search:se("[data-md-toggle=search]")};function on(e){return wt[e].checked}function ke(e,t){wt[e].checked!==t&&wt[e].click()}function Et(e){let t=wt[e];return O(t,"change").pipe(f(()=>t.checked),V(t.checked))}function Si(e){switch(e.tagName){case"INPUT":case"SELECT":case"TEXTAREA":return!0;default:return e.isContentEditable}}function an(){return O(window,"keydown").pipe(L(e=>!(e.metaKey||e.ctrlKey)),f(e=>({mode:on("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),L(({mode:e})=>{if(e==="global"){let t=_e();if(typeof t!="undefined")return!Si(t)}return!0}),Z())}function sn(){return new URL(location.href)}function cn(e){location.href=e.href}function un(){return new M}function ln(){return location.hash.substring(1)}function fn(e){let t=We("a");t.href=e,t.addEventListener("click",r=>r.stopPropagation()),t.click()}function wi(){return O(window,"hashchange").pipe(f(ln),V(ln()),L(e=>e.length>0),Z())}function pn(){return wi().pipe(w(e=>k(te(`[id="${e}"]`))))}function ze(e){let t=matchMedia(e);return O(t,"change").pipe(f(r=>r.matches),V(t.matches))}function mn(){return C(ze("print").pipe(L(Boolean)),O(window,"beforeprint")).pipe(ue(void 0))}function Kt(e,t){return e.pipe(w(r=>r?t():X))}function Ot(e,t={credentials:"same-origin"}){return he(fetch(e.toString(),t)).pipe(L(r=>r.status===200))}function Me(e,t){return Ot(e,t).pipe(w(r=>r.json()),ee(1))}function dn(e,t){let r=new DOMParser;return Ot(e,t).pipe(w(n=>n.text()),f(n=>r.parseFromString(n,"text/xml")),ee(1))}function hn(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function Yt({x:e,y:t}){window.scrollTo(e||0,t||0)}function bn(){return C(O(window,"scroll",{passive:!0}),O(window,"resize",{passive:!0})).pipe(f(hn),V(hn()))}function vn(){return{width:innerWidth,height:innerHeight}}function gn(){return O(window,"resize",{passive:!0}).pipe(f(vn),V(vn()))}function yn(){return J([bn(),gn()]).pipe(f(([e,t])=>({offset:e,size:t})),ee(1))}function Tt(e,{viewport$:t,header$:r}){let n=t.pipe(U("size")),o=J([n,r]).pipe(f(()=>({x:e.offsetLeft,y:e.offsetTop})));return J([r,t,o]).pipe(f(([{height:i},{offset:a,size:c},{x:u,y:s}])=>({offset:{x:a.x-u,y:a.y-s+i},size:c})))}function xn(e,{tx$:t}){let r=O(e,"message").pipe(f(({data:n})=>n));return t.pipe(Xr(()=>r,{leading:!0,trailing:!0}),j(n=>e.postMessage(n)),Yr(r),Z())}var Ei=se("#__config"),Qe=JSON.parse(Ei.textContent);Qe.base=new URL(Qe.base,sn()).toString().replace(/\/$/,"");function B(){return Qe}function Mt(e){return Qe.features.includes(e)}function q(e,t){return typeof t!="undefined"?Qe.translations[e].replace("#",t.toString()):Qe.translations[e]}function Le(e,t=document){return se(`[data-md-component=${e}]`,t)}function me(e,t=document){return Q(`[data-md-component=${e}]`,t)}var ro=nt(Xt());function Sn(e,t=0){e.setAttribute("tabindex",t.toString())}function wn(e){e.removeAttribute("tabindex")}function En(e,t){e.setAttribute("data-md-state","lock"),e.style.top=`-${t}px`}function On(e){let t=-1*parseInt(e.style.top,10);e.removeAttribute("data-md-state"),e.style.top="",t&&window.scrollTo(0,t)}function Tn(e,t){e.setAttribute("data-md-state",t)}function Mn(e){e.removeAttribute("data-md-state")}function Ln(e,t){e.classList.toggle("md-nav__link--active",t)}function An(e){e.classList.remove("md-nav__link--active")}function _n(e,t){e.firstElementChild.innerHTML=t}function Hn(e,t){e.setAttribute("data-md-state",t)}function Cn(e){e.removeAttribute("data-md-state")}function kn(e,t){e.setAttribute("data-md-state",t)}function jn(e){e.removeAttribute("data-md-state")}function Fn(e,t){e.setAttribute("data-md-state",t)}function In(e){e.removeAttribute("data-md-state")}function Rn(e,t){e.placeholder=t}function $n(e){e.placeholder=q("search.placeholder")}function Pn(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)Pn(e,r)}function $(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="boolean"?n.setAttribute(o,t[o]):t[o]&&n.setAttribute(o,"");for(let o of r)Pn(n,o);return n}function Vn(e,t){let r=t;if(e.length>r){for(;e[r]!==" "&&--r>0;);return`${e.substring(0,r)}...`}return e}function be(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Oi(e){let t=0;for(let r=0,n=e.length;r<n;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function Bt(e){let t=B();return`${e}[${Oi(t.base)}]`}function Dn(e,t){switch(t){case 0:e.textContent=q("search.result.none");break;case 1:e.textContent=q("search.result.one");break;default:e.textContent=q("search.result.other",be(t))}}function Un(e){e.textContent=q("search.result.placeholder")}function Wn(e,t){e.appendChild(t)}function Nn(e){e.innerHTML=""}function zn(e,t){e.style.top=`${t}px`}function Qn(e){e.style.top=""}function qn(e,t){let r=e.firstElementChild;r.style.height=`${t-2*r.offsetTop}px`}function Kn(e){let t=e.firstElementChild;t.style.height=""}function Yn(e,t){e.lastElementChild.appendChild(t)}function Jn(e,t){e.lastElementChild.setAttribute("data-md-state",t)}function Xn(e,t){e.setAttribute("data-md-state",t)}function Gt(e){e.removeAttribute("data-md-state")}function Bn(e){return $("button",{class:"md-clipboard md-icon",title:q("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}var je;(function(e){e[e.TEASER=1]="TEASER",e[e.PARENT=2]="PARENT"})(je||(je={}));function Zt(e,t){let r=t&2,n=t&1,o=Object.keys(e.terms).filter(a=>!e.terms[a]).map(a=>[$("del",null,a)," "]).flat().slice(0,-1),i=e.location;return $("a",{href:i,class:"md-search-result__link",tabIndex:-1},$("article",{class:["md-search-result__article",...r?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},r>0&&$("div",{class:"md-search-result__icon md-icon"}),$("h1",{class:"md-search-result__title"},e.title),n>0&&e.text.length>0&&$("p",{class:"md-search-result__teaser"},Vn(e.text,320)),n>0&&o.length>0&&$("p",{class:"md-search-result__terms"},q("search.result.term.missing"),": ",o)))}function Gn(e){let t=e[0].score,r=[...e],n=r.findIndex(s=>!s.location.includes("#")),[o]=r.splice(n,1),i=r.findIndex(s=>s.score<t);i===-1&&(i=r.length);let a=r.slice(0,i),c=r.slice(i),u=[Zt(o,2|+(!n&&i===0)),...a.map(s=>Zt(s,1)),...c.length?[$("details",{class:"md-search-result__more"},$("summary",{tabIndex:-1},c.length>0&&c.length===1?q("search.result.more.one"):q("search.result.more.other",c.length)),c.map(s=>Zt(s,1)))]:[]];return $("li",{class:"md-search-result__item"},u)}function Zn(e){return $("ul",{class:"md-source__facts"},e.map(t=>$("li",{class:"md-source__fact"},t)))}function eo(e){return $("div",{class:"md-typeset__scrollwrap"},$("div",{class:"md-typeset__table"},e))}function to(e){let t=B(),[,r]=t.base.match(/([^/]+)\/?$/),n=e.find(({version:o,aliases:i})=>o===r||i.includes(r))||e[0];return $("div",{class:"md-version"},$("span",{class:"md-version__current"},n.version),$("ul",{class:"md-version__list"},e.map(o=>$("li",{class:"md-version__item"},$("a",{class:"md-version__link",href:`${new URL(o.version,t.base)}`},o.title)))))}var Ti=0;function Mi(e,{viewport$:t}){let r=k(e).pipe(w(n=>{let o=n.closest("[data-tabs]");return o instanceof HTMLElement?C(...Q("input",o).map(i=>O(i,"change"))):X}));return C(t.pipe(U("size")),r).pipe(f(()=>{let n=Ce(e);return{scroll:St(e).width>n.width}}),U("scroll"))}function no(e,t){let r=new M;if(r.pipe(Oe(ze("(hover)"))).subscribe(([{scroll:n},o])=>{n&&o?Sn(e):wn(e)}),ro.default.isSupported()){let n=e.closest("pre");n.id=`__code_${Ti++}`,n.insertBefore(Bn(n.id),e)}return Mi(e,t).pipe(j(r),P(()=>r.complete()),f(n=>({ref:e,...n})))}function Li(e,{target$:t,print$:r}){return t.pipe(f(n=>n.closest("details:not([open])")),L(n=>e===n),xt(r),ue(e))}function oo(e,t){let r=new M;return r.subscribe(()=>{e.setAttribute("open",""),e.scrollIntoView()}),Li(e,t).pipe(j(r),P(()=>r.complete()),ue({ref:e}))}var io=We("table");function ao(e){return He(e,io),He(io,eo(e)),k({ref:e})}function so(e,{target$:t,viewport$:r,print$:n}){return C(...Q("pre > code",e).map(o=>no(o,{viewport$:r})),...Q("table:not([class])",e).map(o=>ao(o)),...Q("details",e).map(o=>oo(o,{target$:t,print$:n})))}function Ai(e,{alert$:t}){return t.pipe(w(r=>C(k(!0),k(!1).pipe(Ee(2e3))).pipe(f(n=>({message:r,open:n})))))}function co(e,t){let r=new M;return r.pipe(Y(K)).subscribe(({message:n,open:o})=>{_n(e,n),o?Hn(e,"open"):Cn(e)}),Ai(e,t).pipe(j(r),P(()=>r.complete()),f(n=>({ref:e,...n})))}function _i({viewport$:e}){if(!Mt("header.autohide"))return k(!1);let t=e.pipe(f(({offset:{y:o}})=>o),we(2,1),f(([o,i])=>[o<i,i]),U(0)),r=J([e,t]).pipe(L(([{offset:o},[,i]])=>Math.abs(i-o.y)>100),f(([,[o]])=>o),z()),n=Et("search");return J([e,n]).pipe(f(([{offset:o},i])=>o.y>400&&!i),z(),w(o=>o?r:k(!1)),V(!1))}function uo(e,t){return xe(()=>{let r=getComputedStyle(e);return k(r.position==="sticky"||r.position==="-webkit-sticky")}).pipe(zt(Ne(e),_i(t)),f(([r,{height:n},o])=>({height:r?n:0,sticky:r,hidden:o})),z((r,n)=>r.sticky===n.sticky&&r.height===n.height&&r.hidden===n.hidden),ee(1))}function lo(e,{header$:t,main$:r}){let n=new M;return n.pipe(U("active"),zt(t),Y(K)).subscribe(([{active:o},{hidden:i}])=>{o?kn(e,i?"hidden":"shadow"):jn(e)}),r.subscribe(o=>n.next(o)),t.pipe(f(o=>({ref:e,...o})))}function Hi(e,{viewport$:t,header$:r}){return Tt(e,{header$:r,viewport$:t}).pipe(f(({offset:{y:n}})=>{let{height:o}=Ce(e);return{active:n>=o}}),U("active"))}function fo(e,t){let r=new M;r.pipe(Y(K)).subscribe(({active:i})=>{i?Fn(e,"active"):In(e)});let n=B();n.version?.provider==="mike"&&Me(new URL("../versions.json",n.base)).subscribe(i=>{se(".md-header__topic",e).appendChild(to(i))});let o=te("article h1");return typeof o=="undefined"?X:Hi(o,t).pipe(j(r),P(()=>r.complete()),f(i=>({ref:e,...i})))}function po(e,{viewport$:t,header$:r}){let n=r.pipe(f(({height:i})=>i),z()),o=n.pipe(w(()=>Ne(e).pipe(f(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),U("bottom"))));return J([n,o,t]).pipe(f(([i,{top:a,bottom:c},{offset:{y:u},size:{height:s}}])=>(s=Math.max(0,s-Math.max(0,a-u,i)-Math.max(0,s+u-c)),{offset:a-i,height:s,active:a-i<=u})),z((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}var er=nt(Xt());function mo({alert$:e}){er.default.isSupported()&&new E(t=>{new er.default("[data-clipboard-target], [data-clipboard-text]").on("success",r=>t.next(r))}).subscribe(()=>e.next(q("clipboard.copied")))}function Ci(e){if(e.length<2)return e;let[t,r]=e.sort((i,a)=>i.length-a.length),n=0;if(t===r)n=t.length;else for(;t.charCodeAt(n)===t.charCodeAt(n);)n++;let o=B();return e.map(i=>i.replace(t.slice(0,n),`${o.base}/`))}function ho({document$:e,location$:t,viewport$:r}){let n=B();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",O(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let o=te("link[rel='shortcut icon']");typeof o!="undefined"&&(o.href=o.href);let i=dn(`${n.base}/sitemap.xml`).pipe(f(s=>Ci(Q("loc",s).map(l=>l.textContent))),w(s=>O(document.body,"click").pipe(L(l=>!l.metaKey&&!l.ctrlKey),w(l=>{if(l.target instanceof HTMLElement){let p=l.target.closest("a");if(p&&!p.target&&s.includes(p.href))return l.preventDefault(),k({url:new URL(p.href)})}return X}))),Z()),a=O(window,"popstate").pipe(L(s=>s.state!==null),f(s=>({url:new URL(location.href),offset:s.state})),Z());C(i,a).pipe(z((s,l)=>s.url.href===l.url.href),f(({url:s})=>s)).subscribe(t);let c=t.pipe(U("pathname"),w(s=>Ot(s.href).pipe(Ze(()=>(cn(s),X)))),Z());i.pipe(tt(c)).subscribe(({url:s})=>{history.pushState({},"",s.toString())});let u=new DOMParser;c.pipe(w(s=>s.text()),f(s=>u.parseFromString(s,"text/html"))).subscribe(e),C(i,a).pipe(tt(e)).subscribe(({url:s,offset:l})=>{s.hash&&!l?fn(s.hash):Yt(l||{y:0})}),e.pipe(qt(1)).subscribe(s=>{for(let l of["title","link[rel='canonical']","meta[name='author']","meta[name='description']","[data-md-component=announce]","[data-md-component=header-topic]","[data-md-component=container]","[data-md-component=skip]"]){let p=te(l),m=te(l,s);typeof p!="undefined"&&typeof m!="undefined"&&He(p,m)}}),e.pipe(qt(1),f(()=>Le("container")),w(s=>k(...Q("script",s))),Ur(s=>{let l=We("script");return s.src?(l.src=s.src,He(s,l),new E(p=>{l.onload=()=>p.complete()})):(l.textContent=s.textContent,He(s,l),fe)})).subscribe(),r.pipe(Kr(i),Nr(250),U("offset")).subscribe(({offset:s})=>{history.replaceState(s,"")}),C(i,a).pipe(we(2,1),L(([s,l])=>s.url.pathname===l.url.pathname),f(([,s])=>s)).subscribe(({offset:s})=>{Yt(s||{y:0})})}var Fi=nt(vo());function go(e){return e.split(/"([^"]+)"/g).map((t,r)=>r&1?t.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):t).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").trim()}var ve;(function(e){e[e.SETUP=0]="SETUP",e[e.READY=1]="READY",e[e.QUERY=2]="QUERY",e[e.RESULT=3]="RESULT"})(ve||(ve={}));function yo(e){return e.type===1}function xo(e){return e.type===2}function Lt(e){return e.type===3}function Ii({config:e,docs:t,index:r}){e.lang.length===1&&e.lang[0]==="en"&&(e.lang=[q("search.config.lang")]),e.separator==="[\\s\\-]+"&&(e.separator=q("search.config.separator"));let n=q("search.config.pipeline").split(/\s*,\s*/).filter(Boolean);return{config:e,docs:t,index:r,pipeline:n}}function So(e,t){let r=B(),n=new Worker(e),o=new M,i=xn(n,{tx$:o}).pipe(f(a=>{if(Lt(a))for(let c of a.data)for(let u of c)u.location=`${r.base}/${u.location}`;return a}),Z());return he(t).pipe(f(a=>({type:ve.SETUP,data:Ii(a)}))).subscribe(o.next.bind(o)),{tx$:o,rx$:i}}function Ri(e){let t=__search?.transform||go,r=Zr(e),n=C(O(e,"keyup"),O(e,"focus").pipe(Ee(1))).pipe(f(()=>t(e.value)),z());return J([n,r]).pipe(f(([o,i])=>({value:o,focus:i})))}function wo(e,{tx$:t}){let r=new M;return r.pipe(U("value"),f(({value:n})=>({type:ve.QUERY,data:n}))).subscribe(t.next.bind(t)),r.pipe(U("focus")).subscribe(({focus:n})=>{n?(ke("search",n),Rn(e,"")):$n(e)}),O(e.form,"reset").pipe(Jr(r.pipe(Qr(1)))).subscribe(()=>Te(e)),Ri(e).pipe(j(r),P(()=>r.complete()),f(n=>({ref:e,...n})))}function Eo(e,{rx$:t},{query$:r}){let n=new M,o=rn(e.parentElement).pipe(L(Boolean)),i=se(":scope > :first-child",e);n.pipe(Y(K),Oe(r)).subscribe(([{data:u},{value:s}])=>{s?Dn(i,u.length):Un(i)});let a=se(":scope > :last-child",e);return n.pipe(Y(K),j(()=>Nn(a)),w(({data:u})=>C(k(...u.slice(0,10)),k(...u.slice(10)).pipe(we(4),Br(o),w(([s])=>k(...s)))))).subscribe(u=>{Wn(a,Gn(u))}),t.pipe(L(Lt),f(({data:u})=>({data:u})),V({data:[]})).pipe(j(n),P(()=>n.complete()),f(u=>({ref:e,...u})))}function Oo(e,{index$:t,keyboard$:r}){if(location.protocol==="file:")return X;let n=B(),o=So(n.search,t),i=Le("search-query",e),a=Le("search-result",e),{tx$:c,rx$:u}=o;c.pipe(L(xo),tt(u.pipe(L(yo))),et(1)).subscribe(c.next.bind(c)),r.pipe(L(({mode:l})=>l==="search")).subscribe(l=>{let p=_e();switch(l.type){case"Enter":p===i&&l.claim();break;case"Escape":case"Tab":ke("search",!1),Te(i,!1);break;case"ArrowUp":case"ArrowDown":if(typeof p=="undefined")Te(i);else{let m=[i,...Q(":not(details) > [href], summary, details[open] [href]",a)],A=Math.max(0,(Math.max(0,m.indexOf(p))+m.length+(l.type==="ArrowUp"?-1:1))%m.length);Te(m[A])}l.claim();break;default:i!==_e()&&Te(i)}}),r.pipe(L(({mode:l})=>l==="global")).subscribe(l=>{switch(l.type){case"f":case"s":case"/":Te(i),nn(i),l.claim();break}});let s=wo(i,o);return C(s,Eo(a,o,{query$:s}))}function $i(e,{viewport$:t,main$:r}){let n=e.parentElement.offsetTop-e.parentElement.parentElement.offsetTop;return J([r,t]).pipe(f(([{offset:o,height:i},{offset:{y:a}}])=>(i=i+Math.min(n,Math.max(0,a-o))-n,{height:i,locked:a>=o+n})),z((o,i)=>o.height===i.height&&o.locked===i.locked))}function tr(e,{header$:t,...r}){let n=new M;return n.pipe(Y(K),Oe(t)).subscribe({next([{height:o},{height:i}]){qn(e,o),zn(e,i)},complete(){Qn(e),Kn(e)}}),$i(e,r).pipe(j(n),P(()=>n.complete()),f(o=>({ref:e,...o})))}function To(e,t){let r=typeof t!="undefined"?`https://api.github.com/repos/${e}/${t}`:`https://api.github.com/users/${e}`;return Me(r).pipe(f(n=>{if(typeof t!="undefined"){let{stargazers_count:o,forks_count:i}=n;return[`${be(o)} Stars`,`${be(i)} Forks`]}else{let{public_repos:o}=n;return[`${be(o)} Repositories`]}}),yt([]))}function Mo(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Me(r).pipe(f(({star_count:n,forks_count:o})=>[`${be(n)} Stars`,`${be(o)} Forks`]),yt([]))}function Lo(e){let[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":let[,r,n]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return To(r,n);case"gitlab":let[,o,i]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return Mo(o,i);default:return X}}var Pi;function Vi(e){return Pi||=xe(()=>{let t=sessionStorage.getItem(Bt("__repo"));if(t)return k(JSON.parse(t));{let r=Lo(e.href);return r.subscribe(n=>{try{sessionStorage.setItem(Bt("__repo"),JSON.stringify(n))}catch(o){}}),r}}).pipe(Ze(()=>X),L(t=>t.length>0),f(t=>({facts:t})),ee(1))}function Ao(e){let t=new M;return t.subscribe(({facts:r})=>{Yn(e,Zn(r)),Jn(e,"done")}),Vi(e).pipe(j(t),P(()=>t.complete()),f(r=>({ref:e,...r})))}function Di(e,{viewport$:t,header$:r}){return Tt(e,{header$:r,viewport$:t}).pipe(f(({offset:{y:n}})=>({hidden:n>=10})),U("hidden"))}function _o(e,t){let r=new M;return r.pipe(Y(K)).subscribe({next({hidden:n}){n?Xn(e,"hidden"):Gt(e)},complete(){Gt(e)}}),Di(e,t).pipe(j(r),P(()=>r.complete()),f(n=>({ref:e,...n})))}function Ui(e,{viewport$:t,header$:r}){let n=new Map;for(let a of e){let c=decodeURIComponent(a.hash.substring(1)),u=te(`[id="${c}"]`);typeof u!="undefined"&&n.set(a,u)}let o=r.pipe(f(a=>24+a.height));return Ne(document.body).pipe(U("height"),f(()=>{let a=[];return[...n].reduce((c,[u,s])=>{for(;a.length&&n.get(a[a.length-1]).tagName>=s.tagName;)a.pop();let l=s.offsetTop;for(;!l&&s.parentElement;)s=s.parentElement,l=s.offsetTop;return c.set([...a=[...a,u]].reverse(),l)},new Map)}),w(a=>J([o,t]).pipe(qr(([c,u],[s,{offset:{y:l}}])=>{for(;u.length;){let[,p]=u[0];if(p-s<l)c=[...c,u.shift()];else break}for(;c.length;){let[,p]=c[c.length-1];if(p-s>=l)u=[c.pop(),...u];else break}return[c,u]},[[],[...a]]),z((c,u)=>c[0]===u[0]&&c[1]===u[1])))).pipe(f(([a,c])=>({prev:a.map(([u])=>u),next:c.map(([u])=>u)})),V({prev:[],next:[]}),we(2,1),f(([a,c])=>a.prev.length<c.prev.length?{prev:c.prev.slice(Math.max(0,a.prev.length-1),c.prev.length),next:[]}:{prev:c.prev.slice(-1),next:c.next.slice(0,c.next.length-a.next.length)}))}function Ho(e,t){let r=new M;r.pipe(Y(K)).subscribe(({prev:o,next:i})=>{for(let[a]of i)An(a),Mn(a);for(let[a,[c]]of o.entries())Ln(c,a===o.length-1),Tn(c,"blur")});let n=Q("[href^=\\#]",e);return Ui(n,t).pipe(j(r),P(()=>r.complete()),f(o=>({ref:e,...o})))}function Co({document$:e}){e.subscribe(()=>{for(let t of Q("[data-md-state=indeterminate]"))t.setAttribute("data-md-state",""),t.indeterminate=!0,t.checked=!1})}function Wi(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function ko({document$:e}){e.pipe(w(()=>k(...Q("[data-md-scrollfix]"))),j(t=>t.removeAttribute("data-md-scrollfix")),L(Wi),ae(t=>O(t,"touchstart").pipe(ue(t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function jo({viewport$:e,tablet$:t}){J([Et("search"),t]).pipe(f(([r,n])=>r&&!n),w(r=>k(r).pipe(Ee(r?400:100),Y(K))),Oe(e)).subscribe(([r,{offset:{y:n}}])=>{r?En(document.body,n):On(document.body)})}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var qe=Gr(),rr=un(),nr=pn(),or=an(),ce=yn(),ir=ze("(min-width: 960px)"),Fo=ze("(min-width: 1220px)"),Io=mn(),Ni=B(),zi=__search?.index||Me(`${Ni.base}/search/search_index.json`),ar=new M;mo({alert$:ar});Mt("navigation.instant")&&ho({document$:qe,location$:rr,viewport$:ce});C(rr,nr).pipe(Ee(125)).subscribe(()=>{ke("drawer",!1),ke("search",!1)});or.pipe(L(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=te("[href][rel=prev]");typeof t!="undefined"&&t.click();break;case"n":case".":let r=te("[href][rel=next]");typeof r!="undefined"&&r.click();break}});Co({document$:qe});ko({document$:qe});jo({viewport$:ce,tablet$:ir});var Fe=uo(Le("header"),{viewport$:ce}),sr=qe.pipe(f(()=>Le("main")),w(e=>po(e,{viewport$:ce,header$:Fe})),ee(1)),Qi=C(...me("dialog").map(e=>co(e,{alert$:ar})),...me("header").map(e=>lo(e,{viewport$:ce,header$:Fe,main$:sr})),...me("search").map(e=>Oo(e,{index$:zi,keyboard$:or})),...me("source").map(e=>Ao(e)),...me("tabs").map(e=>_o(e,{viewport$:ce,header$:Fe}))),qi=xe(()=>C(...me("content").map(e=>so(e,{target$:nr,viewport$:ce,print$:Io})),...me("header-title").map(e=>fo(e,{viewport$:ce,header$:Fe})),...me("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Kt(Fo,()=>tr(e,{viewport$:ce,header$:Fe,main$:sr})):Kt(ir,()=>tr(e,{viewport$:ce,header$:Fe,main$:sr}))),...me("toc").map(e=>Ho(e,{viewport$:ce,header$:Fe})))),Ro=qe.pipe(w(()=>qi),xt(Qi),ee(1));Ro.subscribe();window.document$=qe;window.location$=rr;window.target$=nr;window.keyboard$=or;window.viewport$=ce;window.tablet$=ir;window.screen$=Fo;window.print$=Io;window.alert$=ar;window.component$=Ro;})();
|
|
/*!
|
|
* clipboard.js v2.0.6
|
|
* https://clipboardjs.com/
|
|
*
|
|
* Licensed MIT © Zeno Rocha
|
|
*/
|
|
/*!
|
|
* escape-html
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
* MIT Licensed
|
|
*/
|
|
/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */
|
|
//# sourceMappingURL=bundle.4e3fea51.min.js.map
|
|
|