You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kube-bench/v0.6.6/assets/javascripts/bundle.5610b013.min.js

4 lines
106 KiB

(()=>{var ea=Object.create;var At=Object.defineProperty;var ta=Object.getOwnPropertyDescriptor;var ra=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,na=Object.getPrototypeOf,yr=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable;var tn=(e,t,n)=>t in e?At(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t)=>{for(var n in t||(t={}))yr.call(t,n)&&tn(e,n,t[n]);if(Ct)for(var n of Ct(t))en.call(t,n)&&tn(e,n,t[n]);return e};var oa=e=>At(e,"__esModule",{value:!0});var rn=(e,t)=>{var n={};for(var r in e)yr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ct)for(var r of Ct(e))t.indexOf(r)<0&&en.call(e,r)&&(n[r]=e[r]);return n};var vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ia=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ra(t))!yr.call(e,o)&&(n||o!=="default")&&At(e,o,{get:()=>t[o],enumerable:!(r=ta(t,o))||r.enumerable});return e},Ge=(e,t)=>ia(oa(At(e!=null?ea(na(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var on=vt((xr,nn)=>{(function(e,t){typeof xr=="object"&&typeof nn!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(xr,function(){"use strict";function e(n){var r=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(M){return!!(M&&M!==document&&M.nodeName!=="HTML"&&M.nodeName!=="BODY"&&"classList"in M&&"contains"in M.classList)}function s(M){var He=M.type,Pe=M.tagName;return!!(Pe==="INPUT"&&a[He]&&!M.readOnly||Pe==="TEXTAREA"&&!M.readOnly||M.isContentEditable)}function c(M){M.classList.contains("focus-visible")||(M.classList.add("focus-visible"),M.setAttribute("data-focus-visible-added",""))}function f(M){!M.hasAttribute("data-focus-visible-added")||(M.classList.remove("focus-visible"),M.removeAttribute("data-focus-visible-added"))}function p(M){M.metaKey||M.altKey||M.ctrlKey||(u(n.activeElement)&&c(n.activeElement),r=!0)}function l(M){r=!1}function d(M){!u(M.target)||(r||s(M.target))&&c(M.target)}function h(M){!u(M.target)||(M.target.classList.contains("focus-visible")||M.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),f(M.target))}function b(M){document.visibilityState==="hidden"&&(o&&(r=!0),j())}function j(){document.addEventListener("mousemove",$),document.addEventListener("mousedown",$),document.addEventListener("mouseup",$),document.addEventListener("pointermove",$),document.addEventListener("pointerdown",$),document.addEventListener("pointerup",$),document.addEventListener("touchmove",$),document.addEventListener("touchstart",$),document.addEventListener("touchend",$)}function B(){document.removeEventListener("mousemove",$),document.removeEventListener("mousedown",$),document.removeEventListener("mouseup",$),document.removeEventListener("pointermove",$),document.removeEventListener("pointerdown",$),document.removeEventListener("pointerup",$),document.removeEventListener("touchmove",$),document.removeEventListener("touchstart",$),document.removeEventListener("touchend",$)}function $(M){M.target.nodeName&&M.target.nodeName.toLowerCase()==="html"||(r=!1,B())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",l,!0),document.addEventListener("pointerdown",l,!0),document.addEventListener("touchstart",l,!0),document.addEventListener("visibilitychange",b,!0),j(),n.addEventListener("focus",d,!0),n.addEventListener("blur",h,!0),n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n.host?n.host.setAttribute("data-js-focus-visible",""):n.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(n){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var an=vt(wr=>{(function(e){var t=function(){try{return!!Symbol.iterator}catch(c){return!1}},n=t(),r=function(c){var f={next:function(){var p=c.shift();return{done:p===void 0,value:p}}};return n&&(f[Symbol.iterator]=function(){return f}),f},o=function(c){return encodeURIComponent(c).replace(/%20/g,"+")},i=function(c){return decodeURIComponent(String(c).replace(/\+/g," "))},a=function(){var c=function(p){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var l=typeof p;if(l!=="undefined")if(l==="string")p!==""&&this._fromString(p);else if(p instanceof c){var d=this;p.forEach(function(B,$){d.append($,B)})}else if(p!==null&&l==="object")if(Object.prototype.toString.call(p)==="[object Array]")for(var h=0;h<p.length;h++){var b=p[h];if(Object.prototype.toString.call(b)==="[object Array]"||b.length!==2)this.append(b[0],b[1]);else throw new TypeError("Expected [string, any] as entry at index "+h+" of URLSearchParams's input")}else for(var j in p)p.hasOwnProperty(j)&&this.append(j,p[j]);else throw new TypeError("Unsupported input's type for URLSearchParams")},f=c.prototype;f.append=function(p,l){p in this._entries?this._entries[p].push(String(l)):this._entries[p]=[String(l)]},f.delete=function(p){delete this._entries[p]},f.get=function(p){return p in this._entries?this._entries[p][0]:null},f.getAll=function(p){return p in this._entries?this._entries[p].slice(0):[]},f.has=function(p){return p in this._entries},f.set=function(p,l){this._entries[p]=[String(l)]},f.forEach=function(p,l){var d;for(var h in this._entries)if(this._entries.hasOwnProperty(h)){d=this._entries[h];for(var b=0;b<d.length;b++)p.call(l,d[b],h,this)}},f.keys=function(){var p=[];return this.forEach(function(l,d){p.push(d)}),r(p)},f.values=function(){var p=[];return this.forEach(function(l){p.push(l)}),r(p)},f.entries=function(){var p=[];return this.forEach(function(l,d){p.push([d,l])}),r(p)},n&&(f[Symbol.iterator]=f.entries),f.toString=function(){var p=[];return this.forEach(function(l,d){p.push(o(d)+"="+o(l))}),p.join("&")},e.URLSearchParams=c},u=function(){try{var c=e.URLSearchParams;return new c("?a=1").toString()==="a=1"&&typeof c.prototype.set=="function"&&typeof c.prototype.entries=="function"}catch(f){return!1}};u()||a();var s=e.URLSearchParams.prototype;typeof s.sort!="function"&&(s.sort=function(){var c=this,f=[];this.forEach(function(l,d){f.push([d,l]),c._entries||c.delete(d)}),f.sort(function(l,d){return l[0]<d[0]?-1:l[0]>d[0]?1:0}),c._entries&&(c._entries={});for(var p=0;p<f.length;p++)this.append(f[p][0],f[p][1])}),typeof s._fromString!="function"&&Object.defineProperty(s,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(c){if(this._entries)this._entries={};else{var f=[];this.forEach(function(h,b){f.push(b)});for(var p=0;p<f.length;p++)this.delete(f[p])}c=c.replace(/^\?/,"");for(var l=c.split("&"),d,p=0;p<l.length;p++)d=l[p].split("="),this.append(i(d[0]),d.length>1?i(d[1]):"")}})})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:wr);(function(e){var t=function(){try{var o=new e.URL("b","http://a");return o.pathname="c d",o.href==="http://a/c%20d"&&o.searchParams}catch(i){return!1}},n=function(){var o=e.URL,i=function(s,c){typeof s!="string"&&(s=String(s)),c&&typeof c!="string"&&(c=String(c));var f=document,p;if(c&&(e.location===void 0||c!==e.location.href)){c=c.toLowerCase(),f=document.implementation.createHTMLDocument(""),p=f.createElement("base"),p.href=c,f.head.appendChild(p);try{if(p.href.indexOf(c)!==0)throw new Error(p.href)}catch(M){throw new Error("URL unable to set base "+c+" due to "+M)}}var l=f.createElement("a");l.href=s,p&&(f.body.appendChild(l),l.href=l.href);var d=f.createElement("input");if(d.type="url",d.value=s,l.protocol===":"||!/:/.test(l.href)||!d.checkValidity()&&!c)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:l});var h=new e.URLSearchParams(this.search),b=!0,j=!0,B=this;["append","delete","set"].forEach(function(M){var He=h[M];h[M]=function(){He.apply(h,arguments),b&&(j=!1,B.search=h.toString(),j=!0)}}),Object.defineProperty(this,"searchParams",{value:h,enumerable:!0});var $=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==$&&($=this.search,j&&(b=!1,this.searchParams._fromString(this.search),b=!0))}})},a=i.prototype,u=function(s){Object.defineProperty(a,s,{get:function(){return this._anchorElement[s]},set:function(c){this._anchorElement[s]=c},enumerable:!0})};["hash","host","hostname","port","protocol"].forEach(function(s){u(s)}),Object.defineProperty(a,"search",{get:function(){return this._anchorElement.search},set:function(s){this._anchorElement.search=s,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(a,{toString:{get:function(){var s=this;return function(){return s.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(s){this._anchorElement.href=s,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(s){this._anchorElement.pathname=s},enumerable:!0},origin:{get:function(){var s={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],c=this._anchorElement.port!=s&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(c?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(s){},enumerable:!0},username:{get:function(){return""},set:function(s){},enumerable:!0}}),i.createObjectURL=function(s){return o.createObjectURL.apply(o,arguments)},i.revokeObjectURL=function(s){return o.revokeObjectURL.apply(o,arguments)},e.URL=i};if(t()||n(),e.location!==void 0&&!("origin"in e.location)){var r=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:r,enumerable:!0})}catch(o){setInterval(function(){e.location.origin=r()},100)}}})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:wr)});var Mn=vt((Is,Ht)=>{var sn,cn,un,fn,pn,ln,mn,dn,hn,kt,Sr,bn,vn,gn,Je,yn,xn,wn,Sn,En,On,Tn,_n,Rt;(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(r){e(n(t,n(r)))}):typeof Ht=="object"&&typeof Ht.exports=="object"?e(n(t,n(Ht.exports))):e(n(t));function n(r,o){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(i,a){return r[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])};sn=function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(r,o);function i(){this.constructor=r}r.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},cn=Object.assign||function(r){for(var o,i=1,a=arguments.length;i<a;i++){o=arguments[i];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])}return r},un=function(r,o){var i={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&o.indexOf(a)<0&&(i[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,a=Object.getOwnPropertySymbols(r);u<a.length;u++)o.indexOf(a[u])<0&&Object.prototype.propertyIsEnumerable.call(r,a[u])&&(i[a[u]]=r[a[u]]);return i},fn=function(r,o,i,a){var u=arguments.length,s=u<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,i):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,o,i,a);else for(var f=r.length-1;f>=0;f--)(c=r[f])&&(s=(u<3?c(s):u>3?c(o,i,s):c(o,i))||s);return u>3&&s&&Object.defineProperty(o,i,s),s},pn=function(r,o){return function(i,a){o(i,a,r)}},ln=function(r,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,o)},mn=function(r,o,i,a){function u(s){return s instanceof i?s:new i(function(c){c(s)})}return new(i||(i=Promise))(function(s,c){function f(d){try{l(a.next(d))}catch(h){c(h)}}function p(d){try{l(a.throw(d))}catch(h){c(h)}}function l(d){d.done?s(d.value):u(d.value).then(f,p)}l((a=a.apply(r,o||[])).next())})},dn=function(r,o){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},a,u,s,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(l){return function(d){return p([l,d])}}function p(l){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=l[0]&2?u.return:l[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,l[1])).done)return s;switch(u=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,u=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){i.label=l[1];break}if(l[0]===6&&i.label<s[1]){i.label=s[1],s=l;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(l);break}s[2]&&i.ops.pop(),i.trys.pop();continue}l=o.call(r,i)}catch(d){l=[6,d],u=0}finally{a=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},hn=function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&Rt(o,r,i)},Rt=Object.create?function(r,o,i,a){a===void 0&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function(){return o[i]}})}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]},kt=function(r){var o=typeof Symbol=="function"&&Symbol.iterator,i=o&&r[o],a=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},Sr=function(r,o){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var a=i.call(r),u,s=[],c;try{for(;(o===void 0||o-- >0)&&!(u=a.next()).done;)s.push(u.value)}catch(f){c={error:f}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(c)throw c.error}}return s},bn=function(){for(var r=[],o=0;o<arguments.length;o++)r=r.concat(Sr(arguments[o]));return r},vn=function(){for(var r=0,o=0,i=arguments.length;o<i;o++)r+=arguments[o].length;for(var a=Array(r),u=0,o=0;o<i;o++)for(var s=arguments[o],c=0,f=s.length;c<f;c++,u++)a[u]=s[c];return a},gn=function(r,o,i){if(i||arguments.length===2)for(var a=0,u=o.length,s;a<u;a++)(s||!(a in o))&&(s||(s=Array.prototype.slice.call(o,0,a)),s[a]=o[a]);return r.concat(s||Array.prototype.slice.call(o))},Je=function(r){return this instanceof Je?(this.v=r,this):new Je(r)},yn=function(r,o,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(r,o||[]),u,s=[];return u={},c("next"),c("throw"),c("return"),u[Symbol.asyncIterator]=function(){return this},u;function c(b){a[b]&&(u[b]=function(j){return new Promise(function(B,$){s.push([b,j,B,$])>1||f(b,j)})})}function f(b,j){try{p(a[b](j))}catch(B){h(s[0][3],B)}}function p(b){b.value instanceof Je?Promise.resolve(b.value.v).then(l,d):h(s[0][2],b)}function l(b){f("next",b)}function d(b){f("throw",b)}function h(b,j){b(j),s.shift(),s.length&&f(s[0][0],s[0][1])}},xn=function(r){var o,i;return o={},a("next"),a("throw",function(u){throw u}),a("return"),o[Symbol.iterator]=function(){return this},o;function a(u,s){o[u]=r[u]?function(c){return(i=!i)?{value:Je(r[u](c)),done:u==="return"}:s?s(c):c}:s}},wn=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r[Symbol.asyncIterator],i;return o?o.call(r):(r=typeof kt=="function"?kt(r):r[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(s){i[s]=r[s]&&function(c){return new Promise(function(f,p){c=r[s](c),u(f,p,c.done,c.value)})}}function u(s,c,f,p){Promise.resolve(p).then(function(l){s({value:l,done:f})},c)}},Sn=function(r,o){return Object.defineProperty?Object.defineProperty(r,"raw",{value:o}):r.raw=o,r};var n=Object.create?function(r,o){Object.defineProperty(r,"default",{enumerable:!0,value:o})}:function(r,o){r.default=o};En=function(r){if(r&&r.__esModule)return r;var o={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&Rt(o,r,i);return n(o,r),o},On=function(r){return r&&r.__esModule?r:{default:r}},Tn=function(r,o,i,a){if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?r!==o||!a:!o.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?a:i==="a"?a.call(r):a?a.value:o.get(r)},_n=function(r,o,i,a,u){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?r!==o||!u:!o.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?u.call(r,i):u?u.value=i:o.set(r,i),i},e("__extends",sn),e("__assign",cn),e("__rest",un),e("__decorate",fn),e("__param",pn),e("__metadata",ln),e("__awaiter",mn),e("__generator",dn),e("__exportStar",hn),e("__createBinding",Rt),e("__values",kt),e("__read",Sr),e("__spread",bn),e("__spreadArrays",vn),e("__spreadArray",gn),e("__await",Je),e("__asyncGenerator",yn),e("__asyncDelegator",xn),e("__asyncValues",wn),e("__makeTemplateObject",Sn),e("__importStar",En),e("__importDefault",On),e("__classPrivateFieldGet",Tn),e("__classPrivateFieldSet",_n)})});var Yr=vt((Mt,Qr)=>{(function(t,n){typeof Mt=="object"&&typeof Qr=="object"?Qr.exports=n():typeof define=="function"&&define.amd?define([],n):typeof Mt=="object"?Mt.ClipboardJS=n():t.ClipboardJS=n()})(Mt,function(){return function(){var e={134:function(r,o,i){"use strict";i.d(o,{default:function(){return Xi}});var a=i(279),u=i.n(a),s=i(370),c=i.n(s),f=i(817),p=i.n(f);function l(R){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(v){return typeof v}:l=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},l(R)}function d(R,x){if(!(R instanceof x))throw new TypeError("Cannot call a class as a function")}function h(R,x){for(var v=0;v<x.length;v++){var U=x[v];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(R,U.key,U)}}function b(R,x,v){return x&&h(R.prototype,x),v&&h(R,v),R}var j=function(){function R(x){d(this,R),this.resolveOptions(x),this.initSelection()}return b(R,[{key:"resolveOptions",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=v.action,this.container=v.container,this.emitter=v.emitter,this.target=v.target,this.text=v.text,this.trigger=v.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var v=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[v?"right":"left"]="-9999px";var U=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(U,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var v=this,U=this.createFakeElement();this.fakeHandlerCallback=function(){return v.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(U),this.selectedText=p()(U),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=p()(this.target),this.copyText()}},{key:"copyText",value:function(){var v;try{v=document.execCommand(this.action)}catch(U){v=!1}this.handleResult(v)}},{key:"handleResult",value:function(v){this.emitter.emit(v?"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 v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=v,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(v){if(v!==void 0)if(v&&l(v)==="object"&&v.nodeType===1){if(this.action==="copy"&&v.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(v.hasAttribute("readonly")||v.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=v}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),R}(),B=j;function $(R){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(v){return typeof v}:$=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},$(R)}function M(R,x){if(!(R instanceof x))throw new TypeError("Cannot call a class as a function")}function He(R,x){for(var v=0;v<x.length;v++){var U=x[v];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(R,U.key,U)}}function Pe(R,x,v){return x&&He(R.prototype,x),v&&He(R,v),R}function Be(R,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(x&&x.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),x&&vr(R,x)}function vr(R,x){return vr=Object.setPrototypeOf||function(U,K){return U.__proto__=K,U},vr(R,x)}function Qi(R){var x=Gi();return function(){var U=Lt(R),K;if(x){var ie=Lt(this).constructor;K=Reflect.construct(U,arguments,ie)}else K=U.apply(this,arguments);return Yi(this,K)}}function Yi(R,x){return x&&($(x)==="object"||typeof x=="function")?x:Bi(R)}function Bi(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}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(R){return!1}}function Lt(R){return Lt=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},Lt(R)}function gr(R,x){var v="data-clipboard-".concat(R);if(!!x.hasAttribute(v))return x.getAttribute(v)}var Ji=function(R){Be(v,R);var x=Qi(v);function v(U,K){var ie;return M(this,v),ie=x.call(this),ie.resolveOptions(K),ie.listenClick(U),ie}return Pe(v,[{key:"resolveOptions",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof K.action=="function"?K.action:this.defaultAction,this.target=typeof K.target=="function"?K.target:this.defaultTarget,this.text=typeof K.text=="function"?K.text:this.defaultText,this.container=$(K.container)==="object"?K.container:document.body}},{key:"listenClick",value:function(K){var ie=this;this.listener=c()(K,"click",function(bt){return ie.onClick(bt)})}},{key:"onClick",value:function(K){var ie=K.delegateTarget||K.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new B({action:this.action(ie),target:this.target(ie),text:this.text(ie),container:this.container,trigger:ie,emitter:this})}},{key:"defaultAction",value:function(K){return gr("action",K)}},{key:"defaultTarget",value:function(K){var ie=gr("target",K);if(ie)return document.querySelector(ie)}},{key:"defaultText",value:function(K){return gr("text",K)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],ie=typeof K=="string"?[K]:K,bt=!!document.queryCommandSupported;return ie.forEach(function(Zi){bt=bt&&!!document.queryCommandSupported(Zi)}),bt}}]),v}(u()),Xi=Ji},828:function(r){var o=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(u,s){for(;u&&u.nodeType!==o;){if(typeof u.matches=="function"&&u.matches(s))return u;u=u.parentNode}}r.exports=a},438:function(r,o,i){var a=i(828);function u(f,p,l,d,h){var b=c.apply(this,arguments);return f.addEventListener(l,b,h),{destroy:function(){f.removeEventListener(l,b,h)}}}function s(f,p,l,d,h){return typeof f.addEventListener=="function"?u.apply(null,arguments):typeof l=="function"?u.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(b){return u(b,p,l,d,h)}))}function c(f,p,l,d){return function(h){h.delegateTarget=a(h.target,p),h.delegateTarget&&d.call(f,h)}}r.exports=s},879:function(r,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.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||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(r,o,i){var a=i(879),u=i(438);function s(l,d,h){if(!l&&!d&&!h)throw new Error("Missing required arguments");if(!a.string(d))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(l))return c(l,d,h);if(a.nodeList(l))return f(l,d,h);if(a.string(l))return p(l,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(l,d,h){return l.addEventListener(d,h),{destroy:function(){l.removeEventListener(d,h)}}}function f(l,d,h){return Array.prototype.forEach.call(l,function(b){b.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(l,function(b){b.removeEventListener(d,h)})}}}function p(l,d,h){return u(document.body,l,d,h)}r.exports=s},817:function(r){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var u=i.hasAttribute("readonly");u||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),u||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var s=window.getSelection(),c=document.createRange();c.selectNodeContents(i),s.removeAllRanges(),s.addRange(c),a=s.toString()}return a}r.exports=o},279:function(r){function o(){}o.prototype={on:function(i,a,u){var s=this.e||(this.e={});return(s[i]||(s[i]=[])).push({fn:a,ctx:u}),this},once:function(i,a,u){var s=this;function c(){s.off(i,c),a.apply(u,arguments)}return c._=a,this.on(i,c,u)},emit:function(i){var a=[].slice.call(arguments,1),u=((this.e||(this.e={}))[i]||[]).slice(),s=0,c=u.length;for(s;s<c;s++)u[s].fn.apply(u[s].ctx,a);return this},off:function(i,a){var u=this.e||(this.e={}),s=u[i],c=[];if(s&&a)for(var f=0,p=s.length;f<p;f++)s[f].fn!==a&&s[f].fn._!==a&&c.push(s[f]);return c.length?u[i]=c:delete u[i],this}},r.exports=o,r.exports.TinyEmitter=o}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return function(){n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,{a:o}),o}}(),function(){n.d=function(r,o){for(var i in o)n.o(o,i)&&!n.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:o[i]})}}(),function(){n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}}(),n(134)}().default})});var yi=vt((aS,gi)=>{"use strict";var gs=/["'&<>]/;gi.exports=ys;function ys(e){var t=""+e,n=gs.exec(t);if(!n)return t;var r,o="",i=0,a=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=r}return a!==i?o+t.substring(a,i):o}});Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function e(){var t=isNaN(arguments[0])?1:Number(arguments[0]);return t?Array.prototype.reduce.call(this,function(n,r){return Array.isArray(r)?n.push.apply(n,e.call(r,t-1)):n.push(r),n},[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(e){return Array.prototype.map.apply(this,arguments).flat()},writable:!0});var MT=Ge(on());self.fetch||(self.fetch=function(e,t){return t=t||{},new Promise(function(n,r){var o=new XMLHttpRequest,i=[],a=[],u={},s=function(){return{ok:(o.status/100|0)==2,statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:s,headers:{keys:function(){return i},entries:function(){return a},get:function(f){return u[f.toLowerCase()]},has:function(f){return f.toLowerCase()in u}}}};for(var c in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(f,p,l){i.push(p=p.toLowerCase()),a.push([p,l]),u[p]=u[p]?u[p]+","+l:l}),n(s())},o.onerror=r,o.withCredentials=t.credentials=="include",t.headers)o.setRequestHeader(c,t.headers[c]);o.send(t.body||null)})});var AT=Ge(an());var Ln=Ge(Mn(),1),{__extends:te,__assign:$s,__rest:Fs,__decorate:js,__param:Us,__metadata:Ws,__awaiter:An,__generator:Pt,__exportStar:Ds,__createBinding:Vs,__values:he,__read:F,__spread:zs,__spreadArrays:Ns,__spreadArray:W,__await:It,__asyncGenerator:Cn,__asyncDelegator:qs,__asyncValues:kn,__makeTemplateObject:Ks,__importStar:Qs,__importDefault:Ys,__classPrivateFieldGet:Bs,__classPrivateFieldSet:Gs}=Ln.default;function _(e){return typeof e=="function"}function $t(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ft=$t(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
`+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=n}});function Ie(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Le=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=he(a),s=u.next();!s.done;s=u.next()){var c=s.value;c.remove(this)}}catch(b){t={error:b}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}else a.remove(this);var f=this.initialTeardown;if(_(f))try{f()}catch(b){i=b instanceof Ft?b.errors:[b]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var l=he(p),d=l.next();!d.done;d=l.next()){var h=d.value;try{Rn(h)}catch(b){i=i!=null?i:[],b instanceof Ft?i=W(W([],F(i)),F(b.errors)):i.push(b)}}}catch(b){r={error:b}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}}if(i)throw new Ft(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Rn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=(n=this._teardowns)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Ie(n,t)},e.prototype.remove=function(t){var n=this._teardowns;n&&Ie(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Er=Le.EMPTY;function jt(e){return e instanceof Le||e&&"closed"in e&&_(e.remove)&&_(e.add)&&_(e.unsubscribe)}function Rn(e){_(e)?e():e.unsubscribe()}var Oe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Xe={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Xe.delegate;return((n==null?void 0:n.setTimeout)||setTimeout).apply(void 0,W([],F(e)))},clearTimeout:function(e){var t=Xe.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ut(e){Xe.setTimeout(function(){var t=Oe.onUnhandledError;if(t)t(e);else throw e})}function ue(){}var Hn=function(){return Or("C",void 0,void 0)}();function Pn(e){return Or("E",void 0,e)}function In(e){return Or("N",e,void 0)}function Or(e,t,n){return{kind:e,value:t,error:n}}var qe=null;function Ze(e){if(Oe.useDeprecatedSynchronousErrorHandling){var t=!qe;if(t&&(qe={errorThrown:!1,error:null}),e(),t){var n=qe,r=n.errorThrown,o=n.error;if(qe=null,r)throw o}}else e()}function $n(e){Oe.useDeprecatedSynchronousErrorHandling&&qe&&(qe.errorThrown=!0,qe.error=e)}var gt=function(e){te(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,jt(n)&&n.add(r)):r.destination=aa,r}return t.create=function(n,r,o){return new et(n,r,o)},t.prototype.next=function(n){this.isStopped?_r(In(n),this):this._next(n)},t.prototype.error=function(n){this.isStopped?_r(Pn(n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?_r(Hn,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(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Le);var et=function(e){te(t,e);function t(n,r,o){var i=e.call(this)||this,a;if(_(n))a=n;else if(n){a=n.next,r=n.error,o=n.complete;var u;i&&Oe.useDeprecatedNextContext?(u=Object.create(n),u.unsubscribe=function(){return i.unsubscribe()}):u=n,a=a==null?void 0:a.bind(u),r=r==null?void 0:r.bind(u),o=o==null?void 0:o.bind(u)}return i.destination={next:a?Tr(a,i):ue,error:Tr(r!=null?r:Fn,i),complete:o?Tr(o,i):ue},i}return t}(gt);function Tr(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{e.apply(void 0,W([],F(n)))}catch(o){Oe.useDeprecatedSynchronousErrorHandling?$n(o):Ut(o)}}}function Fn(e){throw e}function _r(e,t){var n=Oe.onStoppedNotification;n&&Xe.setTimeout(function(){return n(e,t)})}var aa={closed:!0,next:ue,error:Fn,complete:ue};var tt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function be(e){return e}function jn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Mr(e)}function Mr(e){return e.length===0?be:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var I=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,i=ca(t)?t:new et(t,n,r);return Ze(function(){var a=o,u=a.operator,s=a.source;i.add(u?u.call(i,s):s?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Un(n),new n(function(o,i){var a=new et({next:function(u){try{t(u)}catch(s){i(s),a.unsubscribe()}},error:i,complete:o});r.subscribe(a)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[tt]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Mr(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Un(t),new t(function(r,o){var i;n.subscribe(function(a){return i=a},function(a){return o(a)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function Un(e){var t;return(t=e!=null?e:Oe.Promise)!==null&&t!==void 0?t:Promise}function sa(e){return e&&_(e.next)&&_(e.error)&&_(e.complete)}function ca(e){return e&&e instanceof gt||sa(e)&&jt(e)}function ua(e){return _(e==null?void 0:e.lift)}function y(e){return function(t){if(ua(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var E=function(e){te(t,e);function t(n,r,o,i,a){var u=e.call(this,n)||this;return u.onFinalize=a,u._next=r?function(s){try{r(s)}catch(c){n.error(c)}}:e.prototype._next,u._error=i?function(s){try{i(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=o?function(){try{o()}catch(s){n.error(s)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n,r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))},t}(gt);var rt={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=rt.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var o=t(function(i){n=void 0,e(i)});return new Le(function(){return n==null?void 0:n(o)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=rt.delegate;return((n==null?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,W([],F(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=rt.delegate;return((n==null?void 0:n.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,W([],F(e)))},delegate:void 0};var Wn=$t(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var w=function(e){te(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Dn(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Wn},t.prototype.next=function(n){var r=this;Ze(function(){var o,i;if(r._throwIfClosed(),!r.isStopped){var a=r.observers.slice();try{for(var u=he(a),s=u.next();!s.done;s=u.next()){var c=s.value;c.next(n)}}catch(f){o={error:f}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;Ze(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;Ze(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=r.hasError,i=r.isStopped,a=r.observers;return o||i?Er:(a.push(n),new Le(function(){return Ie(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,i=r.thrownError,a=r.isStopped;o?n.error(i):a&&n.complete()},t.prototype.asObservable=function(){var n=new I;return n.source=this,n},t.create=function(n,r){return new Dn(n,r)},t}(I);var Dn=function(e){te(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:Er},t}(w);var yt={now:function(){return(yt.delegate||Date).now()},delegate:void 0};var xt=function(e){te(t,e);function t(n,r,o){n===void 0&&(n=1/0),r===void 0&&(r=1/0),o===void 0&&(o=yt);var i=e.call(this)||this;return i._bufferSize=n,i._windowTime=r,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,n),i._windowTime=Math.max(1,r),i}return t.prototype.next=function(n){var r=this,o=r.isStopped,i=r._buffer,a=r._infiniteTimeWindow,u=r._timestampProvider,s=r._windowTime;o||(i.push(n),!a&&i.push(u.now()+s)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),o=this,i=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),s=0;s<u.length&&!n.closed;s+=i?1:2)n.next(u[s]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,o=n._timestampProvider,i=n._buffer,a=n._infiniteTimeWindow,u=(a?1:2)*r;if(r<1/0&&u<i.length&&i.splice(0,i.length-u),!a){for(var s=o.now(),c=0,f=1;f<i.length&&i[f]<=s;f+=2)c=f;c&&i.splice(0,c+1)}},t}(w);var Vn=function(e){te(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return r===void 0&&(r=0),this},t}(Le);var wt={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=wt.delegate;return((n==null?void 0:n.setInterval)||setInterval).apply(void 0,W([],F(e)))},clearInterval:function(e){var t=wt.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var Wt=function(e){te(t,e);function t(n,r){var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o.pending=!1,o}return t.prototype.schedule=function(n,r){if(r===void 0&&(r=0),this.closed)return this;this.state=n;var o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,r)),this.pending=!0,this.delay=r,this.id=this.id||this.requestAsyncId(i,this.id,r),this},t.prototype.requestAsyncId=function(n,r,o){return o===void 0&&(o=0),wt.setInterval(n.flush.bind(n,this),o)},t.prototype.recycleAsyncId=function(n,r,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return r;wt.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(n,r);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var o=!1,i;try{this.work(n)}catch(a){o=!0,i=a||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,o=n.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ie(i,this),r!=null&&(this.id=this.recycleAsyncId(o,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Vn);var Lr=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=yt.now,e}();var Dt=function(e){te(t,e);function t(n,r){r===void 0&&(r=Lr.now);var o=e.call(this,n,r)||this;return o.actions=[],o._active=!1,o._scheduled=void 0,o}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var o;this._active=!0;do if(o=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,o){for(;n=r.shift();)n.unsubscribe();throw o}},t}(Lr);var Ae=new Dt(Wt),St=Ae;var zn=function(e){te(t,e);function t(n,r){var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o}return t.prototype.requestAsyncId=function(n,r,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,n,r,o):(n.actions.push(this),n._scheduled||(n._scheduled=rt.requestAnimationFrame(function(){return n.flush(void 0)})))},t.prototype.recycleAsyncId=function(n,r,o){if(o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,o);n.actions.some(function(i){return i.id===r})||(rt.cancelAnimationFrame(r),n._scheduled=void 0)},t}(Wt);var Nn=function(e){te(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var o=this.actions,i;n=n||o.shift();do if(i=n.execute(n.state,n.delay))break;while((n=o[0])&&n.id===r&&o.shift());if(this._active=!1,i){for(;(n=o[0])&&n.id===r&&o.shift();)n.unsubscribe();throw i}},t}(Dt);var ve=new Nn(zn);var D=new I(function(e){return e.complete()});function Vt(e){return e&&_(e.schedule)}function Ar(e){return e[e.length-1]}function Ue(e){return _(Ar(e))?e.pop():void 0}function xe(e){return Vt(Ar(e))?e.pop():void 0}function zt(e,t){return typeof Ar(e)=="number"?e.pop():t}var nt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Nt(e){return _(e==null?void 0:e.then)}function qt(e){return _(e[tt])}function Kt(e){return Symbol.asyncIterator&&_(e==null?void 0:e[Symbol.asyncIterator])}function Qt(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 fa(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Yt=fa();function Bt(e){return _(e==null?void 0:e[Yt])}function Gt(e){return Cn(this,arguments,function(){var n,r,o,i;return Pt(this,function(a){switch(a.label){case 0:n=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,It(n.read())];case 3:return r=a.sent(),o=r.value,i=r.done,i?[4,It(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,It(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function Jt(e){return _(e==null?void 0:e.getReader)}function z(e){if(e instanceof I)return e;if(e!=null){if(qt(e))return pa(e);if(nt(e))return la(e);if(Nt(e))return ma(e);if(Kt(e))return qn(e);if(Bt(e))return da(e);if(Jt(e))return ha(e)}throw Qt(e)}function pa(e){return new I(function(t){var n=e[tt]();if(_(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function la(e){return new I(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function ma(e){return new I(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Ut)})}function da(e){return new I(function(t){var n,r;try{for(var o=he(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}t.complete()})}function qn(e){return new I(function(t){ba(e,t).catch(function(n){return t.error(n)})})}function ha(e){return qn(Gt(e))}function ba(e,t){var n,r,o,i;return An(this,void 0,void 0,function(){var a,u;return Pt(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=kn(e),s.label=1;case 1:return[4,n.next()];case 2:if(r=s.sent(),!!r.done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=s.sent(),o={error:u},[3,11];case 6:return s.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function le(e,t,n,r,o){r===void 0&&(r=0),o===void 0&&(o=!1);var i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function $e(e,t){return t===void 0&&(t=0),y(function(n,r){n.subscribe(new E(r,function(o){return le(r,e,function(){return r.next(o)},t)},function(){return le(r,e,function(){return r.complete()},t)},function(o){return le(r,e,function(){return r.error(o)},t)}))})}function Xt(e,t){return t===void 0&&(t=0),y(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function Kn(e,t){return z(e).pipe(Xt(t),$e(t))}function Qn(e,t){return z(e).pipe(Xt(t),$e(t))}function Yn(e,t){return new I(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Bn(e,t){return new I(function(n){var r;return le(n,t,function(){r=e[Yt](),le(n,t,function(){var o,i,a;try{o=r.next(),i=o.value,a=o.done}catch(u){n.error(u);return}a?n.complete():n.next(i)},0,!0)}),function(){return _(r==null?void 0:r.return)&&r.return()}})}function Zt(e,t){if(!e)throw new Error("Iterable cannot be null");return new I(function(n){le(n,t,function(){var r=e[Symbol.asyncIterator]();le(n,t,function(){r.next().then(function(o){o.done?n.complete():n.next(o.value)})},0,!0)})})}function Gn(e,t){return Zt(Gt(e),t)}function Jn(e,t){if(e!=null){if(qt(e))return Kn(e,t);if(nt(e))return Yn(e,t);if(Nt(e))return Qn(e,t);if(Kt(e))return Zt(e,t);if(Bt(e))return Bn(e,t);if(Jt(e))return Gn(e,t)}throw Qt(e)}function ae(e,t){return t?Jn(e,t):z(e)}function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=xe(e);return ae(e,n)}function Cr(e,t){var n=_(e)?e:function(){return e},r=function(o){return o.error(n())};return new I(t?function(o){return t.schedule(r,0,o)}:r)}function Xn(e){return e instanceof Date&&!isNaN(e)}function m(e,t){return y(function(n,r){var o=0;n.subscribe(new E(r,function(i){r.next(e.call(t,i,o++))}))})}var va=Array.isArray;function ga(e,t){return va(t)?e.apply(void 0,W([],F(t))):e(t)}function We(e){return m(function(t){return ga(e,t)})}var ya=Array.isArray,xa=Object.getPrototypeOf,wa=Object.prototype,Sa=Object.keys;function Zn(e){if(e.length===1){var t=e[0];if(ya(t))return{args:t,keys:null};if(Ea(t)){var n=Sa(t);return{args:n.map(function(r){return t[r]}),keys:n}}}return{args:e,keys:null}}function Ea(e){return e&&typeof e=="object"&&xa(e)===wa}function eo(e,t){return e.reduce(function(n,r,o){return n[r]=t[o],n},{})}function Q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=xe(e),r=Ue(e),o=Zn(e),i=o.args,a=o.keys;if(i.length===0)return ae([],n);var u=new I(kr(i,n,a?function(s){return eo(a,s)}:be));return r?u.pipe(We(r)):u}function kr(e,t,n){return n===void 0&&(n=be),function(r){to(t,function(){for(var o=e.length,i=new Array(o),a=o,u=o,s=function(f){to(t,function(){var p=ae(e[f],t),l=!1;p.subscribe(new E(r,function(d){i[f]=d,l||(l=!0,u--),u||r.next(n(i.slice()))},function(){--a||r.complete()}))},r)},c=0;c<o;c++)s(c)},r)}}function to(e,t,n){e?le(n,e,t):t()}function ro(e,t,n,r,o,i,a,u){var s=[],c=0,f=0,p=!1,l=function(){p&&!s.length&&!c&&t.complete()},d=function(b){return c<r?h(b):s.push(b)},h=function(b){i&&t.next(b),c++;var j=!1;z(n(b,f++)).subscribe(new E(t,function(B){o==null||o(B),i?d(B):t.next(B)},function(){j=!0},void 0,function(){if(j)try{c--;for(var B=function(){var $=s.shift();a?le(t,a,function(){return h($)}):h($)};s.length&&c<r;)B();l()}catch($){t.error($)}}))};return e.subscribe(new E(t,d,function(){p=!0,l()})),function(){u==null||u()}}function fe(e,t,n){return n===void 0&&(n=1/0),_(t)?fe(function(r,o){return m(function(i,a){return t(r,i,o,a)})(z(e(r,o)))},n):(typeof t=="number"&&(n=t),y(function(r,o){return ro(r,o,e,n)}))}function ot(e){return e===void 0&&(e=1/0),fe(be,e)}function no(){return ot(1)}function Ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return no()(ae(e,xe(e)))}function H(e){return new I(function(t){z(e()).subscribe(t)})}var Oa=["addListener","removeListener"],Ta=["addEventListener","removeEventListener"],_a=["on","off"];function g(e,t,n,r){if(_(n)&&(r=n,n=void 0),r)return g(e,t,n).pipe(We(r));var o=F(Aa(e)?Ta.map(function(u){return function(s){return e[u](t,s,n)}}):Ma(e)?Oa.map(oo(e,t)):La(e)?_a.map(oo(e,t)):[],2),i=o[0],a=o[1];if(!i&&nt(e))return fe(function(u){return g(u,t,n)})(z(e));if(!i)throw new TypeError("Invalid event target");return new I(function(u){var s=function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return u.next(1<c.length?c:c[0])};return i(s),function(){return a(s)}})}function oo(e,t){return function(n){return function(r){return e[n](t,r)}}}function Ma(e){return _(e.addListener)&&_(e.removeListener)}function La(e){return _(e.on)&&_(e.off)}function Aa(e){return _(e.addEventListener)&&_(e.removeEventListener)}function er(e,t,n){return n?er(e,t).pipe(We(n)):new I(function(r){var o=function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return r.next(a.length===1?a[0]:a)},i=e(o);return _(t)?function(){return t(o,i)}:void 0})}function it(e,t,n){e===void 0&&(e=0),n===void 0&&(n=St);var r=-1;return t!=null&&(Vt(t)?n=t:r=t),new I(function(o){var i=Xn(e)?+e-n.now():e;i<0&&(i=0);var a=0;return n.schedule(function(){o.closed||(o.next(a++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=xe(e),r=zt(e,1/0),o=e;return o.length?o.length===1?z(o[0]):ot(r)(ae(o,n)):D}var we=new I(ue);var Ca=Array.isArray;function at(e){return e.length===1&&Ca(e[0])?e[0]:e}function T(e,t){return y(function(n,r){var o=0;n.subscribe(new E(r,function(i){return e.call(t,i,o++)&&r.next(i)}))})}function Qe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ue(e),r=at(e);return r.length?new I(function(o){var i=r.map(function(){return[]}),a=r.map(function(){return!1});o.add(function(){i=a=null});for(var u=function(c){z(r[c]).subscribe(new E(o,function(f){if(i[c].push(f),i.every(function(l){return l.length})){var p=i.map(function(l){return l.shift()});o.next(n?n.apply(void 0,W([],F(p))):p),i.some(function(l,d){return!l.length&&a[d]})&&o.complete()}},function(){a[c]=!0,!i[c].length&&o.complete()}))},s=0;!o.closed&&s<r.length;s++)u(s);return function(){i=a=null}}):D}function io(e){return y(function(t,n){var r=!1,o=null,i=null,a=!1,u=function(){if(i==null||i.unsubscribe(),i=null,r){r=!1;var c=o;o=null,n.next(c)}a&&n.complete()},s=function(){i=null,a&&n.complete()};t.subscribe(new E(n,function(c){r=!0,o=c,i||z(e(c)).subscribe(i=new E(n,u,s))},function(){a=!0,(!r||!i||i.closed)&&n.complete()}))})}function Te(e,t){return t===void 0&&(t=St),io(function(){return it(e,t)})}function _e(e,t){return t===void 0&&(t=null),t=t!=null?t:e,y(function(n,r){var o=[],i=0;n.subscribe(new E(r,function(a){var u,s,c,f,p=null;i++%t===0&&o.push([]);try{for(var l=he(o),d=l.next();!d.done;d=l.next()){var h=d.value;h.push(a),e<=h.length&&(p=p!=null?p:[],p.push(h))}}catch(B){u={error:B}}finally{try{d&&!d.done&&(s=l.return)&&s.call(l)}finally{if(u)throw u.error}}if(p)try{for(var b=he(p),j=b.next();!j.done;j=b.next()){var h=j.value;Ie(o,h),r.next(h)}}catch(B){c={error:B}}finally{try{j&&!j.done&&(f=b.return)&&f.call(b)}finally{if(c)throw c.error}}},function(){var a,u;try{for(var s=he(o),c=s.next();!c.done;c=s.next()){var f=c.value;r.next(f)}}catch(p){a={error:p}}finally{try{c&&!c.done&&(u=s.return)&&u.call(s)}finally{if(a)throw a.error}}r.complete()},void 0,function(){o=null}))})}function De(e){return y(function(t,n){var r=null,o=!1,i;r=t.subscribe(new E(n,void 0,void 0,function(a){i=z(e(a,De(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function ao(e,t,n,r,o){return function(i,a){var u=n,s=t,c=0;i.subscribe(new E(a,function(f){var p=c++;s=u?e(s,f,p):(u=!0,f),r&&a.next(s)},o&&function(){u&&a.next(s),a.complete()}))}}function Rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ue(e);return n?jn(Rr.apply(void 0,W([],F(e))),We(n)):y(function(r,o){kr(W([r],F(at(e))))(o)})}function st(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Rr.apply(void 0,W([],F(e)))}function Hr(e,t){return _(t)?fe(e,t,1):fe(e,1)}function Fe(e,t){return t===void 0&&(t=Ae),y(function(n,r){var o=null,i=null,a=null,u=function(){if(o){o.unsubscribe(),o=null;var c=i;i=null,r.next(c)}};function s(){var c=a+e,f=t.now();if(f<c){o=this.schedule(void 0,c-f),r.add(o);return}u()}n.subscribe(new E(r,function(c){i=c,a=t.now(),o||(o=t.schedule(s,e),r.add(o))},function(){u(),r.complete()},void 0,function(){i=o=null}))})}function je(e){return y(function(t,n){var r=!1;t.subscribe(new E(n,function(o){r=!0,n.next(o)},function(){r||n.next(e),n.complete()}))})}function se(e){return e<=0?function(){return D}:y(function(t,n){var r=0;t.subscribe(new E(n,function(o){++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function so(){return y(function(e,t){e.subscribe(new E(t,ue))})}function J(e){return m(function(){return e})}function Pr(e,t){return t?function(n){return Ke(t.pipe(se(1),so()),n.pipe(Pr(e)))}:fe(function(n,r){return e(n,r).pipe(se(1),J(n))})}function Me(e,t){t===void 0&&(t=Ae);var n=it(e,t);return Pr(function(){return n})}function Y(e,t){return t===void 0&&(t=be),e=e!=null?e:ka,y(function(n,r){var o,i=!0;n.subscribe(new E(r,function(a){var u=t(a);(i||!e(o,u))&&(i=!1,o=u,r.next(a))}))})}function ka(e,t){return e===t}function G(e,t){return Y(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}function Ir(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return Ke(n,C.apply(void 0,W([],F(e))))}}function L(e){return y(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}function ne(e){return e<=0?function(){return D}:y(function(t,n){var r=[];t.subscribe(new E(n,function(o){r.push(o),e<r.length&&r.shift()},function(){var o,i;try{for(var a=he(r),u=a.next();!u.done;u=a.next()){var s=u.value;n.next(s)}}catch(c){o={error:c}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}n.complete()},void 0,function(){r=null}))})}function co(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=xe(e),r=zt(e,1/0);return e=at(e),y(function(o,i){ot(r)(ae(W([o],F(e)),n)).subscribe(i)})}function Ye(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return co.apply(void 0,W([],F(e)))}function ct(e){return y(function(t,n){var r=!1,o=null;t.subscribe(new E(n,function(a){r=!0,o=a}));var i=function(){if(r){r=!1;var a=o;o=null,n.next(a)}};e.subscribe(new E(n,i,ue))})}function $r(e,t){return y(ao(e,t,arguments.length>=2,!0))}function pe(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new w}:t,r=e.resetOnError,o=r===void 0?!0:r,i=e.resetOnComplete,a=i===void 0?!0:i,u=e.resetOnRefCountZero,s=u===void 0?!0:u;return function(c){var f=null,p=null,l=null,d=0,h=!1,b=!1,j=function(){p==null||p.unsubscribe(),p=null},B=function(){j(),f=l=null,h=b=!1},$=function(){var M=f;B(),M==null||M.unsubscribe()};return y(function(M,He){d++,!b&&!h&&j();var Pe=l=l!=null?l:n();He.add(function(){d--,d===0&&!b&&!h&&(p=Fr($,s))}),Pe.subscribe(He),f||(f=new et({next:function(Be){return Pe.next(Be)},error:function(Be){b=!0,j(),p=Fr(B,o,Be),Pe.error(Be)},complete:function(){h=!0,j(),p=Fr(B,a),Pe.complete()}}),ae(M).subscribe(f))})(c)}}function Fr(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return t===!0?(e(),null):t===!1?null:t.apply(void 0,W([],F(n))).pipe(se(1)).subscribe(function(){return e()})}function X(e,t,n){var r,o,i,a=!1;return e&&typeof e=="object"?(i=(r=e.bufferSize)!==null&&r!==void 0?r:1/0,t=(o=e.windowTime)!==null&&o!==void 0?o:1/0,a=!!e.refCount,n=e.scheduler):i=e!=null?e:1/0,pe({connector:function(){return new xt(i,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function ut(e){return T(function(t,n){return e<=n})}function Et(e){return y(function(t,n){var r=!1,o=new E(n,function(){o==null||o.unsubscribe(),r=!0},ue);z(e).subscribe(o),t.subscribe(new E(n,function(i){return r&&n.next(i)}))})}function N(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=xe(e);return y(function(r,o){(n?Ke(e,r,n):Ke(e,r)).subscribe(o)})}function O(e,t){return y(function(n,r){var o=null,i=0,a=!1,u=function(){return a&&!o&&r.complete()};n.subscribe(new E(r,function(s){o==null||o.unsubscribe();var c=0,f=i++;z(e(s,f)).subscribe(o=new E(r,function(p){return r.next(t?t(s,p,f,c++):p)},function(){o=null,u()}))},function(){a=!0,u()}))})}function Ot(e,t){return _(t)?O(function(){return e},t):O(function(){return e})}function oe(e){return y(function(t,n){z(e).subscribe(new E(n,function(){return n.complete()},ue)),!n.closed&&t.subscribe(n)})}function jr(e,t){return t===void 0&&(t=!1),y(function(n,r){var o=0;n.subscribe(new E(r,function(i){var a=e(i,o++);(a||t)&&r.next(i),!a&&r.complete()}))})}function S(e,t,n){var r=_(e)||t||n?{next:e,error:t,complete:n}:e;return r?y(function(o,i){var a;(a=r.subscribe)===null||a===void 0||a.call(r);var u=!0;o.subscribe(new E(i,function(s){var c;(c=r.next)===null||c===void 0||c.call(r,s),i.next(s)},function(){var s;u=!1,(s=r.complete)===null||s===void 0||s.call(r),i.complete()},function(s){var c;u=!1,(c=r.error)===null||c===void 0||c.call(r,s),i.error(s)},function(){var s,c;u&&((s=r.unsubscribe)===null||s===void 0||s.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):be}var Ur={leading:!0,trailing:!1};function Tt(e,t){return t===void 0&&(t=Ur),y(function(n,r){var o=t.leading,i=t.trailing,a=!1,u=null,s=null,c=!1,f=function(){s==null||s.unsubscribe(),s=null,i&&(d(),c&&r.complete())},p=function(){s=null,c&&r.complete()},l=function(h){return s=z(e(h)).subscribe(new E(r,f,p))},d=function(){if(a){a=!1;var h=u;u=null,r.next(h),!c&&l(h)}};n.subscribe(new E(r,function(h){a=!0,u=h,!(s&&!s.closed)&&(o?d():l(h))},function(){c=!0,!(i&&a&&s&&!s.closed)&&r.complete()}))})}function Wr(e,t,n){t===void 0&&(t=Ae),n===void 0&&(n=Ur);var r=it(e,t);return Tt(function(){return r},n)}function ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ue(e);return y(function(r,o){for(var i=e.length,a=new Array(i),u=e.map(function(){return!1}),s=!1,c=function(p){z(e[p]).subscribe(new E(o,function(l){a[p]=l,!s&&!u[p]&&(u[p]=!0,(s=u.every(be))&&(u=null))},ue))},f=0;f<i;f++)c(f);r.subscribe(new E(o,function(p){if(s){var l=W([p],F(a));o.next(n?n.apply(void 0,W([],F(l))):l)}}))})}function uo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return y(function(n,r){Qe.apply(void 0,W([n],F(e))).subscribe(r)})}function Dr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return uo.apply(void 0,W([],F(e)))}function fo(){let e=new xt(1);return g(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function q(e,t=document){return Array.from(t.querySelectorAll(e))}function V(e,t=document){let n=ce(e,t);if(typeof n=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return n}function ce(e,t=document){return t.querySelector(e)||void 0}function Ce(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function tr(e){return k(g(document.body,"focusin"),g(document.body,"focusout")).pipe(Fe(1),m(()=>{let t=Ce();return typeof t!="undefined"?e.contains(t):!1}),N(e===Ce()),Y())}function Ve(e){return{x:e.offsetLeft,y:e.offsetTop}}function po(e){return k(g(window,"load"),g(window,"resize")).pipe(Te(0,ve),m(()=>Ve(e)),N(Ve(e)))}function lo(e){return{x:e.scrollLeft,y:e.scrollTop}}function rr(e){return k(g(e,"scroll"),g(window,"resize")).pipe(Te(0,ve),m(()=>lo(e)),N(lo(e)))}var mo=function(){if(typeof Map!="undefined")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),Vr=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,nr=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Ra=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(nr):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Ha=2;function Pa(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&u()}function a(){Ra(i)}function u(){var s=Date.now();if(n){if(s-o<Ha)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=s}return u}var Ia=20,$a=["top","right","bottom","left","width","height","size","weight"],Fa=typeof MutationObserver!="undefined",ja=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Pa(this.refresh.bind(this),Ia)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Vr||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Fa?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Vr||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=$a.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ho=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ft=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||nr},bo=ir(0,0,0,0);function or(e){return parseFloat(e)||0}function vo(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+or(i)},0)}function Ua(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=or(a)}return n}function Wa(e){var t=e.getBBox();return ir(0,0,t.width,t.height)}function Da(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return bo;var r=ft(e).getComputedStyle(e),o=Ua(r),i=o.left+o.right,a=o.top+o.bottom,u=or(r.width),s=or(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+i)!==t&&(u-=vo(r,"left","right")+i),Math.round(s+a)!==n&&(s-=vo(r,"top","bottom")+a)),!za(e)){var c=Math.round(u+i)-t,f=Math.round(s+a)-n;Math.abs(c)!==1&&(u-=c),Math.abs(f)!==1&&(s-=f)}return ir(o.left,o.top,u,s)}var Va=function(){return typeof SVGGraphicsElement!="undefined"?function(e){return e instanceof ft(e).SVGGraphicsElement}:function(e){return e instanceof ft(e).SVGElement&&typeof e.getBBox=="function"}}();function za(e){return e===ft(e).document.documentElement}function Na(e){return Vr?Va(e)?Wa(e):Da(e):bo}function qa(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return ho(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function ir(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Ka=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ir(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Na(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Qa=function(){function e(t,n){var r=qa(n);ho(this,{target:t,contentRect:r})}return e}(),Ya=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new mo,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof ft(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Ka(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof ft(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;!n.has(t)||(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(!!this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Qa(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),go=typeof WeakMap!="undefined"?new WeakMap:new mo,yo=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ja.getInstance(),r=new Ya(t,n,this);go.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){yo.prototype[e]=function(){var t;return(t=go.get(this))[e].apply(t,arguments)}});var Ba=function(){return typeof nr.ResizeObserver!="undefined"?nr.ResizeObserver:yo}(),xo=Ba;var wo=new w,Ga=H(()=>C(new xo(e=>{for(let t of e)wo.next(t)}))).pipe(O(e=>k(we,C(e)).pipe(L(()=>e.disconnect()))),X(1));function me(e){return{width:e.offsetWidth,height:e.offsetHeight}}function ye(e){return Ga.pipe(S(t=>t.observe(e)),O(t=>wo.pipe(T(({target:n})=>n===e),L(()=>t.unobserve(e)),m(()=>me(e)))),N(me(e)))}function _t(e){return{width:e.scrollWidth,height:e.scrollHeight}}function So(e){let t=e.parentElement;for(;t&&t!==e.offsetParent;){let n=me(t);if(_t(t).height>n.height)return t;t=t.parentElement}}var Ja=new w,hv=H(()=>C(new IntersectionObserver(e=>{for(let t of e)Ja.next(t)},{threshold:1}))).pipe(O(e=>k(we,C(e)).pipe(L(()=>e.disconnect()))),X(1));function Eo(e,t=16){return rr(e).pipe(m(({y:n})=>{let r=me(e),o=_t(e);return n>=o.height-r.height-t}),Y())}var ar={drawer:V("[data-md-toggle=drawer]"),search:V("[data-md-toggle=search]")};function Oo(e){return ar[e].checked}function ze(e,t){ar[e].checked!==t&&ar[e].click()}function sr(e){let t=ar[e];return g(t,"change").pipe(m(()=>t.checked),N(t.checked))}function Xa(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 To(){return g(window,"keydown").pipe(T(e=>!(e.metaKey||e.ctrlKey)),m(e=>({mode:Oo("search")?"search":"global",type:e.key,claim(){e.preventDefault(),e.stopPropagation()}})),T(({mode:e,type:t})=>{if(e==="global"){let n=Ce();if(typeof n!="undefined")return!Xa(n,t)}return!0}),pe())}function Se(){return new URL(location.href)}function cr(e){location.href=e.href}function _o(){return new w}function Mo(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 n of t)Mo(e,n)}function A(e,t,...n){let r=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?r.setAttribute(o,t[o]):r.setAttribute(o,""));for(let o of n)Mo(r,o);return r}function ur(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function zr(e,t,n){t=new RegExp(t,"g");let r,o=0;do{r=t.exec(e);let i=r?r.index:e.length;if(o<i&&n([o,i]),r){let[a]=r;o=r.index+a.length,a.length===0&&(t.lastIndex=r.index+1)}}while(r)}function Lo(){return location.hash.substring(1)}function Ao(e){let t=A("a",{href:e});t.addEventListener("click",n=>n.stopPropagation()),t.click()}function Za(){return g(window,"hashchange").pipe(m(Lo),N(Lo()),T(e=>e.length>0),X(1))}function Co(){return Za().pipe(m(e=>ce(`[id="${e}"]`)),T(e=>typeof e!="undefined"))}function Nr(e){let t=matchMedia(e);return er(n=>t.addListener(()=>n(t.matches))).pipe(N(t.matches))}function ko(){let e=matchMedia("print");return k(g(window,"beforeprint").pipe(J(!0)),g(window,"afterprint").pipe(J(!1))).pipe(N(e.matches))}function qr(e,t){return e.pipe(O(n=>n?t():D))}function pt(e,t={credentials:"same-origin"}){return ae(fetch(`${e}`,t)).pipe(T(n=>n.status===200),De(()=>D))}function ke(e,t){return pt(e,t).pipe(O(n=>n.json()),X(1))}function Ro(e,t){let n=new DOMParser;return pt(e,t).pipe(O(r=>r.text()),m(r=>n.parseFromString(r,"text/xml")),X(1))}function Ho(e){let t=A("script",{src:e});return H(()=>(document.head.appendChild(t),k(g(t,"load"),g(t,"error").pipe(O(()=>Cr(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(J(void 0),L(()=>document.head.removeChild(t)),se(1))))}function Po(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function Io(){return k(g(window,"scroll",{passive:!0}),g(window,"resize",{passive:!0})).pipe(m(Po),N(Po()))}function $o(){return{width:innerWidth,height:innerHeight}}function Fo(){return g(window,"resize",{passive:!0}).pipe(m($o),N($o()))}function jo(){return Q([Io(),Fo()]).pipe(m(([e,t])=>({offset:e,size:t})),X(1))}function fr(e,{viewport$:t,header$:n}){let r=t.pipe(G("size")),o=Q([r,n]).pipe(m(()=>Ve(e)));return Q([n,t,o]).pipe(m(([{height:i},{offset:a,size:u},{x:s,y:c}])=>({offset:{x:a.x-s,y:a.y-c+i},size:u})))}function Uo(e,{tx$:t}){let n=g(e,"message").pipe(m(({data:r})=>r));return t.pipe(Tt(()=>n,{leading:!0,trailing:!0}),S(r=>e.postMessage(r)),Ot(n),pe())}var es=V("#__config"),lt=JSON.parse(es.textContent);lt.base=`${new URL(lt.base,Se())}`;function de(){return lt}function Z(e){return lt.features.includes(e)}function ee(e,t){return typeof t!="undefined"?lt.translations[e].replace("#",t.toString()):lt.translations[e]}function Re(e,t=document){return V(`[data-md-component=${e}]`,t)}function re(e,t=document){return q(`[data-md-component=${e}]`,t)}function ts(e){let t=V(".md-typeset > :first-child",e);return g(t,"click",{once:!0}).pipe(J(V(".md-typeset",e)),m(n=>({hash:__md_hash(n.innerHTML)})))}function Wo(e){return!Z("announce.dismiss")||!e.childElementCount?D:H(()=>{let t=new w;return t.pipe(N({hash:__md_get("__announce")})).subscribe(({hash:n})=>{var r;n&&n===((r=__md_get("__announce"))!=null?r:n)&&(e.hidden=!0,__md_set("__announce",n))}),ts(e).pipe(S(n=>t.next(n)),L(()=>t.complete()),m(n=>P({ref:e},n)))})}function rs(e,{target$:t}){return t.pipe(m(n=>({hidden:n!==e})))}function Do(e,t){let n=new w;return n.subscribe(({hidden:r})=>{e.hidden=r}),rs(e,t).pipe(S(r=>n.next(r)),L(()=>n.complete()),m(r=>P({ref:e},r)))}function ns(e,t){let n=H(()=>Q([po(e),rr(t)])).pipe(m(([{x:r,y:o},i])=>{let{width:a,height:u}=me(e);return{x:r-i.x+a/2,y:o-i.y+u/2}}));return tr(e).pipe(O(r=>n.pipe(m(o=>({active:r,offset:o})),se(+!r||1/0))))}function Vo(e,t,{target$:n}){let[r,o]=Array.from(e.children);return H(()=>{let i=new w;return i.subscribe({next({offset:a}){e.style.setProperty("--md-tooltip-x",`${a.x}px`),e.style.setProperty("--md-tooltip-y",`${a.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),k(i.pipe(T(({active:a})=>a)),i.pipe(Fe(250),T(({active:a})=>!a))).subscribe({next({active:a}){a?e.prepend(r):r.remove()},complete(){e.prepend(r)}}),i.pipe(Te(0,ve)).subscribe(({active:a})=>{r.classList.toggle("md-tooltip--active",a)}),i.pipe(Wr(500,ve),T(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:a})=>a)).subscribe({next(a){a?e.style.setProperty("--md-tooltip-0",`${-a}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),g(o,"click").pipe(oe(i.pipe(ne(1))),T(a=>!(a.metaKey||a.ctrlKey))).subscribe(a=>a.preventDefault()),g(o,"mousedown").pipe(oe(i.pipe(ne(1))),ge(i)).subscribe(([a,{active:u}])=>{var s;if(a.button!==0||a.metaKey||a.ctrlKey)a.preventDefault();else if(u){a.preventDefault();let c=e.parentElement.closest(".md-annotation");c instanceof HTMLElement?c.focus():(s=Ce())==null||s.blur()}}),n.pipe(oe(i.pipe(ne(1))),T(a=>a===r),Me(125)).subscribe(()=>e.focus()),ns(e,t).pipe(S(a=>i.next(a)),L(()=>i.complete()),m(a=>P({ref:e},a)))})}function zo(e){return A("div",{class:"md-tooltip",id:e},A("div",{class:"md-tooltip__inner md-typeset"}))}function No(e,t){t=t?`${t}_annotation_${e}`:void 0;let n=t?`#${t}`:void 0;return A("aside",{class:"md-annotation",tabIndex:0},zo(t),A("a",{href:n,class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}function qo(e){return A("button",{class:"md-clipboard md-icon",title:ee("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}function Kr(e,t){let n=t&2,r=t&1,o=Object.keys(e.terms).filter(a=>!e.terms[a]).reduce((a,u)=>[...a,A("del",null,u)," "],[]).slice(0,-1),i=new URL(e.location);return Z("search.highlight")&&i.searchParams.set("h",Object.entries(e.terms).filter(([,a])=>a).reduce((a,[u])=>`${a} ${u}`.trim(),"")),A("a",{href:`${i}`,class:"md-search-result__link",tabIndex:-1},A("article",{class:"md-search-result__article md-typeset","data-md-score":e.score.toFixed(2)},n>0&&A("div",{class:"md-search-result__icon md-icon"}),n>0&&A("h1",null,e.title),n<=0&&A("h2",null,e.title),r>0&&e.text.length>0&&e.text,e.tags&&e.tags.map(a=>A("span",{class:"md-tag"},a)),r>0&&o.length>0&&A("p",{class:"md-search-result__terms"},ee("search.result.term.missing"),": ",o)))}function Ko(e){let t=e[0].score,n=[...e],r=n.findIndex(c=>!c.location.includes("#")),[o]=n.splice(r,1),i=n.findIndex(c=>c.score<t);i===-1&&(i=n.length);let a=n.slice(0,i),u=n.slice(i),s=[Kr(o,2|+(!r&&i===0)),...a.map(c=>Kr(c,1)),...u.length?[A("details",{class:"md-search-result__more"},A("summary",{tabIndex:-1},A("div",null,u.length>0&&u.length===1?ee("search.result.more.one"):ee("search.result.more.other",u.length))),u.map(c=>Kr(c,1)))]:[]];return A("li",{class:"md-search-result__item"},s)}function Qo(e){return A("ul",{class:"md-source__facts"},Object.entries(e).map(([t,n])=>A("li",{class:`md-source__fact md-source__fact--${t}`},typeof n=="number"?ur(n):n)))}function Yo(e){return A("div",{class:"md-typeset__scrollwrap"},A("div",{class:"md-typeset__table"},e))}function os(e){let t=de(),n=new URL(`../${e.version}/`,t.base);return A("li",{class:"md-version__item"},A("a",{href:`${n}`,class:"md-version__link"},e.title))}function Bo(e,t){return A("div",{class:"md-version"},A("button",{class:"md-version__current","aria-label":ee("select.version.title")},t.title),A("ul",{class:"md-version__list"},e.map(os)))}function is(e){let t=[];for(let n of e.tagName==="CODE"?q(".c, .c1, .cm",e):[e]){let r=[],o=document.createNodeIterator(n,NodeFilter.SHOW_TEXT);for(let i=o.nextNode();i;i=o.nextNode())r.push(i);for(let i of r){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,u,s]=a;if(typeof s=="undefined"){let c=i.splitText(a.index);i=c.splitText(u.length),t.push(c)}else{i.textContent=u,t.push(i);break}}}}return t}function Go(e,t){t.append(...Array.from(e.childNodes))}function pr(e,t,{target$:n,print$:r}){let o=t.closest("[id]"),i=o==null?void 0:o.id,a=new Map;for(let u of is(t)){let[,s]=u.textContent.match(/\((\d+)\)/);ce(`li:nth-child(${s})`,e)&&(a.set(s,No(s,i)),u.replaceWith(a.get(s)))}return a.size===0?D:H(()=>{let u=new w,s=[];for(let[c,f]of a)s.push([V(".md-typeset",f),V(`li:nth-child(${c})`,e)]);return r.pipe(oe(u.pipe(ne(1)))).subscribe(c=>{e.hidden=!c;for(let[f,p]of s)c?Go(f,p):Go(p,f)}),k(...[...a].map(([,c])=>Vo(c,t,{target$:n}))).pipe(L(()=>u.complete()),pe())})}function Jo(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Jo(t)}}function Xo(e,t){return H(()=>{let n=Jo(e);return typeof n!="undefined"?pr(n,e,t):D})}var Zo=Ge(Yr());var as=0;function ei(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return ei(t)}}function ti(e){return ye(e).pipe(m(({width:t})=>({scrollable:_t(e).width>t})),G("scrollable"))}function ri(e,t){let{matches:n}=matchMedia("(hover)");return H(()=>{let r=new w;if(r.subscribe(({scrollable:i})=>{i&&n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}),Zo.default.isSupported()){let i=e.closest("pre");i.id=`__code_${++as}`,i.insertBefore(qo(i.id),e)}let o=e.closest([":not(td):not(.code) > .highlight",".highlighttable"].join(", "));if(o instanceof HTMLElement){let i=ei(o);if(typeof i!="undefined"&&(o.classList.contains("annotate")||Z("content.code.annotate"))){let a=pr(i,e,t);return ti(e).pipe(S(u=>r.next(u)),L(()=>r.complete()),m(u=>P({ref:e},u)),Ye(ye(o).pipe(oe(r.pipe(ne(1))),m(({width:u,height:s})=>u&&s),Y(),O(u=>u?a:D))))}}return ti(e).pipe(S(i=>r.next(i)),L(()=>r.complete()),m(i=>P({ref:e},i)))})}var Br,ss=0;function cs(){return typeof mermaid!="undefined"?C(void 0):Ho("https://unpkg.com/mermaid@8.13.3/dist/mermaid.min.js")}function us(){let e=V("[rel=preload][href*=mermaid]");return pt(e.href).pipe(O(t=>t.text()))}function ni(e){return e.classList.remove("mermaid"),Br||(Br=Qe([cs(),us()]).pipe(S(([,t])=>mermaid.initialize({startOnLoad:!1,themeCSS:t})),J(void 0),X(1))),Br.subscribe(()=>{e.classList.add("mermaid");let t=`__mermaid_${ss++}`,n=A("div",{class:"mermaid"});mermaid.mermaidAPI.render(t,e.innerText,r=>{let o=n.attachShadow({mode:"closed"});o.innerHTML=r,e.replaceWith(n)})}),Br.pipe(J({ref:e}))}function fs(e,{target$:t,print$:n}){let r=!0;return k(t.pipe(m(o=>o.closest("details:not([open])")),T(o=>e===o),J({action:"open",reveal:!0})),n.pipe(T(o=>o||!r),S(()=>r=e.open),m(o=>({action:o?"open":"close"}))))}function oi(e,t){return H(()=>{let n=new w;return n.subscribe(({action:r,reveal:o})=>{r==="open"?e.setAttribute("open",""):e.removeAttribute("open"),o&&e.scrollIntoView()}),fs(e,t).pipe(S(r=>n.next(r)),L(()=>n.complete()),m(r=>P({ref:e},r)))})}var ii=A("table");function ai(e){return e.replaceWith(ii),ii.replaceWith(Yo(e)),C({ref:e})}function ps(e){let t=q(":scope > input",e),n=t.find(r=>r.checked);return k(...t.map(r=>g(r,"change").pipe(J({active:V(`label[for=${r.id}]`)})))).pipe(N({active:V(`label[for=${n.id}]`)}))}function si(e){let t=V(".tabbed-labels",e);return H(()=>{let n=new w;return Q([n,ye(e)]).pipe(Te(1,ve),oe(n.pipe(ne(1)))).subscribe({next([{active:r}]){let o=Ve(r),{width:i}=me(r);e.style.setProperty("--md-indicator-x",`${o.x}px`),e.style.setProperty("--md-indicator-width",`${i}px`),t.scrollTo({behavior:"smooth",left:o.x})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),Z("content.tabs.link")&&n.pipe(ut(1)).subscribe(({active:r})=>{let o=r.innerText.trim();for(let a of q("[data-tabs]"))for(let u of q(":scope > input",a))if(V(`label[for=${u.id}]`).innerText.trim()===o){u.click();break}let i=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([o,...i])])}),ps(e).pipe(S(r=>n.next(r)),L(()=>n.complete()),m(r=>P({ref:e},r)))})}function ci(e,{target$:t,print$:n}){return k(...q(".annotate:not(.highlight, .highlighttable)",e).map(r=>Xo(r,{target$:t,print$:n})),...q("pre:not(.mermaid) > code",e).map(r=>ri(r,{target$:t,print$:n})),...q("pre.mermaid",e).map(r=>ni(r)),...q("table:not([class])",e).map(r=>ai(r)),...q("details",e).map(r=>oi(r,{target$:t,print$:n})),...q("[data-tabs]",e).map(r=>si(r)))}function ls(e,{alert$:t}){return t.pipe(O(n=>k(C(!0),C(!1).pipe(Me(2e3))).pipe(m(r=>({message:n,active:r})))))}function ui(e,t){let n=V(".md-typeset",e);return H(()=>{let r=new w;return r.subscribe(({message:o,active:i})=>{e.classList.toggle("md-dialog--active",i),n.textContent=o}),ls(e,t).pipe(S(o=>r.next(o)),L(()=>r.complete()),m(o=>P({ref:e},o)))})}function ms({viewport$:e}){if(!Z("header.autohide"))return C(!1);let t=e.pipe(m(({offset:{y:o}})=>o),_e(2,1),m(([o,i])=>[o<i,i]),G(0)),n=Q([e,t]).pipe(T(([{offset:o},[,i]])=>Math.abs(i-o.y)>100),m(([,[o]])=>o),Y()),r=sr("search");return Q([e,r]).pipe(m(([{offset:o},i])=>o.y>400&&!i),Y(),O(o=>o?n:C(!1)),N(!1))}function fi(e,t){return H(()=>{let n=getComputedStyle(e);return C(n.position==="sticky"||n.position==="-webkit-sticky")}).pipe(st(ye(e),ms(t)),m(([n,{height:r},o])=>({height:n?r:0,sticky:n,hidden:o})),Y((n,r)=>n.sticky===r.sticky&&n.height===r.height&&n.hidden===r.hidden),X(1))}function pi(e,{header$:t,main$:n}){return H(()=>{let r=new w;return r.pipe(G("active"),st(t)).subscribe(([{active:o},{hidden:i}])=>{e.classList.toggle("md-header--hidden",i),e.classList.toggle("md-header--shadow",o&&!i)}),n.subscribe(r),t.pipe(oe(r.pipe(ne(1))),m(o=>P({ref:e},o)))})}function ds(e,{viewport$:t,header$:n}){return fr(e,{viewport$:t,header$:n}).pipe(m(({offset:{y:r}})=>{let{height:o}=me(e);return{active:r>=o}}),G("active"))}function li(e,t){return H(()=>{let n=new w;n.subscribe(({active:o})=>{e.classList.toggle("md-header__title--active",o)});let r=ce("article h1");return typeof r=="undefined"?D:ds(r,t).pipe(S(o=>n.next(o)),L(()=>n.complete()),m(o=>P({ref:e},o)))})}function mi(e,{viewport$:t,header$:n}){let r=n.pipe(m(({height:i})=>i),Y()),o=r.pipe(O(()=>ye(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),G("bottom"))));return Q([r,o,t]).pipe(m(([i,{top:a,bottom:u},{offset:{y:s},size:{height:c}}])=>(c=Math.max(0,c-Math.max(0,a-s,i)-Math.max(0,c+s-u)),{offset:a-i,height:c,active:a-i<=s})),Y((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function hs(e){let t=__md_get("__palette")||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)};return C(...e).pipe(fe(n=>g(n,"change").pipe(J(n))),N(e[Math.max(0,t.index)]),m(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")}})),X(1))}function di(e){return H(()=>{let t=new w;t.subscribe(r=>{for(let[o,i]of Object.entries(r.color))document.body.setAttribute(`data-md-color-${o}`,i);for(let o=0;o<n.length;o++){let i=n[o].nextElementSibling;i instanceof HTMLElement&&(i.hidden=r.index!==o)}__md_set("__palette",r)});let n=q("input",e);return hs(n).pipe(S(r=>t.next(r)),L(()=>t.complete()),m(r=>P({ref:e},r)))})}var Gr=Ge(Yr());function bs(e){e.setAttribute("data-md-copying","");let t=e.innerText;return e.removeAttribute("data-md-copying"),t}function hi({alert$:e}){Gr.default.isSupported()&&new I(t=>{new Gr.default("[data-clipboard-target], [data-clipboard-text]",{text:n=>n.getAttribute("data-clipboard-text")||bs(V(n.getAttribute("data-clipboard-target")))}).on("success",n=>t.next(n))}).pipe(S(t=>{t.trigger.focus()}),J(ee("clipboard.copied"))).subscribe(e)}function vs(e){if(e.length<2)return[""];let[t,n]=[...e].sort((o,i)=>o.length-i.length).map(o=>o.replace(/[^/]+$/,"")),r=0;if(t===n)r=t.length;else for(;t.charCodeAt(r)===n.charCodeAt(r);)r++;return e.map(o=>o.replace(t.slice(0,r),""))}function lr(e){let t=__md_get("__sitemap",sessionStorage,e);if(t)return C(t);{let n=de();return Ro(new URL("sitemap.xml",e||n.base)).pipe(m(r=>vs(q("loc",r).map(o=>o.textContent))),je([]),S(r=>__md_set("__sitemap",r,sessionStorage,e)))}}function bi({document$:e,location$:t,viewport$:n}){let r=de();if(location.protocol==="file:")return;"scrollRestoration"in history&&(history.scrollRestoration="manual",g(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));let o=ce("link[rel=icon]");typeof o!="undefined"&&(o.href=o.href);let i=lr().pipe(m(c=>c.map(f=>`${new URL(f,r.base)}`)),O(c=>g(document.body,"click").pipe(T(f=>!f.metaKey&&!f.ctrlKey),O(f=>{if(f.target instanceof Element){let p=f.target.closest("a");if(p&&!p.target){let l=new URL(p.href);if(l.search="",l.hash="",l.pathname!==location.pathname&&c.includes(l.toString()))return f.preventDefault(),C({url:new URL(p.href)})}}return we}))),pe()),a=g(window,"popstate").pipe(T(c=>c.state!==null),m(c=>({url:new URL(location.href),offset:c.state})),pe());k(i,a).pipe(Y((c,f)=>c.url.href===f.url.href),m(({url:c})=>c)).subscribe(t);let u=t.pipe(G("pathname"),O(c=>pt(c.href).pipe(De(()=>(cr(c),we)))),pe());i.pipe(ct(u)).subscribe(({url:c})=>{history.pushState({},"",`${c}`)});let s=new DOMParser;u.pipe(O(c=>c.text()),m(c=>s.parseFromString(c,"text/html"))).subscribe(e),e.pipe(ut(1)).subscribe(c=>{for(let f 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]","[data-md-component=skip]",...Z("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let p=ce(f),l=ce(f,c);typeof p!="undefined"&&typeof l!="undefined"&&p.replaceWith(l)}}),e.pipe(ut(1),m(()=>Re("container")),O(c=>C(...q("script",c))),Hr(c=>{let f=A("script");if(c.src){for(let p of c.getAttributeNames())f.setAttribute(p,c.getAttribute(p));return c.replaceWith(f),new I(p=>{f.onload=()=>p.complete()})}else return f.textContent=c.textContent,c.replaceWith(f),D})).subscribe(),k(i,a).pipe(ct(e)).subscribe(({url:c,offset:f})=>{c.hash&&!f?Ao(c.hash):window.scrollTo(0,(f==null?void 0:f.y)||0)}),n.pipe(Et(i),Fe(250),G("offset")).subscribe(({offset:c})=>{history.replaceState(c,"")}),k(i,a).pipe(_e(2,1),T(([c,f])=>c.url.pathname===f.url.pathname),m(([,c])=>c)).subscribe(({offset:c})=>{window.scrollTo(0,(c==null?void 0:c.y)||0)})}function vi(e,t=n=>n){return e.split(/"([^"]+)"/g).map((n,r)=>r&1?n.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):n).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").split(/\s+/g).flatMap(t).map(n=>/^[+-]/.test(n)?n:`${n}*`).join(" ").trim()}var xi=Ge(yi());function wi(e){let t=e.separator.split("|").map(o=>o.replace(/(\(\?[!=][^)]+\))/g,"").length===0?"\uFFFD":o).join("|"),n=new RegExp(t,"img"),r=(o,i,a)=>`${i}<mark data-md-highlight>${a}</mark>`;return o=>{o=o.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator}|\\b)(${o.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(n,"|")})`,"img");return a=>(0,xi.default)(a).replace(i,r).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function mt(e){return e.type===1}function Si(e){return e.type===2}function dt(e){return e.type===3}function ws({config:e,docs:t}){e.lang.length===1&&e.lang[0]==="en"&&(e.lang=[ee("search.config.lang")]),e.separator==="[\\s\\-]+"&&(e.separator=ee("search.config.separator"));let r={pipeline:ee("search.config.pipeline").split(/\s*,\s*/).filter(Boolean),suggestions:Z("search.suggest")};return{config:e,docs:t,options:r}}function Ei(e,t){let n=de(),r=new Worker(e),o=new w,i=Uo(r,{tx$:o}).pipe(m(a=>{if(dt(a))for(let u of a.data.items)for(let s of u)s.location=`${new URL(s.location,n.base)}`;return a}),pe());return ae(t).pipe(m(a=>({type:0,data:ws(a)}))).subscribe(o.next.bind(o)),{tx$:o,rx$:i}}function Oi(){let e=de(),t=ke(new URL("../versions.json",e.base)),n=t.pipe(m(r=>{let[,o]=e.base.match(/([^/]+)\/?$/);return r.find(({version:i,aliases:a})=>i===o||a.includes(o))||r[0]}));Q([t,n]).pipe(m(([r,o])=>new Map(r.filter(i=>i!==o).map(i=>[`${new URL(`../${i.version}/`,e.base)}`,i]))),O(r=>g(document.body,"click").pipe(T(o=>!o.metaKey&&!o.ctrlKey),O(o=>{if(o.target instanceof Element){let i=o.target.closest("a");if(i&&!i.target&&r.has(i.href))return o.preventDefault(),C(i.href)}return D}),O(o=>{let{version:i}=r.get(o);return lr(new URL(o)).pipe(m(a=>{let s=Se().href.replace(e.base,"");return a.includes(s)?new URL(`../${i}/${s}`,e.base):new URL(o)}))})))).subscribe(r=>cr(r)),Q([t,n]).subscribe(([r,o])=>{var a;if(V(".md-header__topic").appendChild(Bo(r,o)),__md_get("__outdated",sessionStorage)===null){let u=((a=e.version)==null?void 0:a.default)||"latest",s=!o.aliases.includes(u);if(__md_set("__outdated",s,sessionStorage),s)for(let c of re("outdated"))c.hidden=!1}})}function Ss(e,{rx$:t},{index$:n}){let r=(__search==null?void 0:__search.transform)||vi,{searchParams:o}=Se();o.has("q")&&ze("search",!0);let i=t.pipe(T(mt),se(1),m(()=>o.get("q")||""));i.subscribe(s=>{s&&(e.value=s)});let a=tr(e),u=k(g(e,"keyup"),g(e,"focus").pipe(Me(1)),i).pipe(Ot(n),m(({config:s})=>r(e.value,c=>{let f=[];return zr(c,s.separator,p=>{f.push(c.slice(...p))}),f})),Y());return Q([u,a]).pipe(m(([s,c])=>({value:s,focus:c})),X(1))}function Ti(e,{tx$:t,rx$:n},r){let o=new w;return o.pipe(G("value"),m(({value:i})=>({type:2,data:i}))).subscribe(t.next.bind(t)),o.pipe(G("focus")).subscribe(({focus:i})=>{i?(ze("search",i),e.placeholder=""):e.placeholder=ee("search.placeholder")}),g(e.form,"reset").pipe(oe(o.pipe(ne(1)))).subscribe(()=>e.focus()),Ss(e,{tx$:t,rx$:n},r).pipe(S(i=>o.next(i)),L(()=>o.complete()),m(i=>P({ref:e},i)),pe())}function _i(e,{rx$:t},{query$:n}){let r=new w,o=Eo(e.parentElement).pipe(T(Boolean)),i=V(":scope > :first-child",e),a=V(":scope > :last-child",e),u=t.pipe(T(mt),se(1));return r.pipe(ge(n),Et(u)).subscribe(([{items:c},{value:f}])=>{if(f)switch(c.length){case 0:i.textContent=ee("search.result.none");break;case 1:i.textContent=ee("search.result.one");break;default:i.textContent=ee("search.result.other",ur(c.length))}else i.textContent=ee("search.result.placeholder")}),r.pipe(S(()=>a.innerHTML=""),O(({items:c})=>k(C(...c.slice(0,10)),C(...c.slice(10)).pipe(_e(4),Dr(o),O(([f])=>C(...f))))),m(c=>{let f=Ko(c);return a.appendChild(f),ce("details",f)})).subscribe(c=>{c&&c.addEventListener("toggle",()=>{!c.open&&c.offsetTop<=e.parentElement.scrollTop&&(e.parentElement.scrollTop=c.offsetTop)})}),t.pipe(T(dt),m(({data:c})=>c)).pipe(S(c=>r.next(c)),L(()=>r.complete()),m(c=>P({ref:e},c)))}function Es(e,{query$:t}){return t.pipe(m(({value:n})=>{let r=Se();return r.hash="",r.searchParams.delete("h"),r.searchParams.set("q",n),{url:r}}))}function Mi(e,t){let n=new w;return n.subscribe(({url:r})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${r}`}),g(e,"click").subscribe(r=>r.preventDefault()),Es(e,t).pipe(S(r=>n.next(r)),L(()=>n.complete()),m(r=>P({ref:e},r)))}function Li(e,{rx$:t},{keyboard$:n}){let r=new w,o=Re("search-query"),i=k(g(o,"keydown"),g(o,"focus")).pipe($e(Ae),m(()=>o.value),Y());return r.pipe(st(i),m(([{suggestions:u},s])=>{let c=s.split(/([\s-]+)/);if((u==null?void 0:u.length)&&c[c.length-1]){let f=u[u.length-1];f.startsWith(c[c.length-1])&&(c[c.length-1]=f)}else c.length=0;return c})).subscribe(u=>e.innerHTML=u.join("").replace(/\s/g,"&nbsp;")),n.pipe(T(({mode:u})=>u==="search")).subscribe(u=>{switch(u.type){case"ArrowRight":e.innerText.length&&o.selectionStart===o.value.length&&(o.value=e.innerText);break}}),t.pipe(T(dt),m(({data:u})=>u)).pipe(S(u=>r.next(u)),L(()=>r.complete()),m(()=>({ref:e})))}function Ai(e,{index$:t,keyboard$:n}){let r=de();try{let o=(__search==null?void 0:__search.worker)||r.search,i=Ei(o,t),a=Re("search-query",e),u=Re("search-result",e),{tx$:s,rx$:c}=i;s.pipe(T(Si),ct(c.pipe(T(mt))),se(1)).subscribe(s.next.bind(s)),n.pipe(T(({mode:l})=>l==="search")).subscribe(l=>{let d=Ce();switch(l.type){case"Enter":if(d===a){let h=new Map;for(let b of q(":first-child [href]",u)){let j=b.firstElementChild;h.set(b,parseFloat(j.getAttribute("data-md-score")))}if(h.size){let[[b]]=[...h].sort(([,j],[,B])=>B-j);b.click()}l.claim()}break;case"Escape":case"Tab":ze("search",!1),a.blur();break;case"ArrowUp":case"ArrowDown":if(typeof d=="undefined")a.focus();else{let h=[a,...q(":not(details) > [href], summary, details[open] [href]",u)],b=Math.max(0,(Math.max(0,h.indexOf(d))+h.length+(l.type==="ArrowUp"?-1:1))%h.length);h[b].focus()}l.claim();break;default:a!==Ce()&&a.focus()}}),n.pipe(T(({mode:l})=>l==="global")).subscribe(l=>{switch(l.type){case"f":case"s":case"/":a.focus(),a.select(),l.claim();break}});let f=Ti(a,i,{index$:t}),p=_i(u,i,{query$:f});return k(f,p).pipe(Ye(...re("search-share",e).map(l=>Mi(l,{query$:f})),...re("search-suggest",e).map(l=>Li(l,i,{keyboard$:n}))))}catch(o){return e.hidden=!0,we}}function Ci(e,{index$:t,location$:n}){return Q([t,n.pipe(N(Se()),T(r=>!!r.searchParams.get("h")))]).pipe(m(([r,o])=>wi(r.config)(o.searchParams.get("h"))),m(r=>{var a;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let u=i.nextNode();u;u=i.nextNode())if((a=u.parentElement)==null?void 0:a.offsetHeight){let s=u.textContent,c=r(s);c.length>s.length&&o.set(u,c)}for(let[u,s]of o){let{childNodes:c}=A("span",null,s);u.replaceWith(...Array.from(c))}return{ref:e,nodes:o}}))}function Os(e,{viewport$:t,main$:n}){let r=e.parentElement,o=r.offsetTop-r.parentElement.offsetTop;return Q([n,t]).pipe(m(([{offset:i,height:a},{offset:{y:u}}])=>(a=a+Math.min(o,Math.max(0,u-i))-o,{height:a,locked:u>=i+o})),Y((i,a)=>i.height===a.height&&i.locked===a.locked))}function Jr(e,r){var o=r,{header$:t}=o,n=rn(o,["header$"]);let i=V(".md-sidebar__scrollwrap",e),{y:a}=Ve(i);return H(()=>{let u=new w;return u.pipe(Te(0,ve),ge(t)).subscribe({next([{height:s},{height:c}]){i.style.height=`${s-2*a}px`,e.style.top=`${c}px`},complete(){i.style.height="",e.style.top=""}}),u.pipe($e(ve),se(1)).subscribe(()=>{for(let s of q(".md-nav__link--active[href]",e)){let c=So(s);if(typeof c!="undefined"){let f=s.offsetTop-c.offsetTop,{height:p}=me(c);f-p+s.offsetHeight>0&&c.scrollTo(0,f-p/2)}}}),Os(e,n).pipe(S(s=>u.next(s)),L(()=>u.complete()),m(s=>P({ref:e},s)))})}function ki(e,t){if(typeof t!="undefined"){let n=`https://api.github.com/repos/${e}/${t}`;return Qe(ke(`${n}/releases/latest`).pipe(m(r=>({version:r.tag_name})),je({})),ke(n).pipe(m(r=>({stars:r.stargazers_count,forks:r.forks_count})),je({}))).pipe(m(([r,o])=>P(P({},r),o)))}else{let n=`https://api.github.com/users/${e}`;return ke(n).pipe(m(r=>({repositories:r.public_repos})),je({}))}}function Ri(e,t){let n=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return ke(n).pipe(m(({star_count:r,forks_count:o})=>({stars:r,forks:o})),je({}))}function Hi(e){let[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":let[,n,r]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return ki(n,r);case"gitlab":let[,o,i]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return Ri(o,i);default:return D}}var Ts;function _s(e){return Ts||(Ts=H(()=>{let t=__md_get("__source",sessionStorage);return t?C(t):Hi(e.href).pipe(S(n=>__md_set("__source",n,sessionStorage)))}).pipe(De(()=>D),T(t=>Object.keys(t).length>0),m(t=>({facts:t})),X(1)))}function Pi(e){let t=V(":scope > :last-child",e);return H(()=>{let n=new w;return n.subscribe(({facts:r})=>{t.appendChild(Qo(r)),t.classList.add("md-source__repository--active")}),_s(e).pipe(S(r=>n.next(r)),L(()=>n.complete()),m(r=>P({ref:e},r)))})}function Ms(e,{viewport$:t,header$:n}){return ye(document.body).pipe(O(()=>fr(e,{header$:n,viewport$:t})),m(({offset:{y:r}})=>({hidden:r>=10})),G("hidden"))}function Ii(e,t){return H(()=>{let n=new w;return n.subscribe({next({hidden:r}){e.classList.toggle("md-tabs--hidden",r)},complete(){e.classList.remove("md-tabs--hidden")}}),(Z("navigation.tabs.sticky")?C({hidden:!1}):Ms(e,t)).pipe(S(r=>n.next(r)),L(()=>n.complete()),m(r=>P({ref:e},r)))})}function Ls(e,{viewport$:t,header$:n}){let r=new Map,o=q("[href^=\\#]",e);for(let u of o){let s=decodeURIComponent(u.hash.substring(1)),c=ce(`[id="${s}"]`);typeof c!="undefined"&&r.set(u,c)}let i=n.pipe(m(u=>24+u.height));return ye(document.body).pipe(G("height"),O(u=>H(()=>{let s=[];return C([...r].reduce((c,[f,p])=>{for(;s.length&&r.get(s[s.length-1]).tagName>=p.tagName;)s.pop();let l=p.offsetTop;for(;!l&&p.parentElement;)p=p.parentElement,l=p.offsetTop;return c.set([...s=[...s,f]].reverse(),l)},new Map))}).pipe(m(s=>new Map([...s].sort(([,c],[,f])=>c-f))),O(s=>Q([t,i]).pipe($r(([c,f],[{offset:{y:p},size:l},d])=>{let h=p+l.height>=Math.floor(u.height);for(;f.length;){let[,b]=f[0];if(b-d<p||h)c=[...c,f.shift()];else break}for(;c.length;){let[,b]=c[c.length-1];if(b-d>=p&&!h)f=[c.pop(),...f];else break}return[c,f]},[[],[...s]]),Y((c,f)=>c[0]===f[0]&&c[1]===f[1])))))).pipe(m(([u,s])=>({prev:u.map(([c])=>c),next:s.map(([c])=>c)})),N({prev:[],next:[]}),_e(2,1),m(([u,s])=>u.prev.length<s.prev.length?{prev:s.prev.slice(Math.max(0,u.prev.length-1),s.prev.length),next:[]}:{prev:s.prev.slice(-1),next:s.next.slice(0,s.next.length-u.next.length)}))}function $i(e,{viewport$:t,header$:n}){return H(()=>{let r=new w;return r.subscribe(({prev:o,next:i})=>{for(let[a]of i)a.classList.remove("md-nav__link--passed"),a.classList.remove("md-nav__link--active");for(let[a,[u]]of o.entries())u.classList.add("md-nav__link--passed"),u.classList.toggle("md-nav__link--active",a===o.length-1)}),Z("navigation.tracking")&&t.pipe(oe(r.pipe(ne(1))),G("offset"),Fe(250),ge(r)).subscribe(([,{prev:o}])=>{let i=Se(),a=o[o.length-1];if(a&&a.length){let[u]=a,{hash:s}=new URL(u.href);i.hash!==s&&(i.hash=s,history.replaceState({},"",`${i}`))}else i.hash="",history.replaceState({},"",`${i}`)}),Ls(e,{viewport$:t,header$:n}).pipe(S(o=>r.next(o)),L(()=>r.complete()),m(o=>P({ref:e},o)))})}function As(e,{viewport$:t,main$:n}){let r=t.pipe(m(({offset:{y:i}})=>i),_e(2,1),m(([i,a])=>i>a&&a),Y()),o=n.pipe(G("active"));return Q([o,r]).pipe(m(([{active:i},a])=>({hidden:!(i&&a)})),Y((i,a)=>i.hidden===a.hidden))}function Fi(e,{viewport$:t,header$:n,main$:r}){let o=new w;return o.subscribe({next({hidden:i}){e.classList.toggle("md-top--hidden",i),i?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.classList.add("md-top--hidden"),e.removeAttribute("tabindex")}}),n.pipe(oe(o.pipe(Ir(0),ne(1))),G("height")).subscribe(({height:i})=>{e.style.top=`${i+16}px`}),As(e,{viewport$:t,header$:n,main$:r}).pipe(S(i=>o.next(i)),L(()=>o.complete()),m(i=>P({ref:e},i)))}function ji({document$:e,tablet$:t}){e.pipe(O(()=>C(...q(".md-toggle--indeterminate, [data-md-state=indeterminate]"))),S(n=>{n.indeterminate=!0,n.checked=!1}),fe(n=>g(n,"change").pipe(jr(()=>n.classList.contains("md-toggle--indeterminate")),J(n))),ge(t)).subscribe(([n,r])=>{n.classList.remove("md-toggle--indeterminate"),r&&(n.checked=!1)})}function Cs(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Ui({document$:e}){e.pipe(O(()=>C(...q("[data-md-scrollfix]"))),S(t=>t.removeAttribute("data-md-scrollfix")),T(Cs),fe(t=>g(t,"touchstart").pipe(J(t)))).subscribe(t=>{let n=t.scrollTop;n===0?t.scrollTop=1:n+t.offsetHeight===t.scrollHeight&&(t.scrollTop=n-1)})}function Wi({viewport$:e,tablet$:t}){Q([sr("search"),t]).pipe(m(([n,r])=>n&&!r),O(n=>C(n).pipe(Me(n?400:100))),ge(e)).subscribe(([n,{offset:{y:r}}])=>{if(n)document.body.setAttribute("data-md-scrolllock",""),document.body.style.top=`-${r}px`;else{let o=-1*parseInt(document.body.style.top,10);document.body.removeAttribute("data-md-scrolllock"),document.body.style.top="",o&&window.scrollTo(0,o)}})}Object.entries||(Object.entries=function(e){let t=[];for(let n of Object.keys(e))t.push([n,e[n]]);return t});Object.values||(Object.values=function(e){let t=[];for(let n of Object.keys(e))t.push(e[n]);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 n=e.length-1;n>=0;n--){let r=e[n];typeof r!="object"?r=document.createTextNode(r):r.parentNode&&r.parentNode.removeChild(r),n?t.insertBefore(this.previousSibling,r):t.replaceChild(r,this)}}}));document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var ht=fo(),mr=_o(),dr=Co(),Xr=To(),Ee=jo(),hr=Nr("(min-width: 960px)"),Di=Nr("(min-width: 1220px)"),Vi=ko(),zi=de(),Ni=document.forms.namedItem("search")?(__search==null?void 0:__search.index)||ke(new URL("search/search_index.json",zi.base)):we,Zr=new w;hi({alert$:Zr});Z("navigation.instant")&&bi({document$:ht,location$:mr,viewport$:Ee});var Ki;((Ki=zi.version)==null?void 0:Ki.provider)==="mike"&&Oi();k(mr,dr).pipe(Me(125)).subscribe(()=>{ze("drawer",!1),ze("search",!1)});Xr.pipe(T(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=ce("[href][rel=prev]");typeof t!="undefined"&&t.click();break;case"n":case".":let n=ce("[href][rel=next]");typeof n!="undefined"&&n.click();break}});ji({document$:ht,tablet$:hr});Ui({document$:ht});Wi({viewport$:Ee,tablet$:hr});var Ne=fi(Re("header"),{viewport$:Ee}),br=ht.pipe(m(()=>Re("main")),O(e=>mi(e,{viewport$:Ee,header$:Ne})),X(1)),ks=k(...re("consent").map(e=>Do(e,{target$:dr})),...re("dialog").map(e=>ui(e,{alert$:Zr})),...re("header").map(e=>pi(e,{viewport$:Ee,header$:Ne,main$:br})),...re("palette").map(e=>di(e)),...re("search").map(e=>Ai(e,{index$:Ni,keyboard$:Xr})),...re("source").map(e=>Pi(e))),Rs=H(()=>k(...re("announce").map(e=>Wo(e)),...re("content").map(e=>ci(e,{target$:dr,print$:Vi})),...re("content").map(e=>Z("search.highlight")?Ci(e,{index$:Ni,location$:mr}):D),...re("header-title").map(e=>li(e,{viewport$:Ee,header$:Ne})),...re("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?qr(Di,()=>Jr(e,{viewport$:Ee,header$:Ne,main$:br})):qr(hr,()=>Jr(e,{viewport$:Ee,header$:Ne,main$:br}))),...re("tabs").map(e=>Ii(e,{viewport$:Ee,header$:Ne})),...re("toc").map(e=>$i(e,{viewport$:Ee,header$:Ne})),...re("top").map(e=>Fi(e,{viewport$:Ee,header$:Ne,main$:br})))),qi=ht.pipe(O(()=>Rs),Ye(ks),X(1));qi.subscribe();window.document$=ht;window.location$=mr;window.target$=dr;window.keyboard$=Xr;window.viewport$=Ee;window.tablet$=hr;window.screen$=Di;window.print$=Vi;window.alert$=Zr;window.component$=qi;})();