mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-12-01 10:37:22 +01:00
30 lines
82 KiB
JavaScript
30 lines
82 KiB
JavaScript
(()=>{var ta=Object.create;var St=Object.defineProperty;var ra=Object.getOwnPropertyDescriptor;var oa=Object.getOwnPropertyNames,wt=Object.getOwnPropertySymbols,na=Object.getPrototypeOf,ar=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable;var Br=(e,t,r)=>t in e?St(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))ar.call(t,r)&&Br(e,r,t[r]);if(wt)for(var r of wt(t))Kr.call(t,r)&&Br(e,r,t[r]);return e};var ia=e=>St(e,"__esModule",{value:!0});var Jr=(e,t)=>{var r={};for(var o in e)ar.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&wt)for(var o of wt(e))t.indexOf(o)<0&&Kr.call(e,o)&&(r[o]=e[o]);return r};var Et=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var aa=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of oa(t))!ar.call(e,o)&&o!=="default"&&St(e,o,{get:()=>t[o],enumerable:!(r=ra(t,o))||r.enumerable});return e},Ke=e=>aa(ia(St(e!=null?ta(na(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Gr=Et((sr,Yr)=>{(function(e,t){typeof sr=="object"&&typeof Yr!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(sr,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(E){return!!(E&&E!==document&&E.nodeName!=="HTML"&&E.nodeName!=="BODY"&&"classList"in E&&"contains"in E.classList)}function c(E){var We=E.type,Oe=E.tagName;return!!(Oe==="INPUT"&&a[We]&&!E.readOnly||Oe==="TEXTAREA"&&!E.readOnly||E.isContentEditable)}function l(E){E.classList.contains("focus-visible")||(E.classList.add("focus-visible"),E.setAttribute("data-focus-visible-added",""))}function p(E){!E.hasAttribute("data-focus-visible-added")||(E.classList.remove("focus-visible"),E.removeAttribute("data-focus-visible-added"))}function m(E){E.metaKey||E.altKey||E.ctrlKey||(s(r.activeElement)&&l(r.activeElement),o=!0)}function u(E){o=!1}function b(E){!s(E.target)||(o||c(E.target))&&l(E.target)}function v(E){!s(E.target)||(E.target.classList.contains("focus-visible")||E.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),p(E.target))}function d(E){document.visibilityState==="hidden"&&(n&&(o=!0),U())}function U(){document.addEventListener("mousemove",R),document.addEventListener("mousedown",R),document.addEventListener("mouseup",R),document.addEventListener("pointermove",R),document.addEventListener("pointerdown",R),document.addEventListener("pointerup",R),document.addEventListener("touchmove",R),document.addEventListener("touchstart",R),document.addEventListener("touchend",R)}function q(){document.removeEventListener("mousemove",R),document.removeEventListener("mousedown",R),document.removeEventListener("mouseup",R),document.removeEventListener("pointermove",R),document.removeEventListener("pointerdown",R),document.removeEventListener("pointerup",R),document.removeEventListener("touchmove",R),document.removeEventListener("touchstart",R),document.removeEventListener("touchend",R)}function R(E){E.target.nodeName&&E.target.nodeName.toLowerCase()==="html"||(o=!1,q())}document.addEventListener("keydown",m,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",d,!0),U(),r.addEventListener("focus",b,!0),r.addEventListener("blur",v,!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 go=Et((ps,_t)=>{/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var Xr,Zr,eo,to,ro,oo,no,io,ao,Tt,cr,so,co,lo,Be,po,uo,fo,mo,ho,bo,vo,xo,Ot;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(o){e(r(t,r(o)))}):typeof _t=="object"&&typeof _t.exports=="object"?e(r(t,r(_t.exports))):e(r(t));function r(o,n){return o!==t&&(typeof Object.create=="function"?Object.defineProperty(o,"__esModule",{value:!0}):o.__esModule=!0),function(i,a){return o[i]=n?n(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])};Xr=function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(o,n);function i(){this.constructor=o}o.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},Zr=Object.assign||function(o){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(o[s]=n[s])}return o},eo=function(o,n){var i={};for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&n.indexOf(a)<0&&(i[a]=o[a]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(o);s<a.length;s++)n.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(o,a[s])&&(i[a[s]]=o[a[s]]);return i},to=function(o,n,i,a){var s=arguments.length,c=s<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,i):a,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(o,n,i,a);else for(var p=o.length-1;p>=0;p--)(l=o[p])&&(c=(s<3?l(c):s>3?l(n,i,c):l(n,i))||c);return s>3&&c&&Object.defineProperty(n,i,c),c},ro=function(o,n){return function(i,a){n(i,a,o)}},oo=function(o,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,n)},no=function(o,n,i,a){function s(c){return c instanceof i?c:new i(function(l){l(c)})}return new(i||(i=Promise))(function(c,l){function p(b){try{u(a.next(b))}catch(v){l(v)}}function m(b){try{u(a.throw(b))}catch(v){l(v)}}function u(b){b.done?c(b.value):s(b.value).then(p,m)}u((a=a.apply(o,n||[])).next())})},io=function(o,n){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},a,s,c,l;return l={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function p(u){return function(b){return m([u,b])}}function m(u){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,s&&(c=u[0]&2?s.return:u[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,u[1])).done)return c;switch(s=0,c&&(u=[u[0]&2,c.value]),u[0]){case 0:case 1:c=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,s=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(c=i.trys,!(c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){i.label=u[1];break}if(u[0]===6&&i.label<c[1]){i.label=c[1],c=u;break}if(c&&i.label<c[2]){i.label=c[2],i.ops.push(u);break}c[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(o,i)}catch(b){u=[6,b],s=0}finally{a=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ao=function(o,n){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(n,i)&&Ot(n,o,i)},Ot=Object.create?function(o,n,i,a){a===void 0&&(a=i),Object.defineProperty(o,a,{enumerable:!0,get:function(){return n[i]}})}:function(o,n,i,a){a===void 0&&(a=i),o[a]=n[i]},Tt=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&o[n],a=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&a>=o.length&&(o=void 0),{value:o&&o[a++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},cr=function(o,n){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var a=i.call(o),s,c=[],l;try{for(;(n===void 0||n-- >0)&&!(s=a.next()).done;)c.push(s.value)}catch(p){l={error:p}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(l)throw l.error}}return c},so=function(){for(var o=[],n=0;n<arguments.length;n++)o=o.concat(cr(arguments[n]));return o},co=function(){for(var o=0,n=0,i=arguments.length;n<i;n++)o+=arguments[n].length;for(var a=Array(o),s=0,n=0;n<i;n++)for(var c=arguments[n],l=0,p=c.length;l<p;l++,s++)a[s]=c[l];return a},lo=function(o,n){for(var i=0,a=n.length,s=o.length;i<a;i++,s++)o[s]=n[i];return o},Be=function(o){return this instanceof Be?(this.v=o,this):new Be(o)},po=function(o,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(o,n||[]),s,c=[];return s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s;function l(d){a[d]&&(s[d]=function(U){return new Promise(function(q,R){c.push([d,U,q,R])>1||p(d,U)})})}function p(d,U){try{m(a[d](U))}catch(q){v(c[0][3],q)}}function m(d){d.value instanceof Be?Promise.resolve(d.value.v).then(u,b):v(c[0][2],d)}function u(d){p("next",d)}function b(d){p("throw",d)}function v(d,U){d(U),c.shift(),c.length&&p(c[0][0],c[0][1])}},uo=function(o){var n,i;return n={},a("next"),a("throw",function(s){throw s}),a("return"),n[Symbol.iterator]=function(){return this},n;function a(s,c){n[s]=o[s]?function(l){return(i=!i)?{value:Be(o[s](l)),done:s==="return"}:c?c(l):l}:c}},fo=function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=o[Symbol.asyncIterator],i;return n?n.call(o):(o=typeof Tt=="function"?Tt(o):o[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(c){i[c]=o[c]&&function(l){return new Promise(function(p,m){l=o[c](l),s(p,m,l.done,l.value)})}}function s(c,l,p,m){Promise.resolve(m).then(function(u){c({value:u,done:p})},l)}},mo=function(o,n){return Object.defineProperty?Object.defineProperty(o,"raw",{value:n}):o.raw=n,o};var r=Object.create?function(o,n){Object.defineProperty(o,"default",{enumerable:!0,value:n})}:function(o,n){o.default=n};ho=function(o){if(o&&o.__esModule)return o;var n={};if(o!=null)for(var i in o)i!=="default"&&Object.prototype.hasOwnProperty.call(o,i)&&Ot(n,o,i);return r(n,o),n},bo=function(o){return o&&o.__esModule?o:{default:o}},vo=function(o,n){if(!n.has(o))throw new TypeError("attempted to get private field on non-instance");return n.get(o)},xo=function(o,n,i){if(!n.has(o))throw new TypeError("attempted to set private field on non-instance");return n.set(o,i),i},e("__extends",Xr),e("__assign",Zr),e("__rest",eo),e("__decorate",to),e("__param",ro),e("__metadata",oo),e("__awaiter",no),e("__generator",io),e("__exportStar",ao),e("__createBinding",Ot),e("__values",Tt),e("__read",cr),e("__spread",so),e("__spreadArrays",co),e("__spreadArray",lo),e("__await",Be),e("__asyncGenerator",po),e("__asyncDelegator",uo),e("__asyncValues",fo),e("__makeTemplateObject",mo),e("__importStar",ho),e("__importDefault",bo),e("__classPrivateFieldGet",vo),e("__classPrivateFieldSet",xo)})});var Fr=Et((xt,Rr)=>{/*!
|
|
* clipboard.js v2.0.8
|
|
* https://clipboardjs.com/
|
|
*
|
|
* Licensed MIT © Zeno Rocha
|
|
*/(function(t,r){typeof xt=="object"&&typeof Rr=="object"?Rr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof xt=="object"?xt.ClipboardJS=r():t.ClipboardJS=r()})(xt,function(){return function(){var e={134:function(o,n,i){"use strict";i.d(n,{default:function(){return Zi}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),p=i(817),m=i.n(p);function u(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(h){return typeof h}:u=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},u(O)}function b(O,x){if(!(O instanceof x))throw new TypeError("Cannot call a class as a function")}function v(O,x){for(var h=0;h<x.length;h++){var k=x[h];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(O,k.key,k)}}function d(O,x,h){return x&&v(O.prototype,x),h&&v(O,h),O}var U=function(){function O(x){b(this,O),this.resolveOptions(x),this.initSelection()}return d(O,[{key:"resolveOptions",value:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=h.action,this.container=h.container,this.emitter=h.emitter,this.target=h.target,this.text=h.text,this.trigger=h.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var h=document.documentElement.getAttribute("dir")==="rtl";this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[h?"right":"left"]="-9999px";var k=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(k,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var h=this,k=this.createFakeElement();this.fakeHandlerCallback=function(){return h.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(k),this.selectedText=m()(k),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=m()(this.target),this.copyText()}},{key:"copyText",value:function(){var h;try{h=document.execCommand(this.action)}catch(k){h=!1}this.handleResult(h)}},{key:"handleResult",value:function(h){this.emitter.emit(h?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=h,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(h){if(h!==void 0)if(h&&u(h)==="object"&&h.nodeType===1){if(this.action==="copy"&&h.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(h.hasAttribute("readonly")||h.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=h}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),O}(),q=U;function R(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?R=function(h){return typeof h}:R=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},R(O)}function E(O,x){if(!(O instanceof x))throw new TypeError("Cannot call a class as a function")}function We(O,x){for(var h=0;h<x.length;h++){var k=x[h];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(O,k.key,k)}}function Oe(O,x,h){return x&&We(O.prototype,x),h&&We(O,h),O}function Qe(O,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(x&&x.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),x&&nr(O,x)}function nr(O,x){return nr=Object.setPrototypeOf||function(k,$){return k.__proto__=$,k},nr(O,x)}function Bi(O){var x=Gi();return function(){var k=yt(O),$;if(x){var te=yt(this).constructor;$=Reflect.construct(k,arguments,te)}else $=k.apply(this,arguments);return Ji(this,$)}}function Ji(O,x){return x&&(R(x)==="object"||typeof x=="function")?x:Yi(O)}function Yi(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function Gi(){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(O){return!1}}function yt(O){return yt=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},yt(O)}function ir(O,x){var h="data-clipboard-".concat(O);if(!!x.hasAttribute(h))return x.getAttribute(h)}var Xi=function(O){Qe(h,O);var x=Bi(h);function h(k,$){var te;return E(this,h),te=x.call(this),te.resolveOptions($),te.listenClick(k),te}return Oe(h,[{key:"resolveOptions",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof $.action=="function"?$.action:this.defaultAction,this.target=typeof $.target=="function"?$.target:this.defaultTarget,this.text=typeof $.text=="function"?$.text:this.defaultText,this.container=R($.container)==="object"?$.container:document.body}},{key:"listenClick",value:function($){var te=this;this.listener=l()($,"click",function(lt){return te.onClick(lt)})}},{key:"onClick",value:function($){var te=$.delegateTarget||$.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new q({action:this.action(te),target:this.target(te),text:this.text(te),container:this.container,trigger:te,emitter:this})}},{key:"defaultAction",value:function($){return ir("action",$)}},{key:"defaultTarget",value:function($){var te=ir("target",$);if(te)return document.querySelector(te)}},{key:"defaultText",value:function($){return ir("text",$)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],te=typeof $=="string"?[$]:$,lt=!!document.queryCommandSupported;return te.forEach(function(ea){lt=lt&&!!document.queryCommandSupported(ea)}),lt}}]),h}(s()),Zi=Xi},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,m,u,b,v){var d=l.apply(this,arguments);return p.addEventListener(u,d,v),{destroy:function(){p.removeEventListener(u,d,v)}}}function c(p,m,u,b,v){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(d){return s(d,m,u,b,v)}))}function l(p,m,u,b){return function(v){v.delegateTarget=a(v.target,m),v.delegateTarget&&b.call(p,v)}}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,b,v){if(!u&&!b&&!v)throw new Error("Missing required arguments");if(!a.string(b))throw new TypeError("Second argument must be a String");if(!a.fn(v))throw new TypeError("Third argument must be a Function");if(a.node(u))return l(u,b,v);if(a.nodeList(u))return p(u,b,v);if(a.string(u))return m(u,b,v);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(u,b,v){return u.addEventListener(b,v),{destroy:function(){u.removeEventListener(b,v)}}}function p(u,b,v){return Array.prototype.forEach.call(u,function(d){d.addEventListener(b,v)}),{destroy:function(){Array.prototype.forEach.call(u,function(d){d.removeEventListener(b,v)})}}}function m(u,b,v){return s(document.body,u,b,v)}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,m=c.length;p<m;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(134)}().default})});var Vr=Et((ly,yi)=>{/*!
|
|
* escape-html
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
* MIT Licensed
|
|
*/"use strict";var Ba=/["'&<>]/;yi.exports=Ja;function Ja(e){var t=""+e,r=Ba.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=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";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 rT=Ke(Gr());var yo=Ke(go()),{__extends:G,__assign:us,__rest:fs,__decorate:ms,__param:ds,__metadata:hs,__awaiter:So,__generator:Mt,__exportStar:bs,__createBinding:vs,__values:le,__read:C,__spread:xs,__spreadArrays:gs,__spreadArray:H,__await:At,__asyncGenerator:wo,__asyncDelegator:ys,__asyncValues:Eo,__makeTemplateObject:Ss,__importStar:ws,__importDefault:Es,__classPrivateFieldGet:Ts,__classPrivateFieldSet:Os}=yo.default;function S(e){return typeof e=="function"}function Lt(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 kt=Lt(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 _e(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ie=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=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=le(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(d){t={error:d}}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(S(p))try{p()}catch(d){i=d instanceof kt?d.errors:[d]}var m=this._teardowns;if(m){this._teardowns=null;try{for(var u=le(m),b=u.next();!b.done;b=u.next()){var v=b.value;try{To(v)}catch(d){i=i!=null?i:[],d instanceof kt?i=H(H([],C(i)),C(d.errors)):i.push(d)}}}catch(d){o={error:d}}finally{try{b&&!b.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}}if(i)throw new kt(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)To(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=(r=this._teardowns)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&_e(r,t)},e.prototype.remove=function(t){var r=this._teardowns;r&&_e(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var lr=ie.EMPTY;function Ct(e){return e instanceof ie||e&&"closed"in e&&S(e.remove)&&S(e.add)&&S(e.unsubscribe)}function To(e){S(e)?e():e.unsubscribe()}var ve={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Je={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Je.delegate;return((r==null?void 0:r.setTimeout)||setTimeout).apply(void 0,H([],C(e)))},clearTimeout:function(e){var t=Je.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ht(e){Je.setTimeout(function(){var t=ve.onUnhandledError;if(t)t(e);else throw e})}function re(){}var Oo=function(){return pr("C",void 0,void 0)}();function _o(e){return pr("E",void 0,e)}function Mo(e){return pr("N",e,void 0)}function pr(e,t,r){return{kind:e,value:t,error:r}}var Ue=null;function Ye(e){if(ve.useDeprecatedSynchronousErrorHandling){var t=!Ue;if(t&&(Ue={errorThrown:!1,error:null}),e(),t){var r=Ue,o=r.errorThrown,n=r.error;if(Ue=null,o)throw n}}else e()}function Ao(e){ve.useDeprecatedSynchronousErrorHandling&&Ue&&(Ue.errorThrown=!0,Ue.error=e)}var pt=function(e){G(t,e);function t(r){var o=e.call(this)||this;return o.isStopped=!1,r?(o.destination=r,Ct(r)&&r.add(o)):o.destination=sa,o}return t.create=function(r,o,n){return new ut(r,o,n)},t.prototype.next=function(r){this.isStopped?fr(Mo(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?fr(_o(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?fr(Oo,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}(ie);var ut=function(e){G(t,e);function t(r,o,n){var i=e.call(this)||this,a;if(S(r))a=r;else if(r){a=r.next,o=r.error,n=r.complete;var s;i&&ve.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()}):s=r,a=a==null?void 0:a.bind(s),o=o==null?void 0:o.bind(s),n=n==null?void 0:n.bind(s)}return i.destination={next:a?ur(a,i):re,error:ur(o!=null?o:Lo,i),complete:n?ur(n,i):re},i}return t}(pt);function ur(e,t){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];try{e.apply(void 0,H([],C(r)))}catch(n){ve.useDeprecatedSynchronousErrorHandling?Ao(n):Ht(n)}}}function Lo(e){throw e}function fr(e,t){var r=ve.onStoppedNotification;r&&Je.setTimeout(function(){return r(e,t)})}var sa={closed:!0,next:re,error:Lo,complete:re};var ke=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function pe(e){return e}function ko(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mr(e)}function mr(e){return e.length===0?pe:e.length===1?e[0]:function(r){return e.reduce(function(o,n){return n(o)},r)}}var A=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=la(t)?t:new ut(t,r,o);return Ye(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=Co(r),new r(function(n,i){var a;a=o.subscribe(function(s){try{t(s)}catch(c){i(c),a==null||a.unsubscribe()}},i,n)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[ke]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mr(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Co(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 Co(e){var t;return(t=e!=null?e:ve.Promise)!==null&&t!==void 0?t:Promise}function ca(e){return e&&S(e.next)&&S(e.error)&&S(e.complete)}function la(e){return e&&e instanceof pt||ca(e)&&Ct(e)}function pa(e){return S(e==null?void 0:e.lift)}function g(e){return function(t){if(pa(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")}}var y=function(e){G(t,e);function t(r,o,n,i,a){var s=e.call(this,r)||this;return s.onFinalize=a,s._next=o?function(c){try{o(c)}catch(l){r.error(l)}}:e.prototype._next,s._error=i?function(c){try{i(c)}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var r,o=this.closed;e.prototype.unsubscribe.call(this),!o&&((r=this.onFinalize)===null||r===void 0||r.call(this))},t}(pt);var Ge={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,o=Ge.delegate;o&&(t=o.requestAnimationFrame,r=o.cancelAnimationFrame);var n=t(function(i){r=void 0,e(i)});return new ie(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=Ge.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,H([],C(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ge.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,H([],C(e)))},delegate:void 0};var Ho=Lt(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var T=function(e){G(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var o=new jo(this,this);return o.operator=r,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ho},t.prototype.next=function(r){var o=this;Ye(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){var a=o.observers.slice();try{for(var s=le(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.next(r)}}catch(p){n={error:p}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var o=this;Ye(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;Ye(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=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=o.hasError,i=o.isStopped,a=o.observers;return n||i?lr:(a.push(r),new ie(function(){return _e(a,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 A;return r.source=this,r},t.create=function(r,o){return new jo(r,o)},t}(A);var jo=function(e){G(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:lr},t}(T);var ft={now:function(){return(ft.delegate||Date).now()},delegate:void 0};var mt=function(e){G(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}(T);var Ro=function(e){G(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}(ie);var dt={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=dt.delegate;return((r==null?void 0:r.setInterval)||setInterval).apply(void 0,H([],C(e)))},clearInterval:function(e){var t=dt.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var jt=function(e){G(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){if(o===void 0&&(o=0),this.closed)return this;this.state=r;var n=this.id,i=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(i,n,o)),this.pending=!0,this.delay=o,this.id=this.id||this.requestAsyncId(i,this.id,o),this},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),dt.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;dt.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&&a||new Error(a)}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,_e(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 Rt=function(e){G(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._scheduled=void 0,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 Ce=new Rt(jt),hr=Ce;var Fo=function(e){G(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=Ge.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,o,n);r.actions.length===0&&(Ge.cancelAnimationFrame(o),r._scheduled=void 0)},t}(jt);var Io=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0,this._scheduled=void 0;var o=this.actions,n,i=-1;r=r||o.shift();var a=o.length;do if(n=r.execute(r.state,r.delay))break;while(++i<a&&(r=o.shift()));if(this._active=!1,n){for(;++i<a&&(r=o.shift());)r.unsubscribe();throw n}},t}(Rt);var X=new Io(Fo);var xe=new A(function(e){return e.complete()});function Xe(e,t){return new A(function(r){var o=0;return t.schedule(function(){o===e.length?r.complete():(r.next(e[o++]),r.closed||this.schedule())})})}var Ze=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ft(e){return S(e==null?void 0:e.then)}function Po(e,t){return new A(function(r){var o=new ie;return o.add(t.schedule(function(){var n=e[ke]();o.add(n.subscribe({next:function(i){o.add(t.schedule(function(){return r.next(i)}))},error:function(i){o.add(t.schedule(function(){return r.error(i)}))},complete:function(){o.add(t.schedule(function(){return r.complete()}))}}))})),o})}function $o(e,t){return new A(function(r){return t.schedule(function(){return e.then(function(o){r.add(t.schedule(function(){r.next(o),r.add(t.schedule(function(){return r.complete()}))}))},function(o){r.add(t.schedule(function(){return r.error(o)}))})})})}function ua(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var It=ua();function Wo(e,t,r,o){o===void 0&&(o=0);var n=t.schedule(function(){try{r.call(this)}catch(i){e.error(i)}},o);return e.add(n),n}function Uo(e,t){return new A(function(r){var o;return r.add(t.schedule(function(){o=e[It](),Wo(r,t,function(){var n=o.next(),i=n.value,a=n.done;a?r.complete():(r.next(i),this.schedule())})})),function(){return S(o==null?void 0:o.return)&&o.return()}})}function Pt(e,t){if(!e)throw new Error("Iterable cannot be null");return new A(function(r){var o=new ie;return o.add(t.schedule(function(){var n=e[Symbol.asyncIterator]();o.add(t.schedule(function(){var i=this;n.next().then(function(a){a.done?r.complete():(r.next(a.value),i.schedule())})}))})),o})}function $t(e){return S(e[ke])}function Wt(e){return S(e==null?void 0:e[It])}function Ut(e){return Symbol.asyncIterator&&S(e==null?void 0:e[Symbol.asyncIterator])}function Vt(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 Nt(e){return wo(this,arguments,function(){var r,o,n,i;return Mt(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,At(r.read())];case 3:return o=a.sent(),n=o.value,i=o.done,i?[4,At(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,At(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 Dt(e){return S(e==null?void 0:e.getReader)}function Vo(e,t){return Pt(Nt(e),t)}function No(e,t){if(e!=null){if($t(e))return Po(e,t);if(Ze(e))return Xe(e,t);if(Ft(e))return $o(e,t);if(Ut(e))return Pt(e,t);if(Wt(e))return Uo(e,t);if(Dt(e))return Vo(e,t)}throw Vt(e)}function Se(e,t){return t?No(e,t):Q(e)}function Q(e){if(e instanceof A)return e;if(e!=null){if($t(e))return fa(e);if(Ze(e))return br(e);if(Ft(e))return ma(e);if(Ut(e))return Do(e);if(Wt(e))return da(e);if(Dt(e))return ha(e)}throw Vt(e)}function fa(e){return new A(function(t){var r=e[ke]();if(S(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function br(e){return new A(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function ma(e){return new A(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Ht)})}function da(e){return new A(function(t){var r,o;try{for(var n=le(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 Do(e){return new A(function(t){ba(e,t).catch(function(r){return t.error(r)})})}function ha(e){return Do(Nt(e))}function ba(e,t){var r,o,n,i;return So(this,void 0,void 0,function(){var a,s;return Mt(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=Eo(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 we(e,t){return t?Xe(e,t):br(e)}function zt(e){return e&&S(e.schedule)}function vr(e){return e[e.length-1]}function He(e){return S(vr(e))?e.pop():void 0}function he(e){return zt(vr(e))?e.pop():void 0}function qt(e,t){return typeof vr(e)=="number"?e.pop():t}function F(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=he(e);return r?Xe(e,r):we(e)}function zo(e){return e instanceof Date&&!isNaN(e)}function f(e,t){return g(function(r,o){var n=0;r.subscribe(new y(o,function(i){o.next(e.call(t,i,n++))}))})}var va=Array.isArray;function xa(e,t){return va(t)?e.apply(void 0,H([],C(t))):e(t)}function je(e){return f(function(t){return xa(e,t)})}function B(e,t){return t===void 0&&(t=0),g(function(r,o){r.subscribe(new y(o,function(n){return o.add(e.schedule(function(){return o.next(n)},t))},function(){return o.add(e.schedule(function(){return o.complete()},t))},function(n){return o.add(e.schedule(function(){return o.error(n)},t))}))})}var ga=Array.isArray,ya=Object.getPrototypeOf,Sa=Object.prototype,wa=Object.keys;function qo(e){if(e.length===1){var t=e[0];if(ga(t))return{args:t,keys:null};if(Ea(t)){var r=wa(t);return{args:r.map(function(o){return t[o]}),keys:r}}}return{args:e,keys:null}}function Ea(e){return e&&typeof e=="object"&&ya(e)===Sa}function Qo(e,t){return e.reduce(function(r,o,n){return r[o]=t[n],r},{})}function J(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=he(e),o=He(e),n=qo(e),i=n.args,a=n.keys;if(i.length===0)return Se([],r);var s=new A(xr(i,r,a?function(c){return Qo(a,c)}:pe));return o?s.pipe(je(o)):s}function xr(e,t,r){return r===void 0&&(r=pe),function(o){Ko(t,function(){for(var n=e.length,i=new Array(n),a=n,s=n,c=function(p){Ko(t,function(){var m=Se(e[p],t),u=!1;m.subscribe(new y(o,function(b){i[p]=b,u||(u=!0,s--),s||o.next(r(i.slice()))},function(){--a||o.complete()}))},o)},l=0;l<n;l++)c(l)},o)}}function Ko(e,t,r){e?r.add(e.schedule(t)):t()}function Bo(e,t,r,o,n,i,a,s){var c=[],l=0,p=0,m=!1,u=function(){m&&!c.length&&!l&&t.complete()},b=function(d){return l<o?v(d):c.push(d)},v=function(d){i&&t.next(d),l++;var U=!1;Q(r(d,p++)).subscribe(new y(t,function(q){n==null||n(q),i?b(q):t.next(q)},function(){U=!0},void 0,function(){if(U)try{l--;for(var q=function(){var R=c.shift();a?t.add(a.schedule(function(){return v(R)})):v(R)};c.length&&l<o;)q();u()}catch(R){t.error(R)}}))};return e.subscribe(new y(t,b,function(){m=!0,u()})),function(){s==null||s()}}function oe(e,t,r){return r===void 0&&(r=1/0),S(t)?oe(function(o,n){return f(function(i,a){return t(o,i,n,a)})(Q(e(o,n)))},r):(typeof t=="number"&&(r=t),g(function(o,n){return Bo(o,n,e,r)}))}function et(e){return e===void 0&&(e=1/0),oe(pe,e)}function Jo(){return et(1)}function ht(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Jo()(we(e,he(e)))}function Me(e){return new A(function(t){Q(e()).subscribe(t)})}var Ta=["addListener","removeListener"],Oa=["addEventListener","removeEventListener"],_a=["on","off"];function w(e,t,r,o){if(S(r)&&(o=r,r=void 0),o)return w(e,t,r).pipe(je(o));var n=C(La(e)?Oa.map(function(s){return function(c){return e[s](t,c,r)}}):Ma(e)?Ta.map(Yo(e,t)):Aa(e)?_a.map(Yo(e,t)):[],2),i=n[0],a=n[1];if(!i&&Ze(e))return oe(function(s){return w(s,t,r)})(we(e));if(!i)throw new TypeError("Invalid event target");return new A(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 Yo(e,t){return function(r){return function(o){return e[r](t,o)}}}function Ma(e){return S(e.addListener)&&S(e.removeListener)}function Aa(e){return S(e.on)&&S(e.off)}function La(e){return S(e.addEventListener)&&S(e.removeEventListener)}function Qt(e,t,r){return r?Qt(e,t).pipe(je(r)):new A(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 S(t)?function(){return t(n,i)}:void 0})}function Go(e,t,r){e===void 0&&(e=0),r===void 0&&(r=hr);var o=-1;return t!=null&&(zt(t)?r=t:o=t),new A(function(n){var i=zo(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 W(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=he(e),o=qt(e,1/0),n=e;return n.length?n.length===1?Q(n[0]):et(o)(we(n,r)):xe}var K=new A(re);var ka=Array.isArray;function tt(e){return e.length===1&&ka(e[0])?e[0]:e}function _(e,t){return g(function(r,o){var n=0;r.subscribe(new y(o,function(i){return e.call(t,i,n++)&&o.next(i)}))})}function bt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e),o=tt(e);return o.length?new A(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){Q(o[l]).subscribe(new y(n,function(p){if(i[l].push(p),i.every(function(u){return u.length})){var m=i.map(function(u){return u.shift()});n.next(r?r.apply(void 0,H([],C(m))):m),i.some(function(u,b){return!u.length&&a[b]})&&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}}):xe}function ge(e,t){return t===void 0&&(t=null),t=t!=null?t:e,g(function(r,o){var n=[],i=0;r.subscribe(new y(o,function(a){var s,c,l,p,m=null;i++%t==0&&n.push([]);try{for(var u=le(n),b=u.next();!b.done;b=u.next()){var v=b.value;v.push(a),e<=v.length&&(m=m!=null?m:[],m.push(v))}}catch(q){s={error:q}}finally{try{b&&!b.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}if(m)try{for(var d=le(m),U=d.next();!U.done;U=d.next()){var v=U.value;_e(n,v),o.next(v)}}catch(q){l={error:q}}finally{try{U&&!U.done&&(p=d.return)&&p.call(d)}finally{if(l)throw l.error}}},function(){var a,s;try{for(var c=le(n),l=c.next();!l.done;l=c.next()){var p=l.value;o.next(p)}}catch(m){a={error:m}}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 rt(e){return g(function(t,r){var o=null,n=!1,i;o=t.subscribe(new y(r,void 0,void 0,function(a){i=Q(e(a,rt(e)(t))),o?(o.unsubscribe(),o=null,i.subscribe(r)):n=!0})),n&&(o.unsubscribe(),o=null,i.subscribe(r))})}function Xo(e,t,r,o,n){return function(i,a){var s=r,c=t,l=0;i.subscribe(new y(a,function(p){var m=l++;c=s?e(c,p,m):(s=!0,p),o&&a.next(c)},n&&function(){s&&a.next(c),a.complete()}))}}function gr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e);return r?ko(gr.apply(void 0,H([],C(e))),je(r)):g(function(o,n){xr(H([o],C(tt(e))))(n)})}function ot(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return gr.apply(void 0,H([],C(e)))}function yr(e,t){return S(t)?oe(e,t,1):oe(e,1)}function Sr(e,t){return t===void 0&&(t=Ce),g(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(new y(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 Ve(e){return g(function(t,r){var o=!1;t.subscribe(new y(r,function(n){o=!0,r.next(n)},function(){o||r.next(e),r.complete()}))})}function be(e){return e<=0?function(){return xe}:g(function(t,r){var o=0;t.subscribe(new y(r,function(n){++o<=e&&(r.next(n),e<=o&&r.complete())}))})}function Zo(){return g(function(e,t){e.subscribe(new y(t,re))})}function Z(e){return f(function(){return e})}function wr(e,t){return t?function(r){return ht(t.pipe(be(1),Zo()),r.pipe(wr(e)))}:oe(function(r,o){return e(r,o).pipe(be(1),Z(r))})}function Ae(e,t){t===void 0&&(t=Ce);var r=Go(e,t);return wr(function(){return r})}function D(e,t){return t===void 0&&(t=pe),e=e!=null?e:Ca,g(function(r,o){var n,i=!0;r.subscribe(new y(o,function(a){var s=t(a);(i||!e(n,s))&&(i=!1,n=s,o.next(a))}))})}function Ca(e,t){return e===t}function V(e,t){return D(function(r,o){return t?t(r[e],o[e]):r[e]===o[e]})}function j(e){return g(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function Er(e){return e<=0?function(){return xe}:g(function(t,r){var o=[];t.subscribe(new y(r,function(n){o.push(n),e<o.length&&o.shift()},function(){var n,i;try{for(var a=le(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 en(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=he(e),o=qt(e,1/0);return e=tt(e),g(function(n,i){et(o)(we(H([n],C(e)),r)).subscribe(i)})}function Ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return en.apply(void 0,H([],C(e)))}function nt(e){return g(function(t,r){var o=!1,n=null;t.subscribe(new y(r,function(a){o=!0,n=a}));var i=function(){if(o){o=!1;var a=n;n=null,r.next(a)}};e.subscribe(new y(r,i,re))})}function Tr(e,t){return g(Xo(e,t,arguments.length>=2,!0))}function ue(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new T}: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=null,m=null,u=null,b=0,v=!1,d=!1,U=function(){m==null||m.unsubscribe(),m=null},q=function(){U(),p=u=null,v=d=!1},R=function(){var E=p;q(),E==null||E.unsubscribe()};return g(function(E,We){b++,!d&&!v&&U();var Oe=u=u!=null?u:r();We.add(function(){b--,b===0&&!d&&!v&&(m=Or(R,c))}),Oe.subscribe(We),p||(p=new ut({next:function(Qe){return Oe.next(Qe)},error:function(Qe){d=!0,U(),m=Or(q,n,Qe),Oe.error(Qe)},complete:function(){v=!0,U(),m=Or(q,a),Oe.complete()}}),Se(E).subscribe(p))})(l)}}function Or(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return t===!0?(e(),null):t===!1?null:t.apply(void 0,H([],C(r))).pipe(be(1)).subscribe(function(){return e()})}function ee(e,t,r){var o,n,i,a=!1;return e&&typeof e=="object"?(i=(o=e.bufferSize)!==null&&o!==void 0?o:1/0,t=(n=e.windowTime)!==null&&n!==void 0?n:1/0,a=!!e.refCount,r=e.scheduler):i=e!=null?e:1/0,ue({connector:function(){return new mt(i,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function Kt(e){return _(function(t,r){return e<=r})}function _r(e){return g(function(t,r){var o=!1,n=new y(r,function(){n==null||n.unsubscribe(),o=!0},re);Q(e).subscribe(n),t.subscribe(new y(r,function(i){return o&&r.next(i)}))})}function N(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=he(e);return g(function(o,n){(r?ht(e,o,r):ht(e,o)).subscribe(n)})}function M(e,t){return g(function(r,o){var n=null,i=0,a=!1,s=function(){return a&&!n&&o.complete()};r.subscribe(new y(o,function(c){n==null||n.unsubscribe();var l=0,p=i++;Q(e(c,p)).subscribe(n=new y(o,function(m){return o.next(t?t(c,m,p,l++):m)},function(){n=null,s()}))},function(){a=!0,s()}))})}function Mr(e,t){return S(t)?M(function(){return e},t):M(function(){return e})}function Ar(e){return g(function(t,r){Q(e).subscribe(new y(r,function(){return r.complete()},re)),!r.closed&&t.subscribe(r)})}function Lr(e,t){return t===void 0&&(t=!1),g(function(r,o){var n=0;r.subscribe(new y(o,function(i){var a=e(i,n++);(a||t)&&o.next(i),!a&&o.complete()}))})}function L(e,t,r){var o=S(e)||t||r?{next:e,error:t,complete:r}:e;return o?g(function(n,i){var a;(a=o.subscribe)===null||a===void 0||a.call(o);var s=!0;n.subscribe(new y(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)}))}):pe}var Ha={leading:!0,trailing:!1};function kr(e,t){var r=t===void 0?Ha:t,o=r.leading,n=r.trailing;return g(function(i,a){var s=!1,c=null,l=null,p=!1,m=function(){l==null||l.unsubscribe(),l=null,n&&(v(),p&&a.complete())},u=function(){l=null,p&&a.complete()},b=function(d){return l=Q(e(d)).subscribe(new y(a,m,u))},v=function(){if(s){s=!1;var d=c;c=null,a.next(d),!p&&b(d)}};i.subscribe(new y(a,function(d){s=!0,c=d,!(l&&!l.closed)&&(o?v():b(d))},function(){p=!0,!(n&&s&&l&&!l.closed)&&a.complete()}))})}function fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=He(e);return g(function(o,n){for(var i=e.length,a=new Array(i),s=e.map(function(){return!1}),c=!1,l=function(m){Q(e[m]).subscribe(new y(n,function(u){a[m]=u,!c&&!s[m]&&(s[m]=!0,(c=s.every(pe))&&(s=null))},re))},p=0;p<i;p++)l(p);o.subscribe(new y(n,function(m){if(c){var u=H([m],C(a));n.next(r?r.apply(void 0,H([],C(u))):u)}}))})}function tn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g(function(r,o){bt.apply(void 0,H([r],C(e))).subscribe(o)})}function Cr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tn.apply(void 0,H([],C(e)))}function rn(){let e=new mt;return w(document,"DOMContentLoaded").pipe(Z(document)).subscribe(e),e}function ae(e,t=document){return t.querySelector(e)||void 0}function se(e,t=document){let r=ae(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function De(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function z(e,t=document){return Array.from(t.querySelectorAll(e))}function ze(e,...t){e.replaceWith(...t)}function ye(e,t=!0){t?e.focus():e.blur()}function on(e){return W(w(e,"focus"),w(e,"blur")).pipe(f(({type:t})=>t==="focus"),N(e===De()))}var nn=new T,ja=Me(()=>F(new ResizeObserver(e=>{for(let t of e)nn.next(t)}))).pipe(M(e=>K.pipe(N(e)).pipe(j(()=>e.disconnect()))),ee(1));function Re(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Bt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Fe(e){return ja.pipe(L(t=>t.observe(e)),M(t=>nn.pipe(_(({target:r})=>r===e),j(()=>t.unobserve(e)),f(()=>Re(e)))),N(Re(e)))}function an(e){return{x:e.scrollLeft,y:e.scrollTop}}function Ra(e){return W(w(e,"scroll"),w(window,"resize")).pipe(f(()=>an(e)),N(an(e)))}function sn(e,t=16){return Ra(e).pipe(f(({y:r})=>{let o=Re(e),n=Bt(e);return r>=n.height-o.height-t}),D())}function cn(e){if(e instanceof HTMLInputElement)e.select();else throw new Error("Not implemented")}var Jt={drawer:se("[data-md-toggle=drawer]"),search:se("[data-md-toggle=search]")};function ln(e){return Jt[e].checked}function Ie(e,t){Jt[e].checked!==t&&Jt[e].click()}function Yt(e){let t=Jt[e];return w(t,"change").pipe(f(()=>t.checked),N(t.checked))}function Fa(e){switch(e.tagName){case"INPUT":case"SELECT":case"TEXTAREA":return!0;default:return e.isContentEditable}}function pn(){return w(window,"keydown").pipe(_(e=>!(e.metaKey||e.ctrlKey)),f(e=>({mode:ln("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),_(({mode:e})=>{if(e==="global"){let t=De();if(typeof t!="undefined")return!Fa(t)}return!0}),ue())}function Pe(){return new URL(location.href)}function un(e){location.href=e.href}function fn(){return new T}function mn(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)mn(e,r)}function I(e,t,...r){let o=document.createElement(e);if(t)for(let n of Object.keys(t))typeof t[n]!="boolean"?o.setAttribute(n,t[n]):t[n]&&o.setAttribute(n,"");for(let n of r)mn(o,n);return o}function dn(e,t){let r=t;if(e.length>r){for(;e[r]!==" "&&--r>0;);return`${e.substring(0,r)}...`}return e}function Gt(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function hn(){return location.hash.substring(1)}function bn(e){let t=I("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Ia(){return w(window,"hashchange").pipe(f(hn),N(hn()),_(e=>e.length>0),ee(1))}function vn(){return Ia().pipe(f(e=>ae(`[id="${e}"]`)),_(e=>typeof e!="undefined"))}function vt(e){let t=matchMedia(e);return Qt(r=>t.addListener(()=>r(t.matches))).pipe(N(t.matches))}function xn(){return w(window,"beforeprint").pipe(Z(void 0))}function Hr(e,t){return e.pipe(M(r=>r?t():K))}function Xt(e,t={credentials:"same-origin"}){return Se(fetch(`${e}`,t)).pipe(_(r=>r.status===200))}function Ee(e,t){return Xt(e,t).pipe(M(r=>r.json()),ee(1))}function gn(e,t){let r=new DOMParser;return Xt(e,t).pipe(M(o=>o.text()),f(o=>r.parseFromString(o,"text/xml")),ee(1))}function yn(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function jr({x:e,y:t}){window.scrollTo(e||0,t||0)}function Sn(){return W(w(window,"scroll",{passive:!0}),w(window,"resize",{passive:!0})).pipe(f(yn),N(yn()))}function wn(){return{width:innerWidth,height:innerHeight}}function En(){return w(window,"resize",{passive:!0}).pipe(f(wn),N(wn()))}function Tn(){return J([Sn(),En()]).pipe(f(([e,t])=>({offset:e,size:t})),ee(1))}function Zt(e,{viewport$:t,header$:r}){let o=t.pipe(V("size")),n=J([o,r]).pipe(f(()=>({x:e.offsetLeft,y:e.offsetTop})));return J([r,t,n]).pipe(f(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}function On(e,{tx$:t}){let r=w(e,"message").pipe(f(({data:o})=>o));return t.pipe(kr(()=>r,{leading:!0,trailing:!0}),L(o=>e.postMessage(o)),Mr(r),ue())}var Pa=se("#__config"),it=JSON.parse(Pa.textContent);it.base=`${new URL(it.base,Pe())}`;function ce(){return it}function me(e){return it.features.includes(e)}function Y(e,t){return typeof t!="undefined"?it.translations[e].replace("#",t.toString()):it.translations[e]}function Te(e,t=document){return se(`[data-md-component=${e}]`,t)}function ne(e,t=document){return z(`[data-md-component=${e}]`,t)}var ii=Ke(Fr());function er(e,t=0){e.setAttribute("tabindex",t.toString())}function gt(e){e.removeAttribute("tabindex")}function _n(e,t){e.setAttribute("data-md-state","lock"),e.style.top=`-${t}px`}function Mn(e){let t=-1*parseInt(e.style.top,10);e.removeAttribute("data-md-state"),e.style.top="",t&&window.scrollTo(0,t)}function An(e,t){e.setAttribute("data-md-state",t)}function Ln(e){e.removeAttribute("data-md-state")}function kn(e,t){e.classList.toggle("md-nav__link--active",t)}function Cn(e){e.classList.remove("md-nav__link--active")}function Hn(e,t){e.firstElementChild.innerHTML=t}function jn(e,t){e.setAttribute("data-md-state",t)}function Rn(e){e.removeAttribute("data-md-state")}function Fn(e,t){e.setAttribute("data-md-state",t)}function In(e){e.removeAttribute("data-md-state")}function Pn(e,t){e.setAttribute("data-md-state",t)}function $n(e){e.removeAttribute("data-md-state")}function Wn(e,t){e.placeholder=t}function Un(e){e.placeholder=Y("search.placeholder")}function Vn(e,t){switch(t){case 0:e.textContent=Y("search.result.none");break;case 1:e.textContent=Y("search.result.one");break;default:e.textContent=Y("search.result.other",Gt(t))}}function Ir(e){e.textContent=Y("search.result.placeholder")}function Nn(e,t){e.appendChild(t)}function Dn(e){e.innerHTML=""}function zn(e,t){e.style.top=`${t}px`}function qn(e){e.style.top=""}function Qn(e,t){let r=e.firstElementChild;r.style.height=`${t-2*r.offsetTop}px`}function Kn(e){let t=e.firstElementChild;t.style.height=""}function Bn(e,t){e.lastElementChild.appendChild(t)}function Jn(e,t){e.lastElementChild.setAttribute("data-md-state",t)}function Yn(e,t){e.setAttribute("data-md-state",t)}function Pr(e){e.removeAttribute("data-md-state")}function Gn(e,t){e.setAttribute("data-md-state",t)}function $r(e){e.removeAttribute("data-md-state")}function Xn(e,t){e.style.top=`${t}px`}function Zn(e){e.style.top=""}function ei(e){return I("button",{class:"md-clipboard md-icon",title:Y("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}var qe;(function(r){r[r.TEASER=1]="TEASER",r[r.PARENT=2]="PARENT"})(qe||(qe={}));function Wr(e,t){let r=t&2,o=t&1,n=Object.keys(e.terms).filter(a=>!e.terms[a]).map(a=>[I("del",null,a)," "]).flat().slice(0,-1),i=new URL(e.location);return me("search.highlight")&&i.searchParams.set("h",Object.entries(e.terms).filter(([,a])=>a).reduce((a,[s])=>`${a} ${s}`.trim(),"")),I("a",{href:`${i}`,class:"md-search-result__link",tabIndex:-1},I("article",{class:["md-search-result__article",...r?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},r>0&&I("div",{class:"md-search-result__icon md-icon"}),I("h1",{class:"md-search-result__title"},e.title),o>0&&e.text.length>0&&I("p",{class:"md-search-result__teaser"},dn(e.text,320)),o>0&&n.length>0&&I("p",{class:"md-search-result__terms"},Y("search.result.term.missing"),": ",n)))}function ti(e){let t=e[0].score,r=[...e],o=r.findIndex(l=>!l.location.includes("#")),[n]=r.splice(o,1),i=r.findIndex(l=>l.score<t);i===-1&&(i=r.length);let a=r.slice(0,i),s=r.slice(i),c=[Wr(n,2|+(!o&&i===0)),...a.map(l=>Wr(l,1)),...s.length?[I("details",{class:"md-search-result__more"},I("summary",{tabIndex:-1},s.length>0&&s.length===1?Y("search.result.more.one"):Y("search.result.more.other",s.length)),s.map(l=>Wr(l,1)))]:[]];return I("li",{class:"md-search-result__item"},c)}function ri(e){return I("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>I("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Gt(r):r)))}function oi(e){return I("div",{class:"md-typeset__scrollwrap"},I("div",{class:"md-typeset__table"},e))}function $a(e){let t=ce(),r=new URL(`../${e.version}/`,t.base);return I("li",{class:"md-version__item"},I("a",{href:r.toString(),class:"md-version__link"},e.title))}function ni(e){let t=ce(),[,r]=t.base.match(/([^/]+)\/?$/),o=e.find(({version:n,aliases:i})=>n===r||i.includes(r))||e[0];return I("div",{class:"md-version"},I("button",{class:"md-version__current","aria-label":Y("select.version.title")},o.title),I("ul",{class:"md-version__list"},e.map($a)))}var Wa=0;function Ua(e,{viewport$:t}){let r=F(e).pipe(M(o=>{let n=o.closest("[data-tabs]");return n instanceof HTMLElement?W(...z("input",n).map(i=>w(i,"change"))):K}));return W(t.pipe(V("size")),r).pipe(f(()=>{let o=Re(e);return{scroll:Bt(e).width>o.width}}),V("scroll"))}function ai(e,t){let r=new T;if(r.pipe(fe(vt("(hover)"))).subscribe(([{scroll:o},n])=>{o&&n?er(e):gt(e)}),ii.default.isSupported()){let o=e.closest("pre");o.id=`__code_${Wa++}`,o.insertBefore(ei(o.id),e)}return Ua(e,t).pipe(L(o=>r.next(o)),j(()=>r.complete()),f(o=>P({ref:e},o)))}function Va(e,{target$:t,print$:r}){return t.pipe(f(o=>o.closest("details:not([open])")),_(o=>e===o),Z({scroll:!0}),Ne(r.pipe(Z({}))))}function si(e,t){let r=new T;return r.subscribe(({scroll:o})=>{e.setAttribute("open",""),o&&e.scrollIntoView()}),Va(e,t).pipe(L(o=>r.next(o)),j(()=>r.complete()),Z({ref:e}))}var ci=I("table");function li(e){return ze(e,ci),ze(ci,oi(e)),F({ref:e})}function Na(e){return e.classList.contains(".tabbed-alternate")?W(...z(":scope > input",e).map(t=>w(t,"change").pipe(Z(t.id)))).pipe(f(t=>({active:se(`label[for=${t}]`)}))):K}function pi(e){let t=new T;return t.subscribe(({active:r})=>{r.scrollIntoView({behavior:"smooth",block:"nearest"})}),Na(e).pipe(L(r=>t.next(r)),j(()=>t.complete()),f(r=>P({ref:e},r)))}function ui(e,{target$:t,viewport$:r,print$:o}){return W(...z("pre > code",e).map(n=>ai(n,{viewport$:r})),...z("table:not([class])",e).map(n=>li(n)),...z("details",e).map(n=>si(n,{target$:t,print$:o})),...z("[data-tabs]",e).map(n=>pi(n)))}function Da(e,{alert$:t}){return t.pipe(M(r=>W(F(!0),F(!1).pipe(Ae(2e3))).pipe(f(o=>({message:r,open:o})))))}function fi(e,t){let r=new T;return r.pipe(B(X)).subscribe(({message:o,open:n})=>{Hn(e,o),n?jn(e,"open"):Rn(e)}),Da(e,t).pipe(L(o=>r.next(o)),j(()=>r.complete()),f(o=>P({ref:e},o)))}function za({viewport$:e}){if(!me("header.autohide"))return F(!1);let t=e.pipe(f(({offset:{y:n}})=>n),ge(2,1),f(([n,i])=>[n<i,i]),V(0)),r=J([e,t]).pipe(_(([{offset:n},[,i]])=>Math.abs(i-n.y)>100),f(([,[n]])=>n),D()),o=Yt("search");return J([e,o]).pipe(f(([{offset:n},i])=>n.y>400&&!i),D(),M(n=>n?r:F(!1)),N(!1))}function mi(e,t){return Me(()=>{let r=getComputedStyle(e);return F(r.position==="sticky"||r.position==="-webkit-sticky")}).pipe(ot(Fe(e),za(t)),f(([r,{height:o},n])=>({height:r?o:0,sticky:r,hidden:n})),D((r,o)=>r.sticky===o.sticky&&r.height===o.height&&r.hidden===o.hidden),ee(1))}function di(e,{header$:t,main$:r}){let o=new T;return o.pipe(V("active"),ot(t),B(X)).subscribe(([{active:n},{hidden:i}])=>{n?Fn(e,i?"hidden":"shadow"):In(e)}),r.subscribe(n=>o.next(n)),t.pipe(f(n=>P({ref:e},n)))}function qa(e,{viewport$:t,header$:r}){return Zt(e,{header$:r,viewport$:t}).pipe(f(({offset:{y:o}})=>{let{height:n}=Re(e);return{active:o>=n}}),V("active"))}function hi(e,t){let r=new T;r.pipe(B(X)).subscribe(({active:n})=>{n?Pn(e,"active"):$n(e)});let o=ae("article h1");return typeof o=="undefined"?K:qa(o,t).pipe(L(n=>r.next(n)),j(()=>r.complete()),f(n=>P({ref:e},n)))}function bi(e,{viewport$:t,header$:r}){let o=r.pipe(f(({height:i})=>i),D()),n=o.pipe(M(()=>Fe(e).pipe(f(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),V("bottom"))));return J([o,n,t]).pipe(f(([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})),D((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Qa(e){let t=localStorage.getItem(__prefix("__palette")),r=JSON.parse(t)||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},o=F(...e).pipe(oe(n=>w(n,"change").pipe(Z(n))),N(e[Math.max(0,r.index)]),f(n=>({index:e.indexOf(n),color:{scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),ee(1));return o.subscribe(n=>{localStorage.setItem(__prefix("__palette"),JSON.stringify(n))}),o}function vi(e){let t=new T;t.subscribe(o=>{for(let[n,i]of Object.entries(o.color))typeof i=="string"&&document.body.setAttribute(`data-md-color-${n}`,i);for(let n=0;n<r.length;n++){let i=r[n].nextElementSibling;i instanceof HTMLElement&&(i.hidden=o.index!==n)}});let r=z("input",e);return Qa(r).pipe(L(o=>t.next(o)),j(()=>t.complete()),f(o=>P({ref:e},o)))}var Ur=Ke(Fr());function xi({alert$:e}){Ur.default.isSupported()&&new A(t=>{new Ur.default("[data-clipboard-target], [data-clipboard-text]").on("success",r=>t.next(r))}).subscribe(()=>e.next(Y("clipboard.copied")))}function Ka(e){if(e.length<2)return e;let[t,r]=e.sort((i,a)=>i.length-a.length).map(i=>i.replace(/[^/]+$/,"")),o=0;if(t===r)o=t.length;else for(;t.charCodeAt(o)===r.charCodeAt(o);)o++;let n=ce();return e.map(i=>i.replace(t.slice(0,o),n.base))}function gi({document$:e,location$:t,viewport$:r}){let o=ce();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",w(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let n=ae("link[rel=icon]");typeof n!="undefined"&&(n.href=n.href);let i=gn(new URL("sitemap.xml",o.base)).pipe(f(l=>Ka(z("loc",l).map(p=>p.textContent))),M(l=>w(document.body,"click").pipe(_(p=>!p.metaKey&&!p.ctrlKey),M(p=>{if(p.target instanceof Element){let m=p.target.closest("a");if(m&&!m.target){let u=new URL(m.href);if(u.search="",u.hash="",u.pathname!==location.pathname&&l.includes(u.toString()))return p.preventDefault(),F({url:new URL(m.href)})}}return K}))),ue()),a=w(window,"popstate").pipe(_(l=>l.state!==null),f(l=>({url:new URL(location.href),offset:l.state})),ue());W(i,a).pipe(D((l,p)=>l.url.href===p.url.href),f(({url:l})=>l)).subscribe(t);let s=t.pipe(V("pathname"),M(l=>Xt(l.href).pipe(rt(()=>(un(l),K)))),ue());i.pipe(nt(s)).subscribe(({url:l})=>{history.pushState({},"",`${l}`)});let c=new DOMParser;s.pipe(M(l=>l.text()),f(l=>c.parseFromString(l,"text/html"))).subscribe(e),e.pipe(Kt(1)).subscribe(l=>{for(let p of["title","link[rel=canonical]","meta[name=author]","meta[name=description]","[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=logo], .md-logo","[data-md-component=skip]",...me("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let m=ae(p),u=ae(p,l);typeof m!="undefined"&&typeof u!="undefined"&&ze(m,u)}}),e.pipe(Kt(1),f(()=>Te("container")),M(l=>F(...z("script",l))),yr(l=>{let p=I("script");if(l.src){for(let m of l.getAttributeNames())p.setAttribute(m,l.getAttribute(m));return ze(l,p),new A(m=>{p.onload=()=>m.complete()})}else return p.textContent=l.textContent,ze(l,p),xe})).subscribe(),W(i,a).pipe(nt(e)).subscribe(({url:l,offset:p})=>{l.hash&&!p?bn(l.hash):jr(p||{y:0})}),r.pipe(_r(i),Sr(250),V("offset")).subscribe(({offset:l})=>{history.replaceState(l,"")}),W(i,a).pipe(ge(2,1),_(([l,p])=>l.url.pathname===p.url.pathname),f(([,l])=>l)).subscribe(({offset:l})=>{jr(l||{y:0})})}var Ya=Ke(Vr());var Si=Ke(Vr());function Nr(e,t){let r=new RegExp(e.separator,"img"),o=(n,i,a)=>`${i}<mark data-md-highlight>${a}</mark>`;return n=>{n=n.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator})(${n.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return a=>(t?(0,Si.default)(a):a).replace(i,o).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function wi(e){return e.split(/"([^"]+)"/g).map((t,r)=>r&1?t.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):t).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").trim()}var Le;(function(n){n[n.SETUP=0]="SETUP",n[n.READY=1]="READY",n[n.QUERY=2]="QUERY",n[n.RESULT=3]="RESULT"})(Le||(Le={}));function at(e){return e.type===1}function Ei(e){return e.type===2}function st(e){return e.type===3}function Ga({config:e,docs:t,index:r}){e.lang.length===1&&e.lang[0]==="en"&&(e.lang=[Y("search.config.lang")]),e.separator==="[\\s\\-]+"&&(e.separator=Y("search.config.separator"));let n={pipeline:Y("search.config.pipeline").split(/\s*,\s*/).filter(Boolean),suggestions:me("search.suggest")};return{config:e,docs:t,index:r,options:n}}function Ti(e,t){let r=ce(),o=new Worker(e),n=new T,i=On(o,{tx$:n}).pipe(f(a=>{if(st(a))for(let s of a.data.items)for(let c of s)c.location=`${new URL(c.location,r.base)}`;return a}),ue());return Se(t).pipe(f(a=>({type:Le.SETUP,data:Ga(a)}))).subscribe(n.next.bind(n)),{tx$:n,rx$:i}}function Oi(){let e=ce();Ee(new URL("../versions.json",e.base)).subscribe(t=>{se(".md-header__topic").appendChild(ni(t))})}function Xa(e,{rx$:t}){let r=(__search==null?void 0:__search.transform)||wi,o=on(e),n=W(w(e,"keyup"),w(e,"focus").pipe(Ae(1))).pipe(f(()=>r(e.value)),D()),i=Pe();return i.searchParams.has("q")&&(Ie("search",!0),t.pipe(_(at),be(1)).subscribe(()=>{e.value=i.searchParams.get("q"),ye(e)})),J([n,o]).pipe(f(([a,s])=>({value:a,focus:s})))}function _i(e,{tx$:t,rx$:r}){let o=new T;return o.pipe(V("value"),f(({value:n})=>({type:Le.QUERY,data:n}))).subscribe(t.next.bind(t)),o.pipe(V("focus")).subscribe(({focus:n})=>{n?(Ie("search",n),Wn(e,"")):Un(e)}),w(e.form,"reset").pipe(Ar(o.pipe(Er(1)))).subscribe(()=>ye(e)),Xa(e,{tx$:t,rx$:r}).pipe(L(n=>o.next(n)),j(()=>o.complete()),f(n=>P({ref:e},n)))}function Mi(e,{rx$:t},{query$:r}){let o=new T,n=sn(e.parentElement).pipe(_(Boolean)),i=se(":scope > :first-child",e),a=se(":scope > :last-child",e);return t.pipe(_(at),be(1)).subscribe(()=>{Ir(i)}),o.pipe(B(X),fe(r)).subscribe(([{items:c},{value:l}])=>{l?Vn(i,c.length):Ir(i)}),o.pipe(B(X),L(()=>Dn(a)),M(({items:c})=>W(F(...c.slice(0,10)),F(...c.slice(10)).pipe(ge(4),Cr(n),M(([l])=>F(...l)))))).subscribe(c=>{Nn(a,ti(c))}),t.pipe(_(st),f(({data:c})=>c)).pipe(L(c=>o.next(c)),j(()=>o.complete()),f(c=>P({ref:e},c)))}function Za(e,{query$:t}){return t.pipe(f(({value:r})=>{let o=Pe();return o.hash="",o.searchParams.delete("h"),o.searchParams.set("q",r),{url:o}}))}function Ai(e,t){let r=new T;return r.subscribe(({url:o})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${o}`}),w(e,"click").subscribe(o=>o.preventDefault()),Za(e,t).pipe(L(o=>r.next(o)),j(()=>r.complete()),f(o=>P({ref:e},o)))}function Li(e,{rx$:t},{keyboard$:r}){let o=new T,n=Te("search-query"),i=w(n,"keydown").pipe(B(Ce),f(()=>n.value),D());return o.pipe(ot(i),f(([{suggestions:s},c])=>{let l=c.split(/([\s-]+)/);if((s==null?void 0: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," ")),r.pipe(_(({mode:s})=>s==="search")).subscribe(s=>{switch(s.type){case"ArrowRight":e.innerText.length&&n.selectionStart===n.value.length&&(n.value=e.innerText);break}}),t.pipe(_(st),f(({data:s})=>s)).pipe(L(s=>o.next(s)),j(()=>o.complete()),f(()=>({ref:e})))}function ki(e,{index$:t,keyboard$:r}){let o=ce();try{let n=(__search==null?void 0:__search.worker)||o.search,i=Ti(n,t),a=Te("search-query",e),s=Te("search-result",e),{tx$:c,rx$:l}=i;c.pipe(_(Ei),nt(l.pipe(_(at),be(1)))).subscribe(c.next.bind(c)),r.pipe(_(({mode:u})=>u==="search")).subscribe(u=>{let b=De();switch(u.type){case"Enter":if(b===a){let v=new Map;for(let d of z(":first-child [href]",s)){let U=d.firstElementChild;v.set(d,parseFloat(U.getAttribute("data-md-score")))}if(v.size){let[[d]]=[...v].sort(([,U],[,q])=>q-U);d.click()}u.claim()}break;case"Escape":case"Tab":Ie("search",!1),ye(a,!1);break;case"ArrowUp":case"ArrowDown":if(typeof b=="undefined")ye(a);else{let v=[a,...z(":not(details) > [href], summary, details[open] [href]",s)],d=Math.max(0,(Math.max(0,v.indexOf(b))+v.length+(u.type==="ArrowUp"?-1:1))%v.length);ye(v[d])}u.claim();break;default:a!==De()&&ye(a)}}),r.pipe(_(({mode:u})=>u==="global")).subscribe(u=>{switch(u.type){case"f":case"s":case"/":ye(a),cn(a),u.claim();break}});let p=_i(a,i),m=Mi(s,i,{query$:p});return W(p,m).pipe(Ne(...ne("search-share",e).map(u=>Ai(u,{query$:p})),...ne("search-suggest",e).map(u=>Li(u,i,{keyboard$:r}))))}catch(n){return e.hidden=!0,K}}function Ci(e,{index$:t,location$:r}){return J([t,r.pipe(N(Pe()),_(o=>o.searchParams.has("h")))]).pipe(f(([o,n])=>Nr(o.config,!0)(n.searchParams.get("h"))),f(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?void 0: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}=I("span",null,c);s.replaceWith(...Array.from(l))}return{ref:e,nodes:n}}))}function es(e,{viewport$:t,main$:r}){let o=e.parentElement.offsetTop-e.parentElement.parentElement.offsetTop;return J([r,t]).pipe(f(([{offset:n,height:i},{offset:{y:a}}])=>(i=i+Math.min(o,Math.max(0,a-n))-o,{height:i,locked:a>=n+o})),D((n,i)=>n.height===i.height&&n.locked===i.locked))}function Dr(e,o){var n=o,{header$:t}=n,r=Jr(n,["header$"]);let i=new T;return i.pipe(B(X),fe(t)).subscribe({next([{height:a},{height:s}]){Qn(e,a),zn(e,s)},complete(){qn(e),Kn(e)}}),es(e,r).pipe(L(a=>i.next(a)),j(()=>i.complete()),f(a=>P({ref:e},a)))}function Hi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return bt(Ee(`${r}/releases/latest`).pipe(f(o=>({version:o.tag_name})),Ve({})),Ee(r).pipe(f(o=>({stars:o.stargazers_count,forks:o.forks_count})),Ve({}))).pipe(f(([o,n])=>P(P({},o),n)))}else{let r=`https://api.github.com/users/${e}`;return Ee(r).pipe(f(o=>({repositories:o.public_repos})),Ve({}))}}function ji(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Ee(r).pipe(f(({star_count:o,forks_count:n})=>({stars:o,forks:n})),Ve({}))}function Ri(e){let[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":let[,r,o]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return Hi(r,o);case"gitlab":let[,n,i]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return ji(n,i);default:return K}}var ts;function rs(e){return ts||(ts=Me(()=>{let t=sessionStorage.getItem(__prefix("__source"));if(t)return F(JSON.parse(t));{let r=Ri(e.href);return r.subscribe(o=>{try{sessionStorage.setItem(__prefix("__source"),JSON.stringify(o))}catch(n){}}),r}}).pipe(rt(()=>K),_(t=>Object.keys(t).length>0),f(t=>({facts:t})),ee(1)))}function Fi(e){let t=new T;return t.subscribe(({facts:r})=>{Bn(e,ri(r)),Jn(e,"done")}),rs(e).pipe(L(r=>t.next(r)),j(()=>t.complete()),f(r=>P({ref:e},r)))}function os(e,{viewport$:t,header$:r}){return Fe(document.body).pipe(M(()=>Zt(e,{header$:r,viewport$:t})),f(({offset:{y:o}})=>({hidden:o>=10})),V("hidden"))}function Ii(e,t){let r=new T;return r.pipe(B(X)).subscribe({next({hidden:o}){o?Yn(e,"hidden"):Pr(e)},complete(){Pr(e)}}),(me("navigation.tabs.sticky")?F({hidden:!1}):os(e,t)).pipe(L(o=>r.next(o)),j(()=>r.complete()),f(o=>P({ref:e},o)))}function ns(e,{viewport$:t,header$:r}){let o=new Map;for(let a of e){let s=decodeURIComponent(a.hash.substring(1)),c=ae(`[id="${s}"]`);typeof c!="undefined"&&o.set(a,c)}let n=r.pipe(f(a=>24+a.height));return Fe(document.body).pipe(V("height"),f(()=>{let a=[];return[...o].reduce((s,[c,l])=>{for(;a.length&&o.get(a[a.length-1]).tagName>=l.tagName;)a.pop();let p=l.offsetTop;for(;!p&&l.parentElement;)l=l.parentElement,p=l.offsetTop;return s.set([...a=[...a,c]].reverse(),p)},new Map)}),f(a=>new Map([...a].sort(([,s],[,c])=>s-c))),M(a=>J([n,t]).pipe(Tr(([s,c],[l,{offset:{y:p}}])=>{for(;c.length;){let[,m]=c[0];if(m-l<p)s=[...s,c.shift()];else break}for(;s.length;){let[,m]=s[s.length-1];if(m-l>=p)c=[s.pop(),...c];else break}return[s,c]},[[],[...a]]),D((s,c)=>s[0]===c[0]&&s[1]===c[1])))).pipe(f(([a,s])=>({prev:a.map(([c])=>c),next:s.map(([c])=>c)})),N({prev:[],next:[]}),ge(2,1),f(([a,s])=>a.prev.length<s.prev.length?{prev:s.prev.slice(Math.max(0,a.prev.length-1),s.prev.length),next:[]}:{prev:s.prev.slice(-1),next:s.next.slice(0,s.next.length-a.next.length)}))}function Pi(e,t){let r=new T;r.pipe(B(X)).subscribe(({prev:n,next:i})=>{for(let[a]of i)Cn(a),Ln(a);for(let[a,[s]]of n.entries())kn(s,a===n.length-1),An(s,"blur")});let o=z("[href^=\\#]",e);return ns(o,t).pipe(L(n=>r.next(n)),j(()=>r.complete()),f(n=>P({ref:e},n)))}function is(e,{viewport$:t,main$:r}){let o=t.pipe(f(({offset:{y:i}})=>i),ge(2,1),f(([i,a])=>i>a&&a),D()),n=r.pipe(V("active"));return J([n,o]).pipe(f(([{active:i},a])=>({hidden:!(i&&a)})),D((i,a)=>i.hidden===a.hidden))}function $i(e,{viewport$:t,header$:r,main$:o}){let n=new T;return n.pipe(B(X),fe(r.pipe(V("height")))).subscribe({next([{hidden:i},{height:a}]){Xn(e,a+16),i?(Gn(e,"hidden"),ye(e,!1),er(e,-1)):($r(e),gt(e))},complete(){Zn(e),$r(e),gt(e)}}),is(e,{viewport$:t,header$:r,main$:o}).pipe(L(i=>n.next(i)),j(()=>n.complete()),f(i=>P({ref:e},i)))}function Wi({document$:e,tablet$:t}){e.pipe(M(()=>F(...z("[data-md-state=indeterminate]"))),L(r=>{r.indeterminate=!0,r.checked=!1}),oe(r=>w(r,"change").pipe(Lr(()=>r.hasAttribute("data-md-state")),Z(r))),fe(t)).subscribe(([r,o])=>{r.removeAttribute("data-md-state"),o&&(r.checked=!1)})}function as(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Ui({document$:e}){e.pipe(M(()=>F(...z("[data-md-scrollfix]"))),L(t=>t.removeAttribute("data-md-scrollfix")),_(as),oe(t=>w(t,"touchstart").pipe(Z(t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function Vi({viewport$:e,tablet$:t}){J([Yt("search"),t]).pipe(f(([r,o])=>r&&!o),M(r=>F(r).pipe(Ae(r?400:100),B(X))),fe(e)).subscribe(([r,{offset:{y:o}}])=>{r?_n(document.body,o):Mn(document.body)})}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var ct=rn(),tr=fn(),zr=vn(),qr=pn(),de=Tn(),rr=vt("(min-width: 960px)"),Ni=vt("(min-width: 1220px)"),Di=xn(),zi=ce(),qi=document.forms.namedItem("search")?(__search==null?void 0:__search.index)||Ee(new URL("search/search_index.json",zi.base)):K,Qr=new T;xi({alert$:Qr});me("navigation.instant")&&gi({document$:ct,location$:tr,viewport$:de});var Ki;((Ki=zi.version)==null?void 0:Ki.provider)==="mike"&&Oi();W(tr,zr).pipe(Ae(125)).subscribe(()=>{Ie("drawer",!1),Ie("search",!1)});qr.pipe(_(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=ae("[href][rel=prev]");typeof t!="undefined"&&t.click();break;case"n":case".":let r=ae("[href][rel=next]");typeof r!="undefined"&&r.click();break}});Wi({document$:ct,tablet$:rr});Ui({document$:ct});Vi({viewport$:de,tablet$:rr});var $e=mi(Te("header"),{viewport$:de}),or=ct.pipe(f(()=>Te("main")),M(e=>bi(e,{viewport$:de,header$:$e})),ee(1)),ss=W(...ne("dialog").map(e=>fi(e,{alert$:Qr})),...ne("header").map(e=>di(e,{viewport$:de,header$:$e,main$:or})),...ne("palette").map(e=>vi(e)),...ne("search").map(e=>ki(e,{index$:qi,keyboard$:qr})),...ne("source").map(e=>Fi(e))),cs=Me(()=>W(...ne("content").map(e=>ui(e,{target$:zr,viewport$:de,print$:Di})),...ne("content").map(e=>me("search.highlight")?Ci(e,{index$:qi,location$:tr}):K),...ne("header-title").map(e=>hi(e,{viewport$:de,header$:$e})),...ne("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Hr(Ni,()=>Dr(e,{viewport$:de,header$:$e,main$:or})):Hr(rr,()=>Dr(e,{viewport$:de,header$:$e,main$:or}))),...ne("tabs").map(e=>Ii(e,{viewport$:de,header$:$e})),...ne("toc").map(e=>Pi(e,{viewport$:de,header$:$e})),...ne("top").map(e=>$i(e,{viewport$:de,header$:$e,main$:or})))),Qi=ct.pipe(M(()=>cs),Ne(ss),ee(1));Qi.subscribe();window.document$=ct;window.location$=tr;window.target$=zr;window.keyboard$=qr;window.viewport$=de;window.tablet$=rr;window.screen$=Ni;window.print$=Di;window.alert$=Qr;window.component$=Qi;})();
|
|
//# sourceMappingURL=bundle.c7d1b464.min.js.map
|
|
|