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