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