mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-12-05 04:18:12 +01:00
32 lines
69 KiB
JavaScript
32 lines
69 KiB
JavaScript
(()=>{var Fo=Object.create,_t=Object.defineProperty,Ro=Object.getPrototypeOf,Po=Object.prototype.hasOwnProperty,$o=Object.getOwnPropertyNames,Do=Object.getOwnPropertyDescriptor;var Vo=e=>_t(e,"__esModule",{value:!0});var Ht=(e,t)=>()=>(t||(t={exports:{}},e(t.exports,t)),t.exports);var Uo=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $o(t))!Po.call(e,n)&&n!=="default"&&_t(e,n,{get:()=>t[n],enumerable:!(r=Do(t,n))||r.enumerable});return e},rt=e=>e&&e.__esModule?e:Uo(Vo(_t(e!=null?Fo(Ro(e)):{},"default",{value:e,enumerable:!0})),e);var ar=Ht((Ct,ir)=>{(function(e,t){typeof Ct=="object"&&typeof ir!="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 qe=y.type,Lt=y.tagName;return!!(Lt==="INPUT"&&a[qe]&&!y.readOnly||Lt==="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 h(y){n=!1}function _(y){!c(y.target)||(n||u(y.target))&&s(y.target)}function F(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),U())}function U(){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 re(){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,re())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",h,!0),document.addEventListener("pointerdown",h,!0),document.addEventListener("touchstart",h,!0),document.addEventListener("visibilitychange",T,!0),U(),r.addEventListener("focus",_,!0),r.addEventListener("blur",F,!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 Bt=Ht((tt,Jt)=>{(function(t,r){typeof tt=="object"&&typeof Jt=="object"?Jt.exports=r():typeof define=="function"&&define.amd?define([],r):typeof tt=="object"?tt.ClipboardJS=r():t.ClipboardJS=r()})(tt,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(h){h.addEventListener(l,p)}),{destroy:function(){Array.prototype.forEach.call(s,function(h){h.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 h=a.apply(this,arguments);return c.addEventListener(s,h,p),{destroy:function(){c.removeEventListener(s,h,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(h){return o(h,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(m,b){for(var x=0;x<b.length;x++){var L=b[x];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(m,L.key,L)}}return function(m,b,x){return b&&S(m.prototype,b),x&&S(m,x),m}}();function c(S,m){if(!(S instanceof m))throw new TypeError("Cannot call a class as a function")}var u=function(){function S(m){c(this,S),this.resolveOptions(m),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 L=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=L+"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),h=r(2),_=r.n(h),F=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(m,b){for(var x=0;x<b.length;x++){var L=b[x];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(m,L.key,L)}}return function(m,b,x){return b&&S(m.prototype,b),x&&S(m,x),m}}();function U(S,m){if(!(S instanceof m))throw new TypeError("Cannot call a class as a function")}function re(S,m){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:S}function H(S,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);S.prototype=Object.create(m&&m.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(S,m):S.__proto__=m)}var y=function(S){H(m,S);function m(b,x){U(this,m);var L=re(this,(m.__proto__||Object.getPrototypeOf(m)).call(this));return L.resolveOptions(x),L.listenClick(b),L}return T(m,[{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=F(x.container)==="object"?x.container:document.body}},{key:"listenClick",value:function(x){var L=this;this.listener=_()(x,"click",function(Ke){return L.onClick(Ke)})}},{key:"onClick",value:function(x){var L=x.delegateTarget||x.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s({action:this.action(L),target:this.target(L),text:this.text(L),container:this.container,trigger:L,emitter:this})}},{key:"defaultAction",value:function(x){return qe("action",x)}},{key:"defaultTarget",value:function(x){var L=qe("target",x);if(L)return document.querySelector(L)}},{key:"defaultText",value:function(x){return qe("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"],L=typeof x=="string"?[x]:x,Ke=!!document.queryCommandSupported;return L.forEach(function(Io){Ke=Ke&&!!document.queryCommandSupported(Io)}),Ke}}]),m}(p.a);function qe(S,m){var b="data-clipboard-"+S;if(!!m.hasAttribute(b))return m.getAttribute(b)}var Lt=t.default=y}]).default})});var po=Ht((Qb,fo)=>{"use strict";var Li=/["'&<>]/;fo.exports=_i;function _i(e){var t=""+e,r=Li.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 Fy=rt(ar());var jt=function(e,t){return jt=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])},jt(e,t)};function $(e,t){jt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function sr(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 cr(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 te(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 kt(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 k(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(kt(arguments[t]));return e}function ur(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 te=="function"?te(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 nt(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 ot=nt(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 me(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var X=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=te(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 ot?T.errors:[T]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var h=te(p),_=h.next();!_.done;_=h.next()){var F=_.value;try{lr(F)}catch(T){i=i??[],T instanceof ot?i=k(i,T.errors):i.push(T)}}}catch(T){n={error:T}}finally{try{_&&!_.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new ot(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)lr(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)&&me(r,t)},e.prototype.remove=function(t){var r=this._teardowns;r&&me(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var It=X.EMPTY;function it(e){return e instanceof X||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function lr(e){g(e)?e():e.unsubscribe()}var ce={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ce={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ce.delegate;return((r==null?void 0:r.setTimeout)||setTimeout).apply(void 0,k(e))},clearTimeout:function(e){var t=Ce.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function at(e){Ce.setTimeout(function(){var t=ce.onUnhandledError;if(t)t(e);else throw e})}function W(){}var fr=function(){return Ft("C",void 0,void 0)}();function pr(e){return Ft("E",void 0,e)}function mr(e){return Ft("N",e,void 0)}function Ft(e,t,r){return{kind:e,value:t,error:r}}var Oe=function(e){$(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,it(r)&&r.add(n)):n.destination=$t,n}return t.create=function(r,n,o){return new Rt(r,n,o)},t.prototype.next=function(r){this.isStopped?Pt(mr(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Pt(pr(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Pt(fr,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}(X);var Rt=function(e){$(t,e);function t(r,n,o){var i=e.call(this)||this;if(i.destination=$t,(r||n||o)&&r!==$t){var a=void 0;if(g(r))a=r;else if(r){a=r.next,n=r.error,o=r.complete;var c;i&&ce.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||W,error:n||dr,complete:o||W}}return i}return t}(Oe);function dr(e){if(ce.useDeprecatedSynchronousErrorHandling)throw e;at(e)}function Pt(e,t){var r=ce.onStoppedNotification;r&&Ce.setTimeout(function(){return r(e,t)})}var $t={closed:!0,next:W,error:dr,complete:W};var ve=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ne(e){return e}function hr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Dt(e)}function Dt(e){return e.length===0?ne:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var w=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=Wo(t)?t:new Rt(t,r,n),i=this,a=i.operator,c=i.source;return o.add(a?a.call(o,c):c||ce.useDeprecatedSynchronousErrorHandling?this._subscribe(o):this._trySubscribe(o)),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){if(ce.useDeprecatedSynchronousErrorHandling)throw r;t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=br(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[ve]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t.length?Dt(t)(this):this},e.prototype.toPromise=function(t){var r=this;return t=br(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 br(e){var t;return(t=e??ce.Promise)!==null&&t!==void 0?t:Promise}function No(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}function Wo(e){return e&&e instanceof Oe||No(e)&&it(e)}function zo(e){return g(e==null?void 0:e.lift)}function d(e){return function(t){if(zo(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){$(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}(Oe);var je={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,n=je.delegate;n&&(t=n.requestAnimationFrame,r=n.cancelAnimationFrame);var o=t(function(i){r=void 0,e(i)});return new X(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=je.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,k(e))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=je.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,k(e))},delegate:void 0};var vr=nt(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var M=function(e){$(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 gr(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new vr},t.prototype.next=function(r){var n,o;if(this._throwIfClosed(),!this.isStopped){var i=this.observers.slice();try{for(var a=te(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?It:(c.push(r),new X(function(){return me(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 w;return r.source=this,r},t.create=function(r,n){return new gr(r,n)},t}(w);var gr=function(e){$(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:It},t}(M);var yr=function(e){$(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}(M);var Ye={now:function(){return(Ye.delegate||Date).now()},delegate:void 0};var st=function(e){$(t,e);function t(r,n,o){r===void 0&&(r=Infinity),n===void 0&&(n=Infinity),o===void 0&&(o=Ye);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 xr=function(e){$(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}(X);var Je={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Je.delegate;return((r==null?void 0:r.setInterval)||setInterval).apply(void 0,k(e))},clearInterval:function(e){var t=Je.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var ct=function(e){$(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),Je.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;Je.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,me(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(xr);var Vt=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=Ye.now,e}();var ut=function(e){$(t,e);function t(r,n){n===void 0&&(n=Vt.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}(Vt);var Be=new ut(ct),Sr=Be;var wr=function(e){$(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=je.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&&(je.cancelAnimationFrame(n),r.scheduled=void 0)},t}(ct);var Er=function(e){$(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}(ut);var Y=new Er(wr);var ue=new w(function(e){return e.complete()});function ke(e,t){return new w(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}var Ie=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function lt(e){return g(e==null?void 0:e.then)}function Qo(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Fe=Qo();function Or(e,t){return new w(function(r){var n=new X;return n.add(t.schedule(function(){var o=e[ve]();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 Tr(e,t){return new w(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 Mr(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 Ar(e,t){return new w(function(r){var n;return r.add(t.schedule(function(){n=e[Fe](),Mr(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 ft(e){return g(e[ve])}function pt(e){return g(e==null?void 0:e[Fe])}function Lr(e,t){if(!e)throw new Error("Iterable cannot be null");return new w(function(r){var n=new X;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 mt(e){return Symbol.asyncIterator&&g(e==null?void 0:e[Symbol.asyncIterator])}function dt(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 _r(e,t){if(e!=null){if(ft(e))return Or(e,t);if(Ie(e))return ke(e,t);if(lt(e))return Tr(e,t);if(mt(e))return Lr(e,t);if(pt(e))return Ar(e,t)}throw dt(e)}function de(e,t){return t?_r(e,t):R(e)}function R(e){if(e instanceof w)return e;if(e!=null){if(ft(e))return qo(e);if(Ie(e))return Ut(e);if(lt(e))return Ko(e);if(mt(e))return Jo(e);if(pt(e))return Yo(e)}throw dt(e)}function qo(e){return new w(function(t){var r=e[ve]();if(g(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ut(e){return new w(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function Ko(e){return new w(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,at)})}function Yo(e){return new w(function(t){for(var r=e[Fe]();!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 Jo(e){return new w(function(t){Bo(e,t).catch(function(r){return t.error(r)})})}function Bo(e,t){var r,n,o,i;return sr(this,void 0,void 0,function(){var a,c;return cr(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=ur(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 le(e,t){return t?ke(e,t):Ut(e)}function ht(e){return e&&g(e.schedule)}function Wt(e){return e[e.length-1]}function ge(e){return g(Wt(e))?e.pop():void 0}function oe(e){return ht(Wt(e))?e.pop():void 0}function bt(e,t){return typeof Wt(e)=="number"?e.pop():t}function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=oe(e);return r?ke(e,r):le(e)}function Hr(e){return e instanceof Date&&!isNaN(e)}function f(e,t){return d(function(r,n){var o=0;r.subscribe(new v(n,function(i){n.next(e.call(t,i,o++))}))})}var Xo=Array.isArray;function Go(e,t){return Xo(t)?e.apply(void 0,k(t)):e(t)}function Re(e){return f(function(t){return Go(e,t)})}function J(e,t){return t===void 0&&(t=0),d(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 Zo=Array.isArray,ei=Object.getPrototypeOf,ti=Object.prototype,ri=Object.keys;function Cr(e){if(e.length===1){var t=e[0];if(Zo(t))return{args:t,keys:null};if(ni(t)){var r=ri(t);return{args:r.map(function(n){return t[n]}),keys:r}}}return{args:e,keys:null}}function ni(e){return e&&typeof e=="object"&&ei(e)===ti}function B(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=oe(e),n=ge(e),o=Cr(e),i=o.args,a=o.keys;if(i.length===0)return de([],r);var c=new w(Nt(i,r,a?function(u){for(var s={},l=0;l<u.length;l++)s[a[l]]=u[l];return s}:ne));return n?c.pipe(Re(n)):c}var oi=function(e){$(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}(Oe);function Nt(e,t,r){return r===void 0&&(r=ne),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(_){var F=function(){var T=de(e[_],t);T.subscribe(new oi(n,function(U){a[_]=U,s&&(u[_]=!0,s=!u.every(ne)),s||l()},function(){return--c==0}))};jr(t,F,n)},h=0;h<i;h++)p(h)};jr(t,o,n)}}function jr(e,t,r){e?r.add(e.schedule(t)):t()}function kr(e,t,r,n,o,i,a,c){var u=[],s=0,l=0,p=!1,h=function(){p&&!u.length&&!s&&t.complete()},_=function(T){return s<n?F(T):u.push(T)},F=function(T){i&&t.next(T),s++,R(r(T,l++)).subscribe(new v(t,function(U){o==null||o(U),i?_(U):t.next(U)},void 0,function(){s--;for(var U=function(){var re=u.shift();a?t.add(a.schedule(function(){return F(re)})):F(re)};u.length&&s<n;)U();h()}))};return e.subscribe(new v(t,_,void 0,function(){p=!0,h()})),function(){u=null,c==null||c()}}function ie(e,t,r){return r===void 0&&(r=Infinity),g(t)?ie(function(n,o){return f(function(i,a){return t(n,i,o,a)})(R(e(n,o)))},r):(typeof t=="number"&&(r=t),d(function(n,o){return kr(n,o,e,r)}))}function Pe(e){return e===void 0&&(e=Infinity),ie(ne,e)}function Ir(){return Pe(1)}function Xe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ir()(le(e,oe(e)))}function ye(e){return new w(function(t){R(e()).subscribe(t)})}var ii=["addListener","removeListener"],ai=["addEventListener","removeEventListener"],si=["on","off"];function E(e,t,r,n){if(g(r)&&(n=r,r=void 0),n)return E(e,t,r).pipe(Re(n));var o=kt(li(e)?ai.map(function(c){return function(u){return e[c](t,u,r)}}):ci(e)?ii.map(Fr(e,t)):ui(e)?si.map(Fr(e,t)):[],2),i=o[0],a=o[1];return!i&&Ie(e)?ie(function(c){return E(c,t,r)})(le(e)):new w(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 Fr(e,t){return function(r){return function(n){return e[r](t,n)}}}function ci(e){return g(e.addListener)&&g(e.removeListener)}function ui(e){return g(e.on)&&g(e.off)}function li(e){return g(e.addEventListener)&&g(e.removeEventListener)}function vt(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Sr);var n=-1;return t!=null&&(ht(t)?r=t:n=t),new w(function(o){var i=Hr(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 fi=Array.isArray;function xe(e){return e.length===1&&fi(e[0])?e[0]:e}function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=oe(e),n=bt(e,Infinity),o=xe(e);return o.length?o.length===1?R(o[0]):Pe(n)(le(o,r)):ue}var K=new w(W);function A(e,t){return d(function(r,n){var o=0;r.subscribe(new v(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function Rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ge(e),n=xe(e);return n.length?new w(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(h){return h.length})){var p=i.map(function(h){return h.shift()});o.next(r?r.apply(void 0,k(p)):p),i.some(function(h,_){return!h.length&&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}}):ue}function Se(e,t){return t===void 0&&(t=null),t=t??e,d(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 h=te(o),_=h.next();!_.done;_=h.next()){var F=_.value;F.push(a),e<=F.length&&(p=p??[],p.push(F))}}catch(re){c={error:re}}finally{try{_&&!_.done&&(u=h.return)&&u.call(h)}finally{if(c)throw c.error}}if(p)try{for(var T=te(p),U=T.next();!U.done;U=T.next()){var F=U.value;me(o,F),n.next(F)}}catch(re){s={error:re}}finally{try{U&&!U.done&&(l=T.return)&&l.call(T)}finally{if(s)throw s.error}}},void 0,function(){var a,c;try{for(var u=te(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 Ge(e){return d(function(t,r){var n=null,o=!1,i;n=t.subscribe(new v(r,void 0,function(a){i=R(e(a,Ge(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Pr(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 $r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ge(e);return r?hr($r.apply(void 0,k(e)),Re(r)):d(function(n,o){Nt(k([n],xe(e)))(o)})}function zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $r.apply(void 0,k(e))}function Dr(e,t){return g(t)?ie(e,t,1):ie(e,1)}function Vr(e){return d(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,W),R(e(c)).subscribe(i)},void 0,function(){a(),r.complete()},function(){o=i=null}))})}function Ur(e,t){t===void 0&&(t=Be);var r=vt(e,t);return Vr(function(){return r})}function gt(e){return e===void 0&&(e=null),d(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 Ze(e){return e<=0?function(){return ue}:d(function(t,r){var n=0;t.subscribe(new v(r,function(o){++n<=e&&(r.next(o),e<=n&&r.complete())}))})}function Wr(){return d(function(e,t){e.subscribe(new v(t,W))})}function ae(e){return d(function(t,r){t.subscribe(new v(r,function(){return r.next(e)}))})}function Qt(e,t){return t?function(r){return Xe(t.pipe(Ze(1),Wr()),r.pipe(Qt(e)))}:ie(function(r,n){return e(r,n).pipe(Ze(1),ae(r))})}function yt(e,t){t===void 0&&(t=Be);var r=vt(e,t);return Qt(function(){return r})}function N(e,t){return e=e??pi,d(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 pi(e,t){return e===t}function V(e,t){return N(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}function D(e){return d(function(t,r){t.subscribe(r),r.add(e)})}function Nr(e){return e<=0?function(){return ue}:d(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=te(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 mi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=oe(e),n=bt(e,Infinity);return e=xe(e),d(function(o,i){Pe(n)(le(k([o],e),r)).subscribe(i)})}function xt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mi.apply(void 0,k(e))}function et(e){return d(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,W))})}function zr(e,t){return d(Pr(e,t,arguments.length>=2,!0))}function G(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,h=!1,_=!1,F=function(){s=l=null,h=_=!1};return d(function(T,U){p++,l||(l=r());var re=l.subscribe(U);return s||(s=de(T).subscribe({next:function(H){return l.next(H)},error:function(H){_=!0;var y=l;a&&F(),y.error(H)},complete:function(){h=!0;var H=l;o&&F(),H.complete()}})),function(){if(p--,re.unsubscribe(),!p&&u&&!_&&!h){var H=s;F(),H==null||H.unsubscribe()}}})}function Z(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,G({connector:function(){return new st(i,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function St(e){return A(function(t,r){return e<=r})}function Qr(e){return d(function(t,r){var n=!1,o=new v(r,function(){o==null||o.unsubscribe(),n=!0},void 0,W);R(e).subscribe(o),t.subscribe(new v(r,function(i){return n&&r.next(i)}))})}function P(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=oe(e);return d(function(n,o){(r?Xe(e,n,r):Xe(e,n)).subscribe(o)})}function O(e,t){return d(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 qr(e,t){return t?O(function(){return e},t):O(function(){return e})}function Kr(e){return d(function(t,r){R(e).subscribe(new v(r,function(){return r.complete()},void 0,W)),!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?d(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()}))}):ne}var di={leading:!0,trailing:!1};function Yr(e,t){var r=t===void 0?di:t,n=r.leading,o=r.trailing;return d(function(i,a){var c=!1,u=null,s=null,l=!1,p=function(){s==null||s.unsubscribe(),s=null,o&&(F(),l&&a.complete())},h=function(){s=null,l&&a.complete()},_=function(T){return s=R(e(T)).subscribe(new v(a,p,void 0,h))},F=function(){c&&(a.next(u),!l&&_(u)),c=!1,u=null};i.subscribe(new v(a,function(T){c=!0,u=T,!(s&&!s.closed)&&(n?F():_(T))},void 0,function(){l=!0,!(o&&c&&s&&!s.closed)&&a.complete()}))})}function $e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ge(e);return d(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(h){a[p]=h,!u&&!c[p]&&(c[p]=!0,(u=c.every(ne))&&(c=null))},void 0,W))},l=0;l<i;l++)s(l);n.subscribe(new v(o,function(p){if(u){var h=k([p],a);o.next(r?r.apply(void 0,k(h)):h)}}))})}function hi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return d(function(r,n){Rr.apply(void 0,k([r],e)).subscribe(n)})}function Jr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return hi.apply(void 0,k(e))}function Br(){let e=new st;return E(document,"DOMContentLoaded").pipe(ae(document)).subscribe(e),e}function ee(e,t=document){return t.querySelector(e)||void 0}function fe(e,t=document){let r=ee(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function Te(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function z(e,t=document){return Array.from(t.querySelectorAll(e))}function De(e){return document.createElement(e)}function Me(e,t){e.replaceWith(t)}function we(e,t=!0){t?e.focus():e.blur()}function Xr(e){return C(E(e,"focus"),E(e,"blur")).pipe(f(({type:t})=>t==="focus"),P(e===Te()))}var Gr=new M,bi=ye(()=>I(new ResizeObserver(e=>{for(let t of e)Gr.next(t)}))).pipe(O(e=>K.pipe(P(e)).pipe(D(()=>e.disconnect()))),Z(1));function Ae(e){return{width:e.offsetWidth,height:e.offsetHeight}}function wt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Ve(e){return bi.pipe(j(t=>t.observe(e)),O(t=>Gr.pipe(A(({target:r})=>r===e),D(()=>t.unobserve(e)),f(({contentRect:r})=>({width:r.width,height:r.height})))),P(Ae(e)))}function Zr(e){return{x:e.scrollLeft,y:e.scrollTop}}function vi(e){return C(E(e,"scroll"),E(window,"resize")).pipe(f(()=>Zr(e)),P(Zr(e)))}function en(e,t=16){return vi(e).pipe(f(({y:r})=>{let n=Ae(e),o=wt(e);return r>=o.height-n.height-t}),N())}function tn(e){if(e instanceof HTMLInputElement)e.select();else throw new Error("Not implemented")}var Et={drawer:fe("[data-md-toggle=drawer]"),search:fe("[data-md-toggle=search]")};function rn(e){return Et[e].checked}function Ue(e,t){Et[e].checked!==t&&Et[e].click()}function nn(e){let t=Et[e];return E(t,"change").pipe(f(()=>t.checked),P(t.checked))}function gi(e){switch(e.tagName){case"INPUT":case"SELECT":case"TEXTAREA":return!0;default:return e.isContentEditable}}function on(){return E(window,"keydown").pipe(A(e=>!(e.metaKey||e.ctrlKey)),f(e=>({mode:rn("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),A(({mode:e})=>{if(e==="global"){let t=Te();if(typeof t!="undefined")return!gi(t)}return!0}),G())}function qt(){return new URL(location.href)}function an(e){location.href=e.href}function sn(){return new yr(qt())}function cn(){return location.hash.substring(1)}function un(e){let t=De("a");t.href=e,t.addEventListener("click",r=>r.stopPropagation()),t.click()}function yi(){return E(window,"hashchange").pipe(f(cn),P(cn()),A(e=>e.length>0),G())}function ln(){return yi().pipe(O(e=>I(ee(`[id="${e}"]`))))}function We(e){let t=matchMedia(e);return E(t,"change").pipe(f(r=>r.matches),P(t.matches))}function fn(){return C(We("print").pipe(A(Boolean)),E(window,"beforeprint")).pipe(ae(void 0))}function Kt(e,t){return e.pipe(O(r=>r?t():K))}function Ot(e,t={credentials:"same-origin"}){return de(fetch(e,t)).pipe(A(r=>r.status===200))}function Ne(e,t){return Ot(e,t).pipe(O(r=>r.json()),Z(1))}function pn(e,t){let r=new DOMParser;return Ot(e,t).pipe(O(n=>n.text()),f(n=>r.parseFromString(n,"text/xml")),Z(1))}function mn(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function Yt({x:e,y:t}){window.scrollTo(e||0,t||0)}function dn(){return C(E(window,"scroll",{passive:!0}),E(window,"resize",{passive:!0})).pipe(f(mn),P(mn()))}function hn(){return{width:innerWidth,height:innerHeight}}function bn(){return E(window,"resize",{passive:!0}).pipe(f(hn),P(hn()))}function vn(){return B([dn(),bn()]).pipe(f(([e,t])=>({offset:e,size:t})),Z(1))}function Tt(e,{viewport$:t,header$:r}){let n=t.pipe(V("size")),o=B([n,r]).pipe(f(()=>({x:e.offsetLeft,y:e.offsetTop})));return B([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 gn(e,{tx$:t}){let r=E(e,"message").pipe(f(({data:n})=>n));return t.pipe(Yr(()=>r,{leading:!0,trailing:!0}),j(n=>e.postMessage(n)),qr(r),G())}var xi=fe("#__config"),ze=JSON.parse(xi.textContent);ze.base=new URL(ze.base,qt()).toString().replace(/\/$/,"");function Le(){return ze}function Mt(e){return ze.features.includes(e)}function Q(e,t){return typeof t!="undefined"?ze.translations[e].replace("#",t.toString()):ze.translations[e]}function Ee(e,t=document){return fe(`[data-md-component=${e}]`,t)}function pe(e,t=document){return z(`[data-md-component=${e}]`,t)}var Gn=rt(Bt());function yn(e,t=0){e.setAttribute("tabindex",t.toString())}function xn(e){e.removeAttribute("tabindex")}function Sn(e,t){e.setAttribute("data-md-state",t)}function wn(e){e.removeAttribute("data-md-state")}function En(e,t){e.classList.toggle("md-nav__link--active",t)}function On(e){e.classList.remove("md-nav__link--active")}function Tn(e,t){e.firstElementChild.innerHTML=t}function Mn(e,t){e.setAttribute("data-md-state",t)}function An(e){e.removeAttribute("data-md-state")}function Ln(e,t){e.setAttribute("data-md-state",t)}function _n(e){e.removeAttribute("data-md-state")}function Hn(e,t){e.setAttribute("data-md-state",t)}function Cn(e){e.removeAttribute("data-md-state")}function jn(e,t){e.placeholder=t}function kn(e){e.placeholder=Q("search.placeholder")}function In(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)In(e,r)}function q(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)In(n,o);return n}function Fn(e,t){let r=t;if(e.length>r){for(;e[r]!==" "&&--r>0;);return`${e.substring(0,r)}...`}return e}function he(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Rn(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 Pn(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",he(t))}}function $n(e){e.textContent=Q("search.result.placeholder")}function Dn(e,t){e.appendChild(t)}function Vn(e){e.innerHTML=""}function Un(e,t){e.style.top=`${t}px`}function Wn(e){e.style.top=""}function Nn(e,t){let r=e.firstElementChild;r.style.height=`${t-2*r.offsetTop}px`}function zn(e){let t=e.firstElementChild;t.style.height=""}function Qn(e,t){e.lastElementChild.appendChild(t)}function qn(e,t){e.lastElementChild.setAttribute("data-md-state",t)}function Kn(e,t){e.setAttribute("data-md-state",t)}function Xt(e){e.removeAttribute("data-md-state")}function Yn(e){return q("button",{class:"md-clipboard md-icon",title:Q("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}var _e;(function(e){e[e.TEASER=1]="TEASER",e[e.PARENT=2]="PARENT"})(_e||(_e={}));function Gt(e,t){let r=t&2,n=t&1,o=Object.keys(e.terms).filter(a=>!e.terms[a]).map(a=>[q("del",null,a)," "]).flat().slice(0,-1),i=e.location;return q("a",{href:i,class:"md-search-result__link",tabIndex:-1},q("article",{class:["md-search-result__article",...r?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},r>0&&q("div",{class:"md-search-result__icon md-icon"}),q("h1",{class:"md-search-result__title"},e.title),n>0&&e.text.length>0&&q("p",{class:"md-search-result__teaser"},Fn(e.text,320)),n>0&&o.length>0&&q("p",{class:"md-search-result__terms"},Q("search.result.term.missing"),": ",o)))}function Jn(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=[Gt(o,2|+(!n&&i===0)),...a.map(s=>Gt(s,1)),...c.length?[q("details",{class:"md-search-result__more"},q("summary",{tabIndex:-1},c.length>0&&c.length===1?Q("search.result.more.one"):Q("search.result.more.other",c.length)),c.map(s=>Gt(s,1)))]:[]];return q("li",{class:"md-search-result__item"},u)}function Bn(e){return q("ul",{class:"md-source__facts"},e.map(t=>q("li",{class:"md-source__fact"},t)))}function Xn(e){return q("div",{class:"md-typeset__scrollwrap"},q("div",{class:"md-typeset__table"},e))}var Si=0;function wi(e,{viewport$:t}){let r=I(e).pipe(O(n=>{let o=n.closest("[data-tabs]");return o instanceof HTMLElement?C(...z("input",o).map(i=>E(i,"change"))):K}));return C(t.pipe(V("size")),r).pipe(f(()=>{let n=Ae(e);return{scroll:wt(e).width>n.width}}),V("scroll"))}function Zn(e,t){let r=new M;if(r.pipe($e(We("(hover)"))).subscribe(([{scroll:n},o])=>{n&&o?yn(e):xn(e)}),Gn.default.isSupported()){let n=e.closest("pre");n.id=`__code_${Si++}`,n.insertBefore(Yn(n.id),e)}return wi(e,t).pipe(j(r),D(()=>r.complete()),f(n=>({ref:e,...n})))}function Ei(e,{target$:t,print$:r}){return t.pipe(f(n=>n.closest("details:not([open])")),A(n=>e===n),xt(r),ae(e))}function eo(e,t){let r=new M;return r.subscribe(()=>{e.setAttribute("open",""),e.scrollIntoView()}),Ei(e,t).pipe(j(r),D(()=>r.complete()),ae({ref:e}))}var to=De("table");function ro(e){return Me(e,to),Me(to,Xn(e)),I({ref:e})}function no(e,{target$:t,viewport$:r,print$:n}){return C(...z("pre > code",e).map(o=>Zn(o,{viewport$:r})),...z("table:not([class])",e).map(o=>ro(o)),...z("details",e).map(o=>eo(o,{target$:t,print$:n})))}function Oi(e,{alert$:t}){return t.pipe(O(r=>C(I(!0),I(!1).pipe(yt(2e3))).pipe(f(n=>({message:r,open:n})))))}function oo(e,t){let r=new M;return r.pipe(J(Y)).subscribe(({message:n,open:o})=>{Tn(e,n),o?Mn(e,"open"):An(e)}),Oi(e,t).pipe(j(r),D(()=>r.complete()),f(n=>({ref:e,...n})))}function Ti({viewport$:e}){if(!Mt("header.autohide"))return I(!1);let t=e.pipe(f(({offset:{y:o}})=>o),Se(2,1),f(([o,i])=>[o<i,i]),V(0)),r=B([e,t]).pipe(A(([{offset:o},[,i]])=>Math.abs(i-o.y)>100),f(([,[o]])=>o),N()),n=nn("search");return B([e,n]).pipe(f(([{offset:o},i])=>o.y>400&&!i),N(),O(o=>o?r:I(!1)),P(!1))}function io(e,t){return ye(()=>{let r=getComputedStyle(e);return I(r.position==="sticky"||r.position==="-webkit-sticky")}).pipe(zt(Ve(e),Ti(t)),f(([r,{height:n},o])=>({height:r?n:0,sticky:r,hidden:o})),N((r,n)=>r.sticky===n.sticky&&r.height===n.height&&r.hidden===n.hidden),Z(1))}function ao(e,{header$:t,main$:r}){let n=new M;return n.pipe(V("active"),zt(t),J(Y)).subscribe(([{active:o},{hidden:i}])=>{o?Ln(e,i?"hidden":"shadow"):_n(e)}),r.subscribe(o=>n.next(o)),t.pipe(f(o=>({ref:e,...o})))}function Mi(e,{viewport$:t,header$:r}){return Tt(e,{header$:r,viewport$:t}).pipe(f(({offset:{y:n}})=>{let{height:o}=Ae(e);return{active:n>=o}}),V("active"))}function so(e,t){let r=new M;r.pipe(J(Y)).subscribe(({active:o})=>{o?Hn(e,"active"):Cn(e)});let n=ee("article h1");return typeof n=="undefined"?K:Mi(n,t).pipe(j(r),D(()=>r.complete()),f(o=>({ref:e,...o})))}function co(e,{viewport$:t,header$:r}){let n=r.pipe(f(({height:i})=>i),N()),o=n.pipe(O(()=>Ve(e).pipe(f(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),V("bottom"))));return B([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})),N((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}var Zt=rt(Bt());function uo({alert$:e}){Zt.default.isSupported()&&new w(t=>{new Zt.default("[data-clipboard-target], [data-clipboard-text]").on("success",r=>t.next(r))}).subscribe(()=>e.next(Q("clipboard.copied")))}function Ai(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=Le();return e.map(i=>i.replace(t.slice(0,n),`${o.base}/`))}function lo({document$:e,location$:t,viewport$:r}){let n=Le();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",E(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let o=ee("link[rel='shortcut icon']");typeof o!="undefined"&&(o.href=o.href);let i=pn(`${n.base}/sitemap.xml`).pipe(f(s=>Ai(z("loc",s).map(l=>l.textContent))),O(s=>E(document.body,"click").pipe(A(l=>!l.metaKey&&!l.ctrlKey),O(l=>{if(l.target instanceof HTMLElement){let p=l.target.closest("a");if(p&&!p.target&&s.includes(p.href))return l.preventDefault(),I({url:new URL(p.href)})}return K}))),G()),a=E(window,"popstate").pipe(A(s=>s.state!==null),f(s=>({url:new URL(location.href),offset:s.state})),G());C(i,a).pipe(N((s,l)=>s.url.href===l.url.href),f(({url:s})=>s)).subscribe(t);let c=t.pipe(V("pathname"),St(1),O(s=>Ot(s.href).pipe(Ge(()=>(an(s),K)))),G());i.pipe(et(c)).subscribe(({url:s})=>{history.pushState({},"",s.toString())});let u=new DOMParser;c.pipe(O(s=>s.text()),f(s=>u.parseFromString(s,"text/html"))).subscribe(e),C(i,a).pipe(et(e)).subscribe(({url:s,offset:l})=>{s.hash&&!l?un(s.hash):Yt(l||{y:0})}),e.pipe(St(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-title]","[data-md-component=container]","[data-md-component=skip]"]){let p=ee(l),h=ee(l,s);typeof p!="undefined"&&typeof h!="undefined"&&Me(p,h)}}),e.pipe(St(1),f(()=>Ee("container")),O(s=>I(...z("script",s))),Dr(s=>{let l=De("script");return s.src?(l.src=s.src,Me(s,l),new w(p=>{l.onload=()=>p.complete()})):(l.textContent=s.textContent,Me(s,l),ue)})).subscribe(),r.pipe(Qr(i),Ur(250),V("offset")).subscribe(({offset:s})=>{history.replaceState(s,"")}),C(i,a).pipe(Se(2,1),A(([s,l])=>s.url.pathname===l.url.pathname),f(([,s])=>s)).subscribe(({offset:s})=>{Yt(s||{y:0})})}var Hi=rt(po());function mo(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 be;(function(e){e[e.SETUP=0]="SETUP",e[e.READY=1]="READY",e[e.QUERY=2]="QUERY",e[e.RESULT=3]="RESULT"})(be||(be={}));function ho(e){return e.type===1}function bo(e){return e.type===2}function At(e){return e.type===3}function Ci({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 vo(e,t){let r=Le(),n=new Worker(e),o=new M,i=gn(n,{tx$:o}).pipe(f(a=>{if(At(a))for(let c of a.data)for(let u of c)u.location=`${r.base}/${u.location}`;return a}),G());return de(t).pipe(f(a=>({type:be.SETUP,data:Ci(a)}))).subscribe(o.next.bind(o)),{tx$:o,rx$:i}}function ji(e){let t=__search?.transform||mo,r=Xr(e),n=C(E(e,"keyup"),E(e,"focus").pipe(yt(1))).pipe(f(()=>t(e.value)),P(t(e.value)),N());return B([n,r]).pipe(f(([o,i])=>({value:o,focus:i})))}function go(e,{tx$:t}){let r=new M;return r.pipe(V("value"),f(({value:n})=>({type:be.QUERY,data:n}))).subscribe(t.next.bind(t)),r.pipe(V("focus")).subscribe(({focus:n})=>{n?(Ue("search",n),jn(e,"")):kn(e)}),E(e.form,"reset").pipe(Kr(r.pipe(Nr(1)))).subscribe(()=>we(e)),ji(e).pipe(j(r),D(()=>r.complete()),f(n=>({ref:e,...n})))}function yo(e,{rx$:t},{query$:r}){let n=new M,o=en(e.parentElement).pipe(A(Boolean)),i=fe(":scope > :first-child",e);n.pipe(J(Y),$e(r)).subscribe(([{data:u},{value:s}])=>{s?Pn(i,u.length):$n(i)});let a=fe(":scope > :last-child",e);return n.pipe(J(Y),j(()=>Vn(a)),O(({data:u})=>C(I(...u.slice(0,10)),I(...u.slice(10)).pipe(Se(4),Jr(o),O(([s])=>I(...s)))))).subscribe(u=>{Dn(a,Jn(u))}),t.pipe(A(At),f(({data:u})=>({data:u})),P({data:[]})).pipe(j(n),D(()=>n.complete()),f(u=>({ref:e,...u})))}function ki(e){return __search?.index||Ne(e)}function xo(e,{keyboard$:t}){if(location.protocol==="file:")return K;let r=Le(),n=vo(r.search,ki(`${r.base}/search/search_index.json`)),o=Ee("search-query",e),i=Ee("search-result",e),{tx$:a,rx$:c}=n;a.pipe(A(bo),et(c.pipe(A(ho))),Ze(1)).subscribe(a.next.bind(a)),t.pipe(A(({mode:s})=>s==="search")).subscribe(s=>{let l=Te();switch(s.type){case"Enter":l===o&&s.claim();break;case"Escape":case"Tab":Ue("search",!1),we(o,!1);break;case"ArrowUp":case"ArrowDown":if(typeof l=="undefined")we(o);else{let p=[o,...z(":not(details) > [href], summary, details[open] [href]",i)],h=Math.max(0,(Math.max(0,p.indexOf(l))+p.length+(s.type==="ArrowUp"?-1:1))%p.length);we(p[h])}s.claim();break;default:o!==Te()&&we(o)}}),t.pipe(A(({mode:s})=>s==="global")).subscribe(s=>{switch(s.type){case"f":case"s":case"/":we(o),tn(o),s.claim();break}});let u=go(o,n);return C(u,yo(i,n,{query$:u}))}function Ii(e,{viewport$:t,main$:r}){let n=e.parentElement.offsetTop-e.parentElement.parentElement.offsetTop;return B([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})),N((o,i)=>o.height===i.height&&o.locked===i.locked))}function er(e,{header$:t,...r}){let n=new M;return n.pipe(J(Y),$e(t)).subscribe({next([{height:o},{height:i}]){Nn(e,o),Un(e,i)},complete(){Wn(e),zn(e)}}),Ii(e,r).pipe(j(n),D(()=>n.complete()),f(o=>({ref:e,...o})))}function So(e,t){let r=typeof t!="undefined"?`https://api.github.com/repos/${e}/${t}`:`https://api.github.com/users/${e}`;return Ne(r).pipe(f(n=>{if(typeof t!="undefined"){let{stargazers_count:o,forks_count:i}=n;return[`${he(o)} Stars`,`${he(i)} Forks`]}else{let{public_repos:o}=n;return[`${he(o)} Repositories`]}}),gt([]))}function wo(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Ne(r).pipe(f(({star_count:n,forks_count:o})=>[`${he(n)} Stars`,`${he(o)} Forks`]),gt([]))}function Eo(e){let[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":let[,r,n]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return So(r,n);case"gitlab":let[,o,i]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return wo(o,i);default:return K}}var Fi;function Ri(e){let t=Rn(e.href).toString();return Fi||=ye(()=>{let r=sessionStorage.getItem(t);if(r)return I(JSON.parse(r));{let n=Eo(e.href);return n.subscribe(o=>{try{sessionStorage.setItem(t,JSON.stringify(o))}catch(i){}}),n}}).pipe(Ge(()=>K),A(r=>r.length>0),f(r=>({facts:r})),Z(1))}function Oo(e){let t=new M;return t.subscribe(({facts:r})=>{Qn(e,Bn(r)),qn(e,"done")}),Ri(e).pipe(j(t),D(()=>t.complete()),f(r=>({ref:e,...r})))}function Pi(e,{viewport$:t,header$:r}){return Tt(e,{header$:r,viewport$:t}).pipe(f(({offset:{y:n}})=>({hidden:n>=10})),V("hidden"))}function To(e,t){let r=new M;return r.pipe(J(Y)).subscribe({next({hidden:n}){n?Kn(e,"hidden"):Xt(e)},complete(){Xt(e)}}),Pi(e,t).pipe(j(r),D(()=>r.complete()),f(n=>({ref:e,...n})))}function $i(e,{viewport$:t,header$:r}){let n=new Map;for(let a of e){let c=decodeURIComponent(a.hash.substring(1)),u=ee(`[id="${c}"]`);typeof u!="undefined"&&n.set(a,u)}let o=r.pipe(f(a=>24+a.height));return Ve(document.body).pipe(V("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)}),O(a=>B([o,t]).pipe(zr(([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]]),N((c,u)=>c[0]===u[0]&&c[1]===u[1])))).pipe(f(([a,c])=>({prev:a.map(([u])=>u),next:c.map(([u])=>u)})),P({prev:[],next:[]}),Se(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 Mo(e,t){let r=new M;r.pipe(J(Y)).subscribe(({prev:o,next:i})=>{for(let[a]of i)On(a),wn(a);for(let[a,[c]]of o.entries())En(c,a===o.length-1),Sn(c,"blur")});let n=z("[href^=\\#]",e);return $i(n,t).pipe(j(r),D(()=>r.complete()),f(o=>({ref:e,...o})))}function Ao({document$:e}){e.subscribe(()=>{for(let t of z("[data-md-state=indeterminate]"))t.setAttribute("data-md-state",""),t.indeterminate=!0,t.checked=!1})}function Di(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Lo({document$:e}){e.pipe(O(()=>I(...z("[data-md-scrollfix]"))),j(t=>t.removeAttribute("data-md-scrollfix")),A(Di),ie(t=>E(t,"touchstart").pipe(ae(t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var Qe=Br(),tr=sn(),rr=ln(),nr=on(),se=vn(),_o=We("(min-width: 960px)"),Ho=We("(min-width: 1220px)"),Co=fn(),jo=new M;uo({alert$:jo});Mt("navigation.instant")&&lo({document$:Qe,location$:tr,viewport$:se});C(tr,rr).subscribe(()=>Ue("drawer",!1));nr.pipe(A(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=ee("[href][rel=prev]");typeof t!="undefined"&&t.click();break;case"n":case".":let r=ee("[href][rel=next]");typeof r!="undefined"&&r.click();break}});Ao({document$:Qe});Lo({document$:Qe});var He=io(Ee("header"),{viewport$:se}),or=Qe.pipe(f(()=>Ee("main")),O(e=>co(e,{viewport$:se,header$:He})),Z(1)),Vi=C(...pe("dialog").map(e=>oo(e,{alert$:jo})),...pe("header").map(e=>ao(e,{viewport$:se,header$:He,main$:or})),...pe("search").map(e=>xo(e,{keyboard$:nr})),...pe("source").map(e=>Oo(e)),...pe("tabs").map(e=>To(e,{viewport$:se,header$:He}))),Ui=ye(()=>C(...pe("content").map(e=>no(e,{target$:rr,viewport$:se,print$:Co})),...pe("header-title").map(e=>so(e,{viewport$:se,header$:He})),...pe("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Kt(Ho,()=>er(e,{viewport$:se,header$:He,main$:or})):Kt(_o,()=>er(e,{viewport$:se,header$:He,main$:or}))),...pe("toc").map(e=>Mo(e,{viewport$:se,header$:He})))),ko=Qe.pipe(O(()=>Ui),xt(Vi),Z(1));ko.subscribe();window.document$=Qe;window.location$=tr;window.target$=rr;window.keyboard$=nr;window.viewport$=se;window.tablet$=_o;window.screen$=Ho;window.print$=Co;window.component$=ko;})();
|
|
/*!
|
|
* 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.js.map
|