Files
headscale/development/assets/javascripts/bundle.fc193f93.min.js
T

17 lines
116 KiB
JavaScript

"use strict";(()=>{var ra=Object.create;var Ar=Object.defineProperty;var oa=Object.getOwnPropertyDescriptor;var na=Object.getOwnPropertyNames,Gt=Object.getOwnPropertySymbols,ia=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty,vo=Object.prototype.propertyIsEnumerable;var bo=(e,t,r)=>t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))Cr.call(t,r)&&bo(e,r,t[r]);if(Gt)for(var r of Gt(t))vo.call(t,r)&&bo(e,r,t[r]);return e};var go=(e,t)=>{var r={};for(var o in e)Cr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Gt)for(var o of Gt(e))t.indexOf(o)<0&&vo.call(e,o)&&(r[o]=e[o]);return r};var Hr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var aa=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of na(t))!Cr.call(e,n)&&n!==r&&Ar(e,n,{get:()=>t[n],enumerable:!(o=oa(t,n))||o.enumerable});return e};var Pt=(e,t,r)=>(r=e!=null?ra(ia(e)):{},aa(t||!e||!e.__esModule?Ar(r,"default",{value:e,enumerable:!0}):r,e));var yo=(e,t,r)=>new Promise((o,n)=>{var i=c=>{try{s(r.next(c))}catch(l){n(l)}},a=c=>{try{s(r.throw(c))}catch(l){n(l)}},s=c=>c.done?o(c.value):Promise.resolve(c.value).then(i,a);s((r=r.apply(e,t)).next())});var Eo=Hr((kr,xo)=>{(function(e,t){typeof kr=="object"&&typeof xo!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(kr,(function(){"use strict";function e(r){var o=!0,n=!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 s(M){return!!(M&&M!==document&&M.nodeName!=="HTML"&&M.nodeName!=="BODY"&&"classList"in M&&"contains"in M.classList)}function c(M){var Ae=M.type,Ce=M.tagName;return!!(Ce==="INPUT"&&a[Ae]&&!M.readOnly||Ce==="TEXTAREA"&&!M.readOnly||M.isContentEditable)}function l(M){M.classList.contains("focus-visible")||(M.classList.add("focus-visible"),M.setAttribute("data-focus-visible-added",""))}function p(M){M.hasAttribute("data-focus-visible-added")&&(M.classList.remove("focus-visible"),M.removeAttribute("data-focus-visible-added"))}function f(M){M.metaKey||M.altKey||M.ctrlKey||(s(r.activeElement)&&l(r.activeElement),o=!0)}function u(M){o=!1}function h(M){s(M.target)&&(o||c(M.target))&&l(M.target)}function d(M){s(M.target)&&(M.target.classList.contains("focus-visible")||M.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),p(M.target))}function y(M){document.visibilityState==="hidden"&&(n&&(o=!0),W())}function W(){document.addEventListener("mousemove",X),document.addEventListener("mousedown",X),document.addEventListener("mouseup",X),document.addEventListener("pointermove",X),document.addEventListener("pointerdown",X),document.addEventListener("pointerup",X),document.addEventListener("touchmove",X),document.addEventListener("touchstart",X),document.addEventListener("touchend",X)}function K(){document.removeEventListener("mousemove",X),document.removeEventListener("mousedown",X),document.removeEventListener("mouseup",X),document.removeEventListener("pointermove",X),document.removeEventListener("pointerdown",X),document.removeEventListener("pointerup",X),document.removeEventListener("touchmove",X),document.removeEventListener("touchstart",X),document.removeEventListener("touchend",X)}function X(M){M.target.nodeName&&M.target.nodeName.toLowerCase()==="html"||(o=!1,K())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",y,!0),W(),r.addEventListener("focus",h,!0),r.addEventListener("blur",d,!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 oo=Hr((Jy,Fn)=>{"use strict";/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var Qa=/["'&<>]/;Fn.exports=Ya;function Ya(e){var t=""+e,r=Qa.exec(t);if(!r)return t;var o,n="",i=0,a=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}a!==i&&(n+=t.substring(a,i)),a=i+1,n+=o}return a!==i?n+t.substring(a,i):n}});var so=Hr((zt,ao)=>{/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(t,r){typeof zt=="object"&&typeof ao=="object"?ao.exports=r():typeof define=="function"&&define.amd?define([],r):typeof zt=="object"?zt.ClipboardJS=r():t.ClipboardJS=r()})(zt,function(){return(function(){var e={686:(function(o,n,i){"use strict";i.d(n,{default:function(){return ta}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),p=i(817),f=i.n(p);function u(B){try{return document.execCommand(B)}catch(H){return!1}}var h=function(H){var A=f()(H);return u("cut"),A},d=h;function y(B){var H=document.documentElement.getAttribute("dir")==="rtl",A=document.createElement("textarea");A.style.fontSize="12pt",A.style.border="0",A.style.padding="0",A.style.margin="0",A.style.position="absolute",A.style[H?"right":"left"]="-9999px";var N=window.pageYOffset||document.documentElement.scrollTop;return A.style.top="".concat(N,"px"),A.setAttribute("readonly",""),A.value=B,A}var W=function(H,A){var N=y(H);A.container.appendChild(N);var z=f()(N);return u("copy"),N.remove(),z},K=function(H){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},N="";return typeof H=="string"?N=W(H,A):H instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(H==null?void 0:H.type)?N=W(H.value,A):(N=f()(H),u("copy")),N},X=K;function M(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?M=function(A){return typeof A}:M=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},M(B)}var Ae=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=H.action,N=A===void 0?"copy":A,z=H.container,Z=H.target,Ve=H.text;if(N!=="copy"&&N!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Z!==void 0)if(Z&&M(Z)==="object"&&Z.nodeType===1){if(N==="copy"&&Z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(N==="cut"&&(Z.hasAttribute("readonly")||Z.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ve)return X(Ve,{container:z});if(Z)return N==="cut"?d(Z):X(Z,{container:z})},Ce=Ae;function he(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?he=function(A){return typeof A}:he=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},he(B)}function D(B,H){if(!(B instanceof H))throw new TypeError("Cannot call a class as a function")}function oe(B,H){for(var A=0;A<H.length;A++){var N=H[A];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(B,N.key,N)}}function ae(B,H,A){return H&&oe(B.prototype,H),A&&oe(B,A),B}function ge(B,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(H&&H.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),H&&Ee(B,H)}function Ee(B,H){return Ee=Object.setPrototypeOf||function(N,z){return N.__proto__=z,N},Ee(B,H)}function rt(B){var H=Zi();return function(){var N=Qt(B),z;if(H){var Z=Qt(this).constructor;z=Reflect.construct(N,arguments,Z)}else z=N.apply(this,arguments);return Ji(this,z)}}function Ji(B,H){return H&&(he(H)==="object"||typeof H=="function")?H:Xi(B)}function Xi(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function Zi(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(B){return!1}}function Qt(B){return Qt=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},Qt(B)}function _r(B,H){var A="data-clipboard-".concat(B);if(H.hasAttribute(A))return H.getAttribute(A)}var ea=(function(B){ge(A,B);var H=rt(A);function A(N,z){var Z;return D(this,A),Z=H.call(this),Z.resolveOptions(z),Z.listenClick(N),Z}return ae(A,[{key:"resolveOptions",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof z.action=="function"?z.action:this.defaultAction,this.target=typeof z.target=="function"?z.target:this.defaultTarget,this.text=typeof z.text=="function"?z.text:this.defaultText,this.container=he(z.container)==="object"?z.container:document.body}},{key:"listenClick",value:function(z){var Z=this;this.listener=l()(z,"click",function(Ve){return Z.onClick(Ve)})}},{key:"onClick",value:function(z){var Z=z.delegateTarget||z.currentTarget,Ve=this.action(Z)||"copy",Yt=Ce({action:Ve,container:this.container,target:this.target(Z),text:this.text(Z)});this.emit(Yt?"success":"error",{action:Ve,text:Yt,trigger:Z,clearSelection:function(){Z&&Z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(z){return _r("action",z)}},{key:"defaultTarget",value:function(z){var Z=_r("target",z);if(Z)return document.querySelector(Z)}},{key:"defaultText",value:function(z){return _r("text",z)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(z){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return X(z,Z)}},{key:"cut",value:function(z){return d(z)}},{key:"isSupported",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Z=typeof z=="string"?[z]:z,Ve=!!document.queryCommandSupported;return Z.forEach(function(Yt){Ve=Ve&&!!document.queryCommandSupported(Yt)}),Ve}}]),A})(s()),ta=ea}),828:(function(o){var n=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,c){for(;s&&s.nodeType!==n;){if(typeof s.matches=="function"&&s.matches(c))return s;s=s.parentNode}}o.exports=a}),438:(function(o,n,i){var a=i(828);function s(p,f,u,h,d){var y=l.apply(this,arguments);return p.addEventListener(u,y,d),{destroy:function(){p.removeEventListener(u,y,d)}}}function c(p,f,u,h,d){return typeof p.addEventListener=="function"?s.apply(null,arguments):typeof u=="function"?s.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(y){return s(y,f,u,h,d)}))}function l(p,f,u,h){return function(d){d.delegateTarget=a(d.target,f),d.delegateTarget&&h.call(p,d)}}o.exports=c}),879:(function(o,n){n.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},n.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||n.node(i[0]))},n.string=function(i){return typeof i=="string"||i instanceof String},n.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}}),370:(function(o,n,i){var a=i(879),s=i(438);function c(u,h,d){if(!u&&!h&&!d)throw new Error("Missing required arguments");if(!a.string(h))throw new TypeError("Second argument must be a String");if(!a.fn(d))throw new TypeError("Third argument must be a Function");if(a.node(u))return l(u,h,d);if(a.nodeList(u))return p(u,h,d);if(a.string(u))return f(u,h,d);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(u,h,d){return u.addEventListener(h,d),{destroy:function(){u.removeEventListener(h,d)}}}function p(u,h,d){return Array.prototype.forEach.call(u,function(y){y.addEventListener(h,d)}),{destroy:function(){Array.prototype.forEach.call(u,function(y){y.removeEventListener(h,d)})}}}function f(u,h,d){return s(document.body,u,h,d)}o.exports=c}),817:(function(o){function n(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var c=window.getSelection(),l=document.createRange();l.selectNodeContents(i),c.removeAllRanges(),c.addRange(l),a=c.toString()}return a}o.exports=n}),279:(function(o){function n(){}n.prototype={on:function(i,a,s){var c=this.e||(this.e={});return(c[i]||(c[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var c=this;function l(){c.off(i,l),a.apply(s,arguments)}return l._=a,this.on(i,l,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),c=0,l=s.length;for(c;c<l;c++)s[c].fn.apply(s[c].ctx,a);return this},off:function(i,a){var s=this.e||(this.e={}),c=s[i],l=[];if(c&&a)for(var p=0,f=c.length;p<f;p++)c[p].fn!==a&&c[p].fn._!==a&&l.push(c[p]);return l.length?s[i]=l:delete s[i],this}},o.exports=n,o.exports.TinyEmitter=n})},t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}return(function(){r.n=function(o){var n=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(n,{a:n}),n}})(),(function(){r.d=function(o,n){for(var i in n)r.o(n,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:n[i]})}})(),(function(){r.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)}})(),r(686)})().default})});var f0=Pt(Eo());var $r=function(e,t){return $r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},$r(e,t)};function ne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");$r(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function wo(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(p){try{l(o.next(p))}catch(f){a(f)}}function c(p){try{l(o.throw(p))}catch(f){a(f)}}function l(p){p.done?i(p.value):n(p.value).then(s,c)}l((o=o.apply(e,t||[])).next())})}function Jt(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(p){return c([l,p])}}function c(l){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(o=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,n=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],n=0}finally{o=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Me(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Q(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),n,i=[],a;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function J(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function ht(e){return this instanceof ht?(this.v=e,this):new ht(e)}function To(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(e,t||[]),n,i=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),n[Symbol.asyncIterator]=function(){return this},n;function a(h){return function(d){return Promise.resolve(d).then(h,f)}}function s(h,d){o[h]&&(n[h]=function(y){return new Promise(function(W,K){i.push([h,y,W,K])>1||c(h,y)})},d&&(n[h]=d(n[h])))}function c(h,d){try{l(o[h](d))}catch(y){u(i[0][3],y)}}function l(h){h.value instanceof ht?Promise.resolve(h.value.v).then(p,f):u(i[0][2],h)}function p(h){c("next",h)}function f(h){c("throw",h)}function u(h,d){h(d),i.shift(),i.length&&c(i[0][0],i[0][1])}}function So(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 Me=="function"?Me(e):e[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(i){r[i]=e[i]&&function(a){return new Promise(function(s,c){a=e[i](a),n(s,c,a.done,a.value)})}}function n(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function P(e){return typeof e=="function"}function Et(e){var t=function(o){Error.call(o),o.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Xt=Et(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
`+r.map(function(o,n){return n+1+") "+o.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=r}});function ot(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ye=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,o,n,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Me(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(y){t={error:y}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var p=this.initialTeardown;if(P(p))try{p()}catch(y){i=y instanceof Xt?y.errors:[y]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var u=Me(f),h=u.next();!h.done;h=u.next()){var d=h.value;try{Oo(d)}catch(y){i=i!=null?i:[],y instanceof Xt?i=J(J([],Q(i)),Q(y.errors)):i.push(y)}}}catch(y){o={error:y}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}}if(i)throw new Xt(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Oo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==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)&&ot(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ot(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Rr=Ye.EMPTY;function Zt(e){return e instanceof Ye||e&&"closed"in e&&P(e.remove)&&P(e.add)&&P(e.unsubscribe)}function Oo(e){P(e)?e():e.unsubscribe()}var Ne={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var wt={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=wt.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,J([e,t],Q(r))):setTimeout.apply(void 0,J([e,t],Q(r)))},clearTimeout:function(e){var t=wt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function er(e){wt.setTimeout(function(){var t=Ne.onUnhandledError;if(t)t(e);else throw e})}function we(){}var Lo=(function(){return Pr("C",void 0,void 0)})();function Mo(e){return Pr("E",void 0,e)}function _o(e){return Pr("N",e,void 0)}function Pr(e,t,r){return{kind:e,value:t,error:r}}var bt=null;function Tt(e){if(Ne.useDeprecatedSynchronousErrorHandling){var t=!bt;if(t&&(bt={errorThrown:!1,error:null}),e(),t){var r=bt,o=r.errorThrown,n=r.error;if(bt=null,o)throw n}}else e()}function Ao(e){Ne.useDeprecatedSynchronousErrorHandling&&bt&&(bt.errorThrown=!0,bt.error=e)}var It=(function(e){ne(t,e);function t(r){var o=e.call(this)||this;return o.isStopped=!1,r?(o.destination=r,Zt(r)&&r.add(o)):o.destination=pa,o}return t.create=function(r,o,n){return new vt(r,o,n)},t.prototype.next=function(r){this.isStopped?Fr(_o(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Fr(Mo(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Fr(Lo,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Ye);var sa=Function.prototype.bind;function Ir(e,t){return sa.call(e,t)}var ca=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(o){tr(o)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(o){tr(o)}else tr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){tr(r)}},e})(),vt=(function(e){ne(t,e);function t(r,o,n){var i=e.call(this)||this,a;if(P(r)||!r)a={next:r!=null?r:void 0,error:o!=null?o:void 0,complete:n!=null?n:void 0};else{var s;i&&Ne.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&Ir(r.next,s),error:r.error&&Ir(r.error,s),complete:r.complete&&Ir(r.complete,s)}):a=r}return i.destination=new ca(a),i}return t})(It);function tr(e){Ne.useDeprecatedSynchronousErrorHandling?Ao(e):er(e)}function la(e){throw e}function Fr(e,t){var r=Ne.onStoppedNotification;r&&wt.setTimeout(function(){return r(e,t)})}var pa={closed:!0,next:we,error:la,complete:we};var St=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ye(e){return e}function Co(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return jr(e)}function jr(e){return e.length===0?ye:e.length===1?e[0]:function(r){return e.reduce(function(o,n){return n(o)},r)}}var F=(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,o){var n=this,i=fa(t)?t:new vt(t,r,o);return Tt(function(){var a=n,s=a.operator,c=a.source;i.add(s?s.call(i,c):c?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var o=this;return r=Ho(r),new r(function(n,i){var a=new vt({next:function(s){try{t(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:n});o.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[St]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return jr(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Ho(t),new t(function(o,n){var i;r.subscribe(function(a){return i=a},function(a){return n(a)},function(){return o(i)})})},e.create=function(t){return new e(t)},e})();function Ho(e){var t;return(t=e!=null?e:Ne.Promise)!==null&&t!==void 0?t:Promise}function ma(e){return e&&P(e.next)&&P(e.error)&&P(e.complete)}function fa(e){return e&&e instanceof It||ma(e)&&Zt(e)}function ua(e){return P(e==null?void 0:e.lift)}function T(e){return function(t){if(ua(t))return t.lift(function(r){try{return e(r,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function S(e,t,r,o,n){return new da(e,t,r,o,n)}var da=(function(e){ne(t,e);function t(r,o,n,i,a,s){var c=e.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=o?function(l){try{o(l)}catch(p){r.error(p)}}:e.prototype._next,c._error=i?function(l){try{i(l)}catch(p){r.error(p)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=n?function(){try{n()}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(It);var Ot={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,o=Ot.delegate;o&&(t=o.requestAnimationFrame,r=o.cancelAnimationFrame);var n=t(function(i){r=void 0,e(i)});return new Ye(function(){return r==null?void 0:r(n)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ot.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,J([],Q(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ot.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,J([],Q(e)))},delegate:void 0};var ko=Et(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var O=(function(e){ne(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var o=new $o(this,this);return o.operator=r,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new ko},t.prototype.next=function(r){var o=this;Tt(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var a=Me(o.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var o=this;Tt(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=r;for(var n=o.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;Tt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var o=r.observers;o.length;)o.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),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 o=this,n=this,i=n.hasError,a=n.isStopped,s=n.observers;return i||a?Rr:(this.currentObservers=null,s.push(r),new Ye(function(){o.currentObservers=null,ot(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,a=o.isStopped;n?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new F;return r.source=this,r},t.create=function(r,o){return new $o(r,o)},t})(F);var $o=(function(e){ne(t,e);function t(r,o){var n=e.call(this)||this;return n.destination=r,n.source=o,n}return t.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},t.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},t.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},t.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:Rr},t})(O);var Ur=(function(e){ne(t,e);function t(r){var o=e.call(this)||this;return o._value=r,o}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var o=e.prototype._subscribe.call(this,r);return!o.closed&&r.next(this._value),o},t.prototype.getValue=function(){var r=this,o=r.hasError,n=r.thrownError,i=r._value;if(o)throw n;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(O);var Ft={now:function(){return(Ft.delegate||Date).now()},delegate:void 0};var jt=(function(e){ne(t,e);function t(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=Ft);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(r){var o=this,n=o.isStopped,i=o._buffer,a=o._infiniteTimeWindow,s=o._timestampProvider,c=o._windowTime;n||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,a=n._buffer,s=a.slice(),c=0;c<s.length&&!r.closed;c+=i?1:2)r.next(s[c]);return this._checkFinalizedStatuses(r),o},t.prototype._trimBuffer=function(){var r=this,o=r._bufferSize,n=r._timestampProvider,i=r._buffer,a=r._infiniteTimeWindow,s=(a?1:2)*o;if(o<1/0&&s<i.length&&i.splice(0,i.length-s),!a){for(var c=n.now(),l=0,p=1;p<i.length&&i[p]<=c;p+=2)l=p;l&&i.splice(0,l+1)}},t})(O);var Ro=(function(e){ne(t,e);function t(r,o){return e.call(this)||this}return t.prototype.schedule=function(r,o){return o===void 0&&(o=0),this},t})(Ye);var Ut={setInterval:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Ut.delegate;return n!=null&&n.setInterval?n.setInterval.apply(n,J([e,t],Q(r))):setInterval.apply(void 0,J([e,t],Q(r)))},clearInterval:function(e){var t=Ut.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var Lt=(function(e){ne(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n.pending=!1,n}return t.prototype.schedule=function(r,o){var n;if(o===void 0&&(o=0),this.closed)return this;this.state=r;var i=this.id,a=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(a,i,o)),this.pending=!0,this.delay=o,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(a,this.id,o),this},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),Ut.setInterval(r.flush.bind(r,this),n)},t.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;o!=null&&Ut.clearInterval(o)},t.prototype.execute=function(r,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(r,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,o){var n=!1,i;try{this.work(r)}catch(a){n=!0,i=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,o=r.id,n=r.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ot(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(Ro);var Dr=(function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,o){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(o,r)},e.now=Ft.now,e})();var Mt=(function(e){ne(t,e);function t(r,o){o===void 0&&(o=Dr.now);var n=e.call(this,r,o)||this;return n.actions=[],n._active=!1,n}return t.prototype.flush=function(r){var o=this.actions;if(this._active){o.push(r);return}var n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=o.shift());if(this._active=!1,n){for(;r=o.shift();)r.unsubscribe();throw n}},t})(Dr);var le=new Mt(Lt),Wr=le;var Po=(function(e){ne(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n}return t.prototype.schedule=function(r,o){return o===void 0&&(o=0),o>0?e.prototype.schedule.call(this,r,o):(this.delay=o,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,o){return o>0||this.closed?e.prototype.execute.call(this,r,o):this._execute(r,o)},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.flush(this),0)},t})(Lt);var Io=(function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Mt);var Vr=new Io(Po);var Fo=(function(e){ne(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n}return t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!==null&&n>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.actions.push(this),r._scheduled||(r._scheduled=Ot.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,o,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,o,n);var a=r.actions;o!=null&&o===r._scheduled&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==o&&(Ot.cancelAnimationFrame(o),r._scheduled=void 0)},t})(Lt);var jo=(function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var o;r?o=r.id:(o=this._scheduled,this._scheduled=void 0);var n=this.actions,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===o&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===o&&n.shift();)r.unsubscribe();throw i}},t})(Mt);var Te=new jo(Fo);var x=new F(function(e){return e.complete()});function rr(e){return e&&P(e.schedule)}function Nr(e){return e[e.length-1]}function ft(e){return P(Nr(e))?e.pop():void 0}function We(e){return rr(Nr(e))?e.pop():void 0}function or(e,t){return typeof Nr(e)=="number"?e.pop():t}var _t=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function nr(e){return P(e==null?void 0:e.then)}function ir(e){return P(e[St])}function ar(e){return Symbol.asyncIterator&&P(e==null?void 0:e[Symbol.asyncIterator])}function sr(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, ReadableStream, Array, AsyncIterable, or Iterable.")}function ha(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var cr=ha();function lr(e){return P(e==null?void 0:e[cr])}function pr(e){return To(this,arguments,function(){var r,o,n,i;return Jt(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,ht(r.read())];case 3:return o=a.sent(),n=o.value,i=o.done,i?[4,ht(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,ht(n)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function mr(e){return P(e==null?void 0:e.getReader)}function U(e){if(e instanceof F)return e;if(e!=null){if(ir(e))return ba(e);if(_t(e))return va(e);if(nr(e))return ga(e);if(ar(e))return Uo(e);if(lr(e))return ya(e);if(mr(e))return xa(e)}throw sr(e)}function ba(e){return new F(function(t){var r=e[St]();if(P(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function va(e){return new F(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function ga(e){return new F(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,er)})}function ya(e){return new F(function(t){var r,o;try{for(var n=Me(e),i=n.next();!i.done;i=n.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}t.complete()})}function Uo(e){return new F(function(t){Ea(e,t).catch(function(r){return t.error(r)})})}function xa(e){return Uo(pr(e))}function Ea(e,t){var r,o,n,i;return wo(this,void 0,void 0,function(){var a,s;return Jt(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=So(e),c.label=1;case 1:return[4,r.next()];case 2:if(o=c.sent(),!!o.done)return[3,4];if(a=o.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),n={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function He(e,t,r,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var i=t.schedule(function(){r(),n?e.add(this.schedule(null,o)):this.unsubscribe()},o);if(e.add(i),!n)return i}function Se(e,t){return t===void 0&&(t=0),T(function(r,o){r.subscribe(S(o,function(n){return He(o,e,function(){return o.next(n)},t)},function(){return He(o,e,function(){return o.complete()},t)},function(n){return He(o,e,function(){return o.error(n)},t)}))})}function nt(e,t){return t===void 0&&(t=0),T(function(r,o){o.add(e.schedule(function(){return r.subscribe(o)},t))})}function Do(e,t){return U(e).pipe(nt(t),Se(t))}function Wo(e,t){return U(e).pipe(nt(t),Se(t))}function Vo(e,t){return new F(function(r){var o=0;return t.schedule(function(){o===e.length?r.complete():(r.next(e[o++]),r.closed||this.schedule())})})}function No(e,t){return new F(function(r){var o;return He(r,t,function(){o=e[cr](),He(r,t,function(){var n,i,a;try{n=o.next(),i=n.value,a=n.done}catch(s){r.error(s);return}a?r.complete():r.next(i)},0,!0)}),function(){return P(o==null?void 0:o.return)&&o.return()}})}function fr(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(function(r){He(r,t,function(){var o=e[Symbol.asyncIterator]();He(r,t,function(){o.next().then(function(n){n.done?r.complete():r.next(n.value)})},0,!0)})})}function zo(e,t){return fr(pr(e),t)}function qo(e,t){if(e!=null){if(ir(e))return Do(e,t);if(_t(e))return Vo(e,t);if(nr(e))return Wo(e,t);if(ar(e))return fr(e,t);if(lr(e))return No(e,t);if(mr(e))return zo(e,t)}throw sr(e)}function ue(e,t){return t?qo(e,t):U(e)}function $(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=We(e);return ue(e,r)}function zr(e,t){var r=P(e)?e:function(){return e},o=function(n){return n.error(r())};return new F(t?function(n){return t.schedule(o,0,n)}:o)}var ur=Et(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function Bo(e){return e instanceof Date&&!isNaN(e)}function m(e,t){return T(function(r,o){var n=0;r.subscribe(S(o,function(i){o.next(e.call(t,i,n++))}))})}var wa=Array.isArray;function Ta(e,t){return wa(t)?e.apply(void 0,J([],Q(t))):e(t)}function ut(e){return m(function(t){return Ta(e,t)})}var Sa=Array.isArray,Oa=Object.getPrototypeOf,La=Object.prototype,Ma=Object.keys;function Ko(e){if(e.length===1){var t=e[0];if(Sa(t))return{args:t,keys:null};if(_a(t)){var r=Ma(t);return{args:r.map(function(o){return t[o]}),keys:r}}}return{args:e,keys:null}}function _a(e){return e&&typeof e=="object"&&Oa(e)===La}function Qo(e,t){return e.reduce(function(r,o,n){return r[o]=t[n],r},{})}function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=We(e),o=ft(e),n=Ko(e),i=n.args,a=n.keys;if(i.length===0)return ue([],r);var s=new F(qr(i,r,a?function(c){return Qo(a,c)}:ye));return o?s.pipe(ut(o)):s}function qr(e,t,r){return r===void 0&&(r=ye),function(o){Yo(t,function(){for(var n=e.length,i=new Array(n),a=n,s=n,c=function(p){Yo(t,function(){var f=ue(e[p],t),u=!1;f.subscribe(S(o,function(h){i[p]=h,u||(u=!0,s--),s||o.next(r(i.slice()))},function(){--a||o.complete()}))},o)},l=0;l<n;l++)c(l)},o)}}function Yo(e,t,r){e?He(r,e,t):t()}function Go(e,t,r,o,n,i,a,s){var c=[],l=0,p=0,f=!1,u=function(){f&&!c.length&&!l&&t.complete()},h=function(y){return l<o?d(y):c.push(y)},d=function(y){i&&t.next(y),l++;var W=!1;U(r(y,p++)).subscribe(S(t,function(K){n==null||n(K),i?h(K):t.next(K)},function(){W=!0},void 0,function(){if(W)try{l--;for(var K=function(){var X=c.shift();a?He(t,a,function(){return d(X)}):d(X)};c.length&&l<o;)K();u()}catch(X){t.error(X)}}))};return e.subscribe(S(t,h,function(){f=!0,u()})),function(){s==null||s()}}function re(e,t,r){return r===void 0&&(r=1/0),P(t)?re(function(o,n){return m(function(i,a){return t(o,i,n,a)})(U(e(o,n)))},r):(typeof t=="number"&&(r=t),T(function(o,n){return Go(o,n,e,r)}))}function At(e){return e===void 0&&(e=1/0),re(ye,e)}function Jo(){return At(1)}function Ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Jo()(ue(e,We(e)))}function k(e){return new F(function(t){U(e()).subscribe(t)})}var Aa=["addListener","removeListener"],Ca=["addEventListener","removeEventListener"],Ha=["on","off"];function b(e,t,r,o){if(P(r)&&(o=r,r=void 0),o)return b(e,t,r).pipe(ut(o));var n=Q(Ra(e)?Ca.map(function(s){return function(c){return e[s](t,c,r)}}):ka(e)?Aa.map(Xo(e,t)):$a(e)?Ha.map(Xo(e,t)):[],2),i=n[0],a=n[1];if(!i&&_t(e))return re(function(s){return b(s,t,r)})(U(e));if(!i)throw new TypeError("Invalid event target");return new F(function(s){var c=function(){for(var l=[],p=0;p<arguments.length;p++)l[p]=arguments[p];return s.next(1<l.length?l:l[0])};return i(c),function(){return a(c)}})}function Xo(e,t){return function(r){return function(o){return e[r](t,o)}}}function ka(e){return P(e.addListener)&&P(e.removeListener)}function $a(e){return P(e.on)&&P(e.off)}function Ra(e){return P(e.addEventListener)&&P(e.removeEventListener)}function dr(e,t,r){return r?dr(e,t).pipe(ut(r)):new F(function(o){var n=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o.next(a.length===1?a[0]:a)},i=e(n);return P(t)?function(){return t(n,i)}:void 0})}function Pe(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Wr);var o=-1;return t!=null&&(rr(t)?r=t:o=t),new F(function(n){var i=Bo(e)?+e-r.now():e;i<0&&(i=0);var a=0;return r.schedule(function(){n.closed||(n.next(a++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=We(e),o=or(e,1/0),n=e;return n.length?n.length===1?U(n[0]):At(o)(ue(n,r)):x}var it=new F(we);var Pa=Array.isArray;function hr(e){return e.length===1&&Pa(e[0])?e[0]:e}function g(e,t){return T(function(r,o){var n=0;r.subscribe(S(o,function(i){return e.call(t,i,n++)&&o.next(i)}))})}function at(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ft(e),o=hr(e);return o.length?new F(function(n){var i=o.map(function(){return[]}),a=o.map(function(){return!1});n.add(function(){i=a=null});for(var s=function(l){U(o[l]).subscribe(S(n,function(p){if(i[l].push(p),i.every(function(u){return u.length})){var f=i.map(function(u){return u.shift()});n.next(r?r.apply(void 0,J([],Q(f))):f),i.some(function(u,h){return!u.length&&a[h]})&&n.complete()}},function(){a[l]=!0,!i[l].length&&n.complete()}))},c=0;!n.closed&&c<o.length;c++)s(c);return function(){i=a=null}}):x}function Zo(e){return T(function(t,r){var o=!1,n=null,i=null,a=!1,s=function(){if(i==null||i.unsubscribe(),i=null,o){o=!1;var l=n;n=null,r.next(l)}a&&r.complete()},c=function(){i=null,a&&r.complete()};t.subscribe(S(r,function(l){o=!0,n=l,i||U(e(l)).subscribe(i=S(r,s,c))},function(){a=!0,(!o||!i||i.closed)&&r.complete()}))})}function Ie(e,t){return t===void 0&&(t=le),Zo(function(){return Pe(e,t)})}function st(e,t){return t===void 0&&(t=null),t=t!=null?t:e,T(function(r,o){var n=[],i=0;r.subscribe(S(o,function(a){var s,c,l,p,f=null;i++%t===0&&n.push([]);try{for(var u=Me(n),h=u.next();!h.done;h=u.next()){var d=h.value;d.push(a),e<=d.length&&(f=f!=null?f:[],f.push(d))}}catch(K){s={error:K}}finally{try{h&&!h.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}if(f)try{for(var y=Me(f),W=y.next();!W.done;W=y.next()){var d=W.value;ot(n,d),o.next(d)}}catch(K){l={error:K}}finally{try{W&&!W.done&&(p=y.return)&&p.call(y)}finally{if(l)throw l.error}}},function(){var a,s;try{for(var c=Me(n),l=c.next();!l.done;l=c.next()){var p=l.value;o.next(p)}}catch(f){a={error:f}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}o.complete()},void 0,function(){n=null}))})}function xe(e){return T(function(t,r){var o=null,n=!1,i;o=t.subscribe(S(r,void 0,void 0,function(a){i=U(e(a,xe(e)(t))),o?(o.unsubscribe(),o=null,i.subscribe(r)):n=!0})),n&&(o.unsubscribe(),o=null,i.subscribe(r))})}function en(e,t,r,o,n){return function(i,a){var s=r,c=t,l=0;i.subscribe(S(a,function(p){var f=l++;c=s?e(c,p,f):(s=!0,p),o&&a.next(c)},n&&(function(){s&&a.next(c),a.complete()})))}}function Br(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ft(e);return r?Co(Br.apply(void 0,J([],Q(e))),ut(r)):T(function(o,n){qr(J([o],Q(hr(e))))(n)})}function Fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Br.apply(void 0,J([],Q(e)))}function Dt(e){return T(function(t,r){var o=!1,n=null,i=null,a=function(){if(i==null||i.unsubscribe(),i=null,o){o=!1;var s=n;n=null,r.next(s)}};t.subscribe(S(r,function(s){i==null||i.unsubscribe(),o=!0,n=s,i=S(r,a,we),U(e(s)).subscribe(i)},function(){a(),r.complete()},void 0,function(){n=i=null}))})}function ke(e,t){return t===void 0&&(t=le),T(function(r,o){var n=null,i=null,a=null,s=function(){if(n){n.unsubscribe(),n=null;var l=i;i=null,o.next(l)}};function c(){var l=a+e,p=t.now();if(p<l){n=this.schedule(void 0,l-p),o.add(n);return}s()}r.subscribe(S(o,function(l){i=l,a=t.now(),n||(n=t.schedule(c,e),o.add(n))},function(){s(),o.complete()},void 0,function(){i=n=null}))})}function Je(e){return T(function(t,r){var o=!1;t.subscribe(S(r,function(n){o=!0,r.next(n)},function(){o||r.next(e),r.complete()}))})}function Oe(e){return e<=0?function(){return x}:T(function(t,r){var o=0;t.subscribe(S(r,function(n){++o<=e&&(r.next(n),e<=o&&r.complete())}))})}function ie(){return T(function(e,t){e.subscribe(S(t,we))})}function tn(e){return m(function(){return e})}function Kr(e,t){return t?function(r){return Ge(t.pipe(Oe(1),ie()),r.pipe(Kr(e)))}:re(function(r,o){return U(e(r,o)).pipe(Oe(1),tn(r))})}function ct(e,t){t===void 0&&(t=le);var r=Pe(e,t);return Kr(function(){return r})}function Qr(e,t){return T(function(r,o){var n=new Set;r.subscribe(S(o,function(i){var a=e?e(i):i;n.has(a)||(n.add(a),o.next(i))})),t&&U(t).subscribe(S(o,function(){return n.clear()},we))})}function Y(e,t){return t===void 0&&(t=ye),e=e!=null?e:Ia,T(function(r,o){var n,i=!0;r.subscribe(S(o,function(a){var s=t(a);(i||!e(n,s))&&(i=!1,n=s,o.next(a))}))})}function Ia(e,t){return e===t}function se(e,t){return Y(function(r,o){return t?t(r[e],o[e]):r[e]===o[e]})}function rn(e){return e===void 0&&(e=Fa),T(function(t,r){var o=!1;t.subscribe(S(r,function(n){o=!0,r.next(n)},function(){return o?r.complete():r.error(e())}))})}function Fa(){return new ur}function ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return Ge(r,$.apply(void 0,J([],Q(e))))}}function br(e,t){return t?function(r){return r.pipe(br(function(o,n){return U(e(o,n)).pipe(m(function(i,a){return t(o,i,n,a)}))}))}:T(function(r,o){var n=0,i=null,a=!1;r.subscribe(S(o,function(s){i||(i=S(o,void 0,function(){i=null,a&&o.complete()}),U(e(s,n++)).subscribe(i))},function(){a=!0,!i&&o.complete()}))})}function C(e){return T(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function je(e,t){var r=arguments.length>=2;return function(o){return o.pipe(e?g(function(n,i){return e(n,i,o)}):ye,Oe(1),r?Je(t):rn(function(){return new ur}))}}function Yr(e){return e<=0?function(){return x}:T(function(t,r){var o=[];t.subscribe(S(r,function(n){o.push(n),e<o.length&&o.shift()},function(){var n,i;try{for(var a=Me(o),s=a.next();!s.done;s=a.next()){var c=s.value;r.next(c)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}r.complete()},void 0,function(){o=null}))})}function on(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=We(e),o=or(e,1/0);return T(function(n,i){At(o)(ue(J([n],Q(e)),r)).subscribe(i)})}function ze(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return on.apply(void 0,J([],Q(e)))}function gt(e){var t,r=1/0,o;return e!=null&&(typeof e=="object"?(t=e.count,r=t===void 0?1/0:t,o=e.delay):r=e),r<=0?function(){return x}:T(function(n,i){var a=0,s,c=function(){if(s==null||s.unsubscribe(),s=null,o!=null){var p=typeof o=="number"?Pe(o):U(o(a)),f=S(i,function(){f.unsubscribe(),l()});p.subscribe(f)}else l()},l=function(){var p=!1;s=n.subscribe(S(i,void 0,function(){++a<r?s?c():p=!0:i.complete()})),p&&c()};l()})}function yt(e,t){return T(en(e,t,arguments.length>=2,!0))}function pe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new O}:t,o=e.resetOnError,n=o===void 0?!0:o,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(l){var p,f,u,h=0,d=!1,y=!1,W=function(){f==null||f.unsubscribe(),f=void 0},K=function(){W(),p=u=void 0,d=y=!1},X=function(){var M=p;K(),M==null||M.unsubscribe()};return T(function(M,Ae){h++,!y&&!d&&W();var Ce=u=u!=null?u:r();Ae.add(function(){h--,h===0&&!y&&!d&&(f=Gr(X,c))}),Ce.subscribe(Ae),!p&&h>0&&(p=new vt({next:function(he){return Ce.next(he)},error:function(he){y=!0,W(),f=Gr(K,n,he),Ce.error(he)},complete:function(){d=!0,W(),f=Gr(K,a),Ce.complete()}}),U(M).subscribe(p))})(l)}}function Gr(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(t===!0){e();return}if(t!==!1){var n=new vt({next:function(){n.unsubscribe(),e()}});return U(t.apply(void 0,J([],Q(r)))).subscribe(n)}}function ee(e,t,r){var o,n,i,a,s=!1;return e&&typeof e=="object"?(o=e.bufferSize,a=o===void 0?1/0:o,n=e.windowTime,t=n===void 0?1/0:n,i=e.refCount,s=i===void 0?!1:i,r=e.scheduler):a=e!=null?e:1/0,pe({connector:function(){return new jt(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function Ue(e){return g(function(t,r){return e<=r})}function Jr(e){return T(function(t,r){var o=!1,n=S(r,function(){n==null||n.unsubscribe(),o=!0},we);U(e).subscribe(n),t.subscribe(S(r,function(i){return o&&r.next(i)}))})}function G(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=We(e);return T(function(o,n){(r?Ge(e,o,r):Ge(e,o)).subscribe(n)})}function v(e,t){return T(function(r,o){var n=null,i=0,a=!1,s=function(){return a&&!n&&o.complete()};r.subscribe(S(o,function(c){n==null||n.unsubscribe();var l=0,p=i++;U(e(c,p)).subscribe(n=S(o,function(f){return o.next(t?t(c,f,p,l++):f)},function(){n=null,s()}))},function(){a=!0,s()}))})}function j(e){return T(function(t,r){U(e).subscribe(S(r,function(){return r.complete()},we)),!r.closed&&t.subscribe(r)})}function Xr(e,t){return t===void 0&&(t=!1),T(function(r,o){var n=0;r.subscribe(S(o,function(i){var a=e(i,n++);(a||t)&&o.next(i),!a&&o.complete()}))})}function L(e,t,r){var o=P(e)||t||r?{next:e,error:t,complete:r}:e;return o?T(function(n,i){var a;(a=o.subscribe)===null||a===void 0||a.call(o);var s=!0;n.subscribe(S(i,function(c){var l;(l=o.next)===null||l===void 0||l.call(o,c),i.next(c)},function(){var c;s=!1,(c=o.complete)===null||c===void 0||c.call(o),i.complete()},function(c){var l;s=!1,(l=o.error)===null||l===void 0||l.call(o,c),i.error(c)},function(){var c,l;s&&((c=o.unsubscribe)===null||c===void 0||c.call(o)),(l=o.finalize)===null||l===void 0||l.call(o)}))}):ye}function nn(e,t){return T(function(r,o){var n=t!=null?t:{},i=n.leading,a=i===void 0?!0:i,s=n.trailing,c=s===void 0?!1:s,l=!1,p=null,f=null,u=!1,h=function(){f==null||f.unsubscribe(),f=null,c&&(W(),u&&o.complete())},d=function(){f=null,u&&o.complete()},y=function(K){return f=U(e(K)).subscribe(S(o,h,d))},W=function(){if(l){l=!1;var K=p;p=null,o.next(K),!u&&y(K)}};r.subscribe(S(o,function(K){l=!0,p=K,!(f&&!f.closed)&&(a?W():y(K))},function(){u=!0,!(c&&l&&f&&!f.closed)&&o.complete()}))})}function xt(e,t,r){t===void 0&&(t=le);var o=Pe(e,t);return nn(function(){return o},r)}function te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ft(e);return T(function(o,n){for(var i=e.length,a=new Array(i),s=e.map(function(){return!1}),c=!1,l=function(f){U(e[f]).subscribe(S(n,function(u){a[f]=u,!c&&!s[f]&&(s[f]=!0,(c=s.every(ye))&&(s=null))},we))},p=0;p<i;p++)l(p);o.subscribe(S(n,function(f){if(c){var u=J([f],Q(a));n.next(r?r.apply(void 0,J([],Q(u))):u)}}))})}function an(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return T(function(r,o){at.apply(void 0,J([r],Q(e))).subscribe(o)})}function Zr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return an.apply(void 0,J([],Q(e)))}function sn(){let e=new jt(1);return b(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function _(e,t=document){return Array.from(t.querySelectorAll(e))}function I(e,t=document){let r=de(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function de(e,t=document){return t.querySelector(e)||void 0}function qe(){var e,t,r,o;return(o=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?o:void 0}var ja=E(b(document.body,"focusin"),b(document.body,"focusout")).pipe(ke(1),G(void 0),m(()=>qe()||document.body),ee(1));function Xe(e){return ja.pipe(m(t=>e.contains(t)),Y())}function lt(e,t){return k(()=>E(b(e,"mouseenter").pipe(m(()=>!0)),b(e,"mouseleave").pipe(m(()=>!1))).pipe(t?Dt(r=>Pe(+!r*t)):ye,G(e.matches(":hover"))))}function cn(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)cn(e,r)}function w(e,t,...r){let o=document.createElement(e);if(t)for(let n of Object.keys(t))typeof t[n]!="undefined"&&(typeof t[n]!="boolean"?o.setAttribute(n,t[n]):o.setAttribute(n,""));for(let n of r)cn(o,n);return o}function vr(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Ct(e){let t=w("script",{src:e});return k(()=>(document.head.appendChild(t),E(b(t,"load"),b(t,"error").pipe(v(()=>zr(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),C(()=>document.head.removeChild(t)),Oe(1))))}var ln=new O,Ua=k(()=>typeof ResizeObserver=="undefined"?Ct("https://unpkg.com/resize-observer-polyfill"):$(void 0)).pipe(m(()=>new ResizeObserver(e=>e.forEach(t=>ln.next(t)))),v(e=>E(it,$(e)).pipe(C(()=>e.disconnect()))),ee(1));function me(e){return{width:e.offsetWidth,height:e.offsetHeight}}function _e(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return Ua.pipe(L(r=>r.observe(t)),v(r=>ln.pipe(g(o=>o.target===t),C(()=>r.unobserve(t)))),m(()=>me(e)),G(me(e)))}function Ht(e){return{width:e.scrollWidth,height:e.scrollHeight}}function gr(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function pn(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function Be(e){return{x:e.offsetLeft,y:e.offsetTop}}function mn(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function fn(e){return E(b(window,"load"),b(window,"resize")).pipe(Ie(0,Te),m(()=>Be(e)),G(Be(e)))}function yr(e){return{x:e.scrollLeft,y:e.scrollTop}}function Ze(e){return E(b(e,"scroll"),b(window,"scroll"),b(window,"resize")).pipe(Ie(0,Te),m(()=>yr(e)),G(yr(e)))}var un=new O,Da=k(()=>$(new IntersectionObserver(e=>{for(let t of e)un.next(t)},{threshold:0}))).pipe(v(e=>E(it,$(e)).pipe(C(()=>e.disconnect()))),ee(1));function et(e){return Da.pipe(L(t=>t.observe(e)),v(t=>un.pipe(g(({target:r})=>r===e),C(()=>t.unobserve(e)),m(({isIntersecting:r})=>r))))}function dn(e,t=16){return Ze(e).pipe(m(({y:r})=>{let o=me(e),n=Ht(e);return r>=n.height-o.height-t}),Y())}var xr={drawer:I("[data-md-toggle=drawer]"),search:I("[data-md-toggle=search]"),toc:I("[data-md-toggle=toc]")};function hn(e){return xr[e].checked}function De(e,t){xr[e].checked!==t&&xr[e].click()}function tt(e){let t=xr[e];return b(t,"change").pipe(m(()=>t.checked),G(t.checked))}function Wa(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function Va(){return E(b(window,"compositionstart").pipe(m(()=>!0)),b(window,"compositionend").pipe(m(()=>!1))).pipe(G(!1))}function bn(){let e=b(window,"keydown").pipe(g(t=>!(t.metaKey||t.ctrlKey)),m(t=>({mode:hn("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),g(({mode:t,type:r})=>{if(t==="global"){let o=qe();if(typeof o!="undefined")return!Wa(o,r)}return!0}),pe());return Va().pipe(v(t=>t?x:e))}function Le(){return new URL(location.href)}function pt(e,t=!1){if(V("navigation.instant")&&!t){let r=w("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function vn(){return new O}function gn(){return location.hash.slice(1)}function yn(e){let t=w("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function eo(e){return E(b(window,"hashchange"),e).pipe(m(gn),G(gn()),g(t=>t.length>0),ee(1))}function xn(e){return eo(e).pipe(m(t=>de(`[id="${t}"]`)),g(t=>typeof t!="undefined"))}function Wt(e){let t=matchMedia(e);return dr(r=>t.addListener(()=>r(t.matches))).pipe(G(t.matches))}function En(){let e=matchMedia("print");return E(b(window,"beforeprint").pipe(m(()=>!0)),b(window,"afterprint").pipe(m(()=>!1))).pipe(G(e.matches))}function to(e,t){return e.pipe(v(r=>r?t():x))}function ro(e,t){return new F(r=>{let o=new XMLHttpRequest;return o.open("GET",`${e}`),o.responseType="blob",o.addEventListener("load",()=>{o.status>=200&&o.status<300?(r.next(o.response),r.complete()):r.error(new Error(o.statusText))}),o.addEventListener("error",()=>{r.error(new Error("Network error"))}),o.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(o.addEventListener("progress",n=>{var i;if(n.lengthComputable)t.progress$.next(n.loaded/n.total*100);else{let a=(i=o.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(n.loaded/+a*100)}}),t.progress$.next(5)),o.send(),()=>o.abort()})}function Ke(e,t){return ro(e,t).pipe(v(r=>r.text()),m(r=>JSON.parse(r)),ee(1))}function Er(e,t){let r=new DOMParser;return ro(e,t).pipe(v(o=>o.text()),m(o=>r.parseFromString(o,"text/html")),ee(1))}function wn(e,t){let r=new DOMParser;return ro(e,t).pipe(v(o=>o.text()),m(o=>r.parseFromString(o,"text/xml")),ee(1))}function Tn(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function Sn(){return E(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(m(Tn),G(Tn()))}function On(){return{width:innerWidth,height:innerHeight}}function Ln(){return b(window,"resize",{passive:!0}).pipe(m(On),G(On()))}function Mn(){return q([Sn(),Ln()]).pipe(m(([e,t])=>({offset:e,size:t})),ee(1))}function wr(e,{viewport$:t,header$:r}){let o=t.pipe(se("size")),n=q([o,r]).pipe(m(()=>Be(e)));return q([r,t,n]).pipe(m(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}function Na(e){return b(e,"message",t=>t.data)}function za(e){let t=new O;return t.subscribe(r=>e.postMessage(r)),t}function _n(e,t=new Worker(e)){let r=Na(t),o=za(t),n=new O;n.subscribe(o);let i=o.pipe(ie(),ce(!0));return n.pipe(ie(),ze(r.pipe(j(i))),pe())}var qa=I("#__config"),kt=JSON.parse(qa.textContent);kt.base=`${new URL(kt.base,Le())}`;function ve(){return kt}function V(e){return kt.features.includes(e)}function be(e,t){return typeof t!="undefined"?kt.translations[e].replace("#",t.toString()):kt.translations[e]}function $e(e,t=document){return I(`[data-md-component=${e}]`,t)}function fe(e,t=document){return _(`[data-md-component=${e}]`,t)}function Ba(e){let t=I(".md-typeset > :first-child",e);return b(t,"click",{once:!0}).pipe(m(()=>I(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function An(e){if(!V("announce.dismiss")||!e.childElementCount)return x;if(!e.hidden){let t=I(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return k(()=>{let t=new O;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),Ba(e).pipe(L(r=>t.next(r)),C(()=>t.complete()),m(r=>R({ref:e},r)))})}function Ka(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function Cn(e,t){let r=new O;return r.subscribe(({hidden:o})=>{e.hidden=o}),Ka(e,t).pipe(L(o=>r.next(o)),C(()=>r.complete()),m(o=>R({ref:e},o)))}function Vt(e,t){return t==="inline"?w("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},w("div",{class:"md-tooltip__inner md-typeset"})):w("div",{class:"md-tooltip",id:e,role:"tooltip"},w("div",{class:"md-tooltip__inner md-typeset"}))}function Tr(...e){return w("div",{class:"md-tooltip2",role:"dialog"},w("div",{class:"md-tooltip2__inner md-typeset"},e))}function Hn(...e){return w("div",{class:"md-tooltip2",role:"tooltip"},w("div",{class:"md-tooltip2__inner md-typeset"},e))}function kn(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return w("aside",{class:"md-annotation",tabIndex:0},Vt(t),w("a",{href:r,class:"md-annotation__index",tabIndex:-1},w("span",{"data-md-annotation-id":e})))}else return w("aside",{class:"md-annotation",tabIndex:0},Vt(t),w("span",{class:"md-annotation__index",tabIndex:-1},w("span",{"data-md-annotation-id":e})))}function $n(e){return w("button",{class:"md-code__button",title:be("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function Rn(){return w("button",{class:"md-code__button",title:be("code.select"),"data-md-type":"select"})}function Pn(){return w("button",{class:"md-code__button",title:be("code.download"),"data-md-type":"download"})}function In(){return w("nav",{class:"md-code__nav"})}var jn=Pt(oo());function no(e,t){let r=t&2,o=t&1,n=Object.keys(e.terms).filter(c=>!e.terms[c]).reduce((c,l)=>[...c,w("del",null,(0,jn.default)(l))," "],[]).slice(0,-1),i=ve(),a=new URL(e.location,i.base);V("search.highlight")&&a.searchParams.set("h",Object.entries(e.terms).filter(([,c])=>c).reduce((c,[l])=>`${c} ${l}`.trim(),""));let{tags:s}=ve();return w("a",{href:`${a}`,class:"md-search-result__link",tabIndex:-1},w("article",{class:"md-search-result__article md-typeset","data-md-score":e.score.toFixed(2)},r>0&&w("div",{class:"md-search-result__icon md-icon"}),r>0&&w("h1",null,e.title),r<=0&&w("h2",null,e.title),o>0&&e.text.length>0&&e.text,e.tags&&w("nav",{class:"md-tags"},e.tags.map(c=>{let l=s&&c in s?`md-tag-icon md-tag--${s[c]}`:"md-tag-icon";return w("span",{class:`md-tag ${l}`},c)})),o>0&&n.length>0&&w("p",{class:"md-search-result__terms"},be("search.result.term.missing"),": ",...n)))}function Un(e){let t=e[0].score,r=[...e],o=ve(),n=r.findIndex(p=>!`${new URL(p.location,o.base)}`.includes("#")),[i]=r.splice(n,1),a=r.findIndex(p=>p.score<t);a===-1&&(a=r.length);let s=r.slice(0,a),c=r.slice(a),l=[no(i,2|+(!n&&a===0)),...s.map(p=>no(p,1)),...c.length?[w("details",{class:"md-search-result__more"},w("summary",{tabIndex:-1},w("div",null,c.length>0&&c.length===1?be("search.result.more.one"):be("search.result.more.other",c.length))),...c.map(p=>no(p,1)))]:[]];return w("li",{class:"md-search-result__item"},l)}function Dn(e){return w("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>w("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?vr(r):r)))}function io(e){let t=`tabbed-control tabbed-control--${e}`;return w("div",{class:t,hidden:!0},w("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function Wn(e){return w("div",{class:"md-typeset__scrollwrap"},w("div",{class:"md-typeset__table"},e))}function Ga(e){var o;let t=ve(),r=new URL(`../${e.version}/`,t.base);return w("li",{class:"md-version__item"},w("a",{href:`${r}`,class:"md-version__link"},e.title,((o=t.version)==null?void 0:o.alias)&&e.aliases.length>0&&w("span",{class:"md-version__alias"},e.aliases[0])))}function Vn(e,t){var o;let r=ve();return e=e.filter(n=>{var i;return!((i=n.properties)!=null&&i.hidden)}),w("div",{class:"md-version"},w("button",{class:"md-version__current","aria-label":be("select.version")},t.title,((o=r.version)==null?void 0:o.alias)&&t.aliases.length>0&&w("span",{class:"md-version__alias"},t.aliases[0])),w("ul",{class:"md-version__list"},e.map(Ga)))}var Ja=0;function Xa(e,t=250){let r=q([Xe(e),lt(e,t)]).pipe(m(([n,i])=>n||i),Y()),o=k(()=>pn(e)).pipe(re(Ze),xt(1),Fe(r),m(()=>mn(e)));return r.pipe(je(n=>n),v(()=>q([r,o])),m(([n,i])=>({active:n,offset:i})),pe())}function Nt(e,t,r=250){let{content$:o,viewport$:n}=t,i=`__tooltip2_${Ja++}`;return k(()=>{let a=new O,s=new Ur(!1);a.pipe(ie(),ce(!1)).subscribe(s);let c=s.pipe(Dt(p=>Pe(+!p*250,Vr)),Y(),v(p=>p?o:x),L(p=>p.id=i),pe());q([a.pipe(m(({active:p})=>p)),c.pipe(v(p=>lt(p,250)),G(!1))]).pipe(m(p=>p.some(f=>f))).subscribe(s);let l=s.pipe(g(p=>p),te(c,n),m(([p,f,{size:u}])=>{let h=e.getBoundingClientRect(),d=e.querySelector(".md-source__repository"),W=d?d.getBoundingClientRect().left-h.left+d.getBoundingClientRect().width/2+20:h.width/2;if(f.role==="tooltip")return{x:W,y:8+h.height};if(h.y>=u.height/2){let{height:K}=me(f);return{x:W,y:-16-K}}else return{x:W,y:16+h.height}}));return q([c,a,l]).subscribe(([p,{offset:f},u])=>{p.style.setProperty("--md-tooltip-host-x",`${f.x}px`),p.style.setProperty("--md-tooltip-host-y",`${f.y}px`),p.style.setProperty("--md-tooltip-x",`${u.x}px`),p.style.setProperty("--md-tooltip-y",`${u.y}px`),p.classList.toggle("md-tooltip2--top",u.y<0),p.classList.toggle("md-tooltip2--bottom",u.y>=0)}),s.pipe(g(p=>p),te(c,(p,f)=>f),g(p=>p.role==="tooltip")).subscribe(p=>{let f=me(I(":scope > *",p));p.style.setProperty("--md-tooltip-width",`${f.width}px`),p.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(Y(),Se(Te),te(c)).subscribe(([p,f])=>{f.classList.toggle("md-tooltip2--active",p)}),q([s.pipe(g(p=>p)),c]).subscribe(([p,f])=>{f.role==="dialog"?(e.setAttribute("aria-controls",i),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",i)}),s.pipe(g(p=>!p)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),Xa(e,r).pipe(L(p=>a.next(p)),C(()=>a.complete()),m(p=>R({ref:e},p)))})}function Qe(e,{viewport$:t},r=document.body){return Nt(e,{content$:new F(o=>{let n=e.title,i=Hn(n);return o.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",n)}}),viewport$:t},0)}function Za(e,t){let r=k(()=>q([fn(e),Ze(t)])).pipe(m(([{x:o,y:n},i])=>{let{width:a,height:s}=me(e);return{x:o-i.x+a/2,y:n-i.y+s/2}}));return Xe(e).pipe(v(o=>r.pipe(m(n=>({active:o,offset:n})),Oe(+!o||1/0))))}function Nn(e,t,{target$:r}){let[o,n]=Array.from(e.children);return k(()=>{let i=new O,a=i.pipe(ie(),ce(!0));return i.subscribe({next({offset:s}){e.style.setProperty("--md-tooltip-x",`${s.x}px`),e.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),et(e).pipe(j(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),E(i.pipe(g(({active:s})=>s)),i.pipe(ke(250),g(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(o):o.remove()},complete(){e.prepend(o)}}),i.pipe(Ie(16,Te)).subscribe(({active:s})=>{o.classList.toggle("md-tooltip--active",s)}),i.pipe(xt(125,Te),g(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:s})=>s)).subscribe({next(s){s?e.style.setProperty("--md-tooltip-0",`${-s}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),b(n,"click").pipe(j(a),g(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),b(n,"mousedown").pipe(j(a),te(i)).subscribe(([s,{active:c}])=>{var l;if(s.button!==0||s.metaKey||s.ctrlKey)s.preventDefault();else if(c){s.preventDefault();let p=e.parentElement.closest(".md-annotation");p instanceof HTMLElement?p.focus():(l=qe())==null||l.blur()}}),r.pipe(j(a),g(s=>s===o),ct(125)).subscribe(()=>e.focus()),Za(e,t).pipe(L(s=>i.next(s)),C(()=>i.complete()),m(s=>R({ref:e},s)))})}function es(e){let t=ve();if(e.tagName!=="CODE")return[e];let r=[".c",".c1",".cm"];if(t.annotate&&typeof t.annotate=="object"){let o=e.closest("[class|=language]");if(o)for(let n of Array.from(o.classList)){if(!n.startsWith("language-"))continue;let[,i]=n.split("-");i in t.annotate&&r.push(...t.annotate[i])}}return _(r.join(", "),e)}function ts(e){let t=[];for(let r of es(e)){let o=[],n=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=n.nextNode();i;i=n.nextNode())o.push(i);for(let i of o){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,c]=a;if(typeof c=="undefined"){let l=i.splitText(a.index);i=l.splitText(s.length),t.push(l)}else{i.textContent=s,t.push(i);break}}}}return t}function zn(e,t){t.append(...Array.from(e.childNodes))}function Sr(e,t,{target$:r,print$:o}){let n=t.closest("[id]"),i=n==null?void 0:n.id,a=new Map;for(let s of ts(t)){let[,c]=s.textContent.match(/\((\d+)\)/);de(`:scope > li:nth-child(${c})`,e)&&(a.set(c,kn(c,i)),s.replaceWith(a.get(c)))}return a.size===0?x:k(()=>{let s=new O,c=s.pipe(ie(),ce(!0)),l=[];for(let[p,f]of a)l.push([I(".md-typeset",f),I(`:scope > li:nth-child(${p})`,e)]);return o.pipe(j(c)).subscribe(p=>{e.hidden=!p,e.classList.toggle("md-annotation-list",p);for(let[f,u]of l)p?zn(f,u):zn(u,f)}),E(...[...a].map(([,p])=>Nn(p,t,{target$:r}))).pipe(C(()=>s.complete()),pe())})}function qn(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return qn(t)}}function Bn(e,t){return k(()=>{let r=qn(e);return typeof r!="undefined"?Sr(r,e,t):x})}var Qn=Pt(so());var rs=0,Kn=E(b(window,"keydown").pipe(m(()=>!0)),E(b(window,"keyup"),b(window,"contextmenu")).pipe(m(()=>!1))).pipe(G(!1),ee(1));function Yn(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Yn(t)}}function Gn(e){var t;return((t=e.textContent)==null?void 0:t.trimEnd())||""}function os(e,t){let r=o=>{let n=Array.from(o.classList).find(i=>i.startsWith("language-"));return n?n.slice(9):""};return r(e)||r(t)}function ns(e){return e.replace(/[\\/:*?"<>|]/g,"_").replace(/\s+/g," ").trim().replace(/^\.+$/,"download").slice(0,255)}function is(e,t){return!t||e.toLowerCase().endsWith(t.toLowerCase())?e:e+t}function as(e,t){var i,a;let r=(a=(i=e.querySelector(".filename"))==null?void 0:i.textContent)==null?void 0:a.trim(),o=os(e,t),n=o?`.${o}`:"";return ns(r?is(r,n):`download${n}`)||"download"}function ss(e){let t=(e||"").trim(),r=t.toLowerCase();return!r||r==="blob"||r==="data-download"?{strategy:"blob"}:{strategy:"url",source:t}}function Jn(e,t){let r=document.createElement("a");r.href=e,r.download=t,r.rel="noopener",r.style.display="none",document.body.appendChild(r),r.click(),r.remove()}function cs(e,t){let r=new Blob([e],{type:"text/plain;charset=utf-8"}),o=URL.createObjectURL(r);Jn(o,t),requestAnimationFrame(()=>URL.revokeObjectURL(o))}function ls(e){let t=new URL(e,window.location.href);Jn(t.toString(),"")}var ps=15;function ms(e){let t=(e||"").trim();if(!t)return;let r=Number(t);if(Number.isFinite(r))return Math.max(0,Math.round(r))}function fs(e){var i;let t=(i=ve().code)==null?void 0:i.fold;if((t==null?void 0:t.enabled)!==!0)return;let r=t.lines,o=Number.isFinite(r)?Math.max(0,Math.round(r)):ps,n=ms(e==null?void 0:e.getAttribute("data-fold"));return n!==void 0&&(o=n),o}function us(e,t){if(t.length)return t.length;let r=Gn(e);return r?r.split(/\r?\n/).length:0}function ds(e){return _e(e).pipe(m(({width:t})=>({scrollable:Ht(e).width>t})),se("scrollable"))}function Xn(e,t){let{matches:r}=matchMedia("(hover)"),o=k(()=>{let n=new O,i=n.pipe(Yr(1));n.subscribe(({scrollable:d})=>{d&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let a=[],s=e.closest("pre"),c=s.closest("[id]"),l=c?c.id:rs++;s.id=`__code_${l}`;let p=[],f=e.closest(".highlight");if(f instanceof HTMLElement){let d=Yn(f);if(typeof d!="undefined"&&(f.classList.contains("annotate")||V("content.code.annotate"))){let y=Sr(d,e,t);p.push(E(_e(f),et(f).pipe(m(()=>me(f)))).pipe(j(i),m(({width:W,height:K})=>W&&K),Y(),v(W=>W?y:x)))}}let u=_(":scope > span[id]",e);if(u.length&&(e.classList.add("md-code__content"),e.closest(".select")||V("content.code.select")&&!e.closest(".no-select"))){let d=+u[0].id.split("-").pop(),y=Rn();a.push(y),V("content.tooltips")&&p.push(Qe(y,{viewport$}));let W=b(y,"click").pipe(yt(D=>!D,!1),L(()=>y.blur()),pe());W.subscribe(D=>{y.classList.toggle("md-code__button--active",D)});let K=ue(u).pipe(re(D=>lt(D).pipe(m(oe=>[D,oe]))));W.pipe(v(D=>D?K:x)).subscribe(([D,oe])=>{let ae=de(".hll.select",D);if(ae&&!oe)ae.replaceWith(...Array.from(ae.childNodes));else if(!ae&&oe){let ge=document.createElement("span");ge.className="hll select",ge.append(...Array.from(D.childNodes).slice(1)),D.append(ge)}});let X=ue(u).pipe(re(D=>b(D,"mousedown").pipe(L(oe=>oe.preventDefault()),m(()=>D)))),M=W.pipe(v(D=>D?X:x),te(Kn),m(([D,oe])=>{var ge;let ae=u.indexOf(D)+d;if(oe===!1)return[ae,ae];{let Ee=_(".hll",e).map(rt=>u.indexOf(rt.parentElement)+d);return(ge=window.getSelection())==null||ge.removeAllRanges(),[Math.min(ae,...Ee),Math.max(ae,...Ee)]}})),Ae=eo(x).pipe(g(D=>D.startsWith(`__codelineno-${l}-`)));Ae.subscribe(D=>{let[,,oe]=D.split("-"),ae=oe.split(":").map(Ee=>+Ee-d+1);ae.length===1&&ae.push(ae[0]);for(let Ee of _(".hll:not(.select)",e))Ee.replaceWith(...Array.from(Ee.childNodes));let ge=u.slice(ae[0]-1,ae[1]);for(let Ee of ge){let rt=document.createElement("span");rt.className="hll",rt.append(...Array.from(Ee.childNodes).slice(1)),Ee.append(rt)}}),Ae.pipe(Oe(1),Se(le)).subscribe(D=>{if(D.includes(":")){let oe=document.getElementById(D.split(":")[0]);oe&&setTimeout(()=>{let ae=oe,ge=-64;for(;ae!==document.body;)ge+=ae.offsetTop,ae=ae.offsetParent;window.scrollTo({top:ge})},1)}});let he=ue(_('a[href^="#__codelineno"]',f)).pipe(re(D=>b(D,"click").pipe(L(oe=>oe.preventDefault()),m(()=>D)))).pipe(j(i),te(Kn),m(([D,oe])=>{let ge=+I(`[id="${D.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(oe===!1)return[ge,ge];{let Ee=_(".hll",e).map(rt=>+rt.parentElement.id.split("-").pop());return[Math.min(ge,...Ee),Math.max(ge,...Ee)]}}));E(M,he).subscribe(D=>{let oe=`#__codelineno-${l}-`;D[0]===D[1]?oe+=D[0]:oe+=`${D[0]}:${D[1]}`,history.replaceState({},"",oe),window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:window.location.origin+window.location.pathname+oe,oldURL:window.location.href}))})}if(f instanceof HTMLElement){let d=fs(f),y=us(e,u);if(d&&d>0&&y>d){let W=()=>{let he=u[d-1];if(!he)return;let D=Math.ceil(he.getBoundingClientRect().bottom-f.getBoundingClientRect().top);D<=0||f.style.setProperty("--md-code-fold-max-height",`${D}px`)},K=()=>{requestAnimationFrame(()=>{requestAnimationFrame(W)})};f.classList.add("md-code--collapsible","md-code--collapsed"),K();let X=y-d;f.id||(f.id=`__code_fold_${l}`);let M=document.createElement("button");M.type="button",M.className="md-code__toggle",M.setAttribute("aria-controls",f.id);let Ae=document.createElement("span");Ae.className="md-code__toggle-text",M.appendChild(Ae);let Ce=he=>{f.classList.toggle("md-code--collapsed",he),M.setAttribute("aria-expanded",(!he).toString()),he?Ae.textContent=be("code.expand",X):Ae.textContent=be("code.collapse")};Ce(!0),et(f).pipe(g(Boolean),j(i)).subscribe(()=>{K()}),b(M,"click").pipe(j(i)).subscribe(()=>{if(M.blur(),f.classList.contains("md-code--collapsed")){Ce(!1);return}let D=document.querySelector(".md-header"),oe=D?D.offsetHeight:0,ae=f.getBoundingClientRect().top+window.scrollY-oe;Ce(!0),window.scrollTo({top:ae})}),f.insertAdjacentElement("afterend",M)}}if(Qn.default.isSupported()&&(e.closest(".copy")||V("content.code.copy")&&!e.closest(".no-copy"))){let d=$n(s.id);a.push(d),V("content.tooltips")&&p.push(Qe(d,{viewport$}))}if(f instanceof HTMLElement&&f.hasAttribute("data-download")){let d=ss(f.getAttribute("data-download")),y=Pn();a.push(y),V("content.tooltips")&&p.push(Qe(y,{viewport$})),b(y,"click").pipe(j(i)).subscribe(W=>{if(W.preventDefault(),y.blur(),d.strategy==="blob"){let K=as(f,e);cs(Gn(e),K)}else d.source&&ls(d.source)})}if(a.length){let d=In();d.append(...a),s.insertBefore(d,e)}return ds(e).pipe(L(d=>n.next(d)),C(()=>n.complete()),m(d=>R({ref:e},d)),ze(E(...p).pipe(j(i))))});return V("content.lazy")?et(e).pipe(g(n=>n),Oe(1),v(()=>o)):o}function hs(e,{target$:t,print$:r}){let o=!0;return E(t.pipe(m(n=>n.closest("details:not([open])")),g(n=>e===n),m(()=>({action:"open",reveal:!0}))),r.pipe(g(n=>n||!o),L(()=>o=e.open),m(n=>({action:n?"open":"close"}))))}function Zn(e,t){return k(()=>{let r=new O;return r.subscribe(({action:o,reveal:n})=>{e.toggleAttribute("open",o==="open"),n&&e.scrollIntoView()}),hs(e,t).pipe(L(o=>r.next(o)),C(()=>r.complete()),m(o=>R({ref:e},o)))})}var ei=0;function bs(e){let t=document.createElement("h3");t.innerHTML=e.innerHTML;let r=[t],o=e.nextElementSibling;for(;o&&!(o instanceof HTMLHeadingElement);)r.push(o),o=o.nextElementSibling;return r}function vs(e,t){for(let r of _("[href], [src]",e))for(let o of["href","src"]){let n=r.getAttribute(o);if(n&&!/^(?:[a-z]+:)?\/\//i.test(n)){r[o]=new URL(r.getAttribute(o),t).toString();break}}for(let r of _("[name^=__], [for]",e))for(let o of["id","for","name"]){let n=r.getAttribute(o);n&&r.setAttribute(o,`${n}$preview_${ei}`)}return ei++,$(e)}function ti(e,t){let{sitemap$:r}=t;if(!(e instanceof HTMLAnchorElement))return x;if(!(V("navigation.instant.preview")||e.hasAttribute("data-preview")))return x;e.removeAttribute("title");let o=q([Xe(e),lt(e)]).pipe(m(([i,a])=>i||a),Y(),g(i=>i));return at([r,o]).pipe(v(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?$(a):x}),v(i=>Er(i).pipe(v(a=>vs(a,i)))),v(i=>{let a=e.hash?`article [id="${e.hash.slice(1)}"]`:"article h1",s=de(a,i);return typeof s=="undefined"?x:$(bs(s))})).pipe(v(i=>{let a=new F(s=>{let c=Tr(...i);return s.next(c),document.body.append(c),()=>c.remove()});return Nt(e,R({content$:a},t))}))}var ri=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.flowchartTitleText{fill:var(--md-mermaid-label-fg-color)}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel p,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel p{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}.classDiagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs marker.marker.composition.class path,defs marker.marker.dependency.class path,defs marker.marker.extension.class path{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs marker.marker.aggregation.class path{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}.statediagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}a .nodeLabel{text-decoration:underline}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}[id^=entity] path,[id^=entity] rect{fill:var(--md-default-bg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs .marker.oneOrMore.er *,defs .marker.onlyOne.er *,defs .marker.zeroOrMore.er *,defs .marker.zeroOrOne.er *{stroke:var(--md-mermaid-edge-color)!important}text:not([class]):last-child{fill:var(--md-mermaid-label-fg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}.actor-line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}#arrowhead path,[id$=-arrowhead] path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}";var co,ys=0;function xs(){return typeof mermaid=="undefined"||mermaid instanceof Element?Ct("https://unpkg.com/mermaid@11/dist/mermaid.min.js"):$(void 0)}function oi(e){return e.classList.remove("mermaid"),co||(co=xs().pipe(L(()=>mermaid.initialize({startOnLoad:!1,themeCSS:ri,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),m(()=>{}),ee(1))),co.subscribe(()=>yo(null,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${ys++}`,r=w("div",{class:"mermaid"}),o=e.textContent,{svg:n,fn:i}=yield mermaid.render(t,o),a=r.attachShadow({mode:"closed"});a.innerHTML=n,e.replaceWith(r),i==null||i(a)})),co.pipe(m(()=>({ref:e})))}var ni=w("table");function ii(e){return e.replaceWith(ni),ni.replaceWith(Wn(e)),$({ref:e})}function Es(e){let t=e.find(r=>r.checked)||e[0];return E(...e.map(r=>b(r,"change").pipe(m(()=>I(`label[for="${r.id}"]`))))).pipe(G(I(`label[for="${t.id}"]`)),m(r=>({active:r})))}function ai(e,{viewport$:t,target$:r}){let o=I(".tabbed-labels",e),n=_(":scope > input",e),i=io("prev");e.append(i);let a=io("next");return e.append(a),k(()=>{let s=new O,c=s.pipe(ie(),ce(!0));q([s,_e(e),et(e)]).pipe(j(c),Ie(1,Te)).subscribe({next([{active:l},p]){let f=Be(l),{width:u}=me(l);e.style.setProperty("--md-indicator-x",`${f.x}px`),e.style.setProperty("--md-indicator-width",`${u}px`);let h=yr(o);(f.x<h.x||f.x+u>h.x+p.width)&&o.scrollTo({left:Math.max(0,f.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),q([Ze(o),_e(o)]).pipe(j(c)).subscribe(([l,p])=>{let f=Ht(o);i.hidden=l.x<16,a.hidden=l.x>f.width-p.width-16}),E(b(i,"click").pipe(m(()=>-1)),b(a,"click").pipe(m(()=>1))).pipe(j(c)).subscribe(l=>{let{width:p}=me(o);o.scrollBy({left:p*l,behavior:"smooth"})}),r.pipe(j(c),g(l=>n.includes(l))).subscribe(l=>l.click()),o.classList.add("tabbed-labels--linked");for(let l of n){let p=I(`label[for="${l.id}"]`);p.replaceChildren(w("a",{href:`#${p.htmlFor}`,tabIndex:-1},...Array.from(p.childNodes))),b(p.firstElementChild,"click").pipe(j(c),g(f=>!(f.metaKey||f.ctrlKey)),L(f=>{f.preventDefault(),f.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${p.htmlFor}`),p.click()})}return V("content.tabs.link")&&s.pipe(Ue(1),te(t)).subscribe(([{active:l},{offset:p}])=>{let f=l.innerText.trim();if(l.hasAttribute("data-md-switching"))l.removeAttribute("data-md-switching");else{let u=e.offsetTop-p.y;for(let d of _("[data-tabs]"))for(let y of _(":scope > input",d)){let W=I(`label[for="${y.id}"]`);if(W!==l&&W.innerText.trim()===f){W.setAttribute("data-md-switching",""),y.click();break}}window.scrollTo({top:e.offsetTop-u});let h=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([f,...h])])}}),s.pipe(j(c)).subscribe(()=>{for(let l of _("audio, video",e))l.offsetWidth&&l.autoplay?l.play().catch(()=>{}):l.pause()}),Es(n).pipe(L(l=>s.next(l)),C(()=>s.complete()),m(l=>R({ref:e},l)))}).pipe(nt(le))}function si(e,t){let{viewport$:r,target$:o,print$:n}=t;return E(..._(".annotate:not(.highlight)",e).map(i=>Bn(i,{target$:o,print$:n})),..._("pre:not(.mermaid) > code",e).map(i=>Xn(i,{target$:o,print$:n})),..._("a",e).map(i=>ti(i,t)),..._("pre.mermaid",e).map(i=>oi(i)),..._("table:not([class])",e).map(i=>ii(i)),..._("details",e).map(i=>Zn(i,{target$:o,print$:n})),..._("[data-tabs]",e).map(i=>ai(i,{viewport$:r,target$:o})),..._("[title]:not([data-preview])",e).filter(()=>V("content.tooltips")).map(i=>Qe(i,{viewport$:r})),..._(".footnote-ref",e).filter(()=>V("content.footnote.tooltips")).map(i=>Nt(i,{content$:new F(a=>{let s=new URL(i.href).hash.slice(1),c=Array.from(document.getElementById(s).cloneNode(!0).children),l=Tr(...c);return a.next(l),document.body.append(l),()=>l.remove()}),viewport$:r})))}function ws(e,{alert$:t}){return t.pipe(v(r=>E($(!0),$(!1).pipe(ct(2e3))).pipe(m(o=>({message:r,active:o})))))}function ci(e,t){let r=I(".md-typeset",e);return k(()=>{let o=new O;return o.subscribe(({message:n,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=n}),ws(e,t).pipe(L(n=>o.next(n)),C(()=>o.complete()),m(n=>R({ref:e},n)))})}var Ts=0;function Ss(e,t){document.body.append(e);let{width:r}=me(e);e.style.setProperty("--md-tooltip-width",`${r}px`),e.remove();let o=gr(t),n=typeof o!="undefined"?Ze(o):$({x:0,y:0}),i=E(Xe(t),lt(t)).pipe(Y());return q([i,n]).pipe(m(([a,s])=>{let{x:c,y:l}=Be(t),p=me(t),f=t.closest("table");f&&t.parentElement&&(c+=f.offsetLeft+t.parentElement.offsetLeft,l+=f.offsetTop+t.parentElement.offsetTop);let u=t.querySelector(".md-source__repository"),h=(()=>{if(u){let d=Be(u),y=me(u);return d.x-s.x+y.width/2-r/2+20}return c-s.x+p.width/2-r/2+3})();return{active:a,offset:{x:h,y:l-s.y+p.height+8}}}))}function li(e){let t=e.title;if(!t.length)return x;let r=`__tooltip_${Ts++}`,o=Vt(r,"inline"),n=I(".md-typeset",o);return n.innerHTML=t,k(()=>{let i=new O;return i.subscribe({next({offset:a}){o.style.setProperty("--md-tooltip-x",`${a.x}px`),o.style.setProperty("--md-tooltip-y",`${a.y}px`)},complete(){o.style.removeProperty("--md-tooltip-x"),o.style.removeProperty("--md-tooltip-y")}}),E(i.pipe(g(({active:a})=>a)),i.pipe(ke(250),g(({active:a})=>!a))).subscribe({next({active:a}){a?(e.insertAdjacentElement("afterend",o),e.setAttribute("aria-describedby",r),e.removeAttribute("title")):(o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t))},complete(){o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t)}}),i.pipe(Ie(16,Te)).subscribe(({active:a})=>{o.classList.toggle("md-tooltip--active",a)}),i.pipe(xt(125,Te),g(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:a})=>a)).subscribe({next(a){a?o.style.setProperty("--md-tooltip-0",`${-a}px`):o.style.removeProperty("--md-tooltip-0")},complete(){o.style.removeProperty("--md-tooltip-0")}}),Ss(o,e).pipe(L(a=>i.next(a)),C(()=>i.complete()),m(a=>R({ref:e},a)))}).pipe(nt(le))}function Os({viewport$:e}){if(!V("header.autohide"))return $(!1);let t=e.pipe(m(({offset:{y:n}})=>n),st(2,1),m(([n,i])=>[n<i,i]),se(0)),r=q([e,t]).pipe(g(([{offset:n},[,i]])=>Math.abs(i-n.y)>100),m(([,[n]])=>n),Y()),o=tt("search");return q([e,o]).pipe(m(([{offset:n},i])=>n.y>400&&!i),Y(),v(n=>n?r:$(!1)),G(!1))}function pi(e,t){return k(()=>q([_e(e),Os(t)])).pipe(m(([{height:r},o])=>({height:r,hidden:o})),Y((r,o)=>r.height===o.height&&r.hidden===o.hidden),ee(1))}function mi(e,{header$:t,main$:r}){return k(()=>{let o=new O,n=o.pipe(ie(),ce(!0));o.pipe(se("active"),Fe(t)).subscribe(([{active:a},{hidden:s}])=>{e.classList.toggle("md-header--shadow",a&&!s),e.hidden=s});let i=ue(_("[title]",e)).pipe(g(()=>V("content.tooltips")),re(a=>li(a)));return r.subscribe(o),t.pipe(j(n),m(a=>R({ref:e},a)),ze(i.pipe(j(n))))})}function Ls(e,{viewport$:t,header$:r}){return wr(e,{viewport$:t,header$:r}).pipe(m(({offset:{y:o}})=>{let{height:n}=me(e);return{active:n>0&&o>=n}}),se("active"))}function fi(e,t){return k(()=>{let r=new O;r.subscribe({next({active:n}){e.classList.toggle("md-header__title--active",n)},complete(){e.classList.remove("md-header__title--active")}});let o=de(".md-content h1");return typeof o=="undefined"?x:Ls(o,t).pipe(L(n=>r.next(n)),C(()=>r.complete()),m(n=>R({ref:e},n)))})}function ui(e,{viewport$:t,header$:r}){let o=r.pipe(m(({height:i})=>i),Y()),n=o.pipe(v(()=>_e(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),se("bottom"))));return q([o,n,t]).pipe(m(([i,{top:a,bottom:s},{offset:{y:c},size:{height:l}}])=>(l=Math.max(0,l-Math.max(0,a-c,i)-Math.max(0,l+c-s)),{offset:a-i,height:l,active:a-i<=c})),Y((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Ms(e){let t=__md_get("__palette")||{index:e.findIndex(o=>matchMedia(o.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return $(...e).pipe(re(o=>b(o,"change").pipe(m(()=>o))),G(e[r]),m(o=>({index:e.indexOf(o),color:{media:o.getAttribute("data-md-color-media"),scheme:o.getAttribute("data-md-color-scheme"),primary:o.getAttribute("data-md-color-primary"),accent:o.getAttribute("data-md-color-accent")}})),ee(1))}function di(e){let t=_("input",e),r=w("meta",{name:"theme-color"});document.head.appendChild(r);let o=w("meta",{name:"color-scheme"});document.head.appendChild(o);let n=Wt("(prefers-color-scheme: light)");return k(()=>{let i=new O;return i.subscribe(a=>{if(document.body.setAttribute("data-md-color-switching",""),a.color.media==="(prefers-color-scheme)"){let s=matchMedia("(prefers-color-scheme: light)"),c=document.querySelector(s.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=c.getAttribute("data-md-color-scheme"),a.color.primary=c.getAttribute("data-md-color-primary"),a.color.accent=c.getAttribute("data-md-color-accent")}for(let[s,c]of Object.entries(a.color))document.body.setAttribute(`data-md-color-${s}`,c);for(let s=0;s<t.length;s++){let c=t[s].nextElementSibling;c instanceof HTMLElement&&(c.hidden=a.index!==s)}__md_set("__palette",a)}),b(e,"keydown").pipe(g(a=>a.key==="Enter"),te(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(m(()=>{let a=$e("header"),s=window.getComputedStyle(a);return o.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(c=>(+c).toString(16).padStart(2,"0")).join("")})).subscribe(a=>r.content=`#${a}`),i.pipe(Se(le)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),Ms(t).pipe(j(n.pipe(Ue(1))),gt(),L(a=>i.next(a)),C(()=>i.complete()),m(a=>R({ref:e},a)))})}function hi(e,{progress$:t}){return k(()=>{let r=new O;return r.subscribe(({value:o})=>{e.style.setProperty("--md-progress-value",`${o}`)}),t.pipe(L(o=>r.next({value:o})),C(()=>r.complete()),m(o=>({ref:e,value:o})))})}function bi(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,e}function _s(e,t){let r=new Map;for(let o of _("url",e)){let n=I("loc",o),i=[bi(new URL(n.textContent),t)];r.set(`${i[0]}`,i);for(let a of _("[rel=alternate]",o)){let s=a.getAttribute("href");s!=null&&i.push(bi(new URL(s),t))}}return r}function $t(e){return wn(new URL("sitemap.xml",e)).pipe(m(t=>_s(t,new URL(e))),xe(()=>$(new Map)),pe())}function vi({document$:e}){let t=new Map;e.pipe(v(()=>_("link[rel=alternate]")),m(r=>new URL(r.href)),g(r=>!t.has(r.toString())),re(r=>$t(r).pipe(m(o=>[r,o]),xe(()=>x)))).subscribe(([r,o])=>{t.set(r.toString().replace(/\/$/,""),o)}),b(document.body,"click").pipe(g(r=>!r.metaKey&&!r.ctrlKey),v(r=>{if(r.target instanceof Element){let o=r.target.closest("a");if(o&&!o.target){let n=[...t].find(([f])=>o.href.startsWith(`${f}/`));if(typeof n=="undefined")return x;let[i,a]=n,s=Le();if(s.href.startsWith(i))return x;let c=ve(),l=s.href.replace(c.base,"");l=`${i}/${l}`;let p=a.has(l.split("#")[0])?new URL(l,c.base):new URL(i);return r.preventDefault(),$(p)}}return x})).subscribe(r=>pt(r,!0))}var lo=Pt(so());function As(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function gi({alert$:e}){lo.default.isSupported()&&new F(t=>{new lo.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||As(I(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(L(t=>{t.trigger.focus()}),m(()=>be("clipboard.copied"))).subscribe(e)}function yi(e,t){if(!(e.target instanceof Element))return x;let r=e.target.closest("a");if(r===null)return x;if(r.target||e.metaKey||e.ctrlKey)return x;let o=new URL(r.href);return o.search=o.hash="",t.has(`${o}`)?(e.preventDefault(),$(r)):x}function xi(e){let t=new Map;for(let r of _(":scope > *",e.head))t.set(r.outerHTML,r);return t}function Ei(e){for(let t of _("[href], [src]",e))for(let r of["href","src"]){let o=t.getAttribute(r);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){t[r]=t[r];break}}return $(e)}function Cs(e){for(let o of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...V("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let n=de(o),i=de(o,e);typeof n!="undefined"&&typeof i!="undefined"&&n.replaceWith(i)}let t=xi(document);for(let[o,n]of xi(e))t.has(o)?t.delete(o):document.head.appendChild(n);for(let o of t.values()){let n=o.getAttribute("name");n!=="theme-color"&&n!=="color-scheme"&&o.remove()}let r=$e("container");return Ge(_("script",r)).pipe(v(o=>{let n=e.createElement("script");if(o.src){for(let i of o.getAttributeNames())n.setAttribute(i,o.getAttribute(i));return o.replaceWith(n),new F(i=>{n.onload=()=>i.complete()})}else return n.textContent=o.textContent,o.replaceWith(n),x}),ie(),ce(document))}function wi({sitemap$:e,location$:t,viewport$:r,progress$:o}){if(location.protocol==="file:")return x;$(document).subscribe(Ei);let n=b(document.body,"click").pipe(Fe(e),v(([s,c])=>yi(s,c)),m(({href:s})=>new URL(s)),pe()),i=b(window,"popstate").pipe(m(Le),pe());n.pipe(te(r)).subscribe(([s,{offset:c}])=>{history.replaceState(c,""),history.pushState(null,"",s)}),E(n,i).subscribe(t);let a=t.pipe(se("pathname"),v(s=>Er(s,{progress$:o}).pipe(xe(()=>(pt(s,!0),x)))),v(Ei),v(Cs),pe());return E(a.pipe(te(t,(s,c)=>c)),a.pipe(v(()=>t),se("hash")),t.pipe(Y((s,c)=>s.pathname===c.pathname&&s.hash===c.hash),v(()=>n),L(()=>history.back()))).subscribe(s=>{var c,l;history.state!==null||!s.hash?window.scrollTo(0,(l=(c=history.state)==null?void 0:c.y)!=null?l:0):(history.scrollRestoration="auto",yn(s.hash),history.scrollRestoration="manual")}),t.subscribe(()=>{history.scrollRestoration="manual"}),b(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),r.pipe(se("offset"),ke(100)).subscribe(({offset:s})=>{history.replaceState(s,"")}),V("navigation.instant.prefetch")&&E(b(document.body,"mousemove"),b(document.body,"focusin")).pipe(Fe(e),v(([s,c])=>yi(s,c)),ke(25),Qr(({href:s})=>s),br(s=>{let c=document.createElement("link");return c.rel="prefetch",c.href=s.toString(),document.head.appendChild(c),b(c,"load").pipe(m(()=>c),Oe(1))})).subscribe(s=>s.remove()),a}var Ti=Pt(oo());function Si(e){let t=e.separator.split("|").map(n=>n.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":n).join("|"),r=new RegExp(t,"img"),o=(n,i,a)=>`${i}<mark data-md-highlight>${a}</mark>`;return n=>{n=n.replace(/[\s*+\-:~^]+/g," ").replace(/&/g,"&amp;").trim();let i=new RegExp(`(^|${e.separator}|)(${n.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return a=>(0,Ti.default)(a).replace(i,o).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function qt(e){return e.type===1}function Or(e){return e.type===3}function Oi(e,t){let r=_n(e);return E($(location.protocol!=="file:"),tt("search")).pipe(je(o=>o),v(()=>t)).subscribe(({config:o,docs:n})=>r.next({type:0,data:{config:o,docs:n,options:{suggest:V("search.suggest")}}})),r}function Li(e){var p;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:o,currentBaseURL:n}=e,i=(p=po(n))==null?void 0:p.pathname;if(i===void 0)return;let a=$s(o.pathname,i);if(a===void 0)return;let s=Ps(t.keys());if(!t.has(s))return;let c=po(a,s);if(!c||!t.has(c.href))return;let l=po(a,r);if(l)return l.hash=o.hash,l.search=o.search,l}function po(e,t){try{return new URL(e,t)}catch(r){return}}function $s(e,t){if(e.startsWith(t))return e.slice(t.length)}function Rs(e,t){let r=Math.min(e.length,t.length),o;for(o=0;o<r&&e[o]===t[o];++o);return o}function Ps(e){let t;for(let r of e)t===void 0?t=r:t=t.slice(0,Rs(t,r));return t!=null?t:""}function Mi({document$:e}){let t=ve(),r=Ke(new URL("../versions.json",t.base)).pipe(xe(()=>x)),o=r.pipe(m(n=>{let[,i]=t.base.match(/([^/]+)\/?$/);return n.find(({version:a,aliases:s})=>a===i||s.includes(i))||n[0]}));r.pipe(m(n=>new Map(n.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),v(n=>b(document.body,"click").pipe(g(i=>!i.metaKey&&!i.ctrlKey),te(o),v(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&n.has(s.href)){let c=s.href;return!i.target.closest(".md-version")&&n.get(c)===a?x:(i.preventDefault(),$(new URL(c)))}}return x}),v(i=>$t(i).pipe(m(a=>{var s;return(s=Li({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:Le(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(n=>pt(n,!0)),q([r,o]).subscribe(([n,i])=>{I(".md-header__topic").appendChild(Vn(n,i))}),e.pipe(v(()=>o)).subscribe(n=>{var s;let i=new URL(t.base),a=__md_get("__outdated",sessionStorage,i);if(a===null){a=!0;let c=((s=t.version)==null?void 0:s.default)||"latest";Array.isArray(c)||(c=[c]);e:for(let l of c)for(let p of n.aliases.concat(n.version))if(new RegExp(l,"i").test(p)){a=!1;break e}__md_set("__outdated",a,sessionStorage,i)}if(a)for(let c of fe("outdated"))c.hidden=!1})}function Is(e,{worker$:t}){let{searchParams:r}=Le();r.has("q")&&(De("search",!0),e.value=r.get("q"),e.focus(),tt("search").pipe(je(i=>!i)).subscribe(()=>{let i=Le();i.searchParams.delete("q"),history.replaceState({},"",`${i}`)}));let o=Xe(e),n=E(t.pipe(je(qt)),b(e,"keyup"),o).pipe(m(()=>e.value),Y());return q([n,o]).pipe(m(([i,a])=>({value:i,focus:a})),ee(1))}function _i(e,{worker$:t}){let r=new O,o=r.pipe(ie(),ce(!0));q([t.pipe(je(qt)),r],(i,a)=>a).pipe(se("value")).subscribe(({value:i})=>t.next({type:2,data:i})),r.pipe(se("focus")).subscribe(({focus:i})=>{i&&De("search",i)}),b(e.form,"reset").pipe(j(o)).subscribe(()=>e.focus());let n=I("header [for=__search]");return b(n,"click").subscribe(()=>e.focus()),Is(e,{worker$:t}).pipe(L(i=>r.next(i)),C(()=>r.complete()),m(i=>R({ref:e},i)),ee(1))}function Ai(e,{worker$:t,query$:r}){let o=new O,n=dn(e.parentElement).pipe(g(Boolean)),i=e.parentElement,a=I(":scope > :first-child",e),s=I(":scope > :last-child",e);tt("search").subscribe(p=>{s.setAttribute("role",p?"list":"presentation"),s.hidden=!p}),o.pipe(te(r),Jr(t.pipe(je(qt)))).subscribe(([{items:p},{value:f}])=>{switch(p.length){case 0:a.textContent=f.length?be("search.result.none"):be("search.result.placeholder");break;case 1:a.textContent=be("search.result.one");break;default:let u=vr(p.length);a.textContent=be("search.result.other",u)}});let c=o.pipe(L(()=>s.innerHTML=""),v(({items:p})=>E($(...p.slice(0,10)),$(...p.slice(10)).pipe(st(4),Zr(n),v(([f])=>f)))),m(Un),pe());return c.subscribe(p=>s.appendChild(p)),c.pipe(re(p=>{let f=de("details",p);return typeof f=="undefined"?x:b(f,"toggle").pipe(j(o),m(()=>f))})).subscribe(p=>{p.open===!1&&p.offsetTop<=i.scrollTop&&i.scrollTo({top:p.offsetTop})}),t.pipe(g(Or),m(({data:p})=>p)).pipe(L(p=>o.next(p)),C(()=>o.complete()),m(p=>R({ref:e},p)))}function Fs(e,{query$:t}){return t.pipe(m(({value:r})=>{let o=Le();return o.hash="",r=r.replace(/\s+/g,"+").replace(/&/g,"%26").replace(/=/g,"%3D"),o.search=`q=${r}`,{url:o}}))}function Ci(e,t){let r=new O,o=r.pipe(ie(),ce(!0));return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),b(e,"click").pipe(j(o)).subscribe(n=>n.preventDefault()),Fs(e,t).pipe(L(n=>r.next(n)),C(()=>r.complete()),m(n=>R({ref:e},n)))}function Hi(e,{worker$:t,keyboard$:r}){let o=new O,n=$e("search-query"),i=E(b(n,"keydown"),b(n,"focus")).pipe(Se(le),m(()=>n.value),Y());return o.pipe(Fe(i),m(([{suggest:s},c])=>{let l=c.split(/([\s-]+)/);if(s!=null&&s.length&&l[l.length-1]){let p=s[s.length-1];p.startsWith(l[l.length-1])&&(l[l.length-1]=p)}else l.length=0;return l})).subscribe(s=>e.innerHTML=s.join("").replace(/\s/g,"&nbsp;")),r.pipe(g(({mode:s})=>s==="search")).subscribe(s=>{s.type==="ArrowRight"&&e.innerText.length&&n.selectionStart===n.value.length&&(n.value=e.innerText)}),t.pipe(g(Or),m(({data:s})=>s)).pipe(L(s=>o.next(s)),C(()=>o.complete()),m(()=>({ref:e})))}function ki(e,{index$:t,keyboard$:r}){let o=ve();try{let n=Oi(o.search,t),i=$e("search-query",e),a=$e("search-result",e);b(e,"click").pipe(g(({target:c})=>c instanceof Element&&!!c.closest("a"))).subscribe(()=>De("search",!1)),r.pipe(g(({mode:c})=>c==="search")).subscribe(c=>{let l=qe();switch(c.type){case"Enter":if(l===i){let p=new Map;for(let f of _(":first-child [href]",a)){let u=f.firstElementChild;p.set(f,parseFloat(u.getAttribute("data-md-score")))}if(p.size){let[[f]]=[...p].sort(([,u],[,h])=>h-u);f.click()}c.claim()}break;case"Escape":case"Tab":De("search",!1),i.blur();break;case"ArrowUp":case"ArrowDown":if(typeof l=="undefined")i.focus();else{let p=[i,..._(":not(details) > [href], summary, details[open] [href]",a)],f=Math.max(0,(Math.max(0,p.indexOf(l))+p.length+(c.type==="ArrowUp"?-1:1))%p.length);p[f].focus()}c.claim();break;default:i!==qe()&&i.focus()}}),r.pipe(g(({mode:c})=>c==="global")).subscribe(c=>{switch(c.type){case"f":case"s":case"/":i.focus(),i.select(),c.claim();break}});let s=_i(i,{worker$:n});return E(s,Ai(a,{worker$:n,query$:s})).pipe(ze(...fe("search-share",e).map(c=>Ci(c,{query$:s})),...fe("search-suggest",e).map(c=>Hi(c,{worker$:n,keyboard$:r}))))}catch(n){return e.hidden=!0,it}}function $i(e,{index$:t,location$:r}){return q([t,r.pipe(G(Le()),g(o=>!!o.searchParams.get("h")))]).pipe(m(([o,n])=>Si(o.config)(n.searchParams.get("h"))),m(o=>{var a;let n=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)!=null&&a.offsetHeight){let c=s.textContent,l=o(c);l.length>c.length&&n.set(s,l)}for(let[s,c]of n){let{childNodes:l}=w("span",null,c);s.replaceWith(...Array.from(l))}return{ref:e,nodes:n}}))}function js(e,{viewport$:t,main$:r}){let o=e.closest(".md-grid"),n=o.offsetTop-o.parentElement.offsetTop;return q([r,t]).pipe(m(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(n,Math.max(0,s-i))-n,{height:a,locked:s>=i+n})),Y((i,a)=>i.height===a.height&&i.locked===a.locked))}function mo(e,o){var n=o,{header$:t}=n,r=go(n,["header$"]);let i=I(".md-sidebar__scrollwrap",e),{y:a}=Be(i);return k(()=>{let s=new O,c=s.pipe(ie(),ce(!0)),l=s.pipe(Ie(0,Te));return l.pipe(te(t)).subscribe({next([{height:p},{height:f}]){i.style.height=`${p-2*a}px`,e.style.top=`${f}px`},complete(){i.style.height="",e.style.top=""}}),l.pipe(je()).subscribe(()=>{for(let p of _(".md-nav__link--active[href]",e)){if(!p.clientHeight)continue;let f=p.closest(".md-sidebar__scrollwrap");if(typeof f!="undefined"){let u=p.offsetTop-f.offsetTop,{height:h}=me(f);f.scrollTo({top:u-h/2})}}}),ue(_("label[tabindex]",e)).pipe(re(p=>b(p,"click").pipe(Se(le),m(()=>p),j(c)))).subscribe(p=>{let f=I(`[id="${p.htmlFor}"]`);I(`[aria-labelledby="${p.id}"]`).setAttribute("aria-expanded",`${f.checked}`)}),V("content.tooltips")&&ue(_("abbr[title]",e)).pipe(re(p=>Qe(p,{viewport$})),j(c)).subscribe(),js(e,r).pipe(L(p=>s.next(p)),C(()=>s.complete()),m(p=>R({ref:e},p)))})}function Ri(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return at(Ke(`${r}/releases/latest`).pipe(xe(()=>x),m(o=>({version:o.tag_name})),Je({})),Ke(r).pipe(xe(()=>x),m(o=>({stars:o.stargazers_count,forks:o.forks_count})),Je({}))).pipe(m(([o,n])=>R(R({},o),n)))}else{let r=`https://api.github.com/users/${e}`;return Ke(r).pipe(m(o=>({repositories:o.public_repos})),Je({}))}}function Pi(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return at(Ke(`${r}/releases/permalink/latest`).pipe(xe(()=>x),m(({tag_name:o})=>({version:o})),Je({})),Ke(r).pipe(xe(()=>x),m(({star_count:o,forks_count:n})=>({stars:o,forks:n})),Je({}))).pipe(m(([o,n])=>R(R({},o),n)))}function Ii(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,o]=t;return Ri(r,o)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,o]=t;return Pi(r,o)}return x}var Us;function Ds(e){return Us||(Us=k(()=>{let t=__md_get("__source",sessionStorage);if(t)return $(t);if(fe("consent").length){let o=__md_get("__consent");if(!(o&&o.github))return x}return Ii(e.href).pipe(L(o=>__md_set("__source",o,sessionStorage)))}).pipe(xe(()=>x),g(t=>Object.keys(t).length>0),m(t=>({facts:t})),ee(1)))}function Fi(e){let t=I(":scope > :last-child",e);return k(()=>{let r=new O;return r.subscribe(({facts:o})=>{t.appendChild(Dn(o)),t.classList.add("md-source__repository--active")}),Ds(e).pipe(L(o=>r.next(o)),C(()=>r.complete()),m(o=>R({ref:e},o)))})}function Ws(e,{viewport$:t,header$:r}){return _e(document.body).pipe(v(()=>wr(e,{header$:r,viewport$:t})),m(({offset:{y:o}})=>({hidden:o>=10})),se("hidden"))}function ji(e,t){return k(()=>{let r=new O;return r.subscribe({next({hidden:o}){e.hidden=o},complete(){e.hidden=!1}}),(V("navigation.tabs.sticky")?$({hidden:!1}):Ws(e,t)).pipe(L(o=>r.next(o)),C(()=>r.complete()),m(o=>R({ref:e},o)))})}function Vs(e,{viewport$:t,header$:r}){let o=new Map,n=_(".md-nav__link",e);for(let s of n){let c=decodeURIComponent(s.hash.substring(1)),l=de(`[id="${c}"]`);typeof l!="undefined"&&o.set(s,l)}let i=r.pipe(se("height"),m(({height:s})=>{let c=$e("main"),l=I(":scope > :first-child",c);return s+.8*(l.offsetTop-c.offsetTop)}),pe());return _e(document.body).pipe(se("height"),v(s=>k(()=>{let c=[];return $([...o].reduce((l,[p,f])=>{for(;c.length&&o.get(c[c.length-1]).tagName>=f.tagName;)c.pop();let u=f.offsetTop;for(;!u&&f.parentElement;)f=f.parentElement,u=f.offsetTop;let h=f.offsetParent;for(;h;h=h.offsetParent)u+=h.offsetTop;return l.set([...c=[...c,p]].reverse(),u)},new Map))}).pipe(m(c=>new Map([...c].sort(([,l],[,p])=>l-p))),Fe(i),v(([c,l])=>t.pipe(yt(([p,f],{offset:{y:u},size:h})=>{let d=u+h.height>=Math.floor(s.height);for(;f.length;){let[,y]=f[0];if(y-l<u||d)p=[...p,f.shift()];else break}for(;p.length;){let[,y]=p[p.length-1];if(y-l>=u&&!d)f=[p.pop(),...f];else break}return[p,f]},[[],[...c]]),Y((p,f)=>p[0]===f[0]&&p[1]===f[1])))))).pipe(m(([s,c])=>({prev:s.map(([l])=>l),next:c.map(([l])=>l)})),G({prev:[],next:[]}),st(2,1),m(([s,c])=>s.prev.length<c.prev.length?{prev:c.prev.slice(Math.max(0,s.prev.length-1),c.prev.length),next:[]}:{prev:c.prev.slice(-1),next:c.next.slice(0,c.next.length-s.next.length)}))}function Ui(e,{viewport$:t,header$:r,main$:o,target$:n}){return k(()=>{let i=new O,a=i.pipe(ie(),ce(!0));if(i.subscribe(({prev:s,next:c})=>{for(let[l]of c)l.classList.remove("md-nav__link--passed"),l.classList.remove("md-nav__link--active");for(let[l,[p]]of s.entries())p.classList.add("md-nav__link--passed"),p.classList.toggle("md-nav__link--active",l===s.length-1)}),b(e,"click").pipe(j(a)).subscribe(s=>{s.target.closest(".md-nav__link")&&(V("toc.integrate")?De("drawer",!1):De("toc",!1))}),V("toc.follow")){let s=E(t.pipe(ke(1),m(()=>{})),t.pipe(ke(250),m(()=>"smooth")));i.pipe(g(({prev:c})=>c.length>0),Fe(o.pipe(Se(le))),te(s)).subscribe(([[{prev:c}],l])=>{let[p]=c[c.length-1];if(p.offsetHeight){let f=gr(p);if(typeof f!="undefined"){let u=p.offsetTop-f.offsetTop,{height:h}=me(f);f.scrollTo({top:u-h/2,behavior:l})}}})}return V("navigation.tracking")&&t.pipe(j(a),se("offset"),ke(250),Ue(1),j(n.pipe(Ue(1))),gt({delay:250}),te(i)).subscribe(([,{prev:s}])=>{let c=Le(),l=s[s.length-1];if(l&&l.length){let[p]=l,{hash:f}=new URL(p.href);c.hash!==f&&(c.hash=f,history.replaceState({},"",`${c}`))}else c.hash="",history.replaceState({},"",`${c}`)}),Vs(e,{viewport$:t,header$:r}).pipe(L(s=>i.next(s)),C(()=>i.complete()),m(s=>R({ref:e},s)))})}function Ns(e,{viewport$:t,main$:r,target$:o}){let i=t.pipe(m(({offset:{y:l}})=>l),st(2,1),m(([l,p])=>p-l),yt((l,p)=>{let f=Math.sign(l)===Math.sign(p)?l+p:p;return Math.max(-24,Math.min(24,f))},0),m(l=>{if(l<=-12)return!0;if(l>=12)return!1}),g(l=>l!==void 0),te(t),g(([,l])=>l.offset.y>0),m(([l])=>l),Y()),a=r.pipe(m(({active:l})=>l)),s=t.pipe(m(({offset:{y:l}})=>l===0),Y(),g(Boolean)),c=E(i,s.pipe(m(()=>!1)));return q([a,c]).pipe(m(([l,p])=>!(l&&p)),Y(),j(o.pipe(Ue(1))),ce(!0),gt({delay:250}),m(l=>({hidden:l})))}function Di(e,{viewport$:t,main$:r,target$:o}){let n=new O;n.subscribe({next({hidden:a}){e.hidden=a,a?(e.setAttribute("tabindex","-1"),i instanceof HTMLElement&&i.blur(),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.bottom="",e.hidden=!0,e.removeAttribute("tabindex")}});let i=e.querySelector("[data-md-action='top']");return i&&b(i,"click").subscribe(a=>{a.preventDefault(),window.scrollTo({top:0})}),Ns(e,{viewport$:t,main$:r,target$:o}).pipe(L(a=>n.next(a)),C(()=>n.complete()),m(a=>R({ref:e},a)))}function Wi({document$:e,viewport$:t}){e.pipe(v(()=>_(".md-ellipsis")),re(r=>et(r).pipe(j(e.pipe(Ue(1))),g(o=>o),m(()=>r),Oe(1))),g(r=>r.offsetWidth<r.scrollWidth),re(r=>{let o=r.innerText,n=r.closest("a")||r;return n.title=o,V("content.tooltips")?Qe(n,{viewport$:t}).pipe(j(e.pipe(Ue(1))),C(()=>n.removeAttribute("title"))):x})).subscribe(),V("content.tooltips")&&e.pipe(v(()=>_(".md-status")),re(r=>Qe(r,{viewport$:t}))).subscribe()}function Vi({document$:e,tablet$:t}){e.pipe(v(()=>_(".md-toggle--indeterminate")),L(r=>{r.indeterminate=!0,r.checked=!1}),re(r=>b(r,"change").pipe(Xr(()=>r.classList.contains("md-toggle--indeterminate")),m(()=>r))),te(t)).subscribe(([r,o])=>{r.classList.remove("md-toggle--indeterminate"),o&&(r.checked=!1)})}function Ni({document$:e}){e.pipe(v(()=>E(_(".md-sidebar--primary"),_(".md-sidebar--secondary"),_(".md-search"),_(".md-overlay")))).subscribe(t=>{let r=0,o,n=!1;b(t,"touchstart",{passive:!0}).subscribe(i=>{var a;r=i.touches[0].pageY,n=t.classList.contains("md-overlay"),n||(o=(a=t.querySelector(".md-sidebar__scrollwrap, .md-search__scrollwrap"))!=null?a:void 0)}),b(t,"touchmove",{passive:!1}).subscribe(i=>{if(n){i.cancelable&&i.preventDefault();return}if(!o){i.cancelable&&i.preventDefault();return}let a=o.offsetHeight,s=o.scrollHeight;if(s<=a){i.cancelable&&i.preventDefault();return}let c=o.scrollTop,l=i.touches[0].pageY,p=r-l;c<=0&&p<0?i.cancelable&&i.preventDefault():c+a>=s&&p>0&&i.cancelable&&i.preventDefault()})})}function zi({viewport$:e,tablet$:t}){q([tt("search"),t]).pipe(m(([r,o])=>r&&!o),v(r=>$(r).pipe(ct(r?400:100))),te(e)).subscribe(([r,{offset:{y:o}}])=>{if(r)document.body.setAttribute("data-md-scrolllock",""),document.body.style.top=`-${o}px`;else{let n=-1*parseInt(document.body.style.top,10);document.body.removeAttribute("data-md-scrolllock"),document.body.style.top="",n&&window.scrollTo(0,n)}})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let o=e[r];typeof o=="string"?o=document.createTextNode(o):o.parentNode&&o.parentNode.removeChild(o),r?t.insertBefore(this.previousSibling,o):t.replaceChild(o,this)}}}));function zs(){return location.protocol==="file:"?Ct(`${new URL("search/search_index.js",Lr.base)}`).pipe(m(()=>__index),ee(1)):Ke(new URL("search/search_index.json",Lr.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var mt=sn(),Kt=vn(),Rt=xn(Kt),fo=bn(),Re=Mn(),Mr=Wt("(min-width: 60em)"),Bi=Wt("(min-width: 76.25em)"),Ki=En(),Lr=ve(),Qi=document.forms.namedItem("search")?zs():it,uo=new O;gi({alert$:uo});vi({document$:mt});var ho=new O,Yi=$t(Lr.base);V("navigation.instant")&&wi({sitemap$:Yi,location$:Kt,viewport$:Re,progress$:ho}).subscribe(mt);var qi;((qi=Lr.version)==null?void 0:qi.provider)==="mike"&&Mi({document$:mt});E(Kt,Rt).pipe(ct(100)).subscribe(()=>{De("drawer",!1),De("search",!1),De("toc",!1)});fo.pipe(g(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=de("link[rel=prev]");typeof t!="undefined"&&pt(t);break;case"n":case".":let r=de("link[rel=next]");typeof r!="undefined"&&pt(r);break;case"Enter":let o=qe();o instanceof HTMLLabelElement&&o.click()}});Wi({viewport$:Re,document$:mt});Vi({document$:mt,tablet$:Mr});Ni({document$:mt});zi({viewport$:Re,tablet$:Mr});var dt=pi($e("header"),{viewport$:Re}),Bt=mt.pipe(m(()=>$e("main")),v(e=>ui(e,{viewport$:Re,header$:dt})),ee(1)),qs=E(...fe("consent").map(e=>Cn(e,{target$:Rt})),...fe("dialog").map(e=>ci(e,{alert$:uo})),...fe("palette").map(e=>di(e)),...fe("progress").map(e=>hi(e,{progress$:ho})),...fe("search").map(e=>ki(e,{index$:Qi,keyboard$:fo})),...fe("source").map(e=>Fi(e))),Bs=k(()=>E(...fe("announce").map(e=>An(e)),...fe("content").map(e=>si(e,{sitemap$:Yi,viewport$:Re,target$:Rt,print$:Ki})),...fe("content").map(e=>V("search.highlight")?$i(e,{index$:Qi,location$:Kt}):x),...fe("header").map(e=>mi(e,{viewport$:Re,header$:dt,main$:Bt})),...fe("header-title").map(e=>fi(e,{viewport$:Re,header$:dt})),...fe("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?to(Bi,()=>mo(e,{viewport$:Re,header$:dt,main$:Bt})):to(Mr,()=>mo(e,{viewport$:Re,header$:dt,main$:Bt}))),...fe("tabs").map(e=>ji(e,{viewport$:Re,header$:dt})),...fe("toc").map(e=>Ui(e,{viewport$:Re,header$:dt,main$:Bt,target$:Rt})),...fe("top").map(e=>Di(e,{viewport$:Re,header$:dt,main$:Bt,target$:Rt})))),Gi=mt.pipe(v(()=>Bs),ze(qs),ee(1));Gi.subscribe();window.document$=mt;window.location$=Kt;window.target$=Rt;window.keyboard$=fo;window.viewport$=Re;window.tablet$=Mr;window.screen$=Bi;window.print$=Ki;window.alert$=uo;window.progress$=ho;window.component$=Gi;})();
//# sourceMappingURL=bundle.fc193f93.min.js.map