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