1import{r as e}from"./rolldown-runtime-C0FnF6B9.js";var t=e({default:()=>n}),n=(()=>{let e={parse(t){if(!t)return{};if(t.startsWith(`{`))return JSON.parse(t);let n=/(?:"([^"]+)"|'([^']+)'|([^\s,:]+))(?:\s*:\s*(?:"([^"]*)"|'([^']*)'|<((?:[^/]|\/(?!>))+)\/>|([^\s,]+)))?(?=\s|,|$)/g,r={};for(let i of t.matchAll(n)){let[,t,n,a,o,s,c,l]=i,u=t??n??a,d=(o??s??c??l??`true`).trim();try{d=JSON.parse(d)}catch{}let f=a?.includes(`.`)?u.split(`.`).reduceRight((e,t)=>({[t]:e}),d):{[u]:d};e.merge(f,r)}return r},split(e){return e.split(/,(?![^\[]*\])(?![^(]*\))(?![^<]*\/>)(?=(?:[^"']|"[^"]*"|'[^']*')*$)/)},merge(t,n){typeof t==`string`&&(t=e.parse(t));for(let[r,i]of Object.entries(t)){if([`__proto__`,`constructor`,`prototype`].includes(r))continue;let t=i?.constructor===Object,a=n[r]?.constructor===Object;t&&a?e.merge(i,n[r]):n[r]=i}return n}};class t{#e=null;#t=[];admit(e,t,n){if(!this.#e)return this.#e={strategy:e,abort:n},`run`;if(e===`replace`||e!==`abort`&&this.#e.strategy===`abort`)return this.#t=[],this.#e.abort?.(),this.#e={strategy:e,abort:n},`run`;if(e===`queue all`)this.#t.push(t);else if(e===`queue last`)this.#t=[t];else if(e!==`abort`&&e!==`drop`&&this.#t.length===0)this.#t.push(t);else return`dropped`;return`queued`}continue(){this.#e=null,this.#t.shift()?.()}abort(){this.#e?.abort?.()}}class n{#e=new Map;#t=``;#n=new Set;_loc=window.location;#r;#i=Function;#a=Object.getPrototypeOf(async function(){}).constructor;#o={createHTML:e=>e,createScript:e=>e};#s;#c=`a,form`;#l=[`get`,`post`,`put`,`patch`,`delete`,`query`];#u;#d;#f;#p;#m;constructor(){this.#h(),this.#g(),this.#s=this.#b(`[hx-action],[hx-get],[hx-post],[hx-put],[hx-patch],[hx-delete],[hx-query]`),this.#u=new XPathEvaluator().createExpression(`.//*[@*[${this.#x(`hx-on`).map(e=>`starts-with(name(), "${e}")`).join(` or `)}]]`),this.#r={HCON:e,attributeValue:this.#T.bind(this),parseTriggerSpecs:this.#E.bind(this),determineMethodAndAction:this.#D.bind(this),createRequestContext:this.#M.bind(this),collectFormData:this.#Me.bind(this),getAttributeObject:this.#Pe.bind(this),insertContent:this.#ye.bind(this),morph:this.#Ge.bind(this),isSoftMatch:this.#Ye.bind(this),initSecurity:(e,t,n)=>{e&&(this.#o=e),t&&(this.#i=t),n&&(this.#a=n)},onTrigger:this.#J.bind(this),htmxProp:this.#O.bind(this),triggerHtmxEvent:this.#be.bind(this),executeJavaScript:this.#Q.bind(this)};let t=()=>this.initialize();document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,t):setTimeout(t)}#h(){this.version=`4.0.0`,this.config={logAll:!1,prefix:`data-hx-`,transitions:!1,history:!0,mode:`same-origin`,defaultSwap:`innerHTML`,defaultFocusScroll:!1,indicatorClass:`htmx-indicator`,requestClass:`htmx-request`,includeIndicatorCSS:!0,defaultTimeout:6e4,extensions:``,morphIgnore:[`data-htmx-powered`],morphSkip:`[hx-morph-skip]`,morphSkipChildren:`[hx-morph-skip-children]`,morphScanLimit:10,noSwap:[204,304],implicitInheritance:!1,defaultSettleDelay:1,allowEmptySwapAfterOOB:!1};let t=document.querySelector(`meta[name="htmx-config"]`);t&&e.merge(t.content,this.config),this.#t=this.config.extensions}#g(){if(this.config.includeIndicatorCSS!==!1){let e=this.config.indicatorClass,t=this.config.requestClass,n=new CSSStyleSheet;n.replaceSync(`.${e}{opacity:0;visibility: hidden} .${t} .${e}, .${t}.${e}{opacity:1;visibility: visible;transition: opacity 200ms ease-in}`),document.adoptedStyleSheets=[...document.adoptedStyleSheets,n]}}registerExtension(e,t){if(this.#t&&!this.#t.split(/,\s*/).includes(e)||this.#n.has(e))return!1;this.#n.add(e),t.init&&t.init(this.#r),Object.entries(t).forEach(([e,t])=>{this.#e.get(e)?.push(t)||this.#e.set(e,[t])})}#_(e){let t=this.config.prefix;return!e.closest||e.closest(`[hx-ignore]`)!=null||t&&e.closest(`[${t}ignore]`)!=null}#v(e,t){let n=this.config.prefix;return e.getAttribute(t)??(n?e.getAttribute(t.replace(`hx-`,n)):null)}#y(e,t){let n=this.config.prefix&&t.replace(`hx-`,this.config.prefix);return e.hasAttribute(t)?t:n&&e.hasAttribute(n)?n:null}#b(e){return this.#x(e).join(`,`)}#x(e){let t=[e];return this.config.prefix&&t.push(e.replaceAll(`hx-`,this.config.prefix)),t}#S(e,t){let n=[...e.querySelectorAll?.(t)??[]];return e.matches?.(t)&&n.unshift(e),n}#C(e){return e===`before`?`beforebegin`:e===`after`?`afterend`:e===`prepe
1nd`?`afterbegin`:e===`append`?`beforeend`:e}#w(e,t){let n=[];return this.#T(e,t,void 0,(e,t)=>{e?.split(/\s*[,:]\s*/).includes(`this`)&&n.push(t)}),n}#T(e,t,n,r){t=this.#ut(t);let i=this.#ut(`:inherited`),a=this.#ut(`:append`),o=this.#v(e,t)??this.#v(e,t+i);if(o!=null)return r?r(o,e):o;let s=CSS.escape(this.config.implicitInheritance?t:t+i),c=CSS.escape(t+i+a),l=this.#b(`[${s}],[${c}]`),u=this.#y(e,t+a)??this.#y(e,t+i+a);if(u){let n=e.getAttribute(u),i=e.parentNode?.closest?.(l);if(r&&r(n,e),i){let e=this.#T(i,t,void 0,r);return e?(e+`,`+n).replace(/[{}]/g,``):n}return n}let d=e.parentNode?.closest?.(l);return d?(o=this.#T(d,t,void 0,r),!r&&o&&this.config.implicitInheritance&&this.#xe(e,`htmx:after:implicitInheritance`,{elt:e,name:t,parent:d}),o):n}#E(t){return e.split(t).flatMap(t=>{let[,n,r]=t.match(/^\s*(\S+\[[^\]]*\]|\S+)\s*(.*?)\s*$/)??[];if(!n)return[];if(/\[[^\]]*$/.test(n))throw`unterminated:`+n;return[{name:n,...e.parse(r)}]})}#D(e,t){let n=this.#T(e,`hx-method`),r=this.#T(e,`hx-action`);if(!r)for(let t of this.#l){let i=this.#T(e,`hx-`+t);if(i!=null){r=i,n=t;break}}return this.#L(e)&&(r||=t.submitter?.getAttribute?.(`formAction`)||e.getAttribute(e.matches(`a`)?`href`:`action`)),n||=t.submitter?.getAttribute?.(`formmethod`)||e.getAttribute(`method`)||`GET`,{action:r,method:n.toUpperCase()}}#O(e){return e._htmx||(e._htmx={listeners:[],triggerSpecs:[]},e.setAttribute(`data-htmx-powered`,`true`)),e._htmx}#k(e){return e._htmx_state||={}}#A(e){if(this.#ne(e)&&this.#be(e,`htmx:before:init`,{},!0)){let t=this.#O(e);t.initialized=!0,t.eventHandler=this.#j(e),this.#q(e),this.#be(e,`htmx:after:init`,{},!0)}}#j(e){return async t=>{try{let n=this.#M(e,t);await this.#R(n)}catch(t){this.#be(e,`htmx:error`,{error:t})}}}#M(t,n){let{action:r,method:i}=this.#D(t,n),[a,o]=(r||``).split(`#`),s=new AbortController,c={sourceElement:t,sourceEvent:n,status:`created`,select:this.#T(t,`hx-select`),selectOOB:this.#T(t,`hx-select-oob`),target:this.#T(t,`hx-target`),swap:this.#T(t,`hx-swap`)??this.config.defaultSwap,push:this.#T(t,`hx-push-url`),replace:this.#T(t,`hx-replace-url`),transition:this.config.transitions,confirm:this.#T(t,`hx-confirm`),request:{validate:this.#T(t,`hx-validate`,t.matches(`form`)&&!t.noValidate&&!n.submitter?.formNoValidate?`true`:`false`)===`true`,action:a,anchor:o,method:i,headers:this.#P(t),abort:s.abort.bind(s),credentials:`same-origin`,signal:s.signal,mode:this.config.mode}};t._htmx?.boosted&&e.merge(t._htmx.boosted,c),c.target=this.#I(t,c.target),c.target&&(c.request.headers[`HX-Target`]=this.#N(c.target));let l=this.#T(t,`hx-config`);return l&&(e.merge(l,c.request),c.request.mode=this.config.mode),c}#N(e){return`${e.tagName.toLowerCase()}${e.id?`#`+encodeURI(e.id):``}`}#P(e){let t={"HX-Request":`true`,"HX-Source":this.#N(e),"HX-Current-URL":location.href,Accept:`text/html`};return this.#L(e)&&(t[`HX-Boosted`]=`true`),t}#F(e,t){return this.#Pe(e,`hx-headers`,e=>{for(let n in e)t.request.headers[n]=String(e[n])},{ctx:t})}#I(e,t){return t instanceof Element?t:t==null?this.#L(e)?document.body:e:this.#Ve(e,t,`hx-target`)}#L(e){return e?._htmx?.boosted}async#R(e){let t=e.sourceElement,n=e.sourceEvent;if(!t.isConnected||this.#G(n))return;this.#K(n)&&n.preventDefault();let r=/GET|DELETE/.test(e.request.method),i=r?t.matches(`form`)?t:null:t.form||t.closest(`form`),a=this.#Me(t,i,n.submitter,e.request.validate,r);if(!a)return;let o=this.#Pe(t,`hx-vals`,t=>{e.vals=t;for(let e in t)a.set(e,t[e])},{ctx:e});if(o&&await o,e.values)for(let t in e.values)a.delete(t),a.append(t,e.values[t]);let s=this.#F(t,e);if(s&&await s,Object.assign(e.request,{form:i,submitter:n.submitter,body:a}),!this.#be(t,`htmx:config:request`,{ctx:e})||e.request.method===`DIALOG`)return;let c=this.#Ue(e.request.action);if(c!=null){let t=Object.fromEntries(e.request.body);await this.#Q(e.sourceElement,t,c,!1);return}if(r){let t=new URL(e.request.action,document.baseURI);for(let n of e.request.body.keys())t.searchParams.delete(n);for(let[n,r]of e.request.body)t.searchParams.append(n,r);t.origin===location.origin?e.request.action=t.pathname+t.search:e.request.action=t.href,e.request.body=null}else(this.#T(t,`hx-encoding`)??i?.enctype)!==`multipart/form-data`&&(e.request.body=new URLSearchParams(e.request.body));await this.#z(e)}async#z(e){let t=e.sourceElement,n=this.#U(t),r=this.#W(t);if(this.#We(t),r.admit(n,()=>this.#z(e),()=>e.request?.abort?.())!==`run`)return;e.status=`issuing`;let i=[],a=[];try{if(e.confirm&&!await new Promise(n=>{let r={ctx:e,issueRequest:()=>n(!0),dropRequest:()=>n(!1)};if(this.#be(t,`htmx:confirm`,r)){let r=this.#Ue(e.confirm);n(r?this.#Q(t,{ctx:e},r,!0):window.confirm(e.confirm))}})||(this.#H(e),i=this.#Oe(t),a=this.#Ae(t),e.fetch||=window.fetch.bind(window),e.request.headers[`HX-Request-Type`]=e.target===document.body||e.select?`full`:`partial`,!this.#be(t,`htmx:before:request`,{ctx:e})))return;let n=await e.fetch(e.request.action,e.request);if(e.response={raw:n,status:n.status,headers:n.headers},this.#B(e),!this.#be(t,`htmx:before:response`,{ctx:e})||(e.text=await n.text(),!this.#be(t,`htmx:after:request`,{ctx:e})))return;if(e.response.status>=400&&this.#be(t,`htmx:response:error`,{ctx:e}),this.#V(e)){e.keepIndicators=!0;return}
1e.status===`issuing`&&(e.hx.retarget&&(e.target=e.hx.retarget),e.hx.reswap&&(e.swap=e.hx.reswap),e.hx.reselect&&(e.select=e.hx.reselect),e.status=`response received`,this.#rt(e),await this.swap(e),e.status=`swapped`)}catch(n){e.status=`error: `+n,this.#be(t,`htmx:error`,{ctx:e,error:n})}finally{await e.extensionPromise?.catch(()=>{}),clearTimeout(e.requestTimeout),e.hx?.trigger&&this.#X(e.hx.trigger,e.sourceElement),this.#be(t,`htmx:finally:request`,{ctx:e}),e.keepIndicators||(this.#ke(i),this.#je(a)),r.continue()}}#B(e){e.hx={};for(let[t,n]of e.response.raw.headers)t.toLowerCase().startsWith(`hx-`)&&(e.hx[t.slice(3).toLowerCase().replace(/-/g,``)]=n)}#V(t){if(t.hx.refresh===`true`)return this._loc.reload(),!0;if(t.hx.redirect)return this._loc.href=t.hx.redirect,!0;if(t.hx.location){let n=t.hx.location,r={},i=e.parse(n);return(n[0]===`{`||i.path!=null)&&(r=i,n=r.path,delete r.path),r.push==null&&r.replace==null&&(r.push=`true`),this.ajax(`GET`,n,r),!0}}#H(e){let t=e.request.timeout==null?this.config.defaultTimeout:this.parseInterval(e.request.timeout);t&&(e.requestTimeout=setTimeout(()=>e.request?.abort?.(),t))}#U(e){let t=this.#T(e,`hx-sync`);if(!t)return`queue first`;let n=t.split(`:`).pop().trim();return/^(drop|abort|replace|queue)/.test(n)?n:`queue first`}#W(e){let n=this.#T(e,`hx-sync`),r=e;if(n){let t=n.includes(`:`)?n.slice(0,n.lastIndexOf(`:`)).trim():/^(drop|abort|replace|queue)/.test(n)?null:n;t&&(r=this.#Ve(e,t,`hx-sync`)||e)}return this.#k(r).rq||=new t}#G(e){return e.type===`click`&&(e.ctrlKey||e.metaKey||e.shiftKey)&&!!e.currentTarget?.closest?.(`a[href]`)}#K(e){let t=e.currentTarget;if(e.type===`submit`&&t?.tagName===`FORM`)return!0;if(e.type!==`click`||e.button!==0)return!1;let n=t?.closest?.(`button, input[type="submit"], input[type="image"]`),r=n?.form||n?.closest(`form`);if(n&&!n.disabled&&r&&(n.type===`submit`||n.type===`image`||!n.type&&n.tagName===`BUTTON`))return!0;let i=t?.closest?.(`a`);if(!i||!i.href)return!1;let a=i.getAttribute(`href`);return!(a&&a.startsWith(`#`)&&a.length>1)}#q(e,t=e._htmx.eventHandler){let n=this.#T(e,`hx-trigger`)||(e.matches(`form`)?`submit`:e.matches(`input:not([type=button]):not
1([type=submit]),select,textarea`)?`change`:`click`);this.#J(e,n,t)}#J(e,t,n){let r=this.#E(t);this.#O(e).triggerSpecs.push(...r);for(let t of r){t.listeners=[];let[r,i]=this.#Y(t.name),a=[e];t.from===`outside`?a=[document]:t.from&&t.from!==`self`&&(a=this.#Ie(e,t.from));let o=e=>{if((t.halt||t.prevent)&&e.preventDefault(),(t.halt||t.stop||t.consume)&&e.stopPropagation(),t.once)for(let e of t.listeners)e.fromElt.removeEventListener(e.eventName,e.handler,e);n(e)},s=o;if(t.delay?s=e=>{clearTimeout(t.timeout),t.timeout=setTimeout(()=>o(e),this.parseInterval(t.delay))}:t.throttle&&(s=e=>{t.throttled?t.throttledEvent=e:(t.throttled=!0,o(e),t.throttleTimeout=setTimeout(()=>{if(t.throttled=!1,t.throttledEvent){let e=t.throttledEvent;t.throttledEvent=null,s(e)}},this.parseInterval(t.throttle)))}),t.handler=n=>{if((t.from!==`self`||n.target===e)&&!(t.from===`outside`&&e.contains(n.target))&&(!t.target||n.target?.matches?.(t.target))){if(t.changed){let e=t.values??=new WeakMap,n=!1;for(let t of a)e.get(t)!==t.value&&(n=!0,e.set(t,t.value));if(!n)return}if(i){this.#K(n)&&n.preventDefault();let t={};for(let e in n)t[e]=n[e];if(!this.#Q(e,t,i,!0,!1))return}s(n)}},r===`intersect`||r===`revealed`){let n={rootMargin:t.rootMargin};t.root&&(n.root=this.#Ve(e,t.root)),t.threshold&&(n.threshold=parseFloat(t.threshold));let i=r===`revealed`;t.observer=new IntersectionObserver(n=>{for(let r=0;r<n.length;r++)if(n[r].isIntersecting){this.trigger(e,`intersect`,{},!1),i&&t.observer.disconnect();break}},n),r=`intersect`,t.observer.observe(e)}if(r===`every`){let n=Object.keys(t).find(e=>e!==`name`);t.interval=setInterval(()=>{e.isConnected?this.#be(e,`every`,{},!1):clearInterval(t.interval)},this.parseInterval(n))}if(r===`load`){t.handler(new CustomEvent(`load`));continue}for(let n of a){let i={fromElt:n,eventName:r,handler:t.handler,capture:!!t.capture,passive:!!t.passive};e._htmx.listeners.push(i),t.listeners.push(i),n.addEventListener(r,t.handler,i)}}}#Y(e){let t=e.match(/^([^\[]*)\[([^\]]*)]/);return t?[t[1],t[2]]:[e,null]}#X(t,n){if(t[0]===`{`){let r=e.parse(t);for(let e in r){let t=r[e],i=n;t?.target&&(i=this.find(t.target)),this.trigger(i,e,typeof t==`object`?t:{value:t})}}else t.split(`,`).forEach(e=>this.trigger(n,e.trim(),{}))}#Z(e){let t={},n=Object.getPrototypeOf(this);for(let r of Object.getOwnPropertyNames(n))r!==`constructor`&&typeof this[r]==`function`&&(t[r]=[`find`,`findAll`].includes(r)?(t,n)=>n===void 0?this[r](e,t):this[r](t,n):this[r].bind(this));return t}#Q(e,t,n,r=!0,i=!0,a=!1){let o={};Object.assign(o,this.#Z(e));let s={},c={scope:s,code:n};this.#xe(e,`htmx:scope`,c),n=c.code,Object.assign(o,s),Object.assign(o,t);let l=Object.keys(o),u=Object.values(o),d=new(i?this.#a:this.#i)(...l,r?`return (${n})`:n);return a?()=>d.call(e,...u):d.call(e,...u)}process(e,t){if(!e?.isConnected)return;if(!(e instanceof Element)){for(let n of e.children||[])this.process(n,t);return}if(t&&this.#re(e,!0),this.#_(e)||!this.#be(e,`htmx:before:process`))return;let n=[e],r=this.#u.evaluate(e),i=null;for(;i=r.iterateNext();)n.push(i);for(let e of n)!this.#_(e)&&this.#be(e,`htmx:before:on:init`,{},!0)&&this.#De(e);for(let t of this.#S(e,this.#s))this.#A(t);for(let t of this.#S(e,this.#c))this.#$(t);this.#be(e,`htmx:after:process`)}#$(e){let t=this.#T(e,`hx-boost`);if(t&&t!==`false`&&this.#ee(e)&&this.#be(e,`htmx:before:init`,{},!0)){let n=this.#O(e);n.initialized=!0,n.eventHandler=this.#j(e),n.boosted=t;let r=e.matches(`a`)?`click`:`submit`;e._htmx.listeners.push({fromElt:e,eventName:r,handler:e._htmx.eventHandler}),e.addEventListener(r,e._htmx.eventHandler),this.#be(e,`htmx:after:init`,{},!0)}}#ee(e){if(this.#ne(e)){if(e.tagName===`A`){if(e.target===``||e.target===`_self`)return!e.hasAttribute(`download`)&&!e.getAttribute(`href`)?.startsWith?.(`#`)&&this.#te(e.href)}else if(e.tagName===`FORM`)return e.method!==`dialog`&&this.#te(e.action)}}#te(e){try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}}#ne(e){return!e._htmx?.initialized&&!this.#_(e)}#re(e,t){let n=[e,...e.querySelectorAll?.(`[data-htmx-powered]`)??[]];for(let e of n)if(e._htmx){this.#be(e,`htmx:before:cleanup`);for(let t of e._htmx.triggerSpecs||[])t.interval&&clearInterval(t.interval),t.timeout&&clearTimeout(t.timeout),t.throttleTimeout&&clearTimeout(t.throttleTimeout),t.observer?.disconnect();for(let t of e._htmx.listeners||[])t.fromElt.removeEventListener(t.eventName,t.handler,t);e.removeAttribute(`data-htmx-powered`),this.#be(e,`htmx:after:cleanup`),t&&delete e._htmx}}#ie(e){let t=document.createElement(`div`);t.hidden=!0,document.body.insertAdjacentElement(`afterend`,t);let n=e.querySelectorAll?.(this.#b(`[hx-preserve]`))||[];for(let e of n){let n=document.getElementById(e.id);n&&this.#Ze(t,n,null)}return t}#ae(e){for(let t of[...e.children]){let e=document.getElementById(t.id);e&&(this.#Ze(e.parentNode,t,e),this.#re(e),e.remove())}e.remove()}#oe(e){let t=this.#o.createHTML(e);return Document.parseHTMLUnsafe?.(t)||new DOMParser().parseFromString(t,`text/html`)}#se(e){let t=e.replace(/<hx-([a-z]+)(\s+|>)/gi,`<template hx type="$1"$2`).replace(/<\/hx-[a-z]+>/gi,`</template>`),n=``;t=t.replace(/<head(\s[^>]*)?>[\s\S]*?<\/head>/i,e=>(n=this.#oe(e).title,``));let r=t.match(/<([a-z][^\/>\x20\t\r\n\f]*)/i)?.[1]?.toLowerCase(),i,a;if(r===`html`||r===`body`?(i=this.#oe(t),a=document.createDocumentFragment(),a.append(i.body)):(i=this.#oe(`<template>${t}</template>`),a=i.querySelector(`template`).content),!n){let e=a.querySelector(`title:not(svg title)`);e&&(n=e.textContent,e.remove())}return this.#_e(a),{fragment:a,title:n}}#ce(e,t,n,r){let i=t.id?`#`+CSS.escape(t.id):null;n!==`true`&&n&&!n.includes(` `)&&([n,i=i]=n.split(/:(.*)/)),(n===`true`||!n)&&(n=`outerHTML`);let a=this.#de(n);if(i=a.target||i,a.strip??=!a.style.startsWith(`outer`),!i)return;let o=[...document.querySelectorAll(i)];for(let n of o){let i=document.createDocumentFragment();i.append(t.cloneNode(!0)),e.push({type:`oob`,fragment:i,target:n,swapSpec:a,sourceElement:r})}t.remove()}#le(e,t,n){let r=[];if(n)for(let i of n.split(`,`)){let[n,a=`true`]=i.split(/:(.*)/);for(let i of e.querySelectorAll(n))this.#ce(r,i,a,t)}for(let n of e.querySelectorAll(this.#b(`[hx-swap-oob]`))){let e=this.#y(n,`hx-swap-oob`),i=n.getAttribute(e);n.removeAttribute(e),this.#ce(r,n,i,t)}return r}#ue(e,t,n){t?t.before(...n.childNodes):e.append(...n.childNodes)}#de(t){t=t.trim();let n=this.config.defaultSwap;if(t&&!/^\S*:/.test(t)){let e=t.match(/^(\S+)\s*(.*)$/);n=e[1],t=e[2]}return{style:this.#C(n),...e.parse(t)}}#fe(e,t){let n=[];for(let r of e.querySelectorAll(`template[hx]`)){let e=r.getAttribute(`type`);if(e===`partial`){let e=this.#v(r,`hx-target`)||(r.id?`#`+CSS.escape(r.id):null);if(e){this.#_e(r.content);let i=this.#de(this.#v(r,`hx-swap`)||this.config.defaultSwap),a=this.#Ie(t.sourceElement,e);for(let e of a.length?a:[null])n.push({type:`partial`,fragment:r.content.cloneNode(!0),target:e,swapSpec:i,sourceElement:t.sourceElement})}}else this.#xe(r,`htmx:process:`+e,{ctx:t,tasks:n});r.remove()}return n}#pe(e,t,n,r){try{n!=null&&e.setSelectionRange&&e.setSelectionRange(n,r),e.focus(t)}catch{}}#me(e){let t=this.#S(e,`[autofocus]`)[0];t&&this.#pe(t)}#he(e,t){if(e.scroll){let n=e.scrollTarget?this.#He(e.scrollTarget):t;n&&(e.scroll===`top`?n.scrollTop=0:e.scroll===`bottom`&&(n.scrollTop=n.scrollHeight))}(e.show===`top`||e.show===`bottom`)&&(e.showTarget?this.#He(e.showTarget):t)?.scrollIntoView?.(e.show===`top`)}#ge(e){e.request?.anchor&&document.getElementById(e.request.anchor)?.scrollIntoView({block:`start`,behavior:`auto`})}#_e(e){let t=this.#S(e,`script`);for(let e of t){let t=document.createElement(`script`);for(let n of e.attributes)t.setAttribute(n.name,n.value);this.config.inlineScriptNonce&&(t.nonce=this.config.inlineScriptNonce),t.textContent=this.#o.createScript(e.textContent),e.replaceWith(t)}}initialize(){this.config.history&&!this.#p&&(this.#p=!0,history.state||history.replaceState({htmx:!0}
1,``,location.href),window.navigation&&!/firefox/i.test(navigator.userAgent)?navigation.addEventListener(`navigate`,e=>{e.navigationType===`traverse`&&e.canIntercept&&!e.hashChange&&e.intercept({handler:()=>this.#we()})}):window.addEventListener(`popstate`,e=>this.#we(e.state))),this.process(document.body)}async swap(e){try{this.#Ee(e);let{fragment:t,title:n}=this.#se(e.text);e.title=n;let r=[],i=this.#le(t,e.sourceElement,e.selectOOB),a=this.#fe(t,e);r.push(...i,...a);let o=a.length||i.length&&!this.config.allowEmptySwapAfterOOB,s=this.#ve(e,t,o);if(s&&r.unshift(s),!this.#be(e.sourceElement,`htmx:before:swap`,{ctx:e,tasks:r}))return;let c=[],l=[];for(let t of r)t.swapSpec?.transition??s?.transition??e.transition?l.push(t):c.push(this.#ye(t));l.length>0&&c.push(this.#it(async()=>{for(let e of l)await this.#ye(e,!1)},e)),await Promise.all(c),!e.sourceElement?.isConnected&&s?.target?.isConnected&&(e.sourceElement=s.target),this.#be(e.sourceElement,`htmx:after:swap`,{ctx:e}),e.title&&!s?.swapSpec?.ignoreTitle&&(document.title=e.title),this.#ge(e)}finally{this.#be(e.sourceElement,`htmx:finally:swap`,{ctx:e})}}#ve(e,t,n){let r=this.#de(e.swap||this.config.defaultSwap);if(r.style===`delete`||t.childElementCount>
10||t.textContent.trim()||(r.swapEmpty??!n)){if(e.select){let n=t.querySelectorAll(e.select);t=document.createDocumentFragment(),t.append(...n)}return this.#L(e.sourceElement)&&(r.show||=`top`),{type:`main`,fragment:t,target:this.#I(e.sourceElement||document.body,r.target||e.target),swapSpec:r,sourceElement:e.sourceElement,transition:e.transition&&r.transition!==!1}}}async#ye(e,t=!0){let{target:n,swapSpec:r,fragment:i}=e;if(typeof n==`string`&&(n=document.querySelector(n)),!n)return;typeof r==`string`&&(r=this.#de(r));let a=r.style;if(a===`none`)return;if(i.firstElementChild?.tagName===`BODY`){let e=n===document.body&&a.startsWith(`outer`);e&&a===`outerHTML`&&(a=`outerSync`),r.strip??=!e}if(r.strip&&i.firstElementChild&&(i=document.createDocumentFragment(),i.append(...(e.fragment.firstElementChild.content||e.fragment.firstElementChild).childNodes)),this.#st(n,`htmx-swapping`),t&&e.swapSpec?.swap&&await this.timeout(e.swapSpec?.swap),a===`delete`){n.parentNode&&(this.#re(n),n.parentNode.removeChild(n));return}let o,s=[],c=r.settle??this.config.defaultSettleDelay,l=n.parentNode;if(a===`innerHTML`||a===`outerHTML`&&l){let e=document.activeElement;if(e?.id){let t,n;try{t=e.selectionStart,n=e.selectionEnd}catch{}o={elt:e,start:t,end:n}}s=t&&c?this.#ot(i,n):[]}let u=this.#ie(i),d=[...i.childNodes];try{if(a===`innerHTML`){for(let e of n.children)this.#re(e);n.replaceChildren(...i.childNodes)}else if(a===`textContent`){for(let e of n.querySelectorAll(`[data-htmx-powered]`))this.#re(e);n.textContent=i.textContent}else if(a===`outerHTML`)l&&(this.#ue(l,n,i),this.#re(n),l.removeChild(n),n=d[0]||l);else if(a===`outerSync`){this.#$e(n,i.firstElementChild);for(let e of n.children)this.#re(e);n.replaceChildren(...i.firstElementChild.childNodes),d=[n]}else if(a===`innerMorph`)this.#Ge(n,i,!0),d=[...n.childNodes];else if(a===`outerMorph`)this.#Ge(n,i,!1),d.push(n);else if(a===`beforebegin`)l&&this.#ue(l,n,i);else if(a===`afterbegin`)this.#ue(n,n.firstChild,i);else if(a===`beforeend`)this.#ue(n,null,i);else if(a===`afterend`)l&&this.#ue(l,n.nextSibling,i);else{let e=this.#e.get(`handle_swap`)||[],t=!1;for(let o of e){let e=o(a,n,i,r);if(e){t=!0,Array.isArray(e)&&(d=e);break}}if(!t)throw Error(`Unknown swap style: ${a}`)}}finally{this.#ct(n,`htmx-swapping`)}if(e.target=n,this.#ae(u),o&&!o.elt.matches(`:focus`)){let e=document.getElementById(o.elt.id);if(e){let t={preventScroll:r.focusScroll===void 0?!this.config.defaultFocusScroll:!r.focusScroll};this.#pe(e,t,o.start,o.end)}}this.#be(n,`htmx:before:settle`,{task:e,newContent:d,settleTasks:s});for(let e of d)this.#st(e,`htmx-added`);if(t&&s.length>0){this.#st(n,`htmx-settling`),await this.timeout(c);for(let e of s)e();this.#ct(n,`htmx-settling`)}this.#be(n,`htmx:after:settle`,{task:e,newContent:d,settleTasks:s});for(let e of d)this.#ct(e,`htmx-added`),this.process(e),this.#me(e);this.#he(r,n)}#be(e,t,n={},r=!0){if(n.error){let r=`htmx: ${t}: ${n.error.message??n.error}`;n.error instanceof Error?console.error(r,n.error,{elt:e,detail:n}):console.error(r,{elt:e,detail:n})}else n.warn?console.warn(`htmx: ${t}: ${n.warn}`,{elt:e,detail:n}):this.config.logAll&&console.log(`htmx: ${t}`,{elt:e,detail:n});return e=this.#lt(e),this.#xe(e,t,n),this.trigger(e,this.#ut(t),n,r)}#xe(e,t,n={}){let r=this.#e.get(t.replace(/:/g,`_`));if(r){n.cancelled=!1;for(let t of r)if(t(e,n)===!1||n.cancelled)return n.cancelled=!0,!1}return!0}timeout(e){if(e=this.parseInterval(e),e>0)return new Promise(t=>setTimeout(t,e))}onLoad(e){this.on(this.#ut(`htmx:after:process`),t=>{e(t.target)})}on(e,t,n){let r,i=document;return n===void 0?(r=e,n=t):(i=this.#lt(e),r=t),i.addEventListener(r,n),n}find(e,t){return this.#He(e,t)}findAll(e,t){return this.#Ie(e,t)}parseInterval(e){if(typeof e==`number`)return e;let t={ms:1,s:1e3,m:6e4},[,n,r]=e?.match(/^([\d.]+)(ms|s|m)?$/)||[],i=parseFloat(n)*(t[r]||1);return isNaN(i)?void 0:i}trigger(e,t,n={},r=!0){e=this.#lt(e);let i=new CustomEvent(t,{detail:n,cancelable:!0,bubbles:r,composed:!0}),a=e?.isConnected?e:document;return!n.cancelled&&a.dispatchEvent(i)}ajax(e,t,n){(!n||n instanceof Element||typeof n==`string`)&&(n={target:n});let r=typeof n.source==`string`?document.querySelector(n.source):n.source;if(typeof n.source==`string`&&!r)return Promise.reject(Error(`Source not found`));if(n.target){let e=this.#I(document.body,n.target);if(!e)return Promise.reject(Error(`Target not found`));r||=e}r||=document.body;let i=this.#M(r,n.event||{});return Object.assign(i,n),n.target&&(i.target=this.#I(document.body,n.target)),Object.assign(i.request,{action:t,method:e.toUpperCase()}),n.headers&&Object.assign(i.request.headers,n.headers),this.#R(i)}#Se(e){this.config.history&&(history.state||history.replaceState({htmx:!0}
1,``,location.href),history.pushState({htmx:!0},``,e),this.#be(document,`htmx:after:history:push`,{path:e}))}#Ce(e){this.config.history&&(history.replaceState({htmx:!0},``,e),this.#be(document,`htmx:after:history:replace`,{path:e}))}async#we(e,t){if(await this.timeout(1),e??=history.state,!e?.htmx)return;this.#f?.abort(),t||=location.pathname+location.search;let n=document.querySelector(this.#b(`[hx-history-elt]`))||document.body;if(this.#be(document,`htmx:before:history:restore`,{path:t,cacheMiss:!0})){if(this.config.history===`reload`)this._loc.reload();else return this.#f=new AbortController,this.ajax(`GET`,t,{target:n,swap:`outerSync`,select:n===document.body?void 0:this.#b(`[hx-history-elt]`),request:{headers:{"HX-History-Restore-Request":`true`},signal:this.#f.signal}})}}#Te(e){let{sourceElement:t,push:n,replace:r,hx:i,response:a}=e;if((i?.pushurl||i?.replaceurl)&&(n=i.pushurl,r=i.replaceurl),n==null&&r==null&&this.#L(t)&&(n=`true`),(n===`false`||n===!1)&&(n=null),(r===`false`||r===!1)&&(r=null),!n&&!r)return null;let o=n||r;if(o===`true`){let t=a?.raw?.url||e.request.action,n=new URL(t,location.href);o=n.pathname+n.search+(e.request.anchor?`#`+e.request.anchor:``)}return{type:n?`push`:`replace`,path:o}}#Ee(e){if(!this.config.history)return;let t=this.#Te(e);if(!t)return;let n={history:t,sourceElement:e.sourceElement,response:e.response};this.#be(document,`htmx:before:history:update`,n)&&(t.type===`push`?this.#Se(t.path):this.#Ce(t.path),this.#be(document,`htmx:after:history:update`,n))}#De(e){if(e._htmx?.onInitialized)return;let t=this.#x(`hx-on`),n=this.config.metaCharacter||`:`,r=t=>async n=>{try{await this.#Q(e,{event:n},`with(event?.detail||{}){${t}}`,!1)}catch(t){typeof t!=`symbol`&&this.#be(e,`htmx:error`,{error:t})}};for(let i of e.getAttributeNames()){let a=t.find(e=>i.startsWith(e));if(!a)continue;this.#O(e).onInitialized=!0;let o=i.substring(a.length),s=e.getAttribute(i);if(!o){for(let t of s.split(/;(?=[^;]*->)/)){let n=t.indexOf(`->`);n!==-1&&this.#J(e,t.substring(0,n).trim(),r(t.substring(n+2).trim()))}continue}if(o[0]!==n)continue;let c=o.substring(1);c.startsWith(n)&&(c=`htmx`+n+c.substring(1)),this.#J(e,c,r(s))}}#Oe(e){let t=this.#T(e,`hx-indicator`),n;if(t)n=this.#Ie(e,t,`hx-indicator`);else{if(e===document.body)return[];n=[e]}for(let e of n){let t=this.#k(e);t.rc=(t.rc||0)+1,this.#st(e,this.config.requestClass)}return n}#ke(e){for(let t of e){let e=this.#k(t);e.rc&&--e.rc<=0&&(this.#ct(t,this.config.requestClass),delete e.rc)}}#Ae(e){let t=this.#T(e,`hx-disable`),n=[];if(t){n=this.#Ie(e,t,`hx-disable`);for(let e of n){let t=this.#k(e);t.dc=(t.dc||0)+1,e.disabled=!0}}return n}#je(e){for(let t of e){let e=this.#k(t);e.dc&&--e.dc<=0&&(t.disabled=!1,delete e.dc)}}#Me(e,t,n,r,i){if(r&&t&&!t.reportValidity())return;let a=t?new FormData(t):new FormData,o=t?new Set(t.elements):new Set;if(!t){if(r&&e.reportValidity&&!e.reportValidity())return;this.#Ne(e,o,a,i)}n&&n.name&&(a.append(n.name,n.value),o.add(n));let s=this.#T(e,`hx-include`);if(s)for(let t of this.#Ie(e,s)){if(r&&t.reportValidity&&!t.reportValidity())return;this.#Ne(t,o,a)}return a}#Ne(e,t,n,r){let i=e.tagName,a=[];i===`BUTTON`||i.includes(`-`)?a=[e]:([`INPUT`,`SELECT`,`TEXTAREA`,`FIELDSET`].includes(i)||!r)&&(a=this.#S(e,`[name]:not(button)`));for(let e of a){let r=e.name||e.getAttribute?.(`name`);if(!r||e.matches(`:disabled`)||t.has(e))continue;t.add(e);let i=e.type;if(i===`checkbox`||i===`radio`||e.tagName!==`INPUT`&&`checked`in e)e.checked&&n.append(r,e.value);else if(i===`file`)for(let t of e.files)n.append(r,t);else if(i===`select-multiple`)for(let t of e.selectedOptions)n.append(r,t.value);else if(Array.isArray(e.value))for(let t of e.value)n.append(r,t);else n.append(r,e.value)}}#Pe(t,n,r,i={}){let a=this.#T(t,n);if(!a)return null;let o=this.#Ue(a);if(o)return o.indexOf(`{`)!==0&&(o=`{`+o+`}`),this.#Q(t,i,o,!0).then(e=>{r(e)});r(e.parse(a))}#Fe(e){let t=e.trim();return t.startsWith(`<`)&&t.endsWith(`/>`)?t.slice(1,-2):t}#Ie(t,n,r,i){let a=n??t,o=n?this.#lt(t)||document.body:document;if(a.startsWith(`global `))return this.#Ie(o,a.slice(7),r,!0);let s=a?e.split(a):[],c=[],l=[];for(let e of s){let t=this.#Fe(e),n;if(t.startsWith(`closest `))n=o.closest(t.slice(8));else if(t.startsWith(`find `))n=o.querySelector(t.slice(5));else if(t.startsWith(`findAll `))c.push(...o.querySelectorAll(t.slice(8)));else if(t===`next`||t===`nextElementSibling`)n=o.nextElementSibling;else if(t.startsWith(`next `))n=this.#Le(o,t.slice(5),!!i);else if(t===`previous`||t===`previousElementSibling`)n=o.previousElementSibling;else if(t.startsWith(`previous `))n=this.#Re(o,t.slice(9),!!i);else if(t===`document`)n=document;else if(t===`window`)n=window;else if(t===`body`)n=document.body;else if(t===`host`)n=o.getRootNode().host;else if(t===`this`){if(r){c.push(...this.#w(o,r));continue}n=o}else l.push(t);n&&c.push(n)}if(l.length>0){let e=l.join(`,`),t=this.#Be(o,!!i);c.push(...t.querySelectorAll(e))}return[...new Set(c)]}#Le(e,t,n){return this.#ze(this.#Be(e,n).querySelectorAll(t),e,Node.DOCUMENT_POSITION_PRECEDING)}#Re(e,t,n){let r=[...this.#Be(e,n).querySelectorAll(t)].reverse();return this.#ze(r,e,Node.DOCUMENT_POSITION_FOLLOWING)}#ze(e,t,n){for(let r of e)if(r.compareDocumentPosition(t)===n)return r}#Be(e,t){return e.isConnected&&e.getRootNode?e.getRootNode?.({composed:t}):document}#Ve(e,t,n){let r=this.#Ie(e,t,n)[0];return r||console.warn(`htmx: '${t}' on ${n} did not match any element`,{elt:e,selector:t,attr:n}),r}#He(e,t,n){return this.#Ie(e,t,n)[0]}#Ue(e){if(e!=null){if(e.startsWith(`js:`))return e.substring(3);if(e.startsWith(`javascript:`))return e.substring(11)}}#We(e){let t=this.#O(e);if(t.abortInitialized)return;t.abortInitialized=!0;let n=()=>{this.#W(e).abort()};e.addEventListener(`htmx:abort`,n),t.listeners.push({fromElt:e,eventName:`htmx:abort`,handler:n})}
1#Ge(e,t,n){let{persistentIds:r,idMap:i}=this.#tt(e,t),a=document.createElement(`div`);a.hidden=!0,document.body.after(a);let o={target:e,idMap:i,persistentIds:r,pantry:a,futureMatches:new WeakSet};n?this.#Ke(o,e,t):this.#Ke(o,e.parentNode,t,e,e.nextSibling),this.#re(a),a.remove()}#Ke(e,t,n,r=null,i=null){t instanceof HTMLTemplateElement&&n instanceof HTMLTemplateElement&&(t=t.content,n=n.content),r||=t.firstChild;let a=n.firstChild;for(;a;){let n;if(r&&r!=i&&(n=this.#Je(e,a,r,i),n&&n!==r)){let o=r;for(;o&&o!==n;){let n=o;o=o.nextSibling,n instanceof Element&&(e.idMap.has(n)||this.#qe(e,n,a))?this.#Ze(t,n,i):this.#Xe(e,n)}}if(!n&&a instanceof Element&&e.persistentIds.has(a.id)){let i=CSS.escape(a.id);n=e.target.id===a.id&&e.target||e.target.querySelector(`[id="${i}"]`)||e.pantry.querySelector(`[id="${i}"]`);let o=n;for(;o=o.parentNode;){let t=e.idMap.get(o);t&&(t.delete(n.id),t.size||e.idMap.delete(o))}this.#Ze(t,n,r)}if(n){this.#Qe(n,a,e),r=n.nextSibling,a=a.nextSibling;continue}let o=a.nextSibling;if(e.idMap.has(a)){let n=document.createElement(a.tagName);t.insertBefore(n,r),this.#Qe(n,a,e),this.process(n),r=n.nextSibling}else t.insertBefore(a,r),r=a.nextSibling;a=o}for(;r&&r!=i;){let t=r;r=r.nextSibling,this.#Xe(e,t)}}#qe(e,t,n){if(e.futureMatches.has(t))return!0;for(let r=n.nextSibling,i=0;r&&i<this.config.morphScanLimit;r=r.nextSibling,i++)if(r instanceof Element&&t.isEqualNode(r))return e.futureMatches.add(t),!0;return!1}#Je(e,t,n,r){if(t.nodeType===3)return n?.nodeType===3?n:null;if(!(t instanceof Element))return null;let i=null,a=0,o=this.config.morphScanLimit,s=e.idMap.get(t),c=s?.size||0;if(t.id&&!s)return null;let l=n;for(;l&&l!=r;){let n=e.idMap.get(l);if(this.#r.isSoftMatch(l,t)){if(n&&s&&[...n].some(e=>s.has(e)))return l;if(!n){if(o>0&&l.isEqualNode(t))return l;i||=l}}if(a+=n?.size||0,a>c||document.activeElement?.selectionStart!=null&&l.contains(document.activeElement)||--o<1&&c===0)break;l=l.nextSibling}return i&&this.#qe(e,i,t)?null:i}#Ye(e,t){return!(e instanceof Element)||e.tagName!==t.tagName||e.tagName===`SCRIPT`&&!e.isEqualNode(t)?!1:!e.id||e.id===t.id}#Xe(e,t){e.idMap.has(t)?this.#Ze(e.pantry,t,null):(this.#re(t),t.remove())}#Ze(e,t,n){if(e.moveBefore)try{e.moveBefore(t,n);return}catch{}e.insertBefore(t,n)}#Qe(e,t,n){if(e.nodeType===3){e.nodeValue!==t.nodeValue&&(e.nodeValue=t.nodeValue);return}this.config.morphSkip&&e.matches?.(this.config.morphSkip)||this.#xe(e,`htmx:before:morph:node`,{oldNode:e,newNode:t})&&(this.#$e(e,t),e instanceof HTMLTextAreaElement&&document.activeElement!==e&&e.defaultValue!=t.defaultValue&&(e.value=t.value),!(this.config.morphSkipChildren&&e.matches?.(this.config.morphSkipChildren))&&(!e.isEqualNode(t)||t.tagName===`TEMPLATE`||t.querySelector?.(`template`))&&this.#Ke(n,e,t))}#$e(e,t){let n=this.config.morphIgnore||[],r=!1,i=e=>this.#x(`hx-`).some(t=>e.startsWith(t));for(let a of t.attributes)if(!n.some(e=>a.name.startsWith(e))&&e.getAttribute(a.name)!==a.value){if(i(a.name)&&(r=!0),!this.#xe(e,`htmx:before:morph:attr`,{attrName:a.name,newValue:a.value}))continue;e.setAttribute(a.name,a.value),a.name===`value`&&e instanceof HTMLInputElement&&e.type!==`file`&&document.activeElement!==e&&(e.value=a.value)}for(let a=e.attributes.length-1;a>=0;a--){let o=e.attributes[a];if(o&&!t.hasAttribute(o.name)&&!n.some(e=>o.name.startsWith(e))){if(i(o.name)&&(r=!0),!this.#xe(e,`htmx:before:morph:attr`,{attrName:o.name,newValue:null}))continue;e.removeAttribute(o.name)}}r&&this.#re(e,!0)}#et(e,t,n,r){for(let i of r)if(t.has(i.id)){let t=i;for(;t&&t!==n;){let n=e.get(t);n??(n=new Set,e.set(t,n)),n.add(i.id),t=t.parentElement}}}#tt(e,t){let n=this.#S(e,`[id]`),r=t.querySelectorAll(`[id]`),i=this.#nt(n,r),a=new Map;return this.#et(a,i,e.parentElement,n),this.#et(a,i,t,r),{persistentIds:i,idMap:a}}#nt(e,t){let n=new Set,r=new Map;for(let{id:t,tagName:i}of e)r.has(t)?n.add(t):t&&r.set(t,i);let i=new Set;for(let{id:e,tagName:a}of t)i.has(e)?n.add(e):r.get(e)===a&&i.add(e);for(let e of n)i.delete(e);return i}#rt(t){let n=t.response.raw.status,r=this.config.noSwap.map(e=>e+``),i=n+``;for(let n of[i,i.slice(0,2)+`x`,i[0]+`xx`]){if(r.includes(n)){t.swap=`none`;return}let i=this.#T(t.sourceElement,`hx-status:`+n);if(i){e.merge(i,t);return}}}#it(e,t){return new Promise(n=>
1{this.#d||=[],this.#d.push({task:e,resolve:n,ctx:t}),this.#m||this.#at()})}async#at(){if(this.#d.length===0||this.#m)return;this.#m=!0;let{task:e,resolve:t,ctx:n}=this.#d.shift();try{if(document.startViewTransition){let t={task:e,ctx:n};this.#be(n.sourceElement,`htmx:before:viewTransition`,t),await document.startViewTransition(t.task).finished,this.#be(n.sourceElement,`htmx:after:viewTransition`,t)}else await e()}catch{}finally{this.#m=!1,t(),this.#at()}}#ot(e,t){let n=t.querySelectorAll(`[id]`),r=Object.fromEntries([...n].map(e=>[e.id,e])),i=e.querySelectorAll(`[id]`),a=[];for(let e of i){let t=r[e.id];if(t?.tagName===e.tagName){let n=e.cloneNode(!1);this.#$e(e,t),a.push(()=>{this.#$e(e,n)})}}return a}#st(e,t){e?.classList?.add?.(t)}#ct(e,t){e?.classList?.remove?.(t),e?.classList?.length===0&&e.removeAttribute(`class`)}#lt(e){return typeof e==`string`?this.find(e):e}#ut(e){return this.config.metaCharacter?e.replace(/:/g,this.config.metaCharacter):e}}return new n})();typeof window<`u`&&(window.htmx=n);export{t}; 2//# sourceMappingURL=htmx.esm-DMKZY19L.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.