diff --git a/dist/assets/javascripts/bundle.eadb2f62.min.js b/dist/assets/javascripts/bundle.a8959a4f.min.js similarity index 85% rename from dist/assets/javascripts/bundle.eadb2f62.min.js rename to dist/assets/javascripts/bundle.a8959a4f.min.js index 283be72c..a883fcf3 100644 --- a/dist/assets/javascripts/bundle.eadb2f62.min.js +++ b/dist/assets/javascripts/bundle.a8959a4f.min.js @@ -1,3 +1,7 @@ "use strict";(()=>{var Lc=Object.create;var Cn=Object.defineProperty,Mc=Object.defineProperties,kc=Object.getOwnPropertyDescriptor,Ac=Object.getOwnPropertyDescriptors,Cc=Object.getOwnPropertyNames,Dr=Object.getOwnPropertySymbols,Hc=Object.getPrototypeOf,Hn=Object.prototype.hasOwnProperty,jo=Object.prototype.propertyIsEnumerable;var Ro=(e,t,r)=>t in e?Cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))Hn.call(t,r)&&Ro(e,r,t[r]);if(Dr)for(var r of Dr(t))jo.call(t,r)&&Ro(e,r,t[r]);return e},He=(e,t)=>Mc(e,Ac(t));var gr=(e,t)=>{var r={};for(var n in e)Hn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Dr)for(var n of Dr(e))t.indexOf(n)<0&&jo.call(e,n)&&(r[n]=e[n]);return r};var $n=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var $c=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Cc(t))!Hn.call(e,o)&&o!==r&&Cn(e,o,{get:()=>t[o],enumerable:!(n=kc(t,o))||n.enumerable});return e};var _r=(e,t,r)=>(r=e!=null?Lc(Hc(e)):{},$c(t||!e||!e.__esModule?Cn(r,"default",{value:e,enumerable:!0}):r,e));var Fo=(e,t,r)=>new Promise((n,o)=>{var i=c=>{try{s(r.next(c))}catch(l){o(l)}},a=c=>{try{s(r.throw(c))}catch(l){o(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,a);s((r=r.apply(e,t)).next())});var No=$n((Pn,Uo)=>{(function(e,t){typeof Pn=="object"&&typeof Uo!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Pn,(function(){"use strict";function e(r){var n=!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(_){return!!(_&&_!==document&&_.nodeName!=="HTML"&&_.nodeName!=="BODY"&&"classList"in _&&"contains"in _.classList)}function c(_){var Z=_.type,ve=_.tagName;return!!(ve==="INPUT"&&a[Z]&&!_.readOnly||ve==="TEXTAREA"&&!_.readOnly||_.isContentEditable)}function l(_){_.classList.contains("focus-visible")||(_.classList.add("focus-visible"),_.setAttribute("data-focus-visible-added",""))}function u(_){_.hasAttribute("data-focus-visible-added")&&(_.classList.remove("focus-visible"),_.removeAttribute("data-focus-visible-added"))}function p(_){_.metaKey||_.altKey||_.ctrlKey||(s(r.activeElement)&&l(r.activeElement),n=!0)}function d(_){n=!1}function m(_){s(_.target)&&(n||c(_.target))&&l(_.target)}function h(_){s(_.target)&&(_.target.classList.contains("focus-visible")||_.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(_.target))}function v(_){document.visibilityState==="hidden"&&(o&&(n=!0),y())}function y(){document.addEventListener("mousemove",E),document.addEventListener("mousedown",E),document.addEventListener("mouseup",E),document.addEventListener("pointermove",E),document.addEventListener("pointerdown",E),document.addEventListener("pointerup",E),document.addEventListener("touchmove",E),document.addEventListener("touchstart",E),document.addEventListener("touchend",E)}function x(){document.removeEventListener("mousemove",E),document.removeEventListener("mousedown",E),document.removeEventListener("mouseup",E),document.removeEventListener("pointermove",E),document.removeEventListener("pointerdown",E),document.removeEventListener("pointerup",E),document.removeEventListener("touchmove",E),document.removeEventListener("touchstart",E),document.removeEventListener("touchend",E)}function E(_){_.target.nodeName&&_.target.nodeName.toLowerCase()==="html"||(n=!1,x())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",d,!0),document.addEventListener("pointerdown",d,!0),document.addEventListener("touchstart",d,!0),document.addEventListener("visibilitychange",v,!0),y(),r.addEventListener("focus",m,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)}))});var To=$n((D0,ys)=>{"use strict";var rp=/["'&<>]/;ys.exports=np;function np(e){var t=""+e,r=rp.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i{(function(t,r){typeof jr=="object"&&typeof Oo=="object"?Oo.exports=r():typeof define=="function"&&define.amd?define([],r):typeof jr=="object"?jr.ClipboardJS=r():t.ClipboardJS=r()})(jr,function(){return(function(){var e={686:(function(n,o,i){"use strict";i.d(o,{default:function(){return vr}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),u=i(817),p=i.n(u);function d(G){try{return document.execCommand(G)}catch(H){return!1}}var m=function(H){var C=p()(H);return d("cut"),C},h=m;function v(G){var H=document.documentElement.getAttribute("dir")==="rtl",C=document.createElement("textarea");C.style.fontSize="12pt",C.style.border="0",C.style.padding="0",C.style.margin="0",C.style.position="absolute",C.style[H?"right":"left"]="-9999px";var W=window.pageYOffset||document.documentElement.scrollTop;return C.style.top="".concat(W,"px"),C.setAttribute("readonly",""),C.value=G,C}var y=function(H,C){var W=v(H);C.container.appendChild(W);var V=p()(W);return d("copy"),W.remove(),V},x=function(H){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},W="";return typeof H=="string"?W=y(H,C):H instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(H==null?void 0:H.type)?W=y(H.value,C):(W=p()(H),d("copy")),W},E=x;function _(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(C){return typeof C}:_=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_(G)}var Z=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=H.action,W=C===void 0?"copy":C,V=H.container,Q=H.target,Ve=H.text;if(W!=="copy"&&W!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Q!==void 0)if(Q&&_(Q)==="object"&&Q.nodeType===1){if(W==="copy"&&Q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(W==="cut"&&(Q.hasAttribute("readonly")||Q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ve)return E(Ve,{container:V});if(Q)return W==="cut"?h(Q):E(Q,{container:V})},ve=Z;function L(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?L=function(C){return typeof C}:L=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},L(G)}function M(G,H){if(!(G instanceof H))throw new TypeError("Cannot call a class as a function")}function D(G,H){for(var C=0;C0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof V.action=="function"?V.action:this.defaultAction,this.target=typeof V.target=="function"?V.target:this.defaultTarget,this.text=typeof V.text=="function"?V.text:this.defaultText,this.container=L(V.container)==="object"?V.container:document.body}},{key:"listenClick",value:function(V){var Q=this;this.listener=l()(V,"click",function(Ve){return Q.onClick(Ve)})}},{key:"onClick",value:function(V){var Q=V.delegateTarget||V.currentTarget,Ve=this.action(Q)||"copy",Jt=ve({action:Ve,container:this.container,target:this.target(Q),text:this.text(Q)});this.emit(Jt?"success":"error",{action:Ve,text:Jt,trigger:Q,clearSelection:function(){Q&&Q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(V){return Yt("action",V)}},{key:"defaultTarget",value:function(V){var Q=Yt("target",V);if(Q)return document.querySelector(Q)}},{key:"defaultText",value:function(V){return Yt("text",V)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(V){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return E(V,Q)}},{key:"cut",value:function(V){return h(V)}},{key:"isSupported",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Q=typeof V=="string"?[V]:V,Ve=!!document.queryCommandSupported;return Q.forEach(function(Jt){Ve=Ve&&!!document.queryCommandSupported(Jt)}),Ve}}]),C})(s()),vr=At}),828:(function(n){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}}n.exports=a}),438:(function(n,o,i){var a=i(828);function s(u,p,d,m,h){var v=l.apply(this,arguments);return u.addEventListener(d,v,h),{destroy:function(){u.removeEventListener(d,v,h)}}}function c(u,p,d,m,h){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof d=="function"?s.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return s(v,p,d,m,h)}))}function l(u,p,d,m){return function(h){h.delegateTarget=a(h.target,p),h.delegateTarget&&m.call(u,h)}}n.exports=c}),879:(function(n,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(n,o,i){var a=i(879),s=i(438);function c(d,m,h){if(!d&&!m&&!h)throw new Error("Missing required arguments");if(!a.string(m))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(d))return l(d,m,h);if(a.nodeList(d))return u(d,m,h);if(a.string(d))return p(d,m,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(d,m,h){return d.addEventListener(m,h),{destroy:function(){d.removeEventListener(m,h)}}}function u(d,m,h){return Array.prototype.forEach.call(d,function(v){v.addEventListener(m,h)}),{destroy:function(){Array.prototype.forEach.call(d,function(v){v.removeEventListener(m,h)})}}}function p(d,m,h){return s(document.body,d,m,h)}n.exports=c}),817:(function(n){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}n.exports=o}),279:(function(n){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;c0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function re(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function oe(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||c(m,v)})},h&&(o[m]=h(o[m])))}function c(m,h){try{l(n[m](h))}catch(v){d(i[0][3],v)}}function l(m){m.value instanceof Ct?Promise.resolve(m.value.v).then(u,p):d(i[0][2],m)}function u(m){c("next",m)}function p(m){c("throw",m)}function d(m,h){m(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Vo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof $e=="function"?$e(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,c){a=e[i](a),o(s,c,a.done,a.value)})}}function o(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function F(e){return typeof e=="function"}function Xt(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Vr=Xt(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: `+r.map(function(n,o){return o+1+") "+n.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=r}});function ut(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var nt=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,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=$e(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(F(u))try{u()}catch(v){i=v instanceof Vr?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=$e(p),m=d.next();!m.done;m=d.next()){var h=m.value;try{zo(h)}catch(v){i=i!=null?i:[],v instanceof Vr?i=oe(oe([],re(i)),re(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{m&&!m.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}if(i)throw new Vr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)zo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&ut(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ut(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Rn=nt.EMPTY;function zr(e){return e instanceof nt||e&&"closed"in e&&F(e.remove)&&F(e.add)&&F(e.unsubscribe)}function zo(e){F(e)?e():e.unsubscribe()}var Xe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Zt={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Rn:(this.currentObservers=null,s.push(r),new nt(function(){n.currentObservers=null,ut(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new N;return r.source=this,r},t.create=function(r,n){return new Zo(r,n)},t})(N);var Zo=(function(e){pe(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Rn},t})(I);var Dn=(function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(I);var xr={now:function(){return(xr.delegate||Date).now()},delegate:void 0};var wr=(function(e){pe(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=xr);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.flush(this),0)},t})(rr);var ti=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(nr);var zn=new ti(ei);var ri=(function(e){pe(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=tr.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&n===r._scheduled&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(tr.cancelAnimationFrame(n),r._scheduled=void 0)},t})(rr);var ni=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n;r?n=r.id:(n=this._scheduled,this._scheduled=void 0);var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t})(nr);var je=new ni(ri);var w=new N(function(e){return e.complete()});function Br(e){return e&&F(e.schedule)}function qn(e){return e[e.length-1]}function _t(e){return F(qn(e))?e.pop():void 0}function Be(e){return Br(qn(e))?e.pop():void 0}function Gr(e,t){return typeof qn(e)=="number"?e.pop():t}var or=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function Yr(e){return F(e==null?void 0:e.then)}function Jr(e){return F(e[er])}function Xr(e){return Symbol.asyncIterator&&F(e==null?void 0:e[Symbol.asyncIterator])}function Zr(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 Wc(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qr=Wc();function en(e){return F(e==null?void 0:e[Qr])}function tn(e){return Wo(this,arguments,function(){var r,n,o,i;return Wr(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Ct(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,Ct(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Ct(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function rn(e){return F(e==null?void 0:e.getReader)}function q(e){if(e instanceof N)return e;if(e!=null){if(Jr(e))return Vc(e);if(or(e))return zc(e);if(Yr(e))return qc(e);if(Xr(e))return oi(e);if(en(e))return Kc(e);if(rn(e))return Bc(e)}throw Zr(e)}function Vc(e){return new N(function(t){var r=e[er]();if(F(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function zc(e){return new N(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?O(function(o,i){return e(o,i,n)}):Le,Me(1),r?it(t):xi(function(){return new an}))}}function Jn(e){return e<=0?function(){return w}:S(function(t,r){var n=[];t.subscribe(T(r,function(o){n.push(o),e=2,!0))}function xe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new I}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(l){var u,p,d,m=0,h=!1,v=!1,y=function(){p==null||p.unsubscribe(),p=void 0},x=function(){y(),u=d=void 0,h=v=!1},E=function(){var _=u;x(),_==null||_.unsubscribe()};return S(function(_,Z){m++,!v&&!h&&y();var ve=d=d!=null?d:r();Z.add(function(){m--,m===0&&!v&&!h&&(p=Xn(E,c))}),ve.subscribe(Z),!u&&m>0&&(u=new $t({next:function(L){return ve.next(L)},error:function(L){v=!0,y(),p=Xn(x,o,L),ve.error(L)},complete:function(){h=!0,y(),p=Xn(x,a),ve.complete()}}),q(_).subscribe(u))})(l)}}function Xn(e,t){for(var r=[],n=2;ne.next(document)),e}function $(e,t=document){return Array.from(t.querySelectorAll(e))}function Y(e,t=document){let r=we(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function we(e,t=document){return t.querySelector(e)||void 0}function xt(){var e,t,r,n;return(n=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?n:void 0}var pl=R(b(document.body,"focusin"),b(document.body,"focusout")).pipe(Ye(1),J(void 0),f(()=>xt()||document.body),ae(1));function ar(e){return pl.pipe(f(t=>e.contains(t)),se())}function Nt(e,t){let{matches:r}=matchMedia("(hover)");return j(()=>(r?R(b(e,"mouseenter").pipe(f(()=>!0)),b(e,"mouseleave").pipe(f(()=>!1))):R(b(e,"touchstart").pipe(f(()=>!0)),b(e,"touchend").pipe(f(()=>!1)),b(e,"touchcancel").pipe(f(()=>!1)))).pipe(t?Tr(o=>ze(+!o*t)):Le,J(!0,e.matches(":hover"))))}function Si(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)Si(e,r)}function A(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)Si(n,o);return n}function Oi(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function wt(e){let t=A("script",{src:e});return j(()=>(document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(g(()=>on(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(f(()=>{}),z(()=>document.head.removeChild(t)),Me(1))))}function Li(e){let t=A("link",{rel:"stylesheet",href:e});return document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(g(()=>on(()=>new ReferenceError(`Invalid styles: ${e}`))))).pipe(f(()=>{}),Me(1))}var Mi=new I,fl=j(()=>typeof ResizeObserver=="undefined"?wt("https://unpkg.com/resize-observer-polyfill"):K(void 0)).pipe(f(()=>new ResizeObserver(e=>e.forEach(t=>Mi.next(t)))),g(e=>R(Ge,K(e)).pipe(z(()=>e.disconnect()))),ae(1));function Ae(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Re(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return fl.pipe(P(r=>r.observe(t)),g(r=>Mi.pipe(O(n=>n.target===t),z(()=>r.unobserve(t)))),f(()=>Ae(e)),J(Ae(e)))}function Mr(e){return{width:e.scrollWidth,height:e.scrollHeight}}function ki(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function Ai(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function Et(e){return{x:e.offsetLeft,y:e.offsetTop}}function Ci(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function Hi(e){return R(b(window,"load"),b(window,"resize")).pipe(Ze(0,je),f(()=>Et(e)),J(Et(e)))}function pn(e){return{x:e.scrollLeft,y:e.scrollTop}}function Dt(e){return R(b(e,"scroll"),b(window,"scroll"),b(window,"resize")).pipe(Ze(0,je),f(()=>pn(e)),J(pn(e)))}var $i=new I,ml=j(()=>K(new IntersectionObserver(e=>{for(let t of e)$i.next(t)},{threshold:0}))).pipe(g(e=>R(Ge,K(e)).pipe(z(()=>e.disconnect()))),ae(1));function Tt(e){return ml.pipe(P(t=>t.observe(e)),g(t=>$i.pipe(O(({target:r})=>r===e),z(()=>t.unobserve(e)),f(({isIntersecting:r})=>r))))}var dl=Object.create,ua=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,vl=Object.getOwnPropertyNames,bl=Object.getPrototypeOf,gl=Object.prototype.hasOwnProperty,_l=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vl(t))!gl.call(e,o)&&o!==r&&ua(e,o,{get:()=>t[o],enumerable:!(n=hl(t,o))||n.enumerable});return e},xl=(e,t,r)=>(r=e!=null?dl(bl(e)):{},yl(t||!e||!e.__esModule?ua(r,"default",{value:e,enumerable:!0}):r,e)),wl=_l((e,t)=>{var r="Expected a function",n=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global=="object"&&global&&global.Object===Object&&global,p=typeof self=="object"&&self&&self.Object===Object&&self,d=u||p||Function("return this")(),m=Object.prototype,h=m.toString,v=Math.max,y=Math.min,x=function(){return d.Date.now()};function E(M,D,te){var ue,le,De,bt,We,lt,rt=0,Yt=!1,At=!1,vr=!0;if(typeof M!="function")throw new TypeError(r);D=L(D)||0,_(te)&&(Yt=!!te.leading,At="maxWait"in te,De=At?v(L(te.maxWait)||0,D):De,vr="trailing"in te?!!te.trailing:vr);function G(Se){var gt=ue,br=le;return ue=le=void 0,rt=Se,bt=M.apply(br,gt),bt}function H(Se){return rt=Se,We=setTimeout(V,D),Yt?G(Se):bt}function C(Se){var gt=Se-lt,br=Se-rt,Io=D-gt;return At?y(Io,De-br):Io}function W(Se){var gt=Se-lt,br=Se-rt;return lt===void 0||gt>=D||gt<0||At&&br>=De}function V(){var Se=x();if(W(Se))return Q(Se);We=setTimeout(V,C(Se))}function Q(Se){return We=void 0,vr&&ue?G(Se):(ue=le=void 0,bt)}function Ve(){We!==void 0&&clearTimeout(We),rt=0,ue=lt=le=We=void 0}function Jt(){return We===void 0?bt:Q(x())}function Nr(){var Se=x(),gt=W(Se);if(ue=arguments,le=this,lt=Se,gt){if(We===void 0)return H(lt);if(At)return We=setTimeout(V,D),G(lt)}return We===void 0&&(We=setTimeout(V,D)),bt}return Nr.cancel=Ve,Nr.flush=Jt,Nr}function _(M){var D=typeof M;return!!M&&(D=="object"||D=="function")}function Z(M){return!!M&&typeof M=="object"}function ve(M){return typeof M=="symbol"||Z(M)&&h.call(M)==o}function L(M){if(typeof M=="number")return M;if(ve(M))return n;if(_(M)){var D=typeof M.valueOf=="function"?M.valueOf():M;M=_(D)?D+"":D}if(typeof M!="string")return M===0?M:+M;M=M.replace(i,"");var te=s.test(M);return te||c.test(M)?l(M.slice(2),te?2:8):a.test(M)?n:+M}t.exports=E}),wn,B,pa,fa,Wt,Pi,ma,da,ha,lo,ro,no,El,Ar={},va=[],Tl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pr=Array.isArray;function ft(e,t){for(var r in t)e[r]=t[r];return e}function uo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Lt(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?wn.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return dn(e,a,n,o,null)}function dn(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o!=null?o:++pa,__i:-1,__u:0};return o==null&&B.vnode!=null&&B.vnode(i),i}function qe(e){return e.children}function ct(e,t){this.props=e,this.context=t}function cr(e,t){if(t==null)return e.__?cr(e.__,e.__i+1):null;for(var r;ts&&Wt.sort(da),e=Wt.shift(),s=Wt.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=ft({},n)).__v=n.__v+1,B.vnode&&B.vnode(r),po(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o!=null?o:cr(n),!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,ya(i,r,a),n.__e=n.__=null,r.__e!=o&&ba(r)));gn.__r=0}function ga(e,t,r,n,o,i,a,s,c,l,u){var p,d,m,h,v,y,x,E=n&&n.__k||va,_=t.length;for(c=Sl(r,t,E,c,_),p=0;p<_;p++)(m=r.__k[p])!=null&&(d=m.__i==-1?Ar:E[m.__i]||Ar,m.__i=p,y=po(e,m,d,o,i,a,s,c,l,u),h=m.__e,m.ref&&d.ref!=m.ref&&(d.ref&&fo(d.ref,null,m),u.push(m.ref,m.__c||h,m)),v==null&&h!=null&&(v=h),(x=!!(4&m.__u))||d.__k===m.__k?c=_a(m,c,e,x):typeof m.type=="function"&&y!==void 0?c=y:h&&(c=h.nextSibling),m.__u&=-7);return r.__e=v,c}function Sl(e,t,r,n,o){var i,a,s,c,l,u=r.length,p=u,d=0;for(e.__k=new Array(o),i=0;i0?dn(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(l=a.__i=Ol(a,r,c,p))!=-1&&(p--,(s=r[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(o>u?d--:oc?d--:d++,a.__u|=4))):e.__k[i]=null;if(p)for(i=0;i(u?1:0)){for(o=r-1,i=r+1;o>=0||i=0?o--:i++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return a}return-1}function Ri(e,t,r){t[0]=="-"?e.setProperty(t,r!=null?r:""):e[t]=r==null?"":typeof r!="number"||Tl.test(t)?r:r+"px"}function fn(e,t,r,n,o){var i,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Ri(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Ri(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ha,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=lo,e.addEventListener(t,i?no:ro,i)):e.removeEventListener(t,i?no:ro,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r!=null?r:"";break e}catch(s){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function ji(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=lo++;else if(t.t0?e:Pr(e)?e.map(xa):ft({},e)}function Ll(e,t,r,n,o,i,a,s,c){var l,u,p,d,m,h,v,y=r.props,x=t.props,E=t.type;if(E=="svg"?o="http://www.w3.org/2000/svg":E=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l=r.__.length&&r.__.push({}),r.__[e]}function _n(e){return $r=1,Al(Sa,e)}function Al(e,t,r){var n=mo(Hr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Sa(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=ge,!ge.__f)){var o=function(s,c,l){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(d){return!!d.__c});if(u.every(function(d){return!d.__N}))return!i||i.call(this,s,c,l);var p=n.__c.props!==s;return u.forEach(function(d){if(d.__N){var m=d.__[0];d.__=d.__N,d.__N=void 0,m!==d.__[0]&&(p=!0)}}),i&&i.call(this,s,c,l)||p};ge.__f=!0;var i=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.componentWillUpdate=function(s,c,l){if(this.__e){var u=i;i=void 0,o(s,c,l),i=u}a&&a.call(this,s,c,l)},ge.shouldComponentUpdate=o}return n.__N||n.__}function mt(e,t){var r=mo(Hr++,3);!Ee.__s&&Ta(r.__H,t)&&(r.__=e,r.u=t,ge.__H.__h.push(r))}function zt(e){return $r=5,ur(function(){return{current:e}},[])}function ur(e,t){var r=mo(Hr++,7);return Ta(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Cl(e,t){return $r=8,ur(function(){return e},t)}function Hl(){for(var e;e=Ea.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(hn),e.__H.__h.forEach(io),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}Ee.__b=function(e){ge=null,Ui&&Ui(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),zi&&zi(e,t)},Ee.__r=function(e){Ni&&Ni(e),Hr=0;var t=(ge=e.__c).__H;t&&(Qn===ge?(t.__h=[],ge.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(hn),t.__h.forEach(io),t.__h=[],Hr=0)),Qn=ge},Ee.diffed=function(e){Di&&Di(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ea.push(t)!==1&&Fi===Ee.requestAnimationFrame||((Fi=Ee.requestAnimationFrame)||$l)(Hl)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Qn=ge=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.forEach(hn),r.__h=r.__h.filter(function(n){return!n.__||io(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Ee.__e(n,r.__v)}}),Wi&&Wi(e,t)},Ee.unmount=function(e){Vi&&Vi(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{hn(n)}catch(o){t=o}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};var qi=typeof requestAnimationFrame=="function";function $l(e){var t,r=function(){clearTimeout(n),qi&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);qi&&(t=requestAnimationFrame(r))}function hn(e){var t=ge,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ge=t}function io(e){var t=ge;e.__c=e.__(),ge=t}function Ta(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Sa(e,t){return typeof t=="function"?t(e):t}function Pl(e,t){for(var r in t)e[r]=t[r];return e}function Ki(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Bi(e,t){this.props=e,this.context=t}(Bi.prototype=new ct).isPureReactComponent=!0,Bi.prototype.shouldComponentUpdate=function(e,t){return Ki(this.props,e)||Ki(this.state,t)};var Gi=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Gi&&Gi(e)};var sw=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Il=B.__e;B.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Il(e,t,r,n)};var Yi=B.unmount;function Oa(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Pl({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Oa(n,t,r)})),e}function La(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return La(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function eo(){this.__u=0,this.o=null,this.__b=null}function Ma(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function mn(){this.i=null,this.l=null}B.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Yi&&Yi(e)},(eo.prototype=new ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Ma(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=La(c,c.__c.__P,c.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.o.pop();)l.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},eo.prototype.componentWillUnmount=function(){this.o=[]},eo.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Oa(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&Lt(qe,null,e.fallback);return o&&(o.__u&=-33),[Lt(qe,null,t.__a?null:e.children),o]};var Ji=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]Object.freeze({get current(){return t.current}}),[])}var Kl=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function Bl(e,...t){var r;(r=e==null?void 0:e.addEventListener)==null||r.call(e,...t)}function Gl(e,...t){var r;(r=e==null?void 0:e.removeEventListener)==null||r.call(e,...t)}var Yl=(e,t)=>Object.hasOwn(e,t),Jl=()=>!0,Xl=()=>!1;function Zl(e=!1){let t=zt(e),r=Cl(()=>t.current,[]);return mt(()=>(t.current=!0,()=>{t.current=!1}),[]),r}function Ql(e,...t){let r=Zl(),n=Aa(t[1]),o=ur(()=>function(...i){r()&&(typeof n.current=="function"?n.current.apply(this,i):typeof n.current.handleEvent=="function"&&n.current.handleEvent.apply(this,i))},[]);mt(()=>{let i=eu(e)?e.current:e;if(!i)return;let a=t.slice(2);return Bl(i,t[0],o,...a),()=>{Gl(i,t[0],o,...a)}},[e,t[0]])}function eu(e){return e!==null&&typeof e=="object"&&Yl(e,"current")}var tu=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e?Jl:Xl,ru=Kl?globalThis:null;function Ca(e,t,r=[],n={}){let{event:o="keydown",target:i=ru,eventOptions:a}=n,s=Aa(t),c=ur(()=>{let l=tu(e);return function(u){l(u)&&s.current.call(this,u)}},r);Ql(i,o,c,a)}function Ha(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t1)Ot--;else{for(var e,t=!1;kr!==void 0;){var r=kr;for(kr=void 0,ao++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ia(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(ao=0,Ot--,t)throw e}}function iu(e){if(Ot>0)return e();Ot++;try{return e()}finally{En()}}var ce=void 0;function $a(e){var t=ce;ce=void 0;try{return e()}finally{ce=t}}var kr=void 0,Ot=0,ao=0,yn=0;function Pa(e){if(ce!==void 0){var t=e.n;if(t===void 0||t.t!==ce)return t={i:0,S:e,p:ce.s,n:void 0,t:ce,e:void 0,x:void 0,r:t},ce.s!==void 0&&(ce.s.n=t),ce.s=t,e.n=t,32&ce.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ce.s,t.n=void 0,ce.s.n=t,ce.s=t),t}}function Ce(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Ce.prototype.brand=ou;Ce.prototype.h=function(){return!0};Ce.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:$a(function(){var n;(n=t.W)==null||n.call(t)}))};Ce.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&$a(function(){var o;(o=t.Z)==null||o.call(t)}))}};Ce.prototype.subscribe=function(e){var t=this;return Kt(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}},{name:"sub"})};Ce.prototype.valueOf=function(){return this.value};Ce.prototype.toString=function(){return this.value+""};Ce.prototype.toJSON=function(){return this.value};Ce.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty(Ce.prototype,"value",{get:function(){var e=Pa(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ao>100)throw new Error("Cycle detected");this.v=e,this.i++,yn++,Ot++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{En()}}}});function Mt(e,t){return new Ce(e,t)}function Ia(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ra(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function ja(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Bt(e,t){Ce.call(this,void 0),this.x=e,this.s=void 0,this.g=yn-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Bt.prototype=new Ce;Bt.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===yn))return!0;if(this.g=yn,this.f|=1,this.i>0&&!Ia(this))return this.f&=-2,!0;var e=ce;try{Ra(this),ce=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ce=e,ja(this),this.f&=-2,!0};Bt.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ce.prototype.S.call(this,e)};Bt.prototype.U=function(e){if(this.t!==void 0&&(Ce.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Bt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Bt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Pa(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function ta(e,t){return new Bt(e,t)}function Fa(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Ot++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,ho(e),n}finally{ce=r,En()}}}function ho(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Fa(e)}function au(e){if(ce!==this)throw new Error("Out-of-order effect");ja(this),ce=e,this.f&=-2,8&this.f&&ho(this),En()}function pr(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}pr.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};pr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Fa(this),Ra(this),Ot++;var e=ce;return ce=this,au.bind(this,e)};pr.prototype.N=function(){2&this.f||(this.f|=2,this.o=kr,kr=this)};pr.prototype.d=function(){this.f|=8,1&this.f||ho(this)};pr.prototype.dispose=function(){this.d()};function Kt(e,t){var r=new pr(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var Ua,vo,to,Na=[];Kt(function(){Ua=this.N})();function fr(e,t){B[e]=t.bind(null,B[e]||function(){})}function xn(e){to&&to(),to=e&&e.S()}function Da(e){var t=this,r=e.data,n=cu(r);n.value=r;var o=ur(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=ta(function(){var m=n.value.value;return m===0?0:m===!0?"":m||""}),u=ta(function(){return!Array.isArray(l.value)&&!fa(l.value)}),p=Kt(function(){if(this.N=Wa,u.value){var m=l.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=m)}}),d=t.__$u.d;return t.__$u.d=function(){p(),d.call(this)},[u,l]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}Da.displayName="ReactiveTextNode";Object.defineProperties(Ce.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Da},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});fr("__b",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof Ce&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});fr("__r",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==qe){xn();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(o){var i;return Kt(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i})())),vo=n,xn(r)}e(t)});fr("__e",function(e,t,r,n){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),xn(),vo=void 0,e(t,r,n)});fr("diffed",function(e,t){typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),xn(),vo=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else i={},r.U=i;for(var c in n){var l=i[c],u=n[c];l===void 0?(l=su(r,c,u,o),i[c]=l):l.o(u,o)}}}e(t)});function su(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=Mt(r);return{o:function(a,s){i.value=a,n=s},d:Kt(function(){this.N=Wa;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}fr("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});fr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ct.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function cu(e,t){return _n(function(){return Mt(e,t)})[0]}var lu=function(e){queueMicrotask(function(){queueMicrotask(e)})};function uu(){iu(function(){for(var e;e=Na.shift();)Ua.call(e)})}function Wa(){Na.push(this)===1&&(B.requestAnimationFrame||lu)(uu)}var so=[0];for(let e=0;e<32;e++)so.push(so[e]|1<>>5]>>>e&1}set(e){this.data[e>>>5]|=1<<(e&31)}forEach(e){let t=this.size&31;for(let r=0;r{var r;return(r=t.tags)==null?void 0:r.length})&&(matchMedia("(max-width: 768px)").matches||Va())}function Vt(){et.value=He(k({},et.value),{hideSearch:!et.value.hideSearch})}function Va(){et.value=He(k({},et.value),{hideFilters:!et.value.hideFilters})}function vn(){return et.value.selectedItem}function co(e){et.value=He(k({},et.value),{selectedItem:e})}function mu(){var e,t;return(t=(e=lr.value)==null?void 0:e.items)!=null?t:[]}function Tn(){return typeof Oe.value.input=="string"?Oe.value.input:""}function za(e){let t=qa();e.length&&!t.length?Oe.value=He(k({},Oe.value),{page:void 0,input:e}):!e.length&&t.length?Oe.value=He(k({},Oe.value),{page:void 0,input:{type:"operator",data:{operator:"not",operands:[]}}}):Oe.value=He(k({},Oe.value),{page:void 0,input:e})}function du(){typeof st.value.pagination.next<"u"&&(Oe.value=He(k({},Oe.value),{page:st.value.pagination.next}))}function hu(e){let t=Oe.value.filter.input;if("type"in t&&t.type==="operator"){for(let r of t.data.operands)if("type"in r&&r.type==="value"&&typeof r.data.value=="string"&&r.data.value===e)return!0}return!1}function qa(){let e=Oe.value.filter.input,t=[];if("type"in e&&e.type==="operator")for(let r of e.data.operands)"type"in r&&r.type==="value"&&typeof r.data.value=="string"&&t.push(r.data.value);return t}function vu(e){let t=Oe.value.filter.input,r=[];if("type"in t&&t.type==="operator")for(let n of t.data.operands)"type"in n&&n.type==="value"&&typeof n.data.value=="string"&&r.push(n.data.value);if(r.includes(e)){let n=r.indexOf(e);n>-1&&r.splice(n,1)}else r.push(e);Oe.value=He(k({},Oe.value),{page:void 0,filter:He(k({},Oe.value.filter),{input:{type:"operator",data:{operator:"and",operands:r.map(n=>({type:"value",data:{field:"tags",value:n}}))}}})}),za(Tn())}function bu(){return st.value.items}function gu(){return st.value.total}function _u(){var e;for(let t of(e=st.value.aggregations)!=null?e:[])if(t.type==="term")return t.data.value;return[]}function sr(){return et.value.hideSearch}function yu(){return et.value.hideFilters}function Ka(){var e;return(e=Ba.value.highlight)!=null?e:!1}var et=Mt({hideSearch:!0,hideFilters:!0,selectedItem:0}),Ba=Mt({}),lr=Mt(),na=Mt(),Oe=Mt({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),st=Mt({items:[],query:{select:{documents:new ra(0),terms:new ra(0)},values:[]},pagination:{total:0}});function xu(e,t,r){for(let n=0;tr&&t(0,o,r,r=i);continue;case 62:e.charCodeAt(r+1)===47?t(2,--o,r,r=i+1):xu(e,r,n)?t(3,o,r,r=i+1):t(1,o++,r,r=i+1)}i>r&&t(0,o,r,i)}function Eu(e,t=0,r=e.length){let n=++t;e:for(let l=0;n{let i=[],a=[],{onElement:s,onText:c=Tu}=typeof r=="function"?{onElement:r}:r,l=0,u=0;return e(t,(p,d,m,h)=>{if(p===0)i[l++]=c(t,m,h),a[u++]={value:null,depth:d};else if(p&1&&(a[u++]={value:Eu(t,m,h),depth:d}),p&2)for(let v=0;u>=0;v++){let{value:y,depth:x}=a[--u];if(x>d)continue;let E=i.slice(l-=v,l+v);i[l++]=s(y,E),u++;break}},n,o),i.slice(0,l)}}function Ou(e){return e.replace(/[&<>]/g,t=>{switch(t.charCodeAt(0)){case 38:return"&";case 60:return"<";case 62:return">"}})}function bn(e){return e.replace(/&(amp|[lg]t);/g,t=>{switch(t.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function Lu(e,t){return{start:e.start+t,end:e.end+t,value:e.value}}function Mu(e,t,r){return e.slice(t,r)}function ku(e){let{onHighlight:t,onText:r=Mu}=typeof e=="function"?{onHighlight:e}:e;return(n,o,i=0,a=n.length)=>{var l;let s=[],c=(l=o==null?void 0:o.ranges)!=null?l:[];for(let u=0,p=i;ua)break;let m=c[u].end;if(mi&&s.push(r(n,i,d));let{value:h}=c[u];s.push(t(n,{start:d,end:i=m,value:h}))}return it!==null&&typeof t<"u"&&t!==!1&&!(typeof t=="string"&&t.trim().length===0))}function Ja(e,t){let r=Ga(e,{onElement(n,o){return Lt(n.tag,n.attrs,...o)},onText(n,o,i){return Ya(n,t==null?void 0:t.value.highlight,o,i)}});return U(qe,{children:r})}function Iu(e,t){var n;let r=[];for(let o=0,i=0;om.start=s||c.push(He(k({},m),{start:Math.max(m.start,a),end:Math.min(m.end,s)}));let l=Ga(e,{onElement(m,h){var y;let v=Pu(h);if(v.length!==0)return $u.has(m.tag)?Lt(m.tag,(y=m.attrs)!=null?y:{},...v):m.tag==="li"?U(qe,{children:["\u2013 ",v," "]}):Hu.has(m.tag)?U(qe,{children:[" ",v," "]}):U(qe,{children:v})},onText(m,h,v){let y=Math.max(h,a),x=Math.min(v,s);if(!(y>=x))return Ya(m,{ranges:c},y,x)}});return U(qe,{children:[a>0&&"...",l]})}function Xa(e,t={highlight:!0}){Ba.value=t;let r=new Worker(e);r.onmessage=n=>{let o=n.data;switch(o.type){case 1:na.value=!0;break;case 3:typeof o.data.pagination.prev<"u"?st.value=He(k({},st.value),{pagination:o.data.pagination,items:[...st.value.items,...o.data.items]}):(st.value=o.data,co(0));break}},Kt(()=>{lr.value&&r.postMessage({type:0,data:lr.value})}),Kt(()=>{na.value&&r.postMessage({type:2,data:Oe.value})})}var oa={container:"p",hidden:"v"};function ju(e){return U("div",{class:qt(oa.container,{[oa.hidden]:e.hidden}),onClick:()=>Vt()})}var ia={container:"r",disabled:"c"};function aa(e){return U("button",{class:qt(ia.container,{[ia.disabled]:!e.onClick}),onClick:e.onClick,children:e.children})}var sa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),ca=e=>{let t=Fu(e);return t.charAt(0).toUpperCase()+t.slice(1)},Uu=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Nu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Du=c=>{var l=c,{color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,children:o,iconNode:i,class:a=""}=l,s=gr(l,["color","size","strokeWidth","absoluteStrokeWidth","children","iconNode","class"]);return Lt("svg",k(He(k({},Nu),{width:String(t),height:t,stroke:e,"stroke-width":n?Number(r)*24/Number(t):r,class:["lucide",a].join(" ")}),s),[...i.map(([u,p])=>Lt(u,p)),...Cr(o)])},Za=(e,t)=>{let r=a=>{var s=a,{class:n="",children:o}=s,i=gr(s,["class","children"]);return Lt(Du,He(k({},i),{iconNode:t,class:Uu(`lucide-${sa(ca(e))}`,`lucide-${sa(e)}`,n)}),o)};return r.displayName=ca(e),r},Wu=Za("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]),Vu=Za("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),cw=xl(wl(),1);function zu({threshold:e=0,root:t=null,rootMargin:r="0%",freezeOnceVisible:n=!1,initialIsIntersecting:o=!1,onChange:i}={}){var a;let[s,c]=_n(null),[l,u]=_n(()=>({isIntersecting:o,entry:void 0})),p=zt();p.current=i;let d=((a=l.entry)==null?void 0:a.isIntersecting)&&n;mt(()=>{if(!s||!("IntersectionObserver"in window)||d)return;let v,y=new IntersectionObserver(x=>{let E=Array.isArray(y.thresholds)?y.thresholds:[y.thresholds];x.forEach(_=>{let Z=_.isIntersecting&&E.some(ve=>_.intersectionRatio>=ve);u({isIntersecting:Z,entry:_}),p.current&&p.current(Z,_),Z&&n&&v&&(v(),v=void 0)})},{threshold:e,root:t,rootMargin:r});return y.observe(s),()=>{y.disconnect()}},[s,JSON.stringify(e),t,r,d,n]);let m=zt(null);mt(()=>{var v;!s&&(v=l.entry)!=null&&v.target&&!n&&!d&&m.current!==l.entry.target&&(m.current=l.entry.target,u({isIntersecting:o,entry:void 0}))},[s,l.entry,n,d,o]);let h=[c,!!l.isIntersecting,l.entry];return h.ref=h[0],h.isIntersecting=h[1],h.entry=h[2],h}var pt={container:"n",hidden:"l",content:"y",pop:"d",badge:"w",sidebar:"e",controls:"k",results:"z",loadmore:"j"};function qu(e){let{isIntersecting:t,ref:r}=zu({threshold:0});mt(()=>{t&&du()},[t]);let n=zt(null);mt(()=>{n.current&&typeof Oe.value.page>"u"&&n.current.scrollTo({top:0,behavior:"smooth"})},[Oe.value]);let o=qa();return U("div",{class:qt(pt.container,{[pt.hidden]:e.hidden}),children:[U("div",{class:pt.content,children:[U("div",{class:pt.controls,children:[U(aa,{onClick:Vt,children:U(Vu,{})}),U(Bu,{focus:!e.hidden}),U(aa,{onClick:Va,children:[U(Wu,{}),o.length>0&&U("span",{class:pt.badge,children:o.length})]})]}),U("div",{class:pt.results,ref:n,children:[U(Gu,{keyboard:!e.hidden}),U("div",{class:pt.loadmore,ref:r})]})]}),U("div",{class:qt(pt.sidebar,{[pt.hidden]:yu()}),children:U(Ku,{})})]})}var St={container:"X",list:"F",heading:"I",title:"R",item:"o",active:"g",value:"q",count:"A"};function Ku(e){let t=_u();return t.sort((r,n)=>n.node.count-r.node.count),U("div",{class:St.container,children:[U("h3",{class:St.heading,children:"Filters"}),U("h4",{class:St.title,children:"Tags"}),U("ol",{class:St.list,children:t.map(r=>U("li",{class:qt(St.item,{[St.active]:hu(r.node.value)}),onClick:()=>vu(r.node.value),children:[U("span",{class:St.value,children:r.node.value}),U("span",{class:St.count,children:r.node.count})]}))})]})}var la={container:"f"};function Bu(e){let t=zt(null);return mt(()=>{var r,n;e.focus?(r=t.current)==null||r.focus():(n=t.current)==null||n.blur()},[e.focus]),U("div",{class:la.container,children:U("input",{ref:t,type:"text",class:la.content,value:bn(Tn()),onInput:r=>za(Ou(r.currentTarget.value)),autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox"})})}var at={container:"b",heading:"B",item:"i",active:"h",wrapper:"C",meta:"D",actions:"s",title:"x",path:"t",excerpt:"u",more:"E"};function Qa(){let[e,t]=_n(!1);return mt(()=>{let r=()=>t(!0),n=()=>t(!1);return document.addEventListener("compositionstart",r),document.addEventListener("compositionend",n),()=>{document.removeEventListener("compositionstart",r),document.removeEventListener("compositionend",n)}},[]),e}function Gu(e){var s;let t=mu(),r=bu(),n=vn(),o=zt([]),i=Qa();mt(()=>{let c=o.current[n];c&&c.scrollIntoView({block:"center",behavior:"smooth"})},[n]),Ca(e.keyboard,c=>{if(i)return;let l=vn();c.key==="ArrowDown"?(c.preventDefault(),co(Math.min(l+1,r.length-1))):c.key==="ArrowUp"&&(c.preventDefault(),co(Math.max(l-1,0)))},[e.keyboard,i]);let a=(s=gu())!=null?s:0;return U(qe,{children:[r.length>0&&U("h3",{class:at.heading,children:[U("span",{class:at.bubble,children:new Intl.NumberFormat("en-US").format(a)})," ","results"]}),U("ol",{class:at.container,children:r.map((c,l)=>{var y,x,E,_;let u=c.matches.find(({field:Z})=>Z==="text"),p=Ja(t[c.id].title,c.matches.find(({field:Z})=>Z==="title")),d=Iu((y=t[c.id].path)!=null?y:[],c.matches.find(({field:Z})=>Z==="path")),m=Ru(t[c.id].text,u),h=Math.max(0,((_=(E=(x=u==null?void 0:u.value.highlight)==null?void 0:x.ranges)==null?void 0:E.filter(Z=>Z.start{o.current[l]=Z},href:v,onClick:()=>Vt(),class:qt(at.item,{[at.active]:l===vn()}),children:U("div",{class:at.wrapper,children:[U("div",{class:at.meta,children:U("menu",{class:at.path,children:d.map(Z=>U("li",{children:Z}))})}),U("h2",{class:at.title,children:p}),m&&U("div",{class:at.excerpt,children:m})]})})})})})]})}var Yu={container:"a"};function Ju(e){let t=Qa();return Ca(!0,r=>{var n,o,i,a,s;if(!t)if((r.metaKey||r.ctrlKey)&&r.key==="k")r.preventDefault(),Vt();else if((r.metaKey||r.ctrlKey)&&r.key==="j")document.body.classList.toggle("dark");else if(r.key==="Enter"&&!sr()){r.preventDefault();let c=vn(),l=(o=(n=st.value)==null?void 0:n.items[c])==null?void 0:o.id;if((a=(i=lr.value)==null?void 0:i.items[l])!=null&&a.location){Vt();let u=(s=lr.value)==null?void 0:s.items[l].location;if(Ka()){let p=encodeURIComponent(Tn()),[d,m]=u.split("#",2);u=`${d}?h=${p.replace(/%20/g,"+")}`,typeof m<"u"&&(u+=`#${m}`)}window.location.href=u}}else r.key==="Escape"&&!sr()&&(r.preventDefault(),Vt())},[t]),U("div",{class:Yu.container,children:[U(ju,{hidden:sr()}),U(qu,{hidden:sr()})]})}function es(e,t){fu(e),kl(U(Ju,{}),t)}function bo(){Vt()}function Xu(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 Zu(){return R(b(window,"compositionstart").pipe(f(()=>!0)),b(window,"compositionend").pipe(f(()=>!1))).pipe(J(!1))}function ts(){let e=b(window,"keydown").pipe(f(t=>({mode:sr()?"global":"search",type:t.key,meta:t.ctrlKey||t.metaKey,claim(){t.preventDefault(),t.stopPropagation()}})),O(({mode:t,type:r})=>{if(t==="global"){let n=xt();if(typeof n!="undefined")return!Xu(n,r)}return!0}),xe());return Zu().pipe(g(t=>t?w:e))}function Ue(){return new URL(location.href)}function dt(e,t=!1){if(X("navigation.instant")&&!t){let r=A("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function rs(){return new I}function ns(){return location.hash.slice(1)}function os(e){let t=A("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function go(e){return R(b(window,"hashchange"),e).pipe(f(ns),J(ns()),O(t=>t.length>0),f(decodeURIComponent),ae(1))}function is(e){return go(e).pipe(f(t=>we(`[id="${t}"]`)),O(t=>typeof t!="undefined"))}function Ir(e){let t=matchMedia(e);return sn(r=>t.addListener(()=>r(t.matches))).pipe(J(t.matches))}function as(){let e=matchMedia("print");return R(b(window,"beforeprint").pipe(f(()=>!0)),b(window,"afterprint").pipe(f(()=>!1))).pipe(J(e.matches))}function _o(e,t){return e.pipe(g(r=>r?t():w))}function yo(e,t){return new N(r=>{let n=new XMLHttpRequest;return n.open("GET",`${e}`),n.responseType="blob",n.addEventListener("load",()=>{n.status>=200&&n.status<300?(r.next(n.response),r.complete()):r.error(new Error(n.statusText))}),n.addEventListener("error",()=>{r.error(new Error("Network error"))}),n.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(n.addEventListener("progress",o=>{var i;if(o.lengthComputable)t.progress$.next(o.loaded/o.total*100);else{let a=(i=n.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(o.loaded/+a*100)}}),t.progress$.next(5)),n.send(),()=>n.abort()})}function tt(e,t){return yo(e,t).pipe(g(r=>r.text()),f(r=>JSON.parse(r)),ae(1))}function Sn(e,t){let r=new DOMParser;return yo(e,t).pipe(g(n=>n.text()),f(n=>r.parseFromString(n,"text/html")),ae(1))}function ss(e,t){let r=new DOMParser;return yo(e,t).pipe(g(n=>n.text()),f(n=>r.parseFromString(n,"text/xml")),ae(1))}var xo={drawer:Y("[data-md-toggle=drawer]"),search:Y("[data-md-toggle=search]")};function wo(e,t){xo[e].checked!==t&&xo[e].click()}function On(e){let t=xo[e];return b(t,"change").pipe(f(()=>t.checked),J(t.checked))}function cs(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function ls(){return R(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(f(cs),J(cs()))}function us(){return{width:innerWidth,height:innerHeight}}function ps(){return b(window,"resize",{passive:!0}).pipe(f(us),J(us()))}function fs(){return ne([ls(),ps()]).pipe(f(([e,t])=>({offset:e,size:t})),ae(1))}function Ln(e,{viewport$:t,header$:r}){let n=t.pipe(he("size")),o=ne([n,r]).pipe(f(()=>Et(e)));return ne([r,t,o]).pipe(f(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}var Qu=Y("#__config"),mr=JSON.parse(Qu.textContent);mr.base=`${new URL(mr.base,Ue())}`;function Ne(){return mr}function X(e){return mr.features.includes(e)}function Gt(e,t){return typeof t!="undefined"?mr.translations[e].replace("#",t.toString()):mr.translations[e]}function ht(e,t=document){return Y(`[data-md-component=${e}]`,t)}function Te(e,t=document){return $(`[data-md-component=${e}]`,t)}function ep(e){let t=Y(".md-typeset > :first-child",e);return b(t,"click",{once:!0}).pipe(f(()=>Y(".md-typeset",e)),f(r=>({hash:__md_hash(r.innerHTML)})))}function ms(e){if(!X("announce.dismiss")||!e.childElementCount)return w;if(!e.hidden){let t=Y(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return j(()=>{let t=new I;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),ep(e).pipe(P(r=>t.next(r)),z(()=>t.complete()),f(r=>k({ref:e},r)))})}function tp(e,{target$:t}){return t.pipe(f(r=>({hidden:r!==e})))}function ds(e,t){let r=new I;return r.subscribe(({hidden:n})=>{e.hidden=n}),tp(e,t).pipe(P(n=>r.next(n)),z(()=>r.complete()),f(n=>k({ref:e},n)))}function Eo(e,t){return t==="inline"?A("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},A("div",{class:"md-tooltip__inner md-typeset"})):A("div",{class:"md-tooltip",id:e,role:"tooltip"},A("div",{class:"md-tooltip__inner md-typeset"}))}function Mn(...e){return A("div",{class:"md-tooltip2",role:"dialog"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function hs(...e){return A("div",{class:"md-tooltip2",role:"tooltip"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function vs(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return A("aside",{class:"md-annotation",tabIndex:0},Eo(t),A("a",{href:r,class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}else return A("aside",{class:"md-annotation",tabIndex:0},Eo(t),A("span",{class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}function bs(e){return A("button",{class:"md-code__button",title:Gt("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function gs(){return A("button",{class:"md-code__button",title:"Toggle line selection","data-md-type":"select"})}function _s(){return A("nav",{class:"md-code__nav"})}var op=_r(To());function xs(e){return A("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>A("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Oi(r):r)))}function So(e){let t=`tabbed-control tabbed-control--${e}`;return A("div",{class:t,hidden:!0},A("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function ws(e){return A("div",{class:"md-typeset__scrollwrap"},A("div",{class:"md-typeset__table"},e))}function ip(e){var n;let t=Ne(),r=new URL(`../${e.version}/`,t.base);return A("li",{class:"md-version__item"},A("a",{href:`${r}`,class:"md-version__link"},e.title,((n=t.version)==null?void 0:n.alias)&&e.aliases.length>0&&A("span",{class:"md-version__alias"},e.aliases[0])))}function Es(e,t){var n;let r=Ne();return e=e.filter(o=>{var i;return!((i=o.properties)!=null&&i.hidden)}),A("div",{class:"md-version"},A("button",{class:"md-version__current","aria-label":Gt("select.version")},t.title,((n=r.version)==null?void 0:n.alias)&&t.aliases.length>0&&A("span",{class:"md-version__alias"},t.aliases[0])),A("ul",{class:"md-version__list"},e.map(ip)))}var ap=0;function sp(e,t=250){let r=ne([ar(e),Nt(e,t)]).pipe(f(([o,i])=>o||i),se()),n=j(()=>Ai(e)).pipe(ie(Dt),Lr(1),Qe(r),f(()=>Ci(e)));return r.pipe(Sr(o=>o),g(()=>ne([r,n])),f(([o,i])=>({active:o,offset:i})),xe())}function Rr(e,t,r=250){let{content$:n,viewport$:o}=t,i=`__tooltip2_${ap++}`;return j(()=>{let a=new I,s=new Dn(!1);a.pipe(be(),ye(!1)).subscribe(s);let c=s.pipe(Tr(u=>ze(+!u*250,zn)),se(),g(u=>u?n:w),P(u=>u.id=i),xe());ne([a.pipe(f(({active:u})=>u)),c.pipe(g(u=>Nt(u,250)),J(!1))]).pipe(f(u=>u.some(p=>p))).subscribe(s);let l=s.pipe(O(u=>u),fe(c,o),f(([u,p,{size:d}])=>{let m=e.getBoundingClientRect(),h=m.width/2;if(p.role==="tooltip")return{x:h,y:8+m.height};if(m.y>=d.height/2){let{height:v}=Ae(p);return{x:h,y:-16-v}}else return{x:h,y:16+m.height}}));return ne([c,a,l]).subscribe(([u,{offset:p},d])=>{u.style.setProperty("--md-tooltip-host-x",`${p.x}px`),u.style.setProperty("--md-tooltip-host-y",`${p.y}px`),u.style.setProperty("--md-tooltip-x",`${d.x}px`),u.style.setProperty("--md-tooltip-y",`${d.y}px`),u.classList.toggle("md-tooltip2--top",d.y<0),u.classList.toggle("md-tooltip2--bottom",d.y>=0)}),s.pipe(O(u=>u),fe(c,(u,p)=>p),O(u=>u.role==="tooltip")).subscribe(u=>{let p=Ae(Y(":scope > *",u));u.style.setProperty("--md-tooltip-width",`${p.width}px`),u.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(se(),Ie(je),fe(c)).subscribe(([u,p])=>{p.classList.toggle("md-tooltip2--active",u)}),ne([s.pipe(O(u=>u)),c]).subscribe(([u,p])=>{p.role==="dialog"?(e.setAttribute("aria-controls",i),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",i)}),s.pipe(O(u=>!u)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),sp(e,r).pipe(P(u=>a.next(u)),z(()=>a.complete()),f(u=>k({ref:e},u)))})}function Je(e,{viewport$:t},r=document.body){return Rr(e,{content$:new N(n=>{let o=e.title,i=hs(o);return n.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",o)}}),viewport$:t},0)}function cp(e,t){let r=j(()=>ne([Hi(e),Dt(t)])).pipe(f(([{x:n,y:o},i])=>{let{width:a,height:s}=Ae(e);return{x:n-i.x+a/2,y:o-i.y+s/2}}));return ar(e).pipe(g(n=>r.pipe(f(o=>({active:n,offset:o})),Me(+!n||1/0))))}function Ts(e,t,{target$:r}){let[n,o]=Array.from(e.children);return j(()=>{let i=new I,a=i.pipe(be(),ye(!0));return i.subscribe({next({offset:s}){e.style.setProperty("--md-tooltip-x",`${s.x}px`),e.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),Tt(e).pipe(ee(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),R(i.pipe(O(({active:s})=>s)),i.pipe(Ye(250),O(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(n):n.remove()},complete(){e.prepend(n)}}),i.pipe(Ze(16,je)).subscribe(({active:s})=>{n.classList.toggle("md-tooltip--active",s)}),i.pipe(Lr(125,je),O(()=>!!e.offsetParent),f(()=>e.offsetParent.getBoundingClientRect()),f(({x:s})=>s)).subscribe({next(s){s?e.style.setProperty("--md-tooltip-0",`${-s}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),b(o,"click").pipe(ee(a),O(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),b(o,"mousedown").pipe(ee(a),fe(i)).subscribe(([s,{active:c}])=>{var l;if(s.button!==0||s.metaKey||s.ctrlKey)s.preventDefault();else if(c){s.preventDefault();let u=e.parentElement.closest(".md-annotation");u instanceof HTMLElement?u.focus():(l=xt())==null||l.blur()}}),r.pipe(ee(a),O(s=>s===n),jt(125)).subscribe(()=>e.focus()),cp(e,t).pipe(P(s=>i.next(s)),z(()=>i.complete()),f(s=>k({ref:e},s)))})}function lp(e){let t=Ne();if(e.tagName!=="CODE")return[e];let r=[".c",".c1",".cm"];if(t.annotate){let n=e.closest("[class|=language]");if(n)for(let o of Array.from(n.classList)){if(!o.startsWith("language-"))continue;let[,i]=o.split("-");i in t.annotate&&r.push(...t.annotate[i])}}return $(r.join(", "),e)}function up(e){let t=[];for(let r of lp(e)){let n=[],o=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=o.nextNode();i;i=o.nextNode())n.push(i);for(let i of n){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,c]=a;if(typeof c=="undefined"){let l=i.splitText(a.index);i=l.splitText(s.length),t.push(l)}else{i.textContent=s,t.push(i);break}}}}return t}function Ss(e,t){t.append(...Array.from(e.childNodes))}function kn(e,t,{target$:r,print$:n}){let o=t.closest("[id]"),i=o==null?void 0:o.id,a=new Map;for(let s of up(t)){let[,c]=s.textContent.match(/\((\d+)\)/);we(`:scope > li:nth-child(${c})`,e)&&(a.set(c,vs(c,i)),s.replaceWith(a.get(c)))}return a.size===0?w:j(()=>{let s=new I,c=s.pipe(be(),ye(!0)),l=[];for(let[u,p]of a)l.push([Y(".md-typeset",p),Y(`:scope > li:nth-child(${u})`,e)]);return n.pipe(ee(c)).subscribe(u=>{e.hidden=!u,e.classList.toggle("md-annotation-list",u);for(let[p,d]of l)u?Ss(p,d):Ss(d,p)}),R(...[...a].map(([,u])=>Ts(u,t,{target$:r}))).pipe(z(()=>s.complete()),xe())})}function Os(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Os(t)}}function Ls(e,t){return j(()=>{let r=Os(e);return typeof r!="undefined"?kn(r,e,t):w})}var ks=_r(Lo());var pp=0,Ms=R(b(window,"keydown").pipe(f(()=>!0)),R(b(window,"keyup"),b(window,"contextmenu")).pipe(f(()=>!1))).pipe(J(!1),ae(1));function As(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return As(t)}}function fp(e){return Re(e).pipe(f(({width:t})=>({scrollable:Mr(e).width>t})),he("scrollable"))}function Cs(e,t){let{matches:r}=matchMedia("(hover)"),n=j(()=>{let o=new I,i=o.pipe(Jn(1));o.subscribe(({scrollable:m})=>{m&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let a=[],s=e.closest("pre"),c=s.closest("[id]"),l=c?c.id:pp++;s.id=`__code_${l}`;let u=[],p=e.closest(".highlight");if(p instanceof HTMLElement){let m=As(p);if(typeof m!="undefined"&&(p.classList.contains("annotate")||X("content.code.annotate"))){let h=kn(m,e,t);u.push(Re(p).pipe(ee(i),f(({width:v,height:y})=>v&&y),se(),g(v=>v?h:w)))}}let d=$(":scope > span[id]",e);if(d.length&&(e.classList.add("md-code__content"),e.closest(".select")||X("content.code.select")&&!e.closest(".no-select"))){let m=+d[0].id.split("-").pop(),h=gs();a.push(h),X("content.tooltips")&&u.push(Je(h,{viewport$}));let v=b(h,"click").pipe(Or(L=>!L,!1),P(()=>h.blur()),xe());v.subscribe(L=>{h.classList.toggle("md-code__button--active",L)});let y=me(d).pipe(ie(L=>Nt(L).pipe(f(M=>[L,M]))));v.pipe(g(L=>L?y:w)).subscribe(([L,M])=>{let D=we(".hll.select",L);if(D&&!M)D.replaceWith(...Array.from(D.childNodes));else if(!D&&M){let te=document.createElement("span");te.className="hll select",te.append(...Array.from(L.childNodes).slice(1)),L.append(te)}});let x=me(d).pipe(ie(L=>b(L,"mousedown").pipe(P(M=>M.preventDefault()),f(()=>L)))),E=v.pipe(g(L=>L?x:w),fe(Ms),f(([L,M])=>{var te;let D=d.indexOf(L)+m;if(M===!1)return[D,D];{let ue=$(".hll",e).map(le=>d.indexOf(le.parentElement)+m);return(te=window.getSelection())==null||te.removeAllRanges(),[Math.min(D,...ue),Math.max(D,...ue)]}})),_=go(w).pipe(O(L=>L.startsWith(`__codelineno-${l}-`)));_.subscribe(L=>{let[,,M]=L.split("-"),D=M.split(":").map(ue=>+ue-m+1);D.length===1&&D.push(D[0]);for(let ue of $(".hll:not(.select)",e))ue.replaceWith(...Array.from(ue.childNodes));let te=d.slice(D[0]-1,D[1]);for(let ue of te){let le=document.createElement("span");le.className="hll",le.append(...Array.from(ue.childNodes).slice(1)),ue.append(le)}}),_.pipe(Me(1),Ie(_e)).subscribe(L=>{if(L.includes(":")){let M=document.getElementById(L.split(":")[0]);M&&setTimeout(()=>{let D=M,te=-64;for(;D!==document.body;)te+=D.offsetTop,D=D.offsetParent;window.scrollTo({top:te})},1)}});let ve=me($('a[href^="#__codelineno"]',p)).pipe(ie(L=>b(L,"click").pipe(P(M=>M.preventDefault()),f(()=>L)))).pipe(ee(i),fe(Ms),f(([L,M])=>{let te=+Y(`[id="${L.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(M===!1)return[te,te];{let ue=$(".hll",e).map(le=>+le.parentElement.id.split("-").pop());return[Math.min(te,...ue),Math.max(te,...ue)]}}));R(E,ve).subscribe(L=>{let M=`#__codelineno-${l}-`;L[0]===L[1]?M+=L[0]:M+=`${L[0]}:${L[1]}`,history.replaceState({},"",M),window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:window.location.origin+window.location.pathname+M,oldURL:window.location.href}))})}if(ks.default.isSupported()&&(e.closest(".copy")||X("content.code.copy")&&!e.closest(".no-copy"))){let m=bs(s.id);a.push(m),X("content.tooltips")&&u.push(Je(m,{viewport$}))}if(a.length){let m=_s();m.append(...a),s.insertBefore(m,e)}return fp(e).pipe(P(m=>o.next(m)),z(()=>o.complete()),f(m=>k({ref:e},m)),Ft(R(...u).pipe(ee(i))))});return X("content.lazy")?Tt(e).pipe(O(o=>o),Me(1),g(()=>n)):n}function mp(e,{target$:t,print$:r}){let n=!0;return R(t.pipe(f(o=>o.closest("details:not([open])")),O(o=>e===o),f(()=>({action:"open",reveal:!0}))),r.pipe(O(o=>o||!n),P(()=>n=e.open),f(o=>({action:o?"open":"close"}))))}function Hs(e,t){return j(()=>{let r=new I;return r.subscribe(({action:n,reveal:o})=>{e.toggleAttribute("open",n==="open"),o&&e.scrollIntoView()}),mp(e,t).pipe(P(n=>r.next(n)),z(()=>r.complete()),f(n=>k({ref:e},n)))})}var $s;function dp(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?wt("https://unpkg.com/glightbox@3/dist/js/glightbox.min.js").pipe(de(()=>w),f(()=>{})):K(void 0)}function hp(){return Li("https://unpkg.com/glightbox@3/dist/css/glightbox.min.css").pipe(de(()=>w),f(()=>{}))}function Ps(e){return $s||($s=dp().pipe(f(()=>new GLightbox(k({touchNavigation:!0,loop:!1,zoomable:!0,draggable:!0,openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",onOpen:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}},typeof GLightboxOptions!="undefined"?GLightboxOptions:{}))),ae(1))),hp().pipe(g(()=>$s),g(t=>(t.reload(),e.map(r=>({ref:r})))))}var Is=0,Rs=new Map;function vp(e){let t=document.createElement("h3");t.innerHTML=e.innerHTML;let r=[t],n=e.nextElementSibling;for(;n&&!(n instanceof HTMLHeadingElement);)r.push(n.cloneNode(!0)),n=n.nextElementSibling;return r}function bp(e,t){for(let r of $("[href], [src]",e))for(let n of["href","src"]){let o=r.getAttribute(n);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){r[n]=new URL(r.getAttribute(n),t).toString();break}}for(let r of $("[name^=__], [for]",e))for(let n of["id","for","name"]){let o=r.getAttribute(n);o&&r.setAttribute(n,`${o}$preview_${Is}`)}return Is++,K(e)}function gp(e){let t=Rs.get(e.toString());return t?K(t):Sn(e).pipe(g(r=>bp(r,e)),f(r=>(Rs.set(e.toString(),r),r)))}function js(e,t){let{sitemap$:r}=t;if(!(e instanceof HTMLAnchorElement))return w;if(!(X("navigation.instant.preview")||e.hasAttribute("data-preview")))return w;e.removeAttribute("title");let n=ne([ar(e),Nt(e).pipe(ke(1))]).pipe(f(([i,a])=>i||a),se(),O(i=>i));return It([r,n]).pipe(g(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?K(a):w}),g(i=>gp(i)),g(i=>{let a=e.hash?`article [id="${decodeURIComponent(e.hash.slice(1))}"]`:"article h1",s=we(a,i);return typeof s=="undefined"?w:K(vp(s))})).pipe(g(i=>{let a=new N(s=>{let c=Mn(...i);return s.next(c),document.body.append(c),()=>c.remove()});return Rr(e,k({content$:a},t))}))}var Fs=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.flowchartTitleText{fill:var(--md-mermaid-label-fg-color)}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel p,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel p{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}.classDiagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs marker.marker.composition.class path,defs marker.marker.dependency.class path,defs marker.marker.extension.class path{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs marker.marker.aggregation.class path{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}.statediagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}a .nodeLabel{text-decoration:underline}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}[id^=entity] path,[id^=entity] rect{fill:var(--md-default-bg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs .marker.oneOrMore.er *,defs .marker.onlyOne.er *,defs .marker.zeroOrMore.er *,defs .marker.zeroOrOne.er *{stroke:var(--md-mermaid-edge-color)!important}text:not([class]):last-child{fill:var(--md-mermaid-label-fg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}.actor-line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}[id$=-arrowhead] path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}";var Mo,yp=0;function xp(){return typeof mermaid=="undefined"||mermaid instanceof Element?wt("https://unpkg.com/mermaid@11/dist/mermaid.min.js"):K(void 0)}function Us(e){return e.classList.remove("mermaid"),Mo||(Mo=xp().pipe(P(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Fs,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),f(()=>{}),ae(1))),Mo.subscribe(()=>Fo(null,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${yp++}`,r=A("div",{class:"mermaid"}),n=e.textContent,{svg:o,fn:i}=yield mermaid.render(t,n),a=r.attachShadow({mode:"closed"});a.innerHTML=o,e.replaceWith(r),i==null||i(a)})),Mo.pipe(f(()=>({ref:e})))}var Ns=A("table");function Ds(e){return e.replaceWith(Ns),Ns.replaceWith(ws(e)),K({ref:e})}function wp(e){let t=e.find(r=>r.checked)||e[0];return R(...e.map(r=>b(r,"change").pipe(f(()=>Y(`label[for="${r.id}"]`))))).pipe(J(Y(`label[for="${t.id}"]`)),f(r=>({active:r})))}function Ws(e,{viewport$:t,target$:r}){let n=Y(".tabbed-labels",e),o=$(":scope > input",e),i=So("prev");e.append(i);let a=So("next");return e.append(a),j(()=>{let s=new I,c=s.pipe(be(),ye(!0));ne([s,Re(e),Tt(e)]).pipe(ee(c),Ze(1,je)).subscribe({next([{active:l},u]){let p=Et(l),{width:d}=Ae(l);e.style.setProperty("--md-indicator-x",`${p.x}px`),e.style.setProperty("--md-indicator-width",`${d}px`);let m=pn(n);(p.xm.x+u.width)&&n.scrollTo({left:Math.max(0,p.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),ne([Dt(n),Re(n)]).pipe(ee(c)).subscribe(([l,u])=>{let p=Mr(n);i.hidden=l.x<16,a.hidden=l.x>p.width-u.width-16}),R(b(i,"click").pipe(f(()=>-1)),b(a,"click").pipe(f(()=>1))).pipe(ee(c)).subscribe(l=>{let{width:u}=Ae(n);n.scrollBy({left:u*l,behavior:"smooth"})}),r.pipe(ee(c),O(l=>o.includes(l))).subscribe(l=>l.click()),n.classList.add("tabbed-labels--linked");for(let l of o){let u=Y(`label[for="${l.id}"]`);u.replaceChildren(A("a",{href:`#${u.htmlFor}`,tabIndex:-1},...Array.from(u.childNodes))),b(u.firstElementChild,"click").pipe(ee(c),O(p=>!(p.metaKey||p.ctrlKey)),P(p=>{p.preventDefault(),p.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${u.htmlFor}`),u.click()})}return X("content.tabs.link")&&s.pipe(ke(1),fe(t)).subscribe(([{active:l},{offset:u}])=>{let p=l.innerText.trim();if(l.hasAttribute("data-md-switching"))l.removeAttribute("data-md-switching");else{let d=e.offsetTop-u.y;for(let h of $("[data-tabs]"))for(let v of $(":scope > input",h)){let y=Y(`label[for="${v.id}"]`);if(y!==l&&y.innerText.trim()===p){y.setAttribute("data-md-switching",""),v.click();break}}window.scrollTo({top:e.offsetTop-d});let m=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([p,...m])])}}),s.pipe(ee(c)).subscribe(()=>{for(let l of $("audio, video",e))l.offsetWidth&&l.autoplay?l.play().catch(()=>{}):l.pause()}),wp(o).pipe(P(l=>s.next(l)),z(()=>s.complete()),f(l=>k({ref:e},l)))}).pipe(Pt(_e))}function Vs(e,t){let{viewport$:r,target$:n,print$:o}=t;return R(...$(".annotate:not(.highlight)",e).map(i=>Ls(i,{target$:n,print$:o})),...$("pre:not(.mermaid) > code",e).map(i=>Cs(i,{target$:n,print$:o})),...$("a",e).map(i=>js(i,t)),...$("pre.mermaid",e).map(i=>Us(i)),...[$(".glightbox",e)].filter(i=>i.length>0).map(i=>Ps(i)),...$("table:not([class])",e).map(i=>Ds(i)),...$("details",e).map(i=>Hs(i,{target$:n,print$:o})),...$("[data-tabs]",e).map(i=>Ws(i,{viewport$:r,target$:n})),...$("[title]:not([data-preview])",e).filter(()=>X("content.tooltips")).map(i=>Je(i,{viewport$:r})),...$(".footnote-ref",e).filter(()=>X("content.footnote.tooltips")).map(i=>Rr(i,{content$:new N(a=>{let s=new URL(i.href).hash.slice(1),c=Array.from(document.getElementById(s).cloneNode(!0).children),l=Mn(...c);return a.next(l),document.body.append(l),()=>l.remove()}),viewport$:r})))}function Ep(e,{alert$:t}){return t.pipe(g(r=>R(K(!0),K(!1).pipe(jt(2e3))).pipe(f(n=>({message:r,active:n})))))}function zs(e,t){let r=Y(".md-typeset",e);return j(()=>{let n=new I;return n.subscribe(({message:o,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=o}),Ep(e,t).pipe(P(o=>n.next(o)),z(()=>n.complete()),f(o=>k({ref:e},o)))})}function Tp({viewport$:e}){if(!X("header.autohide"))return K(!1);let t=e.pipe(f(({offset:{y:o}})=>o),Rt(2,1),f(([o,i])=>[oMath.abs(i-o.y)>100),f(([,[o]])=>o),se()),n=On("search");return ne([e,n]).pipe(f(([{offset:o},i])=>o.y>400&&!i),se(),g(o=>o?r:K(!1)),J(!1))}function qs(e,t){return j(()=>ne([Re(e),Tp(t)])).pipe(f(([{height:r},n])=>({height:r,hidden:n})),se((r,n)=>r.height===n.height&&r.hidden===n.hidden),ae(1))}function Ks(e,{viewport$:t,header$:r,main$:n}){return j(()=>{let o=new I,i=o.pipe(be(),ye(!0));o.pipe(he("active"),Qe(r)).subscribe(([{active:s},{hidden:c}])=>{e.classList.toggle("md-header--shadow",s&&!c),e.hidden=c});let a=me($("[title]",e)).pipe(O(()=>X("content.tooltips")),ie(s=>Je(s,{viewport$:t})));return n.subscribe(o),r.pipe(ee(i),f(s=>k({ref:e},s)),Ft(a.pipe(ee(i))))})}function Sp(e,{viewport$:t,header$:r}){return Ln(e,{viewport$:t,header$:r}).pipe(f(({offset:{y:n}})=>{let{height:o}=Ae(e);return{active:o>0&&n>=o}}),he("active"))}function Bs(e,t){return j(()=>{let r=new I;r.subscribe({next({active:o}){e.classList.toggle("md-header__title--active",o)},complete(){e.classList.remove("md-header__title--active")}});let n=we(".md-content h1");return typeof n=="undefined"?w:Sp(n,t).pipe(P(o=>r.next(o)),z(()=>r.complete()),f(o=>k({ref:e},o)))})}function Gs(e,{viewport$:t,header$:r}){let n=r.pipe(f(({height:i})=>i),se()),o=n.pipe(g(()=>Re(e).pipe(f(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),he("bottom"))));return ne([n,o,t]).pipe(f(([i,{top:a,bottom:s},{offset:{y:c},size:{height:l}}])=>(l=Math.max(0,l-Math.max(0,a-c,i)-Math.max(0,l+c-s)),{offset:a-i,height:l,active:a-i<=c})),se((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Op(e){let t=__md_get("__palette")||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return K(...e).pipe(ie(n=>b(n,"change").pipe(f(()=>n))),J(e[r]),f(n=>({index:e.indexOf(n),color:{media:n.getAttribute("data-md-color-media"),scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),ae(1))}function Ys(e){let t=$("input",e),r=A("meta",{name:"theme-color"});document.head.appendChild(r);let n=A("meta",{name:"color-scheme"});document.head.appendChild(n);let o=Ir("(prefers-color-scheme: light)");return j(()=>{let i=new I;return i.subscribe(a=>{if(document.body.setAttribute("data-md-color-switching",""),a.color.media==="(prefers-color-scheme)"){let s=matchMedia("(prefers-color-scheme: light)"),c=document.querySelector(s.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=c.getAttribute("data-md-color-scheme"),a.color.primary=c.getAttribute("data-md-color-primary"),a.color.accent=c.getAttribute("data-md-color-accent")}for(let[s,c]of Object.entries(a.color))document.body.setAttribute(`data-md-color-${s}`,c);for(let s=0;sa.key==="Enter"),fe(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(f(()=>{let a=ht("header"),s=window.getComputedStyle(a);return n.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(c=>(+c).toString(16).padStart(2,"0")).join("")})).subscribe(a=>r.content=`#${a}`),i.pipe(Ie(_e)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),Op(t).pipe(ee(o.pipe(ke(1))),Ut(),P(a=>i.next(a)),z(()=>i.complete()),f(a=>k({ref:e},a)))})}function Js(e,{progress$:t}){return j(()=>{let r=new I;return r.subscribe(({value:n})=>{e.style.setProperty("--md-progress-value",`${n}`)}),t.pipe(P(n=>r.next({value:n})),z(()=>r.complete()),f(n=>({ref:e,value:n})))})}var Xs='.m u{text-decoration:underline!important;text-decoration-style:wavy!important;text-decoration-thickness:1px!important}.p{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-backdrop)/var(--alpha-lighter));cursor:pointer;height:100%;pointer-events:auto;position:absolute;transition:opacity .25s;width:100%}.p.v{opacity:0;pointer-events:none;transition:opacity .35s}.r{align-items:center;background-color:initial;border:none;border-radius:var(--space-2);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);height:36px;justify-content:center;outline:none;padding:0;position:relative;transition:background-color .25s,color .25s;width:36px;z-index:1}.r svg{stroke:rgb(var(--color-foreground));height:18px;opacity:.5;width:18px}.r:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.r:hover:before{opacity:1;transform:scale(1)}.r.c{cursor:auto}.r.c:before{display:none}.n{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background)/var(--alpha-light));border:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));border-radius:var(--space-3);box-shadow:0 0 60px #0000000d;display:flex;height:480px;overflow:hidden;pointer-events:auto;position:absolute;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s;width:640px}.n.l{opacity:0;pointer-events:none;transform:scale(1.1);transition:transform .25s .15s,opacity .15s}@media (max-width:680px){.n{border-radius:0;height:100%;width:100%}}.y{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;min-width:0}@keyframes d{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.w{animation:d .25s ease-in-out;background:var(--color-highlight);border-radius:100%;color:#fff;font-size:8px;font-weight:700;height:12px;padding-top:1px;position:absolute;right:4px;top:4px;width:12px}.e{background-color:rgb(var(--color-background-subtle)/var(--alpha-lighter));border-left:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));flex-shrink:0;overflow:scroll;position:relative;transition:width .35s cubic-bezier(.16,1,.3,1),opacity .25s;width:200px}.e>*{transform:translate(0);transition:transform .25s cubic-bezier(.16,1,.3,1)}.e.l{opacity:0;width:0}.e.l>*{transform:translate(-48px)}@media (max-width:680px){.e{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background-subtle)/var(--alpha-light));box-shadow:0 0 60px #00000026;height:100%;position:absolute;right:0;top:0}}.k{border-bottom:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));display:flex;gap:var(--space-1);padding:var(--space-2)}.z{-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}.j{padding:8px 10px}.X{color:rgb(var(--color-foreground)/var(--alpha-light));padding:var(--space-2);position:absolute;width:200px}.F,.X{display:flex;flex-direction:column}.F{gap:2px;list-style:none;padding:0}.F,.I{margin:0}.I{font-size:16px;font-weight:400}.I,.R{padding:8px}.R{font-size:14px;margin:4px 0 0;opacity:.5}.R,.o{font-size:12px}.o{cursor:pointer;display:flex;padding:4px 8px;position:relative}.o:before{background-color:var(--color-highlight-transparent);border-radius:var(--space-1);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.o.g:before,.o:hover:before{opacity:1;transform:scale(1)}.o.g,.o:hover{color:var(--color-highlight)}.q{flex-grow:1}.A,.q{position:relative}.A{font-weight:700}.f{flex-grow:1}.f input{background:#0000;border:none;color:rgb(var(--color-foreground));font-family:var(--font-family);font-size:16px;height:100%;letter-spacing:-.25px;outline:none;width:100%}.b{color:rgb(var(--color-foreground)/var(--alpha-light));display:flex;flex-direction:column;gap:2px;line-height:1.3;list-style:none;margin:var(--space-2);margin-top:0;padding:0}.B,.b li{margin:0}.B{color:rgb(var(--color-foreground)/var(--alpha-lighter));font-size:12px;margin-top:var(--space-2);padding:0 18px}.i{border-radius:var(--space-2);color:inherit;cursor:pointer;display:flex;flex-direction:row;flex-grow:1;padding:8px 10px;position:relative;text-decoration:none}.i:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";display:block;inset:0;opacity:0;position:absolute;transform:scale(.9);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.i.h:before,.i:hover:before{opacity:1;transform:scale(1)}}.i mark{background:#0000;color:var(--color-highlight)}.i u{text-decoration:underline}.C{flex-direction:column;flex-grow:1;gap:5.5px}.C,.D{display:flex;min-width:0}.D{align-items:flex-start;gap:var(--space-2);justify-content:space-between}.s{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:6px;justify-content:flex-end;margin-right:-8px;margin-top:auto;opacity:0;position:relative;transform:translate(-2px);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.h>.s,:hover>.s{opacity:1;transform:none}}.x{font-size:14px;margin:0;position:relative}.x code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);font-size:13px;padding:2px 4px}.t{color:rgb(var(--color-foreground)/.45);display:inline-flex;flex:1 1 auto;flex-wrap:wrap;font-size:12px;gap:var(--space-1);list-style:none;margin:0;min-width:0;padding:0;position:relative}.t li{white-space:nowrap}.t li:after{content:"/";display:inline;margin-left:var(--space-1)}.t li:last-child:after{content:"";display:none}.u{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:rgb(var(--color-foreground));display:-webkit-box;font-size:12px;line-height:1.5;overflow:hidden;position:relative}.u code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px}.E,.u code{font-size:11px}.E{color:rgb(var(--color-foreground)/.45);line-height:1;white-space:nowrap;z-index:1}.a{--space-1:4px;--space-2:calc(var(--space-1)*2);--space-3:calc(var(--space-2)*2);--space-4:calc(var(--space-3)*2);--space-5:calc(var(--space-4)*2);--alpha-light:.7;--alpha-lighter:.54;--alpha-lightest:.07;--color-highlight:var(--md-accent-fg-color,#526cfe);--color-highlight-transparent:var( --md-accent-fg-color--transparent,#526cfe1a );--border-radius-1:var(--space-1);--border-radius-2:var(--space-2);--border-radius-3:calc(var(--space-1) + var(--space-2));--font-family:var( --md-text-font-family,Inter,Roboto Flex,system-ui,sans-serif );--font-size:16px;--line-height:1.5;--letter-spacing:-.5px;-webkit-font-smoothing:antialiased;align-items:center;display:flex;font-family:var(--font-family);font-size:var(--font-size);height:100vh;justify-content:center;letter-spacing:var(--letter-spacing);line-height:var(--line-height);pointer-events:none;position:absolute;width:100vw}@media (pointer:coarse){.a{height:-webkit-fill-available}}.a *,.a :after,.a :before{box-sizing:border-box}';function Zs(e,{index$:t}){let r=Ne(),n=document.createElement("div");document.body.appendChild(n),n.style.position="fixed",n.style.height="100%",n.style.top="0",n.style.zIndex="4";let o=n.attachShadow({mode:"open"});o.appendChild(A("style",{},Xs.toString()));try{Xa(r.search,{highlight:r.features.includes("search.highlight")}),me(t).subscribe(i=>{for(let a of i.items)a.location=new URL(`./${a.location}`,r.base).toString();es(i,o)}),b(e,"click").subscribe(()=>{bo()}),On("search").pipe(ke(1)).subscribe(()=>bo())}catch(i){e.hidden=!0;let a=Y("label[for=__search]");a.hidden=!0}return Ge}var Qs=_r(To());function ec(e,{index$:t,location$:r}){return ne([t,r.pipe(J(Ue()),O(n=>!!n.searchParams.get("h")))]).pipe(f(([n,o])=>Mp(n.config)(o.searchParams.get("h"))),f(n=>{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&&a.offsetHeight){let c=s.textContent,l=n(c);l.length>c.length&&o.set(s,l)}for(let[s,c]of o){let{childNodes:l}=A("span",null,c);s.replaceWith(...Array.from(l))}return{ref:e,nodes:o}}))}function Mp(e){let t=e.separator.split("|").map(o=>o.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":o).join("|"),r=new RegExp(t,"img"),n=(o,i,a)=>`${i}${a}`;return o=>{o=o.replace(/\s+/g," ").replace(/&/g,"&").trim();let i=new RegExp(`(^|${e.separator}|)(${o.split(r).map(a=>a.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")).filter(a=>a.length>=2).join("|")})`,"img");return a=>(0,Qs.default)(a).replace(i,n).replace(/<\/mark>(\s+)]*>/img,"$1")}}function kp(e,{viewport$:t,main$:r}){let n=e.closest(".md-grid"),o=n.offsetTop-n.parentElement.offsetTop;return ne([r,t]).pipe(f(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),se((i,a)=>i.height===a.height&&i.locked===a.locked))}function ko(e,n){var o=n,{header$:t}=o,r=gr(o,["header$"]);let i=Y(".md-sidebar__scrollwrap",e),{y:a}=Et(i);return j(()=>{let s=new I,c=s.pipe(be(),ye(!0)),l=s.pipe(Ze(0,je));return l.pipe(fe(t)).subscribe({next([{height:u},{height:p}]){i.style.height=`${u-2*a}px`,e.style.top=`${p}px`},complete(){i.style.height="",e.style.top=""}}),l.pipe(Sr()).subscribe(()=>{for(let u of $(".md-nav__link--active[href]",e)){if(!u.clientHeight)continue;let p=u.closest(".md-sidebar__scrollwrap");if(typeof p!="undefined"){let d=u.offsetTop-p.offsetTop,{height:m}=Ae(p);p.scrollTo({top:d-m/2})}}}),me($("label[tabindex]",e)).pipe(ie(u=>b(u,"click").pipe(Ie(_e),f(()=>u),ee(c)))).subscribe(u=>{let p=Y(`[id="${u.htmlFor}"]`);Y(`[aria-labelledby="${u.id}"]`).setAttribute("aria-expanded",`${p.checked}`)}),X("content.tooltips")&&me($("abbr[title]",e)).pipe(ie(u=>Je(u,{viewport$})),ee(c)).subscribe(),kp(e,r).pipe(P(u=>s.next(u)),z(()=>s.complete()),f(u=>k({ref:e},u)))})}function tc(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return It(tt(`${r}/releases/latest`).pipe(de(()=>w),f(n=>({version:n.tag_name})),it({})),tt(r).pipe(de(()=>w),f(n=>({stars:n.stargazers_count,forks:n.forks_count})),it({}))).pipe(f(([n,o])=>k(k({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return tt(r).pipe(f(n=>({repositories:n.public_repos})),it({}))}}function rc(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return It(tt(`${r}/releases/permalink/latest`).pipe(de(()=>w),f(({tag_name:n})=>({version:n})),it({})),tt(r).pipe(de(()=>w),f(({star_count:n,forks_count:o})=>({stars:n,forks:o})),it({}))).pipe(f(([n,o])=>k(k({},n),o)))}function nc(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,n]=t;return tc(r,n)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,n]=t;return rc(r,n)}return w}var Ap;function Cp(e){return Ap||(Ap=j(()=>{let t=__md_get("__source",sessionStorage);if(t)return K(t);if(Te("consent").length){let n=__md_get("__consent");if(!(n&&n.github))return w}return nc(e.href).pipe(P(n=>__md_set("__source",n,sessionStorage)))}).pipe(de(()=>w),O(t=>Object.keys(t).length>0),f(t=>({facts:t})),ae(1)))}function oc(e){let t=Y(":scope > :last-child",e);return j(()=>{let r=new I;return r.subscribe(({facts:n})=>{t.appendChild(xs(n)),t.classList.add("md-source__repository--active")}),Cp(e).pipe(P(n=>r.next(n)),z(()=>r.complete()),f(n=>k({ref:e},n)))})}function Hp(e,{viewport$:t,header$:r}){return Re(document.body).pipe(g(()=>Ln(e,{header$:r,viewport$:t})),f(({offset:{y:n}})=>({hidden:n>=10})),he("hidden"))}function ic(e,t){return j(()=>{let r=new I;return r.subscribe({next({hidden:n}){e.hidden=n},complete(){e.hidden=!1}}),(X("navigation.tabs.sticky")?K({hidden:!1}):Hp(e,t)).pipe(P(n=>r.next(n)),z(()=>r.complete()),f(n=>k({ref:e},n)))})}function $p(e,{viewport$:t,header$:r}){let n=new Map,o=$(".md-nav__link",e);for(let s of o){let c=decodeURIComponent(s.hash.substring(1)),l=we(`[id="${c}"]`);typeof l!="undefined"&&n.set(s,l)}let i=r.pipe(he("height"),f(({height:s})=>{let c=ht("main"),l=Y(":scope > :first-child",c);return s+.9*(l.offsetTop-c.offsetTop)}),xe());return Re(document.body).pipe(he("height"),g(s=>j(()=>{let c=[];return K([...n].reduce((l,[u,p])=>{for(;c.length&&n.get(c[c.length-1]).tagName>=p.tagName;)c.pop();let d=p.offsetTop;for(;!d&&p.parentElement;)p=p.parentElement,d=p.offsetTop;let m=p.offsetParent;for(;m;m=m.offsetParent)d+=m.offsetTop;return l.set([...c=[...c,u]].reverse(),d)},new Map))}).pipe(f(c=>new Map([...c].sort(([,l],[,u])=>l-u))),Qe(i),g(([c,l])=>t.pipe(Or(([u,p],{offset:{y:d},size:m})=>{let h=d+m.height>=Math.floor(s.height);for(;p.length;){let[,v]=p[0];if(v-l=d&&!h)p=[u.pop(),...p];else break}return[u,p]},[[],[...c]]),se((u,p)=>u[0]===p[0]&&u[1]===p[1])))))).pipe(f(([s,c])=>({prev:s.map(([l])=>l),next:c.map(([l])=>l)})),J({prev:[],next:[]}),Rt(2,1),f(([s,c])=>s.prev.length{let i=new I,a=i.pipe(be(),ye(!0));i.subscribe(({prev:c,next:l})=>{for(let[u]of l)u.classList.remove("md-nav__link--passed"),u.classList.remove("md-nav__link--active");for(let[u,[p]]of c.entries())p.classList.add("md-nav__link--passed"),p.classList.toggle("md-nav__link--active",u===c.length-1)});let s=we(".md-sidebar--secondary");if(typeof s!="undefined"&&b(document.body,"click").subscribe(c=>{let l=c.target;if(!s.contains(l)){let u=we(".md-nav__toggle",s);typeof u!="undefined"&&(u.checked=!1)}}),X("toc.follow")){let c=R(t.pipe(Ye(1),f(()=>{})),t.pipe(Ye(250),f(()=>"smooth")));i.pipe(O(({prev:l})=>l.length>0),Qe(n.pipe(Ie(_e))),fe(c)).subscribe(([[{prev:l}],u])=>{let[p]=l[l.length-1];if(p.offsetHeight){let d=ki(p);if(typeof d!="undefined"){let m=p.offsetTop-d.offsetTop,{height:h}=Ae(d);d.scrollTo({top:m-h/2,behavior:u})}}})}return X("navigation.tracking")&&t.pipe(ee(a),he("offset"),Ye(250),ke(1),ee(o.pipe(ke(1))),Ut({delay:250}),fe(i)).subscribe(([,{prev:c}])=>{let l=Ue(),u=c[c.length-1];if(u&&u.length){let[p]=u,{hash:d}=new URL(p.href);l.hash!==d&&(l.hash=d,history.replaceState({},"",`${l}`))}else l.hash="",history.replaceState({},"",`${l}`)}),$p(e,{viewport$:t,header$:r}).pipe(P(c=>i.next(c)),z(()=>i.complete()),f(c=>k({ref:e},c)))})}function Pp(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(f(({offset:{y:a}})=>a),Rt(2,1),f(([a,s])=>a>s&&s>0),se()),i=r.pipe(f(({active:a})=>a));return ne([i,o]).pipe(f(([a,s])=>!(a&&s)),se(),ee(n.pipe(ke(1))),ye(!0),Ut({delay:250}),f(a=>({hidden:a})))}function sc(e,{viewport$:t,header$:r,main$:n,target$:o}){let i=new I,a=i.pipe(be(),ye(!0));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(ee(a),he("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),b(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),Pp(e,{viewport$:t,main$:n,target$:o}).pipe(P(s=>i.next(s)),z(()=>i.complete()),f(s=>k({ref:e},s)))}function cc(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,t.port&&(e.port=t.port),e}function Ip(e,t){let r=new Map;for(let n of $("url",e)){let o=Y("loc",n),i=[cc(new URL(o.textContent),t)];r.set(`${i[0]}`,i);for(let a of $("[rel=alternate]",n)){let s=a.getAttribute("href");s!=null&&i.push(cc(new URL(s),t))}}return r}function dr(e){return ss(new URL("sitemap.xml",e)).pipe(f(t=>Ip(t,new URL(e))),de(()=>K(new Map)),xe())}function lc({document$:e}){let t=new Map;e.pipe(g(()=>$("link[rel=alternate]")),f(r=>new URL(r.href)),O(r=>!t.has(r.toString())),ie(r=>dr(r).pipe(f(n=>[r,n]),de(()=>w)))).subscribe(([r,n])=>{t.set(r.toString().replace(/\/$/,""),n)}),b(document.body,"click").pipe(O(r=>!r.metaKey&&!r.ctrlKey),g(r=>{if(r.target instanceof Element){let n=r.target.closest("a");if(n&&!n.target){let o=[...t].find(([p])=>n.href.startsWith(`${p}/`));if(typeof o=="undefined")return w;let[i,a]=o,s=Ue();if(s.href.startsWith(i))return w;let c=Ne(),l=s.href.replace(c.base,"");l=`${i}/${l}`;let u=a.has(l.split("#")[0])?new URL(l,c.base):new URL(i);return r.preventDefault(),K(u)}}return w})).subscribe(r=>dt(r,!0))}var Ao=_r(Lo());function Rp(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function uc({alert$:e}){Ao.default.isSupported()&&new N(t=>{new Ao.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||Rp(Y(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(P(t=>{t.trigger.focus()}),f(()=>Gt("clipboard.copied"))).subscribe(e)}function pc(e,t){if(!(e.target instanceof Element))return w;let r=e.target.closest("a");if(r===null)return w;if(r.target||e.metaKey||e.ctrlKey)return w;let n=new URL(r.href);return n.search=n.hash="",t.has(`${n}`)?(e.preventDefault(),K(r)):w}function fc(e){let t=new Map;for(let r of $(":scope > *",e.head))t.set(r.outerHTML,r);return t}function mc(e){for(let t of $("[href], [src]",e))for(let r of["href","src"]){let n=t.getAttribute(r);if(n&&!/^(?:[a-z]+:)?\/\//i.test(n)){t[r]=t[r];break}}return K(e)}function jp(e){for(let n of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...X("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let o=we(n),i=we(n,e);typeof o!="undefined"&&typeof i!="undefined"&&o.replaceWith(i)}let t=fc(document);for(let[n,o]of fc(e))t.has(n)?t.delete(n):document.head.appendChild(o);for(let n of t.values()){let o=n.getAttribute("name");o!=="theme-color"&&o!=="color-scheme"&&n.remove()}let r=ht("container");return ot($("script",r)).pipe(g(n=>{let o=e.createElement("script");if(n.src){for(let i of n.getAttributeNames())o.setAttribute(i,n.getAttribute(i));return n.replaceWith(o),new N(i=>{o.onload=()=>i.complete()})}else return o.textContent=n.textContent,n.replaceWith(o),w}),be(),ye(document))}function dc({sitemap$:e,location$:t,viewport$:r,progress$:n}){if(location.protocol==="file:")return Ge;K(document).subscribe(mc);let o=b(document.body,"click").pipe(Qe(e),g(([s,c])=>pc(s,c)),f(({href:s})=>new URL(s)),xe()),i=b(window,"popstate").pipe(f(Ue),xe());o.pipe(fe(r)).subscribe(([s,{offset:c}])=>{history.replaceState(c,""),history.pushState(null,"",s)}),R(o,i).subscribe(t);let a=t.pipe(J(Ue()),un(),O(([s,c])=>s.pathname!==c.pathname),f(([,s])=>s),g(s=>Sn(s,{progress$:n}).pipe(de(()=>(dt(s,!0),w)))),g(mc),g(jp),xe());return R(a.pipe(fe(t,(s,c)=>c)),a.pipe(g(()=>t),he("hash")),t.pipe(J(Ue()),un(),O(([s,c])=>s.pathname===c.pathname&&s.hash!==c.hash),f(([,s])=>s)),t.pipe(se((s,c)=>s.pathname===c.pathname&&s.hash===c.hash),g(()=>o),P(()=>history.back()))).subscribe(s=>{var c,l;history.state!==null||!s.hash?window.scrollTo(0,(l=(c=history.state)==null?void 0:c.y)!=null?l:0):(history.scrollRestoration="auto",os(s.hash),history.scrollRestoration="manual")}),t.subscribe(()=>{history.scrollRestoration="manual"}),b(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),r.pipe(he("offset"),Ye(100)).subscribe(({offset:s})=>{history.replaceState(s,"")}),X("navigation.instant.prefetch")&&R(b(document.body,"mousemove"),b(document.body,"focusin")).pipe(Qe(e),g(([s,c])=>pc(s,c)),Ye(25),Yn(({href:s})=>s),ln(s=>{let c=document.createElement("link");return c.rel="prefetch",c.href=s.toString(),document.head.appendChild(c),b(c,"load").pipe(f(()=>c),Me(1))})).subscribe(s=>s.remove()),a}function hc(e){var u;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:n,currentBaseURL:o}=e,i=(u=Co(o))==null?void 0:u.pathname;if(i===void 0)return;let a=Fp(n.pathname,i);if(a===void 0)return;let s=Np(t.keys());if(!t.has(s))return;let c=Co(a,s);if(!c||!t.has(c.href))return;let l=Co(a,r);if(l)return l.hash=n.hash,l.search=n.search,l}function Co(e,t){try{return new URL(e,t)}catch(r){return}}function Fp(e,t){if(e.startsWith(t))return e.slice(t.length)}function Up(e,t){let r=Math.min(e.length,t.length),n;for(n=0;nw)),n=r.pipe(f(o=>{let[,i]=t.base.match(/([^/]+)\/?$/);return o.find(({version:a,aliases:s})=>a===i||s.includes(i))||o[0]}));r.pipe(f(o=>new Map(o.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),g(o=>b(document.body,"click").pipe(O(i=>!i.metaKey&&!i.ctrlKey),fe(n),g(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&o.has(s.href)){let c=s.href;return!i.target.closest(".md-version")&&o.get(c)===a?w:(i.preventDefault(),K(new URL(c)))}}return w}),g(i=>dr(i).pipe(f(a=>{var s;return(s=hc({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:Ue(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(o=>dt(o,!0)),ne([r,n]).subscribe(([o,i])=>{Y(".md-header__topic").appendChild(Es(o,i))}),e.pipe(g(()=>n)).subscribe(o=>{var s;let i=new URL(t.base),a=__md_get("__outdated",sessionStorage,i);if(a===null){a=!0;let c=((s=t.version)==null?void 0:s.default)||"latest";Array.isArray(c)||(c=[c]);e:for(let l of c)for(let u of o.aliases.concat(o.version))if(new RegExp(l,"i").test(u)){a=!1;break e}__md_set("__outdated",a,sessionStorage,i)}if(a)for(let c of Te("outdated"))c.hidden=!1})}function bc({document$:e,viewport$:t}){e.pipe(g(()=>$(".md-ellipsis")),ie(r=>Tt(r).pipe(ee(e.pipe(ke(1))),O(n=>n),f(()=>r),Me(1))),O(r=>r.offsetWidth{let n=r.innerText,o=r.closest("a")||r;return o.title=n,X("content.tooltips")?Je(o,{viewport$:t}).pipe(ee(e.pipe(ke(1))),z(()=>o.removeAttribute("title"))):w})).subscribe(),X("content.tooltips")&&e.pipe(g(()=>$(".md-status")),ie(r=>Je(r,{viewport$:t}))).subscribe()}function gc({document$:e,tablet$:t}){e.pipe(g(()=>$(".md-toggle--indeterminate")),P(r=>{r.indeterminate=!0,r.checked=!1}),ie(r=>b(r,"change").pipe(Zn(()=>r.classList.contains("md-toggle--indeterminate")),f(()=>r))),fe(t)).subscribe(([r,n])=>{r.classList.remove("md-toggle--indeterminate"),n&&(r.checked=!1)})}function Dp(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function _c({document$:e}){e.pipe(g(()=>$("[data-md-scrollfix]")),P(t=>t.removeAttribute("data-md-scrollfix")),O(Dp),ie(t=>b(t,"touchstart").pipe(f(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let n=e[r];typeof n=="string"?n=document.createTextNode(n):n.parentNode&&n.parentNode.removeChild(n),r?t.insertBefore(this.previousSibling,n):t.replaceChild(n,this)}}}));function Wp(){return location.protocol==="file:"?wt(`${new URL("search.js",An.base)}`).pipe(f(()=>__index),de(()=>Ge),ae(1)):tt(new URL("search.json",An.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var vt=Ti(),Ur=rs(),hr=is(Ur),xc=ts(),Ke=fs(),Ho=Ir("(min-width: 60em)"),wc=Ir("(min-width: 76.25em)"),Ec=as(),An=Ne(),Tc=we(".md-search")?Wp():Ge,$o=new I;uc({alert$:$o});lc({document$:vt});var Po=new I,Sc=dr(An.base);X("navigation.instant")&&dc({sitemap$:Sc,location$:Ur,viewport$:Ke,progress$:Po}).subscribe(vt);var yc;((yc=An.version)==null?void 0:yc.provider)==="mike"&&vc({document$:vt});R(Ur,hr).pipe(jt(125)).subscribe(()=>{wo("drawer",!1),wo("search",!1)});xc.pipe(O(({mode:e,meta:t})=>e==="global"&&!t)).subscribe(e=>{switch(e.type){case",":case"p":let t=document.querySelector("link[rel=prev]");t instanceof HTMLLinkElement&&dt(t);break;case".":case"n":let r=document.querySelector("link[rel=next]");r instanceof HTMLLinkElement&&dt(r);break;case"/":let n=document.querySelector("[data-md-component=search] button");n instanceof HTMLButtonElement&&n.click();break;case"Enter":let o=xt();o instanceof HTMLLabelElement&&o.click()}});bc({viewport$:Ke,document$:vt});gc({document$:vt,tablet$:Ho});_c({document$:vt});var kt=qs(ht("header"),{viewport$:Ke}),Fr=vt.pipe(f(()=>ht("main")),g(e=>Gs(e,{viewport$:Ke,header$:kt})),ae(1)),Vp=R(...Te("consent").map(e=>ds(e,{target$:hr})),...Te("dialog").map(e=>zs(e,{alert$:$o})),...Te("palette").map(e=>Ys(e)),...Te("progress").map(e=>Js(e,{progress$:Po})),...Te("search").map(e=>Zs(e,{index$:Tc})),...Te("source").map(e=>oc(e))),zp=j(()=>R(...Te("announce").map(e=>ms(e)),...Te("content").map(e=>Vs(e,{sitemap$:Sc,viewport$:Ke,target$:hr,print$:Ec})),...Te("content").map(e=>X("search.highlight")?ec(e,{index$:Tc,location$:Ur}):w),...Te("header").map(e=>Ks(e,{viewport$:Ke,header$:kt,main$:Fr})),...Te("header-title").map(e=>Bs(e,{viewport$:Ke,header$:kt})),...Te("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?_o(wc,()=>ko(e,{viewport$:Ke,header$:kt,main$:Fr})):_o(Ho,()=>ko(e,{viewport$:Ke,header$:kt,main$:Fr}))),...Te("tabs").map(e=>ic(e,{viewport$:Ke,header$:kt})),...Te("toc").map(e=>ac(e,{viewport$:Ke,header$:kt,main$:Fr,target$:hr})),...Te("top").map(e=>sc(e,{viewport$:Ke,header$:kt,main$:Fr,target$:hr})))),Oc=vt.pipe(g(()=>zp),Ft(Vp),ae(1));Oc.subscribe();window.document$=vt;window.location$=Ur;window.target$=hr;window.keyboard$=xc;window.viewport$=Ke;window.tablet$=Ho;window.screen$=wc;window.print$=Ec;window.alert$=$o;window.progress$=Po;window.component$=Oc;})(); + `):"",this.name="UnsubscriptionError",this.errors=r}});function ut(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var nt=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,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=$e(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(F(u))try{u()}catch(v){i=v instanceof Vr?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=$e(p),m=d.next();!m.done;m=d.next()){var h=m.value;try{zo(h)}catch(v){i=i!=null?i:[],v instanceof Vr?i=oe(oe([],re(i)),re(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{m&&!m.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}if(i)throw new Vr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)zo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&ut(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ut(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Rn=nt.EMPTY;function zr(e){return e instanceof nt||e&&"closed"in e&&F(e.remove)&&F(e.add)&&F(e.unsubscribe)}function zo(e){F(e)?e():e.unsubscribe()}var Xe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Zt={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Rn:(this.currentObservers=null,s.push(r),new nt(function(){n.currentObservers=null,ut(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new N;return r.source=this,r},t.create=function(r,n){return new Zo(r,n)},t})(N);var Zo=(function(e){pe(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Rn},t})(I);var Dn=(function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(I);var xr={now:function(){return(xr.delegate||Date).now()},delegate:void 0};var wr=(function(e){pe(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=xr);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.flush(this),0)},t})(rr);var ti=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(nr);var zn=new ti(ei);var ri=(function(e){pe(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=tr.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&n===r._scheduled&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(tr.cancelAnimationFrame(n),r._scheduled=void 0)},t})(rr);var ni=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n;r?n=r.id:(n=this._scheduled,this._scheduled=void 0);var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t})(nr);var je=new ni(ri);var w=new N(function(e){return e.complete()});function Br(e){return e&&F(e.schedule)}function qn(e){return e[e.length-1]}function _t(e){return F(qn(e))?e.pop():void 0}function Be(e){return Br(qn(e))?e.pop():void 0}function Gr(e,t){return typeof qn(e)=="number"?e.pop():t}var or=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function Yr(e){return F(e==null?void 0:e.then)}function Jr(e){return F(e[er])}function Xr(e){return Symbol.asyncIterator&&F(e==null?void 0:e[Symbol.asyncIterator])}function Zr(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 Wc(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qr=Wc();function en(e){return F(e==null?void 0:e[Qr])}function tn(e){return Wo(this,arguments,function(){var r,n,o,i;return Wr(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Ct(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,Ct(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Ct(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function rn(e){return F(e==null?void 0:e.getReader)}function q(e){if(e instanceof N)return e;if(e!=null){if(Jr(e))return Vc(e);if(or(e))return zc(e);if(Yr(e))return qc(e);if(Xr(e))return oi(e);if(en(e))return Kc(e);if(rn(e))return Bc(e)}throw Zr(e)}function Vc(e){return new N(function(t){var r=e[er]();if(F(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function zc(e){return new N(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?O(function(o,i){return e(o,i,n)}):Le,Me(1),r?it(t):xi(function(){return new an}))}}function Jn(e){return e<=0?function(){return w}:S(function(t,r){var n=[];t.subscribe(T(r,function(o){n.push(o),e=2,!0))}function xe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new I}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(l){var u,p,d,m=0,h=!1,v=!1,y=function(){p==null||p.unsubscribe(),p=void 0},x=function(){y(),u=d=void 0,h=v=!1},E=function(){var _=u;x(),_==null||_.unsubscribe()};return S(function(_,Z){m++,!v&&!h&&y();var ve=d=d!=null?d:r();Z.add(function(){m--,m===0&&!v&&!h&&(p=Xn(E,c))}),ve.subscribe(Z),!u&&m>0&&(u=new $t({next:function(L){return ve.next(L)},error:function(L){v=!0,y(),p=Xn(x,o,L),ve.error(L)},complete:function(){h=!0,y(),p=Xn(x,a),ve.complete()}}),q(_).subscribe(u))})(l)}}function Xn(e,t){for(var r=[],n=2;ne.next(document)),e}function $(e,t=document){return Array.from(t.querySelectorAll(e))}function Y(e,t=document){let r=we(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function we(e,t=document){return t.querySelector(e)||void 0}function xt(){var e,t,r,n;return(n=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?n:void 0}var pl=R(b(document.body,"focusin"),b(document.body,"focusout")).pipe(Ye(1),J(void 0),f(()=>xt()||document.body),ae(1));function ar(e){return pl.pipe(f(t=>e.contains(t)),se())}function Nt(e,t){let{matches:r}=matchMedia("(hover)");return j(()=>(r?R(b(e,"mouseenter").pipe(f(()=>!0)),b(e,"mouseleave").pipe(f(()=>!1))):R(b(e,"touchstart").pipe(f(()=>!0)),b(e,"touchend").pipe(f(()=>!1)),b(e,"touchcancel").pipe(f(()=>!1)))).pipe(t?Tr(o=>ze(+!o*t)):Le,J(!0,e.matches(":hover"))))}function Si(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)Si(e,r)}function A(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)Si(n,o);return n}function Oi(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function wt(e){let t=A("script",{src:e});return j(()=>(document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(g(()=>on(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(f(()=>{}),z(()=>document.head.removeChild(t)),Me(1))))}function Li(e){let t=A("link",{rel:"stylesheet",href:e});return document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(g(()=>on(()=>new ReferenceError(`Invalid styles: ${e}`))))).pipe(f(()=>{}),Me(1))}var Mi=new I,fl=j(()=>typeof ResizeObserver=="undefined"?wt("https://unpkg.com/resize-observer-polyfill"):K(void 0)).pipe(f(()=>new ResizeObserver(e=>e.forEach(t=>Mi.next(t)))),g(e=>R(Ge,K(e)).pipe(z(()=>e.disconnect()))),ae(1));function Ae(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Re(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return fl.pipe(P(r=>r.observe(t)),g(r=>Mi.pipe(O(n=>n.target===t),z(()=>r.unobserve(t)))),f(()=>Ae(e)),J(Ae(e)))}function Mr(e){return{width:e.scrollWidth,height:e.scrollHeight}}function ki(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function Ai(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function Et(e){return{x:e.offsetLeft,y:e.offsetTop}}function Ci(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function Hi(e){return R(b(window,"load"),b(window,"resize")).pipe(Ze(0,je),f(()=>Et(e)),J(Et(e)))}function pn(e){return{x:e.scrollLeft,y:e.scrollTop}}function Dt(e){return R(b(e,"scroll"),b(window,"scroll"),b(window,"resize")).pipe(Ze(0,je),f(()=>pn(e)),J(pn(e)))}var $i=new I,ml=j(()=>K(new IntersectionObserver(e=>{for(let t of e)$i.next(t)},{threshold:0}))).pipe(g(e=>R(Ge,K(e)).pipe(z(()=>e.disconnect()))),ae(1));function Tt(e){return ml.pipe(P(t=>t.observe(e)),g(t=>$i.pipe(O(({target:r})=>r===e),z(()=>t.unobserve(e)),f(({isIntersecting:r})=>r))))}var dl=Object.create,ua=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,vl=Object.getOwnPropertyNames,bl=Object.getPrototypeOf,gl=Object.prototype.hasOwnProperty,_l=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vl(t))!gl.call(e,o)&&o!==r&&ua(e,o,{get:()=>t[o],enumerable:!(n=hl(t,o))||n.enumerable});return e},xl=(e,t,r)=>(r=e!=null?dl(bl(e)):{},yl(t||!e||!e.__esModule?ua(r,"default",{value:e,enumerable:!0}):r,e)),wl=_l((e,t)=>{var r="Expected a function",n=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global=="object"&&global&&global.Object===Object&&global,p=typeof self=="object"&&self&&self.Object===Object&&self,d=u||p||Function("return this")(),m=Object.prototype,h=m.toString,v=Math.max,y=Math.min,x=function(){return d.Date.now()};function E(M,D,te){var ue,le,De,bt,We,lt,rt=0,Yt=!1,At=!1,vr=!0;if(typeof M!="function")throw new TypeError(r);D=L(D)||0,_(te)&&(Yt=!!te.leading,At="maxWait"in te,De=At?v(L(te.maxWait)||0,D):De,vr="trailing"in te?!!te.trailing:vr);function G(Se){var gt=ue,br=le;return ue=le=void 0,rt=Se,bt=M.apply(br,gt),bt}function H(Se){return rt=Se,We=setTimeout(V,D),Yt?G(Se):bt}function C(Se){var gt=Se-lt,br=Se-rt,Io=D-gt;return At?y(Io,De-br):Io}function W(Se){var gt=Se-lt,br=Se-rt;return lt===void 0||gt>=D||gt<0||At&&br>=De}function V(){var Se=x();if(W(Se))return Q(Se);We=setTimeout(V,C(Se))}function Q(Se){return We=void 0,vr&&ue?G(Se):(ue=le=void 0,bt)}function Ve(){We!==void 0&&clearTimeout(We),rt=0,ue=lt=le=We=void 0}function Jt(){return We===void 0?bt:Q(x())}function Nr(){var Se=x(),gt=W(Se);if(ue=arguments,le=this,lt=Se,gt){if(We===void 0)return H(lt);if(At)return We=setTimeout(V,D),G(lt)}return We===void 0&&(We=setTimeout(V,D)),bt}return Nr.cancel=Ve,Nr.flush=Jt,Nr}function _(M){var D=typeof M;return!!M&&(D=="object"||D=="function")}function Z(M){return!!M&&typeof M=="object"}function ve(M){return typeof M=="symbol"||Z(M)&&h.call(M)==o}function L(M){if(typeof M=="number")return M;if(ve(M))return n;if(_(M)){var D=typeof M.valueOf=="function"?M.valueOf():M;M=_(D)?D+"":D}if(typeof M!="string")return M===0?M:+M;M=M.replace(i,"");var te=s.test(M);return te||c.test(M)?l(M.slice(2),te?2:8):a.test(M)?n:+M}t.exports=E}),wn,B,pa,fa,Wt,Pi,ma,da,ha,lo,ro,no,El,Ar={},va=[],Tl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pr=Array.isArray;function ft(e,t){for(var r in t)e[r]=t[r];return e}function uo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Lt(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?wn.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return dn(e,a,n,o,null)}function dn(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o!=null?o:++pa,__i:-1,__u:0};return o==null&&B.vnode!=null&&B.vnode(i),i}function qe(e){return e.children}function ct(e,t){this.props=e,this.context=t}function cr(e,t){if(t==null)return e.__?cr(e.__,e.__i+1):null;for(var r;ts&&Wt.sort(da),e=Wt.shift(),s=Wt.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=ft({},n)).__v=n.__v+1,B.vnode&&B.vnode(r),po(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o!=null?o:cr(n),!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,ya(i,r,a),n.__e=n.__=null,r.__e!=o&&ba(r)));gn.__r=0}function ga(e,t,r,n,o,i,a,s,c,l,u){var p,d,m,h,v,y,x,E=n&&n.__k||va,_=t.length;for(c=Sl(r,t,E,c,_),p=0;p<_;p++)(m=r.__k[p])!=null&&(d=m.__i==-1?Ar:E[m.__i]||Ar,m.__i=p,y=po(e,m,d,o,i,a,s,c,l,u),h=m.__e,m.ref&&d.ref!=m.ref&&(d.ref&&fo(d.ref,null,m),u.push(m.ref,m.__c||h,m)),v==null&&h!=null&&(v=h),(x=!!(4&m.__u))||d.__k===m.__k?c=_a(m,c,e,x):typeof m.type=="function"&&y!==void 0?c=y:h&&(c=h.nextSibling),m.__u&=-7);return r.__e=v,c}function Sl(e,t,r,n,o){var i,a,s,c,l,u=r.length,p=u,d=0;for(e.__k=new Array(o),i=0;i0?dn(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(l=a.__i=Ol(a,r,c,p))!=-1&&(p--,(s=r[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(o>u?d--:oc?d--:d++,a.__u|=4))):e.__k[i]=null;if(p)for(i=0;i(u?1:0)){for(o=r-1,i=r+1;o>=0||i=0?o--:i++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return a}return-1}function Ri(e,t,r){t[0]=="-"?e.setProperty(t,r!=null?r:""):e[t]=r==null?"":typeof r!="number"||Tl.test(t)?r:r+"px"}function fn(e,t,r,n,o){var i,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Ri(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Ri(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ha,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=lo,e.addEventListener(t,i?no:ro,i)):e.removeEventListener(t,i?no:ro,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r!=null?r:"";break e}catch(s){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function ji(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=lo++;else if(t.t0?e:Pr(e)?e.map(xa):ft({},e)}function Ll(e,t,r,n,o,i,a,s,c){var l,u,p,d,m,h,v,y=r.props,x=t.props,E=t.type;if(E=="svg"?o="http://www.w3.org/2000/svg":E=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l=r.__.length&&r.__.push({}),r.__[e]}function _n(e){return $r=1,Al(Sa,e)}function Al(e,t,r){var n=mo(Hr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Sa(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=ge,!ge.__f)){var o=function(s,c,l){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(d){return!!d.__c});if(u.every(function(d){return!d.__N}))return!i||i.call(this,s,c,l);var p=n.__c.props!==s;return u.forEach(function(d){if(d.__N){var m=d.__[0];d.__=d.__N,d.__N=void 0,m!==d.__[0]&&(p=!0)}}),i&&i.call(this,s,c,l)||p};ge.__f=!0;var i=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.componentWillUpdate=function(s,c,l){if(this.__e){var u=i;i=void 0,o(s,c,l),i=u}a&&a.call(this,s,c,l)},ge.shouldComponentUpdate=o}return n.__N||n.__}function mt(e,t){var r=mo(Hr++,3);!Ee.__s&&Ta(r.__H,t)&&(r.__=e,r.u=t,ge.__H.__h.push(r))}function zt(e){return $r=5,ur(function(){return{current:e}},[])}function ur(e,t){var r=mo(Hr++,7);return Ta(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Cl(e,t){return $r=8,ur(function(){return e},t)}function Hl(){for(var e;e=Ea.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(hn),e.__H.__h.forEach(io),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}Ee.__b=function(e){ge=null,Ui&&Ui(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),zi&&zi(e,t)},Ee.__r=function(e){Ni&&Ni(e),Hr=0;var t=(ge=e.__c).__H;t&&(Qn===ge?(t.__h=[],ge.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(hn),t.__h.forEach(io),t.__h=[],Hr=0)),Qn=ge},Ee.diffed=function(e){Di&&Di(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ea.push(t)!==1&&Fi===Ee.requestAnimationFrame||((Fi=Ee.requestAnimationFrame)||$l)(Hl)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Qn=ge=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.forEach(hn),r.__h=r.__h.filter(function(n){return!n.__||io(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Ee.__e(n,r.__v)}}),Wi&&Wi(e,t)},Ee.unmount=function(e){Vi&&Vi(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{hn(n)}catch(o){t=o}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};var qi=typeof requestAnimationFrame=="function";function $l(e){var t,r=function(){clearTimeout(n),qi&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);qi&&(t=requestAnimationFrame(r))}function hn(e){var t=ge,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ge=t}function io(e){var t=ge;e.__c=e.__(),ge=t}function Ta(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Sa(e,t){return typeof t=="function"?t(e):t}function Pl(e,t){for(var r in t)e[r]=t[r];return e}function Ki(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Bi(e,t){this.props=e,this.context=t}(Bi.prototype=new ct).isPureReactComponent=!0,Bi.prototype.shouldComponentUpdate=function(e,t){return Ki(this.props,e)||Ki(this.state,t)};var Gi=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Gi&&Gi(e)};var sw=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Il=B.__e;B.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Il(e,t,r,n)};var Yi=B.unmount;function Oa(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Pl({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Oa(n,t,r)})),e}function La(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return La(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function eo(){this.__u=0,this.o=null,this.__b=null}function Ma(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function mn(){this.i=null,this.l=null}B.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Yi&&Yi(e)},(eo.prototype=new ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Ma(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=La(c,c.__c.__P,c.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.o.pop();)l.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},eo.prototype.componentWillUnmount=function(){this.o=[]},eo.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Oa(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&Lt(qe,null,e.fallback);return o&&(o.__u&=-33),[Lt(qe,null,t.__a?null:e.children),o]};var Ji=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]Object.freeze({get current(){return t.current}}),[])}var Kl=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function Bl(e,...t){var r;(r=e==null?void 0:e.addEventListener)==null||r.call(e,...t)}function Gl(e,...t){var r;(r=e==null?void 0:e.removeEventListener)==null||r.call(e,...t)}var Yl=(e,t)=>Object.hasOwn(e,t),Jl=()=>!0,Xl=()=>!1;function Zl(e=!1){let t=zt(e),r=Cl(()=>t.current,[]);return mt(()=>(t.current=!0,()=>{t.current=!1}),[]),r}function Ql(e,...t){let r=Zl(),n=Aa(t[1]),o=ur(()=>function(...i){r()&&(typeof n.current=="function"?n.current.apply(this,i):typeof n.current.handleEvent=="function"&&n.current.handleEvent.apply(this,i))},[]);mt(()=>{let i=eu(e)?e.current:e;if(!i)return;let a=t.slice(2);return Bl(i,t[0],o,...a),()=>{Gl(i,t[0],o,...a)}},[e,t[0]])}function eu(e){return e!==null&&typeof e=="object"&&Yl(e,"current")}var tu=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e?Jl:Xl,ru=Kl?globalThis:null;function Ca(e,t,r=[],n={}){let{event:o="keydown",target:i=ru,eventOptions:a}=n,s=Aa(t),c=ur(()=>{let l=tu(e);return function(u){l(u)&&s.current.call(this,u)}},r);Ql(i,o,c,a)}function Ha(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t1)Ot--;else{for(var e,t=!1;kr!==void 0;){var r=kr;for(kr=void 0,ao++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ia(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(ao=0,Ot--,t)throw e}}function iu(e){if(Ot>0)return e();Ot++;try{return e()}finally{En()}}var ce=void 0;function $a(e){var t=ce;ce=void 0;try{return e()}finally{ce=t}}var kr=void 0,Ot=0,ao=0,yn=0;function Pa(e){if(ce!==void 0){var t=e.n;if(t===void 0||t.t!==ce)return t={i:0,S:e,p:ce.s,n:void 0,t:ce,e:void 0,x:void 0,r:t},ce.s!==void 0&&(ce.s.n=t),ce.s=t,e.n=t,32&ce.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ce.s,t.n=void 0,ce.s.n=t,ce.s=t),t}}function Ce(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Ce.prototype.brand=ou;Ce.prototype.h=function(){return!0};Ce.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:$a(function(){var n;(n=t.W)==null||n.call(t)}))};Ce.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&$a(function(){var o;(o=t.Z)==null||o.call(t)}))}};Ce.prototype.subscribe=function(e){var t=this;return Kt(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}},{name:"sub"})};Ce.prototype.valueOf=function(){return this.value};Ce.prototype.toString=function(){return this.value+""};Ce.prototype.toJSON=function(){return this.value};Ce.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty(Ce.prototype,"value",{get:function(){var e=Pa(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ao>100)throw new Error("Cycle detected");this.v=e,this.i++,yn++,Ot++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{En()}}}});function Mt(e,t){return new Ce(e,t)}function Ia(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ra(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function ja(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Bt(e,t){Ce.call(this,void 0),this.x=e,this.s=void 0,this.g=yn-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Bt.prototype=new Ce;Bt.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===yn))return!0;if(this.g=yn,this.f|=1,this.i>0&&!Ia(this))return this.f&=-2,!0;var e=ce;try{Ra(this),ce=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ce=e,ja(this),this.f&=-2,!0};Bt.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ce.prototype.S.call(this,e)};Bt.prototype.U=function(e){if(this.t!==void 0&&(Ce.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Bt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Bt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Pa(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function ta(e,t){return new Bt(e,t)}function Fa(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Ot++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,ho(e),n}finally{ce=r,En()}}}function ho(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Fa(e)}function au(e){if(ce!==this)throw new Error("Out-of-order effect");ja(this),ce=e,this.f&=-2,8&this.f&&ho(this),En()}function pr(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}pr.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};pr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Fa(this),Ra(this),Ot++;var e=ce;return ce=this,au.bind(this,e)};pr.prototype.N=function(){2&this.f||(this.f|=2,this.o=kr,kr=this)};pr.prototype.d=function(){this.f|=8,1&this.f||ho(this)};pr.prototype.dispose=function(){this.d()};function Kt(e,t){var r=new pr(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var Ua,vo,to,Na=[];Kt(function(){Ua=this.N})();function fr(e,t){B[e]=t.bind(null,B[e]||function(){})}function xn(e){to&&to(),to=e&&e.S()}function Da(e){var t=this,r=e.data,n=cu(r);n.value=r;var o=ur(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=ta(function(){var m=n.value.value;return m===0?0:m===!0?"":m||""}),u=ta(function(){return!Array.isArray(l.value)&&!fa(l.value)}),p=Kt(function(){if(this.N=Wa,u.value){var m=l.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=m)}}),d=t.__$u.d;return t.__$u.d=function(){p(),d.call(this)},[u,l]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}Da.displayName="ReactiveTextNode";Object.defineProperties(Ce.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Da},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});fr("__b",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof Ce&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});fr("__r",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==qe){xn();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(o){var i;return Kt(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i})())),vo=n,xn(r)}e(t)});fr("__e",function(e,t,r,n){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),xn(),vo=void 0,e(t,r,n)});fr("diffed",function(e,t){typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),xn(),vo=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else i={},r.U=i;for(var c in n){var l=i[c],u=n[c];l===void 0?(l=su(r,c,u,o),i[c]=l):l.o(u,o)}}}e(t)});function su(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=Mt(r);return{o:function(a,s){i.value=a,n=s},d:Kt(function(){this.N=Wa;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}fr("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});fr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ct.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function cu(e,t){return _n(function(){return Mt(e,t)})[0]}var lu=function(e){queueMicrotask(function(){queueMicrotask(e)})};function uu(){iu(function(){for(var e;e=Na.shift();)Ua.call(e)})}function Wa(){Na.push(this)===1&&(B.requestAnimationFrame||lu)(uu)}var so=[0];for(let e=0;e<32;e++)so.push(so[e]|1<>>5]>>>e&1}set(e){this.data[e>>>5]|=1<<(e&31)}forEach(e){let t=this.size&31;for(let r=0;r{var r;return(r=t.tags)==null?void 0:r.length})&&(matchMedia("(max-width: 768px)").matches||Va())}function Vt(){et.value=He(k({},et.value),{hideSearch:!et.value.hideSearch})}function Va(){et.value=He(k({},et.value),{hideFilters:!et.value.hideFilters})}function vn(){return et.value.selectedItem}function co(e){et.value=He(k({},et.value),{selectedItem:e})}function mu(){var e,t;return(t=(e=lr.value)==null?void 0:e.items)!=null?t:[]}function Tn(){return typeof Oe.value.input=="string"?Oe.value.input:""}function za(e){let t=qa();e.length&&!t.length?Oe.value=He(k({},Oe.value),{page:void 0,input:e}):!e.length&&t.length?Oe.value=He(k({},Oe.value),{page:void 0,input:{type:"operator",data:{operator:"not",operands:[]}}}):Oe.value=He(k({},Oe.value),{page:void 0,input:e})}function du(){typeof st.value.pagination.next<"u"&&(Oe.value=He(k({},Oe.value),{page:st.value.pagination.next}))}function hu(e){let t=Oe.value.filter.input;if("type"in t&&t.type==="operator"){for(let r of t.data.operands)if("type"in r&&r.type==="value"&&typeof r.data.value=="string"&&r.data.value===e)return!0}return!1}function qa(){let e=Oe.value.filter.input,t=[];if("type"in e&&e.type==="operator")for(let r of e.data.operands)"type"in r&&r.type==="value"&&typeof r.data.value=="string"&&t.push(r.data.value);return t}function vu(e){let t=Oe.value.filter.input,r=[];if("type"in t&&t.type==="operator")for(let n of t.data.operands)"type"in n&&n.type==="value"&&typeof n.data.value=="string"&&r.push(n.data.value);if(r.includes(e)){let n=r.indexOf(e);n>-1&&r.splice(n,1)}else r.push(e);Oe.value=He(k({},Oe.value),{page:void 0,filter:He(k({},Oe.value.filter),{input:{type:"operator",data:{operator:"and",operands:r.map(n=>({type:"value",data:{field:"tags",value:n}}))}}})}),za(Tn())}function bu(){return st.value.items}function gu(){return st.value.total}function _u(){var e;for(let t of(e=st.value.aggregations)!=null?e:[])if(t.type==="term")return t.data.value;return[]}function sr(){return et.value.hideSearch}function yu(){return et.value.hideFilters}function Ka(){var e;return(e=Ba.value.highlight)!=null?e:!1}var et=Mt({hideSearch:!0,hideFilters:!0,selectedItem:0}),Ba=Mt({}),lr=Mt(),na=Mt(),Oe=Mt({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),st=Mt({items:[],query:{select:{documents:new ra(0),terms:new ra(0)},values:[]},pagination:{total:0}});function xu(e,t,r){for(let n=0;tr&&t(0,o,r,r=i);continue;case 62:e.charCodeAt(r+1)===47?t(2,--o,r,r=i+1):xu(e,r,n)?t(3,o,r,r=i+1):t(1,o++,r,r=i+1)}i>r&&t(0,o,r,i)}function Eu(e,t=0,r=e.length){let n=++t;e:for(let l=0;n{let i=[],a=[],{onElement:s,onText:c=Tu}=typeof r=="function"?{onElement:r}:r,l=0,u=0;return e(t,(p,d,m,h)=>{if(p===0)i[l++]=c(t,m,h),a[u++]={value:null,depth:d};else if(p&1&&(a[u++]={value:Eu(t,m,h),depth:d}),p&2)for(let v=0;u>=0;v++){let{value:y,depth:x}=a[--u];if(x>d)continue;let E=i.slice(l-=v,l+v);i[l++]=s(y,E),u++;break}},n,o),i.slice(0,l)}}function Ou(e){return e.replace(/[&<>]/g,t=>{switch(t.charCodeAt(0)){case 38:return"&";case 60:return"<";case 62:return">"}})}function bn(e){return e.replace(/&(amp|[lg]t);/g,t=>{switch(t.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function Lu(e,t){return{start:e.start+t,end:e.end+t,value:e.value}}function Mu(e,t,r){return e.slice(t,r)}function ku(e){let{onHighlight:t,onText:r=Mu}=typeof e=="function"?{onHighlight:e}:e;return(n,o,i=0,a=n.length)=>{var l;let s=[],c=(l=o==null?void 0:o.ranges)!=null?l:[];for(let u=0,p=i;ua)break;let m=c[u].end;if(mi&&s.push(r(n,i,d));let{value:h}=c[u];s.push(t(n,{start:d,end:i=m,value:h}))}return it!==null&&typeof t<"u"&&t!==!1&&!(typeof t=="string"&&t.trim().length===0))}function Ja(e,t){let r=Ga(e,{onElement(n,o){return Lt(n.tag,n.attrs,...o)},onText(n,o,i){return Ya(n,t==null?void 0:t.value.highlight,o,i)}});return U(qe,{children:r})}function Iu(e,t){var n;let r=[];for(let o=0,i=0;om.start=s||c.push(He(k({},m),{start:Math.max(m.start,a),end:Math.min(m.end,s)}));let l=Ga(e,{onElement(m,h){var y;let v=Pu(h);if(v.length!==0)return $u.has(m.tag)?Lt(m.tag,(y=m.attrs)!=null?y:{},...v):m.tag==="li"?U(qe,{children:["\u2013 ",v," "]}):Hu.has(m.tag)?U(qe,{children:[" ",v," "]}):U(qe,{children:v})},onText(m,h,v){let y=Math.max(h,a),x=Math.min(v,s);if(!(y>=x))return Ya(m,{ranges:c},y,x)}});return U(qe,{children:[a>0&&"...",l]})}function Xa(e,t={highlight:!0}){Ba.value=t;let r=new Worker(e);r.onmessage=n=>{let o=n.data;switch(o.type){case 1:na.value=!0;break;case 3:typeof o.data.pagination.prev<"u"?st.value=He(k({},st.value),{pagination:o.data.pagination,items:[...st.value.items,...o.data.items]}):(st.value=o.data,co(0));break}},Kt(()=>{lr.value&&r.postMessage({type:0,data:lr.value})}),Kt(()=>{na.value&&r.postMessage({type:2,data:Oe.value})})}var oa={container:"p",hidden:"v"};function ju(e){return U("div",{class:qt(oa.container,{[oa.hidden]:e.hidden}),onClick:()=>Vt()})}var ia={container:"r",disabled:"c"};function aa(e){return U("button",{class:qt(ia.container,{[ia.disabled]:!e.onClick}),onClick:e.onClick,children:e.children})}var sa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),ca=e=>{let t=Fu(e);return t.charAt(0).toUpperCase()+t.slice(1)},Uu=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Nu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Du=c=>{var l=c,{color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,children:o,iconNode:i,class:a=""}=l,s=gr(l,["color","size","strokeWidth","absoluteStrokeWidth","children","iconNode","class"]);return Lt("svg",k(He(k({},Nu),{width:String(t),height:t,stroke:e,"stroke-width":n?Number(r)*24/Number(t):r,class:["lucide",a].join(" ")}),s),[...i.map(([u,p])=>Lt(u,p)),...Cr(o)])},Za=(e,t)=>{let r=a=>{var s=a,{class:n="",children:o}=s,i=gr(s,["class","children"]);return Lt(Du,He(k({},i),{iconNode:t,class:Uu(`lucide-${sa(ca(e))}`,`lucide-${sa(e)}`,n)}),o)};return r.displayName=ca(e),r},Wu=Za("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]),Vu=Za("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),cw=xl(wl(),1);function zu({threshold:e=0,root:t=null,rootMargin:r="0%",freezeOnceVisible:n=!1,initialIsIntersecting:o=!1,onChange:i}={}){var a;let[s,c]=_n(null),[l,u]=_n(()=>({isIntersecting:o,entry:void 0})),p=zt();p.current=i;let d=((a=l.entry)==null?void 0:a.isIntersecting)&&n;mt(()=>{if(!s||!("IntersectionObserver"in window)||d)return;let v,y=new IntersectionObserver(x=>{let E=Array.isArray(y.thresholds)?y.thresholds:[y.thresholds];x.forEach(_=>{let Z=_.isIntersecting&&E.some(ve=>_.intersectionRatio>=ve);u({isIntersecting:Z,entry:_}),p.current&&p.current(Z,_),Z&&n&&v&&(v(),v=void 0)})},{threshold:e,root:t,rootMargin:r});return y.observe(s),()=>{y.disconnect()}},[s,JSON.stringify(e),t,r,d,n]);let m=zt(null);mt(()=>{var v;!s&&(v=l.entry)!=null&&v.target&&!n&&!d&&m.current!==l.entry.target&&(m.current=l.entry.target,u({isIntersecting:o,entry:void 0}))},[s,l.entry,n,d,o]);let h=[c,!!l.isIntersecting,l.entry];return h.ref=h[0],h.isIntersecting=h[1],h.entry=h[2],h}var pt={container:"n",hidden:"l",content:"y",pop:"d",badge:"w",sidebar:"e",controls:"k",results:"z",loadmore:"j"};function qu(e){let{isIntersecting:t,ref:r}=zu({threshold:0});mt(()=>{t&&du()},[t]);let n=zt(null);mt(()=>{n.current&&typeof Oe.value.page>"u"&&n.current.scrollTo({top:0,behavior:"smooth"})},[Oe.value]);let o=qa();return U("div",{class:qt(pt.container,{[pt.hidden]:e.hidden}),children:[U("div",{class:pt.content,children:[U("div",{class:pt.controls,children:[U(aa,{onClick:Vt,children:U(Vu,{})}),U(Bu,{focus:!e.hidden}),U(aa,{onClick:Va,children:[U(Wu,{}),o.length>0&&U("span",{class:pt.badge,children:o.length})]})]}),U("div",{class:pt.results,ref:n,children:[U(Gu,{keyboard:!e.hidden}),U("div",{class:pt.loadmore,ref:r})]})]}),U("div",{class:qt(pt.sidebar,{[pt.hidden]:yu()}),children:U(Ku,{})})]})}var St={container:"X",list:"F",heading:"I",title:"R",item:"o",active:"g",value:"q",count:"A"};function Ku(e){let t=_u();return t.sort((r,n)=>n.node.count-r.node.count),U("div",{class:St.container,children:[U("h3",{class:St.heading,children:"Filters"}),U("h4",{class:St.title,children:"Tags"}),U("ol",{class:St.list,children:t.map(r=>U("li",{class:qt(St.item,{[St.active]:hu(r.node.value)}),onClick:()=>vu(r.node.value),children:[U("span",{class:St.value,children:r.node.value}),U("span",{class:St.count,children:r.node.count})]}))})]})}var la={container:"f"};function Bu(e){let t=zt(null);return mt(()=>{var r,n;e.focus?(r=t.current)==null||r.focus():(n=t.current)==null||n.blur()},[e.focus]),U("div",{class:la.container,children:U("input",{ref:t,type:"text",class:la.content,value:bn(Tn()),onInput:r=>za(Ou(r.currentTarget.value)),autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox"})})}var at={container:"b",heading:"B",item:"i",active:"h",wrapper:"C",meta:"D",actions:"s",title:"x",path:"t",excerpt:"u",more:"E"};function Qa(){let[e,t]=_n(!1);return mt(()=>{let r=()=>t(!0),n=()=>t(!1);return document.addEventListener("compositionstart",r),document.addEventListener("compositionend",n),()=>{document.removeEventListener("compositionstart",r),document.removeEventListener("compositionend",n)}},[]),e}function Gu(e){var s;let t=mu(),r=bu(),n=vn(),o=zt([]),i=Qa();mt(()=>{let c=o.current[n];c&&c.scrollIntoView({block:"center",behavior:"smooth"})},[n]),Ca(e.keyboard,c=>{if(i)return;let l=vn();c.key==="ArrowDown"?(c.preventDefault(),co(Math.min(l+1,r.length-1))):c.key==="ArrowUp"&&(c.preventDefault(),co(Math.max(l-1,0)))},[e.keyboard,i]);let a=(s=gu())!=null?s:0;return U(qe,{children:[r.length>0&&U("h3",{class:at.heading,children:[U("span",{class:at.bubble,children:new Intl.NumberFormat("en-US").format(a)})," ","results"]}),U("ol",{class:at.container,children:r.map((c,l)=>{var y,x,E,_;let u=c.matches.find(({field:Z})=>Z==="text"),p=Ja(t[c.id].title,c.matches.find(({field:Z})=>Z==="title")),d=Iu((y=t[c.id].path)!=null?y:[],c.matches.find(({field:Z})=>Z==="path")),m=Ru(t[c.id].text,u),h=Math.max(0,((_=(E=(x=u==null?void 0:u.value.highlight)==null?void 0:x.ranges)==null?void 0:E.filter(Z=>Z.start{o.current[l]=Z},href:v,onClick:()=>Vt(),class:qt(at.item,{[at.active]:l===vn()}),children:U("div",{class:at.wrapper,children:[U("div",{class:at.meta,children:U("menu",{class:at.path,children:d.map(Z=>U("li",{children:Z}))})}),U("h2",{class:at.title,children:p}),m&&U("div",{class:at.excerpt,children:m})]})})})})})]})}var Yu={container:"a"};function Ju(e){let t=Qa();return Ca(!0,r=>{var n,o,i,a,s;if(!t)if((r.metaKey||r.ctrlKey)&&r.key==="k")r.preventDefault(),Vt();else if((r.metaKey||r.ctrlKey)&&r.key==="j")document.body.classList.toggle("dark");else if(r.key==="Enter"&&!sr()){r.preventDefault();let c=vn(),l=(o=(n=st.value)==null?void 0:n.items[c])==null?void 0:o.id;if((a=(i=lr.value)==null?void 0:i.items[l])!=null&&a.location){Vt();let u=(s=lr.value)==null?void 0:s.items[l].location;if(Ka()){let p=encodeURIComponent(Tn()),[d,m]=u.split("#",2);u=`${d}?h=${p.replace(/%20/g,"+")}`,typeof m<"u"&&(u+=`#${m}`)}window.location.href=u}}else r.key==="Escape"&&!sr()&&(r.preventDefault(),Vt())},[t]),U("div",{class:Yu.container,children:[U(ju,{hidden:sr()}),U(qu,{hidden:sr()})]})}function es(e,t){fu(e),kl(U(Ju,{}),t)}function bo(){Vt()}function Xu(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 Zu(){return R(b(window,"compositionstart").pipe(f(()=>!0)),b(window,"compositionend").pipe(f(()=>!1))).pipe(J(!1))}function ts(){let e=b(window,"keydown").pipe(f(t=>({mode:sr()?"global":"search",type:t.key,meta:t.ctrlKey||t.metaKey,claim(){t.preventDefault(),t.stopPropagation()}})),O(({mode:t,type:r})=>{if(t==="global"){let n=xt();if(typeof n!="undefined")return!Xu(n,r)}return!0}),xe());return Zu().pipe(g(t=>t?w:e))}function Ue(){return new URL(location.href)}function dt(e,t=!1){if(X("navigation.instant")&&!t){let r=A("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function rs(){return new I}function ns(){return location.hash.slice(1)}function os(e){let t=A("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function go(e){return R(b(window,"hashchange"),e).pipe(f(ns),J(ns()),O(t=>t.length>0),f(decodeURIComponent),ae(1))}function is(e){return go(e).pipe(f(t=>we(`[id="${t}"]`)),O(t=>typeof t!="undefined"))}function Ir(e){let t=matchMedia(e);return sn(r=>t.addListener(()=>r(t.matches))).pipe(J(t.matches))}function as(){let e=matchMedia("print");return R(b(window,"beforeprint").pipe(f(()=>!0)),b(window,"afterprint").pipe(f(()=>!1))).pipe(J(e.matches))}function _o(e,t){return e.pipe(g(r=>r?t():w))}function yo(e,t){return new N(r=>{let n=new XMLHttpRequest;return n.open("GET",`${e}`),n.responseType="blob",n.addEventListener("load",()=>{n.status>=200&&n.status<300?(r.next(n.response),r.complete()):r.error(new Error(n.statusText))}),n.addEventListener("error",()=>{r.error(new Error("Network error"))}),n.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(n.addEventListener("progress",o=>{var i;if(o.lengthComputable)t.progress$.next(o.loaded/o.total*100);else{let a=(i=n.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(o.loaded/+a*100)}}),t.progress$.next(5)),n.send(),()=>n.abort()})}function tt(e,t){return yo(e,t).pipe(g(r=>r.text()),f(r=>JSON.parse(r)),ae(1))}function Sn(e,t){let r=new DOMParser;return yo(e,t).pipe(g(n=>n.text()),f(n=>r.parseFromString(n,"text/html")),ae(1))}function ss(e,t){let r=new DOMParser;return yo(e,t).pipe(g(n=>n.text()),f(n=>r.parseFromString(n,"text/xml")),ae(1))}var xo={drawer:Y("[data-md-toggle=drawer]"),search:Y("[data-md-toggle=search]")};function wo(e,t){xo[e].checked!==t&&xo[e].click()}function On(e){let t=xo[e];return b(t,"change").pipe(f(()=>t.checked),J(t.checked))}function cs(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function ls(){return R(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(f(cs),J(cs()))}function us(){return{width:innerWidth,height:innerHeight}}function ps(){return b(window,"resize",{passive:!0}).pipe(f(us),J(us()))}function fs(){return ne([ls(),ps()]).pipe(f(([e,t])=>({offset:e,size:t})),ae(1))}function Ln(e,{viewport$:t,header$:r}){let n=t.pipe(he("size")),o=ne([n,r]).pipe(f(()=>Et(e)));return ne([r,t,o]).pipe(f(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}var Qu=Y("#__config"),mr=JSON.parse(Qu.textContent);mr.base=`${new URL(mr.base,Ue())}`;function Ne(){return mr}function X(e){return mr.features.includes(e)}function Gt(e,t){return typeof t!="undefined"?mr.translations[e].replace("#",t.toString()):mr.translations[e]}function ht(e,t=document){return Y(`[data-md-component=${e}]`,t)}function Te(e,t=document){return $(`[data-md-component=${e}]`,t)}function ep(e){let t=Y(".md-typeset > :first-child",e);return b(t,"click",{once:!0}).pipe(f(()=>Y(".md-typeset",e)),f(r=>({hash:__md_hash(r.innerHTML)})))}function ms(e){if(!X("announce.dismiss")||!e.childElementCount)return w;if(!e.hidden){let t=Y(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return j(()=>{let t=new I;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),ep(e).pipe(P(r=>t.next(r)),z(()=>t.complete()),f(r=>k({ref:e},r)))})}function tp(e,{target$:t}){return t.pipe(f(r=>({hidden:r!==e})))}function ds(e,t){let r=new I;return r.subscribe(({hidden:n})=>{e.hidden=n}),tp(e,t).pipe(P(n=>r.next(n)),z(()=>r.complete()),f(n=>k({ref:e},n)))}function Eo(e,t){return t==="inline"?A("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},A("div",{class:"md-tooltip__inner md-typeset"})):A("div",{class:"md-tooltip",id:e,role:"tooltip"},A("div",{class:"md-tooltip__inner md-typeset"}))}function Mn(...e){return A("div",{class:"md-tooltip2",role:"dialog"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function hs(...e){return A("div",{class:"md-tooltip2",role:"tooltip"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function vs(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return A("aside",{class:"md-annotation",tabIndex:0},Eo(t),A("a",{href:r,class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}else return A("aside",{class:"md-annotation",tabIndex:0},Eo(t),A("span",{class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}function bs(e){return A("button",{class:"md-code__button",title:Gt("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function gs(){return A("button",{class:"md-code__button",title:"Toggle line selection","data-md-type":"select"})}function _s(){return A("nav",{class:"md-code__nav"})}var op=_r(To());function xs(e){return A("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>A("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Oi(r):r)))}function So(e){let t=`tabbed-control tabbed-control--${e}`;return A("div",{class:t,hidden:!0},A("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function ws(e){return A("div",{class:"md-typeset__scrollwrap"},A("div",{class:"md-typeset__table"},e))}function ip(e){var n;let t=Ne(),r=new URL(`../${e.version}/`,t.base);return A("li",{class:"md-version__item"},A("a",{href:`${r}`,class:"md-version__link"},e.title,((n=t.version)==null?void 0:n.alias)&&e.aliases.length>0&&A("span",{class:"md-version__alias"},e.aliases[0])))}function Es(e,t){var n;let r=Ne();return e=e.filter(o=>{var i;return!((i=o.properties)!=null&&i.hidden)}),A("div",{class:"md-version"},A("button",{class:"md-version__current","aria-label":Gt("select.version")},t.title,((n=r.version)==null?void 0:n.alias)&&t.aliases.length>0&&A("span",{class:"md-version__alias"},t.aliases[0])),A("ul",{class:"md-version__list"},e.map(ip)))}var ap=0;function sp(e,t=250){let r=ne([ar(e),Nt(e,t)]).pipe(f(([o,i])=>o||i),se()),n=j(()=>Ai(e)).pipe(ie(Dt),Lr(1),Qe(r),f(()=>Ci(e)));return r.pipe(Sr(o=>o),g(()=>ne([r,n])),f(([o,i])=>({active:o,offset:i})),xe())}function Rr(e,t,r=250){let{content$:n,viewport$:o}=t,i=`__tooltip2_${ap++}`;return j(()=>{let a=new I,s=new Dn(!1);a.pipe(be(),ye(!1)).subscribe(s);let c=s.pipe(Tr(u=>ze(+!u*250,zn)),se(),g(u=>u?n:w),P(u=>u.id=i),xe());ne([a.pipe(f(({active:u})=>u)),c.pipe(g(u=>Nt(u,250)),J(!1))]).pipe(f(u=>u.some(p=>p))).subscribe(s);let l=s.pipe(O(u=>u),fe(c,o),f(([u,p,{size:d}])=>{let m=e.getBoundingClientRect(),h=m.width/2;if(p.role==="tooltip")return{x:h,y:8+m.height};if(m.y>=d.height/2){let{height:v}=Ae(p);return{x:h,y:-16-v}}else return{x:h,y:16+m.height}}));return ne([c,a,l]).subscribe(([u,{offset:p},d])=>{u.style.setProperty("--md-tooltip-host-x",`${p.x}px`),u.style.setProperty("--md-tooltip-host-y",`${p.y}px`),u.style.setProperty("--md-tooltip-x",`${d.x}px`),u.style.setProperty("--md-tooltip-y",`${d.y}px`),u.classList.toggle("md-tooltip2--top",d.y<0),u.classList.toggle("md-tooltip2--bottom",d.y>=0)}),s.pipe(O(u=>u),fe(c,(u,p)=>p),O(u=>u.role==="tooltip")).subscribe(u=>{let p=Ae(Y(":scope > *",u));u.style.setProperty("--md-tooltip-width",`${p.width}px`),u.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(se(),Ie(je),fe(c)).subscribe(([u,p])=>{p.classList.toggle("md-tooltip2--active",u)}),ne([s.pipe(O(u=>u)),c]).subscribe(([u,p])=>{p.role==="dialog"?(e.setAttribute("aria-controls",i),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",i)}),s.pipe(O(u=>!u)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),sp(e,r).pipe(P(u=>a.next(u)),z(()=>a.complete()),f(u=>k({ref:e},u)))})}function Je(e,{viewport$:t},r=document.body){return Rr(e,{content$:new N(n=>{let o=e.title,i=hs(o);return n.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",o)}}),viewport$:t},0)}function cp(e,t){let r=j(()=>ne([Hi(e),Dt(t)])).pipe(f(([{x:n,y:o},i])=>{let{width:a,height:s}=Ae(e);return{x:n-i.x+a/2,y:o-i.y+s/2}}));return ar(e).pipe(g(n=>r.pipe(f(o=>({active:n,offset:o})),Me(+!n||1/0))))}function Ts(e,t,{target$:r}){let[n,o]=Array.from(e.children);return j(()=>{let i=new I,a=i.pipe(be(),ye(!0));return i.subscribe({next({offset:s}){e.style.setProperty("--md-tooltip-x",`${s.x}px`),e.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),Tt(e).pipe(ee(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),R(i.pipe(O(({active:s})=>s)),i.pipe(Ye(250),O(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(n):n.remove()},complete(){e.prepend(n)}}),i.pipe(Ze(16,je)).subscribe(({active:s})=>{n.classList.toggle("md-tooltip--active",s)}),i.pipe(Lr(125,je),O(()=>!!e.offsetParent),f(()=>e.offsetParent.getBoundingClientRect()),f(({x:s})=>s)).subscribe({next(s){s?e.style.setProperty("--md-tooltip-0",`${-s}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),b(o,"click").pipe(ee(a),O(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),b(o,"mousedown").pipe(ee(a),fe(i)).subscribe(([s,{active:c}])=>{var l;if(s.button!==0||s.metaKey||s.ctrlKey)s.preventDefault();else if(c){s.preventDefault();let u=e.parentElement.closest(".md-annotation");u instanceof HTMLElement?u.focus():(l=xt())==null||l.blur()}}),r.pipe(ee(a),O(s=>s===n),jt(125)).subscribe(()=>e.focus()),cp(e,t).pipe(P(s=>i.next(s)),z(()=>i.complete()),f(s=>k({ref:e},s)))})}function lp(e){let t=Ne();if(e.tagName!=="CODE")return[e];let r=[".c",".c1",".cm"];if(t.annotate){let n=e.closest("[class|=language]");if(n)for(let o of Array.from(n.classList)){if(!o.startsWith("language-"))continue;let[,i]=o.split("-");i in t.annotate&&r.push(...t.annotate[i])}}return $(r.join(", "),e)}function up(e){let t=[];for(let r of lp(e)){let n=[],o=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=o.nextNode();i;i=o.nextNode())n.push(i);for(let i of n){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,c]=a;if(typeof c=="undefined"){let l=i.splitText(a.index);i=l.splitText(s.length),t.push(l)}else{i.textContent=s,t.push(i);break}}}}return t}function Ss(e,t){t.append(...Array.from(e.childNodes))}function kn(e,t,{target$:r,print$:n}){let o=t.closest("[id]"),i=o==null?void 0:o.id,a=new Map;for(let s of up(t)){let[,c]=s.textContent.match(/\((\d+)\)/);we(`:scope > li:nth-child(${c})`,e)&&(a.set(c,vs(c,i)),s.replaceWith(a.get(c)))}return a.size===0?w:j(()=>{let s=new I,c=s.pipe(be(),ye(!0)),l=[];for(let[u,p]of a)l.push([Y(".md-typeset",p),Y(`:scope > li:nth-child(${u})`,e)]);return n.pipe(ee(c)).subscribe(u=>{e.hidden=!u,e.classList.toggle("md-annotation-list",u);for(let[p,d]of l)u?Ss(p,d):Ss(d,p)}),R(...[...a].map(([,u])=>Ts(u,t,{target$:r}))).pipe(z(()=>s.complete()),xe())})}function Os(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Os(t)}}function Ls(e,t){return j(()=>{let r=Os(e);return typeof r!="undefined"?kn(r,e,t):w})}var ks=_r(Lo());var pp=0,Ms=R(b(window,"keydown").pipe(f(()=>!0)),R(b(window,"keyup"),b(window,"contextmenu")).pipe(f(()=>!1))).pipe(J(!1),ae(1));function As(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return As(t)}}function fp(e){return Re(e).pipe(f(({width:t})=>({scrollable:Mr(e).width>t})),he("scrollable"))}function Cs(e,t){let{matches:r}=matchMedia("(hover)"),n=j(()=>{let o=new I,i=o.pipe(Jn(1));o.subscribe(({scrollable:m})=>{m&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let a=[],s=e.closest("pre"),c=s.closest("[id]"),l=c?c.id:pp++;s.id=`__code_${l}`;let u=[],p=e.closest(".highlight");if(p instanceof HTMLElement){let m=As(p);if(typeof m!="undefined"&&(p.classList.contains("annotate")||X("content.code.annotate"))){let h=kn(m,e,t);u.push(Re(p).pipe(ee(i),f(({width:v,height:y})=>v&&y),se(),g(v=>v?h:w)))}}let d=$(":scope > span[id]",e);if(d.length&&(e.classList.add("md-code__content"),e.closest(".select")||X("content.code.select")&&!e.closest(".no-select"))){let m=+d[0].id.split("-").pop(),h=gs();a.push(h),X("content.tooltips")&&u.push(Je(h,{viewport$}));let v=b(h,"click").pipe(Or(L=>!L,!1),P(()=>h.blur()),xe());v.subscribe(L=>{h.classList.toggle("md-code__button--active",L)});let y=me(d).pipe(ie(L=>Nt(L).pipe(f(M=>[L,M]))));v.pipe(g(L=>L?y:w)).subscribe(([L,M])=>{let D=we(".hll.select",L);if(D&&!M)D.replaceWith(...Array.from(D.childNodes));else if(!D&&M){let te=document.createElement("span");te.className="hll select",te.append(...Array.from(L.childNodes).slice(1)),L.append(te)}});let x=me(d).pipe(ie(L=>b(L,"mousedown").pipe(P(M=>M.preventDefault()),f(()=>L)))),E=v.pipe(g(L=>L?x:w),fe(Ms),f(([L,M])=>{var te;let D=d.indexOf(L)+m;if(M===!1)return[D,D];{let ue=$(".hll",e).map(le=>d.indexOf(le.parentElement)+m);return(te=window.getSelection())==null||te.removeAllRanges(),[Math.min(D,...ue),Math.max(D,...ue)]}})),_=go(w).pipe(O(L=>L.startsWith(`__codelineno-${l}-`)));_.subscribe(L=>{let[,,M]=L.split("-"),D=M.split(":").map(ue=>+ue-m+1);D.length===1&&D.push(D[0]);for(let ue of $(".hll:not(.select)",e))ue.replaceWith(...Array.from(ue.childNodes));let te=d.slice(D[0]-1,D[1]);for(let ue of te){let le=document.createElement("span");le.className="hll",le.append(...Array.from(ue.childNodes).slice(1)),ue.append(le)}}),_.pipe(Me(1),Ie(_e)).subscribe(L=>{if(L.includes(":")){let M=document.getElementById(L.split(":")[0]);M&&setTimeout(()=>{let D=M,te=-64;for(;D!==document.body;)te+=D.offsetTop,D=D.offsetParent;window.scrollTo({top:te})},1)}});let ve=me($('a[href^="#__codelineno"]',p)).pipe(ie(L=>b(L,"click").pipe(P(M=>M.preventDefault()),f(()=>L)))).pipe(ee(i),fe(Ms),f(([L,M])=>{let te=+Y(`[id="${L.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(M===!1)return[te,te];{let ue=$(".hll",e).map(le=>+le.parentElement.id.split("-").pop());return[Math.min(te,...ue),Math.max(te,...ue)]}}));R(E,ve).subscribe(L=>{let M=`#__codelineno-${l}-`;L[0]===L[1]?M+=L[0]:M+=`${L[0]}:${L[1]}`,history.replaceState({},"",M),window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:window.location.origin+window.location.pathname+M,oldURL:window.location.href}))})}if(ks.default.isSupported()&&(e.closest(".copy")||X("content.code.copy")&&!e.closest(".no-copy"))){let m=bs(s.id);a.push(m),X("content.tooltips")&&u.push(Je(m,{viewport$}))}if(a.length){let m=_s();m.append(...a),s.insertBefore(m,e)}return fp(e).pipe(P(m=>o.next(m)),z(()=>o.complete()),f(m=>k({ref:e},m)),Ft(R(...u).pipe(ee(i))))});return X("content.lazy")?Tt(e).pipe(O(o=>o),Me(1),g(()=>n)):n}function mp(e,{target$:t,print$:r}){let n=!0;return R(t.pipe(f(o=>o.closest("details:not([open])")),O(o=>e===o),f(()=>({action:"open",reveal:!0}))),r.pipe(O(o=>o||!n),P(()=>n=e.open),f(o=>({action:o?"open":"close"}))))}function Hs(e,t){return j(()=>{let r=new I;return r.subscribe(({action:n,reveal:o})=>{e.toggleAttribute("open",n==="open"),o&&e.scrollIntoView()}),mp(e,t).pipe(P(n=>r.next(n)),z(()=>r.complete()),f(n=>k({ref:e},n)))})}var $s;function dp(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?wt("https://unpkg.com/glightbox@3/dist/js/glightbox.min.js").pipe(de(()=>w),f(()=>{})):K(void 0)}function hp(){return Li("https://unpkg.com/glightbox@3/dist/css/glightbox.min.css").pipe(de(()=>w),f(()=>{}))}function Ps(e){return $s||($s=dp().pipe(f(()=>new GLightbox(k({touchNavigation:!0,loop:!1,zoomable:!0,draggable:!0,openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",onOpen:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}},typeof GLightboxOptions!="undefined"?GLightboxOptions:{}))),ae(1))),hp().pipe(g(()=>$s),g(t=>(t.reload(),e.map(r=>({ref:r})))))}var Is=0,Rs=new Map;function vp(e){let t=document.createElement("h3");t.innerHTML=e.innerHTML;let r=[t],n=e.nextElementSibling;for(;n&&!(n instanceof HTMLHeadingElement);)r.push(n.cloneNode(!0)),n=n.nextElementSibling;return r}function bp(e,t){for(let r of $("[href], [src]",e))for(let n of["href","src"]){let o=r.getAttribute(n);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){r[n]=new URL(r.getAttribute(n),t).toString();break}}for(let r of $("[name^=__], [for]",e))for(let n of["id","for","name"]){let o=r.getAttribute(n);o&&r.setAttribute(n,`${o}$preview_${Is}`)}return Is++,K(e)}function gp(e){let t=Rs.get(e.toString());return t?K(t):Sn(e).pipe(g(r=>bp(r,e)),f(r=>(Rs.set(e.toString(),r),r)))}function js(e,t){let{sitemap$:r}=t;if(!(e instanceof HTMLAnchorElement))return w;if(!(X("navigation.instant.preview")||e.hasAttribute("data-preview")))return w;e.removeAttribute("title");let n=ne([ar(e),Nt(e).pipe(ke(1))]).pipe(f(([i,a])=>i||a),se(),O(i=>i));return It([r,n]).pipe(g(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?K(a):w}),g(i=>gp(i)),g(i=>{let a=e.hash?`article [id="${decodeURIComponent(e.hash.slice(1))}"]`:"article h1",s=we(a,i);return typeof s=="undefined"?w:K(vp(s))})).pipe(g(i=>{let a=new N(s=>{let c=Mn(...i);return s.next(c),document.body.append(c),()=>c.remove()});return Rr(e,k({content$:a},t))}))}var Fs=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.flowchartTitleText{fill:var(--md-mermaid-label-fg-color)}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel p,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel p{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}.classDiagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs marker.marker.composition.class path,defs marker.marker.dependency.class path,defs marker.marker.extension.class path{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs marker.marker.aggregation.class path{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}.statediagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}a .nodeLabel{text-decoration:underline}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}[id^=entity] path,[id^=entity] rect{fill:var(--md-default-bg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs .marker.oneOrMore.er *,defs .marker.onlyOne.er *,defs .marker.zeroOrMore.er *,defs .marker.zeroOrOne.er *{stroke:var(--md-mermaid-edge-color)!important}text:not([class]):last-child{fill:var(--md-mermaid-label-fg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}.actor-line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}[id$=-arrowhead] path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}";var Mo,yp=0;function xp(){return typeof mermaid=="undefined"||mermaid instanceof Element?wt("https://unpkg.com/mermaid@11/dist/mermaid.min.js"):K(void 0)}function Us(e){return e.classList.remove("mermaid"),Mo||(Mo=xp().pipe(P(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Fs,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),f(()=>{}),ae(1))),Mo.subscribe(()=>Fo(null,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${yp++}`,r=A("div",{class:"mermaid"}),n=e.textContent,{svg:o,fn:i}=yield mermaid.render(t,n),a=r.attachShadow({mode:"closed"});a.innerHTML=o,e.replaceWith(r),i==null||i(a)})),Mo.pipe(f(()=>({ref:e})))}var Ns=A("table");function Ds(e){return e.replaceWith(Ns),Ns.replaceWith(ws(e)),K({ref:e})}function wp(e){let t=e.find(r=>r.checked)||e[0];return R(...e.map(r=>b(r,"change").pipe(f(()=>Y(`label[for="${r.id}"]`))))).pipe(J(Y(`label[for="${t.id}"]`)),f(r=>({active:r})))}function Ws(e,{viewport$:t,target$:r}){let n=Y(".tabbed-labels",e),o=$(":scope > input",e),i=So("prev");e.append(i);let a=So("next");return e.append(a),j(()=>{let s=new I,c=s.pipe(be(),ye(!0));ne([s,Re(e),Tt(e)]).pipe(ee(c),Ze(1,je)).subscribe({next([{active:l},u]){let p=Et(l),{width:d}=Ae(l);e.style.setProperty("--md-indicator-x",`${p.x}px`),e.style.setProperty("--md-indicator-width",`${d}px`);let m=pn(n);(p.xm.x+u.width)&&n.scrollTo({left:Math.max(0,p.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),ne([Dt(n),Re(n)]).pipe(ee(c)).subscribe(([l,u])=>{let p=Mr(n);i.hidden=l.x<16,a.hidden=l.x>p.width-u.width-16}),R(b(i,"click").pipe(f(()=>-1)),b(a,"click").pipe(f(()=>1))).pipe(ee(c)).subscribe(l=>{let{width:u}=Ae(n);n.scrollBy({left:u*l,behavior:"smooth"})}),r.pipe(ee(c),O(l=>o.includes(l))).subscribe(l=>l.click()),n.classList.add("tabbed-labels--linked");for(let l of o){let u=Y(`label[for="${l.id}"]`);u.replaceChildren(A("a",{href:`#${u.htmlFor}`,tabIndex:-1},...Array.from(u.childNodes))),b(u.firstElementChild,"click").pipe(ee(c),O(p=>!(p.metaKey||p.ctrlKey)),P(p=>{p.preventDefault(),p.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${u.htmlFor}`),u.click()})}return X("content.tabs.link")&&s.pipe(ke(1),fe(t)).subscribe(([{active:l},{offset:u}])=>{let p=l.innerText.trim();if(l.hasAttribute("data-md-switching"))l.removeAttribute("data-md-switching");else{let d=e.offsetTop-u.y;for(let h of $("[data-tabs]"))for(let v of $(":scope > input",h)){let y=Y(`label[for="${v.id}"]`);if(y!==l&&y.innerText.trim()===p){y.setAttribute("data-md-switching",""),v.click();break}}window.scrollTo({top:e.offsetTop-d});let m=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([p,...m])])}}),s.pipe(ee(c)).subscribe(()=>{for(let l of $("audio, video",e))l.offsetWidth&&l.autoplay?l.play().catch(()=>{}):l.pause()}),wp(o).pipe(P(l=>s.next(l)),z(()=>s.complete()),f(l=>k({ref:e},l)))}).pipe(Pt(_e))}function Vs(e,t){let{viewport$:r,target$:n,print$:o}=t;return R(...$(".annotate:not(.highlight)",e).map(i=>Ls(i,{target$:n,print$:o})),...$("pre:not(.mermaid) > code",e).map(i=>Cs(i,{target$:n,print$:o})),...$("a",e).map(i=>js(i,t)),...$("pre.mermaid",e).map(i=>Us(i)),...[$(".glightbox",e)].filter(i=>i.length>0).map(i=>Ps(i)),...$("table:not([class])",e).map(i=>Ds(i)),...$("details",e).map(i=>Hs(i,{target$:n,print$:o})),...$("[data-tabs]",e).map(i=>Ws(i,{viewport$:r,target$:n})),...$("[title]:not([data-preview])",e).filter(()=>X("content.tooltips")).map(i=>Je(i,{viewport$:r})),...$(".footnote-ref",e).filter(()=>X("content.footnote.tooltips")).map(i=>Rr(i,{content$:new N(a=>{let s=new URL(i.href).hash.slice(1),c=Array.from(document.getElementById(s).cloneNode(!0).children),l=Mn(...c);return a.next(l),document.body.append(l),()=>l.remove()}),viewport$:r})))}function Ep(e,{alert$:t}){return t.pipe(g(r=>R(K(!0),K(!1).pipe(jt(2e3))).pipe(f(n=>({message:r,active:n})))))}function zs(e,t){let r=Y(".md-typeset",e);return j(()=>{let n=new I;return n.subscribe(({message:o,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=o}),Ep(e,t).pipe(P(o=>n.next(o)),z(()=>n.complete()),f(o=>k({ref:e},o)))})}function Tp({viewport$:e}){if(!X("header.autohide"))return K(!1);let t=e.pipe(f(({offset:{y:o}})=>o),Rt(2,1),f(([o,i])=>[oMath.abs(i-o.y)>100),f(([,[o]])=>o),se()),n=On("search");return ne([e,n]).pipe(f(([{offset:o},i])=>o.y>400&&!i),se(),g(o=>o?r:K(!1)),J(!1))}function qs(e,t){return j(()=>ne([Re(e),Tp(t)])).pipe(f(([{height:r},n])=>({height:r,hidden:n})),se((r,n)=>r.height===n.height&&r.hidden===n.hidden),ae(1))}function Ks(e,{viewport$:t,header$:r,main$:n}){return j(()=>{let o=new I,i=o.pipe(be(),ye(!0));o.pipe(he("active"),Qe(r)).subscribe(([{active:s},{hidden:c}])=>{e.classList.toggle("md-header--shadow",s&&!c),e.hidden=c});let a=me($("[title]",e)).pipe(O(()=>X("content.tooltips")),ie(s=>Je(s,{viewport$:t})));return n.subscribe(o),r.pipe(ee(i),f(s=>k({ref:e},s)),Ft(a.pipe(ee(i))))})}function Sp(e,{viewport$:t,header$:r}){return Ln(e,{viewport$:t,header$:r}).pipe(f(({offset:{y:n}})=>{let{height:o}=Ae(e);return{active:o>0&&n>=o}}),he("active"))}function Bs(e,t){return j(()=>{let r=new I;r.subscribe({next({active:o}){e.classList.toggle("md-header__title--active",o)},complete(){e.classList.remove("md-header__title--active")}});let n=we(".md-content h1");return typeof n=="undefined"?w:Sp(n,t).pipe(P(o=>r.next(o)),z(()=>r.complete()),f(o=>k({ref:e},o)))})}function Gs(e,{viewport$:t,header$:r}){let n=r.pipe(f(({height:i})=>i),se()),o=n.pipe(g(()=>Re(e).pipe(f(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),he("bottom"))));return ne([n,o,t]).pipe(f(([i,{top:a,bottom:s},{offset:{y:c},size:{height:l}}])=>(l=Math.max(0,l-Math.max(0,a-c,i)-Math.max(0,l+c-s)),{offset:a-i,height:l,active:a-i<=c})),se((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Op(e){let t=__md_get("__palette")||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return K(...e).pipe(ie(n=>b(n,"change").pipe(f(()=>n))),J(e[r]),f(n=>({index:e.indexOf(n),color:{media:n.getAttribute("data-md-color-media"),scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),ae(1))}function Ys(e){let t=$("input",e),r=A("meta",{name:"theme-color"});document.head.appendChild(r);let n=A("meta",{name:"color-scheme"});document.head.appendChild(n);let o=Ir("(prefers-color-scheme: light)");return j(()=>{let i=new I;return i.subscribe(a=>{if(document.body.setAttribute("data-md-color-switching",""),a.color.media==="(prefers-color-scheme)"){let s=matchMedia("(prefers-color-scheme: light)"),c=document.querySelector(s.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=c.getAttribute("data-md-color-scheme"),a.color.primary=c.getAttribute("data-md-color-primary"),a.color.accent=c.getAttribute("data-md-color-accent")}for(let[s,c]of Object.entries(a.color))document.body.setAttribute(`data-md-color-${s}`,c);for(let s=0;sa.key==="Enter"),fe(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(f(()=>{let a=ht("header"),s=window.getComputedStyle(a);return n.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(c=>(+c).toString(16).padStart(2,"0")).join("")})).subscribe(a=>r.content=`#${a}`),i.pipe(Ie(_e)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),Op(t).pipe(ee(o.pipe(ke(1))),Ut(),P(a=>i.next(a)),z(()=>i.complete()),f(a=>k({ref:e},a)))})}function Js(e,{progress$:t}){return j(()=>{let r=new I;return r.subscribe(({value:n})=>{e.style.setProperty("--md-progress-value",`${n}`)}),t.pipe(P(n=>r.next({value:n})),z(()=>r.complete()),f(n=>({ref:e,value:n})))})}var Xs=`.m u{text-decoration:underline!important;text-decoration-style:wavy!important;text-decoration-thickness:1px!important}.p{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-backdrop)/var(--alpha-lighter));cursor:pointer;height:100%;pointer-events:auto;position:absolute;transition:opacity .25s;width:100%}.p.v{opacity:0;pointer-events:none;transition:opacity .35s}.r{align-items:center;background-color:initial;border:none;border-radius:var(--space-2);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);height:36px;justify-content:center;outline:none;padding:0;position:relative;transition:background-color .25s,color .25s;width:36px;z-index:1}.r svg{stroke:rgb(var(--color-foreground));height:18px;opacity:.5;width:18px}.r:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.r:hover:before{opacity:1;transform:scale(1)}.r.c{cursor:auto}.r.c:before{display:none}.n{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background)/var(--alpha-light));border:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));border-radius:var(--space-3);box-shadow:0 0 60px #0000000d;display:flex;height:480px;overflow:hidden;pointer-events:auto;position:absolute;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s;width:640px}.n.l{opacity:0;pointer-events:none;transform:scale(1.1);transition:transform .25s .15s,opacity .15s}@media (max-width:680px){.n{border-radius:0;height:100%;width:100%}}.y{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;min-width:0}@keyframes d{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.w{animation:d .25s ease-in-out;background:var(--color-highlight);border-radius:100%;color:#fff;font-size:8px;font-weight:700;height:12px;padding-top:1px;position:absolute;right:4px;top:4px;width:12px}.e{background-color:rgb(var(--color-background-subtle)/var(--alpha-lighter));border-left:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));flex-shrink:0;overflow-y:scroll;position:relative;transition:width .35s cubic-bezier(.16,1,.3,1),opacity .25s;width:200px}.e>*{transform:translate(0);transition:transform .25s cubic-bezier(.16,1,.3,1)}.e.l{opacity:0;width:0}.e.l>*{transform:translate(-48px)}@media (max-width:680px){.e{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background-subtle)/var(--alpha-light));box-shadow:0 0 60px #00000026;height:100%;position:absolute;right:0;top:0}}.k{border-bottom:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));display:flex;gap:var(--space-1);padding:var(--space-2)}.z{-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}.j{padding:8px 10px}.X{color:rgb(var(--color-foreground)/var(--alpha-light));padding:var(--space-2);position:absolute;width:100%}.F,.X{display:flex;flex-direction:column}.F{gap:2px;list-style:none;padding:0}.F,.I{margin:0}.I{font-size:16px;font-weight:400}.I,.R{padding:8px}.R{font-size:14px;margin:4px 0 0;opacity:.5}.R,.o{font-size:12px}.o{cursor:pointer;display:flex;padding:4px 8px;position:relative}.o:before{background-color:var(--color-highlight-transparent);border-radius:var(--space-1);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.o.g:before,.o:hover:before{opacity:1;transform:scale(1)}.o.g,.o:hover{color:var(--color-highlight)}.q{flex-grow:1}.A,.q{position:relative}.A{font-weight:700}.f{flex-grow:1}.f input{background:#0000;border:none;color:rgb(var(--color-foreground));font-family:var(--font-family);font-size:16px;height:100%;letter-spacing:-.25px;outline:none;width:100%}.b{color:rgb(var(--color-foreground)/var(--alpha-light));display:flex;flex-direction:column;gap:2px;line-height:1.3;list-style:none;margin:var(--space-2);margin-top:0;padding:0}.B,.b li{margin:0}.B{color:rgb(var(--color-foreground)/var(--alpha-lighter));font-size:12px;margin-top:var(--space-2);padding:0 18px}.i{border-radius:var(--space-2);color:inherit;cursor:pointer;display:flex;flex-direction:row;flex-grow:1;padding:8px 10px;position:relative;text-decoration:none}.i:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";display:block;inset:0;opacity:0;position:absolute;transform:scale(.9);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.i.h:before,.i:hover:before{opacity:1;transform:scale(1)}}.i mark{background:#0000;color:var(--color-highlight)}.i u{text-decoration:underline}.C{flex-direction:column;flex-grow:1;gap:5.5px}.C,.D{display:flex;min-width:0}.D{align-items:flex-start;gap:var(--space-2);justify-content:space-between}.s{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:6px;justify-content:flex-end;margin-right:-8px;margin-top:auto;opacity:0;position:relative;transform:translate(-2px);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.h>.s,:hover>.s{opacity:1;transform:none}}.x{font-size:14px;margin:0;position:relative}.x code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);font-size:13px;padding:2px 4px}.t{color:rgb(var(--color-foreground)/.45);display:inline-flex;flex:1 1 auto;flex-wrap:wrap;font-size:12px;gap:var(--space-1);list-style:none;margin:0;min-width:0;padding:0;position:relative}.t li{white-space:nowrap}.t li:after{content:"/";display:inline;margin-left:var(--space-1)}.t li:last-child:after{content:"";display:none}.u{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:rgb(var(--color-foreground));display:-webkit-box;font-size:12px;line-height:1.5;overflow:hidden;position:relative}.u code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px}.E,.u code{font-size:11px}.E{color:rgb(var(--color-foreground)/.45);line-height:1;white-space:nowrap;z-index:1}.a{--space-1:4px;--space-2:calc(var(--space-1)*2);--space-3:calc(var(--space-2)*2);--space-4:calc(var(--space-3)*2);--space-5:calc(var(--space-4)*2);--alpha-light:0.7;--alpha-lighter:0.54;--alpha-lightest:0.07;--color-highlight:var(--md-accent-fg-color,#526cfe);--color-highlight-transparent:var( + --md-accent-fg-color--transparent,#526cfe1a + );--border-radius-1:var(--space-1);--border-radius-2:var(--space-2);--border-radius-3:calc(var(--space-1) + var(--space-2));--font-family:var( + --md-text-font-family,Inter,Roboto Flex,system-ui,sans-serif + );--font-size:16px;--line-height:1.5;--letter-spacing:-0.5px;-webkit-font-smoothing:antialiased;align-items:center;display:flex;font-family:var(--font-family);font-size:var(--font-size);height:100vh;justify-content:center;letter-spacing:var(--letter-spacing);line-height:var(--line-height);pointer-events:none;position:absolute;width:100vw}@media (pointer:coarse){.a{height:-webkit-fill-available}}.a *,.a :after,.a :before{box-sizing:border-box}`;function Zs(e,{index$:t}){let r=Ne(),n=document.createElement("div");document.body.appendChild(n),n.style.position="fixed",n.style.height="100%",n.style.top="0",n.style.zIndex="4";let o=n.attachShadow({mode:"open"});o.appendChild(A("style",{},Xs.toString()));try{Xa(r.search,{highlight:r.features.includes("search.highlight")}),me(t).subscribe(i=>{for(let a of i.items)a.location=new URL(`./${a.location}`,r.base).toString();es(i,o)}),b(e,"click").subscribe(()=>{bo()}),On("search").pipe(ke(1)).subscribe(()=>bo())}catch(i){e.hidden=!0;let a=Y("label[for=__search]");a.hidden=!0}return Ge}var Qs=_r(To());function ec(e,{index$:t,location$:r}){return ne([t,r.pipe(J(Ue()),O(n=>!!n.searchParams.get("h")))]).pipe(f(([n,o])=>Mp(n.config)(o.searchParams.get("h"))),f(n=>{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&&a.offsetHeight){let c=s.textContent,l=n(c);l.length>c.length&&o.set(s,l)}for(let[s,c]of o){let{childNodes:l}=A("span",null,c);s.replaceWith(...Array.from(l))}return{ref:e,nodes:o}}))}function Mp(e){let t=e.separator.split("|").map(o=>o.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":o).join("|"),r=new RegExp(t,"img"),n=(o,i,a)=>`${i}${a}`;return o=>{o=o.replace(/\s+/g," ").replace(/&/g,"&").trim();let i=new RegExp(`(^|${e.separator}|)(${o.split(r).map(a=>a.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")).filter(a=>a.length>=2).join("|")})`,"img");return a=>(0,Qs.default)(a).replace(i,n).replace(/<\/mark>(\s+)]*>/img,"$1")}}function kp(e,{viewport$:t,main$:r}){let n=e.closest(".md-grid"),o=n.offsetTop-n.parentElement.offsetTop;return ne([r,t]).pipe(f(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),se((i,a)=>i.height===a.height&&i.locked===a.locked))}function ko(e,n){var o=n,{header$:t}=o,r=gr(o,["header$"]);let i=Y(".md-sidebar__scrollwrap",e),{y:a}=Et(i);return j(()=>{let s=new I,c=s.pipe(be(),ye(!0)),l=s.pipe(Ze(0,je));return l.pipe(fe(t)).subscribe({next([{height:u},{height:p}]){i.style.height=`${u-2*a}px`,e.style.top=`${p}px`},complete(){i.style.height="",e.style.top=""}}),l.pipe(Sr()).subscribe(()=>{for(let u of $(".md-nav__link--active[href]",e)){if(!u.clientHeight)continue;let p=u.closest(".md-sidebar__scrollwrap");if(typeof p!="undefined"){let d=u.offsetTop-p.offsetTop,{height:m}=Ae(p);p.scrollTo({top:d-m/2})}}}),me($("label[tabindex]",e)).pipe(ie(u=>b(u,"click").pipe(Ie(_e),f(()=>u),ee(c)))).subscribe(u=>{let p=Y(`[id="${u.htmlFor}"]`);Y(`[aria-labelledby="${u.id}"]`).setAttribute("aria-expanded",`${p.checked}`)}),X("content.tooltips")&&me($("abbr[title]",e)).pipe(ie(u=>Je(u,{viewport$})),ee(c)).subscribe(),kp(e,r).pipe(P(u=>s.next(u)),z(()=>s.complete()),f(u=>k({ref:e},u)))})}function tc(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return It(tt(`${r}/releases/latest`).pipe(de(()=>w),f(n=>({version:n.tag_name})),it({})),tt(r).pipe(de(()=>w),f(n=>({stars:n.stargazers_count,forks:n.forks_count})),it({}))).pipe(f(([n,o])=>k(k({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return tt(r).pipe(f(n=>({repositories:n.public_repos})),it({}))}}function rc(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return It(tt(`${r}/releases/permalink/latest`).pipe(de(()=>w),f(({tag_name:n})=>({version:n})),it({})),tt(r).pipe(de(()=>w),f(({star_count:n,forks_count:o})=>({stars:n,forks:o})),it({}))).pipe(f(([n,o])=>k(k({},n),o)))}function nc(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,n]=t;return tc(r,n)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,n]=t;return rc(r,n)}return w}var Ap;function Cp(e){return Ap||(Ap=j(()=>{let t=__md_get("__source",sessionStorage);if(t)return K(t);if(Te("consent").length){let n=__md_get("__consent");if(!(n&&n.github))return w}return nc(e.href).pipe(P(n=>__md_set("__source",n,sessionStorage)))}).pipe(de(()=>w),O(t=>Object.keys(t).length>0),f(t=>({facts:t})),ae(1)))}function oc(e){let t=Y(":scope > :last-child",e);return j(()=>{let r=new I;return r.subscribe(({facts:n})=>{t.appendChild(xs(n)),t.classList.add("md-source__repository--active")}),Cp(e).pipe(P(n=>r.next(n)),z(()=>r.complete()),f(n=>k({ref:e},n)))})}function Hp(e,{viewport$:t,header$:r}){return Re(document.body).pipe(g(()=>Ln(e,{header$:r,viewport$:t})),f(({offset:{y:n}})=>({hidden:n>=10})),he("hidden"))}function ic(e,t){return j(()=>{let r=new I;return r.subscribe({next({hidden:n}){e.hidden=n},complete(){e.hidden=!1}}),(X("navigation.tabs.sticky")?K({hidden:!1}):Hp(e,t)).pipe(P(n=>r.next(n)),z(()=>r.complete()),f(n=>k({ref:e},n)))})}function $p(e,{viewport$:t,header$:r}){let n=new Map,o=$(".md-nav__link",e);for(let s of o){let c=decodeURIComponent(s.hash.substring(1)),l=we(`[id="${c}"]`);typeof l!="undefined"&&n.set(s,l)}let i=r.pipe(he("height"),f(({height:s})=>{let c=ht("main"),l=Y(":scope > :first-child",c);return s+.9*(l.offsetTop-c.offsetTop)}),xe());return Re(document.body).pipe(he("height"),g(s=>j(()=>{let c=[];return K([...n].reduce((l,[u,p])=>{for(;c.length&&n.get(c[c.length-1]).tagName>=p.tagName;)c.pop();let d=p.offsetTop;for(;!d&&p.parentElement;)p=p.parentElement,d=p.offsetTop;let m=p.offsetParent;for(;m;m=m.offsetParent)d+=m.offsetTop;return l.set([...c=[...c,u]].reverse(),d)},new Map))}).pipe(f(c=>new Map([...c].sort(([,l],[,u])=>l-u))),Qe(i),g(([c,l])=>t.pipe(Or(([u,p],{offset:{y:d},size:m})=>{let h=d+m.height>=Math.floor(s.height);for(;p.length;){let[,v]=p[0];if(v-l=d&&!h)p=[u.pop(),...p];else break}return[u,p]},[[],[...c]]),se((u,p)=>u[0]===p[0]&&u[1]===p[1])))))).pipe(f(([s,c])=>({prev:s.map(([l])=>l),next:c.map(([l])=>l)})),J({prev:[],next:[]}),Rt(2,1),f(([s,c])=>s.prev.length{let i=new I,a=i.pipe(be(),ye(!0));i.subscribe(({prev:c,next:l})=>{for(let[u]of l)u.classList.remove("md-nav__link--passed"),u.classList.remove("md-nav__link--active");for(let[u,[p]]of c.entries())p.classList.add("md-nav__link--passed"),p.classList.toggle("md-nav__link--active",u===c.length-1)});let s=we(".md-sidebar--secondary");if(typeof s!="undefined"&&b(document.body,"click").subscribe(c=>{let l=c.target;if(!s.contains(l)){let u=we(".md-nav__toggle",s);typeof u!="undefined"&&(u.checked=!1)}}),X("toc.follow")){let c=R(t.pipe(Ye(1),f(()=>{})),t.pipe(Ye(250),f(()=>"smooth")));i.pipe(O(({prev:l})=>l.length>0),Qe(n.pipe(Ie(_e))),fe(c)).subscribe(([[{prev:l}],u])=>{let[p]=l[l.length-1];if(p.offsetHeight){let d=ki(p);if(typeof d!="undefined"){let m=p.offsetTop-d.offsetTop,{height:h}=Ae(d);d.scrollTo({top:m-h/2,behavior:u})}}})}return X("navigation.tracking")&&t.pipe(ee(a),he("offset"),Ye(250),ke(1),ee(o.pipe(ke(1))),Ut({delay:250}),fe(i)).subscribe(([,{prev:c}])=>{let l=Ue(),u=c[c.length-1];if(u&&u.length){let[p]=u,{hash:d}=new URL(p.href);l.hash!==d&&(l.hash=d,history.replaceState({},"",`${l}`))}else l.hash="",history.replaceState({},"",`${l}`)}),$p(e,{viewport$:t,header$:r}).pipe(P(c=>i.next(c)),z(()=>i.complete()),f(c=>k({ref:e},c)))})}function Pp(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(f(({offset:{y:a}})=>a),Rt(2,1),f(([a,s])=>a>s&&s>0),se()),i=r.pipe(f(({active:a})=>a));return ne([i,o]).pipe(f(([a,s])=>!(a&&s)),se(),ee(n.pipe(ke(1))),ye(!0),Ut({delay:250}),f(a=>({hidden:a})))}function sc(e,{viewport$:t,header$:r,main$:n,target$:o}){let i=new I,a=i.pipe(be(),ye(!0));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(ee(a),he("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),b(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),Pp(e,{viewport$:t,main$:n,target$:o}).pipe(P(s=>i.next(s)),z(()=>i.complete()),f(s=>k({ref:e},s)))}function cc(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,t.port&&(e.port=t.port),e}function Ip(e,t){let r=new Map;for(let n of $("url",e)){let o=Y("loc",n),i=[cc(new URL(o.textContent),t)];r.set(`${i[0]}`,i);for(let a of $("[rel=alternate]",n)){let s=a.getAttribute("href");s!=null&&i.push(cc(new URL(s),t))}}return r}function dr(e){return ss(new URL("sitemap.xml",e)).pipe(f(t=>Ip(t,new URL(e))),de(()=>K(new Map)),xe())}function lc({document$:e}){let t=new Map;e.pipe(g(()=>$("link[rel=alternate]")),f(r=>new URL(r.href)),O(r=>!t.has(r.toString())),ie(r=>dr(r).pipe(f(n=>[r,n]),de(()=>w)))).subscribe(([r,n])=>{t.set(r.toString().replace(/\/$/,""),n)}),b(document.body,"click").pipe(O(r=>!r.metaKey&&!r.ctrlKey),g(r=>{if(r.target instanceof Element){let n=r.target.closest("a");if(n&&!n.target){let o=[...t].find(([p])=>n.href.startsWith(`${p}/`));if(typeof o=="undefined")return w;let[i,a]=o,s=Ue();if(s.href.startsWith(i))return w;let c=Ne(),l=s.href.replace(c.base,"");l=`${i}/${l}`;let u=a.has(l.split("#")[0])?new URL(l,c.base):new URL(i);return r.preventDefault(),K(u)}}return w})).subscribe(r=>dt(r,!0))}var Ao=_r(Lo());function Rp(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function uc({alert$:e}){Ao.default.isSupported()&&new N(t=>{new Ao.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||Rp(Y(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(P(t=>{t.trigger.focus()}),f(()=>Gt("clipboard.copied"))).subscribe(e)}function pc(e,t){if(!(e.target instanceof Element))return w;let r=e.target.closest("a");if(r===null)return w;if(r.target||e.metaKey||e.ctrlKey)return w;let n=new URL(r.href);return n.search=n.hash="",t.has(`${n}`)?(e.preventDefault(),K(r)):w}function fc(e){let t=new Map;for(let r of $(":scope > *",e.head))t.set(r.outerHTML,r);return t}function mc(e){for(let t of $("[href], [src]",e))for(let r of["href","src"]){let n=t.getAttribute(r);if(n&&!/^(?:[a-z]+:)?\/\//i.test(n)){t[r]=t[r];break}}return K(e)}function jp(e){for(let n of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...X("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let o=we(n),i=we(n,e);typeof o!="undefined"&&typeof i!="undefined"&&o.replaceWith(i)}let t=fc(document);for(let[n,o]of fc(e))t.has(n)?t.delete(n):document.head.appendChild(o);for(let n of t.values()){let o=n.getAttribute("name");o!=="theme-color"&&o!=="color-scheme"&&n.remove()}let r=ht("container");return ot($("script",r)).pipe(g(n=>{let o=e.createElement("script");if(n.src){for(let i of n.getAttributeNames())o.setAttribute(i,n.getAttribute(i));return n.replaceWith(o),new N(i=>{o.onload=()=>i.complete()})}else return o.textContent=n.textContent,n.replaceWith(o),w}),be(),ye(document))}function dc({sitemap$:e,location$:t,viewport$:r,progress$:n}){if(location.protocol==="file:")return Ge;K(document).subscribe(mc);let o=b(document.body,"click").pipe(Qe(e),g(([s,c])=>pc(s,c)),f(({href:s})=>new URL(s)),xe()),i=b(window,"popstate").pipe(f(Ue),xe());o.pipe(fe(r)).subscribe(([s,{offset:c}])=>{history.replaceState(c,""),history.pushState(null,"",s)}),R(o,i).subscribe(t);let a=t.pipe(J(Ue()),un(),O(([s,c])=>s.pathname!==c.pathname),f(([,s])=>s),g(s=>Sn(s,{progress$:n}).pipe(de(()=>(dt(s,!0),w)))),g(mc),g(jp),xe());return R(a.pipe(fe(t,(s,c)=>c)),a.pipe(g(()=>t),he("hash")),t.pipe(J(Ue()),un(),O(([s,c])=>s.pathname===c.pathname&&s.hash!==c.hash),f(([,s])=>s)),t.pipe(se((s,c)=>s.pathname===c.pathname&&s.hash===c.hash),g(()=>o),P(()=>history.back()))).subscribe(s=>{var c,l;history.state!==null||!s.hash?window.scrollTo(0,(l=(c=history.state)==null?void 0:c.y)!=null?l:0):(history.scrollRestoration="auto",os(s.hash),history.scrollRestoration="manual")}),t.subscribe(()=>{history.scrollRestoration="manual"}),b(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),r.pipe(he("offset"),Ye(100)).subscribe(({offset:s})=>{history.replaceState(s,"")}),X("navigation.instant.prefetch")&&R(b(document.body,"mousemove"),b(document.body,"focusin")).pipe(Qe(e),g(([s,c])=>pc(s,c)),Ye(25),Yn(({href:s})=>s),ln(s=>{let c=document.createElement("link");return c.rel="prefetch",c.href=s.toString(),document.head.appendChild(c),b(c,"load").pipe(f(()=>c),Me(1))})).subscribe(s=>s.remove()),a}function hc(e){var u;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:n,currentBaseURL:o}=e,i=(u=Co(o))==null?void 0:u.pathname;if(i===void 0)return;let a=Fp(n.pathname,i);if(a===void 0)return;let s=Np(t.keys());if(!t.has(s))return;let c=Co(a,s);if(!c||!t.has(c.href))return;let l=Co(a,r);if(l)return l.hash=n.hash,l.search=n.search,l}function Co(e,t){try{return new URL(e,t)}catch(r){return}}function Fp(e,t){if(e.startsWith(t))return e.slice(t.length)}function Up(e,t){let r=Math.min(e.length,t.length),n;for(n=0;nw)),n=r.pipe(f(o=>{let[,i]=t.base.match(/([^/]+)\/?$/);return o.find(({version:a,aliases:s})=>a===i||s.includes(i))||o[0]}));r.pipe(f(o=>new Map(o.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),g(o=>b(document.body,"click").pipe(O(i=>!i.metaKey&&!i.ctrlKey),fe(n),g(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&o.has(s.href)){let c=s.href;return!i.target.closest(".md-version")&&o.get(c)===a?w:(i.preventDefault(),K(new URL(c)))}}return w}),g(i=>dr(i).pipe(f(a=>{var s;return(s=hc({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:Ue(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(o=>dt(o,!0)),ne([r,n]).subscribe(([o,i])=>{Y(".md-header__topic").appendChild(Es(o,i))}),e.pipe(g(()=>n)).subscribe(o=>{var s;let i=new URL(t.base),a=__md_get("__outdated",sessionStorage,i);if(a===null){a=!0;let c=((s=t.version)==null?void 0:s.default)||"latest";Array.isArray(c)||(c=[c]);e:for(let l of c)for(let u of o.aliases.concat(o.version))if(new RegExp(l,"i").test(u)){a=!1;break e}__md_set("__outdated",a,sessionStorage,i)}if(a)for(let c of Te("outdated"))c.hidden=!1})}function bc({document$:e,viewport$:t}){e.pipe(g(()=>$(".md-ellipsis")),ie(r=>Tt(r).pipe(ee(e.pipe(ke(1))),O(n=>n),f(()=>r),Me(1))),O(r=>r.offsetWidth{let n=r.innerText,o=r.closest("a")||r;return o.title=n,X("content.tooltips")?Je(o,{viewport$:t}).pipe(ee(e.pipe(ke(1))),z(()=>o.removeAttribute("title"))):w})).subscribe(),X("content.tooltips")&&e.pipe(g(()=>$(".md-status")),ie(r=>Je(r,{viewport$:t}))).subscribe()}function gc({document$:e,tablet$:t}){e.pipe(g(()=>$(".md-toggle--indeterminate")),P(r=>{r.indeterminate=!0,r.checked=!1}),ie(r=>b(r,"change").pipe(Zn(()=>r.classList.contains("md-toggle--indeterminate")),f(()=>r))),fe(t)).subscribe(([r,n])=>{r.classList.remove("md-toggle--indeterminate"),n&&(r.checked=!1)})}function Dp(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function _c({document$:e}){e.pipe(g(()=>$("[data-md-scrollfix]")),P(t=>t.removeAttribute("data-md-scrollfix")),O(Dp),ie(t=>b(t,"touchstart").pipe(f(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let n=e[r];typeof n=="string"?n=document.createTextNode(n):n.parentNode&&n.parentNode.removeChild(n),r?t.insertBefore(this.previousSibling,n):t.replaceChild(n,this)}}}));function Wp(){return location.protocol==="file:"?wt(`${new URL("search.js",An.base)}`).pipe(f(()=>__index),de(()=>Ge),ae(1)):tt(new URL("search.json",An.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var vt=Ti(),Ur=rs(),hr=is(Ur),xc=ts(),Ke=fs(),Ho=Ir("(min-width: 60em)"),wc=Ir("(min-width: 76.25em)"),Ec=as(),An=Ne(),Tc=we(".md-search")?Wp():Ge,$o=new I;uc({alert$:$o});lc({document$:vt});var Po=new I,Sc=dr(An.base);X("navigation.instant")&&dc({sitemap$:Sc,location$:Ur,viewport$:Ke,progress$:Po}).subscribe(vt);var yc;((yc=An.version)==null?void 0:yc.provider)==="mike"&&vc({document$:vt});R(Ur,hr).pipe(jt(125)).subscribe(()=>{wo("drawer",!1),wo("search",!1)});xc.pipe(O(({mode:e,meta:t})=>e==="global"&&!t)).subscribe(e=>{switch(e.type){case",":case"p":let t=document.querySelector("link[rel=prev]");t instanceof HTMLLinkElement&&dt(t);break;case".":case"n":let r=document.querySelector("link[rel=next]");r instanceof HTMLLinkElement&&dt(r);break;case"/":let n=document.querySelector("[data-md-component=search] button");n instanceof HTMLButtonElement&&n.click();break;case"Enter":let o=xt();o instanceof HTMLLabelElement&&o.click()}});bc({viewport$:Ke,document$:vt});gc({document$:vt,tablet$:Ho});_c({document$:vt});var kt=qs(ht("header"),{viewport$:Ke}),Fr=vt.pipe(f(()=>ht("main")),g(e=>Gs(e,{viewport$:Ke,header$:kt})),ae(1)),Vp=R(...Te("consent").map(e=>ds(e,{target$:hr})),...Te("dialog").map(e=>zs(e,{alert$:$o})),...Te("palette").map(e=>Ys(e)),...Te("progress").map(e=>Js(e,{progress$:Po})),...Te("search").map(e=>Zs(e,{index$:Tc})),...Te("source").map(e=>oc(e))),zp=j(()=>R(...Te("announce").map(e=>ms(e)),...Te("content").map(e=>Vs(e,{sitemap$:Sc,viewport$:Ke,target$:hr,print$:Ec})),...Te("content").map(e=>X("search.highlight")?ec(e,{index$:Tc,location$:Ur}):w),...Te("header").map(e=>Ks(e,{viewport$:Ke,header$:kt,main$:Fr})),...Te("header-title").map(e=>Bs(e,{viewport$:Ke,header$:kt})),...Te("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?_o(wc,()=>ko(e,{viewport$:Ke,header$:kt,main$:Fr})):_o(Ho,()=>ko(e,{viewport$:Ke,header$:kt,main$:Fr}))),...Te("tabs").map(e=>ic(e,{viewport$:Ke,header$:kt})),...Te("toc").map(e=>ac(e,{viewport$:Ke,header$:kt,main$:Fr,target$:hr})),...Te("top").map(e=>sc(e,{viewport$:Ke,header$:kt,main$:Fr,target$:hr})))),Oc=vt.pipe(g(()=>zp),Ft(Vp),ae(1));Oc.subscribe();window.document$=vt;window.location$=Ur;window.target$=hr;window.keyboard$=xc;window.viewport$=Ke;window.tablet$=Ho;window.screen$=wc;window.print$=Ec;window.alert$=$o;window.progress$=Po;window.component$=Oc;})(); diff --git a/dist/base.html b/dist/base.html index 1baa59b9..44f1dfda 100644 --- a/dist/base.html +++ b/dist/base.html @@ -273,7 +273,7 @@ {% endblock %} {% block scripts %} - + {% for script in config.extra_javascript %} {{ script | script_tag }} {% endfor %} diff --git a/src/assets/javascripts/components/search/client/index.css b/src/assets/javascripts/components/search/client/index.css index a29fd063..e919f009 100644 --- a/src/assets/javascripts/components/search/client/index.css +++ b/src/assets/javascripts/components/search/client/index.css @@ -1,2 +1,472 @@ -.m u{text-decoration:underline!important;text-decoration-style:wavy!important;text-decoration-thickness:1px!important}.p{position:absolute;width:100%;height:100%;background-color:rgba(var(--color-backdrop)/var(--alpha-lighter));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:initial;transition:opacity .25s;cursor:pointer}.p.v{opacity:0;pointer-events:none;transition:opacity .35s}.r{position:relative;z-index:1;display:flex;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;padding:0;font-family:var(--font-family);border:none;border-radius:var(--space-2);background-color:transparent;transition:background-color .25s,color .25s;cursor:pointer;outline:none}.r svg{stroke:rgb(var(--color-foreground));opacity:.5;width:18px;height:18px}.r:before{position:absolute;inset:0;z-index:0;background-color:rgb(var(--color-background-subtle));content:"";opacity:0;transition:transform 125ms,opacity 125ms;transform:scale(.75);border-radius:var(--border-radius-2)}.r:hover:before{opacity:1;transform:scale(1)}.r.c{cursor:initial}.r.c:before{display:none}.n{display:flex;position:absolute;width:640px;height:480px;overflow:hidden;background-color:rgba(var(--color-background)/var(--alpha-light));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:var(--space-3);border:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));box-shadow:0 0 60px #0000000d;pointer-events:initial;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s}.n.l{opacity:0;pointer-events:none;transform:scale(1.1);transition:transform .25s .15s,opacity .15s}@media (max-width: 680px){.n{width:100%;height:100%;border-radius:0}}.y{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0}@keyframes d{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.w{position:absolute;background:var(--color-highlight);color:#fff;font-weight:700;font-size:8px;padding-top:1px;border-radius:100%;width:12px;height:12px;top:4px;right:4px;animation:d .25s ease-in-out}.e{position:relative;flex-shrink:0;width:200px;overflow:scroll;background-color:rgb(var(--color-background-subtle)/var(--alpha-lighter));border-left:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));transition:width .35s cubic-bezier(.16,1,.3,1),opacity .25s}.e>*{transform:translate(0);transition:transform .25s cubic-bezier(.16,1,.3,1)}.e.l{width:0;opacity:0}.e.l>*{transform:translate(-48px)}@media (max-width: 680px){.e{position:absolute;top:0;height:100%;background-color:rgba(var(--color-background-subtle)/var(--alpha-light));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 0 60px #00000026;right:0}}.k{display:flex;gap:var(--space-1);padding:var(--space-2);border-bottom:1px solid rgb(var(--color-foreground)/var(--alpha-lightest))}.z{flex:1 1 auto;min-height:0;-webkit-overflow-scrolling:touch;overflow:auto;overscroll-behavior:contain}.j{padding:8px 10px}.X{display:flex;position:absolute;width:200px;color:rgb(var(--color-foreground)/var(--alpha-light));padding:var(--space-2);flex-direction:column}.F{display:flex;flex-direction:column;gap:2px;list-style:none;margin:0;padding:0}.I{margin:0;font-size:16px;padding:8px;font-weight:400}.R{margin:4px 0 0;font-size:14px;padding:8px;font-size:12px;opacity:.5}.o{position:relative;display:flex;font-size:12px;padding:4px 8px;cursor:pointer}.o:before{position:absolute;inset:0;z-index:0;background-color:var(--color-highlight-transparent);content:"";opacity:0;transition:transform 125ms,opacity 125ms;transform:scale(.75);border-radius:var(--space-1)}.o.g:before,.o:hover:before{opacity:1;transform:scale(1)}.o.g,.o:hover{color:var(--color-highlight)}.q{position:relative;flex-grow:1}.A{position:relative;font-weight:700}.f{flex-grow:1}.f input{width:100%;height:100%;color:rgb(var(--color-foreground));background:transparent;font-size:16px;font-family:var(--font-family);letter-spacing:-.25px;border:none;outline:none}.b{display:flex;flex-direction:column;gap:2px;line-height:1.3;padding:0;color:rgb(var(--color-foreground)/var(--alpha-light));margin:var(--space-2);margin-top:0;list-style:none}.b li{margin:0}.B{margin:0;margin-top:var(--space-2);color:rgb(var(--color-foreground)/var(--alpha-lighter));font-size:12px;padding:0 18px}.i{display:flex;flex-direction:row;flex-grow:1;position:relative;padding:8px 10px;border-radius:var(--space-2);cursor:pointer;color:inherit;text-decoration:none}.i:before{position:absolute;inset:0;z-index:0;display:block;background-color:rgb(var(--color-background-subtle));content:"";opacity:0;transition:transform 125ms,opacity 125ms;transform:scale(.9);border-radius:var(--border-radius-2)}@media (pointer: fine){.i.h:before,.i:hover:before{opacity:1;transform:scale(1)}}.i mark{background:transparent;color:var(--color-highlight)}.i u{text-decoration:underline}.C{flex-grow:1;min-width:0;display:flex;flex-direction:column;gap:5.5px}.D{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-2);min-width:0}.s{position:relative;z-index:0;margin-right:-8px;margin-top:auto;align-self:flex-end;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:6px;opacity:0;transform:translate(-2px);transition:transform 125ms,opacity 125ms}@media (pointer: fine){.h>.s,:hover>.s{opacity:1;transform:initial}}.x{position:relative;font-size:14px;margin:0}.x code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px;font-size:13px}.t{position:relative;display:inline-flex;flex-wrap:wrap;flex:1 1 auto;min-width:0;font-size:12px;gap:var(--space-1);color:rgb(var(--color-foreground)/.45);list-style:none;padding:0;margin:0}.t li{white-space:nowrap}.t li:after{display:inline;margin-left:var(--space-1);content:"/"}.t li:last-child:after{display:none;content:""}.u{position:relative;font-size:12px;color:rgb(var(--color-foreground));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;line-height:1.5;-webkit-line-clamp:2}.u code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px;font-size:11px}.E{font-size:11px;line-height:1;white-space:nowrap;color:rgb(var(--color-foreground)/.45);z-index:1}.a{position:absolute;display:flex;justify-content:center;align-items:center;width:100vw;height:100vh;pointer-events:none;--space-1: 4px;--space-2: calc(2 * var(--space-1));--space-3: calc(2 * var(--space-2));--space-4: calc(2 * var(--space-3));--space-5: calc(2 * var(--space-4));--alpha-light: .7;--alpha-lighter: .54;--alpha-lightest: .07;--color-highlight: var(--md-accent-fg-color, #526cfe);--color-highlight-transparent: var( --md-accent-fg-color--transparent, #526cfe1a );--border-radius-1: var(--space-1);--border-radius-2: var(--space-2);--border-radius-3: calc(var(--space-1) + var(--space-2));--font-family: var( --md-text-font-family, Inter, Roboto Flex, system-ui, sans-serif );--font-size: 16px;--line-height: 1.5;--letter-spacing: -.5px;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);letter-spacing:var(--letter-spacing);-webkit-font-smoothing:antialiased}@media (pointer: coarse){.a{height:-webkit-fill-available}}.a *,.a *:after,.a *:before{box-sizing:border-box} -/*# sourceMappingURL=bundle.MFYTVMNZ.css.map */ +.m u { + text-decoration: underline !important; + text-decoration-style: wavy !important; + text-decoration-thickness: 1px !important; +} +.p { + position: absolute; + width: 100%; + height: 100%; + background-color: rgba(var(--color-backdrop) / var(--alpha-lighter)); + -webkit-backdrop-filter: blur(8px); + backdrop-filter: blur(8px); + pointer-events: initial; + transition: opacity 0.25s; + cursor: pointer; +} +.p.v { + opacity: 0; + pointer-events: none; + transition: opacity 0.35s; +} +.r { + position: relative; + z-index: 1; + display: flex; + flex-shrink: 0; + justify-content: center; + align-items: center; + width: 36px; + height: 36px; + padding: 0; + font-family: var(--font-family); + border: none; + border-radius: var(--space-2); + background-color: transparent; + transition: + background-color 0.25s, + color 0.25s; + cursor: pointer; + outline: none; +} +.r svg { + stroke: rgb(var(--color-foreground)); + opacity: 0.5; + width: 18px; + height: 18px; +} +.r:before { + position: absolute; + inset: 0; + z-index: 0; + background-color: rgb(var(--color-background-subtle)); + content: ""; + opacity: 0; + transition: + transform 125ms, + opacity 125ms; + transform: scale(0.75); + border-radius: var(--border-radius-2); +} +.r:hover:before { + opacity: 1; + transform: scale(1); +} +.r.c { + cursor: initial; +} +.r.c:before { + display: none; +} +.n { + display: flex; + position: absolute; + width: 640px; + height: 480px; + overflow: hidden; + background-color: rgba(var(--color-background) / var(--alpha-light)); + -webkit-backdrop-filter: blur(8px); + backdrop-filter: blur(8px); + border-radius: var(--space-3); + border: 1px solid rgb(var(--color-foreground) / var(--alpha-lightest)); + box-shadow: 0 0 60px #0000000d; + pointer-events: initial; + transition: + transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), + opacity 0.25s; +} +.n.l { + opacity: 0; + pointer-events: none; + transform: scale(1.1); + transition: + transform 0.25s 0.15s, + opacity 0.15s; +} +@media (max-width: 680px) { + .n { + width: 100%; + height: 100%; + border-radius: 0; + } +} +.y { + display: flex; + flex-direction: column; + flex: 1 1 auto; + min-width: 0; + min-height: 0; +} +@keyframes d { + 0% { + transform: scale(0); + } + 50% { + transform: scale(1.2); + } + to { + transform: scale(1); + } +} +.w { + position: absolute; + background: var(--color-highlight); + color: #fff; + font-weight: 700; + font-size: 8px; + padding-top: 1px; + border-radius: 100%; + width: 12px; + height: 12px; + top: 4px; + right: 4px; + animation: d 0.25s ease-in-out; +} +.e { + position: relative; + flex-shrink: 0; + width: 200px; + overflow-y: scroll; + background-color: rgb(var(--color-background-subtle) / var(--alpha-lighter)); + border-left: 1px solid rgb(var(--color-foreground) / var(--alpha-lightest)); + transition: + width 0.35s cubic-bezier(0.16, 1, 0.3, 1), + opacity 0.25s; +} +.e > * { + transform: translate(0); + transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); +} +.e.l { + width: 0; + opacity: 0; +} +.e.l > * { + transform: translate(-48px); +} +@media (max-width: 680px) { + .e { + position: absolute; + top: 0; + height: 100%; + background-color: rgba(var(--color-background-subtle) / var(--alpha-light)); + -webkit-backdrop-filter: blur(8px); + backdrop-filter: blur(8px); + box-shadow: 0 0 60px #00000026; + right: 0; + } +} +.k { + display: flex; + gap: var(--space-1); + padding: var(--space-2); + border-bottom: 1px solid rgb(var(--color-foreground) / var(--alpha-lightest)); +} +.z { + flex: 1 1 auto; + min-height: 0; + -webkit-overflow-scrolling: touch; + overflow: auto; + overscroll-behavior: contain; +} +.j { + padding: 8px 10px; +} +.X { + display: flex; + position: absolute; + width: 100%; + color: rgb(var(--color-foreground) / var(--alpha-light)); + padding: var(--space-2); + flex-direction: column; +} +.F { + display: flex; + flex-direction: column; + gap: 2px; + list-style: none; + margin: 0; + padding: 0; +} +.I { + margin: 0; + font-size: 16px; + padding: 8px; + font-weight: 400; +} +.R { + margin: 4px 0 0; + font-size: 14px; + padding: 8px; + font-size: 12px; + opacity: 0.5; +} +.o { + position: relative; + display: flex; + font-size: 12px; + padding: 4px 8px; + cursor: pointer; +} +.o:before { + position: absolute; + inset: 0; + z-index: 0; + background-color: var(--color-highlight-transparent); + content: ""; + opacity: 0; + transition: + transform 125ms, + opacity 125ms; + transform: scale(0.75); + border-radius: var(--space-1); +} +.o.g:before, +.o:hover:before { + opacity: 1; + transform: scale(1); +} +.o.g, +.o:hover { + color: var(--color-highlight); +} +.q { + position: relative; + flex-grow: 1; +} +.A { + position: relative; + font-weight: 700; +} +.f { + flex-grow: 1; +} +.f input { + width: 100%; + height: 100%; + color: rgb(var(--color-foreground)); + background: transparent; + font-size: 16px; + font-family: var(--font-family); + letter-spacing: -0.25px; + border: none; + outline: none; +} +.b { + display: flex; + flex-direction: column; + gap: 2px; + line-height: 1.3; + padding: 0; + color: rgb(var(--color-foreground) / var(--alpha-light)); + margin: var(--space-2); + margin-top: 0; + list-style: none; +} +.b li { + margin: 0; +} +.B { + margin: 0; + margin-top: var(--space-2); + color: rgb(var(--color-foreground) / var(--alpha-lighter)); + font-size: 12px; + padding: 0 18px; +} +.i { + display: flex; + flex-direction: row; + flex-grow: 1; + position: relative; + padding: 8px 10px; + border-radius: var(--space-2); + cursor: pointer; + color: inherit; + text-decoration: none; +} +.i:before { + position: absolute; + inset: 0; + z-index: 0; + display: block; + background-color: rgb(var(--color-background-subtle)); + content: ""; + opacity: 0; + transition: + transform 125ms, + opacity 125ms; + transform: scale(0.9); + border-radius: var(--border-radius-2); +} +@media (pointer: fine) { + .i.h:before, + .i:hover:before { + opacity: 1; + transform: scale(1); + } +} +.i mark { + background: transparent; + color: var(--color-highlight); +} +.i u { + text-decoration: underline; +} +.C { + flex-grow: 1; + min-width: 0; + display: flex; + flex-direction: column; + gap: 5.5px; +} +.D { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: var(--space-2); + min-width: 0; +} +.s { + position: relative; + z-index: 0; + margin-right: -8px; + margin-top: auto; + align-self: flex-end; + display: flex; + flex-direction: column; + justify-content: flex-end; + align-items: flex-end; + gap: 6px; + opacity: 0; + transform: translate(-2px); + transition: + transform 125ms, + opacity 125ms; +} +@media (pointer: fine) { + .h > .s, + :hover > .s { + opacity: 1; + transform: initial; + } +} +.x { + position: relative; + font-size: 14px; + margin: 0; +} +.x code { + background: rgb(var(--color-background-subtle)); + border-radius: var(--space-1); + padding: 2px 4px; + font-size: 13px; +} +.t { + position: relative; + display: inline-flex; + flex-wrap: wrap; + flex: 1 1 auto; + min-width: 0; + font-size: 12px; + gap: var(--space-1); + color: rgb(var(--color-foreground) / 0.45); + list-style: none; + padding: 0; + margin: 0; +} +.t li { + white-space: nowrap; +} +.t li:after { + display: inline; + margin-left: var(--space-1); + content: "/"; +} +.t li:last-child:after { + display: none; + content: ""; +} +.u { + position: relative; + font-size: 12px; + color: rgb(var(--color-foreground)); + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + line-height: 1.5; + -webkit-line-clamp: 2; +} +.u code { + background: rgb(var(--color-background-subtle)); + border-radius: var(--space-1); + padding: 2px 4px; + font-size: 11px; +} +.E { + font-size: 11px; + line-height: 1; + white-space: nowrap; + color: rgb(var(--color-foreground) / 0.45); + z-index: 1; +} +.a { + position: absolute; + display: flex; + justify-content: center; + align-items: center; + width: 100vw; + height: 100vh; + pointer-events: none; + --space-1: 4px; + --space-2: calc(2 * var(--space-1)); + --space-3: calc(2 * var(--space-2)); + --space-4: calc(2 * var(--space-3)); + --space-5: calc(2 * var(--space-4)); + --alpha-light: 0.7; + --alpha-lighter: 0.54; + --alpha-lightest: 0.07; + --color-highlight: var(--md-accent-fg-color, #526cfe); + --color-highlight-transparent: var( + --md-accent-fg-color--transparent, + #526cfe1a + ); + --border-radius-1: var(--space-1); + --border-radius-2: var(--space-2); + --border-radius-3: calc(var(--space-1) + var(--space-2)); + --font-family: var( + --md-text-font-family, + Inter, + Roboto Flex, + system-ui, + sans-serif + ); + --font-size: 16px; + --line-height: 1.5; + --letter-spacing: -0.5px; + font-family: var(--font-family); + font-size: var(--font-size); + line-height: var(--line-height); + letter-spacing: var(--letter-spacing); + -webkit-font-smoothing: antialiased; +} +@media (pointer: coarse) { + .a { + height: -webkit-fill-available; + } +} +.a *, +.a *:after, +.a *:before { + box-sizing: border-box; +} +/*# sourceMappingURL=bundle.EYCQ2PJZ.css.map */ diff --git a/src/assets/javascripts/components/search/client/index.js b/src/assets/javascripts/components/search/client/index.js index 10e5e7a5..63219aec 100644 --- a/src/assets/javascripts/components/search/client/index.js +++ b/src/assets/javascripts/components/search/client/index.js @@ -1,2 +1,2979 @@ -var io=Object.create;var ga=Object.defineProperty;var co=Object.getOwnPropertyDescriptor;var po=Object.getOwnPropertyNames;var mo=Object.getPrototypeOf,xo=Object.prototype.hasOwnProperty;var Lo=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var Io=(e,a,t,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of po(a))!xo.call(e,r)&&r!==t&&ga(e,r,{get:()=>a[r],enumerable:!(o=co(a,r))||o.enumerable});return e};var ho=(e,a,t)=>(t=e!=null?io(mo(e)):{},Io(a||!e||!e.__esModule?ga(t,"default",{value:e,enumerable:!0}):t,e));var to=Lo((ym,ao)=>{var hr="Expected a function",Yt=NaN,gr="[object Symbol]",Sr=/^\s+|\s+$/g,Cr=/^[-+]0x[0-9a-f]+$/i,_r=/^0b[01]+$/i,vr=/^0o[0-7]+$/i,wr=parseInt,yr=typeof global=="object"&&global&&global.Object===Object&&global,kr=typeof self=="object"&&self&&self.Object===Object&&self,br=yr||kr||Function("return this")(),Pr=Object.prototype,Tr=Pr.toString,Ar=Math.max,Rr=Math.min,xa=function(){return br.Date.now()};function Br(e,a,t){var o,r,u,l,s,n,d=0,i=!1,f=!1,c=!0;if(typeof e!="function")throw new TypeError(hr);a=eo(a)||0,La(t)&&(i=!!t.leading,f="maxWait"in t,u=f?Ar(eo(t.maxWait)||0,a):u,c="trailing"in t?!!t.trailing:c);function p(_){var U=o,z=r;return o=r=void 0,d=_,l=e.apply(z,U),l}function L(_){return d=_,s=setTimeout(h,a),i?p(_):l}function I(_){var U=_-n,z=_-d,Z=a-U;return f?Rr(Z,u-z):Z}function S(_){var U=_-n,z=_-d;return n===void 0||U>=a||U<0||f&&z>=u}function h(){var _=xa();if(S(_))return g(_);s=setTimeout(h,I(_))}function g(_){return s=void 0,c&&o?p(_):(o=r=void 0,l)}function T(){s!==void 0&&clearTimeout(s),d=0,o=n=r=s=void 0}function R(){return s===void 0?l:g(xa())}function G(){var _=xa(),U=S(_);if(o=arguments,r=this,n=_,U){if(s===void 0)return L(n);if(f)return s=setTimeout(h,a),p(n)}return s===void 0&&(s=setTimeout(h,a)),l}return G.cancel=T,G.flush=R,G}function La(e){var a=typeof e;return!!e&&(a=="object"||a=="function")}function Fr(e){return!!e&&typeof e=="object"}function Mr(e){return typeof e=="symbol"||Fr(e)&&Tr.call(e)==gr}function eo(e){if(typeof e=="number")return e;if(Mr(e))return Yt;if(La(e)){var a=typeof e.valueOf=="function"?e.valueOf():e;e=La(a)?a+"":a}if(typeof e!="string")return e===0?e:+e;e=e.replace(Sr,"");var t=_r.test(e);return t||vr.test(e)?wr(e.slice(2),t?2:8):Cr.test(e)?Yt:+e}ao.exports=Br});var ye,x,wa,Ne,ae,Sa,ya,ka,ba,We,qe,Ve,go,pe={},Pa=[],So=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,me=Array.isArray;function $(e,a){for(var t in a)e[t]=a[t];return e}function Ge(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function F(e,a,t){var o,r,u,l={};for(u in a)u=="key"?o=a[u]:u=="ref"?r=a[u]:l[u]=a[u];if(arguments.length>2&&(l.children=arguments.length>3?ye.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)l[u]===void 0&&(l[u]=e.defaultProps[u]);return ve(e,l,o,r,null)}function ve(e,a,t,o,r){var u={type:e,props:a,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++wa,__i:-1,__u:0};return r==null&&x.vnode!=null&&x.vnode(u),u}function y(e){return e.children}function B(e,a){this.props=e,this.context=a}function se(e,a){if(a==null)return e.__?se(e.__,e.__i+1):null;for(var t;as&&ae.sort(ka),e=ae.shift(),s=ae.length,e.__d&&(t=void 0,o=void 0,r=(o=(a=e).__v).__e,u=[],l=[],a.__P&&((t=$({},o)).__v=o.__v+1,x.vnode&&x.vnode(t),ze(a.__P,t,o,a.__n,a.__P.namespaceURI,32&o.__u?[r]:null,u,r??se(o),!!(32&o.__u),l),t.__v=o.__v,t.__.__k[t.__i]=t,Ba(u,t,l),o.__e=o.__=null,t.__e!=r&&Ta(t)));we.__r=0}function Aa(e,a,t,o,r,u,l,s,n,d,i){var f,c,p,L,I,S,h,g=o&&o.__k||Pa,T=a.length;for(n=Co(t,a,g,n,T),f=0;f0?ve(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=e,l.__b=e.__b+1,s=null,(d=l.__i=_o(l,t,n,f))!=-1&&(f--,(s=t[d])&&(s.__u|=2)),s==null||s.__v==null?(d==-1&&(r>i?c--:rn?c--:c++,l.__u|=4))):e.__k[u]=null;if(f)for(u=0;u(i?1:0)){for(r=t-1,u=t+1;r>=0||u=0?r--:u++])!=null&&!(2&d.__u)&&s==d.key&&n==d.type)return l}return-1}function _a(e,a,t){a[0]=="-"?e.setProperty(a,t??""):e[a]=t==null?"":typeof t!="number"||So.test(a)?t:t+"px"}function _e(e,a,t,o,r){var u,l;e:if(a=="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(a in o)t&&a in t||_a(e.style,a,"");if(t)for(a in t)o&&t[a]==o[a]||_a(e.style,a,t[a])}else if(a[0]=="o"&&a[1]=="n")u=a!=(a=a.replace(ba,"$1")),l=a.toLowerCase(),a=l in e||a=="onFocusOut"||a=="onFocusIn"?l.slice(2):a.slice(2),e.l||(e.l={}),e.l[a+u]=t,t?o?t.u=o.u:(t.u=We,e.addEventListener(a,u?Ve:qe,u)):e.removeEventListener(a,u?Ve:qe,u);else{if(r=="http://www.w3.org/2000/svg")a=a.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(a!="width"&&a!="height"&&a!="href"&&a!="list"&&a!="form"&&a!="tabIndex"&&a!="download"&&a!="rowSpan"&&a!="colSpan"&&a!="role"&&a!="popover"&&a in e)try{e[a]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&a[4]!="-"?e.removeAttribute(a):e.setAttribute(a,a=="popover"&&t==1?"":t))}}function va(e){return function(a){if(this.l){var t=this.l[a.type+e];if(a.t==null)a.t=We++;else if(a.t0?e:me(e)?e.map(Fa):$({},e)}function vo(e,a,t,o,r,u,l,s,n){var d,i,f,c,p,L,I,S=t.props,h=a.props,g=a.type;if(g=="svg"?r="http://www.w3.org/2000/svg":g=="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),u!=null){for(d=0;d=t.__.length&&t.__.push({}),t.__[e]}function j(e){return Le=1,Ga(Xa,e)}function Ga(e,a,t){var o=Je(xe++,2);if(o.t=e,!o.__c&&(o.__=[t?t(a):Xa(void 0,a),function(s){var n=o.__N?o.__N[0]:o.__[0],d=o.t(n,s);n!==d&&(o.__N=[d,o.__[1]],o.__c.setState({}))}],o.__c=v,!v.__f)){var r=function(s,n,d){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter(function(c){return!!c.__c});if(i.every(function(c){return!c.__N}))return!u||u.call(this,s,n,d);var f=o.__c.props!==s;return i.forEach(function(c){if(c.__N){var p=c.__[0];c.__=c.__N,c.__N=void 0,p!==c.__[0]&&(f=!0)}}),u&&u.call(this,s,n,d)||f};v.__f=!0;var u=v.shouldComponentUpdate,l=v.componentWillUpdate;v.componentWillUpdate=function(s,n,d){if(this.__e){var i=u;u=void 0,r(s,n,d),u=i}l&&l.call(this,s,n,d)},v.shouldComponentUpdate=r}return o.__N||o.__}function P(e,a){var t=Je(xe++,3);!k.__s&&za(t.__H,a)&&(t.__=e,t.u=a,v.__H.__h.push(t))}function A(e){return Le=5,D(function(){return{current:e}},[])}function D(e,a){var t=Je(xe++,7);return za(t.__H,a)&&(t.__=e(),t.__H=a,t.__h=e),t.__}function be(e,a){return Le=8,D(function(){return e},a)}function yo(){for(var e;e=Wa.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ke),e.__H.__h.forEach($e),e.__H.__h=[]}catch(a){e.__H.__h=[],k.__e(a,e.__v)}}k.__b=function(e){v=null,Ea&&Ea(e)},k.__=function(e,a){e&&a.__k&&a.__k.__m&&(e.__m=a.__k.__m),Ha&&Ha(e,a)},k.__r=function(e){Oa&&Oa(e),xe=0;var a=(v=e.__c).__H;a&&(Qe===v?(a.__h=[],v.__h=[],a.__.forEach(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(a.__h.forEach(ke),a.__h.forEach($e),a.__h=[],xe=0)),Qe=v},k.diffed=function(e){Ua&&Ua(e);var a=e.__c;a&&a.__H&&(a.__H.__h.length&&(Wa.push(a)!==1&&Da===k.requestAnimationFrame||((Da=k.requestAnimationFrame)||ko)(yo)),a.__H.__.forEach(function(t){t.u&&(t.__H=t.u),t.u=void 0})),Qe=v=null},k.__c=function(e,a){a.some(function(t){try{t.__h.forEach(ke),t.__h=t.__h.filter(function(o){return!o.__||$e(o)})}catch(o){a.some(function(r){r.__h&&(r.__h=[])}),a=[],k.__e(o,t.__v)}}),qa&&qa(e,a)},k.unmount=function(e){Va&&Va(e);var a,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(o){try{ke(o)}catch(r){a=r}}),t.__H=void 0,a&&k.__e(a,t.__v))};var Na=typeof requestAnimationFrame=="function";function ko(e){var a,t=function(){clearTimeout(o),Na&&cancelAnimationFrame(a),setTimeout(e)},o=setTimeout(t,35);Na&&(a=requestAnimationFrame(t))}function ke(e){var a=v,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),v=a}function $e(e){var a=v;e.__c=e.__(),v=a}function za(e,a){return!e||e.length!==a.length||a.some(function(t,o){return t!==e[o]})}function Xa(e,a){return typeof a=="function"?a(e):a}function Ao(e,a){for(var t in a)e[t]=a[t];return e}function Ka(e,a){for(var t in e)if(t!=="__source"&&!(t in a))return!0;for(var o in a)if(o!=="__source"&&e[o]!==a[o])return!0;return!1}function Qa(e,a){this.props=e,this.context=a}(Qa.prototype=new B).isPureReactComponent=!0,Qa.prototype.shouldComponentUpdate=function(e,a){return Ka(this.props,e)||Ka(this.state,a)};var $a=x.__b;x.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),$a&&$a(e)};var Yr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var Ro=x.__e;x.__e=function(e,a,t,o){if(e.then){for(var r,u=a;u=u.__;)if((r=u.__c)&&r.__c)return a.__e==null&&(a.__e=t.__e,a.__k=t.__k),r.__c(e,a)}Ro(e,a,t,o)};var Ja=x.unmount;function tt(e,a,t){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=Ao({},e)).__c!=null&&(e.__c.__P===t&&(e.__c.__P=a),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return tt(o,a,t)})),e}function ot(e,a,t){return e&&t&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return ot(o,a,t)}),e.__c&&e.__c.__P===a&&(e.__e&&t.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=t)),e}function Ze(){this.__u=0,this.o=null,this.__b=null}function rt(e){var a=e.__.__c;return a&&a.__a&&a.__a(e)}function Pe(){this.i=null,this.l=null}x.unmount=function(e){var a=e.__c;a&&a.__R&&a.__R(),a&&32&e.__u&&(e.type=null),Ja&&Ja(e)},(Ze.prototype=new B).__c=function(e,a){var t=a.__c,o=this;o.o==null&&(o.o=[]),o.o.push(t);var r=rt(o.__v),u=!1,l=function(){u||(u=!0,t.__R=null,r?r(s):s())};t.__R=l;var s=function(){if(!--o.__u){if(o.state.__a){var n=o.state.__a;o.__v.__k[0]=ot(n,n.__c.__P,n.__c.__O)}var d;for(o.setState({__a:o.__b=null});d=o.o.pop();)d.forceUpdate()}};o.__u++||32&a.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(l,l)},Ze.prototype.componentWillUnmount=function(){this.o=[]},Ze.prototype.render=function(e,a){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=tt(this.__b,t,o.__O=o.__P)}this.__b=null}var r=a.__a&&F(y,null,e.fallback);return r&&(r.__u&=-33),[F(y,null,a.__a?null:e.children),r]};var Za=function(e,a,t){if(++t[1]===t[0]&&e.l.delete(a),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(t=e.i;t;){for(;t.length>3;)t.pop()();if(t[1]Object.freeze({get current(){return a.current}}),[])}var lt=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function st(e,...a){e?.addEventListener?.(...a)}function dt(e,...a){e?.removeEventListener?.(...a)}var ft=(e,a)=>Object.hasOwn(e,a),nt=()=>!0,it=()=>!1;function ct(e=!1){let a=A(e),t=be(()=>a.current,[]);return P(()=>(a.current=!0,()=>{a.current=!1}),[]),t}function pt(e,...a){let t=ct(),o=Te(a[1]),r=D(()=>function(...u){t()&&(typeof o.current=="function"?o.current.apply(this,u):typeof o.current.handleEvent=="function"&&o.current.handleEvent.apply(this,u))},[]);P(()=>{let u=No(e)?e.current:e;if(!u)return;let l=a.slice(2);return st(u,a[0],r,...l),()=>{dt(u,a[0],r,...l)}},[e,a[0]])}function No(e){return e!==null&&typeof e=="object"&&ft(e,"current")}var Wo=e=>typeof e=="function"?e:typeof e=="string"?a=>a.key===e:e?nt:it,Go=lt?globalThis:null;function Ae(e,a,t=[],o={}){let{event:r="keydown",target:u=Go,eventOptions:l}=o,s=Te(a),n=D(()=>{let d=Wo(e);return function(i){d(i)&&s.current.call(this,i)}},t);pt(u,r,n,l)}function mt(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;a1)Y--;else{for(var e,a=!1;Ie!==void 0;){var t=Ie;for(Ie=void 0,je++;t!==void 0;){var o=t.o;if(t.o=void 0,t.f&=-3,!(8&t.f)&&Lt(t))try{t.c()}catch(r){a||(e=r,a=!0)}t=o}}if(je=0,Y--,a)throw e}}function Ye(e){if(Y>0)return e();Y++;try{return e()}finally{Be()}}var C=void 0;function ea(e){var a=C;C=void 0;try{return e()}finally{C=a}}var Ie=void 0,Y=0,je=0,Re=0;function xt(e){if(C!==void 0){var a=e.n;if(a===void 0||a.t!==C)return a={i:0,S:e,p:C.s,n:void 0,t:C,e:void 0,x:void 0,r:a},C.s!==void 0&&(C.s.n=a),C.s=a,e.n=a,32&C.f&&e.S(a),a;if(a.i===-1)return a.i=0,a.n!==void 0&&(a.n.p=a.p,a.p!==void 0&&(a.p.n=a.n),a.p=C.s,a.n=void 0,C.s.n=a,C.s=a),a}}function b(e,a){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=a?.watched,this.Z=a?.unwatched,this.name=a?.name}b.prototype.brand=Xo;b.prototype.h=function(){return!0};b.prototype.S=function(e){var a=this,t=this.t;t!==e&&e.e===void 0&&(e.x=t,this.t=e,t!==void 0?t.e=e:ea(function(){var o;(o=a.W)==null||o.call(a)}))};b.prototype.U=function(e){var a=this;if(this.t!==void 0){var t=e.e,o=e.x;t!==void 0&&(t.x=o,e.e=void 0),o!==void 0&&(o.e=t,e.x=void 0),e===this.t&&(this.t=o,o===void 0&&ea(function(){var r;(r=a.Z)==null||r.call(a)}))}};b.prototype.subscribe=function(e){var a=this;return K(function(){var t=a.value,o=C;C=void 0;try{e(t)}finally{C=o}},{name:"sub"})};b.prototype.valueOf=function(){return this.value};b.prototype.toString=function(){return this.value+""};b.prototype.toJSON=function(){return this.value};b.prototype.peek=function(){var e=C;C=void 0;try{return this.value}finally{C=e}};Object.defineProperty(b.prototype,"value",{get:function(){var e=xt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(je>100)throw new Error("Cycle detected");this.v=e,this.i++,Re++,Y++;try{for(var a=this.t;a!==void 0;a=a.x)a.t.N()}finally{Be()}}}});function q(e,a){return new b(e,a)}function Lt(e){for(var a=e.s;a!==void 0;a=a.n)if(a.S.i!==a.i||!a.S.h()||a.S.i!==a.i)return!0;return!1}function It(e){for(var a=e.s;a!==void 0;a=a.n){var t=a.S.n;if(t!==void 0&&(a.r=t),a.S.n=a,a.i=-1,a.n===void 0){e.s=a;break}}}function ht(e){for(var a=e.s,t=void 0;a!==void 0;){var o=a.p;a.i===-1?(a.S.U(a),o!==void 0&&(o.n=a.n),a.n!==void 0&&(a.n.p=o)):t=a,a.S.n=a.r,a.r!==void 0&&(a.r=void 0),a=o}e.s=t}function oe(e,a){b.call(this,void 0),this.x=e,this.s=void 0,this.g=Re-1,this.f=4,this.W=a?.watched,this.Z=a?.unwatched,this.name=a?.name}oe.prototype=new b;oe.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Re))return!0;if(this.g=Re,this.f|=1,this.i>0&&!Lt(this))return this.f&=-2,!0;var e=C;try{It(this),C=this;var a=this.x();(16&this.f||this.v!==a||this.i===0)&&(this.v=a,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return C=e,ht(this),this.f&=-2,!0};oe.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var a=this.s;a!==void 0;a=a.n)a.S.S(a)}b.prototype.S.call(this,e)};oe.prototype.U=function(e){if(this.t!==void 0&&(b.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var a=this.s;a!==void 0;a=a.n)a.S.U(a)}};oe.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(oe.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=xt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Fe(e,a){return new oe(e,a)}function gt(e){var a=e.u;if(e.u=void 0,typeof a=="function"){Y++;var t=C;C=void 0;try{a()}catch(o){throw e.f&=-2,e.f|=8,aa(e),o}finally{C=t,Be()}}}function aa(e){for(var a=e.s;a!==void 0;a=a.n)a.S.U(a);e.x=void 0,e.s=void 0,gt(e)}function Ko(e){if(C!==this)throw new Error("Out-of-order effect");ht(this),C=e,this.f&=-2,8&this.f&&aa(this),Be()}function de(e,a){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=a?.name}de.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var a=this.x();typeof a=="function"&&(this.u=a)}finally{e()}};de.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,gt(this),It(this),Y++;var e=C;return C=this,Ko.bind(this,e)};de.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ie,Ie=this)};de.prototype.d=function(){this.f|=8,1&this.f||aa(this)};de.prototype.dispose=function(){this.d()};function K(e,a){var t=new de(e,a);try{t.c()}catch(r){throw t.d(),r}var o=t.d.bind(t);return o[Symbol.dispose]=o,o}var St,oa,ta;var Ct=[];K(function(){St=this.N})();function fe(e,a){x[e]=a.bind(null,x[e]||function(){})}function Me(e){ta&&ta(),ta=e&&e.S()}function _t(e){var a=this,t=e.data,o=$o(t);o.value=t;var r=D(function(){for(var s=a,n=a.__v;n=n.__;)if(n.__c){n.__c.__$f|=4;break}var d=Fe(function(){var p=o.value.value;return p===0?0:p===!0?"":p||""}),i=Fe(function(){return!Array.isArray(d.value)&&!Ne(d.value)}),f=K(function(){if(this.N=vt,i.value){var p=d.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=p)}}),c=a.__$u.d;return a.__$u.d=function(){f(),c.call(this)},[i,d]},[]),u=r[0],l=r[1];return u.value?l.peek():l.value}_t.displayName="ReactiveTextNode";Object.defineProperties(b.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:_t},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});fe("__b",function(e,a){if(typeof a.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof a.type=="string"){var t,o=a.props;for(var r in o)if(r!=="children"){var u=o[r];u instanceof b&&(t||(a.__np=t={}),t[r]=u,o[r]=u.peek())}}e(a)});fe("__r",function(e,a){if(typeof a.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(a),a.type!==y){Me();var t,o=a.__c;o&&(o.__$f&=-2,(t=o.__$u)===void 0&&(o.__$u=t=function(r){var u;return K(function(){u=this}),u.c=function(){o.__$f|=1,o.setState({})},u}())),oa=o,Me(t)}e(a)});fe("__e",function(e,a,t,o){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Me(),oa=void 0,e(a,t,o)});fe("diffed",function(e,a){typeof a.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Me(),oa=void 0;var t;if(typeof a.type=="string"&&(t=a.__e)){var o=a.__np,r=a.props;if(o){var u=t.U;if(u)for(var l in u){var s=u[l];s!==void 0&&!(l in o)&&(s.d(),u[l]=void 0)}else u={},t.U=u;for(var n in o){var d=u[n],i=o[n];d===void 0?(d=Qo(t,n,i,r),u[n]=d):d.o(i,r)}}}e(a)});function Qo(e,a,t,o){var r=a in e&&e.ownerSVGElement===void 0,u=q(t);return{o:function(l,s){u.value=l,o=s},d:K(function(){this.N=vt;var l=u.value.value;o[a]!==l&&(o[a]=l,r?e[a]=l:l?e.setAttribute(a,l):e.removeAttribute(a))})}}fe("unmount",function(e,a){if(typeof a.type=="string"){var t=a.__e;if(t){var o=t.U;if(o){t.U=void 0;for(var r in o){var u=o[r];u&&u.d()}}}}else{var l=a.__c;if(l){var s=l.__$u;s&&(l.__$u=void 0,s.d())}}e(a)});fe("__h",function(e,a,t,o){(o<3||o===9)&&(a.__$f|=2),e(a,t,o)});B.prototype.shouldComponentUpdate=function(e,a){var t=this.__$u,o=t&&t.s!==void 0;for(var r in a)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var u=2&this.__$f;if(!(o||u||4&this.__$f)||1&this.__$f)return!0}else if(!(o||4&this.__$f)||3&this.__$f)return!0;for(var l in e)if(l!=="__source"&&e[l]!==this.props[l])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function $o(e,a){return j(function(){return q(e,a)})[0]}var Jo=function(e){queueMicrotask(function(){queueMicrotask(e)})};function Zo(){Ye(function(){for(var e;e=Ct.shift();)St.call(e)})}function vt(){Ct.push(this)===1&&(x.requestAnimationFrame||Jo)(Zo)}var V=[0];for(let e=0;e<32;e++)V.push(V[e]|1<>>5]>>>a&1}set(a){this.data[a>>>5]|=1<<(a&31)}forEach(a){let t=this.size&31;for(let o=0;oa.tags?.length)&&(matchMedia("(max-width: 768px)").matches||ra())}function O(){N.value={...N.value,hideSearch:!N.value.hideSearch}}function ra(){N.value={...N.value,hideFilters:!N.value.hideFilters}}function ne(){return N.value.selectedItem}function he(e){N.value={...N.value,selectedItem:e}}function Pt(){return ee.value?.items??[]}function ue(){return typeof w.value.input=="string"?w.value.input:""}function ua(e){let a=la();e.length&&!a.length?w.value={...w.value,page:void 0,input:e}:!e.length&&a.length?w.value={...w.value,page:void 0,input:{type:"operator",data:{operator:"not",operands:[]}}}:w.value={...w.value,page:void 0,input:e}}function Tt(){typeof E.value.pagination.next<"u"&&(w.value={...w.value,page:E.value.pagination.next})}function At(e){let a=w.value.filter.input;if("type"in a&&a.type==="operator"){for(let t of a.data.operands)if("type"in t&&t.type==="value"&&typeof t.data.value=="string"&&t.data.value===e)return!0}return!1}function la(){let e=w.value.filter.input,a=[];if("type"in e&&e.type==="operator")for(let t of e.data.operands)"type"in t&&t.type==="value"&&typeof t.data.value=="string"&&a.push(t.data.value);return a}function Rt(e){let a=w.value.filter.input,t=[];if("type"in a&&a.type==="operator")for(let o of a.data.operands)"type"in o&&o.type==="value"&&typeof o.data.value=="string"&&t.push(o.data.value);if(t.includes(e)){let o=t.indexOf(e);o>-1&&t.splice(o,1)}else t.push(e);w.value={...w.value,page:void 0,filter:{...w.value.filter,input:{type:"operator",data:{operator:"and",operands:t.map(o=>({type:"value",data:{field:"tags",value:o}}))}}}},ua(ue())}function Bt(){return E.value.items}function Ft(){return E.value.total}function Mt(){for(let e of E.value.aggregations??[])if(e.type==="term")return e.data.value;return[]}function ie(){return N.value.hideSearch}function Dt(){return N.value.hideFilters}function Ee(){return sa.value.highlight??!1}var N=q({hideSearch:!0,hideFilters:!0,selectedItem:0}),sa=q({}),ee=q(),da=q(),w=q({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),E=q({items:[],query:{select:{documents:new H(0),terms:new H(0)},values:[]},pagination:{total:0}});function Yo(e,a,t){for(let o=0;at&&a(0,r,t,t=u);continue;case 62:e.charCodeAt(t+1)===47?a(2,--r,t,t=u+1):Yo(e,t,o)?a(3,r,t,t=u+1):a(1,r++,t,t=u+1)}u>t&&a(0,r,t,u)}function Ut(e,a=0,t=e.length){let o=++a;e:for(let d=0;o{let u=[],l=[],{onElement:s,onText:n=er}=typeof t=="function"?{onElement:t}:t,d=0,i=0;return e(a,(f,c,p,L)=>{if(f===0)u[d++]=n(a,p,L),l[i++]={value:null,depth:c};else if(f&1&&(l[i++]={value:Ut(a,p,L),depth:c}),f&2)for(let I=0;i>=0;I++){let{value:S,depth:h}=l[--i];if(h>c)continue;let g=u.slice(d-=I,d+I);u[d++]=s(S,g),i++;break}},o,r),u.slice(0,d)}}function Vt(e){return e.replace(/[&<>]/g,a=>{switch(a.charCodeAt(0)){case 38:return"&";case 60:return"<";case 62:return">"}})}function ce(e){return e.replace(/&(amp|[lg]t);/g,a=>{switch(a.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function Ht(e,a){return{start:e.start+a,end:e.end+a,value:e.value}}function dr(e,a,t){return e.slice(a,t)}function Wt(e){let{onHighlight:a,onText:t=dr}=typeof e=="function"?{onHighlight:e}:e;return(o,r,u=0,l=o.length)=>{let s=[],n=r?.ranges??[];for(let d=0,i=u;dl)break;let c=n[d].end;if(cu&&s.push(t(o,u,f));let{value:p}=n[d];s.push(a(o,{start:f,end:u=c,value:p}))}return ua!==null&&typeof a<"u"&&a!==!1&&!(typeof a=="string"&&a.trim().length===0))}function fa(e,a){let t=zt(e,{onElement(o,r){return F(o.tag,o.attrs,...r)},onText(o,r,u){return Xt(o,a?.value.highlight,r,u)}});return m(y,{children:t})}function Kt(e,a){let t=[];for(let o=0,r=0;oi.start=s||n.push({...i,start:Math.max(i.start,l),end:Math.min(i.end,s)});let d=zt(e,{onElement(i,f){let c=pr(f);if(c.length!==0)return cr.has(i.tag)?F(i.tag,i.attrs??{},...c):i.tag==="li"?m(y,{children:["\u2013 ",c," "]}):ir.has(i.tag)?m(y,{children:[" ",c," "]}):m(y,{children:c})},onText(i,f,c){let p=Math.max(f,l),L=Math.min(c,s);if(!(p>=L))return Xt(i,{ranges:n},p,L)}});return m(y,{children:[l>0&&"...",d]})}function mr(e,a={highlight:!0}){sa.value=a;let t=new Worker(e);t.onmessage=o=>{let r=o.data;switch(r.type){case 1:da.value=!0;break;case 3:typeof r.data.pagination.prev<"u"?E.value={...E.value,pagination:r.data.pagination,items:[...E.value.items,...r.data.items]}:(E.value=r.data,he(0));break}},K(()=>{ee.value&&t.postMessage({type:0,data:ee.value})}),K(()=>{da.value&&t.postMessage({type:2,data:w.value})})}var na={container:"p",hidden:"v"};function $t(e){return m("div",{class:M(na.container,{[na.hidden]:e.hidden}),onClick:()=>O()})}var ia={container:"r",disabled:"c"};function ca(e){return m("button",{class:M(ia.container,{[ia.disabled]:!e.onClick}),onClick:e.onClick,children:e.children})}var pa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ir=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,o)=>o?o.toUpperCase():t.toLowerCase()),ma=e=>{let a=Ir(e);return a.charAt(0).toUpperCase()+a.slice(1)},Jt=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();var Zt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"};var jt=({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,children:r,iconNode:u,class:l="",...s})=>F("svg",{...Zt,width:String(a),height:a,stroke:e,"stroke-width":o?Number(t)*24/Number(a):t,class:["lucide",l].join(" "),...s},[...u.map(([n,d])=>F(n,d)),...te(r)]);var Oe=(e,a)=>{let t=({class:o="",children:r,...u})=>F(jt,{...u,iconNode:a,class:Jt(`lucide-${pa(ma(e))}`,`lucide-${pa(e)}`,o)},r);return t.displayName=ma(e),t};var Se=Oe("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]);var Ce=Oe("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var Dr=ho(to(),1);function oo({threshold:e=0,root:a=null,rootMargin:t="0%",freezeOnceVisible:o=!1,initialIsIntersecting:r=!1,onChange:u}={}){var l;let[s,n]=j(null),[d,i]=j(()=>({isIntersecting:r,entry:void 0})),f=A();f.current=u;let c=((l=d.entry)==null?void 0:l.isIntersecting)&&o;P(()=>{if(!s||!("IntersectionObserver"in window)||c)return;let I,S=new IntersectionObserver(h=>{let g=Array.isArray(S.thresholds)?S.thresholds:[S.thresholds];h.forEach(T=>{let R=T.isIntersecting&&g.some(G=>T.intersectionRatio>=G);i({isIntersecting:R,entry:T}),f.current&&f.current(R,T),R&&o&&I&&(I(),I=void 0)})},{threshold:e,root:a,rootMargin:t});return S.observe(s),()=>{S.disconnect()}},[s,JSON.stringify(e),a,t,c,o]);let p=A(null);P(()=>{var I;!s&&((I=d.entry)!=null&&I.target)&&!o&&!c&&p.current!==d.entry.target&&(p.current=d.entry.target,i({isIntersecting:r,entry:void 0}))},[s,d.entry,o,c,r]);let L=[n,!!d.isIntersecting,d.entry];return L.ref=L[0],L.isIntersecting=L[1],L.entry=L[2],L}var Q={container:"n",hidden:"l",content:"y",pop:"d",badge:"w",sidebar:"e",controls:"k",results:"z",loadmore:"j"};function ro(e){let{isIntersecting:a,ref:t}=oo({threshold:0});P(()=>{a&&Tt()},[a]);let o=A(null);P(()=>{o.current&&typeof w.value.page>"u"&&o.current.scrollTo({top:0,behavior:"smooth"})},[w.value]);let r=la();return m("div",{class:M(Q.container,{[Q.hidden]:e.hidden}),children:[m("div",{class:Q.content,children:[m("div",{class:Q.controls,children:[m(ca,{onClick:O,children:m(Ce,{})}),m(lo,{focus:!e.hidden}),m(ca,{onClick:ra,children:[m(Se,{}),r.length>0&&m("span",{class:Q.badge,children:r.length})]})]}),m("div",{class:Q.results,ref:o,children:[m(so,{keyboard:!e.hidden}),m("div",{class:Q.loadmore,ref:t})]})]}),m("div",{class:M(Q.sidebar,{[Q.hidden]:Dt()}),children:m(uo,{})})]})}var J={container:"X",list:"F",heading:"I",title:"R",item:"o",active:"g",value:"q",count:"A"};function uo(e){let a=Mt();return a.sort((t,o)=>o.node.count-t.node.count),m("div",{class:J.container,children:[m("h3",{class:J.heading,children:"Filters"}),m("h4",{class:J.title,children:"Tags"}),m("ol",{class:J.list,children:a.map(t=>m("li",{class:M(J.item,{[J.active]:At(t.node.value)}),onClick:()=>Rt(t.node.value),children:[m("span",{class:J.value,children:t.node.value}),m("span",{class:J.count,children:t.node.count})]}))})]})}var Ia={container:"f"};function lo(e){let a=A(null);return P(()=>{e.focus?a.current?.focus():a.current?.blur()},[e.focus]),m("div",{class:Ia.container,children:m("input",{ref:a,type:"text",class:Ia.content,value:ce(ue()),onInput:t=>ua(Vt(t.currentTarget.value)),autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox"})})}var W={container:"b",heading:"B",item:"i",active:"h",wrapper:"C",meta:"D",actions:"s",title:"x",path:"t",excerpt:"u",more:"E"};function ha(){let[e,a]=j(!1);return P(()=>{let t=()=>a(!0),o=()=>a(!1);return document.addEventListener("compositionstart",t),document.addEventListener("compositionend",o),()=>{document.removeEventListener("compositionstart",t),document.removeEventListener("compositionend",o)}},[]),e}function so(e){let a=Pt(),t=Bt(),o=ne(),r=A([]),u=ha();P(()=>{let s=r.current[o];s&&s.scrollIntoView({block:"center",behavior:"smooth"})},[o]),Ae(e.keyboard,s=>{if(u)return;let n=ne();s.key==="ArrowDown"?(s.preventDefault(),he(Math.min(n+1,t.length-1))):s.key==="ArrowUp"&&(s.preventDefault(),he(Math.max(n-1,0)))},[e.keyboard,u]);let l=Ft()??0;return m(y,{children:[t.length>0&&m("h3",{class:W.heading,children:[m("span",{class:W.bubble,children:new Intl.NumberFormat("en-US").format(l)})," ","results"]}),m("ol",{class:W.container,children:t.map((s,n)=>{let d=s.matches.find(({field:I})=>I==="text"),i=fa(a[s.id].title,s.matches.find(({field:I})=>I==="title")),f=Kt(a[s.id].path??[],s.matches.find(({field:I})=>I==="path")),c=Qt(a[s.id].text,d),p=Math.max(0,(d?.value.highlight?.ranges?.filter(I=>I.start{r.current[n]=I},href:L,onClick:()=>O(),class:M(W.item,{[W.active]:n===ne()}),children:m("div",{class:W.wrapper,children:[m("div",{class:W.meta,children:m("menu",{class:W.path,children:f.map(I=>m("li",{children:I}))})}),m("h2",{class:W.title,children:i}),c&&m("div",{class:W.excerpt,children:c})]})})})})})]})}var fo={container:"a"};function no(e){let a=ha();return Ae(!0,t=>{if(!a)if((t.metaKey||t.ctrlKey)&&t.key==="k")t.preventDefault(),O();else if((t.metaKey||t.ctrlKey)&&t.key==="j")document.body.classList.toggle("dark");else if(t.key==="Enter"&&!ie()){t.preventDefault();let o=ne(),r=E.value?.items[o]?.id;if(ee.value?.items[r]?.location){O();let u=ee.value?.items[r].location;if(Ee()){let l=encodeURIComponent(ue()),[s,n]=u.split("#",2);u=`${s}?h=${l.replace(/%20/g,"+")}`,typeof n<"u"&&(u+=`#${n}`)}window.location.href=u}}else t.key==="Escape"&&!ie()&&(t.preventDefault(),O())},[a]),m("div",{class:fo.container,children:[m($t,{hidden:ie()}),m(ro,{hidden:ie()})]})}function vx(e,a){bt(e),Ke(m(no,{}),a)}function wx(){O()}export{ie as isSearchHidden,vx as mount,wx as open,mr as setup}; -//# sourceMappingURL=bundle.HFNNEDCD.js.map +var io = Object.create; +var ga = Object.defineProperty; +var co = Object.getOwnPropertyDescriptor; +var po = Object.getOwnPropertyNames; +var mo = Object.getPrototypeOf, + xo = Object.prototype.hasOwnProperty; +var Lo = (e, a) => () => (a || e((a = { exports: {} }).exports, a), a.exports); +var Io = (e, a, t, o) => { + if ((a && typeof a == "object") || typeof a == "function") + for (let r of po(a)) + !xo.call(e, r) && + r !== t && + ga(e, r, { + get: () => a[r], + enumerable: !(o = co(a, r)) || o.enumerable, + }); + return e; +}; +var ho = (e, a, t) => ( + (t = e != null ? io(mo(e)) : {}), + Io( + a || !e || !e.__esModule + ? ga(t, "default", { value: e, enumerable: !0 }) + : t, + e, + ) +); +var to = Lo((ym, ao) => { + var hr = "Expected a function", + Yt = NaN, + gr = "[object Symbol]", + Sr = /^\s+|\s+$/g, + Cr = /^[-+]0x[0-9a-f]+$/i, + _r = /^0b[01]+$/i, + vr = /^0o[0-7]+$/i, + wr = parseInt, + yr = + typeof global == "object" && global && global.Object === Object && global, + kr = typeof self == "object" && self && self.Object === Object && self, + br = yr || kr || Function("return this")(), + Pr = Object.prototype, + Tr = Pr.toString, + Ar = Math.max, + Rr = Math.min, + xa = function () { + return br.Date.now(); + }; + function Br(e, a, t) { + var o, + r, + u, + l, + s, + n, + d = 0, + i = !1, + f = !1, + c = !0; + if (typeof e != "function") throw new TypeError(hr); + ((a = eo(a) || 0), + La(t) && + ((i = !!t.leading), + (f = "maxWait" in t), + (u = f ? Ar(eo(t.maxWait) || 0, a) : u), + (c = "trailing" in t ? !!t.trailing : c))); + function p(_) { + var U = o, + z = r; + return ((o = r = void 0), (d = _), (l = e.apply(z, U)), l); + } + function L(_) { + return ((d = _), (s = setTimeout(h, a)), i ? p(_) : l); + } + function I(_) { + var U = _ - n, + z = _ - d, + Z = a - U; + return f ? Rr(Z, u - z) : Z; + } + function S(_) { + var U = _ - n, + z = _ - d; + return n === void 0 || U >= a || U < 0 || (f && z >= u); + } + function h() { + var _ = xa(); + if (S(_)) return g(_); + s = setTimeout(h, I(_)); + } + function g(_) { + return ((s = void 0), c && o ? p(_) : ((o = r = void 0), l)); + } + function T() { + (s !== void 0 && clearTimeout(s), (d = 0), (o = n = r = s = void 0)); + } + function R() { + return s === void 0 ? l : g(xa()); + } + function G() { + var _ = xa(), + U = S(_); + if (((o = arguments), (r = this), (n = _), U)) { + if (s === void 0) return L(n); + if (f) return ((s = setTimeout(h, a)), p(n)); + } + return (s === void 0 && (s = setTimeout(h, a)), l); + } + return ((G.cancel = T), (G.flush = R), G); + } + function La(e) { + var a = typeof e; + return !!e && (a == "object" || a == "function"); + } + function Fr(e) { + return !!e && typeof e == "object"; + } + function Mr(e) { + return typeof e == "symbol" || (Fr(e) && Tr.call(e) == gr); + } + function eo(e) { + if (typeof e == "number") return e; + if (Mr(e)) return Yt; + if (La(e)) { + var a = typeof e.valueOf == "function" ? e.valueOf() : e; + e = La(a) ? a + "" : a; + } + if (typeof e != "string") return e === 0 ? e : +e; + e = e.replace(Sr, ""); + var t = _r.test(e); + return t || vr.test(e) ? wr(e.slice(2), t ? 2 : 8) : Cr.test(e) ? Yt : +e; + } + ao.exports = Br; +}); +var ye, + x, + wa, + Ne, + ae, + Sa, + ya, + ka, + ba, + We, + qe, + Ve, + go, + pe = {}, + Pa = [], + So = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, + me = Array.isArray; +function $(e, a) { + for (var t in a) e[t] = a[t]; + return e; +} +function Ge(e) { + e && e.parentNode && e.parentNode.removeChild(e); +} +function F(e, a, t) { + var o, + r, + u, + l = {}; + for (u in a) + u == "key" ? (o = a[u]) : u == "ref" ? (r = a[u]) : (l[u] = a[u]); + if ( + (arguments.length > 2 && + (l.children = arguments.length > 3 ? ye.call(arguments, 2) : t), + typeof e == "function" && e.defaultProps != null) + ) + for (u in e.defaultProps) l[u] === void 0 && (l[u] = e.defaultProps[u]); + return ve(e, l, o, r, null); +} +function ve(e, a, t, o, r) { + var u = { + type: e, + props: a, + key: t, + ref: o, + __k: null, + __: null, + __b: 0, + __e: null, + __c: null, + constructor: void 0, + __v: r ?? ++wa, + __i: -1, + __u: 0, + }; + return (r == null && x.vnode != null && x.vnode(u), u); +} +function y(e) { + return e.children; +} +function B(e, a) { + ((this.props = e), (this.context = a)); +} +function se(e, a) { + if (a == null) return e.__ ? se(e.__, e.__i + 1) : null; + for (var t; a < e.__k.length; a++) + if ((t = e.__k[a]) != null && t.__e != null) return t.__e; + return typeof e.type == "function" ? se(e) : null; +} +function Ta(e) { + var a, t; + if ((e = e.__) != null && e.__c != null) { + for (e.__e = e.__c.base = null, a = 0; a < e.__k.length; a++) + if ((t = e.__k[a]) != null && t.__e != null) { + e.__e = e.__c.base = t.__e; + break; + } + return Ta(e); + } +} +function Ca(e) { + ((!e.__d && (e.__d = !0) && ae.push(e) && !we.__r++) || + Sa != x.debounceRendering) && + ((Sa = x.debounceRendering) || ya)(we); +} +function we() { + for (var e, a, t, o, r, u, l, s = 1; ae.length;) + (ae.length > s && ae.sort(ka), + (e = ae.shift()), + (s = ae.length), + e.__d && + ((t = void 0), + (o = void 0), + (r = (o = (a = e).__v).__e), + (u = []), + (l = []), + a.__P && + (((t = $({}, o)).__v = o.__v + 1), + x.vnode && x.vnode(t), + ze( + a.__P, + t, + o, + a.__n, + a.__P.namespaceURI, + 32 & o.__u ? [r] : null, + u, + r ?? se(o), + !!(32 & o.__u), + l, + ), + (t.__v = o.__v), + (t.__.__k[t.__i] = t), + Ba(u, t, l), + (o.__e = o.__ = null), + t.__e != r && Ta(t)))); + we.__r = 0; +} +function Aa(e, a, t, o, r, u, l, s, n, d, i) { + var f, + c, + p, + L, + I, + S, + h, + g = (o && o.__k) || Pa, + T = a.length; + for (n = Co(t, a, g, n, T), f = 0; f < T; f++) + (p = t.__k[f]) != null && + ((c = p.__i == -1 ? pe : g[p.__i] || pe), + (p.__i = f), + (S = ze(e, p, c, r, u, l, s, n, d, i)), + (L = p.__e), + p.ref && + c.ref != p.ref && + (c.ref && Xe(c.ref, null, p), i.push(p.ref, p.__c || L, p)), + I == null && L != null && (I = L), + (h = !!(4 & p.__u)) || c.__k === p.__k + ? (n = Ra(p, n, e, h)) + : typeof p.type == "function" && S !== void 0 + ? (n = S) + : L && (n = L.nextSibling), + (p.__u &= -7)); + return ((t.__e = I), n); +} +function Co(e, a, t, o, r) { + var u, + l, + s, + n, + d, + i = t.length, + f = i, + c = 0; + for (e.__k = new Array(r), u = 0; u < r; u++) + (l = a[u]) != null && typeof l != "boolean" && typeof l != "function" + ? ((n = u + c), + ((l = e.__k[u] = + typeof l == "string" || + typeof l == "number" || + typeof l == "bigint" || + l.constructor == String + ? ve(null, l, null, null, null) + : me(l) + ? ve(y, { children: l }, null, null, null) + : l.constructor == null && l.__b > 0 + ? ve(l.type, l.props, l.key, l.ref ? l.ref : null, l.__v) + : l).__ = e), + (l.__b = e.__b + 1), + (s = null), + (d = l.__i = _o(l, t, n, f)) != -1 && (f--, (s = t[d]) && (s.__u |= 2)), + s == null || s.__v == null + ? (d == -1 && (r > i ? c-- : r < i && c++), + typeof l.type != "function" && (l.__u |= 4)) + : d != n && + (d == n - 1 + ? c-- + : d == n + 1 + ? c++ + : (d > n ? c-- : c++, (l.__u |= 4)))) + : (e.__k[u] = null); + if (f) + for (u = 0; u < i; u++) + (s = t[u]) != null && + !(2 & s.__u) && + (s.__e == o && (o = se(s)), Ma(s, s)); + return o; +} +function Ra(e, a, t, o) { + var r, u; + if (typeof e.type == "function") { + for (r = e.__k, u = 0; r && u < r.length; u++) + r[u] && ((r[u].__ = e), (a = Ra(r[u], a, t, o))); + return a; + } + e.__e != a && + (o && + (a && e.type && !a.parentNode && (a = se(e)), + t.insertBefore(e.__e, a || null)), + (a = e.__e)); + do a = a && a.nextSibling; + while (a != null && a.nodeType == 8); + return a; +} +function te(e, a) { + return ( + (a = a || []), + e == null || + typeof e == "boolean" || + (me(e) + ? e.some(function (t) { + te(t, a); + }) + : a.push(e)), + a + ); +} +function _o(e, a, t, o) { + var r, + u, + l, + s = e.key, + n = e.type, + d = a[t], + i = d != null && (2 & d.__u) == 0; + if ((d === null && e.key == null) || (i && s == d.key && n == d.type)) + return t; + if (o > (i ? 1 : 0)) { + for (r = t - 1, u = t + 1; r >= 0 || u < a.length;) + if ( + (d = a[(l = r >= 0 ? r-- : u++)]) != null && + !(2 & d.__u) && + s == d.key && + n == d.type + ) + return l; + } + return -1; +} +function _a(e, a, t) { + a[0] == "-" + ? e.setProperty(a, t ?? "") + : (e[a] = + t == null ? "" : typeof t != "number" || So.test(a) ? t : t + "px"); +} +function _e(e, a, t, o, r) { + var u, l; + e: if (a == "style") + if (typeof t == "string") e.style.cssText = t; + else { + if ((typeof o == "string" && (e.style.cssText = o = ""), o)) + for (a in o) (t && a in t) || _a(e.style, a, ""); + if (t) for (a in t) (o && t[a] == o[a]) || _a(e.style, a, t[a]); + } + else if (a[0] == "o" && a[1] == "n") + ((u = a != (a = a.replace(ba, "$1"))), + (l = a.toLowerCase()), + (a = + l in e || a == "onFocusOut" || a == "onFocusIn" + ? l.slice(2) + : a.slice(2)), + e.l || (e.l = {}), + (e.l[a + u] = t), + t + ? o + ? (t.u = o.u) + : ((t.u = We), e.addEventListener(a, u ? Ve : qe, u)) + : e.removeEventListener(a, u ? Ve : qe, u)); + else { + if (r == "http://www.w3.org/2000/svg") + a = a.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s"); + else if ( + a != "width" && + a != "height" && + a != "href" && + a != "list" && + a != "form" && + a != "tabIndex" && + a != "download" && + a != "rowSpan" && + a != "colSpan" && + a != "role" && + a != "popover" && + a in e + ) + try { + e[a] = t ?? ""; + break e; + } catch {} + typeof t == "function" || + (t == null || (t === !1 && a[4] != "-") + ? e.removeAttribute(a) + : e.setAttribute(a, a == "popover" && t == 1 ? "" : t)); + } +} +function va(e) { + return function (a) { + if (this.l) { + var t = this.l[a.type + e]; + if (a.t == null) a.t = We++; + else if (a.t < t.u) return; + return t(x.event ? x.event(a) : a); + } + }; +} +function ze(e, a, t, o, r, u, l, s, n, d) { + var i, + f, + c, + p, + L, + I, + S, + h, + g, + T, + R, + G, + _, + U, + z, + Z, + Ue, + X = a.type; + if (a.constructor != null) return null; + (128 & t.__u && ((n = !!(32 & t.__u)), (u = [(s = a.__e = t.__e)])), + (i = x.__b) && i(a)); + e: if (typeof X == "function") + try { + if ( + ((h = a.props), + (g = "prototype" in X && X.prototype.render), + (T = (i = X.contextType) && o[i.__c]), + (R = i ? (T ? T.props.value : i.__) : o), + t.__c + ? (S = (f = a.__c = t.__c).__ = f.__E) + : (g + ? (a.__c = f = new X(h, R)) + : ((a.__c = f = new B(h, R)), + (f.constructor = X), + (f.render = wo)), + T && T.sub(f), + (f.props = h), + f.state || (f.state = {}), + (f.context = R), + (f.__n = o), + (c = f.__d = !0), + (f.__h = []), + (f._sb = [])), + g && f.__s == null && (f.__s = f.state), + g && + X.getDerivedStateFromProps != null && + (f.__s == f.state && (f.__s = $({}, f.__s)), + $(f.__s, X.getDerivedStateFromProps(h, f.__s))), + (p = f.props), + (L = f.state), + (f.__v = a), + c) + ) + (g && + X.getDerivedStateFromProps == null && + f.componentWillMount != null && + f.componentWillMount(), + g && f.componentDidMount != null && f.__h.push(f.componentDidMount)); + else { + if ( + (g && + X.getDerivedStateFromProps == null && + h !== p && + f.componentWillReceiveProps != null && + f.componentWillReceiveProps(h, R), + (!f.__e && + f.shouldComponentUpdate != null && + f.shouldComponentUpdate(h, f.__s, R) === !1) || + a.__v == t.__v) + ) { + for ( + a.__v != t.__v && ((f.props = h), (f.state = f.__s), (f.__d = !1)), + a.__e = t.__e, + a.__k = t.__k, + a.__k.some(function (le) { + le && (le.__ = a); + }), + G = 0; + G < f._sb.length; + G++ + ) + f.__h.push(f._sb[G]); + ((f._sb = []), f.__h.length && l.push(f)); + break e; + } + (f.componentWillUpdate != null && f.componentWillUpdate(h, f.__s, R), + g && + f.componentDidUpdate != null && + f.__h.push(function () { + f.componentDidUpdate(p, L, I); + })); + } + if ( + ((f.context = R), + (f.props = h), + (f.__P = e), + (f.__e = !1), + (_ = x.__r), + (U = 0), + g) + ) { + for ( + f.state = f.__s, + f.__d = !1, + _ && _(a), + i = f.render(f.props, f.state, f.context), + z = 0; + z < f._sb.length; + z++ + ) + f.__h.push(f._sb[z]); + f._sb = []; + } else + do + ((f.__d = !1), + _ && _(a), + (i = f.render(f.props, f.state, f.context)), + (f.state = f.__s)); + while (f.__d && ++U < 25); + ((f.state = f.__s), + f.getChildContext != null && (o = $($({}, o), f.getChildContext())), + g && + !c && + f.getSnapshotBeforeUpdate != null && + (I = f.getSnapshotBeforeUpdate(p, L)), + (Z = i), + i != null && + i.type === y && + i.key == null && + (Z = Fa(i.props.children)), + (s = Aa(e, me(Z) ? Z : [Z], a, t, o, r, u, l, s, n, d)), + (f.base = a.__e), + (a.__u &= -161), + f.__h.length && l.push(f), + S && (f.__E = f.__ = null)); + } catch (le) { + if (((a.__v = null), n || u != null)) + if (le.then) { + for (a.__u |= n ? 160 : 128; s && s.nodeType == 8 && s.nextSibling;) + s = s.nextSibling; + ((u[u.indexOf(s)] = null), (a.__e = s)); + } else { + for (Ue = u.length; Ue--;) Ge(u[Ue]); + He(a); + } + else ((a.__e = t.__e), (a.__k = t.__k), le.then || He(a)); + x.__e(le, a, t); + } + else + u == null && a.__v == t.__v + ? ((a.__k = t.__k), (a.__e = t.__e)) + : (s = a.__e = vo(t.__e, a, t, o, r, u, l, n, d)); + return ((i = x.diffed) && i(a), 128 & a.__u ? void 0 : s); +} +function He(e) { + (e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(He)); +} +function Ba(e, a, t) { + for (var o = 0; o < t.length; o++) Xe(t[o], t[++o], t[++o]); + (x.__c && x.__c(a, e), + e.some(function (r) { + try { + ((e = r.__h), + (r.__h = []), + e.some(function (u) { + u.call(r); + })); + } catch (u) { + x.__e(u, r.__v); + } + })); +} +function Fa(e) { + return typeof e != "object" || e == null || (e.__b && e.__b > 0) + ? e + : me(e) + ? e.map(Fa) + : $({}, e); +} +function vo(e, a, t, o, r, u, l, s, n) { + var d, + i, + f, + c, + p, + L, + I, + S = t.props, + h = a.props, + g = a.type; + if ( + (g == "svg" + ? (r = "http://www.w3.org/2000/svg") + : g == "math" + ? (r = "http://www.w3.org/1998/Math/MathML") + : r || (r = "http://www.w3.org/1999/xhtml"), + u != null) + ) { + for (d = 0; d < u.length; d++) + if ( + (p = u[d]) && + "setAttribute" in p == !!g && + (g ? p.localName == g : p.nodeType == 3) + ) { + ((e = p), (u[d] = null)); + break; + } + } + if (e == null) { + if (g == null) return document.createTextNode(h); + ((e = document.createElementNS(r, g, h.is && h)), + s && (x.__m && x.__m(a, u), (s = !1)), + (u = null)); + } + if (g == null) S === h || (s && e.data == h) || (e.data = h); + else { + if ( + ((u = u && ye.call(e.childNodes)), (S = t.props || pe), !s && u != null) + ) + for (S = {}, d = 0; d < e.attributes.length; d++) + S[(p = e.attributes[d]).name] = p.value; + for (d in S) + if (((p = S[d]), d != "children")) { + if (d == "dangerouslySetInnerHTML") f = p; + else if (!(d in h)) { + if ( + (d == "value" && "defaultValue" in h) || + (d == "checked" && "defaultChecked" in h) + ) + continue; + _e(e, d, null, p, r); + } + } + for (d in h) + ((p = h[d]), + d == "children" + ? (c = p) + : d == "dangerouslySetInnerHTML" + ? (i = p) + : d == "value" + ? (L = p) + : d == "checked" + ? (I = p) + : (s && typeof p != "function") || + S[d] === p || + _e(e, d, p, S[d], r)); + if (i) + (s || + (f && (i.__html == f.__html || i.__html == e.innerHTML)) || + (e.innerHTML = i.__html), + (a.__k = [])); + else if ( + (f && (e.innerHTML = ""), + Aa( + a.type == "template" ? e.content : e, + me(c) ? c : [c], + a, + t, + o, + g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : r, + u, + l, + u ? u[0] : t.__k && se(t, 0), + s, + n, + ), + u != null) + ) + for (d = u.length; d--;) Ge(u[d]); + s || + ((d = "value"), + g == "progress" && L == null + ? e.removeAttribute("value") + : L != null && + (L !== e[d] || + (g == "progress" && !L) || + (g == "option" && L != S[d])) && + _e(e, d, L, S[d], r), + (d = "checked"), + I != null && I != e[d] && _e(e, d, I, S[d], r)); + } + return e; +} +function Xe(e, a, t) { + try { + if (typeof e == "function") { + var o = typeof e.__u == "function"; + (o && e.__u(), (o && a == null) || (e.__u = e(a))); + } else e.current = a; + } catch (r) { + x.__e(r, t); + } +} +function Ma(e, a, t) { + var o, r; + if ( + (x.unmount && x.unmount(e), + (o = e.ref) && ((o.current && o.current != e.__e) || Xe(o, null, a)), + (o = e.__c) != null) + ) { + if (o.componentWillUnmount) + try { + o.componentWillUnmount(); + } catch (u) { + x.__e(u, a); + } + o.base = o.__P = null; + } + if ((o = e.__k)) + for (r = 0; r < o.length; r++) + o[r] && Ma(o[r], a, t || typeof e.type != "function"); + (t || Ge(e.__e), (e.__c = e.__ = e.__e = void 0)); +} +function wo(e, a, t) { + return this.constructor(e, t); +} +function Ke(e, a, t) { + var o, r, u, l; + (a == document && (a = document.documentElement), + x.__ && x.__(e, a), + (r = (o = typeof t == "function") ? null : (t && t.__k) || a.__k), + (u = []), + (l = []), + ze( + a, + (e = ((!o && t) || a).__k = F(y, null, [e])), + r || pe, + pe, + a.namespaceURI, + !o && t ? [t] : r ? null : a.firstChild ? ye.call(a.childNodes) : null, + u, + !o && t ? t : r ? r.__e : a.firstChild, + o, + l, + ), + Ba(u, e, l)); +} +((ye = Pa.slice), + (x = { + __e: function (e, a, t, o) { + for (var r, u, l; (a = a.__);) + if ((r = a.__c) && !r.__) + try { + if ( + ((u = r.constructor) && + u.getDerivedStateFromError != null && + (r.setState(u.getDerivedStateFromError(e)), (l = r.__d)), + r.componentDidCatch != null && + (r.componentDidCatch(e, o || {}), (l = r.__d)), + l) + ) + return (r.__E = r); + } catch (s) { + e = s; + } + throw e; + }, + }), + (wa = 0), + (Ne = function (e) { + return e != null && e.constructor == null; + }), + (B.prototype.setState = function (e, a) { + var t; + ((t = + this.__s != null && this.__s != this.state + ? this.__s + : (this.__s = $({}, this.state))), + typeof e == "function" && (e = e($({}, t), this.props)), + e && $(t, e), + e != null && this.__v && (a && this._sb.push(a), Ca(this))); + }), + (B.prototype.forceUpdate = function (e) { + this.__v && ((this.__e = !0), e && this.__h.push(e), Ca(this)); + }), + (B.prototype.render = y), + (ae = []), + (ya = + typeof Promise == "function" + ? Promise.prototype.then.bind(Promise.resolve()) + : setTimeout), + (ka = function (e, a) { + return e.__v.__b - a.__v.__b; + }), + (we.__r = 0), + (ba = /(PointerCapture)$|Capture$/i), + (We = 0), + (qe = va(!1)), + (Ve = va(!0)), + (go = 0)); +var xe, + v, + Qe, + Da, + Le = 0, + Wa = [], + k = x, + Ea = k.__b, + Oa = k.__r, + Ua = k.diffed, + qa = k.__c, + Va = k.unmount, + Ha = k.__; +function Je(e, a) { + (k.__h && k.__h(v, e, Le || a), (Le = 0)); + var t = v.__H || (v.__H = { __: [], __h: [] }); + return (e >= t.__.length && t.__.push({}), t.__[e]); +} +function j(e) { + return ((Le = 1), Ga(Xa, e)); +} +function Ga(e, a, t) { + var o = Je(xe++, 2); + if ( + ((o.t = e), + !o.__c && + ((o.__ = [ + t ? t(a) : Xa(void 0, a), + function (s) { + var n = o.__N ? o.__N[0] : o.__[0], + d = o.t(n, s); + n !== d && ((o.__N = [d, o.__[1]]), o.__c.setState({})); + }, + ]), + (o.__c = v), + !v.__f)) + ) { + var r = function (s, n, d) { + if (!o.__c.__H) return !0; + var i = o.__c.__H.__.filter(function (c) { + return !!c.__c; + }); + if ( + i.every(function (c) { + return !c.__N; + }) + ) + return !u || u.call(this, s, n, d); + var f = o.__c.props !== s; + return ( + i.forEach(function (c) { + if (c.__N) { + var p = c.__[0]; + ((c.__ = c.__N), (c.__N = void 0), p !== c.__[0] && (f = !0)); + } + }), + (u && u.call(this, s, n, d)) || f + ); + }; + v.__f = !0; + var u = v.shouldComponentUpdate, + l = v.componentWillUpdate; + ((v.componentWillUpdate = function (s, n, d) { + if (this.__e) { + var i = u; + ((u = void 0), r(s, n, d), (u = i)); + } + l && l.call(this, s, n, d); + }), + (v.shouldComponentUpdate = r)); + } + return o.__N || o.__; +} +function P(e, a) { + var t = Je(xe++, 3); + !k.__s && za(t.__H, a) && ((t.__ = e), (t.u = a), v.__H.__h.push(t)); +} +function A(e) { + return ( + (Le = 5), + D(function () { + return { current: e }; + }, []) + ); +} +function D(e, a) { + var t = Je(xe++, 7); + return (za(t.__H, a) && ((t.__ = e()), (t.__H = a), (t.__h = e)), t.__); +} +function be(e, a) { + return ( + (Le = 8), + D(function () { + return e; + }, a) + ); +} +function yo() { + for (var e; (e = Wa.shift());) + if (e.__P && e.__H) + try { + (e.__H.__h.forEach(ke), e.__H.__h.forEach($e), (e.__H.__h = [])); + } catch (a) { + ((e.__H.__h = []), k.__e(a, e.__v)); + } +} +((k.__b = function (e) { + ((v = null), Ea && Ea(e)); +}), + (k.__ = function (e, a) { + (e && a.__k && a.__k.__m && (e.__m = a.__k.__m), Ha && Ha(e, a)); + }), + (k.__r = function (e) { + (Oa && Oa(e), (xe = 0)); + var a = (v = e.__c).__H; + (a && + (Qe === v + ? ((a.__h = []), + (v.__h = []), + a.__.forEach(function (t) { + (t.__N && (t.__ = t.__N), (t.u = t.__N = void 0)); + })) + : (a.__h.forEach(ke), a.__h.forEach($e), (a.__h = []), (xe = 0))), + (Qe = v)); + }), + (k.diffed = function (e) { + Ua && Ua(e); + var a = e.__c; + (a && + a.__H && + (a.__H.__h.length && + ((Wa.push(a) !== 1 && Da === k.requestAnimationFrame) || + ((Da = k.requestAnimationFrame) || ko)(yo)), + a.__H.__.forEach(function (t) { + (t.u && (t.__H = t.u), (t.u = void 0)); + })), + (Qe = v = null)); + }), + (k.__c = function (e, a) { + (a.some(function (t) { + try { + (t.__h.forEach(ke), + (t.__h = t.__h.filter(function (o) { + return !o.__ || $e(o); + }))); + } catch (o) { + (a.some(function (r) { + r.__h && (r.__h = []); + }), + (a = []), + k.__e(o, t.__v)); + } + }), + qa && qa(e, a)); + }), + (k.unmount = function (e) { + Va && Va(e); + var a, + t = e.__c; + t && + t.__H && + (t.__H.__.forEach(function (o) { + try { + ke(o); + } catch (r) { + a = r; + } + }), + (t.__H = void 0), + a && k.__e(a, t.__v)); + })); +var Na = typeof requestAnimationFrame == "function"; +function ko(e) { + var a, + t = function () { + (clearTimeout(o), Na && cancelAnimationFrame(a), setTimeout(e)); + }, + o = setTimeout(t, 35); + Na && (a = requestAnimationFrame(t)); +} +function ke(e) { + var a = v, + t = e.__c; + (typeof t == "function" && ((e.__c = void 0), t()), (v = a)); +} +function $e(e) { + var a = v; + ((e.__c = e.__()), (v = a)); +} +function za(e, a) { + return ( + !e || + e.length !== a.length || + a.some(function (t, o) { + return t !== e[o]; + }) + ); +} +function Xa(e, a) { + return typeof a == "function" ? a(e) : a; +} +function Ao(e, a) { + for (var t in a) e[t] = a[t]; + return e; +} +function Ka(e, a) { + for (var t in e) if (t !== "__source" && !(t in a)) return !0; + for (var o in a) if (o !== "__source" && e[o] !== a[o]) return !0; + return !1; +} +function Qa(e, a) { + ((this.props = e), (this.context = a)); +} +(((Qa.prototype = new B()).isPureReactComponent = !0), + (Qa.prototype.shouldComponentUpdate = function (e, a) { + return Ka(this.props, e) || Ka(this.state, a); + })); +var $a = x.__b; +x.__b = function (e) { + (e.type && e.type.__f && e.ref && ((e.props.ref = e.ref), (e.ref = null)), + $a && $a(e)); +}; +var Yr = + (typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref")) || + 3911; +var Ro = x.__e; +x.__e = function (e, a, t, o) { + if (e.then) { + for (var r, u = a; (u = u.__);) + if ((r = u.__c) && r.__c) + return ( + a.__e == null && ((a.__e = t.__e), (a.__k = t.__k)), + r.__c(e, a) + ); + } + Ro(e, a, t, o); +}; +var Ja = x.unmount; +function tt(e, a, t) { + return ( + e && + (e.__c && + e.__c.__H && + (e.__c.__H.__.forEach(function (o) { + typeof o.__c == "function" && o.__c(); + }), + (e.__c.__H = null)), + (e = Ao({}, e)).__c != null && + (e.__c.__P === t && (e.__c.__P = a), (e.__c.__e = !0), (e.__c = null)), + (e.__k = + e.__k && + e.__k.map(function (o) { + return tt(o, a, t); + }))), + e + ); +} +function ot(e, a, t) { + return ( + e && + t && + ((e.__v = null), + (e.__k = + e.__k && + e.__k.map(function (o) { + return ot(o, a, t); + })), + e.__c && + e.__c.__P === a && + (e.__e && t.appendChild(e.__e), (e.__c.__e = !0), (e.__c.__P = t))), + e + ); +} +function Ze() { + ((this.__u = 0), (this.o = null), (this.__b = null)); +} +function rt(e) { + var a = e.__.__c; + return a && a.__a && a.__a(e); +} +function Pe() { + ((this.i = null), (this.l = null)); +} +((x.unmount = function (e) { + var a = e.__c; + (a && a.__R && a.__R(), a && 32 & e.__u && (e.type = null), Ja && Ja(e)); +}), + ((Ze.prototype = new B()).__c = function (e, a) { + var t = a.__c, + o = this; + (o.o == null && (o.o = []), o.o.push(t)); + var r = rt(o.__v), + u = !1, + l = function () { + u || ((u = !0), (t.__R = null), r ? r(s) : s()); + }; + t.__R = l; + var s = function () { + if (!--o.__u) { + if (o.state.__a) { + var n = o.state.__a; + o.__v.__k[0] = ot(n, n.__c.__P, n.__c.__O); + } + var d; + for (o.setState({ __a: (o.__b = null) }); (d = o.o.pop());) + d.forceUpdate(); + } + }; + (o.__u++ || 32 & a.__u || o.setState({ __a: (o.__b = o.__v.__k[0]) }), + e.then(l, l)); + }), + (Ze.prototype.componentWillUnmount = function () { + this.o = []; + }), + (Ze.prototype.render = function (e, a) { + if (this.__b) { + if (this.__v.__k) { + var t = document.createElement("div"), + o = this.__v.__k[0].__c; + this.__v.__k[0] = tt(this.__b, t, (o.__O = o.__P)); + } + this.__b = null; + } + var r = a.__a && F(y, null, e.fallback); + return (r && (r.__u &= -33), [F(y, null, a.__a ? null : e.children), r]); + })); +var Za = function (e, a, t) { + if ( + (++t[1] === t[0] && e.l.delete(a), + e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) + ) + for (t = e.i; t;) { + for (; t.length > 3;) t.pop()(); + if (t[1] < t[0]) break; + e.i = t = t[2]; + } +}; +(((Pe.prototype = new B()).__a = function (e) { + var a = this, + t = rt(a.__v), + o = a.l.get(e); + return ( + o[0]++, + function (r) { + var u = function () { + a.props.revealOrder ? (o.push(r), Za(a, e, o)) : r(); + }; + t ? t(u) : u(); + } + ); +}), + (Pe.prototype.render = function (e) { + ((this.i = null), (this.l = new Map())); + var a = te(e.children); + e.revealOrder && e.revealOrder[0] === "b" && a.reverse(); + for (var t = a.length; t--;) this.l.set(a[t], (this.i = [1, 0, this.i])); + return e.children; + }), + (Pe.prototype.componentDidUpdate = Pe.prototype.componentDidMount = + function () { + var e = this; + this.l.forEach(function (a, t) { + Za(e, t, a); + }); + })); +var Bo = + (typeof Symbol < "u" && Symbol.for && Symbol.for("react.element")) || 60103, + Fo = + /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, + Mo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, + Do = /[A-Z0-9]/g, + Eo = typeof document < "u", + Oo = function (e) { + return ( + typeof Symbol < "u" && typeof Symbol() == "symbol" + ? /fil|che|rad/ + : /fil|che|ra/ + ).test(e); + }; +((B.prototype.isReactComponent = {}), + [ + "componentWillMount", + "componentWillReceiveProps", + "componentWillUpdate", + ].forEach(function (e) { + Object.defineProperty(B.prototype, e, { + configurable: !0, + get: function () { + return this["UNSAFE_" + e]; + }, + set: function (a) { + Object.defineProperty(this, e, { + configurable: !0, + writable: !0, + value: a, + }); + }, + }); + })); +var ja = x.event; +function Uo() {} +function qo() { + return this.cancelBubble; +} +function Vo() { + return this.defaultPrevented; +} +x.event = function (e) { + return ( + ja && (e = ja(e)), + (e.persist = Uo), + (e.isPropagationStopped = qo), + (e.isDefaultPrevented = Vo), + (e.nativeEvent = e) + ); +}; +var ut, + Ho = { + enumerable: !1, + configurable: !0, + get: function () { + return this.class; + }, + }, + Ya = x.vnode; +x.vnode = function (e) { + (typeof e.type == "string" && + (function (a) { + var t = a.props, + o = a.type, + r = {}, + u = o.indexOf("-") === -1; + for (var l in t) { + var s = t[l]; + if (!( + (l === "value" && "defaultValue" in t && s == null) || + (Eo && l === "children" && o === "noscript") || + l === "class" || + l === "className" + )) { + var n = l.toLowerCase(); + (l === "defaultValue" && "value" in t && t.value == null + ? (l = "value") + : l === "download" && s === !0 + ? (s = "") + : n === "translate" && s === "no" + ? (s = !1) + : n[0] === "o" && n[1] === "n" + ? n === "ondoubleclick" + ? (l = "ondblclick") + : n !== "onchange" || + (o !== "input" && o !== "textarea") || + Oo(t.type) + ? n === "onfocus" + ? (l = "onfocusin") + : n === "onblur" + ? (l = "onfocusout") + : Mo.test(l) && (l = n) + : (n = l = "oninput") + : u && Fo.test(l) + ? (l = l.replace(Do, "-$&").toLowerCase()) + : s === null && (s = void 0), + n === "oninput" && r[(l = n)] && (l = "oninputCapture"), + (r[l] = s)); + } + } + (o == "select" && + r.multiple && + Array.isArray(r.value) && + (r.value = te(t.children).forEach(function (d) { + d.props.selected = r.value.indexOf(d.props.value) != -1; + })), + o == "select" && + r.defaultValue != null && + (r.value = te(t.children).forEach(function (d) { + d.props.selected = r.multiple + ? r.defaultValue.indexOf(d.props.value) != -1 + : r.defaultValue == d.props.value; + })), + t.class && !t.className + ? ((r.class = t.class), Object.defineProperty(r, "className", Ho)) + : ((t.className && !t.class) || (t.class && t.className)) && + (r.class = r.className = t.className), + (a.props = r)); + })(e), + (e.$$typeof = Bo), + Ya && Ya(e)); +}; +var et = x.__r; +x.__r = function (e) { + (et && et(e), (ut = e.__c)); +}; +var at = x.diffed; +x.diffed = function (e) { + at && at(e); + var a = e.props, + t = e.__e; + (t != null && + e.type === "textarea" && + "value" in a && + a.value !== t.value && + (t.value = a.value == null ? "" : a.value), + (ut = null)); +}; +function Te(e) { + let a = A(e); + return ( + (a.current = e), + D( + () => + Object.freeze({ + get current() { + return a.current; + }, + }), + [], + ) + ); +} +var lt = + typeof globalThis < "u" && typeof navigator < "u" && typeof document < "u"; +function st(e, ...a) { + e?.addEventListener?.(...a); +} +function dt(e, ...a) { + e?.removeEventListener?.(...a); +} +var ft = (e, a) => Object.hasOwn(e, a), + nt = () => !0, + it = () => !1; +function ct(e = !1) { + let a = A(e), + t = be(() => a.current, []); + return ( + P( + () => ( + (a.current = !0), + () => { + a.current = !1; + } + ), + [], + ), + t + ); +} +function pt(e, ...a) { + let t = ct(), + o = Te(a[1]), + r = D( + () => + function (...u) { + t() && + (typeof o.current == "function" + ? o.current.apply(this, u) + : typeof o.current.handleEvent == "function" && + o.current.handleEvent.apply(this, u)); + }, + [], + ); + P(() => { + let u = No(e) ? e.current : e; + if (!u) return; + let l = a.slice(2); + return ( + st(u, a[0], r, ...l), + () => { + dt(u, a[0], r, ...l); + } + ); + }, [e, a[0]]); +} +function No(e) { + return e !== null && typeof e == "object" && ft(e, "current"); +} +var Wo = (e) => + typeof e == "function" + ? e + : typeof e == "string" + ? (a) => a.key === e + : e + ? nt + : it, + Go = lt ? globalThis : null; +function Ae(e, a, t = [], o = {}) { + let { event: r = "keydown", target: u = Go, eventOptions: l } = o, + s = Te(a), + n = D(() => { + let d = Wo(e); + return function (i) { + d(i) && s.current.call(this, i); + }; + }, t); + pt(u, r, n, l); +} +function mt(e) { + var a, + t, + o = ""; + if (typeof e == "string" || typeof e == "number") o += e; + else if (typeof e == "object") + if (Array.isArray(e)) { + var r = e.length; + for (a = 0; a < r; a++) + e[a] && (t = mt(e[a])) && (o && (o += " "), (o += t)); + } else for (t in e) e[t] && (o && (o += " "), (o += t)); + return o; +} +function zo() { + for (var e, a, t = 0, o = "", r = arguments.length; t < r; t++) + (e = arguments[t]) && (a = mt(e)) && (o && (o += " "), (o += a)); + return o; +} +var M = zo; +var Xo = Symbol.for("preact-signals"); +function Be() { + if (Y > 1) Y--; + else { + for (var e, a = !1; Ie !== void 0;) { + var t = Ie; + for (Ie = void 0, je++; t !== void 0;) { + var o = t.o; + if (((t.o = void 0), (t.f &= -3), !(8 & t.f) && Lt(t))) + try { + t.c(); + } catch (r) { + a || ((e = r), (a = !0)); + } + t = o; + } + } + if (((je = 0), Y--, a)) throw e; + } +} +function Ye(e) { + if (Y > 0) return e(); + Y++; + try { + return e(); + } finally { + Be(); + } +} +var C = void 0; +function ea(e) { + var a = C; + C = void 0; + try { + return e(); + } finally { + C = a; + } +} +var Ie = void 0, + Y = 0, + je = 0, + Re = 0; +function xt(e) { + if (C !== void 0) { + var a = e.n; + if (a === void 0 || a.t !== C) + return ( + (a = { + i: 0, + S: e, + p: C.s, + n: void 0, + t: C, + e: void 0, + x: void 0, + r: a, + }), + C.s !== void 0 && (C.s.n = a), + (C.s = a), + (e.n = a), + 32 & C.f && e.S(a), + a + ); + if (a.i === -1) + return ( + (a.i = 0), + a.n !== void 0 && + ((a.n.p = a.p), + a.p !== void 0 && (a.p.n = a.n), + (a.p = C.s), + (a.n = void 0), + (C.s.n = a), + (C.s = a)), + a + ); + } +} +function b(e, a) { + ((this.v = e), + (this.i = 0), + (this.n = void 0), + (this.t = void 0), + (this.W = a?.watched), + (this.Z = a?.unwatched), + (this.name = a?.name)); +} +b.prototype.brand = Xo; +b.prototype.h = function () { + return !0; +}; +b.prototype.S = function (e) { + var a = this, + t = this.t; + t !== e && + e.e === void 0 && + ((e.x = t), + (this.t = e), + t !== void 0 + ? (t.e = e) + : ea(function () { + var o; + (o = a.W) == null || o.call(a); + })); +}; +b.prototype.U = function (e) { + var a = this; + if (this.t !== void 0) { + var t = e.e, + o = e.x; + (t !== void 0 && ((t.x = o), (e.e = void 0)), + o !== void 0 && ((o.e = t), (e.x = void 0)), + e === this.t && + ((this.t = o), + o === void 0 && + ea(function () { + var r; + (r = a.Z) == null || r.call(a); + }))); + } +}; +b.prototype.subscribe = function (e) { + var a = this; + return K( + function () { + var t = a.value, + o = C; + C = void 0; + try { + e(t); + } finally { + C = o; + } + }, + { name: "sub" }, + ); +}; +b.prototype.valueOf = function () { + return this.value; +}; +b.prototype.toString = function () { + return this.value + ""; +}; +b.prototype.toJSON = function () { + return this.value; +}; +b.prototype.peek = function () { + var e = C; + C = void 0; + try { + return this.value; + } finally { + C = e; + } +}; +Object.defineProperty(b.prototype, "value", { + get: function () { + var e = xt(this); + return (e !== void 0 && (e.i = this.i), this.v); + }, + set: function (e) { + if (e !== this.v) { + if (je > 100) throw new Error("Cycle detected"); + ((this.v = e), this.i++, Re++, Y++); + try { + for (var a = this.t; a !== void 0; a = a.x) a.t.N(); + } finally { + Be(); + } + } + }, +}); +function q(e, a) { + return new b(e, a); +} +function Lt(e) { + for (var a = e.s; a !== void 0; a = a.n) + if (a.S.i !== a.i || !a.S.h() || a.S.i !== a.i) return !0; + return !1; +} +function It(e) { + for (var a = e.s; a !== void 0; a = a.n) { + var t = a.S.n; + if ((t !== void 0 && (a.r = t), (a.S.n = a), (a.i = -1), a.n === void 0)) { + e.s = a; + break; + } + } +} +function ht(e) { + for (var a = e.s, t = void 0; a !== void 0;) { + var o = a.p; + (a.i === -1 + ? (a.S.U(a), o !== void 0 && (o.n = a.n), a.n !== void 0 && (a.n.p = o)) + : (t = a), + (a.S.n = a.r), + a.r !== void 0 && (a.r = void 0), + (a = o)); + } + e.s = t; +} +function oe(e, a) { + (b.call(this, void 0), + (this.x = e), + (this.s = void 0), + (this.g = Re - 1), + (this.f = 4), + (this.W = a?.watched), + (this.Z = a?.unwatched), + (this.name = a?.name)); +} +oe.prototype = new b(); +oe.prototype.h = function () { + if (((this.f &= -3), 1 & this.f)) return !1; + if ((36 & this.f) == 32 || ((this.f &= -5), this.g === Re)) return !0; + if (((this.g = Re), (this.f |= 1), this.i > 0 && !Lt(this))) + return ((this.f &= -2), !0); + var e = C; + try { + (It(this), (C = this)); + var a = this.x(); + (16 & this.f || this.v !== a || this.i === 0) && + ((this.v = a), (this.f &= -17), this.i++); + } catch (t) { + ((this.v = t), (this.f |= 16), this.i++); + } + return ((C = e), ht(this), (this.f &= -2), !0); +}; +oe.prototype.S = function (e) { + if (this.t === void 0) { + this.f |= 36; + for (var a = this.s; a !== void 0; a = a.n) a.S.S(a); + } + b.prototype.S.call(this, e); +}; +oe.prototype.U = function (e) { + if (this.t !== void 0 && (b.prototype.U.call(this, e), this.t === void 0)) { + this.f &= -33; + for (var a = this.s; a !== void 0; a = a.n) a.S.U(a); + } +}; +oe.prototype.N = function () { + if (!(2 & this.f)) { + this.f |= 6; + for (var e = this.t; e !== void 0; e = e.x) e.t.N(); + } +}; +Object.defineProperty(oe.prototype, "value", { + get: function () { + if (1 & this.f) throw new Error("Cycle detected"); + var e = xt(this); + if ((this.h(), e !== void 0 && (e.i = this.i), 16 & this.f)) throw this.v; + return this.v; + }, +}); +function Fe(e, a) { + return new oe(e, a); +} +function gt(e) { + var a = e.u; + if (((e.u = void 0), typeof a == "function")) { + Y++; + var t = C; + C = void 0; + try { + a(); + } catch (o) { + throw ((e.f &= -2), (e.f |= 8), aa(e), o); + } finally { + ((C = t), Be()); + } + } +} +function aa(e) { + for (var a = e.s; a !== void 0; a = a.n) a.S.U(a); + ((e.x = void 0), (e.s = void 0), gt(e)); +} +function Ko(e) { + if (C !== this) throw new Error("Out-of-order effect"); + (ht(this), (C = e), (this.f &= -2), 8 & this.f && aa(this), Be()); +} +function de(e, a) { + ((this.x = e), + (this.u = void 0), + (this.s = void 0), + (this.o = void 0), + (this.f = 32), + (this.name = a?.name)); +} +de.prototype.c = function () { + var e = this.S(); + try { + if (8 & this.f || this.x === void 0) return; + var a = this.x(); + typeof a == "function" && (this.u = a); + } finally { + e(); + } +}; +de.prototype.S = function () { + if (1 & this.f) throw new Error("Cycle detected"); + ((this.f |= 1), (this.f &= -9), gt(this), It(this), Y++); + var e = C; + return ((C = this), Ko.bind(this, e)); +}; +de.prototype.N = function () { + 2 & this.f || ((this.f |= 2), (this.o = Ie), (Ie = this)); +}; +de.prototype.d = function () { + ((this.f |= 8), 1 & this.f || aa(this)); +}; +de.prototype.dispose = function () { + this.d(); +}; +function K(e, a) { + var t = new de(e, a); + try { + t.c(); + } catch (r) { + throw (t.d(), r); + } + var o = t.d.bind(t); + return ((o[Symbol.dispose] = o), o); +} +var St, oa, ta; +var Ct = []; +K(function () { + St = this.N; +})(); +function fe(e, a) { + x[e] = a.bind(null, x[e] || function () {}); +} +function Me(e) { + (ta && ta(), (ta = e && e.S())); +} +function _t(e) { + var a = this, + t = e.data, + o = $o(t); + o.value = t; + var r = D(function () { + for (var s = a, n = a.__v; (n = n.__);) + if (n.__c) { + n.__c.__$f |= 4; + break; + } + var d = Fe(function () { + var p = o.value.value; + return p === 0 ? 0 : p === !0 ? "" : p || ""; + }), + i = Fe(function () { + return !Array.isArray(d.value) && !Ne(d.value); + }), + f = K(function () { + if (((this.N = vt), i.value)) { + var p = d.value; + s.__v && + s.__v.__e && + s.__v.__e.nodeType === 3 && + (s.__v.__e.data = p); + } + }), + c = a.__$u.d; + return ( + (a.__$u.d = function () { + (f(), c.call(this)); + }), + [i, d] + ); + }, []), + u = r[0], + l = r[1]; + return u.value ? l.peek() : l.value; +} +_t.displayName = "ReactiveTextNode"; +Object.defineProperties(b.prototype, { + constructor: { configurable: !0, value: void 0 }, + type: { configurable: !0, value: _t }, + props: { + configurable: !0, + get: function () { + return { data: this }; + }, + }, + __b: { configurable: !0, value: 1 }, +}); +fe("__b", function (e, a) { + if ( + (typeof a.type == "function" && + typeof window < "u" && + window.__PREACT_SIGNALS_DEVTOOLS__ && + window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(), + typeof a.type == "string") + ) { + var t, + o = a.props; + for (var r in o) + if (r !== "children") { + var u = o[r]; + u instanceof b && + (t || (a.__np = t = {}), (t[r] = u), (o[r] = u.peek())); + } + } + e(a); +}); +fe("__r", function (e, a) { + if ( + (typeof a.type == "function" && + typeof window < "u" && + window.__PREACT_SIGNALS_DEVTOOLS__ && + window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(a), + a.type !== y) + ) { + Me(); + var t, + o = a.__c; + (o && + ((o.__$f &= -2), + (t = o.__$u) === void 0 && + (o.__$u = t = + (function (r) { + var u; + return ( + K(function () { + u = this; + }), + (u.c = function () { + ((o.__$f |= 1), o.setState({})); + }), + u + ); + })())), + (oa = o), + Me(t)); + } + e(a); +}); +fe("__e", function (e, a, t, o) { + (typeof window < "u" && + window.__PREACT_SIGNALS_DEVTOOLS__ && + window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(), + Me(), + (oa = void 0), + e(a, t, o)); +}); +fe("diffed", function (e, a) { + (typeof a.type == "function" && + typeof window < "u" && + window.__PREACT_SIGNALS_DEVTOOLS__ && + window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(), + Me(), + (oa = void 0)); + var t; + if (typeof a.type == "string" && (t = a.__e)) { + var o = a.__np, + r = a.props; + if (o) { + var u = t.U; + if (u) + for (var l in u) { + var s = u[l]; + s !== void 0 && !(l in o) && (s.d(), (u[l] = void 0)); + } + else ((u = {}), (t.U = u)); + for (var n in o) { + var d = u[n], + i = o[n]; + d === void 0 ? ((d = Qo(t, n, i, r)), (u[n] = d)) : d.o(i, r); + } + } + } + e(a); +}); +function Qo(e, a, t, o) { + var r = a in e && e.ownerSVGElement === void 0, + u = q(t); + return { + o: function (l, s) { + ((u.value = l), (o = s)); + }, + d: K(function () { + this.N = vt; + var l = u.value.value; + o[a] !== l && + ((o[a] = l), + r ? (e[a] = l) : l ? e.setAttribute(a, l) : e.removeAttribute(a)); + }), + }; +} +fe("unmount", function (e, a) { + if (typeof a.type == "string") { + var t = a.__e; + if (t) { + var o = t.U; + if (o) { + t.U = void 0; + for (var r in o) { + var u = o[r]; + u && u.d(); + } + } + } + } else { + var l = a.__c; + if (l) { + var s = l.__$u; + s && ((l.__$u = void 0), s.d()); + } + } + e(a); +}); +fe("__h", function (e, a, t, o) { + ((o < 3 || o === 9) && (a.__$f |= 2), e(a, t, o)); +}); +B.prototype.shouldComponentUpdate = function (e, a) { + var t = this.__$u, + o = t && t.s !== void 0; + for (var r in a) return !0; + if (this.__f || (typeof this.u == "boolean" && this.u === !0)) { + var u = 2 & this.__$f; + if (!(o || u || 4 & this.__$f) || 1 & this.__$f) return !0; + } else if (!(o || 4 & this.__$f) || 3 & this.__$f) return !0; + for (var l in e) if (l !== "__source" && e[l] !== this.props[l]) return !0; + for (var s in this.props) if (!(s in e)) return !0; + return !1; +}; +function $o(e, a) { + return j(function () { + return q(e, a); + })[0]; +} +var Jo = function (e) { + queueMicrotask(function () { + queueMicrotask(e); + }); +}; +function Zo() { + Ye(function () { + for (var e; (e = Ct.shift());) St.call(e); + }); +} +function vt() { + Ct.push(this) === 1 && (x.requestAnimationFrame || Jo)(Zo); +} +var V = [0]; +for (let e = 0; e < 32; e++) V.push(V[e] | (1 << e)); +function wt(e) { + return new Uint32Array(e); +} +var H = class { + constructor(a, t = wt(Math.ceil(a / 32))) { + this.size = a; + this.data = t; + } + get(a) { + return (this.data[a >>> 5] >>> a) & 1; + } + set(a) { + this.data[a >>> 5] |= 1 << (a & 31); + } + forEach(a) { + let t = this.size & 31; + for (let o = 0; o < this.data.length; o++) { + if (this.data[o] === 0) continue; + let r = this.data[o]; + t && o === this.data.length - 1 && (r = r & V[t]); + for (let u = 0, l = 32 - Math.clz32(r); u < l; u++) + r & (1 << u) && a((o << 5) + u); + } + } +}; +function bt(e) { + ((ee.value = e), + e.items.find((a) => a.tags?.length) && + (matchMedia("(max-width: 768px)").matches || ra())); +} +function O() { + N.value = { ...N.value, hideSearch: !N.value.hideSearch }; +} +function ra() { + N.value = { ...N.value, hideFilters: !N.value.hideFilters }; +} +function ne() { + return N.value.selectedItem; +} +function he(e) { + N.value = { ...N.value, selectedItem: e }; +} +function Pt() { + return ee.value?.items ?? []; +} +function ue() { + return typeof w.value.input == "string" ? w.value.input : ""; +} +function ua(e) { + let a = la(); + e.length && !a.length + ? (w.value = { ...w.value, page: void 0, input: e }) + : !e.length && a.length + ? (w.value = { + ...w.value, + page: void 0, + input: { type: "operator", data: { operator: "not", operands: [] } }, + }) + : (w.value = { ...w.value, page: void 0, input: e }); +} +function Tt() { + typeof E.value.pagination.next < "u" && + (w.value = { ...w.value, page: E.value.pagination.next }); +} +function At(e) { + let a = w.value.filter.input; + if ("type" in a && a.type === "operator") { + for (let t of a.data.operands) + if ( + "type" in t && + t.type === "value" && + typeof t.data.value == "string" && + t.data.value === e + ) + return !0; + } + return !1; +} +function la() { + let e = w.value.filter.input, + a = []; + if ("type" in e && e.type === "operator") + for (let t of e.data.operands) + "type" in t && + t.type === "value" && + typeof t.data.value == "string" && + a.push(t.data.value); + return a; +} +function Rt(e) { + let a = w.value.filter.input, + t = []; + if ("type" in a && a.type === "operator") + for (let o of a.data.operands) + "type" in o && + o.type === "value" && + typeof o.data.value == "string" && + t.push(o.data.value); + if (t.includes(e)) { + let o = t.indexOf(e); + o > -1 && t.splice(o, 1); + } else t.push(e); + ((w.value = { + ...w.value, + page: void 0, + filter: { + ...w.value.filter, + input: { + type: "operator", + data: { + operator: "and", + operands: t.map((o) => ({ + type: "value", + data: { field: "tags", value: o }, + })), + }, + }, + }, + }), + ua(ue())); +} +function Bt() { + return E.value.items; +} +function Ft() { + return E.value.total; +} +function Mt() { + for (let e of E.value.aggregations ?? []) + if (e.type === "term") return e.data.value; + return []; +} +function ie() { + return N.value.hideSearch; +} +function Dt() { + return N.value.hideFilters; +} +function Ee() { + return sa.value.highlight ?? !1; +} +var N = q({ hideSearch: !0, hideFilters: !0, selectedItem: 0 }), + sa = q({}), + ee = q(), + da = q(), + w = q({ + input: "", + filter: { + input: { type: "operator", data: { operator: "and", operands: [] } }, + aggregation: { input: [{ type: "term", data: { field: "tags" } }] }, + }, + }), + E = q({ + items: [], + query: { select: { documents: new H(0), terms: new H(0) }, values: [] }, + pagination: { total: 0 }, + }); +function Yo(e, a, t) { + for (let o = 0; a < t;) { + switch (((o = ((o << 8) ^ 32) | e.charCodeAt(++a)), o)) { + case 97: + case 98: + case 99: + case 101: + case 104: + case 105: + case 108: + case 109: + case 112: + case 115: + case 116: + case 119: + case 24946: + case 25185: + case 25455: + case 25965: + case 26989: + case 26990: + case 27753: + case 28005: + case 28769: + case 29551: + case 29810: + case 30562: + case 6386277: + case 6447475: + case 6647138: + case 6909552: + case 7104878: + case 7169396: + case 7364978: + case 7565173: + case 7631457: + case 1701667429: + case 1768845429: + case 1869967971: + case 1885434465: + case 1936684402: + case 1953653091: + continue; + case 25202: + case 26738: + case 6516588: + case 6909287: + case 7823986: + case 1634885997: + case 1634887009: + case 1650553701: + case 1818848875: + case 1835165028: + case 1835365473: + case 1852863860: + case 1918985067: + case 1970430821: + switch (e.charCodeAt(++a)) { + case 9: + case 10: + case 32: + case 47: + case 62: + return !0; + } + } + break; + } + return !1; +} +function Ot(e, a, t = 0, o = e.length) { + let r = 0, + u = t; + for (let l = 0; u < o; u++) + switch (((l = e.charCodeAt(u)), l)) { + case 60: + u > t && a(0, r, t, (t = u)); + continue; + case 62: + e.charCodeAt(t + 1) === 47 + ? a(2, --r, t, (t = u + 1)) + : Yo(e, t, o) + ? a(3, r, t, (t = u + 1)) + : a(1, r++, t, (t = u + 1)); + } + u > t && a(0, r, t, u); +} +function Ut(e, a = 0, t = e.length) { + let o = ++a; + e: for (let d = 0; o < t; o++) + switch (((d = e.charCodeAt(o)), d)) { + case 9: + case 10: + case 32: + case 62: + break e; + } + let r = e.slice(a, (a = o)), + u = [], + l = 0, + s = 0, + n = 0; + for (let d = 0; o < t; o++) { + let i = e.charCodeAt(o); + switch (l) { + case 0: + switch (i) { + case 9: + case 10: + case 32: + a === o ? a++ : ((s = 1), (l = 1)); + break; + case 61: + ((s = 1), (l = 2)); + break; + case 47: + a++; + case 62: + a < o && (s = 1); + break; + } + break; + case 1: + switch (i) { + case 9: + case 10: + case 32: + continue; + case 61: + ((l = 2), (a = o + 1)); + continue; + default: + ((l = 0), (a = o), d++); + } + continue; + case 2: + switch (i) { + case 9: + case 10: + case 32: + a === o ? a++ : n === 0 && ((s = 2), (l = 0)); + break; + case 34: + case 39: + switch (n) { + case 0: + ((n = i), (a = o + 1)); + continue; + case i: + ((s = 2), (l = 0), (n = 0)); + } + break; + case 62: + a < o && (s = 2); + break; + } + } + switch (s) { + case 1: + ((u[d] = [e.slice(a, o), ""]), (s = 0), (a = o + 1)); + break; + case 2: + ((u[d++][1] = e.slice(a, o)), (s = 0), (a = o + 1)); + break; + } + } + return { tag: r, attrs: u.length ? Object.fromEntries(u) : null }; +} +function er(e, a, t) { + return e.slice(a, t); +} +function qt(e) { + return (a, t, o, r) => { + let u = [], + l = [], + { onElement: s, onText: n = er } = + typeof t == "function" ? { onElement: t } : t, + d = 0, + i = 0; + return ( + e( + a, + (f, c, p, L) => { + if (f === 0) + ((u[d++] = n(a, p, L)), (l[i++] = { value: null, depth: c })); + else if ( + (f & 1 && (l[i++] = { value: Ut(a, p, L), depth: c }), f & 2) + ) + for (let I = 0; i >= 0; I++) { + let { value: S, depth: h } = l[--i]; + if (h > c) continue; + let g = u.slice((d -= I), d + I); + ((u[d++] = s(S, g)), i++); + break; + } + }, + o, + r, + ), + u.slice(0, d) + ); + }; +} +function Vt(e) { + return e.replace(/[&<>]/g, (a) => { + switch (a.charCodeAt(0)) { + case 38: + return "&"; + case 60: + return "<"; + case 62: + return ">"; + } + }); +} +function ce(e) { + return e.replace(/&(amp|[lg]t);/g, (a) => { + switch (a.charCodeAt(1)) { + case 97: + return "&"; + case 108: + return "<"; + case 103: + return ">"; + } + }); +} +function Ht(e, a) { + return { start: e.start + a, end: e.end + a, value: e.value }; +} +function dr(e, a, t) { + return e.slice(a, t); +} +function Wt(e) { + let { onHighlight: a, onText: t = dr } = + typeof e == "function" ? { onHighlight: e } : e; + return (o, r, u = 0, l = o.length) => { + let s = [], + n = r?.ranges ?? []; + for (let d = 0, i = u; d < n.length; d++) { + let f = n[d].start; + if (f > l) break; + let c = n[d].end; + if (c < i) continue; + ((f = Math.max(f, u)), (c = Math.min(c, l)), f > u && s.push(t(o, u, f))); + let { value: p } = n[d]; + s.push(a(o, { start: f, end: (u = c), value: p })); + } + return (u < l && s.push(t(o, u, l)), s); + }; +} +var Gt = { fuzzy: "m" }; +var nr = 0, + Cp = Array.isArray; +function m(e, a, t, o, r, u) { + a || (a = {}); + var l, + s, + n = a; + if ("ref" in n) + for (s in ((n = {}), a)) s == "ref" ? (l = a[s]) : (n[s] = a[s]); + var d = { + type: e, + props: n, + key: t, + ref: l, + __k: null, + __: null, + __b: 0, + __e: null, + __c: null, + constructor: void 0, + __v: --nr, + __i: -1, + __u: 0, + __source: r, + __self: u, + }; + if (typeof e == "function" && (l = e.defaultProps)) + for (s in l) n[s] === void 0 && (n[s] = l[s]); + return (x.vnode && x.vnode(d), d); +} +var zt = qt(Ot), + Xt = Wt({ + onText(e, a, t) { + return ce(e.slice(a, t)); + }, + onHighlight(e, { start: a, end: t, value: o }) { + let r = Math.min(t, a + o); + return a === t + ? null + : (o === -1 && (r = t), + m("mark", { + className: M({ [Gt.fuzzy]: o === -1 }), + children: [ + m("u", { children: ce(e.slice(a, r)) }), + ce(e.slice(r, t)), + ], + })); + }, + }), + ir = new Set(["p", "pre", "li", "ul", "ol", "div"]), + cr = new Set([ + "code", + "span", + "sup", + "sub", + "em", + "strong", + "b", + "i", + "kbd", + "samp", + "mark", + "u", + "a", + ]); +function pr(e) { + return e.filter( + (a) => + a !== null && + typeof a < "u" && + a !== !1 && + !(typeof a == "string" && a.trim().length === 0), + ); +} +function fa(e, a) { + let t = zt(e, { + onElement(o, r) { + return F(o.tag, o.attrs, ...r); + }, + onText(o, r, u) { + return Xt(o, a?.value.highlight, r, u); + }, + }); + return m(y, { children: t }); +} +function Kt(e, a) { + let t = []; + for (let o = 0, r = 0; o < e.length; o++) { + let u = []; + if (a?.value.highlight?.ranges) + for (let l of a.value.highlight.ranges) u.push(Ht(l, -r)); + (t.push( + fa(e[o], { ...a, value: { ...a?.value, highlight: { ranges: u } } }), + ), + (r += e[o].length)); + } + return t; +} +function Qt(e, a, t = 320) { + let o = a?.value.highlight?.ranges.find((i) => i.start < i.end), + r = Math.floor(t * 0.25), + u = Math.floor(t * 1.75), + l = o ? Math.max(0, o.start - r) : 0, + s = o ? Math.min(e.length, o.end + u) : Math.min(e.length, 2 * t), + n = []; + for (let i of a?.value.highlight?.ranges ?? []) + i.end <= l || + i.start >= s || + n.push({ ...i, start: Math.max(i.start, l), end: Math.min(i.end, s) }); + let d = zt(e, { + onElement(i, f) { + let c = pr(f); + if (c.length !== 0) + return cr.has(i.tag) + ? F(i.tag, i.attrs ?? {}, ...c) + : i.tag === "li" + ? m(y, { children: ["\u2013 ", c, " "] }) + : ir.has(i.tag) + ? m(y, { children: [" ", c, " "] }) + : m(y, { children: c }); + }, + onText(i, f, c) { + let p = Math.max(f, l), + L = Math.min(c, s); + if (!(p >= L)) return Xt(i, { ranges: n }, p, L); + }, + }); + return m(y, { children: [l > 0 && "...", d] }); +} +function mr(e, a = { highlight: !0 }) { + sa.value = a; + let t = new Worker(e); + ((t.onmessage = (o) => { + let r = o.data; + switch (r.type) { + case 1: + da.value = !0; + break; + case 3: + typeof r.data.pagination.prev < "u" + ? (E.value = { + ...E.value, + pagination: r.data.pagination, + items: [...E.value.items, ...r.data.items], + }) + : ((E.value = r.data), he(0)); + break; + } + }), + K(() => { + ee.value && t.postMessage({ type: 0, data: ee.value }); + }), + K(() => { + da.value && t.postMessage({ type: 2, data: w.value }); + })); +} +var na = { container: "p", hidden: "v" }; +function $t(e) { + return m("div", { + class: M(na.container, { [na.hidden]: e.hidden }), + onClick: () => O(), + }); +} +var ia = { container: "r", disabled: "c" }; +function ca(e) { + return m("button", { + class: M(ia.container, { [ia.disabled]: !e.onClick }), + onClick: e.onClick, + children: e.children, + }); +} +var pa = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), + Ir = (e) => + e.replace(/^([A-Z])|[\s-_]+(\w)/g, (a, t, o) => + o ? o.toUpperCase() : t.toLowerCase(), + ), + ma = (e) => { + let a = Ir(e); + return a.charAt(0).toUpperCase() + a.slice(1); + }, + Jt = (...e) => + e + .filter((a, t, o) => !!a && a.trim() !== "" && o.indexOf(a) === t) + .join(" ") + .trim(); +var Zt = { + xmlns: "http://www.w3.org/2000/svg", + width: 24, + height: 24, + viewBox: "0 0 24 24", + fill: "none", + stroke: "currentColor", + "stroke-width": "2", + "stroke-linecap": "round", + "stroke-linejoin": "round", +}; +var jt = ({ + color: e = "currentColor", + size: a = 24, + strokeWidth: t = 2, + absoluteStrokeWidth: o, + children: r, + iconNode: u, + class: l = "", + ...s +}) => + F( + "svg", + { + ...Zt, + width: String(a), + height: a, + stroke: e, + "stroke-width": o ? (Number(t) * 24) / Number(a) : t, + class: ["lucide", l].join(" "), + ...s, + }, + [...u.map(([n, d]) => F(n, d)), ...te(r)], + ); +var Oe = (e, a) => { + let t = ({ class: o = "", children: r, ...u }) => + F( + jt, + { + ...u, + iconNode: a, + class: Jt(`lucide-${pa(ma(e))}`, `lucide-${pa(e)}`, o), + }, + r, + ); + return ((t.displayName = ma(e)), t); +}; +var Se = Oe("list-filter", [ + ["path", { d: "M2 5h20", key: "1fs1ex" }], + ["path", { d: "M6 12h12", key: "8npq4p" }], + ["path", { d: "M9 19h6", key: "456am0" }], +]); +var Ce = Oe("search", [ + ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }], + ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }], +]); +var Dr = ho(to(), 1); +function oo({ + threshold: e = 0, + root: a = null, + rootMargin: t = "0%", + freezeOnceVisible: o = !1, + initialIsIntersecting: r = !1, + onChange: u, +} = {}) { + var l; + let [s, n] = j(null), + [d, i] = j(() => ({ isIntersecting: r, entry: void 0 })), + f = A(); + f.current = u; + let c = ((l = d.entry) == null ? void 0 : l.isIntersecting) && o; + P(() => { + if (!s || !("IntersectionObserver" in window) || c) return; + let I, + S = new IntersectionObserver( + (h) => { + let g = Array.isArray(S.thresholds) ? S.thresholds : [S.thresholds]; + h.forEach((T) => { + let R = T.isIntersecting && g.some((G) => T.intersectionRatio >= G); + (i({ isIntersecting: R, entry: T }), + f.current && f.current(R, T), + R && o && I && (I(), (I = void 0))); + }); + }, + { threshold: e, root: a, rootMargin: t }, + ); + return ( + S.observe(s), + () => { + S.disconnect(); + } + ); + }, [s, JSON.stringify(e), a, t, c, o]); + let p = A(null); + P(() => { + var I; + !s && + (I = d.entry) != null && + I.target && + !o && + !c && + p.current !== d.entry.target && + ((p.current = d.entry.target), i({ isIntersecting: r, entry: void 0 })); + }, [s, d.entry, o, c, r]); + let L = [n, !!d.isIntersecting, d.entry]; + return ((L.ref = L[0]), (L.isIntersecting = L[1]), (L.entry = L[2]), L); +} +var Q = { + container: "n", + hidden: "l", + content: "y", + pop: "d", + badge: "w", + sidebar: "e", + controls: "k", + results: "z", + loadmore: "j", +}; +function ro(e) { + let { isIntersecting: a, ref: t } = oo({ threshold: 0 }); + P(() => { + a && Tt(); + }, [a]); + let o = A(null); + P(() => { + o.current && + typeof w.value.page > "u" && + o.current.scrollTo({ top: 0, behavior: "smooth" }); + }, [w.value]); + let r = la(); + return m("div", { + class: M(Q.container, { [Q.hidden]: e.hidden }), + children: [ + m("div", { + class: Q.content, + children: [ + m("div", { + class: Q.controls, + children: [ + m(ca, { onClick: O, children: m(Ce, {}) }), + m(lo, { focus: !e.hidden }), + m(ca, { + onClick: ra, + children: [ + m(Se, {}), + r.length > 0 && + m("span", { class: Q.badge, children: r.length }), + ], + }), + ], + }), + m("div", { + class: Q.results, + ref: o, + children: [ + m(so, { keyboard: !e.hidden }), + m("div", { class: Q.loadmore, ref: t }), + ], + }), + ], + }), + m("div", { + class: M(Q.sidebar, { [Q.hidden]: Dt() }), + children: m(uo, {}), + }), + ], + }); +} +var J = { + container: "X", + list: "F", + heading: "I", + title: "R", + item: "o", + active: "g", + value: "q", + count: "A", +}; +function uo(e) { + let a = Mt(); + return ( + a.sort((t, o) => o.node.count - t.node.count), + m("div", { + class: J.container, + children: [ + m("h3", { class: J.heading, children: "Filters" }), + m("h4", { class: J.title, children: "Tags" }), + m("ol", { + class: J.list, + children: a.map((t) => + m("li", { + class: M(J.item, { [J.active]: At(t.node.value) }), + onClick: () => Rt(t.node.value), + children: [ + m("span", { class: J.value, children: t.node.value }), + m("span", { class: J.count, children: t.node.count }), + ], + }), + ), + }), + ], + }) + ); +} +var Ia = { container: "f" }; +function lo(e) { + let a = A(null); + return ( + P(() => { + e.focus ? a.current?.focus() : a.current?.blur(); + }, [e.focus]), + m("div", { + class: Ia.container, + children: m("input", { + ref: a, + type: "text", + class: Ia.content, + value: ce(ue()), + onInput: (t) => ua(Vt(t.currentTarget.value)), + autocapitalize: "off", + autocomplete: "off", + autocorrect: "off", + placeholder: "Search", + spellcheck: !1, + role: "combobox", + }), + }) + ); +} +var W = { + container: "b", + heading: "B", + item: "i", + active: "h", + wrapper: "C", + meta: "D", + actions: "s", + title: "x", + path: "t", + excerpt: "u", + more: "E", +}; +function ha() { + let [e, a] = j(!1); + return ( + P(() => { + let t = () => a(!0), + o = () => a(!1); + return ( + document.addEventListener("compositionstart", t), + document.addEventListener("compositionend", o), + () => { + (document.removeEventListener("compositionstart", t), + document.removeEventListener("compositionend", o)); + } + ); + }, []), + e + ); +} +function so(e) { + let a = Pt(), + t = Bt(), + o = ne(), + r = A([]), + u = ha(); + (P(() => { + let s = r.current[o]; + s && s.scrollIntoView({ block: "center", behavior: "smooth" }); + }, [o]), + Ae( + e.keyboard, + (s) => { + if (u) return; + let n = ne(); + s.key === "ArrowDown" + ? (s.preventDefault(), he(Math.min(n + 1, t.length - 1))) + : s.key === "ArrowUp" && (s.preventDefault(), he(Math.max(n - 1, 0))); + }, + [e.keyboard, u], + )); + let l = Ft() ?? 0; + return m(y, { + children: [ + t.length > 0 && + m("h3", { + class: W.heading, + children: [ + m("span", { + class: W.bubble, + children: new Intl.NumberFormat("en-US").format(l), + }), + " ", + "results", + ], + }), + m("ol", { + class: W.container, + children: t.map((s, n) => { + let d = s.matches.find(({ field: I }) => I === "text"), + i = fa( + a[s.id].title, + s.matches.find(({ field: I }) => I === "title"), + ), + f = Kt( + a[s.id].path ?? [], + s.matches.find(({ field: I }) => I === "path"), + ), + c = Qt(a[s.id].text, d), + p = Math.max( + 0, + (d?.value.highlight?.ranges?.filter((I) => I.start < I.end) + .length ?? 0) - 1, + ), + L = a[s.id].location; + if (Ee()) { + let I = encodeURIComponent(ue()), + [S, h] = L.split("#", 2); + ((L = `${S}?h=${I.replace(/%20/g, "+")}`), + typeof h < "u" && (L += `#${h}`)); + } + return m("li", { + children: m("a", { + ref: (I) => { + r.current[n] = I; + }, + href: L, + onClick: () => O(), + class: M(W.item, { [W.active]: n === ne() }), + children: m("div", { + class: W.wrapper, + children: [ + m("div", { + class: W.meta, + children: m("menu", { + class: W.path, + children: f.map((I) => m("li", { children: I })), + }), + }), + m("h2", { class: W.title, children: i }), + c && m("div", { class: W.excerpt, children: c }), + ], + }), + }), + }); + }), + }), + ], + }); +} +var fo = { container: "a" }; +function no(e) { + let a = ha(); + return ( + Ae( + !0, + (t) => { + if (!a) + if ((t.metaKey || t.ctrlKey) && t.key === "k") + (t.preventDefault(), O()); + else if ((t.metaKey || t.ctrlKey) && t.key === "j") + document.body.classList.toggle("dark"); + else if (t.key === "Enter" && !ie()) { + t.preventDefault(); + let o = ne(), + r = E.value?.items[o]?.id; + if (ee.value?.items[r]?.location) { + O(); + let u = ee.value?.items[r].location; + if (Ee()) { + let l = encodeURIComponent(ue()), + [s, n] = u.split("#", 2); + ((u = `${s}?h=${l.replace(/%20/g, "+")}`), + typeof n < "u" && (u += `#${n}`)); + } + window.location.href = u; + } + } else t.key === "Escape" && !ie() && (t.preventDefault(), O()); + }, + [a], + ), + m("div", { + class: fo.container, + children: [m($t, { hidden: ie() }), m(ro, { hidden: ie() })], + }) + ); +} +function vx(e, a) { + (bt(e), Ke(m(no, {}), a)); +} +function wx() { + O(); +} +export { ie as isSearchHidden, vx as mount, wx as open, mr as setup }; +//# sourceMappingURL=bundle.MMPM4FYY.js.map