From 467ff3a5706c168c9704acedb81e62546f47aa40 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 6 Nov 2026 18:17:21 +0100 Subject: [PATCH] fix: preserve scroll position when loading search results (#307) Signed-off-by: squidfunk --- .../{bundle.cd505d6a.min.js => bundle.3cb411a8.min.js} | 2 +- dist/base.html | 2 +- src/assets/javascripts/components/search/client/index.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename dist/assets/javascripts/{bundle.cd505d6a.min.js => bundle.3cb411a8.min.js} (88%) diff --git a/dist/assets/javascripts/bundle.cd505d6a.min.js b/dist/assets/javascripts/bundle.3cb411a8.min.js similarity index 88% rename from dist/assets/javascripts/bundle.cd505d6a.min.js rename to dist/assets/javascripts/bundle.3cb411a8.min.js index 3fc521fa..351b1982 100644 --- a/dist/assets/javascripts/bundle.cd505d6a.min.js +++ b/dist/assets/javascripts/bundle.3cb411a8.min.js @@ -1,6 +1,6 @@ "use strict";(()=>{var rl=Object.create;var qn=Object.defineProperty,nl=Object.defineProperties,ol=Object.getOwnPropertyDescriptor,il=Object.getOwnPropertyDescriptors,al=Object.getOwnPropertyNames,Xr=Object.getOwnPropertySymbols,sl=Object.getPrototypeOf,Kn=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable;var ii=(e,t,r)=>t in e?qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t||(t={}))Kn.call(t,r)&&ii(e,r,t[r]);if(Xr)for(var r of Xr(t))ai.call(t,r)&&ii(e,r,t[r]);return e},Ce=(e,t)=>nl(e,il(t));var wr=(e,t)=>{var r={};for(var n in e)Kn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xr)for(var n of Xr(e))t.indexOf(n)<0&&ai.call(e,n)&&(r[n]=e[n]);return r};var Bn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var cl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of al(t))!Kn.call(e,o)&&o!==r&&qn(e,o,{get:()=>t[o],enumerable:!(n=ol(t,o))||n.enumerable});return e};var Er=(e,t,r)=>(r=e!=null?rl(sl(e)):{},cl(t||!e||!e.__esModule?qn(r,"default",{value:e,enumerable:!0}):r,e));var Xe=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);s((r=r.apply(e,t)).next())});var ci=Bn((Gn,si)=>{(function(e,t){typeof Gn=="object"&&typeof si!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Gn,(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(y){return!!(y&&y!==document&&y.nodeName!=="HTML"&&y.nodeName!=="BODY"&&"classList"in y&&"contains"in y.classList)}function l(y){var ye=y.type,de=y.tagName;return!!(de==="INPUT"&&a[ye]&&!y.readOnly||de==="TEXTAREA"&&!y.readOnly||y.isContentEditable)}function c(y){y.classList.contains("focus-visible")||(y.classList.add("focus-visible"),y.setAttribute("data-focus-visible-added",""))}function u(y){y.hasAttribute("data-focus-visible-added")&&(y.classList.remove("focus-visible"),y.removeAttribute("data-focus-visible-added"))}function f(y){y.metaKey||y.altKey||y.ctrlKey||(s(r.activeElement)&&c(r.activeElement),n=!0)}function p(y){n=!1}function d(y){s(y.target)&&(n||l(y.target))&&c(y.target)}function h(y){s(y.target)&&(y.target.classList.contains("focus-visible")||y.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(y.target))}function v(y){document.visibilityState==="hidden"&&(o&&(n=!0),_())}function _(){document.addEventListener("mousemove",w),document.addEventListener("mousedown",w),document.addEventListener("mouseup",w),document.addEventListener("pointermove",w),document.addEventListener("pointerdown",w),document.addEventListener("pointerup",w),document.addEventListener("touchmove",w),document.addEventListener("touchstart",w),document.addEventListener("touchend",w)}function S(){document.removeEventListener("mousemove",w),document.removeEventListener("mousedown",w),document.removeEventListener("mouseup",w),document.removeEventListener("pointermove",w),document.removeEventListener("pointerdown",w),document.removeEventListener("pointerup",w),document.removeEventListener("touchmove",w),document.removeEventListener("touchstart",w),document.removeEventListener("touchend",w)}function w(y){y.target.nodeName&&y.target.nodeName.toLowerCase()==="html"||(n=!1,S())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",p,!0),document.addEventListener("pointerdown",p,!0),document.addEventListener("touchstart",p,!0),document.addEventListener("visibilitychange",v,!0),_(),r.addEventListener("focus",d,!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 Wo=Bn((WE,Vs)=>{"use strict";var Hp=/["'&<>]/;Vs.exports=$p;function $p(e){var t=""+e,r=Hp.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i{(function(t,r){typeof Br=="object"&&typeof zo=="object"?zo.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Br=="object"?Br.ClipboardJS=r():t.ClipboardJS=r()})(Br,function(){return(function(){var e={686:(function(n,o,i){"use strict";i.d(o,{default:function(){return _r}});var a=i(279),s=i.n(a),l=i(370),c=i.n(l),u=i(817),f=i.n(u);function p(G){try{return document.execCommand(G)}catch($){return!1}}var d=function($){var H=f()($);return p("cut"),H},h=d;function v(G){var $=document.documentElement.getAttribute("dir")==="rtl",H=document.createElement("textarea");H.style.fontSize="12pt",H.style.border="0",H.style.padding="0",H.style.margin="0",H.style.position="absolute",H.style[$?"right":"left"]="-9999px";var W=window.pageYOffset||document.documentElement.scrollTop;return H.style.top="".concat(W,"px"),H.setAttribute("readonly",""),H.value=G,H}var _=function($,H){var W=v($);H.container.appendChild(W);var V=f()(W);return p("copy"),W.remove(),V},S=function($){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},W="";return typeof $=="string"?W=_($,H):$ instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes($==null?void 0:$.type)?W=_($.value,H):(W=f()($),p("copy")),W},w=S;function y(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(H){return typeof H}:y=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},y(G)}var ye=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=$.action,W=H===void 0?"copy":H,V=$.container,Q=$.target,ze=$.text;if(W!=="copy"&&W!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Q!==void 0)if(Q&&y(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(ze)return w(ze,{container:V});if(Q)return W==="cut"?h(Q):w(Q,{container:V})},de=ye;function we(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?we=function(H){return typeof H}:we=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},we(G)}function X(G,$){if(!(G instanceof $))throw new TypeError("Cannot call a class as a function")}function k(G,$){for(var H=0;H<$.length;H++){var W=$[H];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(G,W.key,W)}}function Z(G,$,H){return $&&k(G.prototype,$),H&&k(G,H),G}function Y(G,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create($&&$.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),$&&ie(G,$)}function ie(G,$){return ie=Object.setPrototypeOf||function(W,V){return W.__proto__=V,W},ie(G,$)}function Ee(G){var $=ft();return function(){var W=it(G),V;if($){var Q=it(this).constructor;V=Reflect.construct(W,arguments,Q)}else V=W.apply(this,arguments);return Pe(this,V)}}function Pe(G,$){return $&&(we($)==="object"||typeof $=="function")?$:Ve(G)}function Ve(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}function ft(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(G){return!1}}function it(G){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},it(G)}function Xt(G,$){var H="data-clipboard-".concat(G);if($.hasAttribute(H))return $.getAttribute(H)}var jt=(function(G){Y(H,G);var $=Ee(H);function H(W,V){var Q;return X(this,H),Q=$.call(this),Q.resolveOptions(V),Q.listenClick(W),Q}return Z(H,[{key:"resolveOptions",value:function(){var V=arguments.length>0&&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=we(V.container)==="object"?V.container:document.body}},{key:"listenClick",value:function(V){var Q=this;this.listener=c()(V,"click",function(ze){return Q.onClick(ze)})}},{key:"onClick",value:function(V){var Q=V.delegateTarget||V.currentTarget,ze=this.action(Q)||"copy",Zt=de({action:ze,container:this.container,target:this.target(Q),text:this.text(Q)});this.emit(Zt?"success":"error",{action:ze,text:Zt,trigger:Q,clearSelection:function(){Q&&Q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(V){return Xt("action",V)}},{key:"defaultTarget",value:function(V){var Q=Xt("target",V);if(Q)return document.querySelector(Q)}},{key:"defaultText",value:function(V){return Xt("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 w(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,ze=!!document.queryCommandSupported;return Q.forEach(function(Zt){ze=ze&&!!document.queryCommandSupported(Zt)}),ze}}]),H})(s()),_r=jt}),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,l){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(l))return s;s=s.parentNode}}n.exports=a}),438:(function(n,o,i){var a=i(828);function s(u,f,p,d,h){var v=c.apply(this,arguments);return u.addEventListener(p,v,h),{destroy:function(){u.removeEventListener(p,v,h)}}}function l(u,f,p,d,h){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof p=="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,f,p,d,h)}))}function c(u,f,p,d){return function(h){h.delegateTarget=a(h.target,f),h.delegateTarget&&d.call(u,h)}}n.exports=l}),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 l(p,d,h){if(!p&&!d&&!h)throw new Error("Missing required arguments");if(!a.string(d))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(p))return c(p,d,h);if(a.nodeList(p))return u(p,d,h);if(a.string(p))return f(p,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(p,d,h){return p.addEventListener(d,h),{destroy:function(){p.removeEventListener(d,h)}}}function u(p,d,h){return Array.prototype.forEach.call(p,function(v){v.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(p,function(v){v.removeEventListener(d,h)})}}}function f(p,d,h){return s(document.body,p,d,h)}n.exports=l}),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 l=window.getSelection(),c=document.createRange();c.selectNodeContents(i),l.removeAllRanges(),l.addRange(c),a=l.toString()}return a}n.exports=o}),279:(function(n){function o(){}o.prototype={on:function(i,a,s){var l=this.e||(this.e={});return(l[i]||(l[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var l=this;function c(){l.off(i,c),a.apply(s,arguments)}return c._=a,this.on(i,c,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),l=0,c=s.length;for(l;l0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[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 ae(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||l(d,v)})},h&&(o[d]=h(o[d])))}function l(d,h){try{c(n[d](h))}catch(v){p(i[0][3],v)}}function c(d){d.value instanceof Ft?Promise.resolve(d.value.v).then(u,f):p(i[0][2],d)}function u(d){l("next",d)}function f(d){l("throw",d)}function p(d,h){d(h),i.shift(),i.length&&l(i[0][0],i[0][1])}}function pi(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 Fe=="function"?Fe(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,l){a=e[i](a),o(s,l,a.done,a.value)})}}function o(i,a,s,l){Promise.resolve(l).then(function(c){i({value:c,done:s})},a)}}function U(e){return typeof e=="function"}function Qt(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 Qr=Qt(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 mt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var at=(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=Fe(a),l=s.next();!l.done;l=s.next()){var c=l.value;c.remove(this)}}catch(v){t={error:v}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(U(u))try{u()}catch(v){i=v instanceof Qr?v.errors:[v]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=Fe(f),d=p.next();!d.done;d=p.next()){var h=d.value;try{fi(h)}catch(v){i=i!=null?i:[],v instanceof Qr?i=ae(ae([],re(i)),re(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new Qr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)fi(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)&&mt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&mt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Jn=at.EMPTY;function en(e){return e instanceof at||e&&"closed"in e&&U(e.remove)&&U(e.add)&&U(e.unsubscribe)}function fi(e){U(e)?e():e.unsubscribe()}var rt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var er={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?Jn:(this.currentObservers=null,s.push(r),new at(function(){n.currentObservers=null,mt(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 j;return r.source=this,r},t.create=function(r,n){return new xi(r,n)},t})(j);var xi=(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:Jn},t})(R);var ro=(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})(R);var Or={now:function(){return(Or.delegate||Date).now()},delegate:void 0};var Lr=(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=Or);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,l=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+l)),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(),l=0;l0?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})(nr);var Ti=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(or);var io=new Ti(Ei);var Si=(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=ht.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&&(ht.cancelAnimationFrame(n),r._scheduled=void 0)},t})(nr);var Oi=(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})(or);var Ne=new Oi(Si);var x=new j(function(e){return e.complete()});function nn(e){return e&&U(e.schedule)}function ao(e){return e[e.length-1]}function Ot(e){return U(ao(e))?e.pop():void 0}function Ze(e){return nn(ao(e))?e.pop():void 0}function on(e,t){return typeof ao(e)=="number"?e.pop():t}var ir=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function an(e){return U(e==null?void 0:e.then)}function sn(e){return U(e[rr])}function cn(e){return Symbol.asyncIterator&&U(e==null?void 0:e[Symbol.asyncIterator])}function ln(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 gl(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var un=gl();function pn(e){return U(e==null?void 0:e[un])}function fn(e){return ui(this,arguments,function(){var r,n,o,i;return Zr(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,Ft(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,Ft(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Ft(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 mn(e){return U(e==null?void 0:e.getReader)}function q(e){if(e instanceof j)return e;if(e!=null){if(sn(e))return yl(e);if(ir(e))return _l(e);if(an(e))return xl(e);if(cn(e))return Li(e);if(pn(e))return wl(e);if(mn(e))return El(e)}throw ln(e)}function yl(e){return new j(function(t){var r=e[rr]();if(U(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function _l(e){return new j(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?T(function(o,i){return e(o,i,n)}):Me,he(1),r?ct(t):zi(function(){return new ar}))}}function fo(e){return e<=0?function(){return x}:O(function(t,r){var n=[];t.subscribe(E(r,function(o){n.push(o),e=2,!0))}function ke(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new R}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,l=s===void 0?!0:s;return function(c){var u,f,p,d=0,h=!1,v=!1,_=function(){f==null||f.unsubscribe(),f=void 0},S=function(){_(),u=p=void 0,h=v=!1},w=function(){var y=u;S(),y==null||y.unsubscribe()};return O(function(y,ye){d++,!v&&!h&&_();var de=p=p!=null?p:r();ye.add(function(){d--,d===0&&!v&&!h&&(f=mo(w,l))}),de.subscribe(ye),!u&&d>0&&(u=new dt({next:function(we){return de.next(we)},error:function(we){v=!0,_(),f=mo(S,o,we),de.error(we)},complete:function(){h=!0,_(),f=mo(S,a),de.complete()}}),q(y).subscribe(u))})(c)}}function mo(e,t){for(var r=[],n=2;ne.next(document)),e}function L(e,t=document){return Array.from(t.querySelectorAll(e))}function K(e,t=document){let r=Se(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function Se(e,t=document){return t.querySelector(e)||void 0}function kt(){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 Dl=P(b(document.body,"focusin"),b(document.body,"focusout")).pipe(et(1),z(void 0),m(()=>kt()||document.body),ee(1));function cr(e){return Dl.pipe(m(t=>e.contains(t)),se())}function zt(e,t){let{matches:r}=matchMedia("(hover)");return I(()=>(r?P(b(e,"mouseenter").pipe(m(()=>!0)),b(e,"mouseleave").pipe(m(()=>!1))):P(b(e,"touchstart").pipe(m(()=>!0)),b(e,"touchend").pipe(m(()=>!1)),b(e,"touchcancel").pipe(m(()=>!1)))).pipe(t?Mr(o=>Ke(+!o*t)):Me,z(!0,e.matches(":hover"))))}function Gi(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)Gi(e,r)}function C(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)Gi(n,o);return n}function Yi(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function lt(e){let t=C("script",{src:e});return I(()=>(document.head.appendChild(t),P(b(t,"load"),b(t,"error").pipe(g(()=>hn(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),D(()=>document.head.removeChild(t)),he(1))))}function Ji(e){let t=C("link",{rel:"stylesheet",href:e});return document.head.appendChild(t),P(b(t,"load"),b(t,"error").pipe(g(()=>hn(()=>new ReferenceError(`Invalid styles: ${e}`))))).pipe(m(()=>{}),he(1))}var Xi=new R,Wl=I(()=>typeof ResizeObserver=="undefined"?lt("https://unpkg.com/resize-observer-polyfill"):F(void 0)).pipe(m(()=>new ResizeObserver(e=>e.forEach(t=>Xi.next(t)))),g(e=>P(Qe,F(e)).pipe(D(()=>e.disconnect()))),ee(1));function He(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Ie(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return Wl.pipe(M(r=>r.observe(t)),g(r=>Xi.pipe(T(n=>n.target===t),D(()=>r.unobserve(t)))),m(()=>He(e)),z(He(e)))}function Ir(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Zi(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 Qi(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 Mt(e){return{x:e.offsetLeft,y:e.offsetTop}}function ea(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function ta(e){return P(b(window,"load"),b(window,"resize")).pipe(nt(0,Ne),m(()=>Mt(e)),z(Mt(e)))}function xn(e){return{x:e.scrollLeft,y:e.scrollTop}}function qt(e){return P(b(e,"scroll"),b(window,"scroll"),b(window,"resize")).pipe(nt(0,Ne),m(()=>xn(e)),z(xn(e)))}var wn=new WeakMap,Vl=I(()=>F(new IntersectionObserver(e=>{for(let t of e){let r=wn.get(t.target);if(r)for(let n of r)n.next(t)}},{threshold:0}))).pipe(g(e=>P(Qe,F(e)).pipe(D(()=>e.disconnect()))),ee(1));function At(e){return I(()=>{let t=new R,r=wn.get(e)||new Set;return r.add(t),wn.set(e,r),Vl.pipe(M(n=>{r.size===1&&n.observe(e)}),g(n=>t.pipe(D(()=>{r.delete(t),r.size===0&&(n.unobserve(e),wn.delete(e))}),m(({isIntersecting:o})=>o))))})}var zl=Object.create,Ha=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Kl=Object.getOwnPropertyNames,Bl=Object.getPrototypeOf,Gl=Object.prototype.hasOwnProperty,Yl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Kl(t))!Gl.call(e,o)&&o!==r&&Ha(e,o,{get:()=>t[o],enumerable:!(n=ql(t,o))||n.enumerable});return e},Xl=(e,t,r)=>(r=e!=null?zl(Bl(e)):{},Jl(t||!e||!e.__esModule?Ha(r,"default",{value:e,enumerable:!0}):r,e)),Zl=Yl((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,l=/^0o[0-7]+$/i,c=parseInt,u=typeof global=="object"&&global&&global.Object===Object&&global,f=typeof self=="object"&&self&&self.Object===Object&&self,p=u||f||Function("return this")(),d=Object.prototype,h=d.toString,v=Math.max,_=Math.min,S=function(){return p.Date.now()};function w(X,k,Z){var Y,ie,Ee,Pe,Ve,ft,it=0,Xt=!1,jt=!1,_r=!0;if(typeof X!="function")throw new TypeError(r);k=we(k)||0,y(Z)&&(Xt=!!Z.leading,jt="maxWait"in Z,Ee=jt?v(we(Z.maxWait)||0,k):Ee,_r="trailing"in Z?!!Z.trailing:_r);function G(Le){var St=Y,xr=ie;return Y=ie=void 0,it=Le,Pe=X.apply(xr,St),Pe}function $(Le){return it=Le,Ve=setTimeout(V,k),Xt?G(Le):Pe}function H(Le){var St=Le-ft,xr=Le-it,oi=k-St;return jt?_(oi,Ee-xr):oi}function W(Le){var St=Le-ft,xr=Le-it;return ft===void 0||St>=k||St<0||jt&&xr>=Ee}function V(){var Le=S();if(W(Le))return Q(Le);Ve=setTimeout(V,H(Le))}function Q(Le){return Ve=void 0,_r&&Y?G(Le):(Y=ie=void 0,Pe)}function ze(){Ve!==void 0&&clearTimeout(Ve),it=0,Y=ft=ie=Ve=void 0}function Zt(){return Ve===void 0?Pe:Q(S())}function Jr(){var Le=S(),St=W(Le);if(Y=arguments,ie=this,ft=Le,St){if(Ve===void 0)return $(ft);if(jt)return Ve=setTimeout(V,k),G(ft)}return Ve===void 0&&(Ve=setTimeout(V,k)),Pe}return Jr.cancel=ze,Jr.flush=Zt,Jr}function y(X){var k=typeof X;return!!X&&(k=="object"||k=="function")}function ye(X){return!!X&&typeof X=="object"}function de(X){return typeof X=="symbol"||ye(X)&&h.call(X)==o}function we(X){if(typeof X=="number")return X;if(de(X))return n;if(y(X)){var k=typeof X.valueOf=="function"?X.valueOf():X;X=y(k)?k+"":k}if(typeof X!="string")return X===0?X:+X;X=X.replace(i,"");var Z=s.test(X);return Z||l.test(X)?c(X.slice(2),Z?2:8):a.test(X)?n:+X}t.exports=w}),In,B,$a,Pa,Ht,ra,Ia,Ra,ho,Sn,jr,ja,Oo,xo,wo,Ql,Mn={},An=[],eu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Wr=Array.isArray;function yt(e,t){for(var r in t)e[r]=t[r];return e}function Lo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Pt(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?In.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 On(e,a,n,o,null)}function On(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:++$a,__i:-1,__u:0};return o==null&&B.vnode!=null&&B.vnode(i),i}function We(e){return e.children}function pt(e,t){this.props=e,this.context=t}function ur(e,t){if(t==null)return e.__?ur(e.__,e.__i+1):null;for(var r;tt&&Ht.sort(Ra),e=Ht.shift(),t=Ht.length,tu(e)}finally{Ht.length=Cn.__r=0}}function Ua(e,t,r,n,o,i,a,s,l,c,u){var f,p,d,h,v,_,S,w=n&&n.__k||An,y=t.length;for(l=ru(r,t,w,l,y),f=0;f0?a=e.__k[i]=On(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,l=i+p,a.__=e,a.__b=e.__b+1,s=null,(c=a.__i=nu(a,r,l,f))!=-1&&(f--,(s=r[c])&&(s.__u|=2)),s==null||s.__v==null?(c==-1&&(o>u?p--:ol?p--:p++,a.__u|=4))):e.__k[i]=null;if(f)for(i=0;i(u?1:0)){for(o=r-1,i=r+1;o>=0||i=0?o--:i++])!=null&&!(2&c.__u)&&s==c.key&&l==c.type)return a}return-1}function oa(e,t,r){t[0]=="-"?e.setProperty(t,r!=null?r:""):e[t]=r==null?"":typeof r!="number"||eu.test(t)?r:r+"px"}function En(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||oa(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||oa(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ja,"$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[jr]=n[jr]:(r[jr]=Oo,e.addEventListener(t,i?wo:xo,i)):e.removeEventListener(t,i?wo:xo,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 ia(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[Sn]==null)t[Sn]=Oo++;else if(t[Sn]0?e:Wr(e)?e.map(Va):e.constructor!==void 0?null:yt({},e)}function ou(e,t,r,n,o,i,a,s,l){var c,u,f,p,d,h,v,_=r.props||Mn,S=t.props,w=t.type;if(w=="svg"?o="http://www.w3.org/2000/svg":w=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c=r.__.length&&r.__.push({}),r.__[e]}function pr(e){return Nr=1,su(Ga,e)}function su(e,t,r){var n=Vr(Bt++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ga(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=ge,!ge.__f)){var o=function(s,l,c){if(!n.__c.__H)return!0;var u=!1,f=n.__c.props!==s;if(n.__c.__H.__.some(function(d){if(d.__N){u=!0;var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(f=!0)}}),i){var p=i.call(this,s,l,c);return u?p||f:p}return!u||f};ge.__f=!0;var i=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.componentWillUpdate=function(s,l,c){if(this.__e){var u=i;i=void 0,o(s,l,c),i=u}a&&a.call(this,s,l,c)},ge.shouldComponentUpdate=o}return n.__N||n.__}function It(e,t){var r=Vr(Bt++,3);!xe.__s&&Ao(r.__H,t)&&(r.__=e,r.u=t,ge.__H.__h.push(r))}function cu(e,t){var r=Vr(Bt++,4);!xe.__s&&Ao(r.__H,t)&&(r.__=e,r.u=t,ge.__h.push(r))}function _t(e){return Nr=5,mr(function(){return{current:e}},[])}function mr(e,t){var r=Vr(Bt++,7);return Ao(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function lu(e,t){return Nr=8,mr(function(){return e},t)}function Ka(){var e=Vr(Bt++,11);if(!e.__){for(var t=ge.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function ma(){for(var e;e=qa.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Eo),t.__h.some(Ba),t.__h=[]}catch(r){t.__h=[],xe.__e(r,e.__v)}}}xe.__b=function(e){ge=null,sa&&sa(e)},xe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fa&&fa(e,t)},xe.__r=function(e){ca&&ca(e),Bt=0;var t=(ge=e.__c).__H;t&&(vo===ge?(t.__h=[],ge.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.length&&ma(),Bt=0)),vo=ge},xe.diffed=function(e){la&&la(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(qa.push(t)!==1&&aa===xe.requestAnimationFrame||((aa=xe.requestAnimationFrame)||uu)(ma)),t.__H.__.some(function(r){r.u&&(r.__H=r.u,r.u=void 0)})),vo=ge=null},xe.__c=function(e,t){t.some(function(r){try{r.__h.some(Eo),r.__h=r.__h.filter(function(n){return!n.__||Ba(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],xe.__e(n,r.__v)}}),ua&&ua(e,t)},xe.unmount=function(e){pa&&pa(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{Eo(n)}catch(o){t=o}}),r.__H=void 0,t&&xe.__e(t,r.__v))};var da=typeof requestAnimationFrame=="function";function uu(e){var t,r=function(){clearTimeout(n),da&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);da&&(t=requestAnimationFrame(r))}function Eo(e){var t=ge,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ge=t}function Ba(e){var t=ge;e.__c=e.__(),ge=t}function Ao(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ga(e,t){return typeof t=="function"?t(e):t}function pu(e,t){for(var r in t)e[r]=t[r];return e}function ha(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 va(e,t){this.props=e,this.context=t}(va.prototype=new pt).isPureReactComponent=!0,va.prototype.shouldComponentUpdate=function(e,t){return ha(this.props,e)||ha(this.state,t)};var ba=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ba&&ba(e)};var c0=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,fu=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)}fu(e,t,r,n)};var ga=B.unmount;function Ya(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=pu({},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 Ya(n,t,r)})),e}function Ja(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ja(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 bo(){this.__u=0,this.o=null,this.__b=null}function Xa(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function Tn(){this.i=null,this.l=null}B.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ga&&ga(e)},(bo.prototype=new pt).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Xa(n.__v),i=!1,a=function(){i||n.__z||(i=!0,r.__R=null,o?o(l):l())};r.__R=a;var s=r.__P;r.__P=null;var l=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Ja(c,c.__c.__P,c.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.__P=s,u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},bo.prototype.componentWillUnmount=function(){this.o=[]},bo.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]=Ya(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&Pt(We,null,e.fallback);return o&&(o.__u&=-33),[Pt(We,null,t.__a?null:e.children),o]};var ya=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 _u=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function xu(e,...t){var r;(r=e==null?void 0:e.addEventListener)==null||r.call(e,...t)}function wu(e,...t){var r;(r=e==null?void 0:e.removeEventListener)==null||r.call(e,...t)}var Eu=(e,t)=>Object.hasOwn(e,t),Tu=()=>!0,Su=()=>!1;function Ou(e=!1){let t=_t(e),r=lu(()=>t.current,[]);return It(()=>(t.current=!0,()=>{t.current=!1}),[]),r}function Lu(e,...t){let r=Ou(),n=Qa(t[1]),o=mr(()=>function(...i){r()&&(typeof n.current=="function"?n.current.apply(this,i):typeof n.current.handleEvent=="function"&&n.current.handleEvent.apply(this,i))},[]);It(()=>{let i=ku(e)?e.current:e;if(!i)return;let a=t.slice(2);return xu(i,t[0],o,...a),()=>{wu(i,t[0],o,...a)}},[e,t[0]])}function ku(e){return e!==null&&typeof e=="object"&&Eu(e,"current")}var Mu=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e?Tu:Su,Au=_u?globalThis:null;function Cu(e,t,r=[],n={}){let{event:o="keydown",target:i=Au,eventOptions:a}=n,s=Qa(t),l=mr(()=>{let c=Mu(e);return function(u){c(u)&&s.current.call(this,u)}},r);Lu(i,o,l,a)}function es(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)$t--;else{for(var e,t=!1;Fr!==void 0;){var r=Fr;for(Fr=void 0,To++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&ns(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(To=0,$t--,t)throw e}}function Ln(e){if($t>0)return e();$t++;try{return e()}finally{Rn()}}var ce=void 0;function ts(e){var t=ce;ce=void 0;try{return e()}finally{ce=t}}var Fr=void 0,$t=0,To=0,Hn=0;function rs(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 $e(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}$e.prototype.brand=$u;$e.prototype.h=function(){return!0};$e.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:ts(function(){var n;(n=t.W)==null||n.call(t)}))};$e.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&&ts(function(){var o;(o=t.Z)==null||o.call(t)}))}};$e.prototype.subscribe=function(e){var t=this;return Yt(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}},{name:"sub"})};$e.prototype.valueOf=function(){return this.value};$e.prototype.toString=function(){return this.value+""};$e.prototype.toJSON=function(){return this.value};$e.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty($e.prototype,"value",{get:function(){var e=rs(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(To>100)throw new Error("Cycle detected");this.v=e,this.i++,Hn++,$t++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Rn()}}}});function xt(e,t){return new $e(e,t)}function ns(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 os(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 is(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 Jt(e,t){$e.call(this,void 0),this.x=e,this.s=void 0,this.g=Hn-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}Jt.prototype=new $e;Jt.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Hn))return!0;if(this.g=Hn,this.f|=1,this.i>0&&!ns(this))return this.f&=-2,!0;var e=ce;try{os(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,is(this),this.f&=-2,!0};Jt.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)}$e.prototype.S.call(this,e)};Jt.prototype.U=function(e){if(this.t!==void 0&&($e.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)}};Jt.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(Jt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=rs(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 Jt(e,t)}function as(e){var t=e.u;if(e.u=void 0,typeof t=="function"){$t++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Co(e),n}finally{ce=r,Rn()}}}function Co(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,as(e)}function Pu(e){if(ce!==this)throw new Error("Out-of-order effect");is(this),ce=e,this.f&=-2,8&this.f&&Co(this),Rn()}function dr(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}dr.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()}};dr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,as(this),os(this),$t++;var e=ce;return ce=this,Pu.bind(this,e)};dr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Fr,Fr=this)};dr.prototype.d=function(){this.f|=8,1&this.f||Co(this)};dr.prototype.dispose=function(){this.d()};function Yt(e,t){var r=new dr(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var ss,Ho,go,cs=[];Yt(function(){ss=this.N})();function hr(e,t){B[e]=t.bind(null,B[e]||function(){})}function $n(e){go&&go(),go=e&&e.S()}function ls(e){var t=this,r=e.data,n=Ru(r);n.value=r;var o=mr(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Ta(function(){var d=n.value.value;return d===0?0:d===!0?"":d||""}),u=Ta(function(){return!Array.isArray(c.value)&&!Pa(c.value)}),f=Yt(function(){if(this.N=us,u.value){var d=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=d)}}),p=t.__$u.d;return t.__$u.d=function(){f(),p.call(this)},[u,c]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}ls.displayName="ReactiveTextNode";Object.defineProperties($e.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ls},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});hr("__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 $e&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});hr("__r",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==We){$n();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(o){var i;return Yt(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i})())),Ho=n,$n(r)}e(t)});hr("__e",function(e,t,r,n){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),$n(),Ho=void 0,e(t,r,n)});hr("diffed",function(e,t){typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),$n(),Ho=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 l in n){var c=i[l],u=n[l];c===void 0?(c=Iu(r,l,u,o),i[l]=c):c.o(u,o)}}}e(t)});function Iu(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=xt(r);return{o:function(a,s){i.value=a,n=s},d:Yt(function(){this.N=us;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}hr("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)});hr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});pt.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 Ru(e,t){return pr(function(){return xt(e,t)})[0]}var ju=function(e){queueMicrotask(function(){queueMicrotask(e)})};function Fu(){Ln(function(){for(var e;e=cs.shift();)ss.call(e)})}function us(){cs.push(this)===1&&(B.requestAnimationFrame||ju)(Fu)}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||ms())}function fr(){Ge.value=Ce(A({},Ge.value),{hideSearch:!Ge.value.hideSearch})}function ms(){Ge.value=Ce(A({},Ge.value),{hideFilters:!Ge.value.hideFilters})}function ds(){return Ge.value.selectedItem}function hs(e){Ge.value=Ce(A({},Ge.value),{selectedItem:Math.max(0,Math.min(e,ut.value.items.length-1))})}function yo(){ut.value=ps(),Ge.value=Ce(A({},Ge.peek()),{selectedItem:0})}function Du(){var e,t;return(t=(e=$o.value)==null?void 0:e.items)!=null?t:[]}function jn(){return typeof Re.value.input=="string"?Re.value.input:""}function Wu(e){Re.value=Ce(A({},Re.value),{page:void 0,input:fs(e,zr())})}function vs(){let e=ut.value.pagination.next;typeof e<"u"&&Re.value.page!==e&&(Re.value=Ce(A({},Re.value),{page:e}))}function _o(e){return zr().includes(e)}function zr(){let e=Re.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=zr(),r=t.indexOf(e);r>-1?t.splice(r,1):t.push(e),Re.value=Ce(A({},Re.value),{page:void 0,input:fs(jn(),t),filter:Ce(A({},Re.value.filter),{input:{type:"operator",data:{operator:"and",operands:t.map(n=>({type:"value",data:{field:"tags",value:n}}))}}})})}function bs(){return ut.value.items}function zu(){return ut.value.pagination.total}function qu(){var e;for(let t of(e=ut.value.aggregations)!=null?e:[])if(t.type==="term")return t.data.value;return[]}function Dr(){return Ge.value.hideSearch}function Ku(){return Ge.value.hideFilters}function Bu(){var e;return(e=Pn.value.highlight)!=null?e:!1}function Gu(e){if(!Bu())return e;let t=e.indexOf("#"),r=t===-1?"":e.slice(t),n=t===-1?e:e.slice(0,t),o=n.indexOf("?"),i=o===-1?n:n.slice(0,o),a=new URLSearchParams(o===-1?"":n.slice(o+1));return a.set("h",jn()),`${i}?${a}${r}`}function Yu(e){Pn.value.navigate?Pn.value.navigate(e):window.location.href=e}var Ge=xt({hideSearch:!0,hideFilters:!0,selectedItem:0}),Pn=xt({}),$o=xt(),Kt=xt(!1),Rr=xt(!1),Re=xt({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),ut=xt(ps());function Ju(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):Ju(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 Zu(e,t=0,r=e.length){let n=++t;e:for(let c=0;n{let i=[],a=[],{onElement:s,onText:l=Qu}=typeof r=="function"?{onElement:r}:r,c=0,u=0;return e(t,(f,p,d,h)=>{if(f===0)i[c++]=l(t,d,h),a[u++]={value:null,depth:p};else if(f&1&&(a[u++]={value:Zu(t,d,h),depth:p}),f&2)for(let v=0;u>=0;v++){let{value:_,depth:S}=a[--u];if(S>p)continue;let w=i.slice(c-=v,c+v);i[c++]=s(_,w),u++;break}},n,o),i.slice(0,c)}}function tp(e){return e.replace(/[&<>]/g,t=>{switch(t.charCodeAt(0)){case 38:return"&";case 60:return"<";case 62:return">"}})}function kn(e){return e.replace(/&(amp|[lg]t);/g,t=>{switch(t.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function rp(e,t){return{start:e.start+t,end:e.end+t,value:e.value}}function np(e,t,r){return e.slice(t,r)}function op(e){let{onHighlight:t,onText:r=np}=typeof e=="function"?{onHighlight:e}:e;return(n,o,i=0,a=n.length)=>{var c;let s=[],l=(c=o==null?void 0:o.ranges)!=null?c:[];for(let u=0,f=i;ua)break;let d=l[u].end;if(di&&s.push(r(n,i,p));let{value:h}=l[u];s.push(t(n,{start:p,end:i=d,value:h}))}return it!==null&&typeof t<"u"&&t!==!1&&!(typeof t=="string"&&t.trim().length===0))}function ys(e,t,r=0,n=e.length){let o=sp(e,t,r,n),i=[],a=[],s=()=>{a.length>0&&(i.push(N("mark",{children:a})),a=[])};return o.forEach((l,c)=>{if(l!==null)if(typeof l=="string"){let u=o[c+1];a.length>0&&/^\s+$/.test(l)&&u!=null&&typeof u!="string"?a.push(l):(s(),i.push(l))}else a.push(N("u",{className:Gt({[ip.fuzzy]:l.fuzzy}),children:l.text})),l.suffix.length>0&&(s(),i.push(l.suffix))}),s(),i}function _s(e,t){let r=gs(e,{onElement(n,o){return n.tag==="a"?N(We,{children:o}):Pt(n.tag,n.attrs,...o)},onText(n,o,i){return ys(n,t==null?void 0:t.value.highlight,o,i)}});return N(We,{children:r})}function pp(e,t){var n;let r=[];for(let o=0,i=0;od.start=s||l.push(Ce(A({},d),{start:Math.max(d.start,a),end:Math.min(d.end,s)}));let c=gs(e,{onElement(d,h){var _;let v=up(h);if(v.length!==0)return lp.has(d.tag)?Pt(d.tag,(_=d.attrs)!=null?_:{},...v):d.tag==="li"?N(We,{children:["\u2013 ",v," "]}):cp.has(d.tag)?N(We,{children:[" ",v," "]}):N(We,{children:v})},onText(d,h,v){let _=Math.max(h,a),S=Math.min(v,s);if(!(_>=S))return ys(d,{ranges:l},_,S)}});return N(We,{children:[a>0&&"...",c]})}var lr;function xs(e,t={highlight:!0}){lr==null||lr(),Pn.value=t;let r=Yt(()=>{let i=$o.value;if(Ln(()=>{Kt.value=!1,Rr.value=!1,Re.value=Ce(A({},Re.peek()),{page:void 0}),yo()}),!i)return;let a;try{a=new Worker(e)}catch(f){Rr.value=!0;return}let s=!0,l=()=>{},c=()=>{s&&(s=!1,l(),a.onmessage=null,a.onerror=null,a.onmessageerror=null,a.terminate())},u=()=>{c(),Ln(()=>{Kt.value=!1,Rr.value=!0,yo()})};a.onmessage=f=>{if(!s)return;let p=f.data;switch(p.type){case 1:Kt.value=!0;break;case 3:if(!Kt.peek())return;typeof p.data.pagination.prev<"u"?ut.value=Ce(A({},ut.value),{pagination:p.data.pagination,items:[...ut.value.items,...p.data.items]}):(ut.value=p.data,hs(0));break;case 4:u();break}},a.onerror=f=>{f.preventDefault(),u()},a.onmessageerror=u,l=Yt(()=>{if(Kt.value)try{a.postMessage({type:2,data:Re.value})}catch(f){u()}});try{a.postMessage({type:0,data:i})}catch(f){u()}return c}),n=!1,o=()=>{n||(n=!0,r(),Ln(()=>{Kt.value=!1,Rr.value=!1,yo()}),lr===o&&(lr=void 0))};return lr=o,o}var Oa={container:"l",hidden:"m"};function mp(e){return N("div",{class:Gt(Oa.container,{[Oa.hidden]:e.hidden}),onClick:()=>fr()})}var La={container:"a",disabled:"c"};function ka(e){return N("button",Ce(A({},e),{type:"button",disabled:e.disabled||!e.onClick,class:Gt(La.container,e.class,{[La.disabled]:e.disabled||!e.onClick}),children:e.children}))}var Ma=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Aa=e=>{let t=dp(e);return t.charAt(0).toUpperCase()+t.slice(1)},hp=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),vp={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"},bp=l=>{var c=l,{color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,children:o,iconNode:i,class:a=""}=c,s=wr(c,["color","size","strokeWidth","absoluteStrokeWidth","children","iconNode","class"]);return Pt("svg",A(Ce(A({},vp),{width:String(t),height:t,stroke:e,"stroke-width":n?Number(r)*24/Number(t):r,class:["lucide",a].join(" ")}),s),[...i.map(([u,f])=>Pt(u,f)),...Ur(o)])},ws=(e,t)=>{let r=a=>{var s=a,{class:n="",children:o}=s,i=wr(s,["class","children"]);return Pt(bp,Ce(A({},i),{iconNode:t,class:hp(`lucide-${Ma(Aa(e))}`,`lucide-${Ma(e)}`,n)}),o)};return r.displayName=Aa(e),r},gp=ws("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]),yp=ws("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),l0=Xl(Zl(),1);function _p({threshold:e=0,root:t=null,rootMargin:r="0%",freezeOnceVisible:n=!1,initialIsIntersecting:o=!1,onChange:i}={}){var a;let[s,l]=pr(null),[c,u]=pr(()=>({isIntersecting:o,entry:void 0})),f=_t();f.current=i;let p=((a=c.entry)==null?void 0:a.isIntersecting)&&n;It(()=>{if(!s||!("IntersectionObserver"in window)||p)return;let v,_=new IntersectionObserver(S=>{let w=Array.isArray(_.thresholds)?_.thresholds:[_.thresholds];S.forEach(y=>{let ye=y.isIntersecting&&w.some(de=>y.intersectionRatio>=de);u({isIntersecting:ye,entry:y}),f.current&&f.current(ye,y),ye&&n&&v&&(v(),v=void 0)})},{threshold:e,root:t,rootMargin:r});return _.observe(s),()=>{_.disconnect()}},[s,JSON.stringify(e),t,r,p,n]);let d=_t(null);It(()=>{var v;!s&&(v=c.entry)!=null&&v.target&&!n&&!p&&d.current!==c.entry.target&&(d.current=c.entry.target,u({isIntersecting:o,entry:void 0}))},[s,c.entry,n,p,o]);let h=[l,!!c.isIntersecting,c.entry];return h.ref=h[0],h.isIntersecting=h[1],h.entry=h[2],h}var bt={container:"e",hidden:"d",content:"v",pop:"g",badge:"y",sidebar:"t",controls:"w",results:"k",loadmore:"z"};function xp(e){let{isIntersecting:t,ref:r}=_p({threshold:0}),n=Ka(),o=`${n}-results`,i=`${n}-filters`,a=Ku();It(()=>{t&&vs()},[t]);let s=_t(null);It(()=>{s.current&&typeof Re.value.page>"u"&&s.current.scrollTo({top:0})},[Re.value]);let l=zr();return N("div",{class:Gt(bt.container,{[bt.hidden]:e.hidden}),children:[N("div",{class:bt.content,children:[N("div",{class:bt.controls,children:[N(ka,{onClick:fr,"aria-label":"Close search",children:N(yp,{"aria-hidden":"true"})}),N(Ep,{resultsId:o}),N(ka,{onClick:ms,"aria-label":"Filters","aria-controls":i,"aria-expanded":!a,children:[N(gp,{"aria-hidden":"true"}),l.length>0&&N("span",{class:bt.badge,"aria-hidden":"true",children:l.length})]})]}),N("div",{class:bt.results,ref:s,tabIndex:-1,children:[N(Tp,{id:o}),N("div",{class:bt.loadmore,ref:r})]})]}),N("div",{id:i,inert:a,"aria-hidden":a,class:Gt(bt.sidebar,{[bt.hidden]:a}),children:N(wp,{})})]})}var gt={container:"j",list:"F",hint:"I",heading:"R",title:"X",item:"i",active:"b",value:"q",count:"A"};function wp(){var a,s;let e=Ka(),t=_t(new Map),[r,n]=pr(),o=[...qu()].sort((l,c)=>c.node.count-l.node.count),i=(s=(a=o.find(({node:l})=>l.value===r))!=null?a:o.find(({node:l})=>_o(l.value)))!=null?s:o[0];return N("div",{class:gt.container,children:[N("h3",{class:gt.heading,children:"Filters"}),N("h4",{id:`${e}-title`,class:gt.title,children:"Tags"}),N("span",{id:`${e}-hint`,class:gt.hint,children:"Use Up and Down arrow keys to move between tags. Press Space or Enter to toggle a tag."}),N("ol",{class:gt.list,role:"toolbar","aria-orientation":"vertical","aria-labelledby":`${e}-title`,"aria-describedby":`${e}-hint`,children:o.map((l,c)=>N("li",{role:"presentation",children:N("button",{type:"button",ref:u=>{u?t.current.set(l.node.value,u):t.current.delete(l.node.value)},tabIndex:l===i?0:-1,class:Gt(gt.item,{[gt.active]:_o(l.node.value)}),"aria-pressed":_o(l.node.value),onFocus:()=>n(l.node.value),onKeyDown:u=>{var p;if(u.altKey||u.ctrlKey||u.metaKey||u.isComposing)return;let f=c;switch(u.key){case"ArrowDown":f=Math.min(c+1,o.length-1);break;case"ArrowUp":f=Math.max(c-1,0);break;case"Home":f=0;break;case"End":f=o.length-1;break;default:return}u.preventDefault(),(p=t.current.get(o[f].node.value))==null||p.focus()},onClick:()=>Vu(l.node.value),children:[N("span",{class:gt.value,children:l.node.value}),N("span",{class:gt.count,children:l.node.count})]})},l.node.value))})]})}var Ca={container:"s"};function Ep(e){let t=bs(),r=ds(),n=!Dr()&&t.length>0,o=n&&t[r]?`${e.resultsId}-${t[r].id}`:void 0;return N("div",{class:Ca.container,children:N("input",{autoFocus:!0,"aria-label":"Search","aria-autocomplete":"list","aria-controls":e.resultsId,"aria-expanded":n,"aria-activedescendant":o,type:"text",class:Ca.content,value:kn(jn()),onInput:i=>Wu(tp(i.currentTarget.value)),onKeyDown:i=>{var a;i.isComposing||i.keyCode===229||i.altKey||i.ctrlKey||i.metaKey||!t.length||(i.key==="ArrowDown"||i.key==="ArrowUp"?(i.preventDefault(),i.key==="ArrowDown"&&r===t.length-1&&vs(),hs(r+(i.key==="ArrowDown"?1:-1))):i.key==="Enter"&&o&&(i.preventDefault(),(a=i.currentTarget.getRootNode().getElementById(o))==null||a.click()))},autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox",dir:"auto"})})}var Ct={container:"h",heading:"f",item:"o",active:"B",wrapper:"C",title:"x",path:"n",excerpt:"p"};function Tp(e){let t=Du(),r=bs(),n=ds(),o=_t([]);It(()=>{let s=o.current[n];s&&s.scrollIntoView({block:"nearest"})},[n,r]);let i=zu(),a="";return Rr.value?a="Search is unavailable. Reload the page to try again.":Kt.value?r.length>0?a=`${new Intl.NumberFormat("en-US").format(i)} ${i===1?"result":"results"}`:(jn().length>0||zr().length>0)&&(a="No results"):a="Loading search\u2026",N(We,{children:[N("div",{class:Ct.heading,role:"status","aria-live":"polite","aria-atomic":"true",children:a}),N("ol",{id:e.id,class:Ct.container,role:"listbox","aria-label":"Search results",children:r.map((s,l)=>{var h;let c=s.matches.find(({field:v})=>v==="text"),u=_s(t[s.id].title,s.matches.find(({field:v})=>v==="title")),f=pp((h=t[s.id].path)!=null?h:[],s.matches.find(({field:v})=>v==="path")),p=fp(t[s.id].text,c),d=Gu(t[s.id].location);return N("li",{role:"presentation",children:N("a",{id:`${e.id}-${s.id}`,role:"option",tabIndex:-1,"aria-selected":l===n,"aria-posinset":l+1,"aria-setsize":i,"aria-labelledby":`${e.id}-${s.id}-title`,"aria-describedby":f.length>0?`${e.id}-${s.id}-path`:void 0,ref:v=>{o.current[l]=v},href:d,onClick:v=>{fr(),!v.button&&!v.metaKey&&!v.ctrlKey&&!v.shiftKey&&!v.altKey&&(v.preventDefault(),Yu(d))},class:Gt(Ct.item,{[Ct.active]:l===n}),children:N("div",{class:Ct.wrapper,children:[N("h2",{id:`${e.id}-${s.id}-title`,class:Ct.title,children:u}),f.length>0&&N("menu",{id:`${e.id}-${s.id}-path`,class:Ct.path,children:f.map((v,_)=>N("li",{children:v},_))}),p&&N("div",{class:Ct.excerpt,children:p})]})})},s.id)})})]})}var Sp={container:"r"};function Op(){let e=Dr(),t=_t(null),r=_t(!1),[n,o]=pr("pointer"),[i,a]=pr(!1);return cu(()=>{let s=t.current;return e?(s.close(),r.current=!1):s.open||s.showModal(),()=>s.close()},[e]),It(()=>{let s=()=>{o("pointer"),a(!1)};return document.addEventListener("pointerdown",s,!0),()=>{document.removeEventListener("pointerdown",s,!0)}},[]),Cu(!0,s=>{["Tab","ArrowDown","ArrowUp","Home","End"].includes(s.key)&&o("keyboard"),!(s.defaultPrevented||s.isComposing||s.keyCode===229||r.current)&&((s.metaKey||s.ctrlKey)&&s.key==="k"?(s.preventDefault(),o("keyboard"),a(!1),fr()):(s.metaKey||s.ctrlKey)&&s.key==="j"&&document.body.classList.toggle("dark"))}),N("dialog",{ref:t,class:Sp.container,"aria-label":"Search","aria-modal":"true","data-input-modality":n,"data-tab-navigation":i,inert:e,"aria-hidden":e,onCompositionStart:()=>{r.current=!0},onCompositionEnd:()=>{r.current=!1},onKeyDownCapture:s=>{if(r.current||s.isComposing||s.keyCode===229){s.stopPropagation(),s.key==="Escape"&&s.preventDefault();return}if(s.key!=="Tab")return;a(!0),o("keyboard");let l=s.currentTarget,c=Array.from(l.querySelectorAll("button, input, [href], [tabindex]")).filter(d=>d.tabIndex>=0&&!d.closest("[inert]")&&!d.matches(":disabled")&&d.getClientRects().length>0),u=c[0],f=c[c.length-1],p=l.getRootNode();s.shiftKey&&p.activeElement===u?(s.preventDefault(),f==null||f.focus()):!s.shiftKey&&p.activeElement===f&&(s.preventDefault(),u==null||u.focus())},onCancel:s=>{s.preventDefault(),!r.current&&!Dr()&&fr()},children:[N(mp,{hidden:e}),N(xp,{hidden:e})]})}function Es(e,t){Nu(e),au(N(Op,{}),t)}function Po(){fr()}function Lp(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 kp(){return P(b(window,"compositionstart").pipe(m(()=>!0)),b(window,"compositionend").pipe(m(()=>!1))).pipe(z(!1))}function Ts(){let e=b(window,"keydown").pipe(m(t=>({mode:Dr()?"global":"search",type:t.key,meta:t.ctrlKey||t.metaKey,claim(){t.preventDefault(),t.stopPropagation()}})),T(({mode:t,type:r})=>{if(t==="global"){let n=kt();if(typeof n!="undefined")return!Lp(n,r)}return!0}),ke());return kp().pipe(g(t=>t?x:e))}function fe(){return new URL(location.href)}function ot(e,t=!1){if(J("navigation.instant")&&!t){let r=C("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function Ss(){return new R}function Os(){return location.hash.slice(1)}function Ls(e){let t=C("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Io(e){return P(b(window,"hashchange"),e).pipe(m(Os),z(Os()),m(decodeURIComponent),ee(1),T(t=>t.length>0))}function ks(e){return Io(e).pipe(m(t=>Se(`[id="${t}"]`)),T(t=>typeof t!="undefined"))}function qr(e){let t=matchMedia(e);return bn(r=>t.addListener(()=>r(t.matches))).pipe(z(t.matches))}function Ms(){let e=matchMedia("print");return P(b(window,"beforeprint").pipe(m(()=>!0)),b(window,"afterprint").pipe(m(()=>!1))).pipe(z(e.matches))}function Ro(e,t){return e.pipe(g(r=>r?t():x))}function jo(e,t){return new j(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 Ye(e,t){return jo(e,t).pipe(g(r=>r.text()),m(r=>JSON.parse(r)),ee(1))}function Fn(e,t){let r=new DOMParser;return jo(e,t).pipe(g(n=>n.text()),m(n=>r.parseFromString(n,"text/html")),ee(1))}function As(e,t){let r=new DOMParser;return jo(e,t).pipe(g(n=>n.text()),m(n=>r.parseFromString(n,"text/xml")),ee(1))}var Fo={drawer:K("[data-md-toggle=drawer]"),search:K("[data-md-toggle=search]")};function Uo(e,t){Fo[e].checked!==t&&Fo[e].click()}function Un(e){let t=Fo[e];return b(t,"change").pipe(m(()=>t.checked),z(t.checked))}function Cs(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function Hs(){return P(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(m(Cs),z(Cs()))}function $s(){return{width:innerWidth,height:innerHeight}}function Ps(){return b(window,"resize",{passive:!0}).pipe(m($s),z($s()))}function Is(){return te([Hs(),Ps()]).pipe(m(([e,t])=>({offset:e,size:t})),ee(1))}function Nn(e,{viewport$:t,header$:r}){let n=t.pipe(be("size")),o=te([n,r]).pipe(m(()=>Mt(e)));return te([r,t,o]).pipe(m(([{height:i},{offset:a,size:s},{x:l,y:c}])=>({offset:{x:a.x-l,y:a.y-c+i},size:s})))}var Mp=K("#__config"),vr=JSON.parse(Mp.textContent),No=new URL(vr.base,fe());No.pathname.endsWith("/")||(No.pathname+="/");vr.base=`${No}`;function je(){return vr}function J(e){return vr.features.includes(e)}function wt(e,t){return typeof t!="undefined"?vr.translations[e].replace("#",t.toString()):vr.translations[e]}function Et(e,t=document){return K(`[data-md-component=${e}]`,t)}function Oe(e,t=document){return L(`[data-md-component=${e}]`,t)}function Ap(e){let t=K(".md-typeset > :first-child",e);return b(t,"click",{once:!0}).pipe(m(()=>K(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function Rs(e){if(!J("announce.dismiss")||!e.childElementCount)return x;if(!e.hidden){let t=K(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return I(()=>{let t=new R;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),Ap(e).pipe(M(r=>t.next(r)),D(()=>t.complete()),m(r=>A({ref:e},r)))})}function Cp(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function js(e,t){let r=new R;return r.subscribe(({hidden:n})=>{e.hidden=n}),Cp(e,t).pipe(M(n=>r.next(n)),D(()=>r.complete()),m(n=>A({ref:e},n)))}function Do(e,t){return t==="inline"?C("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},C("div",{class:"md-tooltip__inner md-typeset"})):C("div",{class:"md-tooltip",id:e,role:"tooltip"},C("div",{class:"md-tooltip__inner md-typeset"}))}function Dn(...e){return C("div",{class:"md-tooltip2",role:"dialog"},C("div",{class:"md-tooltip2__inner md-typeset"},e))}function Fs(...e){return C("div",{class:"md-tooltip2",role:"tooltip"},C("div",{class:"md-tooltip2__inner md-typeset"},e))}function Us(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return C("aside",{class:"md-annotation",tabIndex:0},Do(t),C("a",{href:r,class:"md-annotation__index",tabIndex:-1},C("span",{"data-md-annotation-id":e})))}else return C("aside",{class:"md-annotation",tabIndex:0},Do(t),C("span",{class:"md-annotation__index",tabIndex:-1},C("span",{"data-md-annotation-id":e})))}function Ns(e){return C("button",{class:"md-code__button",title:wt("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function Ds(){return C("button",{class:"md-code__button",title:"Toggle line selection","data-md-type":"select"})}function Ws(){return C("nav",{class:"md-code__nav"})}var Pp=Er(Wo());function zs(e){return C("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>C("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Yi(r):r)))}function Vo(e){let t=`tabbed-control tabbed-control--${e}`;return C("div",{class:t,hidden:!0},C("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function qs(e){return C("div",{class:"md-typeset__scrollwrap"},C("div",{class:"md-typeset__table"},e))}function Ip(e){var n;let t=je(),r=new URL(`../${e.version}/`,t.base);return C("li",{class:"md-version__item"},C("a",{href:`${r}`,class:"md-version__link"},e.title,((n=t.version)==null?void 0:n.alias)&&e.aliases.length>0&&C("span",{class:"md-version__alias"},e.aliases[0])))}function Ks(e,t){var n;let r=je();return e=e.filter(o=>{var i;return!((i=o.properties)!=null&&i.hidden)}),C("div",{class:"md-version"},C("button",{class:"md-version__current","aria-label":wt("select.version")},t.title,((n=r.version)==null?void 0:n.alias)&&t.aliases.length>0&&C("span",{class:"md-version__alias"},t.aliases[0])),C("ul",{class:"md-version__list"},e.map(Ip)))}var Rp=0;function jp(e,t=250){let r=te([cr(e),zt(e,t).pipe(_e(1))]).pipe(m(([o,i])=>o||i),se()),n=I(()=>Qi(e)).pipe(ne(qt),Pr(1),Be(r),T(([o,i])=>i),m(()=>ea(e)));return r.pipe(Cr(o=>o),g(()=>te([r,n])),m(([o,i])=>({active:o,offset:i})),ke())}function Kr(e,t,r=250){let{content$:n,viewport$:o}=t,i=`__tooltip2_${Rp++}`;return I(()=>{let a=new R,s=new ro(!1);a.pipe(ve(),Te(!1)).subscribe(s);let l=s.pipe(_e(1),Mr(u=>Ke(+!u*250,io)),se(),g(u=>u?n:x),M(u=>u.id=i),ke());te([a.pipe(m(({active:u})=>u)),l.pipe(g(u=>zt(u,250)),z(!1))]).pipe(m(u=>u.some(f=>f))).subscribe(s);let c=s.pipe(T(u=>u),ue(l,o),m(([u,f,{size:p}])=>{let d=e.getBoundingClientRect(),h=d.width/2;if(f.role==="tooltip")return{x:h,y:8+d.height};if(d.y>=p.height/2){let{height:v}=He(f);return{x:h,y:-16-v}}else return{x:h,y:16+d.height}}));return te([l,a,c]).subscribe(([u,{offset:f},p])=>{u.style.setProperty("--md-tooltip-host-x",`${f.x}px`),u.style.setProperty("--md-tooltip-host-y",`${f.y}px`),u.style.setProperty("--md-tooltip-x",`${p.x}px`),u.style.setProperty("--md-tooltip-y",`${p.y}px`),u.classList.toggle("md-tooltip2--top",p.y<0),u.classList.toggle("md-tooltip2--bottom",p.y>=0)}),s.pipe(T(u=>u),ue(l,(u,f)=>f),T(u=>u.role==="tooltip")).subscribe(u=>{let f=He(K(":scope > *",u));u.style.setProperty("--md-tooltip-width",`${f.width}px`),u.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(se(),qe(Ne),ue(l)).subscribe(([u,f])=>{f.classList.toggle("md-tooltip2--active",u)}),te([s.pipe(T(u=>u)),l]).subscribe(([u,f])=>{f.role==="dialog"?(e.setAttribute("aria-controls",i),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",i)}),s.pipe(T(u=>!u)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),jp(e,r).pipe(M(u=>a.next(u)),D(()=>a.complete()),m(u=>A({ref:e},u)))})}function tt(e,{viewport$:t},r=document.body){return Kr(e,{content$:new j(n=>{let o=e.title,i=Fs(o);return n.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",o)}}),viewport$:t},0)}function Fp(e,t){let r=I(()=>te([ta(e),qt(t)])).pipe(m(([{x:n,y:o},i])=>{let{width:a,height:s}=He(e);return{x:n-i.x+a/2,y:o-i.y+s/2}}));return cr(e).pipe(g(n=>r.pipe(m(o=>({active:n,offset:o})),he(+!n||1/0))))}function Bs(e,t){let[r,n]=Array.from(e.children),i=(r instanceof HTMLElement?[r,...L("[id]",r)].filter(a=>a.id):[]).map(a=>{let s=document.createElement("span");return s.id=a.id,s.hidden=!0,s});return I(()=>{let a=new R,s=a.pipe(ve(),Te(!0));return a.subscribe({next({offset:l}){e.style.setProperty("--md-tooltip-x",`${l.x}px`),e.style.setProperty("--md-tooltip-y",`${l.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),At(e).pipe(oe(s)).subscribe(l=>{e.toggleAttribute("data-md-visible",l)}),P(a.pipe(T(({active:l})=>l)),a.pipe(et(250),T(({active:l})=>!l))).subscribe({next({active:l}){if(l){let c=i.find(u=>u.parentNode);if(c){c.replaceWith(r);for(let u of i)u.remove()}else r.parentNode||e.prepend(r)}else i.length?r.replaceWith(...i):r.remove()},complete(){for(let l of i)l.remove();r.parentNode||e.prepend(r)}}),a.pipe(nt(16,Ne)).subscribe(({active:l})=>{r.classList.toggle("md-tooltip--active",l)}),a.pipe(Pr(125,Ne),T(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:l})=>l)).subscribe({next(l){l?e.style.setProperty("--md-tooltip-0",`${-l}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),b(n,"click").pipe(oe(s),T(l=>!(l.metaKey||l.ctrlKey))).subscribe(l=>{l.stopPropagation(),l.preventDefault()}),b(n,"mousedown").pipe(oe(s),ue(a)).subscribe(([l,{active:c}])=>{var u;if(l.button!==0||l.metaKey||l.ctrlKey)l.preventDefault();else if(c){l.preventDefault();let f=e.parentElement.closest(".md-annotation");f instanceof HTMLElement?f.focus():(u=kt())==null||u.blur()}}),Fp(e,t).pipe(M(l=>a.next(l)),D(()=>a.complete()),m(l=>A({ref:e},l)))})}function Up(e){let t=je();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 L(r.join(", "),e)}function Np(e){let t=[];for(let r of Up(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,l]=a;if(typeof l=="undefined"){let c=i.splitText(a.index);i=c.splitText(s.length),t.push(c)}else{i.textContent=s,t.push(i);break}}}}return t}function Gs(e,t){t.append(...Array.from(e.childNodes))}function Wn(e,t,{print$:r}){let n=t.closest("[id]"),o=n==null?void 0:n.id,i=new Map;for(let a of Np(t)){let[,s]=a.textContent.match(/\((\d+)\)/);Se(`:scope > li:nth-child(${s})`,e)&&(i.set(s,Us(s,o)),a.replaceWith(i.get(s)))}return i.size===0?x:I(()=>{let a=new R,s=a.pipe(ve(),Te(!0)),l=[];for(let[c,u]of i)l.push([K(".md-typeset",u),K(`:scope > li:nth-child(${c})`,e)]);return r.pipe(oe(s)).subscribe(c=>{e.hidden=!c,e.classList.toggle("md-annotation-list",c);for(let[u,f]of l)c?Gs(u,f):Gs(f,u)}),P(...[...i].map(([,c])=>Bs(c,t))).pipe(D(()=>a.complete()),ke())})}function Ys(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Ys(t)}}function Js(e,t){return I(()=>{let r=Ys(e);return typeof r!="undefined"?Wn(r,e,t):x})}var Zs=Er(qo());var Dp=0,Xs=P(b(window,"keydown").pipe(m(()=>!0)),P(b(window,"keyup"),b(window,"contextmenu")).pipe(m(()=>!1))).pipe(z(!1),ee(1));function Qs(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Qs(t)}}function Wp(e){return Ie(e).pipe(m(({width:t})=>({scrollable:Ir(e).width>t})),be("scrollable"))}function ec(e,{target$:t,print$:r}){let{matches:n}=matchMedia("(hover)"),o=I(()=>{let i=new R,a=i.pipe(fo(1));i.subscribe(({scrollable:h})=>{h&&n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let s=[],l=e.closest("pre"),c=l.id?l:l.closest(".highlight"),u=(c==null?void 0:c.id)||Dp++;l.id=`__code_${u}`;let f=[],p=e.closest(".highlight");if(p instanceof HTMLElement){let h=Qs(p);if(typeof h!="undefined"&&(p.classList.contains("annotate")||J("content.code.annotate"))){let v=Wn(h,e,{print$:r});f.push(te([Ie(p).pipe(m(({width:_,height:S})=>_&&S)),t.pipe(m(_=>p.contains(_)||h.contains(_)),z(!1),se())]).pipe(oe(a),m(([_,S])=>_||S),se(),g(_=>_?v:x)))}}let d=L(":scope > span[id]",e);if(d.length&&(e.classList.add("md-code__content"),e.closest(".select")||J("content.code.select")&&!e.closest(".no-select"))){let h=+d[0].id.split("-").pop(),v=Ds();s.push(v),J("content.tooltips")&&f.push(tt(v,{viewport$}));let _=b(v,"click").pipe(Hr(k=>!k,!1),M(()=>v.blur()),ke());_.subscribe(k=>{v.classList.toggle("md-code__button--active",k)});let S=me(d).pipe(ne(k=>zt(k).pipe(m(Z=>[k,Z]))));_.pipe(g(k=>k?S:x)).subscribe(([k,Z])=>{let Y=Se(".hll.select",k);if(Y&&!Z)Y.replaceWith(...Array.from(Y.childNodes));else if(!Y&&Z){let ie=document.createElement("span");ie.className="hll select",ie.append(...Array.from(k.childNodes).slice(1)),k.append(ie)}});let w=me(d).pipe(ne(k=>b(k,"mousedown").pipe(M(Z=>Z.preventDefault()),m(()=>k)))),y=_.pipe(g(k=>k?w:x),ue(Xs),m(([k,Z])=>{var ie;let Y=d.indexOf(k)+h;if(Z===!1)return[Y,Y];{let Ee=L(".hll",e).map(Pe=>d.indexOf(Pe.parentElement)+h);return(ie=window.getSelection())==null||ie.removeAllRanges(),[Math.min(Y,...Ee),Math.max(Y,...Ee)]}})),ye=Io(x).pipe(T(k=>k.startsWith(`__codelineno-${u}-`))),de=new R;P(ye,de).subscribe(k=>{let[,,Z]=k.split("-"),Y=Z.split(":").map(Ee=>+Ee-h+1);Y.length===1&&Y.push(Y[0]);for(let Ee of L(".hll:not(.select)",e))Ee.replaceWith(...Array.from(Ee.childNodes));let ie=d.slice(Y[0]-1,Y[1]);for(let Ee of ie){let Pe=document.createElement("span");Pe.className="hll",Pe.append(...Array.from(Ee.childNodes).slice(1)),Ee.append(Pe)}}),ye.pipe(he(1),qe(Ae)).subscribe(k=>{if(k.includes(":")){let Z=document.getElementById(k.split(":")[0]);Z&&setTimeout(()=>{let Y=Z,ie=-64;for(;Y!==document.body;)ie+=Y.offsetTop,Y=Y.offsetParent;window.scrollTo({top:ie})},1)}});let X=me(L('a[href^="#__codelineno"]',p)).pipe(ne(k=>b(k,"click").pipe(M(Z=>Z.preventDefault()),m(()=>k)))).pipe(oe(a),ue(Xs),m(([k,Z])=>{let ie=+K(`[id="${k.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(Z===!1)return[ie,ie];{let Ee=L(".hll",e).map(Pe=>+Pe.parentElement.id.split("-").pop());return[Math.min(ie,...Ee),Math.max(ie,...Ee)]}}));P(y,X).subscribe(k=>{let Z=`#__codelineno-${u}-`;k[0]===k[1]?Z+=k[0]:Z+=`${k[0]}:${k[1]}`,history.replaceState({},"",Z),de.next(Z.slice(1))})}if(Zs.default.isSupported()&&(e.closest(".copy")||J("content.code.copy")&&!e.closest(".no-copy"))){let h=Ns(l.id);s.push(h),J("content.tooltips")&&f.push(tt(h,{viewport$}))}if(s.length){let h=Ws();h.append(...s),l.insertBefore(h,e)}return Wp(e).pipe(M(h=>i.next(h)),D(()=>i.complete()),m(h=>A({ref:e},h)),vt(P(...f).pipe(oe(a))))});return J("content.lazy")?At(e).pipe(T(i=>i),he(1),g(()=>o)):o}function Vp(e,{print$:t}){let r=!0;return t.pipe(T(n=>n||!r),M(()=>r=e.open),m(n=>({action:n?"open":"close"})))}function tc(e,t){return I(()=>{let r=new R;return r.subscribe(({action:n})=>{e.toggleAttribute("open",n==="open")}),Vp(e,t).pipe(M(n=>r.next(n)),D(()=>r.complete()),m(n=>A({ref:e},n)))})}var Ko,Bo,Go={},rc=!1;function nc(e,t){return t()?lt(e).pipe(le(()=>F(void 0)),m(()=>{})):F(void 0)}function zp(e){if(!e)return[];if(e.startsWith("[")&&e.endsWith("]"))try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(r=>typeof r=="string")}catch(t){}return e.split(/[,\s]+/).map(t=>t.trim()).filter(t=>t.length>0)}function qp(e){var i,a,s;let t=e.querySelector("[id$='--editor']"),r=e.querySelector("[id$='--run']"),n=e.querySelector("[id$='--clear']"),o=e.querySelector("[id$='--output']");if(!t||!r||!n||!o)throw new Error("Invalid Pyodide structure");return{root:e,editor:t,output:o,run:r,clear:n,source:(a=(i=t.textContent)==null?void 0:i.trimEnd())!=null?a:"",session:(s=e.dataset.session)!=null?s:"default",install:zp(e.dataset.install),minLines:typeof e.dataset.minlines=="undefined"?0:parseInt(e.dataset.minlines),maxLines:typeof e.dataset.maxlines=="undefined"?1/0:parseInt(e.dataset.maxlines)}}function Kp(e,t){return e in Go||(Go[e]=t.globals.get("dict")()),Go[e]}function Gr(e,t){e.textContent=t}function Yo(e){e.textContent=""}function Bp(){return new Promise(e=>requestAnimationFrame(()=>e()))}function Gp(e,t,r,n){return Xe(this,null,function*(){let o=[];e.setStdout({batched(i){o.push(i),Gr(r,`${o.join(` + `):"",this.name="UnsubscriptionError",this.errors=r}});function mt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var at=(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=Fe(a),l=s.next();!l.done;l=s.next()){var c=l.value;c.remove(this)}}catch(v){t={error:v}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(U(u))try{u()}catch(v){i=v instanceof Qr?v.errors:[v]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=Fe(f),d=p.next();!d.done;d=p.next()){var h=d.value;try{fi(h)}catch(v){i=i!=null?i:[],v instanceof Qr?i=ae(ae([],re(i)),re(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new Qr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)fi(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)&&mt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&mt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Jn=at.EMPTY;function en(e){return e instanceof at||e&&"closed"in e&&U(e.remove)&&U(e.add)&&U(e.unsubscribe)}function fi(e){U(e)?e():e.unsubscribe()}var rt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var er={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?Jn:(this.currentObservers=null,s.push(r),new at(function(){n.currentObservers=null,mt(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 j;return r.source=this,r},t.create=function(r,n){return new xi(r,n)},t})(j);var xi=(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:Jn},t})(R);var ro=(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})(R);var Or={now:function(){return(Or.delegate||Date).now()},delegate:void 0};var Lr=(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=Or);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,l=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+l)),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(),l=0;l0?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})(nr);var Ti=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(or);var io=new Ti(Ei);var Si=(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=ht.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&&(ht.cancelAnimationFrame(n),r._scheduled=void 0)},t})(nr);var Oi=(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})(or);var Ne=new Oi(Si);var x=new j(function(e){return e.complete()});function nn(e){return e&&U(e.schedule)}function ao(e){return e[e.length-1]}function Ot(e){return U(ao(e))?e.pop():void 0}function Ze(e){return nn(ao(e))?e.pop():void 0}function on(e,t){return typeof ao(e)=="number"?e.pop():t}var ir=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function an(e){return U(e==null?void 0:e.then)}function sn(e){return U(e[rr])}function cn(e){return Symbol.asyncIterator&&U(e==null?void 0:e[Symbol.asyncIterator])}function ln(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 gl(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var un=gl();function pn(e){return U(e==null?void 0:e[un])}function fn(e){return ui(this,arguments,function(){var r,n,o,i;return Zr(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,Ft(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,Ft(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Ft(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 mn(e){return U(e==null?void 0:e.getReader)}function q(e){if(e instanceof j)return e;if(e!=null){if(sn(e))return yl(e);if(ir(e))return _l(e);if(an(e))return xl(e);if(cn(e))return Li(e);if(pn(e))return wl(e);if(mn(e))return El(e)}throw ln(e)}function yl(e){return new j(function(t){var r=e[rr]();if(U(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function _l(e){return new j(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?T(function(o,i){return e(o,i,n)}):Me,he(1),r?ct(t):zi(function(){return new ar}))}}function fo(e){return e<=0?function(){return x}:O(function(t,r){var n=[];t.subscribe(E(r,function(o){n.push(o),e=2,!0))}function ke(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new R}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,l=s===void 0?!0:s;return function(c){var u,f,p,d=0,h=!1,v=!1,_=function(){f==null||f.unsubscribe(),f=void 0},S=function(){_(),u=p=void 0,h=v=!1},w=function(){var y=u;S(),y==null||y.unsubscribe()};return O(function(y,ye){d++,!v&&!h&&_();var de=p=p!=null?p:r();ye.add(function(){d--,d===0&&!v&&!h&&(f=mo(w,l))}),de.subscribe(ye),!u&&d>0&&(u=new dt({next:function(we){return de.next(we)},error:function(we){v=!0,_(),f=mo(S,o,we),de.error(we)},complete:function(){h=!0,_(),f=mo(S,a),de.complete()}}),q(y).subscribe(u))})(c)}}function mo(e,t){for(var r=[],n=2;ne.next(document)),e}function L(e,t=document){return Array.from(t.querySelectorAll(e))}function K(e,t=document){let r=Se(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function Se(e,t=document){return t.querySelector(e)||void 0}function kt(){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 Dl=P(b(document.body,"focusin"),b(document.body,"focusout")).pipe(et(1),z(void 0),m(()=>kt()||document.body),ee(1));function cr(e){return Dl.pipe(m(t=>e.contains(t)),se())}function zt(e,t){let{matches:r}=matchMedia("(hover)");return I(()=>(r?P(b(e,"mouseenter").pipe(m(()=>!0)),b(e,"mouseleave").pipe(m(()=>!1))):P(b(e,"touchstart").pipe(m(()=>!0)),b(e,"touchend").pipe(m(()=>!1)),b(e,"touchcancel").pipe(m(()=>!1)))).pipe(t?Mr(o=>Ke(+!o*t)):Me,z(!0,e.matches(":hover"))))}function Gi(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)Gi(e,r)}function C(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)Gi(n,o);return n}function Yi(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function lt(e){let t=C("script",{src:e});return I(()=>(document.head.appendChild(t),P(b(t,"load"),b(t,"error").pipe(g(()=>hn(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),D(()=>document.head.removeChild(t)),he(1))))}function Ji(e){let t=C("link",{rel:"stylesheet",href:e});return document.head.appendChild(t),P(b(t,"load"),b(t,"error").pipe(g(()=>hn(()=>new ReferenceError(`Invalid styles: ${e}`))))).pipe(m(()=>{}),he(1))}var Xi=new R,Wl=I(()=>typeof ResizeObserver=="undefined"?lt("https://unpkg.com/resize-observer-polyfill"):F(void 0)).pipe(m(()=>new ResizeObserver(e=>e.forEach(t=>Xi.next(t)))),g(e=>P(Qe,F(e)).pipe(D(()=>e.disconnect()))),ee(1));function He(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Ie(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return Wl.pipe(M(r=>r.observe(t)),g(r=>Xi.pipe(T(n=>n.target===t),D(()=>r.unobserve(t)))),m(()=>He(e)),z(He(e)))}function Ir(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Zi(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 Qi(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 Mt(e){return{x:e.offsetLeft,y:e.offsetTop}}function ea(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function ta(e){return P(b(window,"load"),b(window,"resize")).pipe(nt(0,Ne),m(()=>Mt(e)),z(Mt(e)))}function xn(e){return{x:e.scrollLeft,y:e.scrollTop}}function qt(e){return P(b(e,"scroll"),b(window,"scroll"),b(window,"resize")).pipe(nt(0,Ne),m(()=>xn(e)),z(xn(e)))}var wn=new WeakMap,Vl=I(()=>F(new IntersectionObserver(e=>{for(let t of e){let r=wn.get(t.target);if(r)for(let n of r)n.next(t)}},{threshold:0}))).pipe(g(e=>P(Qe,F(e)).pipe(D(()=>e.disconnect()))),ee(1));function At(e){return I(()=>{let t=new R,r=wn.get(e)||new Set;return r.add(t),wn.set(e,r),Vl.pipe(M(n=>{r.size===1&&n.observe(e)}),g(n=>t.pipe(D(()=>{r.delete(t),r.size===0&&(n.unobserve(e),wn.delete(e))}),m(({isIntersecting:o})=>o))))})}var zl=Object.create,Ha=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Kl=Object.getOwnPropertyNames,Bl=Object.getPrototypeOf,Gl=Object.prototype.hasOwnProperty,Yl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Kl(t))!Gl.call(e,o)&&o!==r&&Ha(e,o,{get:()=>t[o],enumerable:!(n=ql(t,o))||n.enumerable});return e},Xl=(e,t,r)=>(r=e!=null?zl(Bl(e)):{},Jl(t||!e||!e.__esModule?Ha(r,"default",{value:e,enumerable:!0}):r,e)),Zl=Yl((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,l=/^0o[0-7]+$/i,c=parseInt,u=typeof global=="object"&&global&&global.Object===Object&&global,f=typeof self=="object"&&self&&self.Object===Object&&self,p=u||f||Function("return this")(),d=Object.prototype,h=d.toString,v=Math.max,_=Math.min,S=function(){return p.Date.now()};function w(X,k,Z){var Y,ie,Ee,Pe,Ve,ft,it=0,Xt=!1,jt=!1,_r=!0;if(typeof X!="function")throw new TypeError(r);k=we(k)||0,y(Z)&&(Xt=!!Z.leading,jt="maxWait"in Z,Ee=jt?v(we(Z.maxWait)||0,k):Ee,_r="trailing"in Z?!!Z.trailing:_r);function G(Le){var St=Y,xr=ie;return Y=ie=void 0,it=Le,Pe=X.apply(xr,St),Pe}function $(Le){return it=Le,Ve=setTimeout(V,k),Xt?G(Le):Pe}function H(Le){var St=Le-ft,xr=Le-it,oi=k-St;return jt?_(oi,Ee-xr):oi}function W(Le){var St=Le-ft,xr=Le-it;return ft===void 0||St>=k||St<0||jt&&xr>=Ee}function V(){var Le=S();if(W(Le))return Q(Le);Ve=setTimeout(V,H(Le))}function Q(Le){return Ve=void 0,_r&&Y?G(Le):(Y=ie=void 0,Pe)}function ze(){Ve!==void 0&&clearTimeout(Ve),it=0,Y=ft=ie=Ve=void 0}function Zt(){return Ve===void 0?Pe:Q(S())}function Jr(){var Le=S(),St=W(Le);if(Y=arguments,ie=this,ft=Le,St){if(Ve===void 0)return $(ft);if(jt)return Ve=setTimeout(V,k),G(ft)}return Ve===void 0&&(Ve=setTimeout(V,k)),Pe}return Jr.cancel=ze,Jr.flush=Zt,Jr}function y(X){var k=typeof X;return!!X&&(k=="object"||k=="function")}function ye(X){return!!X&&typeof X=="object"}function de(X){return typeof X=="symbol"||ye(X)&&h.call(X)==o}function we(X){if(typeof X=="number")return X;if(de(X))return n;if(y(X)){var k=typeof X.valueOf=="function"?X.valueOf():X;X=y(k)?k+"":k}if(typeof X!="string")return X===0?X:+X;X=X.replace(i,"");var Z=s.test(X);return Z||l.test(X)?c(X.slice(2),Z?2:8):a.test(X)?n:+X}t.exports=w}),In,B,$a,Pa,Ht,ra,Ia,Ra,ho,Sn,jr,ja,Oo,xo,wo,Ql,Mn={},An=[],eu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Wr=Array.isArray;function yt(e,t){for(var r in t)e[r]=t[r];return e}function Lo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Pt(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?In.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 On(e,a,n,o,null)}function On(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:++$a,__i:-1,__u:0};return o==null&&B.vnode!=null&&B.vnode(i),i}function We(e){return e.children}function pt(e,t){this.props=e,this.context=t}function ur(e,t){if(t==null)return e.__?ur(e.__,e.__i+1):null;for(var r;tt&&Ht.sort(Ra),e=Ht.shift(),t=Ht.length,tu(e)}finally{Ht.length=Cn.__r=0}}function Ua(e,t,r,n,o,i,a,s,l,c,u){var f,p,d,h,v,_,S,w=n&&n.__k||An,y=t.length;for(l=ru(r,t,w,l,y),f=0;f0?a=e.__k[i]=On(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,l=i+p,a.__=e,a.__b=e.__b+1,s=null,(c=a.__i=nu(a,r,l,f))!=-1&&(f--,(s=r[c])&&(s.__u|=2)),s==null||s.__v==null?(c==-1&&(o>u?p--:ol?p--:p++,a.__u|=4))):e.__k[i]=null;if(f)for(i=0;i(u?1:0)){for(o=r-1,i=r+1;o>=0||i=0?o--:i++])!=null&&!(2&c.__u)&&s==c.key&&l==c.type)return a}return-1}function oa(e,t,r){t[0]=="-"?e.setProperty(t,r!=null?r:""):e[t]=r==null?"":typeof r!="number"||eu.test(t)?r:r+"px"}function En(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||oa(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||oa(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ja,"$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[jr]=n[jr]:(r[jr]=Oo,e.addEventListener(t,i?wo:xo,i)):e.removeEventListener(t,i?wo:xo,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 ia(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[Sn]==null)t[Sn]=Oo++;else if(t[Sn]0?e:Wr(e)?e.map(Va):e.constructor!==void 0?null:yt({},e)}function ou(e,t,r,n,o,i,a,s,l){var c,u,f,p,d,h,v,_=r.props||Mn,S=t.props,w=t.type;if(w=="svg"?o="http://www.w3.org/2000/svg":w=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c=r.__.length&&r.__.push({}),r.__[e]}function pr(e){return Nr=1,su(Ga,e)}function su(e,t,r){var n=Vr(Bt++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ga(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=ge,!ge.__f)){var o=function(s,l,c){if(!n.__c.__H)return!0;var u=!1,f=n.__c.props!==s;if(n.__c.__H.__.some(function(d){if(d.__N){u=!0;var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(f=!0)}}),i){var p=i.call(this,s,l,c);return u?p||f:p}return!u||f};ge.__f=!0;var i=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.componentWillUpdate=function(s,l,c){if(this.__e){var u=i;i=void 0,o(s,l,c),i=u}a&&a.call(this,s,l,c)},ge.shouldComponentUpdate=o}return n.__N||n.__}function It(e,t){var r=Vr(Bt++,3);!xe.__s&&Ao(r.__H,t)&&(r.__=e,r.u=t,ge.__H.__h.push(r))}function cu(e,t){var r=Vr(Bt++,4);!xe.__s&&Ao(r.__H,t)&&(r.__=e,r.u=t,ge.__h.push(r))}function _t(e){return Nr=5,mr(function(){return{current:e}},[])}function mr(e,t){var r=Vr(Bt++,7);return Ao(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function lu(e,t){return Nr=8,mr(function(){return e},t)}function Ka(){var e=Vr(Bt++,11);if(!e.__){for(var t=ge.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function ma(){for(var e;e=qa.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Eo),t.__h.some(Ba),t.__h=[]}catch(r){t.__h=[],xe.__e(r,e.__v)}}}xe.__b=function(e){ge=null,sa&&sa(e)},xe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fa&&fa(e,t)},xe.__r=function(e){ca&&ca(e),Bt=0;var t=(ge=e.__c).__H;t&&(vo===ge?(t.__h=[],ge.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.length&&ma(),Bt=0)),vo=ge},xe.diffed=function(e){la&&la(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(qa.push(t)!==1&&aa===xe.requestAnimationFrame||((aa=xe.requestAnimationFrame)||uu)(ma)),t.__H.__.some(function(r){r.u&&(r.__H=r.u,r.u=void 0)})),vo=ge=null},xe.__c=function(e,t){t.some(function(r){try{r.__h.some(Eo),r.__h=r.__h.filter(function(n){return!n.__||Ba(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],xe.__e(n,r.__v)}}),ua&&ua(e,t)},xe.unmount=function(e){pa&&pa(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{Eo(n)}catch(o){t=o}}),r.__H=void 0,t&&xe.__e(t,r.__v))};var da=typeof requestAnimationFrame=="function";function uu(e){var t,r=function(){clearTimeout(n),da&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);da&&(t=requestAnimationFrame(r))}function Eo(e){var t=ge,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ge=t}function Ba(e){var t=ge;e.__c=e.__(),ge=t}function Ao(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ga(e,t){return typeof t=="function"?t(e):t}function pu(e,t){for(var r in t)e[r]=t[r];return e}function ha(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 va(e,t){this.props=e,this.context=t}(va.prototype=new pt).isPureReactComponent=!0,va.prototype.shouldComponentUpdate=function(e,t){return ha(this.props,e)||ha(this.state,t)};var ba=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ba&&ba(e)};var c0=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,fu=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)}fu(e,t,r,n)};var ga=B.unmount;function Ya(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=pu({},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 Ya(n,t,r)})),e}function Ja(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ja(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 bo(){this.__u=0,this.o=null,this.__b=null}function Xa(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function Tn(){this.i=null,this.l=null}B.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ga&&ga(e)},(bo.prototype=new pt).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Xa(n.__v),i=!1,a=function(){i||n.__z||(i=!0,r.__R=null,o?o(l):l())};r.__R=a;var s=r.__P;r.__P=null;var l=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Ja(c,c.__c.__P,c.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.__P=s,u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},bo.prototype.componentWillUnmount=function(){this.o=[]},bo.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]=Ya(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&Pt(We,null,e.fallback);return o&&(o.__u&=-33),[Pt(We,null,t.__a?null:e.children),o]};var ya=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 _u=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function xu(e,...t){var r;(r=e==null?void 0:e.addEventListener)==null||r.call(e,...t)}function wu(e,...t){var r;(r=e==null?void 0:e.removeEventListener)==null||r.call(e,...t)}var Eu=(e,t)=>Object.hasOwn(e,t),Tu=()=>!0,Su=()=>!1;function Ou(e=!1){let t=_t(e),r=lu(()=>t.current,[]);return It(()=>(t.current=!0,()=>{t.current=!1}),[]),r}function Lu(e,...t){let r=Ou(),n=Qa(t[1]),o=mr(()=>function(...i){r()&&(typeof n.current=="function"?n.current.apply(this,i):typeof n.current.handleEvent=="function"&&n.current.handleEvent.apply(this,i))},[]);It(()=>{let i=ku(e)?e.current:e;if(!i)return;let a=t.slice(2);return xu(i,t[0],o,...a),()=>{wu(i,t[0],o,...a)}},[e,t[0]])}function ku(e){return e!==null&&typeof e=="object"&&Eu(e,"current")}var Mu=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e?Tu:Su,Au=_u?globalThis:null;function Cu(e,t,r=[],n={}){let{event:o="keydown",target:i=Au,eventOptions:a}=n,s=Qa(t),l=mr(()=>{let c=Mu(e);return function(u){c(u)&&s.current.call(this,u)}},r);Lu(i,o,l,a)}function es(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)$t--;else{for(var e,t=!1;Fr!==void 0;){var r=Fr;for(Fr=void 0,To++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&ns(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(To=0,$t--,t)throw e}}function Ln(e){if($t>0)return e();$t++;try{return e()}finally{Rn()}}var ce=void 0;function ts(e){var t=ce;ce=void 0;try{return e()}finally{ce=t}}var Fr=void 0,$t=0,To=0,Hn=0;function rs(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 $e(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}$e.prototype.brand=$u;$e.prototype.h=function(){return!0};$e.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:ts(function(){var n;(n=t.W)==null||n.call(t)}))};$e.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&&ts(function(){var o;(o=t.Z)==null||o.call(t)}))}};$e.prototype.subscribe=function(e){var t=this;return Yt(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}},{name:"sub"})};$e.prototype.valueOf=function(){return this.value};$e.prototype.toString=function(){return this.value+""};$e.prototype.toJSON=function(){return this.value};$e.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty($e.prototype,"value",{get:function(){var e=rs(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(To>100)throw new Error("Cycle detected");this.v=e,this.i++,Hn++,$t++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Rn()}}}});function xt(e,t){return new $e(e,t)}function ns(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 os(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 is(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 Jt(e,t){$e.call(this,void 0),this.x=e,this.s=void 0,this.g=Hn-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}Jt.prototype=new $e;Jt.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Hn))return!0;if(this.g=Hn,this.f|=1,this.i>0&&!ns(this))return this.f&=-2,!0;var e=ce;try{os(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,is(this),this.f&=-2,!0};Jt.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)}$e.prototype.S.call(this,e)};Jt.prototype.U=function(e){if(this.t!==void 0&&($e.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)}};Jt.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(Jt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=rs(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 Jt(e,t)}function as(e){var t=e.u;if(e.u=void 0,typeof t=="function"){$t++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Co(e),n}finally{ce=r,Rn()}}}function Co(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,as(e)}function Pu(e){if(ce!==this)throw new Error("Out-of-order effect");is(this),ce=e,this.f&=-2,8&this.f&&Co(this),Rn()}function dr(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}dr.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()}};dr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,as(this),os(this),$t++;var e=ce;return ce=this,Pu.bind(this,e)};dr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Fr,Fr=this)};dr.prototype.d=function(){this.f|=8,1&this.f||Co(this)};dr.prototype.dispose=function(){this.d()};function Yt(e,t){var r=new dr(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var ss,Ho,go,cs=[];Yt(function(){ss=this.N})();function hr(e,t){B[e]=t.bind(null,B[e]||function(){})}function $n(e){go&&go(),go=e&&e.S()}function ls(e){var t=this,r=e.data,n=Ru(r);n.value=r;var o=mr(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Ta(function(){var d=n.value.value;return d===0?0:d===!0?"":d||""}),u=Ta(function(){return!Array.isArray(c.value)&&!Pa(c.value)}),f=Yt(function(){if(this.N=us,u.value){var d=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=d)}}),p=t.__$u.d;return t.__$u.d=function(){f(),p.call(this)},[u,c]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}ls.displayName="ReactiveTextNode";Object.defineProperties($e.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ls},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});hr("__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 $e&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});hr("__r",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==We){$n();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(o){var i;return Yt(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i})())),Ho=n,$n(r)}e(t)});hr("__e",function(e,t,r,n){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),$n(),Ho=void 0,e(t,r,n)});hr("diffed",function(e,t){typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),$n(),Ho=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 l in n){var c=i[l],u=n[l];c===void 0?(c=Iu(r,l,u,o),i[l]=c):c.o(u,o)}}}e(t)});function Iu(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=xt(r);return{o:function(a,s){i.value=a,n=s},d:Yt(function(){this.N=us;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}hr("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)});hr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});pt.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 Ru(e,t){return pr(function(){return xt(e,t)})[0]}var ju=function(e){queueMicrotask(function(){queueMicrotask(e)})};function Fu(){Ln(function(){for(var e;e=cs.shift();)ss.call(e)})}function us(){cs.push(this)===1&&(B.requestAnimationFrame||ju)(Fu)}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||ms())}function fr(){Ge.value=Ce(A({},Ge.value),{hideSearch:!Ge.value.hideSearch})}function ms(){Ge.value=Ce(A({},Ge.value),{hideFilters:!Ge.value.hideFilters})}function ds(){return Ge.value.selectedItem}function hs(e){Ge.value=Ce(A({},Ge.value),{selectedItem:Math.max(0,Math.min(e,ut.value.items.length-1))})}function yo(){ut.value=ps(),Ge.value=Ce(A({},Ge.peek()),{selectedItem:0})}function Du(){var e,t;return(t=(e=$o.value)==null?void 0:e.items)!=null?t:[]}function jn(){return typeof Re.value.input=="string"?Re.value.input:""}function Wu(e){Re.value=Ce(A({},Re.value),{page:void 0,input:fs(e,zr())})}function vs(){let e=ut.value.pagination.next;typeof e<"u"&&Re.value.page!==e&&(Re.value=Ce(A({},Re.value),{page:e}))}function _o(e){return zr().includes(e)}function zr(){let e=Re.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=zr(),r=t.indexOf(e);r>-1?t.splice(r,1):t.push(e),Re.value=Ce(A({},Re.value),{page:void 0,input:fs(jn(),t),filter:Ce(A({},Re.value.filter),{input:{type:"operator",data:{operator:"and",operands:t.map(n=>({type:"value",data:{field:"tags",value:n}}))}}})})}function bs(){return ut.value.items}function zu(){return ut.value.pagination.total}function qu(){var e;for(let t of(e=ut.value.aggregations)!=null?e:[])if(t.type==="term")return t.data.value;return[]}function Dr(){return Ge.value.hideSearch}function Ku(){return Ge.value.hideFilters}function Bu(){var e;return(e=Pn.value.highlight)!=null?e:!1}function Gu(e){if(!Bu())return e;let t=e.indexOf("#"),r=t===-1?"":e.slice(t),n=t===-1?e:e.slice(0,t),o=n.indexOf("?"),i=o===-1?n:n.slice(0,o),a=new URLSearchParams(o===-1?"":n.slice(o+1));return a.set("h",jn()),`${i}?${a}${r}`}function Yu(e){Pn.value.navigate?Pn.value.navigate(e):window.location.href=e}var Ge=xt({hideSearch:!0,hideFilters:!0,selectedItem:0}),Pn=xt({}),$o=xt(),Kt=xt(!1),Rr=xt(!1),Re=xt({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),ut=xt(ps());function Ju(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):Ju(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 Zu(e,t=0,r=e.length){let n=++t;e:for(let c=0;n{let i=[],a=[],{onElement:s,onText:l=Qu}=typeof r=="function"?{onElement:r}:r,c=0,u=0;return e(t,(f,p,d,h)=>{if(f===0)i[c++]=l(t,d,h),a[u++]={value:null,depth:p};else if(f&1&&(a[u++]={value:Zu(t,d,h),depth:p}),f&2)for(let v=0;u>=0;v++){let{value:_,depth:S}=a[--u];if(S>p)continue;let w=i.slice(c-=v,c+v);i[c++]=s(_,w),u++;break}},n,o),i.slice(0,c)}}function tp(e){return e.replace(/[&<>]/g,t=>{switch(t.charCodeAt(0)){case 38:return"&";case 60:return"<";case 62:return">"}})}function kn(e){return e.replace(/&(amp|[lg]t);/g,t=>{switch(t.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function rp(e,t){return{start:e.start+t,end:e.end+t,value:e.value}}function np(e,t,r){return e.slice(t,r)}function op(e){let{onHighlight:t,onText:r=np}=typeof e=="function"?{onHighlight:e}:e;return(n,o,i=0,a=n.length)=>{var c;let s=[],l=(c=o==null?void 0:o.ranges)!=null?c:[];for(let u=0,f=i;ua)break;let d=l[u].end;if(di&&s.push(r(n,i,p));let{value:h}=l[u];s.push(t(n,{start:p,end:i=d,value:h}))}return it!==null&&typeof t<"u"&&t!==!1&&!(typeof t=="string"&&t.trim().length===0))}function ys(e,t,r=0,n=e.length){let o=sp(e,t,r,n),i=[],a=[],s=()=>{a.length>0&&(i.push(N("mark",{children:a})),a=[])};return o.forEach((l,c)=>{if(l!==null)if(typeof l=="string"){let u=o[c+1];a.length>0&&/^\s+$/.test(l)&&u!=null&&typeof u!="string"?a.push(l):(s(),i.push(l))}else a.push(N("u",{className:Gt({[ip.fuzzy]:l.fuzzy}),children:l.text})),l.suffix.length>0&&(s(),i.push(l.suffix))}),s(),i}function _s(e,t){let r=gs(e,{onElement(n,o){return n.tag==="a"?N(We,{children:o}):Pt(n.tag,n.attrs,...o)},onText(n,o,i){return ys(n,t==null?void 0:t.value.highlight,o,i)}});return N(We,{children:r})}function pp(e,t){var n;let r=[];for(let o=0,i=0;od.start=s||l.push(Ce(A({},d),{start:Math.max(d.start,a),end:Math.min(d.end,s)}));let c=gs(e,{onElement(d,h){var _;let v=up(h);if(v.length!==0)return lp.has(d.tag)?Pt(d.tag,(_=d.attrs)!=null?_:{},...v):d.tag==="li"?N(We,{children:["\u2013 ",v," "]}):cp.has(d.tag)?N(We,{children:[" ",v," "]}):N(We,{children:v})},onText(d,h,v){let _=Math.max(h,a),S=Math.min(v,s);if(!(_>=S))return ys(d,{ranges:l},_,S)}});return N(We,{children:[a>0&&"...",c]})}var lr;function xs(e,t={highlight:!0}){lr==null||lr(),Pn.value=t;let r=Yt(()=>{let i=$o.value;if(Ln(()=>{Kt.value=!1,Rr.value=!1,Re.value=Ce(A({},Re.peek()),{page:void 0}),yo()}),!i)return;let a;try{a=new Worker(e)}catch(f){Rr.value=!0;return}let s=!0,l=()=>{},c=()=>{s&&(s=!1,l(),a.onmessage=null,a.onerror=null,a.onmessageerror=null,a.terminate())},u=()=>{c(),Ln(()=>{Kt.value=!1,Rr.value=!0,yo()})};a.onmessage=f=>{if(!s)return;let p=f.data;switch(p.type){case 1:Kt.value=!0;break;case 3:if(!Kt.peek())return;typeof p.data.pagination.prev<"u"?ut.value=Ce(A({},ut.value),{pagination:p.data.pagination,items:[...ut.value.items,...p.data.items]}):(ut.value=p.data,hs(0));break;case 4:u();break}},a.onerror=f=>{f.preventDefault(),u()},a.onmessageerror=u,l=Yt(()=>{if(Kt.value)try{a.postMessage({type:2,data:Re.value})}catch(f){u()}});try{a.postMessage({type:0,data:i})}catch(f){u()}return c}),n=!1,o=()=>{n||(n=!0,r(),Ln(()=>{Kt.value=!1,Rr.value=!1,yo()}),lr===o&&(lr=void 0))};return lr=o,o}var Oa={container:"l",hidden:"m"};function mp(e){return N("div",{class:Gt(Oa.container,{[Oa.hidden]:e.hidden}),onClick:()=>fr()})}var La={container:"a",disabled:"c"};function ka(e){return N("button",Ce(A({},e),{type:"button",disabled:e.disabled||!e.onClick,class:Gt(La.container,e.class,{[La.disabled]:e.disabled||!e.onClick}),children:e.children}))}var Ma=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Aa=e=>{let t=dp(e);return t.charAt(0).toUpperCase()+t.slice(1)},hp=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),vp={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"},bp=l=>{var c=l,{color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,children:o,iconNode:i,class:a=""}=c,s=wr(c,["color","size","strokeWidth","absoluteStrokeWidth","children","iconNode","class"]);return Pt("svg",A(Ce(A({},vp),{width:String(t),height:t,stroke:e,"stroke-width":n?Number(r)*24/Number(t):r,class:["lucide",a].join(" ")}),s),[...i.map(([u,f])=>Pt(u,f)),...Ur(o)])},ws=(e,t)=>{let r=a=>{var s=a,{class:n="",children:o}=s,i=wr(s,["class","children"]);return Pt(bp,Ce(A({},i),{iconNode:t,class:hp(`lucide-${Ma(Aa(e))}`,`lucide-${Ma(e)}`,n)}),o)};return r.displayName=Aa(e),r},gp=ws("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]),yp=ws("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),l0=Xl(Zl(),1);function _p({threshold:e=0,root:t=null,rootMargin:r="0%",freezeOnceVisible:n=!1,initialIsIntersecting:o=!1,onChange:i}={}){var a;let[s,l]=pr(null),[c,u]=pr(()=>({isIntersecting:o,entry:void 0})),f=_t();f.current=i;let p=((a=c.entry)==null?void 0:a.isIntersecting)&&n;It(()=>{if(!s||!("IntersectionObserver"in window)||p)return;let v,_=new IntersectionObserver(S=>{let w=Array.isArray(_.thresholds)?_.thresholds:[_.thresholds];S.forEach(y=>{let ye=y.isIntersecting&&w.some(de=>y.intersectionRatio>=de);u({isIntersecting:ye,entry:y}),f.current&&f.current(ye,y),ye&&n&&v&&(v(),v=void 0)})},{threshold:e,root:t,rootMargin:r});return _.observe(s),()=>{_.disconnect()}},[s,JSON.stringify(e),t,r,p,n]);let d=_t(null);It(()=>{var v;!s&&(v=c.entry)!=null&&v.target&&!n&&!p&&d.current!==c.entry.target&&(d.current=c.entry.target,u({isIntersecting:o,entry:void 0}))},[s,c.entry,n,p,o]);let h=[l,!!c.isIntersecting,c.entry];return h.ref=h[0],h.isIntersecting=h[1],h.entry=h[2],h}var bt={container:"e",hidden:"d",content:"v",pop:"g",badge:"y",sidebar:"t",controls:"w",results:"k",loadmore:"z"};function xp(e){let{isIntersecting:t,ref:r}=_p({threshold:0}),n=Ka(),o=`${n}-results`,i=`${n}-filters`,a=Ku();It(()=>{t&&vs()},[t]);let s=_t(null);It(()=>{s.current&&typeof Re.value.page>"u"&&s.current.scrollTo({top:0})},[Re.value]);let l=zr();return N("div",{class:Gt(bt.container,{[bt.hidden]:e.hidden}),children:[N("div",{class:bt.content,children:[N("div",{class:bt.controls,children:[N(ka,{onClick:fr,"aria-label":"Close search",children:N(yp,{"aria-hidden":"true"})}),N(Ep,{resultsId:o}),N(ka,{onClick:ms,"aria-label":"Filters","aria-controls":i,"aria-expanded":!a,children:[N(gp,{"aria-hidden":"true"}),l.length>0&&N("span",{class:bt.badge,"aria-hidden":"true",children:l.length})]})]}),N("div",{class:bt.results,ref:s,tabIndex:-1,children:[N(Tp,{id:o}),N("div",{class:bt.loadmore,ref:r})]})]}),N("div",{id:i,inert:a,"aria-hidden":a,class:Gt(bt.sidebar,{[bt.hidden]:a}),children:N(wp,{})})]})}var gt={container:"j",list:"F",hint:"I",heading:"R",title:"X",item:"i",active:"b",value:"q",count:"A"};function wp(){var a,s;let e=Ka(),t=_t(new Map),[r,n]=pr(),o=[...qu()].sort((l,c)=>c.node.count-l.node.count),i=(s=(a=o.find(({node:l})=>l.value===r))!=null?a:o.find(({node:l})=>_o(l.value)))!=null?s:o[0];return N("div",{class:gt.container,children:[N("h3",{class:gt.heading,children:"Filters"}),N("h4",{id:`${e}-title`,class:gt.title,children:"Tags"}),N("span",{id:`${e}-hint`,class:gt.hint,children:"Use Up and Down arrow keys to move between tags. Press Space or Enter to toggle a tag."}),N("ol",{class:gt.list,role:"toolbar","aria-orientation":"vertical","aria-labelledby":`${e}-title`,"aria-describedby":`${e}-hint`,children:o.map((l,c)=>N("li",{role:"presentation",children:N("button",{type:"button",ref:u=>{u?t.current.set(l.node.value,u):t.current.delete(l.node.value)},tabIndex:l===i?0:-1,class:Gt(gt.item,{[gt.active]:_o(l.node.value)}),"aria-pressed":_o(l.node.value),onFocus:()=>n(l.node.value),onKeyDown:u=>{var p;if(u.altKey||u.ctrlKey||u.metaKey||u.isComposing)return;let f=c;switch(u.key){case"ArrowDown":f=Math.min(c+1,o.length-1);break;case"ArrowUp":f=Math.max(c-1,0);break;case"Home":f=0;break;case"End":f=o.length-1;break;default:return}u.preventDefault(),(p=t.current.get(o[f].node.value))==null||p.focus()},onClick:()=>Vu(l.node.value),children:[N("span",{class:gt.value,children:l.node.value}),N("span",{class:gt.count,children:l.node.count})]})},l.node.value))})]})}var Ca={container:"s"};function Ep(e){let t=bs(),r=ds(),n=!Dr()&&t.length>0,o=n&&t[r]?`${e.resultsId}-${t[r].id}`:void 0;return N("div",{class:Ca.container,children:N("input",{autoFocus:!0,"aria-label":"Search","aria-autocomplete":"list","aria-controls":e.resultsId,"aria-expanded":n,"aria-activedescendant":o,type:"text",class:Ca.content,value:kn(jn()),onInput:i=>Wu(tp(i.currentTarget.value)),onKeyDown:i=>{var a;i.isComposing||i.keyCode===229||i.altKey||i.ctrlKey||i.metaKey||!t.length||(i.key==="ArrowDown"||i.key==="ArrowUp"?(i.preventDefault(),i.key==="ArrowDown"&&r===t.length-1&&vs(),hs(r+(i.key==="ArrowDown"?1:-1))):i.key==="Enter"&&o&&(i.preventDefault(),(a=i.currentTarget.getRootNode().getElementById(o))==null||a.click()))},autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox",dir:"auto"})})}var Ct={container:"h",heading:"f",item:"o",active:"B",wrapper:"C",title:"x",path:"n",excerpt:"p"};function Tp(e){let t=Du(),r=bs(),n=ds(),o=_t([]);It(()=>{let s=o.current[n];s&&s.scrollIntoView({block:"nearest"})},[n,r[n]]);let i=zu(),a="";return Rr.value?a="Search is unavailable. Reload the page to try again.":Kt.value?r.length>0?a=`${new Intl.NumberFormat("en-US").format(i)} ${i===1?"result":"results"}`:(jn().length>0||zr().length>0)&&(a="No results"):a="Loading search\u2026",N(We,{children:[N("div",{class:Ct.heading,role:"status","aria-live":"polite","aria-atomic":"true",children:a}),N("ol",{id:e.id,class:Ct.container,role:"listbox","aria-label":"Search results",children:r.map((s,l)=>{var h;let c=s.matches.find(({field:v})=>v==="text"),u=_s(t[s.id].title,s.matches.find(({field:v})=>v==="title")),f=pp((h=t[s.id].path)!=null?h:[],s.matches.find(({field:v})=>v==="path")),p=fp(t[s.id].text,c),d=Gu(t[s.id].location);return N("li",{role:"presentation",children:N("a",{id:`${e.id}-${s.id}`,role:"option",tabIndex:-1,"aria-selected":l===n,"aria-posinset":l+1,"aria-setsize":i,"aria-labelledby":`${e.id}-${s.id}-title`,"aria-describedby":f.length>0?`${e.id}-${s.id}-path`:void 0,ref:v=>{o.current[l]=v},href:d,onClick:v=>{fr(),!v.button&&!v.metaKey&&!v.ctrlKey&&!v.shiftKey&&!v.altKey&&(v.preventDefault(),Yu(d))},class:Gt(Ct.item,{[Ct.active]:l===n}),children:N("div",{class:Ct.wrapper,children:[N("h2",{id:`${e.id}-${s.id}-title`,class:Ct.title,children:u}),f.length>0&&N("menu",{id:`${e.id}-${s.id}-path`,class:Ct.path,children:f.map((v,_)=>N("li",{children:v},_))}),p&&N("div",{class:Ct.excerpt,children:p})]})})},s.id)})})]})}var Sp={container:"r"};function Op(){let e=Dr(),t=_t(null),r=_t(!1),[n,o]=pr("pointer"),[i,a]=pr(!1);return cu(()=>{let s=t.current;return e?(s.close(),r.current=!1):s.open||s.showModal(),()=>s.close()},[e]),It(()=>{let s=()=>{o("pointer"),a(!1)};return document.addEventListener("pointerdown",s,!0),()=>{document.removeEventListener("pointerdown",s,!0)}},[]),Cu(!0,s=>{["Tab","ArrowDown","ArrowUp","Home","End"].includes(s.key)&&o("keyboard"),!(s.defaultPrevented||s.isComposing||s.keyCode===229||r.current)&&((s.metaKey||s.ctrlKey)&&s.key==="k"?(s.preventDefault(),o("keyboard"),a(!1),fr()):(s.metaKey||s.ctrlKey)&&s.key==="j"&&document.body.classList.toggle("dark"))}),N("dialog",{ref:t,class:Sp.container,"aria-label":"Search","aria-modal":"true","data-input-modality":n,"data-tab-navigation":i,inert:e,"aria-hidden":e,onCompositionStart:()=>{r.current=!0},onCompositionEnd:()=>{r.current=!1},onKeyDownCapture:s=>{if(r.current||s.isComposing||s.keyCode===229){s.stopPropagation(),s.key==="Escape"&&s.preventDefault();return}if(s.key!=="Tab")return;a(!0),o("keyboard");let l=s.currentTarget,c=Array.from(l.querySelectorAll("button, input, [href], [tabindex]")).filter(d=>d.tabIndex>=0&&!d.closest("[inert]")&&!d.matches(":disabled")&&d.getClientRects().length>0),u=c[0],f=c[c.length-1],p=l.getRootNode();s.shiftKey&&p.activeElement===u?(s.preventDefault(),f==null||f.focus()):!s.shiftKey&&p.activeElement===f&&(s.preventDefault(),u==null||u.focus())},onCancel:s=>{s.preventDefault(),!r.current&&!Dr()&&fr()},children:[N(mp,{hidden:e}),N(xp,{hidden:e})]})}function Es(e,t){Nu(e),au(N(Op,{}),t)}function Po(){fr()}function Lp(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 kp(){return P(b(window,"compositionstart").pipe(m(()=>!0)),b(window,"compositionend").pipe(m(()=>!1))).pipe(z(!1))}function Ts(){let e=b(window,"keydown").pipe(m(t=>({mode:Dr()?"global":"search",type:t.key,meta:t.ctrlKey||t.metaKey,claim(){t.preventDefault(),t.stopPropagation()}})),T(({mode:t,type:r})=>{if(t==="global"){let n=kt();if(typeof n!="undefined")return!Lp(n,r)}return!0}),ke());return kp().pipe(g(t=>t?x:e))}function fe(){return new URL(location.href)}function ot(e,t=!1){if(J("navigation.instant")&&!t){let r=C("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function Ss(){return new R}function Os(){return location.hash.slice(1)}function Ls(e){let t=C("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Io(e){return P(b(window,"hashchange"),e).pipe(m(Os),z(Os()),m(decodeURIComponent),ee(1),T(t=>t.length>0))}function ks(e){return Io(e).pipe(m(t=>Se(`[id="${t}"]`)),T(t=>typeof t!="undefined"))}function qr(e){let t=matchMedia(e);return bn(r=>t.addListener(()=>r(t.matches))).pipe(z(t.matches))}function Ms(){let e=matchMedia("print");return P(b(window,"beforeprint").pipe(m(()=>!0)),b(window,"afterprint").pipe(m(()=>!1))).pipe(z(e.matches))}function Ro(e,t){return e.pipe(g(r=>r?t():x))}function jo(e,t){return new j(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 Ye(e,t){return jo(e,t).pipe(g(r=>r.text()),m(r=>JSON.parse(r)),ee(1))}function Fn(e,t){let r=new DOMParser;return jo(e,t).pipe(g(n=>n.text()),m(n=>r.parseFromString(n,"text/html")),ee(1))}function As(e,t){let r=new DOMParser;return jo(e,t).pipe(g(n=>n.text()),m(n=>r.parseFromString(n,"text/xml")),ee(1))}var Fo={drawer:K("[data-md-toggle=drawer]"),search:K("[data-md-toggle=search]")};function Uo(e,t){Fo[e].checked!==t&&Fo[e].click()}function Un(e){let t=Fo[e];return b(t,"change").pipe(m(()=>t.checked),z(t.checked))}function Cs(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function Hs(){return P(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(m(Cs),z(Cs()))}function $s(){return{width:innerWidth,height:innerHeight}}function Ps(){return b(window,"resize",{passive:!0}).pipe(m($s),z($s()))}function Is(){return te([Hs(),Ps()]).pipe(m(([e,t])=>({offset:e,size:t})),ee(1))}function Nn(e,{viewport$:t,header$:r}){let n=t.pipe(be("size")),o=te([n,r]).pipe(m(()=>Mt(e)));return te([r,t,o]).pipe(m(([{height:i},{offset:a,size:s},{x:l,y:c}])=>({offset:{x:a.x-l,y:a.y-c+i},size:s})))}var Mp=K("#__config"),vr=JSON.parse(Mp.textContent),No=new URL(vr.base,fe());No.pathname.endsWith("/")||(No.pathname+="/");vr.base=`${No}`;function je(){return vr}function J(e){return vr.features.includes(e)}function wt(e,t){return typeof t!="undefined"?vr.translations[e].replace("#",t.toString()):vr.translations[e]}function Et(e,t=document){return K(`[data-md-component=${e}]`,t)}function Oe(e,t=document){return L(`[data-md-component=${e}]`,t)}function Ap(e){let t=K(".md-typeset > :first-child",e);return b(t,"click",{once:!0}).pipe(m(()=>K(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function Rs(e){if(!J("announce.dismiss")||!e.childElementCount)return x;if(!e.hidden){let t=K(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return I(()=>{let t=new R;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),Ap(e).pipe(M(r=>t.next(r)),D(()=>t.complete()),m(r=>A({ref:e},r)))})}function Cp(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function js(e,t){let r=new R;return r.subscribe(({hidden:n})=>{e.hidden=n}),Cp(e,t).pipe(M(n=>r.next(n)),D(()=>r.complete()),m(n=>A({ref:e},n)))}function Do(e,t){return t==="inline"?C("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},C("div",{class:"md-tooltip__inner md-typeset"})):C("div",{class:"md-tooltip",id:e,role:"tooltip"},C("div",{class:"md-tooltip__inner md-typeset"}))}function Dn(...e){return C("div",{class:"md-tooltip2",role:"dialog"},C("div",{class:"md-tooltip2__inner md-typeset"},e))}function Fs(...e){return C("div",{class:"md-tooltip2",role:"tooltip"},C("div",{class:"md-tooltip2__inner md-typeset"},e))}function Us(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return C("aside",{class:"md-annotation",tabIndex:0},Do(t),C("a",{href:r,class:"md-annotation__index",tabIndex:-1},C("span",{"data-md-annotation-id":e})))}else return C("aside",{class:"md-annotation",tabIndex:0},Do(t),C("span",{class:"md-annotation__index",tabIndex:-1},C("span",{"data-md-annotation-id":e})))}function Ns(e){return C("button",{class:"md-code__button",title:wt("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function Ds(){return C("button",{class:"md-code__button",title:"Toggle line selection","data-md-type":"select"})}function Ws(){return C("nav",{class:"md-code__nav"})}var Pp=Er(Wo());function zs(e){return C("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>C("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Yi(r):r)))}function Vo(e){let t=`tabbed-control tabbed-control--${e}`;return C("div",{class:t,hidden:!0},C("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function qs(e){return C("div",{class:"md-typeset__scrollwrap"},C("div",{class:"md-typeset__table"},e))}function Ip(e){var n;let t=je(),r=new URL(`../${e.version}/`,t.base);return C("li",{class:"md-version__item"},C("a",{href:`${r}`,class:"md-version__link"},e.title,((n=t.version)==null?void 0:n.alias)&&e.aliases.length>0&&C("span",{class:"md-version__alias"},e.aliases[0])))}function Ks(e,t){var n;let r=je();return e=e.filter(o=>{var i;return!((i=o.properties)!=null&&i.hidden)}),C("div",{class:"md-version"},C("button",{class:"md-version__current","aria-label":wt("select.version")},t.title,((n=r.version)==null?void 0:n.alias)&&t.aliases.length>0&&C("span",{class:"md-version__alias"},t.aliases[0])),C("ul",{class:"md-version__list"},e.map(Ip)))}var Rp=0;function jp(e,t=250){let r=te([cr(e),zt(e,t).pipe(_e(1))]).pipe(m(([o,i])=>o||i),se()),n=I(()=>Qi(e)).pipe(ne(qt),Pr(1),Be(r),T(([o,i])=>i),m(()=>ea(e)));return r.pipe(Cr(o=>o),g(()=>te([r,n])),m(([o,i])=>({active:o,offset:i})),ke())}function Kr(e,t,r=250){let{content$:n,viewport$:o}=t,i=`__tooltip2_${Rp++}`;return I(()=>{let a=new R,s=new ro(!1);a.pipe(ve(),Te(!1)).subscribe(s);let l=s.pipe(_e(1),Mr(u=>Ke(+!u*250,io)),se(),g(u=>u?n:x),M(u=>u.id=i),ke());te([a.pipe(m(({active:u})=>u)),l.pipe(g(u=>zt(u,250)),z(!1))]).pipe(m(u=>u.some(f=>f))).subscribe(s);let c=s.pipe(T(u=>u),ue(l,o),m(([u,f,{size:p}])=>{let d=e.getBoundingClientRect(),h=d.width/2;if(f.role==="tooltip")return{x:h,y:8+d.height};if(d.y>=p.height/2){let{height:v}=He(f);return{x:h,y:-16-v}}else return{x:h,y:16+d.height}}));return te([l,a,c]).subscribe(([u,{offset:f},p])=>{u.style.setProperty("--md-tooltip-host-x",`${f.x}px`),u.style.setProperty("--md-tooltip-host-y",`${f.y}px`),u.style.setProperty("--md-tooltip-x",`${p.x}px`),u.style.setProperty("--md-tooltip-y",`${p.y}px`),u.classList.toggle("md-tooltip2--top",p.y<0),u.classList.toggle("md-tooltip2--bottom",p.y>=0)}),s.pipe(T(u=>u),ue(l,(u,f)=>f),T(u=>u.role==="tooltip")).subscribe(u=>{let f=He(K(":scope > *",u));u.style.setProperty("--md-tooltip-width",`${f.width}px`),u.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(se(),qe(Ne),ue(l)).subscribe(([u,f])=>{f.classList.toggle("md-tooltip2--active",u)}),te([s.pipe(T(u=>u)),l]).subscribe(([u,f])=>{f.role==="dialog"?(e.setAttribute("aria-controls",i),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",i)}),s.pipe(T(u=>!u)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),jp(e,r).pipe(M(u=>a.next(u)),D(()=>a.complete()),m(u=>A({ref:e},u)))})}function tt(e,{viewport$:t},r=document.body){return Kr(e,{content$:new j(n=>{let o=e.title,i=Fs(o);return n.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",o)}}),viewport$:t},0)}function Fp(e,t){let r=I(()=>te([ta(e),qt(t)])).pipe(m(([{x:n,y:o},i])=>{let{width:a,height:s}=He(e);return{x:n-i.x+a/2,y:o-i.y+s/2}}));return cr(e).pipe(g(n=>r.pipe(m(o=>({active:n,offset:o})),he(+!n||1/0))))}function Bs(e,t){let[r,n]=Array.from(e.children),i=(r instanceof HTMLElement?[r,...L("[id]",r)].filter(a=>a.id):[]).map(a=>{let s=document.createElement("span");return s.id=a.id,s.hidden=!0,s});return I(()=>{let a=new R,s=a.pipe(ve(),Te(!0));return a.subscribe({next({offset:l}){e.style.setProperty("--md-tooltip-x",`${l.x}px`),e.style.setProperty("--md-tooltip-y",`${l.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),At(e).pipe(oe(s)).subscribe(l=>{e.toggleAttribute("data-md-visible",l)}),P(a.pipe(T(({active:l})=>l)),a.pipe(et(250),T(({active:l})=>!l))).subscribe({next({active:l}){if(l){let c=i.find(u=>u.parentNode);if(c){c.replaceWith(r);for(let u of i)u.remove()}else r.parentNode||e.prepend(r)}else i.length?r.replaceWith(...i):r.remove()},complete(){for(let l of i)l.remove();r.parentNode||e.prepend(r)}}),a.pipe(nt(16,Ne)).subscribe(({active:l})=>{r.classList.toggle("md-tooltip--active",l)}),a.pipe(Pr(125,Ne),T(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:l})=>l)).subscribe({next(l){l?e.style.setProperty("--md-tooltip-0",`${-l}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),b(n,"click").pipe(oe(s),T(l=>!(l.metaKey||l.ctrlKey))).subscribe(l=>{l.stopPropagation(),l.preventDefault()}),b(n,"mousedown").pipe(oe(s),ue(a)).subscribe(([l,{active:c}])=>{var u;if(l.button!==0||l.metaKey||l.ctrlKey)l.preventDefault();else if(c){l.preventDefault();let f=e.parentElement.closest(".md-annotation");f instanceof HTMLElement?f.focus():(u=kt())==null||u.blur()}}),Fp(e,t).pipe(M(l=>a.next(l)),D(()=>a.complete()),m(l=>A({ref:e},l)))})}function Up(e){let t=je();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 L(r.join(", "),e)}function Np(e){let t=[];for(let r of Up(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,l]=a;if(typeof l=="undefined"){let c=i.splitText(a.index);i=c.splitText(s.length),t.push(c)}else{i.textContent=s,t.push(i);break}}}}return t}function Gs(e,t){t.append(...Array.from(e.childNodes))}function Wn(e,t,{print$:r}){let n=t.closest("[id]"),o=n==null?void 0:n.id,i=new Map;for(let a of Np(t)){let[,s]=a.textContent.match(/\((\d+)\)/);Se(`:scope > li:nth-child(${s})`,e)&&(i.set(s,Us(s,o)),a.replaceWith(i.get(s)))}return i.size===0?x:I(()=>{let a=new R,s=a.pipe(ve(),Te(!0)),l=[];for(let[c,u]of i)l.push([K(".md-typeset",u),K(`:scope > li:nth-child(${c})`,e)]);return r.pipe(oe(s)).subscribe(c=>{e.hidden=!c,e.classList.toggle("md-annotation-list",c);for(let[u,f]of l)c?Gs(u,f):Gs(f,u)}),P(...[...i].map(([,c])=>Bs(c,t))).pipe(D(()=>a.complete()),ke())})}function Ys(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Ys(t)}}function Js(e,t){return I(()=>{let r=Ys(e);return typeof r!="undefined"?Wn(r,e,t):x})}var Zs=Er(qo());var Dp=0,Xs=P(b(window,"keydown").pipe(m(()=>!0)),P(b(window,"keyup"),b(window,"contextmenu")).pipe(m(()=>!1))).pipe(z(!1),ee(1));function Qs(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Qs(t)}}function Wp(e){return Ie(e).pipe(m(({width:t})=>({scrollable:Ir(e).width>t})),be("scrollable"))}function ec(e,{target$:t,print$:r}){let{matches:n}=matchMedia("(hover)"),o=I(()=>{let i=new R,a=i.pipe(fo(1));i.subscribe(({scrollable:h})=>{h&&n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let s=[],l=e.closest("pre"),c=l.id?l:l.closest(".highlight"),u=(c==null?void 0:c.id)||Dp++;l.id=`__code_${u}`;let f=[],p=e.closest(".highlight");if(p instanceof HTMLElement){let h=Qs(p);if(typeof h!="undefined"&&(p.classList.contains("annotate")||J("content.code.annotate"))){let v=Wn(h,e,{print$:r});f.push(te([Ie(p).pipe(m(({width:_,height:S})=>_&&S)),t.pipe(m(_=>p.contains(_)||h.contains(_)),z(!1),se())]).pipe(oe(a),m(([_,S])=>_||S),se(),g(_=>_?v:x)))}}let d=L(":scope > span[id]",e);if(d.length&&(e.classList.add("md-code__content"),e.closest(".select")||J("content.code.select")&&!e.closest(".no-select"))){let h=+d[0].id.split("-").pop(),v=Ds();s.push(v),J("content.tooltips")&&f.push(tt(v,{viewport$}));let _=b(v,"click").pipe(Hr(k=>!k,!1),M(()=>v.blur()),ke());_.subscribe(k=>{v.classList.toggle("md-code__button--active",k)});let S=me(d).pipe(ne(k=>zt(k).pipe(m(Z=>[k,Z]))));_.pipe(g(k=>k?S:x)).subscribe(([k,Z])=>{let Y=Se(".hll.select",k);if(Y&&!Z)Y.replaceWith(...Array.from(Y.childNodes));else if(!Y&&Z){let ie=document.createElement("span");ie.className="hll select",ie.append(...Array.from(k.childNodes).slice(1)),k.append(ie)}});let w=me(d).pipe(ne(k=>b(k,"mousedown").pipe(M(Z=>Z.preventDefault()),m(()=>k)))),y=_.pipe(g(k=>k?w:x),ue(Xs),m(([k,Z])=>{var ie;let Y=d.indexOf(k)+h;if(Z===!1)return[Y,Y];{let Ee=L(".hll",e).map(Pe=>d.indexOf(Pe.parentElement)+h);return(ie=window.getSelection())==null||ie.removeAllRanges(),[Math.min(Y,...Ee),Math.max(Y,...Ee)]}})),ye=Io(x).pipe(T(k=>k.startsWith(`__codelineno-${u}-`))),de=new R;P(ye,de).subscribe(k=>{let[,,Z]=k.split("-"),Y=Z.split(":").map(Ee=>+Ee-h+1);Y.length===1&&Y.push(Y[0]);for(let Ee of L(".hll:not(.select)",e))Ee.replaceWith(...Array.from(Ee.childNodes));let ie=d.slice(Y[0]-1,Y[1]);for(let Ee of ie){let Pe=document.createElement("span");Pe.className="hll",Pe.append(...Array.from(Ee.childNodes).slice(1)),Ee.append(Pe)}}),ye.pipe(he(1),qe(Ae)).subscribe(k=>{if(k.includes(":")){let Z=document.getElementById(k.split(":")[0]);Z&&setTimeout(()=>{let Y=Z,ie=-64;for(;Y!==document.body;)ie+=Y.offsetTop,Y=Y.offsetParent;window.scrollTo({top:ie})},1)}});let X=me(L('a[href^="#__codelineno"]',p)).pipe(ne(k=>b(k,"click").pipe(M(Z=>Z.preventDefault()),m(()=>k)))).pipe(oe(a),ue(Xs),m(([k,Z])=>{let ie=+K(`[id="${k.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(Z===!1)return[ie,ie];{let Ee=L(".hll",e).map(Pe=>+Pe.parentElement.id.split("-").pop());return[Math.min(ie,...Ee),Math.max(ie,...Ee)]}}));P(y,X).subscribe(k=>{let Z=`#__codelineno-${u}-`;k[0]===k[1]?Z+=k[0]:Z+=`${k[0]}:${k[1]}`,history.replaceState({},"",Z),de.next(Z.slice(1))})}if(Zs.default.isSupported()&&(e.closest(".copy")||J("content.code.copy")&&!e.closest(".no-copy"))){let h=Ns(l.id);s.push(h),J("content.tooltips")&&f.push(tt(h,{viewport$}))}if(s.length){let h=Ws();h.append(...s),l.insertBefore(h,e)}return Wp(e).pipe(M(h=>i.next(h)),D(()=>i.complete()),m(h=>A({ref:e},h)),vt(P(...f).pipe(oe(a))))});return J("content.lazy")?At(e).pipe(T(i=>i),he(1),g(()=>o)):o}function Vp(e,{print$:t}){let r=!0;return t.pipe(T(n=>n||!r),M(()=>r=e.open),m(n=>({action:n?"open":"close"})))}function tc(e,t){return I(()=>{let r=new R;return r.subscribe(({action:n})=>{e.toggleAttribute("open",n==="open")}),Vp(e,t).pipe(M(n=>r.next(n)),D(()=>r.complete()),m(n=>A({ref:e},n)))})}var Ko,Bo,Go={},rc=!1;function nc(e,t){return t()?lt(e).pipe(le(()=>F(void 0)),m(()=>{})):F(void 0)}function zp(e){if(!e)return[];if(e.startsWith("[")&&e.endsWith("]"))try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(r=>typeof r=="string")}catch(t){}return e.split(/[,\s]+/).map(t=>t.trim()).filter(t=>t.length>0)}function qp(e){var i,a,s;let t=e.querySelector("[id$='--editor']"),r=e.querySelector("[id$='--run']"),n=e.querySelector("[id$='--clear']"),o=e.querySelector("[id$='--output']");if(!t||!r||!n||!o)throw new Error("Invalid Pyodide structure");return{root:e,editor:t,output:o,run:r,clear:n,source:(a=(i=t.textContent)==null?void 0:i.trimEnd())!=null?a:"",session:(s=e.dataset.session)!=null?s:"default",install:zp(e.dataset.install),minLines:typeof e.dataset.minlines=="undefined"?0:parseInt(e.dataset.minlines),maxLines:typeof e.dataset.maxlines=="undefined"?1/0:parseInt(e.dataset.maxlines)}}function Kp(e,t){return e in Go||(Go[e]=t.globals.get("dict")()),Go[e]}function Gr(e,t){e.textContent=t}function Yo(e){e.textContent=""}function Bp(){return new Promise(e=>requestAnimationFrame(()=>e()))}function Gp(e,t,r,n){return Xe(this,null,function*(){let o=[];e.setStdout({batched(i){o.push(i),Gr(r,`${o.join(` `)} `)}});try{let i=yield e.runPythonAsync(t.getValue(),{globals:Kp(n,e)});typeof i!="undefined"&&i!==null&&(o.push(String(i)),Gr(r,`${o.join(` `)} diff --git a/dist/base.html b/dist/base.html index b8c02810..fe6c3611 100644 --- a/dist/base.html +++ b/dist/base.html @@ -281,7 +281,7 @@ {% endblock %} {% block scripts %} - + {% for script in config.extra_javascript %} {{ script | script_tag }} {% endfor %} diff --git a/src/assets/javascripts/components/search/client/index.js b/src/assets/javascripts/components/search/client/index.js index c3f40a14..f8852e18 100644 --- a/src/assets/javascripts/components/search/client/index.js +++ b/src/assets/javascripts/components/search/client/index.js @@ -1,2 +1,2 @@ -var Co=Object.create;var ya=Object.defineProperty;var _o=Object.getOwnPropertyDescriptor;var vo=Object.getOwnPropertyNames;var wo=Object.getPrototypeOf,yo=Object.prototype.hasOwnProperty;var bo=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var ko=(e,a,t,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let u of vo(a))!yo.call(e,u)&&u!==t&&ya(e,u,{get:()=>a[u],enumerable:!(o=_o(a,u))||o.enumerable});return e};var Po=(e,a,t)=>(t=e!=null?Co(wo(e)):{},ko(a||!e||!e.__esModule?ya(t,"default",{value:e,enumerable:!0}):t,e));var po=bo((Fm,co)=>{var br="Expected a function",no=NaN,kr="[object Symbol]",Pr=/^\s+|\s+$/g,Tr=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,Ar=/^0o[0-7]+$/i,Br=parseInt,Fr=typeof global=="object"&&global&&global.Object===Object&&global,Mr=typeof self=="object"&&self&&self.Object===Object&&self,Dr=Fr||Mr||Function("return this")(),Er=Object.prototype,Or=Er.toString,Ur=Math.max,qr=Math.min,_a=function(){return Dr.Date.now()};function Hr(e,a,t){var o,u,r,l,s,n,d=0,i=!1,m=!1,f=!0;if(typeof e!="function")throw new TypeError(br);a=io(a)||0,va(t)&&(i=!!t.leading,m="maxWait"in t,r=m?Ur(io(t.maxWait)||0,a):r,f="trailing"in t?!!t.trailing:f);function c(_){var q=o,G=u;return o=u=void 0,d=_,l=e.apply(G,q),l}function x(_){return d=_,s=setTimeout(S,a),i?c(_):l}function C(_){var q=_-n,G=_-d,de=a-q;return m?qr(de,r-G):de}function g(_){var q=_-n,G=_-d;return n===void 0||q>=a||q<0||m&&G>=r}function S(){var _=_a();if(g(_))return I(_);s=setTimeout(S,C(_))}function I(_){return s=void 0,f&&o?c(_):(o=u=void 0,l)}function b(){s!==void 0&&clearTimeout(s),d=0,o=n=u=s=void 0}function U(){return s===void 0?l:I(_a())}function A(){var _=_a(),q=g(_);if(o=arguments,u=this,n=_,q){if(s===void 0)return x(n);if(m)return s=setTimeout(S,a),c(n)}return s===void 0&&(s=setTimeout(S,a)),l}return A.cancel=b,A.flush=U,A}function va(e){var a=typeof e;return!!e&&(a=="object"||a=="function")}function Vr(e){return!!e&&typeof e=="object"}function Nr(e){return typeof e=="symbol"||Vr(e)&&Or.call(e)==kr}function io(e){if(typeof e=="number")return e;if(Nr(e))return no;if(va(e)){var a=typeof e.valueOf=="function"?e.valueOf():e;e=va(a)?a+"":a}if(typeof e!="string")return e===0?e:+e;e=e.replace(Pr,"");var t=Rr.test(e);return t||Ar.test(e)?Br(e.slice(2),t?2:8):Tr.test(e)?no:+e}co.exports=Hr});var Be,L,Ra,ea,Y,ba,Aa,Ba,Ze,ke,Le,Fa,aa,je,Ye,To,Te={},Re=[],Ro=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ie=Array.isArray;function J(e,a){for(var t in a)e[t]=a[t];return e}function ta(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function F(e,a,t){var o,u,r,l={};for(r in a)r=="key"?o=a[r]:r=="ref"?u=a[r]:l[r]=a[r];if(arguments.length>2&&(l.children=arguments.length>3?Be.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)l[r]===void 0&&(l[r]=e.defaultProps[r]);return Pe(e,l,o,u,null)}function Pe(e,a,t,o,u){var r={type:e,props:a,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:u??++Ra,__i:-1,__u:0};return u==null&&L.vnode!=null&&L.vnode(r),r}function w(e){return e.children}function B(e,a){this.props=e,this.context=a}function ne(e,a){if(a==null)return e.__?ne(e.__,e.__i+1):null;for(var t;aa&&Y.sort(Ba),e=Y.shift(),a=Y.length,Ao(e)}finally{Y.length=Ae.__r=0}}function Da(e,a,t,o,u,r,l,s,n,d,i){var m,f,c,x,C,g,S,I=o&&o.__k||Re,b=a.length;for(n=Bo(t,a,I,n,b),m=0;m0?l=e.__k[r]=Pe(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):e.__k[r]=l,n=r+f,l.__=e,l.__b=e.__b+1,s=null,(d=l.__i=Fo(l,t,n,m))!=-1&&(m--,(s=t[d])&&(s.__u|=2)),s==null||s.__v==null?(d==-1&&(u>i?f--:un?f--:f++,l.__u|=4))):e.__k[r]=null;if(m)for(r=0;r(i?1:0)){for(u=t-1,r=t+1;u>=0||r=0?u--:r++])!=null&&!(2&d.__u)&&s==d.key&&n==d.type)return l}return-1}function Pa(e,a,t){a[0]=="-"?e.setProperty(a,t??""):e[a]=t==null?"":typeof t!="number"||Ro.test(a)?t:t+"px"}function be(e,a,t,o,u){var r,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||Pa(e.style,a,"");if(t)for(a in t)o&&t[a]==o[a]||Pa(e.style,a,t[a])}else if(a[0]=="o"&&a[1]=="n")r=a!=(a=a.replace(Fa,"$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+r]=t,t?o?t[Le]=o[Le]:(t[Le]=aa,e.addEventListener(a,r?Ye:je,r)):e.removeEventListener(a,r?Ye:je,r);else{if(u=="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 Ta(e){return function(a){if(this.l){var t=this.l[a.type+e];if(a[ke]==null)a[ke]=aa++;else if(a[ke]0?e:Ie(e)?e.map(qa):e.constructor!==void 0?null:J({},e)}function Mo(e,a,t,o,u,r,l,s,n){var d,i,m,f,c,x,C,g=t.props||Te,S=a.props,I=a.type;if(I=="svg"?u="http://www.w3.org/2000/svg":I=="math"?u="http://www.w3.org/1998/Math/MathML":u||(u="http://www.w3.org/1999/xhtml"),r!=null){for(d=0;d=t.__.length&&t.__.push({}),t.__[e]}function H(e){return he=1,Za(Ya,e)}function Za(e,a,t){var o=ge(te++,2);if(o.t=e,!o.__c&&(o.__=[t?t(a):Ya(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 u=function(s,n,d){if(!o.__c.__H)return!0;var i=!1,m=o.__c.props!==s;if(o.__c.__H.__.some(function(c){if(c.__N){i=!0;var x=c.__[0];c.__=c.__N,c.__N=void 0,x!==c.__[0]&&(m=!0)}}),r){var f=r.call(this,s,n,d);return i?f||m:f}return!i||m};v.__f=!0;var r=v.shouldComponentUpdate,l=v.componentWillUpdate;v.componentWillUpdate=function(s,n,d){if(this.__e){var i=r;r=void 0,u(s,n,d),r=i}l&&l.call(this,s,n,d)},v.shouldComponentUpdate=u}return o.__N||o.__}function R(e,a){var t=ge(te++,3);!y.__s&&da(t.__H,a)&&(t.__=e,t.u=a,v.__H.__h.push(t))}function Fe(e,a){var t=ge(te++,4);!y.__s&&da(t.__H,a)&&(t.__=e,t.u=a,v.__h.push(t))}function P(e){return he=5,E(function(){return{current:e}},[])}function E(e,a){var t=ge(te++,7);return da(t.__H,a)&&(t.__=e(),t.__H=a,t.__h=e),t.__}function Me(e,a){return he=8,E(function(){return e},a)}function Se(){var e=ge(te++,11);if(!e.__){for(var a=v.__v;a!==null&&!a.__m&&a.__!==null;)a=a.__;var t=a.__m||(a.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__}function Qa(){for(var e;e=Ja.shift();){var a=e.__H;if(e.__P&&a)try{a.__h.some(sa),a.__h.some(ja),a.__h=[]}catch(t){a.__h=[],y.__e(t,e.__v)}}}y.__b=function(e){v=null,Na&&Na(e)},y.__=function(e,a){e&&a.__k&&a.__k.__m&&(e.__m=a.__k.__m),Xa&&Xa(e,a)},y.__r=function(e){Wa&&Wa(e),te=0;var a=(v=e.__c).__H;a&&(la===v?(a.__h=[],v.__h=[],a.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(a.__h.length&&Qa(),te=0)),la=v},y.diffed=function(e){za&&za(e);var a=e.__c;a&&a.__H&&(a.__H.__h.length&&(Ja.push(a)!==1&&Va===y.requestAnimationFrame||((Va=y.requestAnimationFrame)||Eo)(Qa)),a.__H.__.some(function(t){t.u&&(t.__H=t.u,t.u=void 0)})),la=v=null},y.__c=function(e,a){a.some(function(t){try{t.__h.some(sa),t.__h=t.__h.filter(function(o){return!o.__||ja(o)})}catch(o){a.some(function(u){u.__h&&(u.__h=[])}),a=[],y.__e(o,t.__v)}}),Ga&&Ga(e,a)},y.unmount=function(e){Ka&&Ka(e);var a,t=e.__c;t&&t.__H&&(t.__H.__.some(function(o){try{sa(o)}catch(u){a=u}}),t.__H=void 0,a&&y.__e(a,t.__v))};var $a=typeof requestAnimationFrame=="function";function Eo(e){var a,t=function(){clearTimeout(o),$a&&cancelAnimationFrame(a),setTimeout(e)},o=setTimeout(t,35);$a&&(a=requestAnimationFrame(t))}function sa(e){var a=v,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),v=a}function ja(e){var a=v;e.__c=e.__(),v=a}function da(e,a){return!e||e.length!==a.length||a.some(function(t,o){return t!==e[o]})}function Ya(e,a){return typeof a=="function"?a(e):a}function qo(e,a){for(var t in a)e[t]=a[t];return e}function et(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 at(e,a){this.props=e,this.context=a}(at.prototype=new B).isPureReactComponent=!0,at.prototype.shouldComponentUpdate=function(e,a){return et(this.props,e)||et(this.state,a)};var tt=L.__b;L.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),tt&&tt(e)};var lu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var Ho=L.__e;L.__e=function(e,a,t,o){if(e.then){for(var u,r=a;r=r.__;)if((u=r.__c)&&u.__c)return a.__e==null&&(a.__e=t.__e,a.__k=t.__k||[]),u.__c(e,a)}Ho(e,a,t,o)};var ot=L.unmount;function ft(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=qo({},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 ft(o,a,t)})),e}function nt(e,a,t){return e&&t&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return nt(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 fa(){this.__u=0,this.o=null,this.__b=null}function it(e){var a=e.__&&e.__.__c;return a&&a.__a&&a.__a(e)}function De(){this.i=null,this.l=null}L.unmount=function(e){var a=e.__c;a&&(a.__z=!0),a&&a.__R&&a.__R(),a&&32&e.__u&&(e.type=null),ot&&ot(e)},(fa.prototype=new B).__c=function(e,a){var t=a.__c,o=this;o.o==null&&(o.o=[]),o.o.push(t);var u=it(o.__v),r=!1,l=function(){r||o.__z||(r=!0,t.__R=null,u?u(n):n())};t.__R=l;var s=t.__P;t.__P=null;var n=function(){if(!--o.__u){if(o.state.__a){var d=o.state.__a;o.__v.__k[0]=nt(d,d.__c.__P,d.__c.__O)}var i;for(o.setState({__a:o.__b=null});i=o.o.pop();)i.__P=s,i.forceUpdate()}};o.__u++||32&a.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(l,l)},fa.prototype.componentWillUnmount=function(){this.o=[]},fa.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]=ft(this.__b,t,o.__O=o.__P)}this.__b=null}var u=a.__a&&F(w,null,e.fallback);return u&&(u.__u&=-33),[F(w,null,a.__a?null:e.children),u]};var rt=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 pt=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function mt(e,...a){e?.addEventListener?.(...a)}function xt(e,...a){e?.removeEventListener?.(...a)}var Lt=(e,a)=>Object.hasOwn(e,a),It=()=>!0,ht=()=>!1;function gt(e=!1){let a=P(e),t=Me(()=>a.current,[]);return R(()=>(a.current=!0,()=>{a.current=!1}),[]),t}function St(e,...a){let t=gt(),o=Ee(a[1]),u=E(()=>function(...r){t()&&(typeof o.current=="function"?o.current.apply(this,r):typeof o.current.handleEvent=="function"&&o.current.handleEvent.apply(this,r))},[]);R(()=>{let r=Qo(e)?e.current:e;if(!r)return;let l=a.slice(2);return mt(r,a[0],u,...l),()=>{xt(r,a[0],u,...l)}},[e,a[0]])}function Qo(e){return e!==null&&typeof e=="object"&&Lt(e,"current")}var $o=e=>typeof e=="function"?e:typeof e=="string"?a=>a.key===e:e?It:ht,Jo=pt?globalThis:null;function Ct(e,a,t=[],o={}){let{event:u="keydown",target:r=Jo,eventOptions:l}=o,s=Ee(a),n=E(()=>{let d=$o(e);return function(i){d(i)&&s.current.call(this,i)}},t);St(r,u,n,l)}function _t(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(a=0;a1)ee--;else{for(var e,a=!1;Ce!==void 0;){var t=Ce;for(Ce=void 0,na++;t!==void 0;){var o=t.o;if(t.o=void 0,t.f&=-3,!(8&t.f)&&wt(t))try{t.c()}catch(u){a||(e=u,a=!0)}t=o}}if(na=0,ee--,a)throw e}}function oe(e){if(ee>0)return e();ee++;try{return e()}finally{Ue()}}var h=void 0;function ia(e){var a=h;h=void 0;try{return e()}finally{h=a}}var Ce=void 0,ee=0,na=0,Oe=0;function vt(e){if(h!==void 0){var a=e.n;if(a===void 0||a.t!==h)return a={i:0,S:e,p:h.s,n:void 0,t:h,e:void 0,x:void 0,r:a},h.s!==void 0&&(h.s.n=a),h.s=a,e.n=a,32&h.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=h.s,a.n=void 0,h.s.n=a,h.s=a),a}}function k(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}k.prototype.brand=jo;k.prototype.h=function(){return!0};k.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:ia(function(){var o;(o=a.W)==null||o.call(a)}))};k.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&&ia(function(){var u;(u=a.Z)==null||u.call(a)}))}};k.prototype.subscribe=function(e){var a=this;return X(function(){var t=a.value,o=h;h=void 0;try{e(t)}finally{h=o}},{name:"sub"})};k.prototype.valueOf=function(){return this.value};k.prototype.toString=function(){return this.value+""};k.prototype.toJSON=function(){return this.value};k.prototype.peek=function(){var e=h;h=void 0;try{return this.value}finally{h=e}};Object.defineProperty(k.prototype,"value",{get:function(){var e=vt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(na>100)throw new Error("Cycle detected");this.v=e,this.i++,Oe++,ee++;try{for(var a=this.t;a!==void 0;a=a.x)a.t.N()}finally{Ue()}}}});function O(e,a){return new k(e,a)}function wt(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 yt(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 bt(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 re(e,a){k.call(this,void 0),this.x=e,this.s=void 0,this.g=Oe-1,this.f=4,this.W=a?.watched,this.Z=a?.unwatched,this.name=a?.name}re.prototype=new k;re.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Oe))return!0;if(this.g=Oe,this.f|=1,this.i>0&&!wt(this))return this.f&=-2,!0;var e=h;try{yt(this),h=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 h=e,bt(this),this.f&=-2,!0};re.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)}k.prototype.S.call(this,e)};re.prototype.U=function(e){if(this.t!==void 0&&(k.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)}};re.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(re.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=vt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function qe(e,a){return new re(e,a)}function kt(e){var a=e.u;if(e.u=void 0,typeof a=="function"){ee++;var t=h;h=void 0;try{a()}catch(o){throw e.f&=-2,e.f|=8,ca(e),o}finally{h=t,Ue()}}}function ca(e){for(var a=e.s;a!==void 0;a=a.n)a.S.U(a);e.x=void 0,e.s=void 0,kt(e)}function Yo(e){if(h!==this)throw new Error("Out-of-order effect");bt(this),h=e,this.f&=-2,8&this.f&&ca(this),Ue()}function ie(e,a){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=a?.name}ie.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()}};ie.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,kt(this),yt(this),ee++;var e=h;return h=this,Yo.bind(this,e)};ie.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ce,Ce=this)};ie.prototype.d=function(){this.f|=8,1&this.f||ca(this)};ie.prototype.dispose=function(){this.d()};function X(e,a){var t=new ie(e,a);try{t.c()}catch(u){throw t.d(),u}var o=t.d.bind(t);return o[Symbol.dispose]=o,o}var Pt,ma,pa;var Tt=[];X(function(){Pt=this.N})();function ce(e,a){L[e]=a.bind(null,L[e]||function(){})}function He(e){pa&&pa(),pa=e&&e.S()}function Rt(e){var a=this,t=e.data,o=ar(t);o.value=t;var u=E(function(){for(var s=a,n=a.__v;n=n.__;)if(n.__c){n.__c.__$f|=4;break}var d=qe(function(){var c=o.value.value;return c===0?0:c===!0?"":c||""}),i=qe(function(){return!Array.isArray(d.value)&&!ea(d.value)}),m=X(function(){if(this.N=At,i.value){var c=d.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=c)}}),f=a.__$u.d;return a.__$u.d=function(){m(),f.call(this)},[i,d]},[]),r=u[0],l=u[1];return r.value?l.peek():l.value}Rt.displayName="ReactiveTextNode";Object.defineProperties(k.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Rt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});ce("__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 u in o)if(u!=="children"){var r=o[u];r instanceof k&&(t||(a.__np=t={}),t[u]=r,o[u]=r.peek())}}e(a)});ce("__r",function(e,a){if(typeof a.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(a),a.type!==w){He();var t,o=a.__c;o&&(o.__$f&=-2,(t=o.__$u)===void 0&&(o.__$u=t=function(u){var r;return X(function(){r=this}),r.c=function(){o.__$f|=1,o.setState({})},r}())),ma=o,He(t)}e(a)});ce("__e",function(e,a,t,o){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),He(),ma=void 0,e(a,t,o)});ce("diffed",function(e,a){typeof a.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),He(),ma=void 0;var t;if(typeof a.type=="string"&&(t=a.__e)){var o=a.__np,u=a.props;if(o){var r=t.U;if(r)for(var l in r){var s=r[l];s!==void 0&&!(l in o)&&(s.d(),r[l]=void 0)}else r={},t.U=r;for(var n in o){var d=r[n],i=o[n];d===void 0?(d=er(t,n,i,u),r[n]=d):d.o(i,u)}}}e(a)});function er(e,a,t,o){var u=a in e&&e.ownerSVGElement===void 0,r=O(t);return{o:function(l,s){r.value=l,o=s},d:X(function(){this.N=At;var l=r.value.value;o[a]!==l&&(o[a]=l,u?e[a]=l:l?e.setAttribute(a,l):e.removeAttribute(a))})}}ce("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 u in o){var r=o[u];r&&r.d()}}}}else{var l=a.__c;if(l){var s=l.__$u;s&&(l.__$u=void 0,s.d())}}e(a)});ce("__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 u in a)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var r=2&this.__$f;if(!(o||r||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 ar(e,a){return H(function(){return O(e,a)})[0]}var tr=function(e){queueMicrotask(function(){queueMicrotask(e)})};function or(){oe(function(){for(var e;e=Tt.shift();)Pt.call(e)})}function At(){Tt.push(this)===1&&(L.requestAnimationFrame||tr)(or)}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||xa())}function W(){D.value={...D.value,hideSearch:!D.value.hideSearch}}function xa(){D.value={...D.value,hideFilters:!D.value.hideFilters}}function Ne(){return D.value.selectedItem}function We(e){D.value={...D.value,selectedItem:Math.max(0,Math.min(e,z.value.items.length-1))}}function ze(){z.value=Dt(),D.value={...D.peek(),selectedItem:0}}function Ut(){return Qe.value?.items??[]}function pe(){return typeof T.value.input=="string"?T.value.input:""}function qt(e){T.value={...T.value,page:void 0,input:Et(e,le())}}function Ge(){let e=z.value.pagination.next;typeof e<"u"&&T.value.page!==e&&(T.value={...T.value,page:e})}function Ke(e){return le().includes(e)}function le(){let e=T.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 Ht(e){let a=le(),t=a.indexOf(e);t>-1?a.splice(t,1):a.push(e),T.value={...T.value,page:void 0,input:Et(pe(),a),filter:{...T.value.filter,input:{type:"operator",data:{operator:"and",operands:a.map(o=>({type:"value",data:{field:"tags",value:o}}))}}}}}function Xe(){return z.value.items}function Vt(){return z.value.pagination.total}function Nt(){for(let e of z.value.aggregations??[])if(e.type==="term")return e.data.value;return[]}function me(){return D.value.hideSearch}function Wt(){return D.value.hideFilters}function rr(){return _e.value.highlight??!1}function zt(e){if(!rr())return e;let a=e.indexOf("#"),t=a===-1?"":e.slice(a),o=a===-1?e:e.slice(0,a),u=o.indexOf("?"),r=u===-1?o:o.slice(0,u),l=new URLSearchParams(u===-1?"":o.slice(u+1));return l.set("h",pe()),`${r}?${l}${t}`}function Gt(e){_e.value.navigate?_e.value.navigate(e):window.location.href=e}var D=O({hideSearch:!0,hideFilters:!0,selectedItem:0}),_e=O({}),Qe=O(),Z=O(!1),se=O(!1),T=O({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),z=O(Dt());function lr(e,a,t){for(let o=0;at&&a(0,u,t,t=r);continue;case 62:e.charCodeAt(t+1)===47?a(2,--u,t,t=r+1):lr(e,t,o)?a(3,u,t,t=r+1):a(1,u++,t,t=r+1)}r>t&&a(0,u,t,r)}function Qt(e,a=0,t=e.length){let o=++a;e:for(let d=0;o{let r=[],l=[],{onElement:s,onText:n=sr}=typeof t=="function"?{onElement:t}:t,d=0,i=0;return e(a,(m,f,c,x)=>{if(m===0)r[d++]=n(a,c,x),l[i++]={value:null,depth:f};else if(m&1&&(l[i++]={value:Qt(a,c,x),depth:f}),m&2)for(let C=0;i>=0;C++){let{value:g,depth:S}=l[--i];if(S>f)continue;let I=r.slice(d-=C,d+C);r[d++]=s(g,I),i++;break}},o,u),r.slice(0,d)}}function Jt(e){return e.replace(/[&<>]/g,a=>{switch(a.charCodeAt(0)){case 38:return"&";case 60:return"<";case 62:return">"}})}function xe(e){return e.replace(/&(amp|[lg]t);/g,a=>{switch(a.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function Zt(e,a){return{start:e.start+a,end:e.end+a,value:e.value}}function xr(e,a,t){return e.slice(a,t)}function Yt(e){let{onHighlight:a,onText:t=xr}=typeof e=="function"?{onHighlight:e}:e;return(o,u,r=0,l=o.length)=>{let s=[],n=u?.ranges??[];for(let d=0,i=r;dl)break;let f=n[d].end;if(fr&&s.push(t(o,r,m));let{value:c}=n[d];s.push(a(o,{start:m,end:r=f,value:c}))}return ra!==null&&typeof a<"u"&&a!==!1&&!(typeof a=="string"&&a.trim().length===0))}function to(e,a,t=0,o=e.length){let u=hr(e,a,t,o),r=[],l=[],s=()=>{l.length>0&&(r.push(p("mark",{children:l})),l=[])};return u.forEach((n,d)=>{if(n!==null)if(typeof n=="string"){let i=u[d+1];l.length>0&&/^\s+$/.test(n)&&i!=null&&typeof i!="string"?l.push(n):(s(),r.push(n))}else l.push(p("u",{className:M({[eo.fuzzy]:n.fuzzy}),children:n.text})),n.suffix.length>0&&(s(),r.push(n.suffix))}),s(),r}function La(e,a){let t=ao(e,{onElement(o,u){return o.tag==="a"?p(w,{children:u}):F(o.tag,o.attrs,...u)},onText(o,u,r){return to(o,a?.value.highlight,u,r)}});return p(w,{children:t})}function oo(e,a){let t=[];for(let o=0,u=0;oi.start=s||n.push({...i,start:Math.max(i.start,l),end:Math.min(i.end,s)});let d=ao(e,{onElement(i,m){let f=Cr(m);if(f.length!==0)return Sr.has(i.tag)?F(i.tag,i.attrs??{},...f):i.tag==="li"?p(w,{children:["\u2013 ",f," "]}):gr.has(i.tag)?p(w,{children:[" ",f," "]}):p(w,{children:f})},onText(i,m,f){let c=Math.max(m,l),x=Math.min(f,s);if(!(c>=x))return to(i,{ranges:n},c,x)}});return p(w,{children:[l>0&&"...",d]})}var $e;function _r(e,a={highlight:!0}){$e?.(),_e.value=a;let t=X(()=>{let r=Qe.value;if(oe(()=>{Z.value=!1,se.value=!1,T.value={...T.peek(),page:void 0},ze()}),!r)return;let l;try{l=new Worker(e)}catch{se.value=!0;return}let s=!0,n=()=>{},d=()=>{s&&(s=!1,n(),l.onmessage=null,l.onerror=null,l.onmessageerror=null,l.terminate())},i=()=>{d(),oe(()=>{Z.value=!1,se.value=!0,ze()})};l.onmessage=m=>{if(!s)return;let f=m.data;switch(f.type){case 1:Z.value=!0;break;case 3:if(!Z.peek())return;typeof f.data.pagination.prev<"u"?z.value={...z.value,pagination:f.data.pagination,items:[...z.value.items,...f.data.items]}:(z.value=f.data,We(0));break;case 4:i();break}},l.onerror=m=>{m.preventDefault(),i()},l.onmessageerror=i,n=X(()=>{if(Z.value)try{l.postMessage({type:2,data:T.value})}catch{i()}});try{l.postMessage({type:0,data:r})}catch{i()}return d}),o=!1,u=()=>{o||(o=!0,t(),oe(()=>{Z.value=!1,se.value=!1,ze()}),$e===u&&($e=void 0))};return $e=u,u}var Ia={container:"l",hidden:"m"};function uo(e){return p("div",{class:M(Ia.container,{[Ia.hidden]:e.hidden}),onClick:()=>W()})}var ha={container:"a",disabled:"c"};function ga(e){return p("button",{...e,type:"button",disabled:e.disabled||!e.onClick,class:M(ha.container,e.class,{[ha.disabled]:e.disabled||!e.onClick}),children:e.children})}var Sa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,o)=>o?o.toUpperCase():t.toLowerCase()),Ca=e=>{let a=yr(e);return a.charAt(0).toUpperCase()+a.slice(1)},lo=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();var so={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 fo=({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,children:u,iconNode:r,class:l="",...s})=>F("svg",{...so,width:String(a),height:a,stroke:e,"stroke-width":o?Number(t)*24/Number(a):t,class:["lucide",l].join(" "),...s},[...r.map(([n,d])=>F(n,d)),...ae(u)]);var Je=(e,a)=>{let t=({class:o="",children:u,...r})=>F(fo,{...r,iconNode:a,class:lo(`lucide-${Sa(Ca(e))}`,`lucide-${Sa(e)}`,o)},u);return t.displayName=Ca(e),t};var we=Je("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]);var ye=Je("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var Wr=Po(po(),1);function mo({threshold:e=0,root:a=null,rootMargin:t="0%",freezeOnceVisible:o=!1,initialIsIntersecting:u=!1,onChange:r}={}){var l;let[s,n]=H(null),[d,i]=H(()=>({isIntersecting:u,entry:void 0})),m=P();m.current=r;let f=((l=d.entry)==null?void 0:l.isIntersecting)&&o;R(()=>{if(!s||!("IntersectionObserver"in window)||f)return;let C,g=new IntersectionObserver(S=>{let I=Array.isArray(g.thresholds)?g.thresholds:[g.thresholds];S.forEach(b=>{let U=b.isIntersecting&&I.some(A=>b.intersectionRatio>=A);i({isIntersecting:U,entry:b}),m.current&&m.current(U,b),U&&o&&C&&(C(),C=void 0)})},{threshold:e,root:a,rootMargin:t});return g.observe(s),()=>{g.disconnect()}},[s,JSON.stringify(e),a,t,f,o]);let c=P(null);R(()=>{var C;!s&&((C=d.entry)!=null&&C.target)&&!o&&!f&&c.current!==d.entry.target&&(c.current=d.entry.target,i({isIntersecting:u,entry:void 0}))},[s,d.entry,o,f,u]);let x=[n,!!d.isIntersecting,d.entry];return x.ref=x[0],x.isIntersecting=x[1],x.entry=x[2],x}var Q={container:"e",hidden:"d",content:"v",pop:"g",badge:"y",sidebar:"t",controls:"w",results:"k",loadmore:"z"};function xo(e){let{isIntersecting:a,ref:t}=mo({threshold:0}),o=Se(),u=`${o}-results`,r=`${o}-filters`,l=Wt();R(()=>{a&&Ge()},[a]);let s=P(null);R(()=>{s.current&&typeof T.value.page>"u"&&s.current.scrollTo({top:0})},[T.value]);let n=le();return p("div",{class:M(Q.container,{[Q.hidden]:e.hidden}),children:[p("div",{class:Q.content,children:[p("div",{class:Q.controls,children:[p(ga,{onClick:W,"aria-label":"Close search",children:p(ye,{"aria-hidden":"true"})}),p(Io,{resultsId:u}),p(ga,{onClick:xa,"aria-label":"Filters","aria-controls":r,"aria-expanded":!l,children:[p(we,{"aria-hidden":"true"}),n.length>0&&p("span",{class:Q.badge,"aria-hidden":"true",children:n.length})]})]}),p("div",{class:Q.results,ref:s,tabIndex:-1,children:[p(ho,{id:u}),p("div",{class:Q.loadmore,ref:t})]})]}),p("div",{id:r,inert:l,"aria-hidden":l,class:M(Q.sidebar,{[Q.hidden]:l}),children:p(Lo,{})})]})}var $={container:"j",list:"F",hint:"I",heading:"R",title:"X",item:"i",active:"b",value:"q",count:"A"};function Lo(){let e=Se(),a=P(new Map),[t,o]=H(),u=[...Nt()].sort((l,s)=>s.node.count-l.node.count),r=u.find(({node:l})=>l.value===t)??u.find(({node:l})=>Ke(l.value))??u[0];return p("div",{class:$.container,children:[p("h3",{class:$.heading,children:"Filters"}),p("h4",{id:`${e}-title`,class:$.title,children:"Tags"}),p("span",{id:`${e}-hint`,class:$.hint,children:"Use Up and Down arrow keys to move between tags. Press Space or Enter to toggle a tag."}),p("ol",{class:$.list,role:"toolbar","aria-orientation":"vertical","aria-labelledby":`${e}-title`,"aria-describedby":`${e}-hint`,children:u.map((l,s)=>p("li",{role:"presentation",children:p("button",{type:"button",ref:n=>{n?a.current.set(l.node.value,n):a.current.delete(l.node.value)},tabIndex:l===r?0:-1,class:M($.item,{[$.active]:Ke(l.node.value)}),"aria-pressed":Ke(l.node.value),onFocus:()=>o(l.node.value),onKeyDown:n=>{if(n.altKey||n.ctrlKey||n.metaKey||n.isComposing)return;let d=s;switch(n.key){case"ArrowDown":d=Math.min(s+1,u.length-1);break;case"ArrowUp":d=Math.max(s-1,0);break;case"Home":d=0;break;case"End":d=u.length-1;break;default:return}n.preventDefault(),a.current.get(u[d].node.value)?.focus()},onClick:()=>Ht(l.node.value),children:[p("span",{class:$.value,children:l.node.value}),p("span",{class:$.count,children:l.node.count})]})},l.node.value))})]})}var wa={container:"s"};function Io(e){let a=Xe(),t=Ne(),o=!me()&&a.length>0,u=o&&a[t]?`${e.resultsId}-${a[t].id}`:void 0;return p("div",{class:wa.container,children:p("input",{autoFocus:!0,"aria-label":"Search","aria-autocomplete":"list","aria-controls":e.resultsId,"aria-expanded":o,"aria-activedescendant":u,type:"text",class:wa.content,value:xe(pe()),onInput:r=>qt(Jt(r.currentTarget.value)),onKeyDown:r=>{r.isComposing||r.keyCode===229||r.altKey||r.ctrlKey||r.metaKey||!a.length||(r.key==="ArrowDown"||r.key==="ArrowUp"?(r.preventDefault(),r.key==="ArrowDown"&&t===a.length-1&&Ge(),We(t+(r.key==="ArrowDown"?1:-1))):r.key==="Enter"&&u&&(r.preventDefault(),r.currentTarget.getRootNode().getElementById(u)?.click()))},autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox",dir:"auto"})})}var j={container:"h",heading:"f",item:"o",active:"B",wrapper:"C",title:"x",path:"n",excerpt:"p"};function ho(e){let a=Ut(),t=Xe(),o=Ne(),u=P([]);R(()=>{let s=u.current[o];s&&s.scrollIntoView({block:"nearest"})},[o,t]);let r=Vt(),l="";return se.value?l="Search is unavailable. Reload the page to try again.":Z.value?t.length>0?l=`${new Intl.NumberFormat("en-US").format(r)} ${r===1?"result":"results"}`:(pe().length>0||le().length>0)&&(l="No results"):l="Loading search\u2026",p(w,{children:[p("div",{class:j.heading,role:"status","aria-live":"polite","aria-atomic":"true",children:l}),p("ol",{id:e.id,class:j.container,role:"listbox","aria-label":"Search results",children:t.map((s,n)=>{let d=s.matches.find(({field:x})=>x==="text"),i=La(a[s.id].title,s.matches.find(({field:x})=>x==="title")),m=oo(a[s.id].path??[],s.matches.find(({field:x})=>x==="path")),f=ro(a[s.id].text,d),c=zt(a[s.id].location);return p("li",{role:"presentation",children:p("a",{id:`${e.id}-${s.id}`,role:"option",tabIndex:-1,"aria-selected":n===o,"aria-posinset":n+1,"aria-setsize":r,"aria-labelledby":`${e.id}-${s.id}-title`,"aria-describedby":m.length>0?`${e.id}-${s.id}-path`:void 0,ref:x=>{u.current[n]=x},href:c,onClick:x=>{W(),!x.button&&!x.metaKey&&!x.ctrlKey&&!x.shiftKey&&!x.altKey&&(x.preventDefault(),Gt(c))},class:M(j.item,{[j.active]:n===o}),children:p("div",{class:j.wrapper,children:[p("h2",{id:`${e.id}-${s.id}-title`,class:j.title,children:i}),m.length>0&&p("menu",{id:`${e.id}-${s.id}-path`,class:j.path,children:m.map((x,C)=>p("li",{children:x},C))}),f&&p("div",{class:j.excerpt,children:f})]})})},s.id)})})]})}var go={container:"r"};function So(){let e=me(),a=P(null),t=P(!1),[o,u]=H("pointer"),[r,l]=H(!1);return Fe(()=>{let s=a.current;return e?(s.close(),t.current=!1):s.open||s.showModal(),()=>s.close()},[e]),R(()=>{let s=()=>{u("pointer"),l(!1)};return document.addEventListener("pointerdown",s,!0),()=>{document.removeEventListener("pointerdown",s,!0)}},[]),Ct(!0,s=>{["Tab","ArrowDown","ArrowUp","Home","End"].includes(s.key)&&u("keyboard"),!(s.defaultPrevented||s.isComposing||s.keyCode===229||t.current)&&((s.metaKey||s.ctrlKey)&&s.key==="k"?(s.preventDefault(),u("keyboard"),l(!1),W()):(s.metaKey||s.ctrlKey)&&s.key==="j"&&document.body.classList.toggle("dark"))}),p("dialog",{ref:a,class:go.container,"aria-label":"Search","aria-modal":"true","data-input-modality":o,"data-tab-navigation":r,inert:e,"aria-hidden":e,onCompositionStart:()=>{t.current=!0},onCompositionEnd:()=>{t.current=!1},onKeyDownCapture:s=>{if(t.current||s.isComposing||s.keyCode===229){s.stopPropagation(),s.key==="Escape"&&s.preventDefault();return}if(s.key!=="Tab")return;l(!0),u("keyboard");let n=s.currentTarget,d=Array.from(n.querySelectorAll("button, input, [href], [tabindex]")).filter(c=>c.tabIndex>=0&&!c.closest("[inert]")&&!c.matches(":disabled")&&c.getClientRects().length>0),i=d[0],m=d[d.length-1],f=n.getRootNode();s.shiftKey&&f.activeElement===i?(s.preventDefault(),m?.focus()):!s.shiftKey&&f.activeElement===m&&(s.preventDefault(),i?.focus())},onCancel:s=>{s.preventDefault(),!t.current&&!me()&&W()},children:[p(uo,{hidden:e}),p(xo,{hidden:e})]})}function Ax(e,a){Ot(e),ua(p(So,{}),a)}function Bx(){W()}export{me as isSearchHidden,Ax as mount,Bx as open,_r as setup}; -//# sourceMappingURL=bundle.4NN5MV7P.js.map +var Co=Object.create;var ya=Object.defineProperty;var _o=Object.getOwnPropertyDescriptor;var vo=Object.getOwnPropertyNames;var wo=Object.getPrototypeOf,yo=Object.prototype.hasOwnProperty;var bo=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var ko=(e,a,t,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let u of vo(a))!yo.call(e,u)&&u!==t&&ya(e,u,{get:()=>a[u],enumerable:!(o=_o(a,u))||o.enumerable});return e};var Po=(e,a,t)=>(t=e!=null?Co(wo(e)):{},ko(a||!e||!e.__esModule?ya(t,"default",{value:e,enumerable:!0}):t,e));var po=bo((Fm,co)=>{var br="Expected a function",no=NaN,kr="[object Symbol]",Pr=/^\s+|\s+$/g,Tr=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,Ar=/^0o[0-7]+$/i,Br=parseInt,Fr=typeof global=="object"&&global&&global.Object===Object&&global,Mr=typeof self=="object"&&self&&self.Object===Object&&self,Dr=Fr||Mr||Function("return this")(),Er=Object.prototype,Or=Er.toString,Ur=Math.max,qr=Math.min,_a=function(){return Dr.Date.now()};function Hr(e,a,t){var o,u,r,l,s,n,d=0,i=!1,m=!1,f=!0;if(typeof e!="function")throw new TypeError(br);a=io(a)||0,va(t)&&(i=!!t.leading,m="maxWait"in t,r=m?Ur(io(t.maxWait)||0,a):r,f="trailing"in t?!!t.trailing:f);function c(_){var q=o,G=u;return o=u=void 0,d=_,l=e.apply(G,q),l}function x(_){return d=_,s=setTimeout(S,a),i?c(_):l}function C(_){var q=_-n,G=_-d,de=a-q;return m?qr(de,r-G):de}function g(_){var q=_-n,G=_-d;return n===void 0||q>=a||q<0||m&&G>=r}function S(){var _=_a();if(g(_))return I(_);s=setTimeout(S,C(_))}function I(_){return s=void 0,f&&o?c(_):(o=u=void 0,l)}function b(){s!==void 0&&clearTimeout(s),d=0,o=n=u=s=void 0}function U(){return s===void 0?l:I(_a())}function A(){var _=_a(),q=g(_);if(o=arguments,u=this,n=_,q){if(s===void 0)return x(n);if(m)return s=setTimeout(S,a),c(n)}return s===void 0&&(s=setTimeout(S,a)),l}return A.cancel=b,A.flush=U,A}function va(e){var a=typeof e;return!!e&&(a=="object"||a=="function")}function Vr(e){return!!e&&typeof e=="object"}function Nr(e){return typeof e=="symbol"||Vr(e)&&Or.call(e)==kr}function io(e){if(typeof e=="number")return e;if(Nr(e))return no;if(va(e)){var a=typeof e.valueOf=="function"?e.valueOf():e;e=va(a)?a+"":a}if(typeof e!="string")return e===0?e:+e;e=e.replace(Pr,"");var t=Rr.test(e);return t||Ar.test(e)?Br(e.slice(2),t?2:8):Tr.test(e)?no:+e}co.exports=Hr});var Be,L,Ra,ea,Y,ba,Aa,Ba,Ze,ke,Le,Fa,aa,je,Ye,To,Te={},Re=[],Ro=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ie=Array.isArray;function J(e,a){for(var t in a)e[t]=a[t];return e}function ta(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function F(e,a,t){var o,u,r,l={};for(r in a)r=="key"?o=a[r]:r=="ref"?u=a[r]:l[r]=a[r];if(arguments.length>2&&(l.children=arguments.length>3?Be.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)l[r]===void 0&&(l[r]=e.defaultProps[r]);return Pe(e,l,o,u,null)}function Pe(e,a,t,o,u){var r={type:e,props:a,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:u??++Ra,__i:-1,__u:0};return u==null&&L.vnode!=null&&L.vnode(r),r}function w(e){return e.children}function B(e,a){this.props=e,this.context=a}function ne(e,a){if(a==null)return e.__?ne(e.__,e.__i+1):null;for(var t;aa&&Y.sort(Ba),e=Y.shift(),a=Y.length,Ao(e)}finally{Y.length=Ae.__r=0}}function Da(e,a,t,o,u,r,l,s,n,d,i){var m,f,c,x,C,g,S,I=o&&o.__k||Re,b=a.length;for(n=Bo(t,a,I,n,b),m=0;m0?l=e.__k[r]=Pe(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):e.__k[r]=l,n=r+f,l.__=e,l.__b=e.__b+1,s=null,(d=l.__i=Fo(l,t,n,m))!=-1&&(m--,(s=t[d])&&(s.__u|=2)),s==null||s.__v==null?(d==-1&&(u>i?f--:un?f--:f++,l.__u|=4))):e.__k[r]=null;if(m)for(r=0;r(i?1:0)){for(u=t-1,r=t+1;u>=0||r=0?u--:r++])!=null&&!(2&d.__u)&&s==d.key&&n==d.type)return l}return-1}function Pa(e,a,t){a[0]=="-"?e.setProperty(a,t??""):e[a]=t==null?"":typeof t!="number"||Ro.test(a)?t:t+"px"}function be(e,a,t,o,u){var r,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||Pa(e.style,a,"");if(t)for(a in t)o&&t[a]==o[a]||Pa(e.style,a,t[a])}else if(a[0]=="o"&&a[1]=="n")r=a!=(a=a.replace(Fa,"$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+r]=t,t?o?t[Le]=o[Le]:(t[Le]=aa,e.addEventListener(a,r?Ye:je,r)):e.removeEventListener(a,r?Ye:je,r);else{if(u=="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 Ta(e){return function(a){if(this.l){var t=this.l[a.type+e];if(a[ke]==null)a[ke]=aa++;else if(a[ke]0?e:Ie(e)?e.map(qa):e.constructor!==void 0?null:J({},e)}function Mo(e,a,t,o,u,r,l,s,n){var d,i,m,f,c,x,C,g=t.props||Te,S=a.props,I=a.type;if(I=="svg"?u="http://www.w3.org/2000/svg":I=="math"?u="http://www.w3.org/1998/Math/MathML":u||(u="http://www.w3.org/1999/xhtml"),r!=null){for(d=0;d=t.__.length&&t.__.push({}),t.__[e]}function H(e){return he=1,Za(Ya,e)}function Za(e,a,t){var o=ge(te++,2);if(o.t=e,!o.__c&&(o.__=[t?t(a):Ya(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 u=function(s,n,d){if(!o.__c.__H)return!0;var i=!1,m=o.__c.props!==s;if(o.__c.__H.__.some(function(c){if(c.__N){i=!0;var x=c.__[0];c.__=c.__N,c.__N=void 0,x!==c.__[0]&&(m=!0)}}),r){var f=r.call(this,s,n,d);return i?f||m:f}return!i||m};v.__f=!0;var r=v.shouldComponentUpdate,l=v.componentWillUpdate;v.componentWillUpdate=function(s,n,d){if(this.__e){var i=r;r=void 0,u(s,n,d),r=i}l&&l.call(this,s,n,d)},v.shouldComponentUpdate=u}return o.__N||o.__}function R(e,a){var t=ge(te++,3);!y.__s&&da(t.__H,a)&&(t.__=e,t.u=a,v.__H.__h.push(t))}function Fe(e,a){var t=ge(te++,4);!y.__s&&da(t.__H,a)&&(t.__=e,t.u=a,v.__h.push(t))}function P(e){return he=5,E(function(){return{current:e}},[])}function E(e,a){var t=ge(te++,7);return da(t.__H,a)&&(t.__=e(),t.__H=a,t.__h=e),t.__}function Me(e,a){return he=8,E(function(){return e},a)}function Se(){var e=ge(te++,11);if(!e.__){for(var a=v.__v;a!==null&&!a.__m&&a.__!==null;)a=a.__;var t=a.__m||(a.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__}function Qa(){for(var e;e=Ja.shift();){var a=e.__H;if(e.__P&&a)try{a.__h.some(sa),a.__h.some(ja),a.__h=[]}catch(t){a.__h=[],y.__e(t,e.__v)}}}y.__b=function(e){v=null,Na&&Na(e)},y.__=function(e,a){e&&a.__k&&a.__k.__m&&(e.__m=a.__k.__m),Xa&&Xa(e,a)},y.__r=function(e){Wa&&Wa(e),te=0;var a=(v=e.__c).__H;a&&(la===v?(a.__h=[],v.__h=[],a.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(a.__h.length&&Qa(),te=0)),la=v},y.diffed=function(e){za&&za(e);var a=e.__c;a&&a.__H&&(a.__H.__h.length&&(Ja.push(a)!==1&&Va===y.requestAnimationFrame||((Va=y.requestAnimationFrame)||Eo)(Qa)),a.__H.__.some(function(t){t.u&&(t.__H=t.u,t.u=void 0)})),la=v=null},y.__c=function(e,a){a.some(function(t){try{t.__h.some(sa),t.__h=t.__h.filter(function(o){return!o.__||ja(o)})}catch(o){a.some(function(u){u.__h&&(u.__h=[])}),a=[],y.__e(o,t.__v)}}),Ga&&Ga(e,a)},y.unmount=function(e){Ka&&Ka(e);var a,t=e.__c;t&&t.__H&&(t.__H.__.some(function(o){try{sa(o)}catch(u){a=u}}),t.__H=void 0,a&&y.__e(a,t.__v))};var $a=typeof requestAnimationFrame=="function";function Eo(e){var a,t=function(){clearTimeout(o),$a&&cancelAnimationFrame(a),setTimeout(e)},o=setTimeout(t,35);$a&&(a=requestAnimationFrame(t))}function sa(e){var a=v,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),v=a}function ja(e){var a=v;e.__c=e.__(),v=a}function da(e,a){return!e||e.length!==a.length||a.some(function(t,o){return t!==e[o]})}function Ya(e,a){return typeof a=="function"?a(e):a}function qo(e,a){for(var t in a)e[t]=a[t];return e}function et(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 at(e,a){this.props=e,this.context=a}(at.prototype=new B).isPureReactComponent=!0,at.prototype.shouldComponentUpdate=function(e,a){return et(this.props,e)||et(this.state,a)};var tt=L.__b;L.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),tt&&tt(e)};var lu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var Ho=L.__e;L.__e=function(e,a,t,o){if(e.then){for(var u,r=a;r=r.__;)if((u=r.__c)&&u.__c)return a.__e==null&&(a.__e=t.__e,a.__k=t.__k||[]),u.__c(e,a)}Ho(e,a,t,o)};var ot=L.unmount;function ft(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=qo({},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 ft(o,a,t)})),e}function nt(e,a,t){return e&&t&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return nt(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 fa(){this.__u=0,this.o=null,this.__b=null}function it(e){var a=e.__&&e.__.__c;return a&&a.__a&&a.__a(e)}function De(){this.i=null,this.l=null}L.unmount=function(e){var a=e.__c;a&&(a.__z=!0),a&&a.__R&&a.__R(),a&&32&e.__u&&(e.type=null),ot&&ot(e)},(fa.prototype=new B).__c=function(e,a){var t=a.__c,o=this;o.o==null&&(o.o=[]),o.o.push(t);var u=it(o.__v),r=!1,l=function(){r||o.__z||(r=!0,t.__R=null,u?u(n):n())};t.__R=l;var s=t.__P;t.__P=null;var n=function(){if(!--o.__u){if(o.state.__a){var d=o.state.__a;o.__v.__k[0]=nt(d,d.__c.__P,d.__c.__O)}var i;for(o.setState({__a:o.__b=null});i=o.o.pop();)i.__P=s,i.forceUpdate()}};o.__u++||32&a.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(l,l)},fa.prototype.componentWillUnmount=function(){this.o=[]},fa.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]=ft(this.__b,t,o.__O=o.__P)}this.__b=null}var u=a.__a&&F(w,null,e.fallback);return u&&(u.__u&=-33),[F(w,null,a.__a?null:e.children),u]};var rt=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 pt=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function mt(e,...a){e?.addEventListener?.(...a)}function xt(e,...a){e?.removeEventListener?.(...a)}var Lt=(e,a)=>Object.hasOwn(e,a),It=()=>!0,ht=()=>!1;function gt(e=!1){let a=P(e),t=Me(()=>a.current,[]);return R(()=>(a.current=!0,()=>{a.current=!1}),[]),t}function St(e,...a){let t=gt(),o=Ee(a[1]),u=E(()=>function(...r){t()&&(typeof o.current=="function"?o.current.apply(this,r):typeof o.current.handleEvent=="function"&&o.current.handleEvent.apply(this,r))},[]);R(()=>{let r=Qo(e)?e.current:e;if(!r)return;let l=a.slice(2);return mt(r,a[0],u,...l),()=>{xt(r,a[0],u,...l)}},[e,a[0]])}function Qo(e){return e!==null&&typeof e=="object"&&Lt(e,"current")}var $o=e=>typeof e=="function"?e:typeof e=="string"?a=>a.key===e:e?It:ht,Jo=pt?globalThis:null;function Ct(e,a,t=[],o={}){let{event:u="keydown",target:r=Jo,eventOptions:l}=o,s=Ee(a),n=E(()=>{let d=$o(e);return function(i){d(i)&&s.current.call(this,i)}},t);St(r,u,n,l)}function _t(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(a=0;a1)ee--;else{for(var e,a=!1;Ce!==void 0;){var t=Ce;for(Ce=void 0,na++;t!==void 0;){var o=t.o;if(t.o=void 0,t.f&=-3,!(8&t.f)&&wt(t))try{t.c()}catch(u){a||(e=u,a=!0)}t=o}}if(na=0,ee--,a)throw e}}function oe(e){if(ee>0)return e();ee++;try{return e()}finally{Ue()}}var h=void 0;function ia(e){var a=h;h=void 0;try{return e()}finally{h=a}}var Ce=void 0,ee=0,na=0,Oe=0;function vt(e){if(h!==void 0){var a=e.n;if(a===void 0||a.t!==h)return a={i:0,S:e,p:h.s,n:void 0,t:h,e:void 0,x:void 0,r:a},h.s!==void 0&&(h.s.n=a),h.s=a,e.n=a,32&h.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=h.s,a.n=void 0,h.s.n=a,h.s=a),a}}function k(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}k.prototype.brand=jo;k.prototype.h=function(){return!0};k.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:ia(function(){var o;(o=a.W)==null||o.call(a)}))};k.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&&ia(function(){var u;(u=a.Z)==null||u.call(a)}))}};k.prototype.subscribe=function(e){var a=this;return X(function(){var t=a.value,o=h;h=void 0;try{e(t)}finally{h=o}},{name:"sub"})};k.prototype.valueOf=function(){return this.value};k.prototype.toString=function(){return this.value+""};k.prototype.toJSON=function(){return this.value};k.prototype.peek=function(){var e=h;h=void 0;try{return this.value}finally{h=e}};Object.defineProperty(k.prototype,"value",{get:function(){var e=vt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(na>100)throw new Error("Cycle detected");this.v=e,this.i++,Oe++,ee++;try{for(var a=this.t;a!==void 0;a=a.x)a.t.N()}finally{Ue()}}}});function O(e,a){return new k(e,a)}function wt(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 yt(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 bt(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 re(e,a){k.call(this,void 0),this.x=e,this.s=void 0,this.g=Oe-1,this.f=4,this.W=a?.watched,this.Z=a?.unwatched,this.name=a?.name}re.prototype=new k;re.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Oe))return!0;if(this.g=Oe,this.f|=1,this.i>0&&!wt(this))return this.f&=-2,!0;var e=h;try{yt(this),h=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 h=e,bt(this),this.f&=-2,!0};re.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)}k.prototype.S.call(this,e)};re.prototype.U=function(e){if(this.t!==void 0&&(k.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)}};re.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(re.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=vt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function qe(e,a){return new re(e,a)}function kt(e){var a=e.u;if(e.u=void 0,typeof a=="function"){ee++;var t=h;h=void 0;try{a()}catch(o){throw e.f&=-2,e.f|=8,ca(e),o}finally{h=t,Ue()}}}function ca(e){for(var a=e.s;a!==void 0;a=a.n)a.S.U(a);e.x=void 0,e.s=void 0,kt(e)}function Yo(e){if(h!==this)throw new Error("Out-of-order effect");bt(this),h=e,this.f&=-2,8&this.f&&ca(this),Ue()}function ie(e,a){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=a?.name}ie.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()}};ie.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,kt(this),yt(this),ee++;var e=h;return h=this,Yo.bind(this,e)};ie.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ce,Ce=this)};ie.prototype.d=function(){this.f|=8,1&this.f||ca(this)};ie.prototype.dispose=function(){this.d()};function X(e,a){var t=new ie(e,a);try{t.c()}catch(u){throw t.d(),u}var o=t.d.bind(t);return o[Symbol.dispose]=o,o}var Pt,ma,pa;var Tt=[];X(function(){Pt=this.N})();function ce(e,a){L[e]=a.bind(null,L[e]||function(){})}function He(e){pa&&pa(),pa=e&&e.S()}function Rt(e){var a=this,t=e.data,o=ar(t);o.value=t;var u=E(function(){for(var s=a,n=a.__v;n=n.__;)if(n.__c){n.__c.__$f|=4;break}var d=qe(function(){var c=o.value.value;return c===0?0:c===!0?"":c||""}),i=qe(function(){return!Array.isArray(d.value)&&!ea(d.value)}),m=X(function(){if(this.N=At,i.value){var c=d.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=c)}}),f=a.__$u.d;return a.__$u.d=function(){m(),f.call(this)},[i,d]},[]),r=u[0],l=u[1];return r.value?l.peek():l.value}Rt.displayName="ReactiveTextNode";Object.defineProperties(k.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Rt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});ce("__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 u in o)if(u!=="children"){var r=o[u];r instanceof k&&(t||(a.__np=t={}),t[u]=r,o[u]=r.peek())}}e(a)});ce("__r",function(e,a){if(typeof a.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(a),a.type!==w){He();var t,o=a.__c;o&&(o.__$f&=-2,(t=o.__$u)===void 0&&(o.__$u=t=function(u){var r;return X(function(){r=this}),r.c=function(){o.__$f|=1,o.setState({})},r}())),ma=o,He(t)}e(a)});ce("__e",function(e,a,t,o){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),He(),ma=void 0,e(a,t,o)});ce("diffed",function(e,a){typeof a.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),He(),ma=void 0;var t;if(typeof a.type=="string"&&(t=a.__e)){var o=a.__np,u=a.props;if(o){var r=t.U;if(r)for(var l in r){var s=r[l];s!==void 0&&!(l in o)&&(s.d(),r[l]=void 0)}else r={},t.U=r;for(var n in o){var d=r[n],i=o[n];d===void 0?(d=er(t,n,i,u),r[n]=d):d.o(i,u)}}}e(a)});function er(e,a,t,o){var u=a in e&&e.ownerSVGElement===void 0,r=O(t);return{o:function(l,s){r.value=l,o=s},d:X(function(){this.N=At;var l=r.value.value;o[a]!==l&&(o[a]=l,u?e[a]=l:l?e.setAttribute(a,l):e.removeAttribute(a))})}}ce("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 u in o){var r=o[u];r&&r.d()}}}}else{var l=a.__c;if(l){var s=l.__$u;s&&(l.__$u=void 0,s.d())}}e(a)});ce("__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 u in a)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var r=2&this.__$f;if(!(o||r||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 ar(e,a){return H(function(){return O(e,a)})[0]}var tr=function(e){queueMicrotask(function(){queueMicrotask(e)})};function or(){oe(function(){for(var e;e=Tt.shift();)Pt.call(e)})}function At(){Tt.push(this)===1&&(L.requestAnimationFrame||tr)(or)}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||xa())}function W(){D.value={...D.value,hideSearch:!D.value.hideSearch}}function xa(){D.value={...D.value,hideFilters:!D.value.hideFilters}}function Ne(){return D.value.selectedItem}function We(e){D.value={...D.value,selectedItem:Math.max(0,Math.min(e,z.value.items.length-1))}}function ze(){z.value=Dt(),D.value={...D.peek(),selectedItem:0}}function Ut(){return Qe.value?.items??[]}function pe(){return typeof T.value.input=="string"?T.value.input:""}function qt(e){T.value={...T.value,page:void 0,input:Et(e,le())}}function Ge(){let e=z.value.pagination.next;typeof e<"u"&&T.value.page!==e&&(T.value={...T.value,page:e})}function Ke(e){return le().includes(e)}function le(){let e=T.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 Ht(e){let a=le(),t=a.indexOf(e);t>-1?a.splice(t,1):a.push(e),T.value={...T.value,page:void 0,input:Et(pe(),a),filter:{...T.value.filter,input:{type:"operator",data:{operator:"and",operands:a.map(o=>({type:"value",data:{field:"tags",value:o}}))}}}}}function Xe(){return z.value.items}function Vt(){return z.value.pagination.total}function Nt(){for(let e of z.value.aggregations??[])if(e.type==="term")return e.data.value;return[]}function me(){return D.value.hideSearch}function Wt(){return D.value.hideFilters}function rr(){return _e.value.highlight??!1}function zt(e){if(!rr())return e;let a=e.indexOf("#"),t=a===-1?"":e.slice(a),o=a===-1?e:e.slice(0,a),u=o.indexOf("?"),r=u===-1?o:o.slice(0,u),l=new URLSearchParams(u===-1?"":o.slice(u+1));return l.set("h",pe()),`${r}?${l}${t}`}function Gt(e){_e.value.navigate?_e.value.navigate(e):window.location.href=e}var D=O({hideSearch:!0,hideFilters:!0,selectedItem:0}),_e=O({}),Qe=O(),Z=O(!1),se=O(!1),T=O({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),z=O(Dt());function lr(e,a,t){for(let o=0;at&&a(0,u,t,t=r);continue;case 62:e.charCodeAt(t+1)===47?a(2,--u,t,t=r+1):lr(e,t,o)?a(3,u,t,t=r+1):a(1,u++,t,t=r+1)}r>t&&a(0,u,t,r)}function Qt(e,a=0,t=e.length){let o=++a;e:for(let d=0;o{let r=[],l=[],{onElement:s,onText:n=sr}=typeof t=="function"?{onElement:t}:t,d=0,i=0;return e(a,(m,f,c,x)=>{if(m===0)r[d++]=n(a,c,x),l[i++]={value:null,depth:f};else if(m&1&&(l[i++]={value:Qt(a,c,x),depth:f}),m&2)for(let C=0;i>=0;C++){let{value:g,depth:S}=l[--i];if(S>f)continue;let I=r.slice(d-=C,d+C);r[d++]=s(g,I),i++;break}},o,u),r.slice(0,d)}}function Jt(e){return e.replace(/[&<>]/g,a=>{switch(a.charCodeAt(0)){case 38:return"&";case 60:return"<";case 62:return">"}})}function xe(e){return e.replace(/&(amp|[lg]t);/g,a=>{switch(a.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function Zt(e,a){return{start:e.start+a,end:e.end+a,value:e.value}}function xr(e,a,t){return e.slice(a,t)}function Yt(e){let{onHighlight:a,onText:t=xr}=typeof e=="function"?{onHighlight:e}:e;return(o,u,r=0,l=o.length)=>{let s=[],n=u?.ranges??[];for(let d=0,i=r;dl)break;let f=n[d].end;if(fr&&s.push(t(o,r,m));let{value:c}=n[d];s.push(a(o,{start:m,end:r=f,value:c}))}return ra!==null&&typeof a<"u"&&a!==!1&&!(typeof a=="string"&&a.trim().length===0))}function to(e,a,t=0,o=e.length){let u=hr(e,a,t,o),r=[],l=[],s=()=>{l.length>0&&(r.push(p("mark",{children:l})),l=[])};return u.forEach((n,d)=>{if(n!==null)if(typeof n=="string"){let i=u[d+1];l.length>0&&/^\s+$/.test(n)&&i!=null&&typeof i!="string"?l.push(n):(s(),r.push(n))}else l.push(p("u",{className:M({[eo.fuzzy]:n.fuzzy}),children:n.text})),n.suffix.length>0&&(s(),r.push(n.suffix))}),s(),r}function La(e,a){let t=ao(e,{onElement(o,u){return o.tag==="a"?p(w,{children:u}):F(o.tag,o.attrs,...u)},onText(o,u,r){return to(o,a?.value.highlight,u,r)}});return p(w,{children:t})}function oo(e,a){let t=[];for(let o=0,u=0;oi.start=s||n.push({...i,start:Math.max(i.start,l),end:Math.min(i.end,s)});let d=ao(e,{onElement(i,m){let f=Cr(m);if(f.length!==0)return Sr.has(i.tag)?F(i.tag,i.attrs??{},...f):i.tag==="li"?p(w,{children:["\u2013 ",f," "]}):gr.has(i.tag)?p(w,{children:[" ",f," "]}):p(w,{children:f})},onText(i,m,f){let c=Math.max(m,l),x=Math.min(f,s);if(!(c>=x))return to(i,{ranges:n},c,x)}});return p(w,{children:[l>0&&"...",d]})}var $e;function _r(e,a={highlight:!0}){$e?.(),_e.value=a;let t=X(()=>{let r=Qe.value;if(oe(()=>{Z.value=!1,se.value=!1,T.value={...T.peek(),page:void 0},ze()}),!r)return;let l;try{l=new Worker(e)}catch{se.value=!0;return}let s=!0,n=()=>{},d=()=>{s&&(s=!1,n(),l.onmessage=null,l.onerror=null,l.onmessageerror=null,l.terminate())},i=()=>{d(),oe(()=>{Z.value=!1,se.value=!0,ze()})};l.onmessage=m=>{if(!s)return;let f=m.data;switch(f.type){case 1:Z.value=!0;break;case 3:if(!Z.peek())return;typeof f.data.pagination.prev<"u"?z.value={...z.value,pagination:f.data.pagination,items:[...z.value.items,...f.data.items]}:(z.value=f.data,We(0));break;case 4:i();break}},l.onerror=m=>{m.preventDefault(),i()},l.onmessageerror=i,n=X(()=>{if(Z.value)try{l.postMessage({type:2,data:T.value})}catch{i()}});try{l.postMessage({type:0,data:r})}catch{i()}return d}),o=!1,u=()=>{o||(o=!0,t(),oe(()=>{Z.value=!1,se.value=!1,ze()}),$e===u&&($e=void 0))};return $e=u,u}var Ia={container:"l",hidden:"m"};function uo(e){return p("div",{class:M(Ia.container,{[Ia.hidden]:e.hidden}),onClick:()=>W()})}var ha={container:"a",disabled:"c"};function ga(e){return p("button",{...e,type:"button",disabled:e.disabled||!e.onClick,class:M(ha.container,e.class,{[ha.disabled]:e.disabled||!e.onClick}),children:e.children})}var Sa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,o)=>o?o.toUpperCase():t.toLowerCase()),Ca=e=>{let a=yr(e);return a.charAt(0).toUpperCase()+a.slice(1)},lo=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();var so={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 fo=({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,children:u,iconNode:r,class:l="",...s})=>F("svg",{...so,width:String(a),height:a,stroke:e,"stroke-width":o?Number(t)*24/Number(a):t,class:["lucide",l].join(" "),...s},[...r.map(([n,d])=>F(n,d)),...ae(u)]);var Je=(e,a)=>{let t=({class:o="",children:u,...r})=>F(fo,{...r,iconNode:a,class:lo(`lucide-${Sa(Ca(e))}`,`lucide-${Sa(e)}`,o)},u);return t.displayName=Ca(e),t};var we=Je("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]);var ye=Je("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var Wr=Po(po(),1);function mo({threshold:e=0,root:a=null,rootMargin:t="0%",freezeOnceVisible:o=!1,initialIsIntersecting:u=!1,onChange:r}={}){var l;let[s,n]=H(null),[d,i]=H(()=>({isIntersecting:u,entry:void 0})),m=P();m.current=r;let f=((l=d.entry)==null?void 0:l.isIntersecting)&&o;R(()=>{if(!s||!("IntersectionObserver"in window)||f)return;let C,g=new IntersectionObserver(S=>{let I=Array.isArray(g.thresholds)?g.thresholds:[g.thresholds];S.forEach(b=>{let U=b.isIntersecting&&I.some(A=>b.intersectionRatio>=A);i({isIntersecting:U,entry:b}),m.current&&m.current(U,b),U&&o&&C&&(C(),C=void 0)})},{threshold:e,root:a,rootMargin:t});return g.observe(s),()=>{g.disconnect()}},[s,JSON.stringify(e),a,t,f,o]);let c=P(null);R(()=>{var C;!s&&((C=d.entry)!=null&&C.target)&&!o&&!f&&c.current!==d.entry.target&&(c.current=d.entry.target,i({isIntersecting:u,entry:void 0}))},[s,d.entry,o,f,u]);let x=[n,!!d.isIntersecting,d.entry];return x.ref=x[0],x.isIntersecting=x[1],x.entry=x[2],x}var Q={container:"e",hidden:"d",content:"v",pop:"g",badge:"y",sidebar:"t",controls:"w",results:"k",loadmore:"z"};function xo(e){let{isIntersecting:a,ref:t}=mo({threshold:0}),o=Se(),u=`${o}-results`,r=`${o}-filters`,l=Wt();R(()=>{a&&Ge()},[a]);let s=P(null);R(()=>{s.current&&typeof T.value.page>"u"&&s.current.scrollTo({top:0})},[T.value]);let n=le();return p("div",{class:M(Q.container,{[Q.hidden]:e.hidden}),children:[p("div",{class:Q.content,children:[p("div",{class:Q.controls,children:[p(ga,{onClick:W,"aria-label":"Close search",children:p(ye,{"aria-hidden":"true"})}),p(Io,{resultsId:u}),p(ga,{onClick:xa,"aria-label":"Filters","aria-controls":r,"aria-expanded":!l,children:[p(we,{"aria-hidden":"true"}),n.length>0&&p("span",{class:Q.badge,"aria-hidden":"true",children:n.length})]})]}),p("div",{class:Q.results,ref:s,tabIndex:-1,children:[p(ho,{id:u}),p("div",{class:Q.loadmore,ref:t})]})]}),p("div",{id:r,inert:l,"aria-hidden":l,class:M(Q.sidebar,{[Q.hidden]:l}),children:p(Lo,{})})]})}var $={container:"j",list:"F",hint:"I",heading:"R",title:"X",item:"i",active:"b",value:"q",count:"A"};function Lo(){let e=Se(),a=P(new Map),[t,o]=H(),u=[...Nt()].sort((l,s)=>s.node.count-l.node.count),r=u.find(({node:l})=>l.value===t)??u.find(({node:l})=>Ke(l.value))??u[0];return p("div",{class:$.container,children:[p("h3",{class:$.heading,children:"Filters"}),p("h4",{id:`${e}-title`,class:$.title,children:"Tags"}),p("span",{id:`${e}-hint`,class:$.hint,children:"Use Up and Down arrow keys to move between tags. Press Space or Enter to toggle a tag."}),p("ol",{class:$.list,role:"toolbar","aria-orientation":"vertical","aria-labelledby":`${e}-title`,"aria-describedby":`${e}-hint`,children:u.map((l,s)=>p("li",{role:"presentation",children:p("button",{type:"button",ref:n=>{n?a.current.set(l.node.value,n):a.current.delete(l.node.value)},tabIndex:l===r?0:-1,class:M($.item,{[$.active]:Ke(l.node.value)}),"aria-pressed":Ke(l.node.value),onFocus:()=>o(l.node.value),onKeyDown:n=>{if(n.altKey||n.ctrlKey||n.metaKey||n.isComposing)return;let d=s;switch(n.key){case"ArrowDown":d=Math.min(s+1,u.length-1);break;case"ArrowUp":d=Math.max(s-1,0);break;case"Home":d=0;break;case"End":d=u.length-1;break;default:return}n.preventDefault(),a.current.get(u[d].node.value)?.focus()},onClick:()=>Ht(l.node.value),children:[p("span",{class:$.value,children:l.node.value}),p("span",{class:$.count,children:l.node.count})]})},l.node.value))})]})}var wa={container:"s"};function Io(e){let a=Xe(),t=Ne(),o=!me()&&a.length>0,u=o&&a[t]?`${e.resultsId}-${a[t].id}`:void 0;return p("div",{class:wa.container,children:p("input",{autoFocus:!0,"aria-label":"Search","aria-autocomplete":"list","aria-controls":e.resultsId,"aria-expanded":o,"aria-activedescendant":u,type:"text",class:wa.content,value:xe(pe()),onInput:r=>qt(Jt(r.currentTarget.value)),onKeyDown:r=>{r.isComposing||r.keyCode===229||r.altKey||r.ctrlKey||r.metaKey||!a.length||(r.key==="ArrowDown"||r.key==="ArrowUp"?(r.preventDefault(),r.key==="ArrowDown"&&t===a.length-1&&Ge(),We(t+(r.key==="ArrowDown"?1:-1))):r.key==="Enter"&&u&&(r.preventDefault(),r.currentTarget.getRootNode().getElementById(u)?.click()))},autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox",dir:"auto"})})}var j={container:"h",heading:"f",item:"o",active:"B",wrapper:"C",title:"x",path:"n",excerpt:"p"};function ho(e){let a=Ut(),t=Xe(),o=Ne(),u=P([]);R(()=>{let s=u.current[o];s&&s.scrollIntoView({block:"nearest"})},[o,t[o]]);let r=Vt(),l="";return se.value?l="Search is unavailable. Reload the page to try again.":Z.value?t.length>0?l=`${new Intl.NumberFormat("en-US").format(r)} ${r===1?"result":"results"}`:(pe().length>0||le().length>0)&&(l="No results"):l="Loading search\u2026",p(w,{children:[p("div",{class:j.heading,role:"status","aria-live":"polite","aria-atomic":"true",children:l}),p("ol",{id:e.id,class:j.container,role:"listbox","aria-label":"Search results",children:t.map((s,n)=>{let d=s.matches.find(({field:x})=>x==="text"),i=La(a[s.id].title,s.matches.find(({field:x})=>x==="title")),m=oo(a[s.id].path??[],s.matches.find(({field:x})=>x==="path")),f=ro(a[s.id].text,d),c=zt(a[s.id].location);return p("li",{role:"presentation",children:p("a",{id:`${e.id}-${s.id}`,role:"option",tabIndex:-1,"aria-selected":n===o,"aria-posinset":n+1,"aria-setsize":r,"aria-labelledby":`${e.id}-${s.id}-title`,"aria-describedby":m.length>0?`${e.id}-${s.id}-path`:void 0,ref:x=>{u.current[n]=x},href:c,onClick:x=>{W(),!x.button&&!x.metaKey&&!x.ctrlKey&&!x.shiftKey&&!x.altKey&&(x.preventDefault(),Gt(c))},class:M(j.item,{[j.active]:n===o}),children:p("div",{class:j.wrapper,children:[p("h2",{id:`${e.id}-${s.id}-title`,class:j.title,children:i}),m.length>0&&p("menu",{id:`${e.id}-${s.id}-path`,class:j.path,children:m.map((x,C)=>p("li",{children:x},C))}),f&&p("div",{class:j.excerpt,children:f})]})})},s.id)})})]})}var go={container:"r"};function So(){let e=me(),a=P(null),t=P(!1),[o,u]=H("pointer"),[r,l]=H(!1);return Fe(()=>{let s=a.current;return e?(s.close(),t.current=!1):s.open||s.showModal(),()=>s.close()},[e]),R(()=>{let s=()=>{u("pointer"),l(!1)};return document.addEventListener("pointerdown",s,!0),()=>{document.removeEventListener("pointerdown",s,!0)}},[]),Ct(!0,s=>{["Tab","ArrowDown","ArrowUp","Home","End"].includes(s.key)&&u("keyboard"),!(s.defaultPrevented||s.isComposing||s.keyCode===229||t.current)&&((s.metaKey||s.ctrlKey)&&s.key==="k"?(s.preventDefault(),u("keyboard"),l(!1),W()):(s.metaKey||s.ctrlKey)&&s.key==="j"&&document.body.classList.toggle("dark"))}),p("dialog",{ref:a,class:go.container,"aria-label":"Search","aria-modal":"true","data-input-modality":o,"data-tab-navigation":r,inert:e,"aria-hidden":e,onCompositionStart:()=>{t.current=!0},onCompositionEnd:()=>{t.current=!1},onKeyDownCapture:s=>{if(t.current||s.isComposing||s.keyCode===229){s.stopPropagation(),s.key==="Escape"&&s.preventDefault();return}if(s.key!=="Tab")return;l(!0),u("keyboard");let n=s.currentTarget,d=Array.from(n.querySelectorAll("button, input, [href], [tabindex]")).filter(c=>c.tabIndex>=0&&!c.closest("[inert]")&&!c.matches(":disabled")&&c.getClientRects().length>0),i=d[0],m=d[d.length-1],f=n.getRootNode();s.shiftKey&&f.activeElement===i?(s.preventDefault(),m?.focus()):!s.shiftKey&&f.activeElement===m&&(s.preventDefault(),i?.focus())},onCancel:s=>{s.preventDefault(),!t.current&&!me()&&W()},children:[p(uo,{hidden:e}),p(xo,{hidden:e})]})}function Ax(e,a){Ot(e),ua(p(So,{}),a)}function Bx(){W()}export{me as isSearchHidden,Ax as mount,Bx as open,_r as setup}; +//# sourceMappingURL=bundle.OB2GHH2P.js.map