@alixex/ranui-cdn 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +32 -2
  2. package/dist/IIFE-LICENSES.md +2415 -0
  3. package/dist/iife/attachments.iife.js +1 -0
  4. package/dist/iife/button.iife.js +111 -0
  5. package/dist/iife/card.iife.js +1 -0
  6. package/dist/iife/checkbox.iife.js +1 -0
  7. package/dist/iife/colorpicker.iife.js +111 -0
  8. package/dist/iife/content.iife.js +1 -0
  9. package/dist/iife/conversation.iife.js +1 -0
  10. package/dist/iife/disclosure-row.iife.js +1 -0
  11. package/dist/iife/dropdown.iife.js +1 -0
  12. package/dist/iife/fan-gallery.iife.js +1 -0
  13. package/dist/iife/glass.iife.js +290 -0
  14. package/dist/iife/icon.iife.js +111 -0
  15. package/dist/iife/image.iife.js +1 -0
  16. package/dist/iife/input.iife.js +111 -0
  17. package/dist/iife/link.iife.js +1 -0
  18. package/dist/iife/loading.iife.js +1 -0
  19. package/dist/iife/markdown.iife.js +4048 -0
  20. package/dist/iife/math.iife.js +206 -0
  21. package/dist/iife/menubar.iife.js +70 -0
  22. package/dist/iife/mermaid.iife.js +3700 -0
  23. package/dist/iife/message.iife.js +111 -0
  24. package/dist/iife/modal.iife.js +111 -0
  25. package/dist/iife/player.iife.js +175 -0
  26. package/dist/iife/popover.iife.js +1 -0
  27. package/dist/iife/progress.iife.js +1 -0
  28. package/dist/iife/radar.iife.js +1 -0
  29. package/dist/iife/reasoning.iife.js +3 -0
  30. package/dist/iife/route.iife.js +1 -0
  31. package/dist/iife/router.iife.js +1 -0
  32. package/dist/iife/scratch.iife.js +1 -0
  33. package/dist/iife/section.iife.js +1 -0
  34. package/dist/iife/select.iife.js +111 -0
  35. package/dist/iife/skeleton.iife.js +1 -0
  36. package/dist/iife/state-dot.iife.js +1 -0
  37. package/dist/iife/surface-switch.iife.js +111 -0
  38. package/dist/iife/tab.iife.js +111 -0
  39. package/dist/iife/tabpane.iife.js +1 -0
  40. package/dist/iife/theme-switch.iife.js +111 -0
  41. package/dist/iife/token-meter.iife.js +2 -0
  42. package/dist/iife/tool-card.iife.js +4 -0
  43. package/dist/iife/voice-button.iife.js +1 -0
  44. package/dist/index.iife.js +47 -0
  45. package/package.json +30 -3
@@ -0,0 +1 @@
1
+ var ranui_attachments=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=`:host{display:block}:host(:not([count])) .ran-attachments{display:none}.ran-attachments{display:flex;flex-wrap:wrap;gap:var(--ran-attachments-gap, var(--ran-space-2));padding:var(--ran-attachments-padding, var(--ran-space-2) 0)}.ran-attachment{display:flex;position:relative;align-items:center;gap:var(--ran-attachment-gap, var(--ran-space-2));border:1px solid var(--ran-attachment-border-color, var(--ran-color-border));border-radius:var(--ran-attachment-border-radius, var(--ran-radius-md));background:var(--ran-attachment-background, var(--ran-color-bg-subtle));padding:var(--ran-attachment-padding, var(--ran-space-1) var(--ran-space-2));max-width:var(--ran-attachment-max-width, 220px)}.ran-attachment-thumb{flex:none;border-radius:var(--ran-attachment-thumb-radius, var(--ran-radius-sm));width:var(--ran-attachment-thumb-size, var(--ran-size-6));height:var(--ran-attachment-thumb-size, var(--ran-size-6));object-fit:cover}.ran-attachment-icon{flex:none;color:var(--ran-attachment-icon-color, var(--ran-color-text-secondary))}.ran-attachment-meta{display:flex;flex-direction:column;min-width:0}.ran-attachment-name{overflow:hidden;color:var(--ran-attachment-name-color, var(--ran-color-text));font-size:var(--ran-attachment-name-font-size, var(--ran-text-label-3));white-space:nowrap;text-overflow:ellipsis}.ran-attachment-size{color:var(--ran-attachment-size-color, var(--ran-color-text-secondary));font-size:var(--ran-attachment-size-font-size, var(--ran-text-label-3))}.ran-attachment-remove{position:relative;display:flex;flex:none;align-items:center;justify-content:center;border:none;border-radius:var(--ran-attachment-remove-radius, var(--ran-radius-full));background:none;padding:0;width:var(--ran-attachment-remove-size, var(--ran-size-4));height:var(--ran-attachment-remove-size, var(--ran-size-4));color:var(--ran-attachment-remove-color, var(--ran-color-text-secondary));cursor:pointer}.ran-attachment-remove:before{position:absolute;inset:-4px;content:""}@media(hover:hover){.ran-attachment-remove:hover{background:var(--ran-attachment-remove-hover-background, var(--ran-color-bg-hover));color:var(--ran-attachment-remove-hover-color, var(--ran-color-text))}}.ran-attachment-remove:focus-visible{outline:2px solid var(--ran-attachment-focus-color, var(--ran-color-focus));outline-offset:2px}`,n=typeof document>`u`,r=[`B`,`KB`,`MB`,`GB`,`TB`],i=e=>{if(!Number.isFinite(e)||e<=0)return`0 B`;let t=e,n=0;for(;t>=1024&&n<r.length-1;)t/=1024,n+=1;return n===0?`${Math.round(t)} B`:`${t.toFixed(1)} ${r[n]}`},a=/["'&<>]/;function o(e){let t=``+e,n=a.exec(t);if(!n)return t;let r,i=``,o=0,s=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r=`&quot;`;break;case 38:r=`&amp;`;break;case 39:r=`&#39;`;break;case 60:r=`&lt;`;break;case 62:r=`&gt;`;break;default:continue}s!==o&&(i+=t.substring(s,o)),s=o+1,i+=r}return s===o?i:i+t.substring(s,o)}var s=class{ac=null;get signal(){return this.ac??=new AbortController,this.ac.signal}on(e,t,n,r){return e.addEventListener(t,n,{...r,signal:this.signal}),this}delegate(e,t,n,r,i){return e.addEventListener(n,n=>{let i=n.target?.closest(t);i&&e.contains(i)&&r(n,i)},{...i,signal:this.signal}),this}abort(){this.ac?.abort(),this.ac=null}},ee=new Map,te=`data-adopted-style`,ne=(e,t,n)=>{if(typeof CSSStyleSheet>`u`)return!1;try{if(!n.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),n.set(t,e)}let r=n.get(t);return e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]),!0}catch{return!1}},re=(e,t,n=te)=>{if(t){if(typeof document>`u`){let n=e.adoptedStyleSheets;Array.isArray(n)&&!n.includes(t)&&n.push(t);return}if(!ne(e,t,ee)&&!e.querySelector(`style[${n}]`)){let r=document.createElement(`style`);r.setAttribute(n,``),r.textContent=t,e.appendChild(r)}}};Object.freeze({});var ie=null;function c(){return ie}var l=0,u=1,d=2,f=null,p=null,m=0,h=new Set,g=!1;function _(e,t){let n=t?.equals??Object.is,r={value:e,observers:new Set};return[()=>(se(r),r.value),e=>{let t=typeof e==`function`?e(r.value):e;if(!n(r.value,t)){r.value=t;for(let e of r.observers)S(e,d);m===0&&ce()}}]}function v(e){let t=ae(e,!0);return oe(t),w(t),()=>E(t)}function y(e){let t=f;f=null;try{return e()}finally{f=t}}function b(e){let t={owned:[],cleanups:[],owner:p},n=p,r=f;p=t,f=null;try{return e(()=>le(t))}finally{p=n,f=r}}function x(e){p&&p.cleanups.push(e)}function ae(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:d,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:p}}function oe(e){p&&p.owned.push(e)}function se(e){f&&(f.sources.add(e),e.observers.add(f))}function S(e,t){if(e.disposed||e.state>=t)return;let n=e.state===l;if(e.state=t,e.isEffect)h.add(e);else if(n)for(let t of e.observers)S(t,u)}function ce(){if(!(m>0||g)){g=!0;try{for(;h.size>0;){let e=[...h];h.clear();for(let t of e)t.disposed||C(t)}}finally{g=!1}}}function C(e){if(!(e.disposed||e.state===l)){if(e.state===u)for(let t of e.sources)`fn`in t&&C(t);e.state===d&&w(e),e.state=l}}function w(e){if(e.running)throw Error(`ranview reactivity: cyclic dependency detected (a computation triggered itself).`);T(e);let t=f,n=p;f=e,p=e,e.running=!0,e.state=l;try{let t=e.fn();if(e.isEffect)typeof t==`function`&&e.cleanups.push(t);else{let n=e.value;if(e.value=t,e.observers.size>0&&!e.equals(n,t))for(let t of e.observers)S(t,d)}}finally{e.running=!1,f=t,p=n}}function T(e){for(let t of e.owned)E(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0;for(let t of e.sources)t.observers.delete(e);e.sources.clear()}function E(e){e.disposed||(e.disposed=!0,T(e),e.observers.clear())}function le(e){for(let t of e.owned)E(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0}function D(e){return o(e)}var ue=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,de=`.#[`;function fe(e){let t=[],n=0,r=/^[a-zA-Z][\w-]*/.exec(e);for(r!==null&&(t.push(r[0]),n=r[0].length);n<e.length;){let r=e[n];if(r===`[`){let r=e.indexOf(`]`,n+1);if(r===-1)return null;t.push(e.slice(n,r+1)),n=r+1;continue}if(r!==`.`&&r!==`#`)return null;let i=n+1;for(;i<e.length&&!de.includes(e[i]);)i+=1;if(i===n+1)return null;t.push(e.slice(n,i)),n=i}return t.length>0?t:null}var pe=(e,t)=>{let n=t;if(n.startsWith(`.`))return e.classList.contains(n.slice(1));if(n.startsWith(`#`))return e.getAttribute(`id`)===n.slice(1);if(n.startsWith(`[`)&&n.endsWith(`]`)){let[t,r]=n.slice(1,-1).trim().split(`=`),i=(t||``).trim();if(!i)return!1;if(r==null)return e.hasAttribute(i);let a=r.trim().replace(/^['"]|['"]$/g,``);return e.getAttribute(i)===a}return e.tagName===n.toLowerCase()},me=(e,t)=>{let n=t.trim();if(!n)return!1;let r=fe(n);return r!==null&&r.every(t=>pe(e,t))},O=(e,t,n)=>{for(let r of e)ue(r)&&(me(r,t)&&n.push(r),O(r.childrenList,t,n))};function k(e,t,n){if(n==null)return e.push(t),t;let r=e.indexOf(n);return r===-1?e.push(t):e.splice(r,0,t),t}var A=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return k(this.childrenList,e,t)}serialize(){return this.childrenList.map(e=>typeof e==`string`?o(e):e.serialize()).join(``)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return O(this.childrenList,e,t),t}},he=new Map,j=class{tagName;attributes=new Map;_inlineStyles=null;get inlineStyles(){return this._inlineStyles??he}childrenList=[];shadowRoot=null;_textContent=null;get textContent(){return this._textContent}set textContent(e){this._textContent=e}content;eventListeners=null;_style=null;_classList=null;get style(){return this._style??={setProperty:(e,t)=>{let n=e.startsWith(`--`)?e:e.replace(/([A-Z])/g,`-$1`).toLowerCase();(this._inlineStyles??=new Map).set(n,t)},removeProperty:e=>this._inlineStyles?.delete(e)??!1}}get classList(){return this._classList??={add:(...e)=>{let t=this.attributes.get(`class`)||``,n=new Set([...t.split(` `).filter(Boolean),...e]);this.attributes.set(`class`,Array.from(n).join(` `))},remove:(...e)=>{let t=(this.attributes.get(`class`)||``).split(` `).filter(t=>!e.includes(t));this.attributes.set(`class`,t.join(` `))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get(`class`)||``).split(` `).includes(e)}}_innerHTML=``;get innerHTML(){return this._textContent===null?this._innerHTML:o(this._textContent)}set innerHTML(e){this._innerHTML=e,this._textContent=null,this.tagName===`template`&&this.content&&(this.content.childrenList=[e])}constructor(e=`div`){this.tagName=e.toLowerCase(),this.tagName===`template`&&(this.content=new A)}get hidden(){return this.hasAttribute(`hidden`)}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return k(this.childrenList,e,t)}attachShadow(e){return this.shadowRoot=new ge(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return O(this.childrenList,e,t),t}addEventListener(e,t){let n=this.eventListeners??=new Map,r=n.get(e)||new Set;r.add(t),n.set(e,r)}removeEventListener(e,t){let n=this.eventListeners?.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners?.delete(e))}dispatchEvent(e){let t=this.eventListeners?.get(e.type);if(!t||t.size===0)return!0;for(let n of t)typeof n==`function`?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize==`function`&&this._preSerialize();let t=e||this._ssrTag||this.tagName;this.shadowRoot&&!this.hasAttribute(`data-ran-dsd`)&&this.setAttribute(`data-ran-dsd`,``);let n=Array.from(this.attributes.entries()).map(([e,t])=>` ${e}="${D(t)}"`).join(``),r=this._inlineStyles?Array.from(this._inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`):``,i=r?` style="${D(r)}"`:``,a=``;return this.shadowRoot&&(a+=this.shadowRoot.serialize()),this.textContent===null?this._innerHTML?a+=this._innerHTML:a+=this.childrenList.map(e=>typeof e==`string`?o(e):(e instanceof A,e.serialize())).join(``):a+=o(this.textContent),[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`].includes(t)&&!a?`<${t}${n}${i} />`:`<${t}${n}${i}>${a}</${t}>`}},ge=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}get children(){return this.childrenList.filter(e=>typeof e!=`string`&&!(e instanceof A))}appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return k(this.childrenList,e,t)}replaceChildren(...e){this.childrenList=e.filter(e=>e!=null)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return O(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?` shadowrootdelegatesfocus`:``}>${this.adoptedStyleSheets.map(e=>`<style>${String(e).replace(/<\/style/gi,`<\\/style`)}</style>`).join(``)}${this.childrenList.map(e=>typeof e==`string`?o(e):(e instanceof A,e.serialize())).join(``)}</template>`}},M={bind(e,t){t(typeof e==`function`?e():e)},append(e,t){for(let r of t){if(r==null)continue;if(Array.isArray(r)){M.append(e,r);continue}if(typeof r==`function`){M.append(e,[r()]);continue}if(typeof r==`object`&&(`__ranFor`in r||`__ranIndex`in r))throw TypeError(`Import For and Index from the static entry when using static builders`);let t=r instanceof N?r.build():typeof r==`string`&&!n?document.createTextNode(r):r;e.appendChild(t)}}},_e=`http://www.w3.org/2000/svg`,ve=new Set(`svg.circle.clipPath.defs.desc.ellipse.feBlend.feColorMatrix.feComposite.feDropShadow.feFlood.feGaussianBlur.feMerge.feMergeNode.feOffset.filter.foreignObject.g.image.line.linearGradient.marker.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.switch.symbol.text.textPath.tspan.use`.split(`.`)),N=class{runtime;el;constructor(e,t,r=M){this.runtime=r;let i=t??(ve.has(e)?`http://www.w3.org/2000/svg`:void 0);this.el=n?new j(e):i?document.createElementNS(i,e):document.createElement(e)}id(e){return this.el.setAttribute(`id`,e),this}bind(e,t){this.runtime.bind(e,t)}class(e){return this.bind(e,e=>{n?this.el.attributes.set(`class`,e):this.el.setAttribute(`class`,e)}),this}addClass(...e){return e.forEach(e=>this.el.classList.add(e)),this}removeClass(...e){return e.forEach(e=>this.el.classList.remove(e)),this}attr(e,t){return this.bind(t,t=>this.el.setAttribute(e,t)),this}attrs(e){return Object.entries(e).forEach(([e,t])=>{t!=null&&this.el.setAttribute(e,String(t))}),this}boolAttr(e,t,n=``){return this.bind(t,t=>{t?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr(`part`,e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e==`string`?this.bind(t??``,t=>this.el.style.setProperty(e,t)):Object.entries(e).forEach(([e,t])=>this.el.style.setProperty(e,t)),this}cssVar(e,t){let n=e.startsWith(`--`)?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr(`role`,e)}tabIndex(e){return this.attr(`tabindex`,String(e))}label(e){return this.aria(`label`,e)}labelledBy(e){return this.aria(`labelledby`,e)}describedBy(e){return this.aria(`describedby`,e)}ariaHidden(e=!0){return this.aria(`hidden`,String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...e){return this.runtime.append(this.el,e),this}replaceChildren(...e){if(n){let e=this.el;e.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,e=>{this.el.textContent=e}),this}unsafeHtml(e){return this.bind(e,e=>{this.el.innerHTML=e}),this}ref(e){return e.current=this.el,this}shadow(e={mode:`closed`}){let t=this.el.attachShadow(e);return new ye(this.el,t,e,this.runtime)}build(){return this.el}serialize(){if(n)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},ye=class{runtime;root;hostEl;constructor(e,t,n,r=M){this.runtime=r,this.hostEl=e,this.root=t}children(...e){return this.runtime.append(this.root,e),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(n)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<`u`)try{let t=new CSSStyleSheet;return t.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,t],this}catch{}let t=document.createElement(`style`);return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return n?this.root.serialize():this.root.innerHTML}},P=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(P(t)):e.concat(t),[]),F=e=>e==null?null:e instanceof N?e.build():typeof e==`string`?n?e:document.createTextNode(e):e,be=(e,t)=>{if(n){L(e,[t()]);return}let r=document.createComment(``),i=document.createComment(``);e.appendChild(r),e.appendChild(i);let a=null,o=()=>{a?.(),a=null;let e=r.nextSibling;for(;e&&e!==i;){let t=e.nextSibling;e.parentNode?.removeChild(e),e=t}};v(()=>{let e=t();o();let n=document.createDocumentFragment();a=b(t=>(L(n,[e]),t)),i.parentNode?.insertBefore(n,i)}),x(()=>a?.())},xe=`__ranFor`,Se=e=>typeof e==`object`&&!!e&&e[xe]===!0,Ce=(e,t,n)=>{let[r,i]=_(t),a=null,o=b(t=>{let i=F(n(e,r));return a=typeof i==`string`?document.createTextNode(i):i,t});return{node:a,index:i,dispose:o}},I=(e,t)=>{let n=e.parentNode;if(!n)return;let r=e;for(let e of t)r.nextSibling!==e&&n.insertBefore(e,r.nextSibling),r=e},we=(e,t)=>{if(n){(t.each()??[]).forEach((n,r)=>{let i=F(t.render(n,()=>r));i!=null&&e.appendChild(i)});return}let r=document.createComment(``);e.appendChild(r);let i=new Map;x(()=>{for(let e of i.values())e.dispose();i.clear()}),v(()=>{let e=t.each()??[],n=new Map,a=[];e.forEach((e,r)=>{let o=t.key(e,r);if(n.has(o)){ke()&&console.error(`[ranview For] duplicate key "${String(o)}" — keys must be unique; ignoring the duplicate item.`);return}let s=i.get(o);s?(i.delete(o),s.index(r)):s=Ce(e,r,t.render),n.set(o,s),s.node&&a.push(s.node)});for(let e of i.values())e.node?.parentNode?.removeChild(e.node),e.dispose();I(r,a),i=n})},Te=`__ranIndex`,Ee=e=>typeof e==`object`&&!!e&&e[Te]===!0,De=(e,t,n)=>{let[r,i]=_(e),a=null,o=b(e=>{let i=F(n(r,t));return a=typeof i==`string`?document.createTextNode(i):i,e});return{node:a,setItem:i,dispose:o}},Oe=(e,t)=>{if(n){(t.each()??[]).forEach((n,r)=>{let i=F(t.render(()=>n,r));i!=null&&e.appendChild(i)});return}let r=document.createComment(``);e.appendChild(r);let i=[];x(()=>{for(let e of i)e.dispose();i=[]}),v(()=>{let e=t.each()??[];for(let n=0;n<e.length;n++)n<i.length?i[n].setItem(e[n]):i.push(De(e[n],n,t.render));for(let t=i.length-1;t>=e.length;t--){let{node:e}=i[t];e?.parentNode?.removeChild(e),i[t].dispose(),i.pop()}I(r,i.map(e=>e.node).filter(e=>e!=null))})},L=(e,t)=>{n?y(()=>R(e,t)):R(e,t)},R=(e,t)=>{P(t).forEach(t=>{if(Se(t)){we(e,t);return}if(Ee(t)){Oe(e,t);return}if(typeof t==`function`){be(e,t);return}let n=F(t);n!=null&&e.appendChild(n)})},ke=()=>!1,Ae={bind(e,t){typeof e==`function`?n?y(()=>t(e())):v(()=>t(e())):t(e)},append:L},je=class extends N{constructor(e,t){super(e,t,Ae)}};function Me(e){let t=t=>new e(t);return{View:t,Div:()=>t(`div`),Svg:t=>new e(t,_e),Span:()=>t(`span`),Slot:()=>t(`slot`),ButtonBuilder:()=>t(`button`),InputBuilder:()=>t(`input`),Style:()=>t(`style`),Label:()=>t(`label`),Ul:()=>t(`ul`),Li:()=>t(`li`),Section:()=>t(`section`),Article:()=>t(`article`),Nav:()=>t(`nav`),Header:()=>t(`header`),Footer:()=>t(`footer`),Main:()=>t(`main`),DeclarativeShadow:(e=`open`,n=!1)=>{let r=t(`template`);return r.attr(`shadowrootmode`,e),n&&r.attr(`shadowrootdelegatesfocus`,``),r}}}var{View:z,Div:B,Svg:Ne,Span:V,Slot:Pe,ButtonBuilder:Fe,InputBuilder:Ie,Style:Le,Label:Re,Ul:ze,Li:Be,Section:Ve,Article:He,Nav:Ue,Header:We,Footer:Ge,Main:Ke,DeclarativeShadow:qe}=Me(je),Je=new Map;function Ye(e,t){n?(Je.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}var Xe=typeof document<`u`?HTMLElement:j,Ze=`data-ranui`,H=`data-ranui-sheet`,U=(e,t)=>{if(typeof document>`u`&&t){let n=e.adoptedStyleSheets;Array.isArray(n)&&!n.includes(t)&&n.push(t)}re(e,t,Ze)},W=new WeakMap,G=new Map,Qe=e=>{if(typeof CSSStyleSheet>`u`)return;let t=G.get(e);if(!t)try{let n=new CSSStyleSheet;n.replaceSync(e),t={sheet:n,users:0},G.set(e,t)}catch{return}return t.users++,t.sheet},K=e=>{let t=G.get(e);t&&--t.users===0&&G.delete(e)},$e=(e,t)=>{if(typeof document>`u`)return;let n=W.get(e);if((n?.text??``)===t||(n?.sheet?(e.adoptedStyleSheets=e.adoptedStyleSheets.filter(e=>e!==n.sheet),K(n.text)):n&&e.querySelector(`style[${H}]`)?.remove(),W.delete(e),!t))return;let r=Qe(t);if(r)try{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}catch{K(t),r=void 0}if(!r){let n=document.createElement(`style`);n.setAttribute(H,``),n.textContent=t,e.appendChild(n)}W.set(e,{text:t,sheet:r})},q=new WeakMap,J=new WeakMap,et=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,tt=`:host([hidden]){display:none}`,Y=new Map,X=e=>{let t=Y.get(e);if(t!==void 0)return t;let n=`${tt}\n${et}`,r=e?`${e}\n${n}`:n;return Y.set(e,r),r},nt=e=>{let t=J.get(e);if(t)return t;try{let t=e.attachInternals;if(typeof t!=`function`)return;let n=t.call(e);return J.set(e,n),n}catch{return}},rt=(e,t=``,n={mode:`closed`},r)=>{let i=r??nt(e),a=e.shadowRoot||q.get(e)||i?.shadowRoot||e.attachShadow(n);return q.set(e,a),U(a,X(t)),a},it=(e,t,...n)=>{e.replaceChildren(...n),U(e,X(t))},Z=(e,t,n=``)=>e.getAttribute(t)??n,Q=(e,t,n,r={})=>{r.removeEmpty&&!n?e.removeAttribute(t):e.setAttribute(t,n??``)},at=(e,t,n,r,i)=>{n===`sheet`&&r!==i&&$e(t,e.getAttribute(`sheet`)||``)},ot=e=>e,st=e=>{let t=e;for(;t;){let e=t.closest?.(`[lang]`)?.getAttribute(`lang`);if(e)return e;t=t.getRootNode?.()?.host}return``},ct=e=>{let t=(c()?.getLocale()||st(e)||(typeof document<`u`?document.documentElement.lang:``)||`en`).toLowerCase();return/^zh[-_](hant|tw|hk|mo)\b/.test(t)?`en`:t.split(/[-_]/)[0]},lt=(e,t)=>t?e.replace(/\{(\w+)\}/g,(e,n)=>String(t[n]??e)):e,ut=(e,t,n,r)=>{let i=c(),a=`ranui.${t}`;if(i){let e=i.getMessages(i.getLocale())[a];if(e!==void 0)return lt(e,r)}return lt(e[ct(n)]?.[t]??e.en[t],r)},dt=ot({en:{"attachments.remove":`Remove {name}`},zh:{"attachments.remove":`移除 {name}`},ja:{"attachments.remove":`{name} を削除`},ko:{"attachments.remove":`{name} 제거`},es:{"attachments.remove":`Quitar {name}`},pt:{"attachments.remove":`Remover {name}`},de:{"attachments.remove":`{name} entfernen`},fa:{"attachments.remove":`حذف {name}`}}),ft=0xa00000,pt=0,$=class extends Xe{_events=new s;_shadowDom;_list;_attachments=[];_rows=new Map;static get observedAttributes(){return[`sheet`]}constructor(){super(),this._shadowDom=rt(this,t),this._list=B().class(`ran-attachments`).attr(`part`,`list`).attr(`role`,`list`).build(),it(this._shadowDom,t,this._list)}get attachments(){return this._attachments}get files(){return this._attachments.map(e=>e.file)}get accept(){return Z(this,`accept`)}set accept(e){Q(this,`accept`,e)}get maxSize(){let e=Number(Z(this,`max-size`));return Number.isFinite(e)&&e>0?e:ft}set maxSize(e){Q(this,`max-size`,String(e))}get maxCount(){let e=Number(Z(this,`max-count`));return Number.isFinite(e)&&e>0?e:1/0}set maxCount(e){Q(this,`max-count`,String(e))}get sheet(){return Z(this,`sheet`)}set sheet(e){Q(this,`sheet`,e)}add(e){let t=[];for(let n of e){let e=this._reject(n);if(e!==null){this._emit(`attachmentrejected`,{file:n,reason:e});continue}let r={id:`attachment-${pt+=1}`,file:n,name:n.name,size:n.size,type:n.type,previewUrl:n.type.startsWith(`image/`)?URL.createObjectURL(n):null};this._attachments.push(r),t.push(r)}return t.length>0&&this._render(),t}detach(e){let t=this._attachments.findIndex(t=>t.id===e);if(t===-1)return!1;let n=this._shadowDom.activeElement===this._rows.get(e)?.remove,[r]=this._attachments.splice(t,1);return this._release(r),this._render(n?t:void 0),!0}clear(){if(this._attachments.length===0)return;let e=[...this._rows.values()].some(({remove:e})=>e===this._shadowDom.activeElement);for(let e of this._attachments)this._release(e);this._attachments=[],this._render(e?0:void 0)}connectedCallback(){this.handlerExternalCss();for(let e of this._attachments)e.previewUrl===null&&e.type.startsWith(`image/`)&&(e.previewUrl=URL.createObjectURL(e.file));this._events.on(this._list,`click`,e=>{let t=e.target.closest(`button`),n=[...this._rows.entries()].find(([,e])=>e.remove===t);n&&this.detach(n[0])}),this._render()}disconnectedCallback(){this._events.abort();for(let e of this._attachments)this._release(e)}attributeChangedCallback(e,t,n){t!==n&&e===`sheet`&&this.handlerExternalCss()}handlerExternalCss=()=>{at(this,this._shadowDom,`sheet`,null,this.sheet)};_release(e){e.previewUrl!==null&&(URL.revokeObjectURL(e.previewUrl),e.previewUrl=null)}_emit(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}_reject(e){return this._attachments.length>=this.maxCount?`too-many`:e.size>this.maxSize?`too-large`:this._accepts(e)?this._attachments.some(t=>t.name===e.name&&t.size===e.size&&t.file.lastModified===e.lastModified)?`duplicate`:null:`type-not-accepted`}_accepts(e){let t=this.accept.trim();if(t===``)return!0;let n=e.name.toLowerCase(),r=e.type.toLowerCase();return t.split(`,`).some(e=>{let t=e.trim().toLowerCase();return t===``?!1:t.startsWith(`.`)?n.endsWith(t):t.endsWith(`/*`)?r.startsWith(t.slice(0,-1)):r===t})}_render(e){let t=new Set(this._attachments.map(e=>e.id));for(let[e,n]of this._rows)t.has(e)||(n.row.remove(),this._rows.delete(e));for(let e of this._attachments){let t=this._rows.get(e.id);if(t){t.thumb&&e.previewUrl!==null&&(t.thumb.src=e.previewUrl);continue}let n=B().class(`ran-attachment`).attr(`part`,`attachment`).attr(`role`,`listitem`).build();n.dataset.id=e.id;let r;e.previewUrl===null?n.appendChild(z(`r-icon`).class(`ran-attachment-icon`).attr(`part`,`icon`).attr(`name`,`book`).build()):(r=z(`img`).class(`ran-attachment-thumb`).attr(`part`,`thumb`).build(),r.src=e.previewUrl,r.alt=e.name,n.appendChild(r));let a=B().class(`ran-attachment-meta`).build();a.appendChild(V().class(`ran-attachment-name`).attr(`part`,`name`).text(e.name).build()),a.appendChild(V().class(`ran-attachment-size`).attr(`part`,`size`).text(i(e.size)).build()),n.appendChild(a);let o=Fe().class(`ran-attachment-remove`).attr(`part`,`remove`).attr(`type`,`button`).attr(`aria-label`,ut(dt,`attachments.remove`,this,{name:e.name})).children(z(`r-icon`).attr(`name`,`close`).build()).build();n.appendChild(o),this._rows.set(e.id,{row:n,remove:o,thumb:r}),this._list.appendChild(n)}if(Q(this,`count`,this._attachments.length===0?null:String(this._attachments.length),{removeEmpty:!0}),e!==void 0){let t=this._attachments[Math.min(e,this._attachments.length-1)];t?this._rows.get(t.id)?.remove.focus():(this.hasAttribute(`tabindex`)||(this.tabIndex=-1),this.focus())}this._emit(`attachmentschange`,{attachments:this.attachments})}};return Ye(`r-attachments`,$),e.Attachments=$,e.default=$,e})({});
@@ -0,0 +1,111 @@
1
+ var ranui_button=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=Object.defineProperty,n=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},r=(e,n)=>{let r=Object.setPrototypeOf({},null);for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n&1||t(r,Symbol.toStringTag,{value:`Module`}),n&2?r:Object.preventExtensions(r)},i,a=n((()=>{i=()=>{if(typeof window<`u`){let e=navigator.userAgent.toLowerCase();return/ipad|ipod/.test(e)?`ipad`:/android/.test(e)?`android`:/iphone/.test(e)?`iphone`:`pc`}return`pc`}}));function o(e){let t=``+e,n=s.exec(t);if(!n)return t;let r,i=``,a=0,o=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:r=`&quot;`;break;case 38:r=`&amp;`;break;case 39:r=`&#39;`;break;case 60:r=`&lt;`;break;case 62:r=`&gt;`;break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=r}return o===a?i:i+t.substring(o,a)}var s,ee=n((()=>{s=/["'&<>]/})),te,ne=n((()=>{te=class{ac=null;get signal(){return this.ac??=new AbortController,this.ac.signal}on(e,t,n,r){return e.addEventListener(t,n,{...r,signal:this.signal}),this}delegate(e,t,n,r,i){return e.addEventListener(n,n=>{let i=n.target?.closest(t);i&&e.contains(i)&&r(n,i)},{...i,signal:this.signal}),this}abort(){this.ac?.abort(),this.ac=null}}})),re,ie,ae,oe,se=n((()=>{re=new Map,ie=`data-adopted-style`,ae=(e,t,n)=>{if(typeof CSSStyleSheet>`u`)return!1;try{if(!n.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),n.set(t,e)}let r=n.get(t);return e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]),!0}catch{return!1}},oe=(e,t,n=ie)=>{if(t){if(typeof document>`u`){let n=e.adoptedStyleSheets;Array.isArray(n)&&!n.includes(t)&&n.push(t);return}if(!ae(e,t,re)&&!e.querySelector(`style[${n}]`)){let r=document.createElement(`style`);r.setAttribute(n,``),r.textContent=t,e.appendChild(r)}}}})),c=n((()=>{ee(),ne(),se(),a()}));c();var ce=`:host{box-sizing:var(--ran-btn-box-sizing, border-box);position:var(--ran-btn-position, relative);display:var(--ran-btn-display, inline-flex);align-self:var(--ran-btn-align-self, flex-start);background-image:var(--ran-btn-background-image, none);box-shadow:var(--ran-btn-box-shadow, var(--ran-skin-raised-shadow, 0 2px #00000004));border-radius:var(--ran-btn-border-radius, var(--ran-radius-sm, 8px));cursor:var(--ran-btn-cursor, pointer);-webkit-user-select:var(--ran-btn-user-select, none);user-select:var(--ran-btn-user-select, none);touch-action:var(--ran-btn-touch-action, manipulation);overflow:var(--ran-btn-overflow, hidden);pointer-events:var(--ran-btn-pointer-events, auto)}:host .ran-btn{box-sizing:var(--ran-btn-surface-box-sizing, border-box);position:var(--ran-btn-surface-position, relative);display:var(--ran-btn-surface-display, block);background-image:var(--ran-btn-surface-background-image, none);cursor:var(--ran-btn-surface-cursor, pointer);transition:var(--ran-btn-surface-transition, opacity var(--ran-motion-duration-base, .2s) var(--ran-motion-ease-standard, cubic-bezier(.645, .045, .355, 1)));-webkit-user-select:var(--ran-btn-surface-user-select, none);user-select:var(--ran-btn-surface-user-select, none);touch-action:var(--ran-btn-surface-touch-action, manipulation);border-radius:var(--ran-btn-border-radius, var(--ran-radius-sm, 8px));background:var(--ran-btn-surface-background, var(--ran-color-bg-elevated, #ffffff))}:host,:host(:active),:host(:focus){outline:0;-webkit-tap-highlight-color:transparent}:host .ran-btn,:host(:active) .ran-btn,:host(:focus) .ran-btn{outline:var(--ran-btn-surface-outline, 0)}:host .ran-btn:focus-visible{outline:var(--ran-btn-focus-outline, 2px solid var(--ran-color-focus, #0a6cff));outline-offset:var(--ran-btn-focus-outline-offset, -2px)}:host([type="primary"]) .ran-btn-content{background-color:var(--ran-btn-background, var(--ran-color-primary, #111113));background-image:var(--ran-btn-content-background-image, none);border-color:var(--ran-btn-border-color, var(--ran-color-primary, #111113));color:var(--ran-btn-color, var(--ran-color-primary-text, #ffffff))}:host([type="primary"]:not([disabled])) .ran-btn:after{background-image:var(--ran-btn-after-background-image, radial-gradient(circle, var(--ran-color-primary-text, #ffffff) 10%, transparent 10.01%))}:host([type="primary"]:not([disabled]):active) .ran-btn-content{background-color:var(--ran-btn-active-background, var(--ran-color-primary-active, #3f3f46));border-color:var(--ran-btn-active-border-color, var(--ran-color-primary-active, #3f3f46))}@media(hover:hover){:host(:not([disabled],[type="text"]):hover) .ran-btn-content{border-color:var(--ran-btn-hover-border-color, var(--ran-color-border-hover, #b8b8c0));color:var(--ran-btn-hover-color, var(--ran-color-text, #111113))}:host([type="text"]:not([disabled]):hover) .ran-btn-content{color:var(--ran-btn-hover-color, var(--ran-color-text, #111113))}:host([type="primary"]:not([disabled]):hover) .ran-btn-content{background-color:var(--ran-btn-hover-background, var(--ran-color-primary-hover, #2a2a2e));border-color:var(--ran-btn-hover-border-color, var(--ran-color-primary-hover, #2a2a2e));color:var(--ran-btn-hover-color, var(--ran-color-primary-text, #ffffff))}:host([type="warning"]:not([disabled]):hover) .ran-btn-content{border-color:var(--ran-btn-warning-border-color, var(--ran-color-danger, #d70f2f));background-color:var(--ran-btn-warning-background, var(--ran-color-danger, #d70f2f));color:var(--ran-btn-warning-color, #fff)}}:host([type="warning"]) .ran-btn-content{border-color:var(--ran-btn-warning-border-color, var(--ran-color-danger, #d70f2f));background-color:var(--ran-btn-warning-background, var(--ran-color-danger, #d70f2f));background-image:var(--ran-btn-content-background-image, none);color:var(--ran-btn-warning-color, #fff)}:host([type="warning"]:not([disabled])) .ran-btn:after{background-image:var(--ran-btn-after-background-image, radial-gradient(circle, var(--ran-btn-warning-color, #fff) 10%, transparent 10.01%))}:host([type="text"]){box-shadow:var(--ran-btn-text-box-shadow, none)}:host([type="text"]) .ran-btn{background:var(--ran-btn-text-surface-background, transparent)}:host([type="text"]) .ran-btn-content{border:var(--ran-btn-text-border, 1px solid transparent)}:host([disabled]){cursor:var(--ran-btn-disabled-cursor, not-allowed);pointer-events:var(--ran-btn-disabled-pointer-events, all);opacity:var(--ran-btn-disabled-opacity, 1);box-shadow:var(--ran-btn-disabled-box-shadow, none)}:host([disabled]) .ran-btn{cursor:var(--ran-btn-surface-disabled-cursor, not-allowed);pointer-events:var(--ran-btn-surface-disabled-pointer-events, all);opacity:var(--ran-btn-surface-disabled-opacity, 1)}:host([disabled]) .ran-btn-content{background-color:var(--ran-btn-disabled-background, var(--ran-color-bg-subtle, #f7f7f8));border-color:var(--ran-btn-disabled-border-color, var(--ran-color-border, #e4e4e8));color:var(--ran-btn-disabled-color, var(--ran-color-text-disabled, #8a8a94))}:host([type="text"][disabled]) .ran-btn-content{background-color:var(--ran-btn-text-disabled-background, transparent);border-color:transparent}:host(:not([disabled]):active) .ran-btn:after{transform:var(--ran-btn-after-transform, translate(-50%, -50%) scale(0));opacity:var(--ran-btn-after-opacity, .3);transition:var(--ran-btn-after-transition, 0s)}:host(:not([disabled]):active) .ran-btn-content{scale:var(--ran-btn-active-scale, .96)}@media(hover:hover){:host(:not([disabled],[effect="false"])) .ran-btn:after{content:"";display:block;position:absolute;width:100%;height:100%;left:var(--ran-x, 0);top:var(--ran-y, 0);pointer-events:none;background-image:radial-gradient(circle,var(--ran-gray-alpha-400, #00000014) 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:translate(-50%,-50%) scale(10);opacity:0;transition:transform .3s,opacity .8s}}@media(prefers-reduced-motion:reduce){:host .ran-btn:after{display:none}}:host .slot{display:var(--ran-btn-slot-display, block)}.ran-btn-content{display:var(--ran-btn-content-display, flex);justify-content:var(--ran-btn-content-justify-content, space-between);align-items:var(--ran-btn-align-items, center);min-height:var(--ran-btn-height, var(--ran-size-7, 32px));padding:var(--ran-btn-padding, var(--ran-space-2, 8px) var(--ran-space-4, 16px));border:var(--ran-btn-border, 1px solid transparent);border-image-source:var(--ran-btn-border-image-source, none);border-image-slice:var(--ran-btn-border-image-slice, 8);border-image-width:var(--ran-btn-border-image-width, var(--ran-skin-border-image-width, 4px));border-image-outset:0;border-image-repeat:stretch;border-radius:var(--ran-btn-border-radius, var(--ran-radius-sm, 8px));border-color:var(--ran-btn-border-color, var(--ran-color-border, #e4e4e8));color:var(--ran-btn-color, var(--ran-color-text, #111113));line-height:var(--ran-btn-line-height, var(--ran-text-button-line-height, 1));font-size:var(--ran-btn-font-size, var(--ran-text-button-size, 14px));font-weight:var(--ran-btn-font-weight, var(--ran-text-button-weight, 500));font-family:var(--ran-btn-font-family, var(--ran-skin-font-family, inherit));white-space:var(--ran-btn-white-space, nowrap);text-align:var(--ran-btn-text-align, center);box-sizing:var(--ran-btn-content-box-sizing, border-box);transition:var(--ran-btn-transition, scale .1s var(--ran-motion-ease-standard, cubic-bezier(.2, 0, 0, 1)))}.ran-btn-content .icon{margin-right:var(--ran-btn-icon-margin-right, var(--ran-space-1, 4px))}@media(prefers-reduced-motion:reduce){.ran-btn-content{transition:none}}:host([surface="glass"]:not([type="primary"],[type="warning"],[type="text"],[disabled])){box-shadow:none}:host([surface="glass"]:not([type="primary"],[type="warning"],[type="text"],[disabled])) .ran-btn{background:var(--ran-surface-glass-specular, linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .14) 24%, transparent 48%), linear-gradient(0deg, rgba(255, 255, 255, .28) 0%, transparent 30%)),var(--ran-surface-glass-fill, rgba(255, 255, 255, .55));-webkit-backdrop-filter:blur(var(--ran-surface-glass-blur, 12px)) saturate(var(--ran-surface-glass-saturate, 180%)) brightness(var(--ran-surface-glass-brightness, 1.08));backdrop-filter:blur(var(--ran-surface-glass-blur, 12px)) saturate(var(--ran-surface-glass-saturate, 180%)) brightness(var(--ran-surface-glass-brightness, 1.08));border-color:var(--ran-surface-glass-border, rgba(255, 255, 255, .72));box-shadow:var(--ran-surface-glass-shadow, 0 8px 24px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(255, 255, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .4), inset 0 0 0 .5px rgba(255, 255, 255, .5))}@media(prefers-reduced-transparency:reduce){:host([surface="glass"]:not([type="primary"],[type="warning"],[type="text"],[disabled])) .ran-btn{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--ran-surface-glass-solid-fallback, var(--ran-color-bg-elevated));box-shadow:var(--ran-surface-glass-solid-shadow, var(--ran-shadow-elevated))}}:host([surface="glass"]:not([type="primary"],[type="warning"],[type="text"],[disabled])) .ran-btn-content{border-color:var(--ran-btn-glass-border-color, var(--ran-surface-glass-border));background-color:transparent}:host-context([data-ran-surface="glass"]):host(:not([surface="solid"]):not([type="primary"]):not([type="warning"]):not([type="text"]):not([disabled])){box-shadow:none}:host-context([data-ran-surface="glass"]):host(:not([surface="solid"]):not([type="primary"]):not([type="warning"]):not([type="text"]):not([disabled])) .ran-btn{background:var(--ran-surface-glass-specular, linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .14) 24%, transparent 48%), linear-gradient(0deg, rgba(255, 255, 255, .28) 0%, transparent 30%)),var(--ran-surface-glass-fill, rgba(255, 255, 255, .55));-webkit-backdrop-filter:blur(var(--ran-surface-glass-blur, 12px)) saturate(var(--ran-surface-glass-saturate, 180%)) brightness(var(--ran-surface-glass-brightness, 1.08));backdrop-filter:blur(var(--ran-surface-glass-blur, 12px)) saturate(var(--ran-surface-glass-saturate, 180%)) brightness(var(--ran-surface-glass-brightness, 1.08));border-color:var(--ran-surface-glass-border, rgba(255, 255, 255, .72));box-shadow:var(--ran-surface-glass-shadow, 0 8px 24px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(255, 255, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .4), inset 0 0 0 .5px rgba(255, 255, 255, .5))}@media(prefers-reduced-transparency:reduce){:host-context([data-ran-surface="glass"]):host(:not([surface="solid"]):not([type="primary"]):not([type="warning"]):not([type="text"]):not([disabled])) .ran-btn{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--ran-surface-glass-solid-fallback, var(--ran-color-bg-elevated));box-shadow:var(--ran-surface-glass-solid-shadow, var(--ran-shadow-elevated))}}:host-context([data-ran-surface="glass"]):host(:not([surface="solid"]):not([type="primary"]):not([type="warning"]):not([type="text"]):not([disabled])) .ran-btn-content{border-color:var(--ran-btn-glass-border-color, var(--ran-surface-glass-border));background-color:transparent}`,l,u=n((()=>{l=typeof document>`u`})),le=n((()=>{}));function ue(e,t){let n=t?.equals??Object.is,r={value:e,observers:new Set};return[()=>(he(r),r.value),e=>{let t=typeof e==`function`?e(r.value):e;if(!n(r.value,t)){r.value=t;for(let e of r.observers)p(e,_);b===0&&ge()}}]}function d(e){let t=pe(e,!0);return me(t),ve(t),()=>m(t)}function de(e){let t=v;v=null;try{return e()}finally{v=t}}function fe(e){let t={owned:[],cleanups:[],owner:y},n=y,r=v;y=t,v=null;try{return e(()=>be(t))}finally{y=n,v=r}}function f(e){y&&y.cleanups.push(e)}function pe(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:_,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:y}}function me(e){y&&y.owned.push(e)}function he(e){v&&(v.sources.add(e),e.observers.add(v))}function p(e,t){if(e.disposed||e.state>=t)return;let n=e.state===h;if(e.state=t,e.isEffect)x.add(e);else if(n)for(let t of e.observers)p(t,g)}function ge(){if(!(b>0||S)){S=!0;try{for(;x.size>0;){let e=[...x];x.clear();for(let t of e)t.disposed||_e(t)}}finally{S=!1}}}function _e(e){if(!(e.disposed||e.state===h)){if(e.state===g)for(let t of e.sources)`fn`in t&&_e(t);e.state===_&&ve(e),e.state=h}}function ve(e){if(e.running)throw Error(`ranview reactivity: cyclic dependency detected (a computation triggered itself).`);ye(e);let t=v,n=y;v=e,y=e,e.running=!0,e.state=h;try{let t=e.fn();if(e.isEffect)typeof t==`function`&&e.cleanups.push(t);else{let n=e.value;if(e.value=t,e.observers.size>0&&!e.equals(n,t))for(let t of e.observers)p(t,_)}}finally{e.running=!1,v=t,y=n}}function ye(e){for(let t of e.owned)m(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0;for(let t of e.sources)t.observers.delete(e);e.sources.clear()}function m(e){e.disposed||(e.disposed=!0,ye(e),e.observers.clear())}function be(e){for(let t of e.owned)m(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0}var h,g,_,v,y,b,x,S,xe=n((()=>{h=0,g=1,_=2,v=null,y=null,b=0,x=new Set,S=!1}));function Se(e){return o(e)}var Ce=n((()=>{c()}));function we(e){let t=[],n=0,r=/^[a-zA-Z][\w-]*/.exec(e);for(r!==null&&(t.push(r[0]),n=r[0].length);n<e.length;){let r=e[n];if(r===`[`){let r=e.indexOf(`]`,n+1);if(r===-1)return null;t.push(e.slice(n,r+1)),n=r+1;continue}if(r!==`.`&&r!==`#`)return null;let i=n+1;for(;i<e.length&&!Ee.includes(e[i]);)i+=1;if(i===n+1)return null;t.push(e.slice(n,i)),n=i}return t.length>0?t:null}var Te,Ee,De,Oe,C,ke=n((()=>{Te=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,Ee=`.#[`,De=(e,t)=>{let n=t;if(n.startsWith(`.`))return e.classList.contains(n.slice(1));if(n.startsWith(`#`))return e.getAttribute(`id`)===n.slice(1);if(n.startsWith(`[`)&&n.endsWith(`]`)){let[t,r]=n.slice(1,-1).trim().split(`=`),i=(t||``).trim();if(!i)return!1;if(r==null)return e.hasAttribute(i);let a=r.trim().replace(/^['"]|['"]$/g,``);return e.getAttribute(i)===a}return e.tagName===n.toLowerCase()},Oe=(e,t)=>{let n=t.trim();if(!n)return!1;let r=we(n);return r!==null&&r.every(t=>De(e,t))},C=(e,t,n)=>{for(let r of e)Te(r)&&(Oe(r,t)&&n.push(r),C(r.childrenList,t,n))}}));function w(e,t,n){if(n==null)return e.push(t),t;let r=e.indexOf(n);return r===-1?e.push(t):e.splice(r,0,t),t}var T,Ae,je,Me,Ne=n((()=>{Ce(),ke(),T=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return w(this.childrenList,e,t)}serialize(){return this.childrenList.map(e=>typeof e==`string`?o(e):e.serialize()).join(``)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return C(this.childrenList,e,t),t}},Ae=new Map,je=class{tagName;attributes=new Map;_inlineStyles=null;get inlineStyles(){return this._inlineStyles??Ae}childrenList=[];shadowRoot=null;_textContent=null;get textContent(){return this._textContent}set textContent(e){this._textContent=e}content;eventListeners=null;_style=null;_classList=null;get style(){return this._style??={setProperty:(e,t)=>{let n=e.startsWith(`--`)?e:e.replace(/([A-Z])/g,`-$1`).toLowerCase();(this._inlineStyles??=new Map).set(n,t)},removeProperty:e=>this._inlineStyles?.delete(e)??!1}}get classList(){return this._classList??={add:(...e)=>{let t=this.attributes.get(`class`)||``,n=new Set([...t.split(` `).filter(Boolean),...e]);this.attributes.set(`class`,Array.from(n).join(` `))},remove:(...e)=>{let t=(this.attributes.get(`class`)||``).split(` `).filter(t=>!e.includes(t));this.attributes.set(`class`,t.join(` `))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get(`class`)||``).split(` `).includes(e)}}_innerHTML=``;get innerHTML(){return this._textContent===null?this._innerHTML:o(this._textContent)}set innerHTML(e){this._innerHTML=e,this._textContent=null,this.tagName===`template`&&this.content&&(this.content.childrenList=[e])}constructor(e=`div`){this.tagName=e.toLowerCase(),this.tagName===`template`&&(this.content=new T)}get hidden(){return this.hasAttribute(`hidden`)}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return w(this.childrenList,e,t)}attachShadow(e){return this.shadowRoot=new Me(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return C(this.childrenList,e,t),t}addEventListener(e,t){let n=this.eventListeners??=new Map,r=n.get(e)||new Set;r.add(t),n.set(e,r)}removeEventListener(e,t){let n=this.eventListeners?.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners?.delete(e))}dispatchEvent(e){let t=this.eventListeners?.get(e.type);if(!t||t.size===0)return!0;for(let n of t)typeof n==`function`?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize==`function`&&this._preSerialize();let t=e||this._ssrTag||this.tagName;this.shadowRoot&&!this.hasAttribute(`data-ran-dsd`)&&this.setAttribute(`data-ran-dsd`,``);let n=Array.from(this.attributes.entries()).map(([e,t])=>` ${e}="${Se(t)}"`).join(``),r=this._inlineStyles?Array.from(this._inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`):``,i=r?` style="${Se(r)}"`:``,a=``;return this.shadowRoot&&(a+=this.shadowRoot.serialize()),this.textContent===null?this._innerHTML?a+=this._innerHTML:a+=this.childrenList.map(e=>typeof e==`string`?o(e):(e instanceof T,e.serialize())).join(``):a+=o(this.textContent),[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`].includes(t)&&!a?`<${t}${n}${i} />`:`<${t}${n}${i}>${a}</${t}>`}},Me=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}get children(){return this.childrenList.filter(e=>typeof e!=`string`&&!(e instanceof T))}appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return w(this.childrenList,e,t)}replaceChildren(...e){this.childrenList=e.filter(e=>e!=null)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return C(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?` shadowrootdelegatesfocus`:``}>${this.adoptedStyleSheets.map(e=>`<style>${String(e).replace(/<\/style/gi,`<\\/style`)}</style>`).join(``)}${this.childrenList.map(e=>typeof e==`string`?o(e):(e instanceof T,e.serialize())).join(``)}</template>`}}})),E,Pe,Fe,D,Ie,Le=n((()=>{u(),Ne(),E={bind(e,t){t(typeof e==`function`?e():e)},append(e,t){for(let n of t){if(n==null)continue;if(Array.isArray(n)){E.append(e,n);continue}if(typeof n==`function`){E.append(e,[n()]);continue}if(typeof n==`object`&&(`__ranFor`in n||`__ranIndex`in n))throw TypeError(`Import For and Index from the static entry when using static builders`);let t=n instanceof D?n.build():typeof n==`string`&&!l?document.createTextNode(n):n;e.appendChild(t)}}},Pe=`http://www.w3.org/2000/svg`,Fe=new Set(`svg.circle.clipPath.defs.desc.ellipse.feBlend.feColorMatrix.feComposite.feDropShadow.feFlood.feGaussianBlur.feMerge.feMergeNode.feOffset.filter.foreignObject.g.image.line.linearGradient.marker.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.switch.symbol.text.textPath.tspan.use`.split(`.`)),D=class{runtime;el;constructor(e,t,n=E){this.runtime=n;let r=t??(Fe.has(e)?`http://www.w3.org/2000/svg`:void 0);this.el=l?new je(e):r?document.createElementNS(r,e):document.createElement(e)}id(e){return this.el.setAttribute(`id`,e),this}bind(e,t){this.runtime.bind(e,t)}class(e){return this.bind(e,e=>{l?this.el.attributes.set(`class`,e):this.el.setAttribute(`class`,e)}),this}addClass(...e){return e.forEach(e=>this.el.classList.add(e)),this}removeClass(...e){return e.forEach(e=>this.el.classList.remove(e)),this}attr(e,t){return this.bind(t,t=>this.el.setAttribute(e,t)),this}attrs(e){return Object.entries(e).forEach(([e,t])=>{t!=null&&this.el.setAttribute(e,String(t))}),this}boolAttr(e,t,n=``){return this.bind(t,t=>{t?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr(`part`,e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e==`string`?this.bind(t??``,t=>this.el.style.setProperty(e,t)):Object.entries(e).forEach(([e,t])=>this.el.style.setProperty(e,t)),this}cssVar(e,t){let n=e.startsWith(`--`)?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr(`role`,e)}tabIndex(e){return this.attr(`tabindex`,String(e))}label(e){return this.aria(`label`,e)}labelledBy(e){return this.aria(`labelledby`,e)}describedBy(e){return this.aria(`describedby`,e)}ariaHidden(e=!0){return this.aria(`hidden`,String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...e){return this.runtime.append(this.el,e),this}replaceChildren(...e){if(l){let e=this.el;e.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,e=>{this.el.textContent=e}),this}unsafeHtml(e){return this.bind(e,e=>{this.el.innerHTML=e}),this}ref(e){return e.current=this.el,this}shadow(e={mode:`closed`}){let t=this.el.attachShadow(e);return new Ie(this.el,t,e,this.runtime)}build(){return this.el}serialize(){if(l)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},Ie=class{runtime;root;hostEl;constructor(e,t,n,r=E){this.runtime=r,this.hostEl=e,this.root=t}children(...e){return this.runtime.append(this.root,e),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(l)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<`u`)try{let t=new CSSStyleSheet;return t.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,t],this}catch{}let t=document.createElement(`style`);return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return l?this.root.serialize():this.root.innerHTML}}})),Re,ze,O,Be,Ve,He,Ue,k,We,Ge,Ke,qe,Je,A,j,Ye,Xe,Ze,Qe=n((()=>{u(),Le(),xe(),Re=()=>({current:null}),ze=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(ze(t)):e.concat(t),[]),O=e=>e==null?null:e instanceof D?e.build():typeof e==`string`?l?e:document.createTextNode(e):e,Be=(e,t)=>{if(l){A(e,[t()]);return}let n=document.createComment(``),r=document.createComment(``);e.appendChild(n),e.appendChild(r);let i=null,a=()=>{i?.(),i=null;let e=n.nextSibling;for(;e&&e!==r;){let t=e.nextSibling;e.parentNode?.removeChild(e),e=t}};d(()=>{let e=t();a();let n=document.createDocumentFragment();i=fe(t=>(A(n,[e]),t)),r.parentNode?.insertBefore(n,r)}),f(()=>i?.())},Ve=`__ranFor`,He=e=>typeof e==`object`&&!!e&&e[Ve]===!0,Ue=(e,t,n)=>{let[r,i]=ue(t),a=null,o=fe(t=>{let i=O(n(e,r));return a=typeof i==`string`?document.createTextNode(i):i,t});return{node:a,index:i,dispose:o}},k=(e,t)=>{let n=e.parentNode;if(!n)return;let r=e;for(let e of t)r.nextSibling!==e&&n.insertBefore(e,r.nextSibling),r=e},We=(e,t)=>{if(l){(t.each()??[]).forEach((n,r)=>{let i=O(t.render(n,()=>r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=new Map;f(()=>{for(let e of r.values())e.dispose();r.clear()}),d(()=>{let e=t.each()??[],i=new Map,a=[];e.forEach((e,n)=>{let o=t.key(e,n);if(i.has(o)){Ye()&&console.error(`[ranview For] duplicate key "${String(o)}" — keys must be unique; ignoring the duplicate item.`);return}let s=r.get(o);s?(r.delete(o),s.index(n)):s=Ue(e,n,t.render),i.set(o,s),s.node&&a.push(s.node)});for(let e of r.values())e.node?.parentNode?.removeChild(e.node),e.dispose();k(n,a),r=i})},Ge=`__ranIndex`,Ke=e=>typeof e==`object`&&!!e&&e[Ge]===!0,qe=(e,t,n)=>{let[r,i]=ue(e),a=null,o=fe(e=>{let i=O(n(r,t));return a=typeof i==`string`?document.createTextNode(i):i,e});return{node:a,setItem:i,dispose:o}},Je=(e,t)=>{if(l){(t.each()??[]).forEach((n,r)=>{let i=O(t.render(()=>n,r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=[];f(()=>{for(let e of r)e.dispose();r=[]}),d(()=>{let e=t.each()??[];for(let n=0;n<e.length;n++)n<r.length?r[n].setItem(e[n]):r.push(qe(e[n],n,t.render));for(let t=r.length-1;t>=e.length;t--){let{node:e}=r[t];e?.parentNode?.removeChild(e),r[t].dispose(),r.pop()}k(n,r.map(e=>e.node).filter(e=>e!=null))})},A=(e,t)=>{l?de(()=>j(e,t)):j(e,t)},j=(e,t)=>{ze(t).forEach(t=>{if(He(t)){We(e,t);return}if(Ke(t)){Je(e,t);return}if(typeof t==`function`){Be(e,t);return}let n=O(t);n!=null&&e.appendChild(n)})},Ye=()=>!1,Xe={bind(e,t){typeof e==`function`?l?de(()=>t(e())):d(()=>t(e())):t(e)},append:A},Ze=class extends D{constructor(e,t){super(e,t,Xe)}}}));function $e(e){let t=t=>new e(t);return{View:t,Div:()=>t(`div`),Svg:t=>new e(t,Pe),Span:()=>t(`span`),Slot:()=>t(`slot`),ButtonBuilder:()=>t(`button`),InputBuilder:()=>t(`input`),Style:()=>t(`style`),Label:()=>t(`label`),Ul:()=>t(`ul`),Li:()=>t(`li`),Section:()=>t(`section`),Article:()=>t(`article`),Nav:()=>t(`nav`),Header:()=>t(`header`),Footer:()=>t(`footer`),Main:()=>t(`main`),DeclarativeShadow:(e=`open`,n=!1)=>{let r=t(`template`);return r.attr(`shadowrootmode`,e),n&&r.attr(`shadowrootdelegatesfocus`,``),r}}}var et=n((()=>{Le()})),M,N,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t=n((()=>{Qe(),et(),{View:M,Div:N,Svg:tt,Span:nt,Slot:rt,ButtonBuilder:it,InputBuilder:at,Style:ot,Label:st,Ul:ct,Li:lt,Section:ut,Article:dt,Nav:ft,Header:pt,Footer:mt,Main:ht,DeclarativeShadow:gt}=$e(Ze)})),vt=n((()=>{u(),le(),xe(),Ce(),ke(),Ne(),Qe(),_t()})),yt=n((()=>{vt()}));function bt(e,t){l?(P.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}function xt(e){return P.get(e)}var P,St=n((()=>{vt(),P=new Map})),Ct,F,wt=n((()=>{Ne(),Ct=()=>typeof document<`u`?HTMLElement:je,F=Ct()}));yt(),wt();var Tt=[!1,`false`,null,void 0],I=e=>{let t=e.hasAttribute(`disabled`),n=e.getAttribute(`disabled`);return!(!t||Tt.includes(n))},Et,L,R,z,B,Dt,V,Ot,kt=n((()=>{c(),Et=`data-ranui`,L=`data-ranui-sheet`,R=(e,t)=>{if(typeof document>`u`&&t){let n=e.adoptedStyleSheets;Array.isArray(n)&&!n.includes(t)&&n.push(t)}oe(e,t,Et)},z=new WeakMap,B=new Map,Dt=e=>{if(typeof CSSStyleSheet>`u`)return;let t=B.get(e);if(!t)try{let n=new CSSStyleSheet;n.replaceSync(e),t={sheet:n,users:0},B.set(e,t)}catch{return}return t.users++,t.sheet},V=e=>{let t=B.get(e);t&&--t.users===0&&B.delete(e)},Ot=(e,t)=>{if(typeof document>`u`)return;let n=z.get(e);if((n?.text??``)===t||(n?.sheet?(e.adoptedStyleSheets=e.adoptedStyleSheets.filter(e=>e!==n.sheet),V(n.text)):n&&e.querySelector(`style[${L}]`)?.remove(),z.delete(e),!t))return;let r=Dt(t);if(r)try{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}catch{V(t),r=void 0}if(!r){let n=document.createElement(`style`);n.setAttribute(L,``),n.textContent=t,e.appendChild(n)}z.set(e,{text:t,sheet:r})}})),H,U,At,jt,Mt,W,Nt,G,Pt,Ft,K,q,J,Y,It,Lt=n((()=>{kt(),H=new WeakMap,U=new WeakMap,At=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,jt=`:host([hidden]){display:none}`,Mt=new Map,W=e=>{let t=Mt.get(e);if(t!==void 0)return t;let n=`${jt}\n${At}`,r=e?`${e}\n${n}`:n;return Mt.set(e,r),r},Nt=e=>{let t=U.get(e);if(t)return t;try{let t=e.attachInternals;if(typeof t!=`function`)return;let n=t.call(e);return U.set(e,n),n}catch{return}},G=(e,t=``,n={mode:`closed`},r)=>{let i=r??Nt(e),a=e.shadowRoot||H.get(e)||i?.shadowRoot||e.attachShadow(n);return H.set(e,a),R(a,W(t)),a},Pt=e=>{for(let t of e.children)if(t.tagName!==`STYLE`)return t;return null},Ft=(e,t,...n)=>{e.replaceChildren(...n),R(e,W(t))},K=(e,t,n)=>{let r=Pt(e);if(r&&n.bind(r))return;let i=n.build();Ft(e,t,...Array.isArray(i)?i:[i])},q=(e,t)=>{if(e.current===null)throw Error(`ranui: ${t} is missing its .ref() on the builder`);return e.current},J=(e,t,n=``)=>e.getAttribute(t)??n,Y=(e,t,n,r={})=>{r.removeEmpty&&!n?e.removeAttribute(t):e.setAttribute(t,n??``)},It=(e,t,n,r,i)=>{n===`sheet`&&r!==i&&Ot(t,e.getAttribute(`sheet`)||``)}}));Lt();function Rt(e){return e.key===`Enter`||e.key===` `||e.key===`Spacebar`}var zt,Bt=n((()=>{zt=`:host{display:var(--ran-icon-host-display, inline-flex)}:host([spin]){animation-name:var(--ran-icon-host-spin-name, var(--ran-icon-host-spin-animation, rotate));animation-duration:var(--ran-icon-host-spin-duration, 1.4s);animation-timing-function:linear;animation-iteration-count:var(--ran-icon-host-spin-iteration-count, infinite)}@media(prefers-reduced-motion:reduce){:host([spin]){animation:none}}.ran-icon{display:var(--ran-icon-display, flex);align-items:var(--ran-icon-align-items, center);justify-content:var(--ran-icon-justify-content, center);color:var(--ran-icon-color, inherit);font-size:var(--ran-icon-font-size, 1em);margin:var(--ran-icon-margin, 0)}.ran-icon svg{width:var(--ran-icon-svg-width, 1em);height:var(--ran-icon-svg-height, 1em);fill:var(--ran-icon-svg-fill, currentColor);stroke:var(--ran-icon-svg-stroke, currentColor)}@keyframes rotate{to{transform:var(--ran-icon-host-spin-transform, rotate(360deg))}}`})),Vt=r({default:()=>Ht}),Ht,Ut=n((()=>{Ht=`<svg t="1667110768583" class="icon" viewBox="0 0 1024 1024" version="1.1"
2
+ xmlns="http://www.w3.org/2000/svg" p-id="8046" width="200" height="200">
3
+ <path
4
+ d="M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h0.1c3 0 4.4-3.6 2.2-5.6-30.8-27.6-65.6-49.7-103.7-65.8-0.4-0.2-0.8-0.3-1.2-0.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-0.4 0.2-0.8 0.3-1.2 0.5-44.7 18.9-84.8 46-119.3 80.6-34.5 34.5-61.5 74.7-80.4 119.5C147.9 794.5 138 841 137 888.8c-0.1 4.5 3.5 8.2 8 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1 2.5 1.5 5.5 1.7 8.1 0.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4-32.4-32.5-50.3-75.7-50.3-121.6 0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4c32.4 32.5 50.3 75.7 50.3 121.6 0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"
5
+ p-id="8047"></path>
6
+ </svg>`})),Wt=r({default:()=>Gt}),Gt,Kt=n((()=>{Gt=`<svg viewBox="0 0 1024 1024" width="200" height="200" version="1.1"
7
+ fill="currentColor" xmlns="http://www.w3.org/2000/svg">
8
+ <path
9
+ d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
10
+ </svg>`})),qt=r({default:()=>Jt}),Jt,Yt=n((()=>{Jt=`<svg t="1667110830636" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8464" width="200" height="200"><path d="M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32z m-260 72h96v209.9L621.5 312 572 347.4V136z m220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3 5.1 7.2 15.1 8.9 22.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z" p-id="8465"></path></svg>`})),Xt=r({default:()=>Zt}),Zt,Qt=n((()=>{Zt=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 16.1A5 5 0 0 1 5.9 20"/><path d="M2 12.05A9 9 0 0 1 9.95 20"/><path d="M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"/></g><circle cx="2" cy="20" r="1.1" fill="currentColor" stroke="none"/></svg>
11
+ `})),$t=r({default:()=>en}),en,tn=n((()=>{en=`<svg t="1667965185400" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8572" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m193.5 301.7l-210.6 292c-12.7 17.7-39 17.7-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" p-id="8573"></path></svg>`})),nn=r({default:()=>rn}),rn,an=n((()=>{rn=`<svg t="1667483538687" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8683" width="200" height="200"><path d="M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8c12.7 17.7 39 17.7 51.7 0l210.6-292c3.9-5.3 0.1-12.7-6.4-12.7z" p-id="8684"></path><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" p-id="8685"></path></svg>`})),on=r({default:()=>sn}),sn,cn=n((()=>{sn=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></g></svg>`})),ln=r({default:()=>un}),un,dn=n((()=>{un=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></g></svg>
12
+ `})),fn=r({default:()=>pn}),pn,mn=n((()=>{pn=`<svg t="1667965220951" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8711" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m165.4 618.2l-66-0.3L512 563.4l-99.3 118.4-66.1 0.3c-4.4 0-8-3.5-8-8 0-1.9 0.7-3.7 1.9-5.2l130.1-155L340.5 359c-1.2-1.5-1.9-3.3-1.9-5.2 0-4.4 3.6-8 8-8l66.1 0.3L512 464.6l99.3-118.4 66-0.3c4.4 0 8 3.5 8 8 0 1.9-0.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" p-id="8712"></path></svg>`})),hn=r({default:()=>gn}),gn,_n=n((()=>{gn=`<svg t="1667483596224" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8848" width="200" height="200"><path d="M685.4 354.8c0-4.4-3.6-8-8-8l-66 0.3L512 465.6l-99.3-118.4-66.1-0.3c-4.4 0-8 3.5-8 8 0 1.9 0.7 3.7 1.9 5.2l130.1 155L340.5 670c-1.2 1.5-1.9 3.3-1.9 5.2 0 4.4 3.6 8 8 8l66.1-0.3L512 564.4l99.3 118.4 66 0.3c4.4 0 8-3.5 8-8 0-1.9-0.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" p-id="8849"></path><path d="M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" p-id="8850"></path></svg>`})),vn=r({default:()=>yn}),yn,bn=n((()=>{yn=`<svg t="1688378016663" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2608" width="128" height="128"><path d="M568 515.008l254.016-255.008q12-11.008 12-27.488t-11.488-28-28-11.488-27.488 12l-255.008 254.016-255.008-254.016q-11.008-12-27.488-12t-28 11.488-11.488 28 12 27.488l254.016 255.008-254.016 255.008q-12 11.008-12 27.488t11.488 28 28 11.488 27.488-12l255.008-255.008 255.008 255.008q11.008 12 27.488 12t28-11.488 11.488-28-12-27.488z" p-id="2609" ></path></svg>`})),xn=r({default:()=>Sn}),Sn,Cn=n((()=>{Sn=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></g></svg>`})),wn=r({default:()=>Tn}),Tn,En=n((()=>{Tn=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></g></svg>`})),Dn=r({default:()=>On}),On,kn=n((()=>{On=`<svg>
13
+ <filter id="liquid">
14
+ <feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur"></feGaussianBlur>
15
+ <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7" result="liquid"></feColorMatrix>
16
+ </filter>
17
+ </svg>
18
+ `})),An=r({default:()=>jn}),jn,Mn=n((()=>{jn=`<svg t="1665473540543" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7485" width="200" height="200">
19
+ <path d="M942.3 486.4l-0.1-0.1-0.1-0.1c-36.4-76.7-80-138.7-130.7-186L760.7 351c43.7 40.2 81.5 93.7 114.1 160.9C791.5 684.2 673.4 766 512 766c-51.3 0-98.3-8.3-141.2-25.1l-54.7 54.7C374.6 823.8 439.8 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0.1-51.3zM878.3 154.2l-42.4-42.4c-3.1-3.1-8.2-3.1-11.3 0L707.8 228.5C649.4 200.2 584.2 186 512 186c-192.2 0-335.4 100.5-430.2 300.3v0.1c-7.7 16.2-7.7 35.2 0 51.5 36.4 76.7 80 138.7 130.7 186.1L111.8 824.5c-3.1 3.1-3.1 8.2 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0l712.8-712.8c3.1-3 3.1-8.1 0-11.2zM398.9 537.4c-1.9-8.2-2.9-16.7-2.9-25.4 0-61.9 50.1-112 112-112 8.7 0 17.3 1 25.4 2.9L398.9 537.4z m184.5-184.5C560.5 342.1 535 336 508 336c-97.2 0-176 78.8-176 176 0 27 6.1 52.5 16.9 75.4L263.3 673c-43.7-40.2-81.5-93.7-114.1-160.9C232.6 339.8 350.7 258 512 258c51.3 0 98.3 8.3 141.2 25.1l-69.8 69.8z" p-id="7486"></path>
20
+ <path d="M508 624c-6.4 0-12.7-0.5-18.8-1.6l-51.1 51.1c21.4 9.3 45.1 14.4 69.9 14.4 97.2 0 176-78.8 176-176 0-24.8-5.1-48.5-14.4-69.9l-51.1 51.1c1 6.1 1.6 12.4 1.6 18.8C620 573.9 569.9 624 508 624z" p-id="7487"></path>
21
+ </svg>`})),Nn=r({default:()=>Pn}),Pn,Fn=n((()=>{Pn=`<svg t="1665473580103" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7625" width="200" height="200">
22
+ <path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3-7.7 16.2-7.7 35.2 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z" p-id="7626"></path>
23
+ <path d="M508 336c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176z m0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" p-id="7627"></path>
24
+ </svg>`})),In=r({default:()=>Ln}),Ln,Rn=n((()=>{Ln=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3M8 21H5a2 2 0 0 1-2-2v-3m18 0v3a2 2 0 0 1-2 2h-3"/></g></svg>`})),zn=r({default:()=>Bn}),Bn,Vn=n((()=>{Bn=`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 .5C5.73.5.5 5.73.5 12c0 5.08 3.29 9.39 7.86 10.91.58.11.79-.25.79-.56 0-.27-.01-1-.02-1.96-3.2.7-3.88-1.54-3.88-1.54-.52-1.33-1.28-1.68-1.28-1.68-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.55-.29-5.24-1.28-5.24-5.69 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.18 1.18a11.1 11.1 0 0 1 5.8 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.23 2.76.11 3.05.74.81 1.19 1.84 1.19 3.1 0 4.42-2.69 5.39-5.25 5.68.41.36.78 1.06.78 2.14 0 1.55-.01 2.8-.01 3.18 0 .31.21.68.8.56A11.51 11.51 0 0 0 23.5 12C23.5 5.73 18.27.5 12 .5Z"/></svg>
25
+ `})),Hn=r({default:()=>Un}),Un,Wn=n((()=>{Un=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
26
+ <circle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="1.6" />
27
+ <path d="M3 12h18" fill="none" stroke="currentColor" stroke-width="1.6" />
28
+ <ellipse cx="12" cy="12" rx="4" ry="9" fill="none" stroke="currentColor" stroke-width="1.6" />
29
+ </svg>
30
+ `})),Gn=r({default:()=>Kn}),Kn,qn=n((()=>{Kn=`<svg t="1667486325771" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8988" width="200" height="200"><path d="M946.5 505L560.1 118.8l-25.9-25.9c-12.3-12.2-32.1-12.2-44.4 0L77.5 505c-12.3 12.3-18.9 28.6-18.8 46 0.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8 12.1-12.1 18.7-28.2 18.7-45.3 0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204z m217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z" p-id="8989"></path></svg>`})),Jn=r({default:()=>Yn}),Yn,Xn=n((()=>{Yn=`<svg t="1667965239916" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8850" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272z m-32-344c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z" p-id="8851"></path></svg>`})),Zn=r({default:()=>Qn}),Qn,$n=n((()=>{Qn=`<svg t="1665313505832" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7765" width="200" height="200">
31
+ <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" p-id="7766"></path>
32
+ <path d="M512 336m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z" p-id="7767"></path>
33
+ <path d="M536 448h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" p-id="7768"></path>
34
+ </svg>`})),er=r({default:()=>tr}),tr,nr=n((()=>{tr=`<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Z"/><path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z"/></svg>
35
+ `})),rr=r({default:()=>ir}),ir,ar=n((()=>{ir=` <svg
36
+ version="1.1"
37
+ id="dc-spinner"
38
+ xmlns="http://www.w3.org/2000/svg"
39
+ x="0px" y="0px"
40
+ width="38"
41
+ height="38"
42
+ viewBox="0 0 38 38"
43
+ preserveAspectRatio="xMinYMin meet"
44
+ >
45
+ <text x="14" y="21" font-family="Monaco" font-size="2px" style="letter-spacing:0.6" fill="grey">LOADING
46
+ <animate
47
+ attributeName="opacity"
48
+ values="0;1;0" dur="1.8s"
49
+ repeatCount="indefinite"/>
50
+ </text>
51
+ <path fill="#373a42" d="M20,35c-8.271,0-15-6.729-15-15S11.729,5,20,5s15,6.729,15,15S28.271,35,20,35z M20,5.203
52
+ C11.841,5.203,5.203,11.841,5.203,20c0,8.159,6.638,14.797,14.797,14.797S34.797,28.159,34.797,20
53
+ C34.797,11.841,28.159,5.203,20,5.203z">
54
+ </path>
55
+
56
+ <path fill="#373a42" d="M20,33.125c-7.237,0-13.125-5.888-13.125-13.125S12.763,6.875,20,6.875S33.125,12.763,33.125,20
57
+ S27.237,33.125,20,33.125z M20,7.078C12.875,7.078,7.078,12.875,7.078,20c0,7.125,5.797,12.922,12.922,12.922
58
+ S32.922,27.125,32.922,20C32.922,12.875,27.125,7.078,20,7.078z">
59
+ </path>
60
+
61
+ <path fill="#2AA198" stroke="#2AA198" stroke-width="0.6027" stroke-miterlimit="10" d="M5.203,20
62
+ c0-8.159,6.638-14.797,14.797-14.797V5C11.729,5,5,11.729,5,20s6.729,15,15,15v-0.203C11.841,34.797,5.203,28.159,5.203,20z">
63
+ <animateTransform
64
+ attributeName="transform"
65
+ type="rotate"
66
+ from="0 20 20"
67
+ to="360 20 20"
68
+ calcMode="spline"
69
+ keySplines="0.4, 0, 0.2, 1"
70
+ keyTimes="0;1"
71
+ dur="2s"
72
+ repeatCount="indefinite" />
73
+ </path>
74
+
75
+ <path fill="#859900" stroke="#859900" stroke-width="0.2027" stroke-miterlimit="10" d="M7.078,20
76
+ c0-7.125,5.797-12.922,12.922-12.922V6.875C12.763,6.875,6.875,12.763,6.875,20S12.763,33.125,20,33.125v-0.203
77
+ C12.875,32.922,7.078,27.125,7.078,20z">
78
+ <animateTransform
79
+ attributeName="transform"
80
+ type="rotate"
81
+ from="0 20 20"
82
+ to="360 20 20"
83
+ dur="1.8s"
84
+ repeatCount="indefinite" />
85
+ </path>
86
+ </svg>
87
+ `})),or=r({default:()=>sr}),sr,cr=n((()=>{sr=`<svg t="1667109697406" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8490" width="200" height="200"><path d="M256 529.066667H85.333333a17.066667 17.066667 0 1 1 0-34.133334h170.666667a17.066667 17.066667 0 0 1 0 34.133334z" opacity=".278" p-id="8491"></path><path d="M99.84 640a17.066667 17.066667 0 0 1-4.437333-33.553067l164.693333-44.373333a17.066667 17.066667 0 1 1 8.891733 32.9728l-164.693333 44.373333a17.544533 17.544533 0 0 1-4.4544 0.580267z" opacity=".322" p-id="8492"></path><path d="M264.533333 462.523733a16.896 16.896 0 0 1-4.369066-0.580266l-164.693334-43.52a17.0496 17.0496 0 1 1 8.721067-32.989867l164.693333 43.52a17.066667 17.066667 0 1 1-4.352 33.570133z" opacity=".239" p-id="8493"></path><path d="M384.017067 307.2a17.032533 17.032533 0 0 1-14.7968-8.533333l-85.333334-147.626667a17.066667 17.066667 0 0 1 29.559467-17.083733l85.333333 147.626666A17.066667 17.066667 0 0 1 384.017067 307.2z" opacity=".122" p-id="8494"></path><path d="M639.982933 307.2a17.0496 17.0496 0 0 1-14.762666-25.6l85.333333-147.626667a17.066667 17.066667 0 1 1 29.559467 17.066667l-85.333334 147.626667a17.032533 17.032533 0 0 1-14.7968 8.533333z" opacity=".922" p-id="8495"></path><path d="M692.906667 347.306667a17.066667 17.066667 0 0 1-12.117334-29.098667l120.337067-121.173333a17.066667 17.066667 0 1 1 24.234667 24.046933l-120.337067 121.173333a17.1008 17.1008 0 0 1-12.117333 5.051734z" opacity=".878" p-id="8496"></path><path d="M733.883733 401.066667a17.066667 17.066667 0 0 1-8.5504-31.8464l147.626667-85.333334a17.0496 17.0496 0 1 1 17.066667 29.5424l-147.626667 85.333334a16.776533 16.776533 0 0 1-8.516267 2.304z" opacity=".839" p-id="8497"></path><path d="M512 273.066667a17.066667 17.066667 0 0 1-17.066667-17.066667V85.333333a17.066667 17.066667 0 0 1 34.133334 0v170.666667a17.066667 17.066667 0 0 1-17.066667 17.066667z" p-id="8498"></path><path d="M578.577067 281.6a17.066667 17.066667 0 0 1-16.520534-21.418667l43.52-164.693333a17.066667 17.066667 0 0 1 33.006934 8.721067l-43.52 164.693333a17.066667 17.066667 0 0 1-16.4864 12.6976z" opacity=".961" p-id="8499"></path><path d="M445.44 282.453333a17.066667 17.066667 0 0 1-16.469333-12.629333l-44.373334-164.693333a17.066667 17.066667 0 0 1 32.955734-8.891734l44.373333 164.693334a17.066667 17.066667 0 0 1-16.4864 21.521066z" opacity=".078" p-id="8500"></path><path d="M924.177067 640c-1.4848 0-2.9696-0.187733-4.4544-0.580267l-164.693334-44.373333a17.066667 17.066667 0 0 1 8.874667-32.9728l164.693333 44.373333a17.066667 17.066667 0 0 1-4.420266 33.553067z" opacity=".722" p-id="8501"></path><path d="M881.476267 742.4a17.015467 17.015467 0 0 1-8.482134-2.269867l-148.48-85.333333a17.0496 17.0496 0 1 1 16.9984-29.5936l148.48 85.333333a17.0496 17.0496 0 0 1-8.516266 31.863467z" opacity=".678" p-id="8502"></path><path d="M813.226667 830.293333a17.015467 17.015467 0 0 1-12.066134-5.000533l-120.337066-120.337067a17.0496 17.0496 0 1 1 24.132266-24.132266l120.337067 120.337066a17.0496 17.0496 0 0 1-12.066133 29.1328z" opacity=".639" p-id="8503"></path><path d="M938.666667 529.066667H768a17.066667 17.066667 0 1 1 0-34.133334h170.666667a17.066667 17.066667 0 1 1 0 34.133334z" opacity=".761" p-id="8504"></path><path d="M401.066667 941.226667a17.066667 17.066667 0 0 1-16.4864-21.504l44.373333-164.693334a17.066667 17.066667 0 1 1 32.955733 8.874667l-44.373333 164.693333a17.066667 17.066667 0 0 1-16.469333 12.629334z" opacity=".478" p-id="8505"></path><path d="M298.6496 898.56a17.066667 17.066667 0 0 1-14.779733-25.565867l85.333333-148.48a17.083733 17.083733 0 0 1 29.5936 16.9984l-85.333333 148.48a17.032533 17.032533 0 0 1-14.813867 8.567467z" opacity=".439" p-id="8506"></path><path d="M512 955.733333a17.066667 17.066667 0 0 1-17.066667-17.066666V768a17.066667 17.066667 0 1 1 34.133334 0v170.666667a17.066667 17.066667 0 0 1-17.066667 17.066666z" opacity=".522" p-id="8507"></path><path d="M725.3504 898.56a17.032533 17.032533 0 0 1-14.7968-8.533333l-85.333333-147.626667a17.066667 17.066667 0 0 1 29.559466-17.066667l85.333334 147.626667a17.066667 17.066667 0 0 1-14.762667 25.6z" opacity=".6" p-id="8508"></path><path d="M622.062933 942.08c-7.509333 0-14.421333-5.0176-16.469333-12.629333l-44.3904-164.693334a17.066667 17.066667 0 1 1 32.9728-8.874666l44.3904 164.693333a17.066667 17.066667 0 0 1-16.503467 21.504z" opacity=".561" p-id="8509"></path><path d="M759.4496 463.36a17.083733 17.083733 0 0 1-4.420267-33.553067l164.693334-44.373333a17.066667 17.066667 0 0 1 8.874666 32.955733l-164.693333 44.373334a16.657067 16.657067 0 0 1-4.4544 0.597333z" opacity=".702" p-id="8510"></path><path d="M330.24 347.306667a17.015467 17.015467 0 0 1-12.066133-5.000534l-120.32-120.32a17.0496 17.0496 0 1 1 24.132266-24.132266l120.32 120.32a17.0496 17.0496 0 0 1-12.066133 29.1328z" opacity=".161" p-id="8511"></path><path d="M290.116267 401.066667a17.032533 17.032533 0 0 1-8.533334-2.286934l-147.626666-85.333333a17.066667 17.066667 0 1 1 17.083733-29.5424l147.626667 85.333333a17.066667 17.066667 0 0 1-8.5504 31.829334z" opacity=".2" p-id="8512"></path><path d="M142.523733 742.4a17.066667 17.066667 0 0 1-8.567466-31.8464l147.626666-85.333333a17.066667 17.066667 0 1 1 17.083734 29.559466l-147.626667 85.333334a16.930133 16.930133 0 0 1-8.516267 2.286933z" opacity=".361" p-id="8513"></path><path d="M209.92 830.293333a17.066667 17.066667 0 0 1-12.117333-29.098666l120.32-121.173334a17.066667 17.066667 0 0 1 24.2176 24.029867l-120.32 121.1904a16.896 16.896 0 0 1-12.100267 5.051733z" opacity=".4" p-id="8514"></path></svg>`})),lr=r({default:()=>ur}),ur,dr=n((()=>{ur=`<svg t="1665313581686" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8045" width="200" height="200">
88
+ <path d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240z m460 600H232V536h560v304z" p-id="8046"></path>
89
+ <path d="M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53c12.1-8.7 20-22.9 20-39 0-26.5-21.5-48-48-48s-48 21.5-48 48c0 16.1 7.9 30.3 20 39z" p-id="8047"></path>
90
+ </svg>`})),fr=r({default:()=>pr}),pr,mr=n((()=>{pr=`<svg t="1738854981595" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3846" width="200" height="200"><path d="M128 170.666667h768v85.333333H128V170.666667z m0 298.666666h768v85.333334H128v-85.333334z m0 298.666667h768v85.333333H128v-85.333333z" p-id="3847" fill="currentColor"></path></svg>
91
+ `})),hr=r({default:()=>gr}),gr,_r=n((()=>{gr=`<svg t="1667110740871" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7904" width="200" height="200"><path d="M512 512m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z" p-id="7905"></path><path d="M712 512m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z" p-id="7906"></path><path d="M312 512m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z" p-id="7907"></path><path d="M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3-41.3-41.3-89.5-73.8-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6 0.3-119.3 12.3-174.5 35.9-53.3 22.8-101.1 55.2-142 96.5-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9 0.3 69.4 16.9 138.3 48 199.9v152c0 25.4 20.6 46 46 46h152.1c61.6 31.1 130.5 47.7 199.9 48h2.1c59.9 0 118-11.6 172.7-34.3 53.5-22.3 101.6-54.3 142.8-95.2 41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5 0.3-60.9-11.5-120-34.8-175.6z m-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-0.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-0.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-0.6 99.6-39.7 192.9-110.1 262.7z" p-id="7908"></path></svg>`})),vr=r({default:()=>yr}),yr,br=n((()=>{yr=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9 9V6a3 3 0 0 1 5.5-1.7"/><path d="M15 10.5V6"/><path d="M5 11a7 7 0 0 0 10.5 6.06"/><path d="M19 11a6.97 6.97 0 0 1-.9 3.4"/><path d="M12 18v3"/><path d="M4 4l16 16"/></g></svg>
92
+ `})),xr=r({default:()=>Sr}),Sr,Cr=n((()=>{Sr=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5 11a7 7 0 0 0 14 0"/><path d="M12 18v3"/></g></svg>
93
+ `})),wr=r({default:()=>Tr}),Tr,Er=n((()=>{Tr=`<svg t="1738503407752" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19504" width="200" height="200"><path d="M298.666667 409.002667l213.333333 213.333333 213.333333-213.333333 60.330667 60.330666L512 742.997333 238.336 469.333333l60.330667-60.330666z" p-id="19505"></path></svg>
94
+ `})),Dr=r({default:()=>Or}),Or,kr=n((()=>{Or=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V5zM14 5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V5z" fill="currentColor"/></svg>
95
+ `})),Ar=r({default:()=>jr}),jr,Mr=n((()=>{jr=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20h4L20 8a2.83 2.83 0 0 0-4-4L4 16z"/><path d="M14.5 5.5 18.5 9.5"/></g></svg>
96
+ `})),Nr=r({default:()=>Pr}),Pr,Fr=n((()=>{Pr=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="5" width="18" height="14" rx="2"/><rect x="13" y="13" width="7" height="5" rx="1"/></g></svg>
97
+ `})),Ir=r({default:()=>Lr}),Lr,Rr=n((()=>{Lr=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 5.14v13.72a1 1 0 0 0 1.5.86l11-6.86a1 1 0 0 0 0-1.72l-11-6.86A1 1 0 0 0 8 5.14z" fill="currentColor"/></svg>
98
+ `})),zr=r({default:()=>Br}),Br,Vr=n((()=>{Br=`<svg t="1738503384129" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19081" width="200" height="200"><path d="M469.333333 554.666667v384h85.333334V554.666667h384v-85.333334H554.666667V85.333333h-85.333334v384H85.333333v85.333334h384z" p-id="19082"></path></svg>
99
+ `})),Hr=r({default:()=>Ur}),Ur,Wr=n((()=>{Ur=`<svg t="1667110863698" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8743" width="200" height="200"><path d="M705.6 124.9c-5.3-2.7-11.6 1.2-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6 22.4 14.1 43.2 30.7 62.2 49.8 32.7 32.8 58.4 70.9 76.3 113.3 18.5 43.9 27.9 90.5 27.9 138.7 0 48.1-9.4 94.8-27.9 138.7-17.9 42.4-43.6 80.5-76.3 113.3-32.7 32.8-70.8 58.5-113.2 76.4-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28c-42.4-17.9-80.5-43.6-113.2-76.4-32.7-32.8-58.4-70.9-76.3-113.3-18.5-43.9-27.9-90.5-27.9-138.7 0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 0.5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7z" p-id="8744"></path><path d="M480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z" p-id="8745"></path></svg>`})),Gr=r({default:()=>Kr}),Kr,qr=n((()=>{Kr=`<svg t="1689421689831" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1501" width="200" height="200"><path d="M242.526316 215.578947h431.157895v53.894737H242.526316V215.578947z m431.157895 269.473685H242.526316V431.157895h431.157895v53.894737z m323.368421 323.368421c0 88.279579-144.761263 215.578947-323.368421 215.578947s-323.368421-127.353263-323.368422-215.578947a164.055579 164.055579 0 0 1 53.894737-107.789474H242.526316v-53.894737h215.578947v10.778947a388.042105 388.042105 0 0 1 377.263158-28.725894V53.894737H80.842105v862.315789h323.368421v53.894737H26.947368V0h862.31579v658.054737A208.357053 208.357053 0 0 1 997.052632 808.421053z m-134.736843-107.789474H835.368421v-14.928842A356.675368 356.675368 0 0 0 673.684211 646.736842c-148.857263 0-269.473684 91.136-269.473685 161.684211 0 66.182737 120.616421 161.684211 269.473685 161.68421s269.473684-95.501474 269.473684-161.68421a149.989053 149.989053 0 0 0-80.842106-107.789474zM673.684211 916.210526a107.789474 107.789474 0 1 1 107.789473-107.789473 107.789474 107.789474 0 0 1-107.789473 107.789473z m0-161.68421a53.894737 53.894737 0 1 0 53.894736 53.894737 53.894737 53.894737 0 0 0-53.894736-53.894737z" p-id="1502"></path></svg>`})),Jr=r({default:()=>Yr}),Yr,Xr=n((()=>{Yr=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></g></svg>`})),Zr=r({default:()=>Qr}),Qr,$r=n((()=>{Qr=`<svg t="1738502968548" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1473" width="200" height="200"><path d="M685.649 623.604l263.828 267.132c17.076 17.29 16.903 45.149-0.387 62.225-17.29 17.075-45.148 16.902-62.224-0.388L623.4 685.81C558.442 737.27 476.31 768 387 768 176.58 768 6 597.42 6 387S176.58 6 387 6s381 170.58 381 381c0 89.403-30.793 171.613-82.351 236.604zM387 680c161.82 0 293-131.18 293-293S548.82 94 387 94 94 225.18 94 387s131.18 293 293 293z" fill="currentColor" p-id="1474"></path></svg>
100
+ `})),ei=r({default:()=>ti}),ti,ni=n((()=>{ti=`<svg t="1667110849445" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8603" width="200" height="200"><path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56c10.1-8.6 13.8-22.6 9.3-35.2l-0.9-2.6c-18.1-50.5-44.9-96.9-79.7-137.9l-1.8-2.1c-8.6-10.1-22.5-13.9-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85c-2.4-13.1-12.7-23.3-25.8-25.7l-2.7-0.5c-52.1-9.4-106.9-9.4-159 0l-2.7 0.5c-13.1 2.4-23.4 12.6-25.8 25.7l-15.8 85.4c-35.9 13.6-69.2 32.9-99 57.4l-81.9-29.1c-12.5-4.4-26.5-0.7-35.1 9.5l-1.8 2.1c-34.8 41.1-61.6 87.5-79.7 137.9l-0.9 2.6c-4.5 12.5-0.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5c-10.1 8.6-13.8 22.6-9.3 35.2l0.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1c8.6 10.1 22.5 13.9 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4c2.4 13.1 12.7 23.3 25.8 25.7l2.7 0.5c26.1 4.7 52.8 7.1 79.5 7.1 26.7 0 53.5-2.4 79.5-7.1l2.7-0.5c13.1-2.4 23.4-12.6 25.8-25.7l15.7-85c36.2-13.6 69.7-32.9 99.7-57.6l81.3 28.9c12.5 4.4 26.5 0.7 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l0.9-2.6c4.5-12.3 0.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9c-11.3 26.1-25.6 50.7-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97c-28.1 3.2-56.8 3.2-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9z" p-id="8604"></path><path d="M512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176z m79.2 255.2C570 602.3 541.9 614 512 614c-29.9 0-58-11.7-79.2-32.8C411.7 560 400 531.9 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8C612.3 444 624 472.1 624 502c0 29.9-11.7 58-32.8 79.2z" p-id="8605"></path></svg>`})),ri=r({default:()=>ii}),ii,ai=n((()=>{ii=`<svg t="1740920555586" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4915"
101
+ width="200" height="200">
102
+ <path
103
+ d="M800.256 741.888l47.616-47.616a31.744 31.744 0 0 1 45.056 45.056l-102.4 102.4a31.744 31.744 0 0 1-54.272-22.528V204.8a32.256 32.256 0 0 1 64 0zM153.6 237.056a32.256 32.256 0 0 1 0-64h460.8a32.256 32.256 0 0 1 0 64z m0 307.2a32.256 32.256 0 0 1 0-64h460.8a32.256 32.256 0 0 1 0 64z m0 307.2a32.256 32.256 0 0 1 0-64h460.8a32.256 32.256 0 0 1 0 64z"
104
+ fill="currentColor" p-id="4916"></path>
105
+ </svg>
106
+ `})),oi=r({default:()=>si}),si,ci=n((()=>{si=`<svg t="1667110807200" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8324" width="200" height="200"><path d="M824.2 699.9c-25.4-25.4-54.7-45.7-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5-31.7 14.7-60.9 34.9-86.4 60.4C345 754.6 314 826.8 312 903.8c-0.1 4.5 3.5 8.2 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C493.8 707.7 551.1 684 612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c0.1 4.3 3.7 7.7 8 7.7h56c4.5 0 8.1-3.7 8-8.2-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5-24.5-24.5-37.9-57.1-37.5-91.8 0.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-0.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5-24.2 24.2-56.4 37.5-90.6 37.5z" p-id="8325"></path><path d="M361.5 510.4c-0.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5 0.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1-25.8-25.2-39.7-59.3-38.7-95.4 0.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9 0.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-0.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204-0.1 4.5 3.5 8.2 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z" p-id="8326"></path></svg>`})),li=r({default:()=>ui}),ui,di=n((()=>{ui=`<svg t="1665313601302" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8185" width="200" height="200">
107
+ <path d="M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32z m-40 376H232V536h560v304z" p-id="8186"></path>
108
+ <path d="M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53c12.1-8.7 20-22.9 20-39 0-26.5-21.5-48-48-48s-48 21.5-48 48c0 16.1 7.9 30.3 20 39z" p-id="8187"></path>
109
+ </svg>`})),fi=r({default:()=>pi}),pi,mi=n((()=>{pi=`<svg t="1667483498347" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8544" width="200" height="200"><path d="M858.5 763.6c-18.9-44.8-46.1-85-80.6-119.5-34.5-34.5-74.7-61.6-119.5-80.6-0.4-0.2-0.8-0.3-1.2-0.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-0.4 0.2-0.8 0.3-1.2 0.5-44.8 18.9-85 46-119.5 80.6-34.5 34.5-61.6 74.7-80.6 119.5C146.9 807.5 137 854 136 901.8c-0.1 4.5 3.5 8.2 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c0.1 4.4 3.6 7.8 8 7.8h60c4.5 0 8.1-3.7 8-8.2-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" p-id="8545"></path></svg>`})),hi=r({default:()=>gi}),gi,_i=n((()=>{gi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 9v6h4l5 4V5L8 9H4z"/><path d="M16 9l6 6M22 9l-6 6"/></g></svg>
110
+ `})),vi=r({default:()=>yi}),yi,bi=n((()=>{yi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 9v6h4l5 4V5L8 9H4z"/><path d="M16.5 8.5a5 5 0 0 1 0 7"/><path d="M19.5 5.5a9 9 0 0 1 0 13"/></g></svg>
111
+ `})),xi=r({default:()=>Si}),Si,Ci=n((()=>{Si=`<svg t="1667965273540" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8989" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296z m32 440c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z" p-id="8990"></path></svg>`})),wi=r({default:()=>Ti}),Ti,Ei=n((()=>{Ti=`<svg t="1667895689016" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8572" width="200" height="200"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" p-id="8573"></path><path d="M512 688m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z" p-id="8574"></path><path d="M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" p-id="8575"></path></svg>`})),Di=r({default:()=>Oi}),Oi,ki=n((()=>{Oi=`<svg t="1742629778506" class="icon" viewBox="0 0 1366 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31273" width="200" height="200"><path d="M1230.155 778.399V472.604l133.84-51.746-94.113-140.41 83.29 13.815 0.676-4.006 6.486-9.634L1204.75 176.19l-2.05 2.985 1.283-3.578L735.283 1.087 734 4.496l-1.197-3.494-550.626 182.523-0.338-0.598-2.303 1.619-0.43-0.083-0.597 0.85L0 311.57l7.076 9.972L8.78 325.8l97.353-40.064-70.926 98.38 140.747 78.94 0.168 312.863h3.838l-1.873 3.415 438.699 244.578 0.083-0.084v0.168l15.428-0.084v0.084l0.253-0.084h0.262v-0.084l597.428-245.262-0.085-0.168z m89.34-505.88l-61.802-10.223-38.106-56.866 99.908 67.09zM742.443 20.782l438.438 163.252-438.438 164.28V20.78z m451.654 175.355l145.522 217.047-605.703 234.1-100.084-241.176 560.265-209.97zM63.934 285.822l85.848-60.698-25.997 36.143-59.851 24.555z m-5.28 93.177L134.1 274.315l1.873-0.768-0.514-1.196 48.852-67.856 428.377 201.357-75.7 241.515L58.653 379zM192.07 768.85l-0.175-296.76 354.386 198.803 68.625-218.92 1.788 553.697L192.07 768.85z m8.184-574.587L726.5 19.843v334.433l-103.323 38.79-422.924-198.803z m1013.96 573.56L632.727 1006.52l-1.795-565.798 94.204 227.107 489.078-189v288.994z" fill="currentColor" p-id="31274"></path></svg>`})),Ai=r({default:()=>ji}),ji,Mi=n((()=>{ji=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="11" y1="8" x2="11" y2="14"/><line x1="8" y1="11" x2="14" y2="11"/></g></svg>`})),Ni=r({default:()=>Pi}),Pi,Fi=n((()=>{Pi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><line x1="8" y1="11" x2="14" y2="11"/></g></svg>`})),Ii=r({Icon:()=>Ui,RAN_ICON_NAMES:()=>Hi,registerIcon:()=>Q,registerIcons:()=>Bi}),Li,Ri,X,Z,zi,Q,Bi,Vi,$,Hi,Ui,Wi=n((()=>{Bt(),St(),Li=!1,Ri=new Map,X=!1,Z=e=>/<svg[\s>]/i.test(e),zi=e=>{if(typeof e==`string`)return Z(e)?e:void 0;if(!e||typeof e!=`object`)return;let t=e,n=t.data;if(typeof n==`string`&&Z(n))return n;let r=t.default;if(typeof r==`string`&&Z(r))return r;if(r&&typeof r==`object`){let e=r;if(typeof e.data==`string`&&Z(e.data))return e.data}},Q=(e,t)=>{X=!0;let n=zi(t);n&&(Ri.set(`inline:${e}`,n),typeof window<`u`&&window.dispatchEvent(new CustomEvent(`ranui-icon-registered`,{detail:{name:e}})))},Bi=e=>{X=!0,Object.entries(e).forEach(([e,t])=>{Q(e,t)})},Vi=Object.assign({"../../assets/icons/add-user.svg":()=>Promise.resolve().then(()=>(Ut(),Vt)).then(e=>e.default),"../../assets/icons/arrow-down.svg":()=>Promise.resolve().then(()=>(Kt(),Wt)).then(e=>e.default),"../../assets/icons/book.svg":()=>Promise.resolve().then(()=>(Yt(),qt)).then(e=>e.default),"../../assets/icons/cast.svg":()=>Promise.resolve().then(()=>(Qt(),Xt)).then(e=>e.default),"../../assets/icons/check-circle-fill.svg":()=>Promise.resolve().then(()=>(tn(),$t)).then(e=>e.default),"../../assets/icons/check-circle.svg":()=>Promise.resolve().then(()=>(an(),nn)).then(e=>e.default),"../../assets/icons/check.svg":()=>Promise.resolve().then(()=>(cn(),on)).then(e=>e.default),"../../assets/icons/chevron-down.svg":()=>Promise.resolve().then(()=>(dn(),ln)).then(e=>e.default),"../../assets/icons/close-circle-fill.svg":()=>Promise.resolve().then(()=>(mn(),fn)).then(e=>e.default),"../../assets/icons/close-circle.svg":()=>Promise.resolve().then(()=>(_n(),hn)).then(e=>e.default),"../../assets/icons/close.svg":()=>Promise.resolve().then(()=>(bn(),vn)).then(e=>e.default),"../../assets/icons/copy.svg":()=>Promise.resolve().then(()=>(Cn(),xn)).then(e=>e.default),"../../assets/icons/download.svg":()=>Promise.resolve().then(()=>(En(),wn)).then(e=>e.default),"../../assets/icons/drop.svg":()=>Promise.resolve().then(()=>(kn(),Dn)).then(e=>e.default),"../../assets/icons/eye-close.svg":()=>Promise.resolve().then(()=>(Mn(),An)).then(e=>e.default),"../../assets/icons/eye.svg":()=>Promise.resolve().then(()=>(Fn(),Nn)).then(e=>e.default),"../../assets/icons/fullscreen.svg":()=>Promise.resolve().then(()=>(Rn(),In)).then(e=>e.default),"../../assets/icons/github.svg":()=>Promise.resolve().then(()=>(Vn(),zn)).then(e=>e.default),"../../assets/icons/globe.svg":()=>Promise.resolve().then(()=>(Wn(),Hn)).then(e=>e.default),"../../assets/icons/home.svg":()=>Promise.resolve().then(()=>(qn(),Gn)).then(e=>e.default),"../../assets/icons/info-circle-fill.svg":()=>Promise.resolve().then(()=>(Xn(),Jn)).then(e=>e.default),"../../assets/icons/info-circle.svg":()=>Promise.resolve().then(()=>($n(),Zn)).then(e=>e.default),"../../assets/icons/issue.svg":()=>Promise.resolve().then(()=>(nr(),er)).then(e=>e.default),"../../assets/icons/loading-scene.svg":()=>Promise.resolve().then(()=>(ar(),rr)).then(e=>e.default),"../../assets/icons/loading.svg":()=>Promise.resolve().then(()=>(cr(),or)).then(e=>e.default),"../../assets/icons/lock.svg":()=>Promise.resolve().then(()=>(dr(),lr)).then(e=>e.default),"../../assets/icons/menu.svg":()=>Promise.resolve().then(()=>(mr(),fr)).then(e=>e.default),"../../assets/icons/message.svg":()=>Promise.resolve().then(()=>(_r(),hr)).then(e=>e.default),"../../assets/icons/mic-off.svg":()=>Promise.resolve().then(()=>(br(),vr)).then(e=>e.default),"../../assets/icons/mic.svg":()=>Promise.resolve().then(()=>(Cr(),xr)).then(e=>e.default),"../../assets/icons/more.svg":()=>Promise.resolve().then(()=>(Er(),wr)).then(e=>e.default),"../../assets/icons/pause.svg":()=>Promise.resolve().then(()=>(kr(),Dr)).then(e=>e.default),"../../assets/icons/pencil.svg":()=>Promise.resolve().then(()=>(Mr(),Ar)).then(e=>e.default),"../../assets/icons/pip.svg":()=>Promise.resolve().then(()=>(Fr(),Nr)).then(e=>e.default),"../../assets/icons/play.svg":()=>Promise.resolve().then(()=>(Rr(),Ir)).then(e=>e.default),"../../assets/icons/plus.svg":()=>Promise.resolve().then(()=>(Vr(),zr)).then(e=>e.default),"../../assets/icons/power-off.svg":()=>Promise.resolve().then(()=>(Wr(),Hr)).then(e=>e.default),"../../assets/icons/preview.svg":()=>Promise.resolve().then(()=>(qr(),Gr)).then(e=>e.default),"../../assets/icons/refresh.svg":()=>Promise.resolve().then(()=>(Xr(),Jr)).then(e=>e.default),"../../assets/icons/search.svg":()=>Promise.resolve().then(()=>($r(),Zr)).then(e=>e.default),"../../assets/icons/setting.svg":()=>Promise.resolve().then(()=>(ni(),ei)).then(e=>e.default),"../../assets/icons/sort.svg":()=>Promise.resolve().then(()=>(ai(),ri)).then(e=>e.default),"../../assets/icons/team.svg":()=>Promise.resolve().then(()=>(ci(),oi)).then(e=>e.default),"../../assets/icons/unlock.svg":()=>Promise.resolve().then(()=>(di(),li)).then(e=>e.default),"../../assets/icons/user.svg":()=>Promise.resolve().then(()=>(mi(),fi)).then(e=>e.default),"../../assets/icons/volume-mute.svg":()=>Promise.resolve().then(()=>(_i(),hi)).then(e=>e.default),"../../assets/icons/volume.svg":()=>Promise.resolve().then(()=>(bi(),vi)).then(e=>e.default),"../../assets/icons/warning-circle-fill.svg":()=>Promise.resolve().then(()=>(Ci(),xi)).then(e=>e.default),"../../assets/icons/warning-circle.svg":()=>Promise.resolve().then(()=>(Ei(),wi)).then(e=>e.default),"../../assets/icons/without-content.svg":()=>Promise.resolve().then(()=>(ki(),Di)).then(e=>e.default),"../../assets/icons/zoom-in.svg":()=>Promise.resolve().then(()=>(Mi(),Ai)).then(e=>e.default),"../../assets/icons/zoom-out.svg":()=>Promise.resolve().then(()=>(Fi(),Ni)).then(e=>e.default)}),$={};for(let[e,t]of Object.entries(Vi)){let n=e.split(`/`).pop()?.replace(/\.svg$/,``);n&&($[n]=t)}Hi=`add-user.arrow-down.book.cast.check.check-circle.check-circle-fill.chevron-down.close.close-circle.close-circle-fill.copy.download.drop.eye.eye-close.fullscreen.github.globe.home.info-circle.info-circle-fill.issue.loading.loading-scene.lock.menu.message.mic.mic-off.more.pause.pencil.pip.play.plus.power-off.preview.refresh.search.setting.sort.team.unlock.user.volume.volume-mute.warning-circle.warning-circle-fill.without-content.zoom-in.zoom-out`.split(`.`),Ui=class extends F{isDev=Li;_events=new te;static get observedAttributes(){return[`name`,`size`,`color`,`spin`,`decorative`,`aria-label`,`sheet`]}_icon;_div;_shadowDom;_onIconRegistered=e=>{let t=e.detail?.name;t&&t===this.name&&!this._icon&&this.setIcon()};constructor(){super(),this._shadowDom=G(this,zt),K(this._shadowDom,zt,{bind:e=>this._bindPaintedTree(e),build:()=>{let e=N().class(`ran-icon`).part(`ran-icon`).build();return this._div=e,e}})}_bindPaintedTree(e){if(!(typeof e.className==`string`?e.className:``).includes(`ran-icon`)&&e.getAttribute(`part`)!==`ran-icon`)return!1;this._div=e;let t=e.querySelector?.(`svg`);return t&&(this._icon=t),!0}get name(){return J(this,`name`)}set name(e){e&&this.setAttribute(`name`,e)}get size(){return J(this,`size`)}set size(e){e&&this.setAttribute(`size`,e)}get color(){return J(this,`color`)}set color(e){e&&this.setAttribute(`color`,e)}get spin(){return this.hasAttribute(`spin`)}set spin(e){e?this.setAttribute(`spin`,``):this.removeAttribute(`spin`)}get decorative(){let e=this.getAttribute(`decorative`);return e==null?!this.hasAttribute(`aria-label`):e!==`false`&&e!==`0`}set decorative(e){this.setAttribute(`decorative`,e?`true`:`false`)}get ariaLabel(){return J(this,`aria-label`)}set ariaLabel(e){Y(this,`aria-label`,e,{removeEmpty:!0})}get sheet(){return J(this,`sheet`)}set sheet(e){Y(this,`sheet`,e)}handlerExternalCss=()=>{It(this,this._shadowDom,`sheet`,null,this.sheet)};syncA11y=()=>{this._icon&&(this.decorative?(this.setAttribute(`aria-hidden`,`true`),this.removeAttribute(`role`),this._icon.setAttribute(`aria-hidden`,`true`),this._icon.setAttribute(`focusable`,`false`)):(this.removeAttribute(`aria-hidden`),this.setAttribute(`role`,`img`),this._icon.removeAttribute(`aria-hidden`),this._icon.setAttribute(`focusable`,`false`)))};setIcon=()=>{let e=this.name;if(e&&this._icon?.getAttribute(`data-name`)===e)this.setSize(),this.setColor(),this.setSpin(),this.syncA11y();else if(this._icon&&=(this._icon.remove(),void 0),typeof document>`u`&&this._div&&(this._div.innerHTML=``),e){if(e.startsWith(`<svg`))this.renderSvg(e,e);else try{let t=`inline:${e}`,n=Ri.get(t);if(!n){let t=$[e];if(t&&typeof document<`u`){this.lazyLoadBuiltinIcon(e,t);return}this.isDev&&X&&console.warn(`[ranui-icon] icon not registered: ${e}`);return}this.isSvgText(n)?this.renderSvg(n,e):this.isDev&&console.warn(`[ranui-icon] invalid svg text: ${e}`)}catch(t){this.isDev&&console.warn(`[ranui-icon] render icon failed: ${e}`,t)}}};_preSerialize(){this.setIcon()}lazyLoadBuiltinIcon=(e,t)=>{t().then(t=>{Q(e,t)}).catch(t=>{this.isDev&&console.warn(`[ranui-icon] lazy load builtin failed: ${e}`,t)})};isSvgText=e=>Z(e);parseSvg=e=>{let t=new window.DOMParser().parseFromString(e,`image/svg+xml`).documentElement;if(!t||t.tagName.toLowerCase()===`parsererror`||t.tagName.toLowerCase()!==`svg`)return;let n=new XMLSerializer().serializeToString(t),r=M(`template`).build();r.innerHTML=n.trim();let i=r.content.firstElementChild;if(i&&i.tagName.toLowerCase()===`svg`)return i};renderSvg=(e,t)=>{if(typeof document>`u`){let n=this.size||`1em`,r=/^\d+(\.\d+)?$/.test(n)?`${n}px`:n,i=this.color||`currentColor`,a=e.replace(/<svg\b([^>]*)>/i,`<svg$1 part="icon-svg" data-name="${t}" style="width:${r};height:${r};color:${i};fill:${i};stroke:${i}">`);this._div.innerHTML=a,this.syncA11y();return}let n=this.parseSvg(e);n?(this._icon=n,this._icon.setAttribute(`part`,`icon-svg`),this._icon.setAttribute(`data-name`,t),this._div.appendChild(this._icon),this.setSize(),this.setColor(),this.setSpin(),this.syncA11y()):this.isDev&&console.warn(`[ranui-icon] parse svg failed: ${t}`)};setSize=()=>{if(this._icon){let e=this.size||`1em`;this._icon.setAttribute(`width`,e),this._icon.setAttribute(`height`,e);let t=/^\d+(\.\d+)?$/.test(e)?`${e}px`:e;this._icon.style.setProperty(`width`,t),this._icon.style.setProperty(`height`,t)}};setColor=()=>{if(this._icon){let e=this.color||`currentColor`;this._icon.style.setProperty(`color`,e),this._icon.style.setProperty(`fill`,e),this._icon.style.setProperty(`stroke`,e)}};setSpin=()=>{this.spin?this._div.classList.add(`ran-icon-spin`):this._div.classList.remove(`ran-icon-spin`)};connectedCallback(){this._events.on(window,`ranui-icon-registered`,this._onIconRegistered),this.handlerExternalCss(),this.setIcon()}disconnectedCallback(){this._events.abort()}attributeChangedCallback(e,t,n){t!==n&&(e===`name`&&this.setIcon(),e===`size`&&this.setSize(),e===`color`&&this.setColor(),e===`spin`&&this.setSpin(),(e===`decorative`||e===`aria-label`)&&this.syncA11y(),e===`sheet`&&this.handlerExternalCss())}},bt(`r-icon`,Ui)}));c(),yt(),wt(),St(),Lt();var Gi=()=>{typeof document<`u`&&(typeof customElements<`u`&&customElements.get(`r-icon`)||Promise.resolve().then(()=>(Wi(),Ii)))},Ki=class extends F{_btn;_btnContent;_iconElement;_slot;_shadowDom;_events=new te;debounceTimeId;static get observedAttributes(){return[`disabled`,`icon`,`effect`,`iconSize`,`type`,`aria-label`,`sheet`,`surface`]}constructor(){super(),this._shadowDom=G(this,ce),K(this._shadowDom,ce,{bind:e=>this._bindPaintedTree(e),build:()=>{let e=Re(),t=Re(),n=N().class(`ran-btn`).attr(`part`,`button`).role(`button`).tabIndex(0).children(N().class(`ran-btn-content`).ref(e).attr(`part`,`content`).children(rt().ref(t).class(`slot`))).build();return this._btn=n,this._btnContent=q(e,`content`),this._slot=q(t,`slot`),n}})}_bindPaintedTree(e){let t=e.getAttribute(`part`)||``,n=typeof e.className==`string`?e.className:``;if(!t.includes(`button`)&&!n.includes(`ran-btn`))return!1;let r=e.children.item(0);if(!r)return!1;let i=null,a;for(let e of Array.from(r.children)){let t=e.tagName.toLowerCase();t===`slot`?i=e:t===`r-icon`&&(a=e)}return i?(this._btn=e,this._btnContent=r,this._slot=i,this._iconElement=a,!0):!1}get sheet(){return this.getAttribute(`sheet`)||``}set sheet(e){this.setAttribute(`sheet`,e||``),this.handlerExternalCss()}get surface(){return this.getAttribute(`surface`)||``}set surface(e){e?this.setAttribute(`surface`,e):this.removeAttribute(`surface`)}get disabled(){return I(this)}set disabled(e){!e||e===`false`?(this.removeAttribute(`disabled`),this.removeAttribute(`aria-disabled`)):(this.setAttribute(`disabled`,``),this.setAttribute(`aria-disabled`,`true`))}get iconSize(){return this.getAttribute(`iconSize`)||``}set iconSize(e){!e||e===`false`?this.removeAttribute(`iconSize`):(this.setAttribute(`iconSize`,e),this.setIcon())}get icon(){return this.getAttribute(`icon`)||``}set icon(e){!e||e===`false`?this.removeAttribute(`icon`):(this.setAttribute(`icon`,e),this.setIcon())}get effect(){return this.getAttribute(`effect`)!==`false`}set effect(e){!e||e===`false`?this.setAttribute(`effect`,`false`):this.removeAttribute(`effect`)}get type(){return this.getAttribute(`type`)||``}set type(e){e?this.setAttribute(`type`,e):this.removeAttribute(`type`)}focus(e){I(this)||this._btn.focus(e)}click(){I(this)||super.click()}_guardDisabledClick=e=>{I(this)&&(e.preventDefault(),e.stopImmediatePropagation())};setIcon=()=>{if(!this._slot||!this._btnContent)return;let e=this.icon;if(!e){this._iconElement&&=(this._iconElement.remove(),void 0);return}if(Gi(),this._iconElement)this._iconElement.setAttribute(`name`,e);else{let t=this._shadowDom.querySelector?.(`r-icon`)??void 0;if(!t){let e=xt(`r-icon`);typeof document>`u`&&e?(t=new e,t.setAttribute(`color`,`currentColor`),t.setAttribute(`class`,`icon`)):t=M(`r-icon`).attr(`color`,`currentColor`).class(`icon`).build(),typeof this._slot.insertAdjacentElement==`function`?this._slot.insertAdjacentElement(`beforebegin`,t):this._btnContent.insertBefore(t,this._slot)}this._iconElement=t,this._iconElement.setAttribute(`name`,e)}let t=typeof getComputedStyle==`function`&&this._btnContent&&Number.parseFloat(getComputedStyle(this._btnContent).fontSize)||14,n=this.iconSize||`${Math.round(t*1.15)}`;this._iconElement.setAttribute(`size`,String(n));let r=this._iconElement;typeof document>`u`&&(typeof r._preSerialize==`function`?r._preSerialize():r.setIcon?.())};_preSerialize(){this.setIcon(),this.syncA11yState(),this.syncAriaLabel()}mousedown=e=>{if(i()===`pc`&&!this.disabled){this.debounceMouseEvent();let{left:t,top:n}=this.getBoundingClientRect();this._btn.style.setProperty(`--ran-x`,`${e.clientX-t}px`),this._btn.style.setProperty(`--ran-y`,`${e.clientY-n}px`)}};mouseup=()=>{i()===`pc`&&(this.debounceTimeId||=setTimeout(()=>{this._btn.style.removeProperty(`--ran-x`),this._btn.style.removeProperty(`--ran-y`),this.debounceMouseEvent()},600))};keydown=e=>{I(this)||Rt(e)&&(e.preventDefault(),this.click())};debounceMouseEvent=()=>{this.debounceTimeId&&=(clearTimeout(this.debounceTimeId),void 0)};handlerExternalCss=()=>{It(this,this._shadowDom,`sheet`,null,this.sheet)};syncA11yState=()=>{let e=I(this);this._btn.setAttribute(`aria-disabled`,e?`true`:`false`),this._btn.tabIndex=e?-1:0,e?(this.setAttribute(`aria-disabled`,`true`),this._btnContent.setAttribute(`disabled`,`true`)):(this.removeAttribute(`aria-disabled`),this._btnContent.removeAttribute(`disabled`))};connectedCallback(){this.handlerExternalCss(),this.setIcon(),this.syncA11yState(),this.syncAriaLabel(),this._events.on(this,`click`,this._guardDisabledClick,{capture:!0}).on(this._btn,`mousedown`,this.mousedown).on(this._btn,`mouseup`,this.mouseup).on(this._btn,`keydown`,this.keydown)}disconnectedCallback(){this.debounceMouseEvent(),this._events.abort()}syncAriaLabel=()=>{let e=this.getAttribute(`aria-label`);e===null?this._btn.removeAttribute(`aria-label`):this._btn.setAttribute(`aria-label`,e)};attributeChangedCallback(e,t,n){t!==n&&(e===`disabled`&&this._btnContent&&this.syncA11yState(),e===`aria-label`&&this.syncAriaLabel(),(e===`icon`||e===`iconSize`)&&this.setIcon(),e===`sheet`&&this.handlerExternalCss())}};return bt(`r-button`,Ki),e.Button=Ki,e.default=Ki,e})({});
@@ -0,0 +1 @@
1
+ var ranui_card=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=`:host{display:var(--ran-card-display, block);box-sizing:border-box;min-height:var(--ran-card-min-height, 0)}:host([surface="glass"]) .ran-card{background:var(--ran-surface-glass-specular, linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .14) 24%, transparent 48%), linear-gradient(0deg, rgba(255, 255, 255, .28) 0%, transparent 30%)),var(--ran-surface-glass-fill, rgba(255, 255, 255, .55));-webkit-backdrop-filter:blur(var(--ran-surface-glass-blur, 12px)) saturate(var(--ran-surface-glass-saturate, 180%)) brightness(var(--ran-surface-glass-brightness, 1.08));backdrop-filter:blur(var(--ran-surface-glass-blur, 12px)) saturate(var(--ran-surface-glass-saturate, 180%)) brightness(var(--ran-surface-glass-brightness, 1.08));border-color:var(--ran-surface-glass-border, rgba(255, 255, 255, .72));box-shadow:var(--ran-surface-glass-shadow, 0 8px 24px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(255, 255, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .4), inset 0 0 0 .5px rgba(255, 255, 255, .5))}@media(prefers-reduced-transparency:reduce){:host([surface="glass"]) .ran-card{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--ran-surface-glass-solid-fallback, var(--ran-color-bg-elevated));box-shadow:var(--ran-surface-glass-solid-shadow, var(--ran-shadow-elevated))}}:host([hoverable]:hover) .ran-card{border-color:var(--ran-card-hover-border-color, var(--ran-color-border-hover, #b8b8c0));box-shadow:var(--ran-card-hover-shadow, var(--ran-shadow-elevated, 0 1px 2px rgba(0, 0, 0, .04)))}.ran-card{display:grid;align-content:start;gap:var(--ran-card-gap, var(--ran-space-4, 16px));height:100%;min-width:0;padding:var(--ran-card-padding, var(--ran-space-4, 16px));border-width:var(--ran-skin-border-width, 1px);border-style:var(--ran-skin-border-style, solid);border-color:var(--ran-card-border-color, var(--ran-color-border, #e4e4e8));border-radius:var(--ran-card-radius, var(--ran-radius-md));background:var(--ran-card-background, var(--ran-color-bg-elevated));box-shadow:var(--ran-card-shadow, var(--ran-shadow-elevated));box-sizing:border-box}.ran-card-header{display:flex;flex-wrap:wrap;min-width:0;align-items:flex-start;justify-content:space-between;gap:var(--ran-card-header-gap, var(--ran-space-4, 16px))}.ran-card-title-area{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.ran-card-title{margin:0;color:var(--ran-card-title-color, var(--ran-color-text));font-size:var(--ran-card-title-font-size, var(--ran-text-heading-4, 16px));font-weight:var(--ran-card-title-font-weight, var(--ran-text-heading-weight, 600));letter-spacing:var(--ran-card-title-letter-spacing, var(--ran-text-heading-tracking, -.03em));line-height:1.3}.ran-card-title:empty{display:none}.ran-card-description{margin:var(--ran-card-description-margin-top, var(--ran-space-1, 4px)) 0 0;color:var(--ran-card-description-color, var(--ran-color-text-secondary));font-size:var(--ran-card-description-font-size, var(--ran-text-copy-2, 14px));font-weight:var(--ran-card-description-font-weight, var(--ran-text-copy-weight, 400));line-height:1.5}.ran-card-description:empty{display:none}.ran-card-body,.ran-card-footer{min-width:0}`,n=typeof document>`u`,r=/["'&<>]/;function i(e){let t=``+e,n=r.exec(t);if(!n)return t;let i,a=``,o=0,s=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=`&quot;`;break;case 38:i=`&amp;`;break;case 39:i=`&#39;`;break;case 60:i=`&lt;`;break;case 62:i=`&gt;`;break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=i}return s===o?a:a+t.substring(s,o)}var a=new Map,o=`data-adopted-style`,s=(e,t,n)=>{if(typeof CSSStyleSheet>`u`)return!1;try{if(!n.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),n.set(t,e)}let r=n.get(t);return e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]),!0}catch{return!1}},c=(e,t,n=o)=>{if(t){if(typeof document>`u`){let n=e.adoptedStyleSheets;Array.isArray(n)&&!n.includes(t)&&n.push(t);return}if(!s(e,t,a)&&!e.querySelector(`style[${n}]`)){let r=document.createElement(`style`);r.setAttribute(n,``),r.textContent=t,e.appendChild(r)}}},l=0,u=1,d=2,f=null,p=null,ee=0,m=new Set,h=!1;function g(e,t){let n=t?.equals??Object.is,r={value:e,observers:new Set};return[()=>(re(r),r.value),e=>{let t=typeof e==`function`?e(r.value):e;if(!n(r.value,t)){r.value=t;for(let e of r.observers)x(e,d);ee===0&&ie()}}]}function _(e){let t=te(e,!0);return ne(t),C(t),()=>T(t)}function v(e){let t=f;f=null;try{return e()}finally{f=t}}function y(e){let t={owned:[],cleanups:[],owner:p},n=p,r=f;p=t,f=null;try{return e(()=>ae(t))}finally{p=n,f=r}}function b(e){p&&p.cleanups.push(e)}function te(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:d,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:p}}function ne(e){p&&p.owned.push(e)}function re(e){f&&(f.sources.add(e),e.observers.add(f))}function x(e,t){if(e.disposed||e.state>=t)return;let n=e.state===l;if(e.state=t,e.isEffect)m.add(e);else if(n)for(let t of e.observers)x(t,u)}function ie(){if(!(ee>0||h)){h=!0;try{for(;m.size>0;){let e=[...m];m.clear();for(let t of e)t.disposed||S(t)}}finally{h=!1}}}function S(e){if(!(e.disposed||e.state===l)){if(e.state===u)for(let t of e.sources)`fn`in t&&S(t);e.state===d&&C(e),e.state=l}}function C(e){if(e.running)throw Error(`ranview reactivity: cyclic dependency detected (a computation triggered itself).`);w(e);let t=f,n=p;f=e,p=e,e.running=!0,e.state=l;try{let t=e.fn();if(e.isEffect)typeof t==`function`&&e.cleanups.push(t);else{let n=e.value;if(e.value=t,e.observers.size>0&&!e.equals(n,t))for(let t of e.observers)x(t,d)}}finally{e.running=!1,f=t,p=n}}function w(e){for(let t of e.owned)T(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0;for(let t of e.sources)t.observers.delete(e);e.sources.clear()}function T(e){e.disposed||(e.disposed=!0,w(e),e.observers.clear())}function ae(e){for(let t of e.owned)T(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0}function E(e){return i(e)}var oe=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,se=`.#[`;function ce(e){let t=[],n=0,r=/^[a-zA-Z][\w-]*/.exec(e);for(r!==null&&(t.push(r[0]),n=r[0].length);n<e.length;){let r=e[n];if(r===`[`){let r=e.indexOf(`]`,n+1);if(r===-1)return null;t.push(e.slice(n,r+1)),n=r+1;continue}if(r!==`.`&&r!==`#`)return null;let i=n+1;for(;i<e.length&&!se.includes(e[i]);)i+=1;if(i===n+1)return null;t.push(e.slice(n,i)),n=i}return t.length>0?t:null}var le=(e,t)=>{let n=t;if(n.startsWith(`.`))return e.classList.contains(n.slice(1));if(n.startsWith(`#`))return e.getAttribute(`id`)===n.slice(1);if(n.startsWith(`[`)&&n.endsWith(`]`)){let[t,r]=n.slice(1,-1).trim().split(`=`),i=(t||``).trim();if(!i)return!1;if(r==null)return e.hasAttribute(i);let a=r.trim().replace(/^['"]|['"]$/g,``);return e.getAttribute(i)===a}return e.tagName===n.toLowerCase()},ue=(e,t)=>{let n=t.trim();if(!n)return!1;let r=ce(n);return r!==null&&r.every(t=>le(e,t))},D=(e,t,n)=>{for(let r of e)oe(r)&&(ue(r,t)&&n.push(r),D(r.childrenList,t,n))};function O(e,t,n){if(n==null)return e.push(t),t;let r=e.indexOf(n);return r===-1?e.push(t):e.splice(r,0,t),t}var k=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return O(this.childrenList,e,t)}serialize(){return this.childrenList.map(e=>typeof e==`string`?i(e):e.serialize()).join(``)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return D(this.childrenList,e,t),t}},de=new Map,A=class{tagName;attributes=new Map;_inlineStyles=null;get inlineStyles(){return this._inlineStyles??de}childrenList=[];shadowRoot=null;_textContent=null;get textContent(){return this._textContent}set textContent(e){this._textContent=e}content;eventListeners=null;_style=null;_classList=null;get style(){return this._style??={setProperty:(e,t)=>{let n=e.startsWith(`--`)?e:e.replace(/([A-Z])/g,`-$1`).toLowerCase();(this._inlineStyles??=new Map).set(n,t)},removeProperty:e=>this._inlineStyles?.delete(e)??!1}}get classList(){return this._classList??={add:(...e)=>{let t=this.attributes.get(`class`)||``,n=new Set([...t.split(` `).filter(Boolean),...e]);this.attributes.set(`class`,Array.from(n).join(` `))},remove:(...e)=>{let t=(this.attributes.get(`class`)||``).split(` `).filter(t=>!e.includes(t));this.attributes.set(`class`,t.join(` `))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get(`class`)||``).split(` `).includes(e)}}_innerHTML=``;get innerHTML(){return this._textContent===null?this._innerHTML:i(this._textContent)}set innerHTML(e){this._innerHTML=e,this._textContent=null,this.tagName===`template`&&this.content&&(this.content.childrenList=[e])}constructor(e=`div`){this.tagName=e.toLowerCase(),this.tagName===`template`&&(this.content=new k)}get hidden(){return this.hasAttribute(`hidden`)}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return O(this.childrenList,e,t)}attachShadow(e){return this.shadowRoot=new fe(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return D(this.childrenList,e,t),t}addEventListener(e,t){let n=this.eventListeners??=new Map,r=n.get(e)||new Set;r.add(t),n.set(e,r)}removeEventListener(e,t){let n=this.eventListeners?.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners?.delete(e))}dispatchEvent(e){let t=this.eventListeners?.get(e.type);if(!t||t.size===0)return!0;for(let n of t)typeof n==`function`?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize==`function`&&this._preSerialize();let t=e||this._ssrTag||this.tagName;this.shadowRoot&&!this.hasAttribute(`data-ran-dsd`)&&this.setAttribute(`data-ran-dsd`,``);let n=Array.from(this.attributes.entries()).map(([e,t])=>` ${e}="${E(t)}"`).join(``),r=this._inlineStyles?Array.from(this._inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`):``,a=r?` style="${E(r)}"`:``,o=``;return this.shadowRoot&&(o+=this.shadowRoot.serialize()),this.textContent===null?this._innerHTML?o+=this._innerHTML:o+=this.childrenList.map(e=>typeof e==`string`?i(e):(e instanceof k,e.serialize())).join(``):o+=i(this.textContent),[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`].includes(t)&&!o?`<${t}${n}${a} />`:`<${t}${n}${a}>${o}</${t}>`}},fe=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}get children(){return this.childrenList.filter(e=>typeof e!=`string`&&!(e instanceof k))}appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return O(this.childrenList,e,t)}replaceChildren(...e){this.childrenList=e.filter(e=>e!=null)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return D(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?` shadowrootdelegatesfocus`:``}>${this.adoptedStyleSheets.map(e=>`<style>${String(e).replace(/<\/style/gi,`<\\/style`)}</style>`).join(``)}${this.childrenList.map(e=>typeof e==`string`?i(e):(e instanceof k,e.serialize())).join(``)}</template>`}},j={bind(e,t){t(typeof e==`function`?e():e)},append(e,t){for(let r of t){if(r==null)continue;if(Array.isArray(r)){j.append(e,r);continue}if(typeof r==`function`){j.append(e,[r()]);continue}if(typeof r==`object`&&(`__ranFor`in r||`__ranIndex`in r))throw TypeError(`Import For and Index from the static entry when using static builders`);let t=r instanceof M?r.build():typeof r==`string`&&!n?document.createTextNode(r):r;e.appendChild(t)}}},pe=`http://www.w3.org/2000/svg`,me=new Set(`svg.circle.clipPath.defs.desc.ellipse.feBlend.feColorMatrix.feComposite.feDropShadow.feFlood.feGaussianBlur.feMerge.feMergeNode.feOffset.filter.foreignObject.g.image.line.linearGradient.marker.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.switch.symbol.text.textPath.tspan.use`.split(`.`)),M=class{runtime;el;constructor(e,t,r=j){this.runtime=r;let i=t??(me.has(e)?`http://www.w3.org/2000/svg`:void 0);this.el=n?new A(e):i?document.createElementNS(i,e):document.createElement(e)}id(e){return this.el.setAttribute(`id`,e),this}bind(e,t){this.runtime.bind(e,t)}class(e){return this.bind(e,e=>{n?this.el.attributes.set(`class`,e):this.el.setAttribute(`class`,e)}),this}addClass(...e){return e.forEach(e=>this.el.classList.add(e)),this}removeClass(...e){return e.forEach(e=>this.el.classList.remove(e)),this}attr(e,t){return this.bind(t,t=>this.el.setAttribute(e,t)),this}attrs(e){return Object.entries(e).forEach(([e,t])=>{t!=null&&this.el.setAttribute(e,String(t))}),this}boolAttr(e,t,n=``){return this.bind(t,t=>{t?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr(`part`,e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e==`string`?this.bind(t??``,t=>this.el.style.setProperty(e,t)):Object.entries(e).forEach(([e,t])=>this.el.style.setProperty(e,t)),this}cssVar(e,t){let n=e.startsWith(`--`)?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr(`role`,e)}tabIndex(e){return this.attr(`tabindex`,String(e))}label(e){return this.aria(`label`,e)}labelledBy(e){return this.aria(`labelledby`,e)}describedBy(e){return this.aria(`describedby`,e)}ariaHidden(e=!0){return this.aria(`hidden`,String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...e){return this.runtime.append(this.el,e),this}replaceChildren(...e){if(n){let e=this.el;e.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,e=>{this.el.textContent=e}),this}unsafeHtml(e){return this.bind(e,e=>{this.el.innerHTML=e}),this}ref(e){return e.current=this.el,this}shadow(e={mode:`closed`}){let t=this.el.attachShadow(e);return new he(this.el,t,e,this.runtime)}build(){return this.el}serialize(){if(n)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},he=class{runtime;root;hostEl;constructor(e,t,n,r=j){this.runtime=r,this.hostEl=e,this.root=t}children(...e){return this.runtime.append(this.root,e),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(n)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<`u`)try{let t=new CSSStyleSheet;return t.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,t],this}catch{}let t=document.createElement(`style`);return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return n?this.root.serialize():this.root.innerHTML}},N=()=>({current:null}),P=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(P(t)):e.concat(t),[]),F=e=>e==null?null:e instanceof M?e.build():typeof e==`string`?n?e:document.createTextNode(e):e,ge=(e,t)=>{if(n){L(e,[t()]);return}let r=document.createComment(``),i=document.createComment(``);e.appendChild(r),e.appendChild(i);let a=null,o=()=>{a?.(),a=null;let e=r.nextSibling;for(;e&&e!==i;){let t=e.nextSibling;e.parentNode?.removeChild(e),e=t}};_(()=>{let e=t();o();let n=document.createDocumentFragment();a=y(t=>(L(n,[e]),t)),i.parentNode?.insertBefore(n,i)}),b(()=>a?.())},_e=`__ranFor`,ve=e=>typeof e==`object`&&!!e&&e[_e]===!0,ye=(e,t,n)=>{let[r,i]=g(t),a=null,o=y(t=>{let i=F(n(e,r));return a=typeof i==`string`?document.createTextNode(i):i,t});return{node:a,index:i,dispose:o}},I=(e,t)=>{let n=e.parentNode;if(!n)return;let r=e;for(let e of t)r.nextSibling!==e&&n.insertBefore(e,r.nextSibling),r=e},be=(e,t)=>{if(n){(t.each()??[]).forEach((n,r)=>{let i=F(t.render(n,()=>r));i!=null&&e.appendChild(i)});return}let r=document.createComment(``);e.appendChild(r);let i=new Map;b(()=>{for(let e of i.values())e.dispose();i.clear()}),_(()=>{let e=t.each()??[],n=new Map,a=[];e.forEach((e,r)=>{let o=t.key(e,r);if(n.has(o)){Te()&&console.error(`[ranview For] duplicate key "${String(o)}" — keys must be unique; ignoring the duplicate item.`);return}let s=i.get(o);s?(i.delete(o),s.index(r)):s=ye(e,r,t.render),n.set(o,s),s.node&&a.push(s.node)});for(let e of i.values())e.node?.parentNode?.removeChild(e.node),e.dispose();I(r,a),i=n})},xe=`__ranIndex`,Se=e=>typeof e==`object`&&!!e&&e[xe]===!0,Ce=(e,t,n)=>{let[r,i]=g(e),a=null,o=y(e=>{let i=F(n(r,t));return a=typeof i==`string`?document.createTextNode(i):i,e});return{node:a,setItem:i,dispose:o}},we=(e,t)=>{if(n){(t.each()??[]).forEach((n,r)=>{let i=F(t.render(()=>n,r));i!=null&&e.appendChild(i)});return}let r=document.createComment(``);e.appendChild(r);let i=[];b(()=>{for(let e of i)e.dispose();i=[]}),_(()=>{let e=t.each()??[];for(let n=0;n<e.length;n++)n<i.length?i[n].setItem(e[n]):i.push(Ce(e[n],n,t.render));for(let t=i.length-1;t>=e.length;t--){let{node:e}=i[t];e?.parentNode?.removeChild(e),i[t].dispose(),i.pop()}I(r,i.map(e=>e.node).filter(e=>e!=null))})},L=(e,t)=>{n?v(()=>R(e,t)):R(e,t)},R=(e,t)=>{P(t).forEach(t=>{if(ve(t)){be(e,t);return}if(Se(t)){we(e,t);return}if(typeof t==`function`){ge(e,t);return}let n=F(t);n!=null&&e.appendChild(n)})},Te=()=>!1,Ee={bind(e,t){typeof e==`function`?n?v(()=>t(e())):_(()=>t(e())):t(e)},append:L},De=class extends M{constructor(e,t){super(e,t,Ee)}};function Oe(e){let t=t=>new e(t);return{View:t,Div:()=>t(`div`),Svg:t=>new e(t,pe),Span:()=>t(`span`),Slot:()=>t(`slot`),ButtonBuilder:()=>t(`button`),InputBuilder:()=>t(`input`),Style:()=>t(`style`),Label:()=>t(`label`),Ul:()=>t(`ul`),Li:()=>t(`li`),Section:()=>t(`section`),Article:()=>t(`article`),Nav:()=>t(`nav`),Header:()=>t(`header`),Footer:()=>t(`footer`),Main:()=>t(`main`),DeclarativeShadow:(e=`open`,n=!1)=>{let r=t(`template`);return r.attr(`shadowrootmode`,e),n&&r.attr(`shadowrootdelegatesfocus`,``),r}}}var{View:ke,Div:z,Svg:Ae,Span:je,Slot:B,ButtonBuilder:Me,InputBuilder:Ne,Style:Pe,Label:Fe,Ul:Ie,Li:Le,Section:Re,Article:ze,Nav:Be,Header:Ve,Footer:He,Main:Ue,DeclarativeShadow:We}=Oe(De),Ge=new Map;function Ke(e,t){n?(Ge.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}var qe=typeof document<`u`?HTMLElement:A,Je=`data-ranui`,V=`data-ranui-sheet`,H=(e,t)=>{if(typeof document>`u`&&t){let n=e.adoptedStyleSheets;Array.isArray(n)&&!n.includes(t)&&n.push(t)}c(e,t,Je)},U=new WeakMap,W=new Map,Ye=e=>{if(typeof CSSStyleSheet>`u`)return;let t=W.get(e);if(!t)try{let n=new CSSStyleSheet;n.replaceSync(e),t={sheet:n,users:0},W.set(e,t)}catch{return}return t.users++,t.sheet},G=e=>{let t=W.get(e);t&&--t.users===0&&W.delete(e)},Xe=(e,t)=>{if(typeof document>`u`)return;let n=U.get(e);if((n?.text??``)===t||(n?.sheet?(e.adoptedStyleSheets=e.adoptedStyleSheets.filter(e=>e!==n.sheet),G(n.text)):n&&e.querySelector(`style[${V}]`)?.remove(),U.delete(e),!t))return;let r=Ye(t);if(r)try{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}catch{G(t),r=void 0}if(!r){let n=document.createElement(`style`);n.setAttribute(V,``),n.textContent=t,e.appendChild(n)}U.set(e,{text:t,sheet:r})},K=new WeakMap,q=new WeakMap,Ze=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,Qe=`:host([hidden]){display:none}`,J=new Map,$e=e=>{let t=J.get(e);if(t!==void 0)return t;let n=`${Qe}\n${Ze}`,r=e?`${e}\n${n}`:n;return J.set(e,r),r},et=e=>{let t=q.get(e);if(t)return t;try{let t=e.attachInternals;if(typeof t!=`function`)return;let n=t.call(e);return q.set(e,n),n}catch{return}},tt=(e,t=``,n={mode:`closed`},r)=>{let i=r??et(e),a=e.shadowRoot||K.get(e)||i?.shadowRoot||e.attachShadow(n);return K.set(e,a),H(a,$e(t)),a},nt=(e,t,...n)=>{e.replaceChildren(...n),H(e,$e(t))},Y=(e,t)=>{if(e.current===null)throw Error(`ranui: ${t} is missing its .ref() on the builder`);return e.current},X=(e,t,n=``)=>e.getAttribute(t)??n,Z=(e,t,n,r={})=>{r.removeEmpty&&!n?e.removeAttribute(t):e.setAttribute(t,n??``)},Q=(e,t,n,r,i)=>{n===`sheet`&&r!==i&&Xe(t,e.getAttribute(`sheet`)||``)},$=class extends qe{_shadowDom;_titleEl;_descriptionEl;_headerEl;_footerEl;_bodyEl;_bodySlot;_bodyTextObserver;_extraSlot;static get observedAttributes(){return[`heading`,`description`,`sheet`,`hoverable`,`surface`]}constructor(){super(),this._shadowDom=tt(this,t);let e=N(),n=N(),r=N(),i=N(),a=N(),o=N(),s=N(),c=N(),l=z().class(`ran-card`).attr(`part`,`card`).children(z().class(`ran-card-header`).ref(e).attr(`part`,`header`).children(z().class(`ran-card-title-area`).children(z().class(`ran-card-title`).ref(n).attr(`part`,`title`),z().class(`ran-card-description`).ref(r).attr(`part`,`description`)),B().attr(`name`,`extra`).attr(`part`,`extra`).ref(c)),z().class(`ran-card-body`).ref(i).attr(`part`,`body`).children(B().ref(a)),z().class(`ran-card-footer`).ref(o).attr(`part`,`footer`).children(B().attr(`name`,`footer`).ref(s))).build();nt(this._shadowDom,t,l),this._headerEl=Y(e,`header`),this._titleEl=Y(n,`title`),this._descriptionEl=Y(r,`description`),this._footerEl=Y(o,`footer`),this._extraSlot=Y(c,`slot[name="extra"]`),this._extraSlot.addEventListener(`slotchange`,()=>this._syncHeader()),this._bodyEl=Y(i,`body`),this._bodyEl.style.display=`none`,this._bodySlot=Y(a,`slot:not([name])`),this._bodySlot.addEventListener(`slotchange`,()=>this._syncBody()),this._footerEl.style.display=`none`;let u=Y(s,`slot[name="footer"]`);u.addEventListener(`slotchange`,()=>{this._footerEl.style.display=u.assignedElements().length>0?``:`none`})}get heading(){return X(this,`heading`)}set heading(e){Z(this,`heading`,e)}get description(){return X(this,`description`)}set description(e){Z(this,`description`,e)}get sheet(){return X(this,`sheet`)}set sheet(e){Z(this,`sheet`,e)}get surface(){return X(this,`surface`)}set surface(e){Z(this,`surface`,e,{removeEmpty:!0})}get hoverable(){return this.hasAttribute(`hoverable`)}set hoverable(e){e?this.setAttribute(`hoverable`,``):this.removeAttribute(`hoverable`)}_syncTitle(){this._titleEl.textContent=this.getAttribute(`heading`)??``,this._syncHeader()}_syncDescription(){this._descriptionEl.textContent=this.getAttribute(`description`)??``,this._syncHeader()}_syncHeader(){let e=this._titleEl.textContent?.trim()||this._descriptionEl.textContent?.trim()||this._extraSlot.assignedElements().length>0;this._headerEl.style.display=e?``:`none`}_syncBody(){let e=this._bodySlot.assignedNodes({flatten:!0}).some(e=>e.nodeType===Node.ELEMENT_NODE||e.textContent?.trim());this._bodyEl.style.display=e?``:`none`}connectedCallback(){typeof MutationObserver<`u`&&(this._bodyTextObserver??=new MutationObserver(()=>this._syncBody()),this._bodyTextObserver.observe(this,{characterData:!0,subtree:!0})),this._syncTitle(),this._syncDescription(),Q(this,this._shadowDom,`sheet`,null,this.sheet)}disconnectedCallback(){this._bodyTextObserver?.disconnect()}attributeChangedCallback(e,t,n){t!==n&&(e===`heading`&&this._syncTitle(),e===`description`&&this._syncDescription(),e===`sheet`&&Q(this,this._shadowDom,e,t,n))}};return Ke(`r-card`,$),e.Card=$,e.default=$,e})({});
@@ -0,0 +1 @@
1
+ var ranui_checkbox=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=(e,t)=>{if(typeof document>`u`)return;let n=e.classList;n.contains(t)||n.add(t)},n=(e,t)=>{if(typeof document>`u`)return;let n=e.classList;n.contains(t)&&n.remove(t)},r=/["'&<>]/;function i(e){let t=``+e,n=r.exec(t);if(!n)return t;let i,a=``,o=0,s=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=`&quot;`;break;case 38:i=`&amp;`;break;case 39:i=`&#39;`;break;case 60:i=`&lt;`;break;case 62:i=`&gt;`;break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=i}return s===o?a:a+t.substring(s,o)}var a=class{ac=null;get signal(){return this.ac??=new AbortController,this.ac.signal}on(e,t,n,r){return e.addEventListener(t,n,{...r,signal:this.signal}),this}delegate(e,t,n,r,i){return e.addEventListener(n,n=>{let i=n.target?.closest(t);i&&e.contains(i)&&r(n,i)},{...i,signal:this.signal}),this}abort(){this.ac?.abort(),this.ac=null}},o=new Map,s=`data-adopted-style`,c=(e,t,n)=>{if(typeof CSSStyleSheet>`u`)return!1;try{if(!n.has(t)){let e=new CSSStyleSheet;e.replaceSync(t),n.set(t,e)}let r=n.get(t);return e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]),!0}catch{return!1}},l=(e,t,n=s)=>{if(t){if(typeof document>`u`){let n=e.adoptedStyleSheets;Array.isArray(n)&&!n.includes(t)&&n.push(t);return}if(!c(e,t,o)&&!e.querySelector(`style[${n}]`)){let r=document.createElement(`style`);r.setAttribute(n,``),r.textContent=t,e.appendChild(r)}}};Object.freeze({});var ee=null;function u(){return ee}var d=typeof document>`u`,f=0,te=1,p=2,m=null,h=null,g=0,_=new Set,v=!1;function y(e,t){let n=t?.equals??Object.is,r={value:e,observers:new Set};return[()=>(ie(r),r.value),e=>{let t=typeof e==`function`?e(r.value):e;if(!n(r.value,t)){r.value=t;for(let e of r.observers)w(e,p);g===0&&ae()}}]}function b(e){let t=ne(e,!0);return re(t),E(t),()=>D(t)}function x(e){let t=m;m=null;try{return e()}finally{m=t}}function S(e){let t={owned:[],cleanups:[],owner:h},n=h,r=m;h=t,m=null;try{return e(()=>se(t))}finally{h=n,m=r}}function C(e){h&&h.cleanups.push(e)}function ne(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:p,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:h}}function re(e){h&&h.owned.push(e)}function ie(e){m&&(m.sources.add(e),e.observers.add(m))}function w(e,t){if(e.disposed||e.state>=t)return;let n=e.state===f;if(e.state=t,e.isEffect)_.add(e);else if(n)for(let t of e.observers)w(t,te)}function ae(){if(!(g>0||v)){v=!0;try{for(;_.size>0;){let e=[..._];_.clear();for(let t of e)t.disposed||T(t)}}finally{v=!1}}}function T(e){if(!(e.disposed||e.state===f)){if(e.state===te)for(let t of e.sources)`fn`in t&&T(t);e.state===p&&E(e),e.state=f}}function E(e){if(e.running)throw Error(`ranview reactivity: cyclic dependency detected (a computation triggered itself).`);oe(e);let t=m,n=h;m=e,h=e,e.running=!0,e.state=f;try{let t=e.fn();if(e.isEffect)typeof t==`function`&&e.cleanups.push(t);else{let n=e.value;if(e.value=t,e.observers.size>0&&!e.equals(n,t))for(let t of e.observers)w(t,p)}}finally{e.running=!1,m=t,h=n}}function oe(e){for(let t of e.owned)D(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0;for(let t of e.sources)t.observers.delete(e);e.sources.clear()}function D(e){e.disposed||(e.disposed=!0,oe(e),e.observers.clear())}function se(e){for(let t of e.owned)D(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0}function O(e){return i(e)}var ce=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,le=`.#[`;function ue(e){let t=[],n=0,r=/^[a-zA-Z][\w-]*/.exec(e);for(r!==null&&(t.push(r[0]),n=r[0].length);n<e.length;){let r=e[n];if(r===`[`){let r=e.indexOf(`]`,n+1);if(r===-1)return null;t.push(e.slice(n,r+1)),n=r+1;continue}if(r!==`.`&&r!==`#`)return null;let i=n+1;for(;i<e.length&&!le.includes(e[i]);)i+=1;if(i===n+1)return null;t.push(e.slice(n,i)),n=i}return t.length>0?t:null}var de=(e,t)=>{let n=t;if(n.startsWith(`.`))return e.classList.contains(n.slice(1));if(n.startsWith(`#`))return e.getAttribute(`id`)===n.slice(1);if(n.startsWith(`[`)&&n.endsWith(`]`)){let[t,r]=n.slice(1,-1).trim().split(`=`),i=(t||``).trim();if(!i)return!1;if(r==null)return e.hasAttribute(i);let a=r.trim().replace(/^['"]|['"]$/g,``);return e.getAttribute(i)===a}return e.tagName===n.toLowerCase()},fe=(e,t)=>{let n=t.trim();if(!n)return!1;let r=ue(n);return r!==null&&r.every(t=>de(e,t))},k=(e,t,n)=>{for(let r of e)ce(r)&&(fe(r,t)&&n.push(r),k(r.childrenList,t,n))};function A(e,t,n){if(n==null)return e.push(t),t;let r=e.indexOf(n);return r===-1?e.push(t):e.splice(r,0,t),t}var j=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return A(this.childrenList,e,t)}serialize(){return this.childrenList.map(e=>typeof e==`string`?i(e):e.serialize()).join(``)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return k(this.childrenList,e,t),t}},pe=new Map,me=class{tagName;attributes=new Map;_inlineStyles=null;get inlineStyles(){return this._inlineStyles??pe}childrenList=[];shadowRoot=null;_textContent=null;get textContent(){return this._textContent}set textContent(e){this._textContent=e}content;eventListeners=null;_style=null;_classList=null;get style(){return this._style??={setProperty:(e,t)=>{let n=e.startsWith(`--`)?e:e.replace(/([A-Z])/g,`-$1`).toLowerCase();(this._inlineStyles??=new Map).set(n,t)},removeProperty:e=>this._inlineStyles?.delete(e)??!1}}get classList(){return this._classList??={add:(...e)=>{let t=this.attributes.get(`class`)||``,n=new Set([...t.split(` `).filter(Boolean),...e]);this.attributes.set(`class`,Array.from(n).join(` `))},remove:(...e)=>{let t=(this.attributes.get(`class`)||``).split(` `).filter(t=>!e.includes(t));this.attributes.set(`class`,t.join(` `))},toggle:e=>{this.classList.contains(e)?this.classList.remove(e):this.classList.add(e)},contains:e=>(this.attributes.get(`class`)||``).split(` `).includes(e)}}_innerHTML=``;get innerHTML(){return this._textContent===null?this._innerHTML:i(this._textContent)}set innerHTML(e){this._innerHTML=e,this._textContent=null,this.tagName===`template`&&this.content&&(this.content.childrenList=[e])}constructor(e=`div`){this.tagName=e.toLowerCase(),this.tagName===`template`&&(this.content=new j)}get hidden(){return this.hasAttribute(`hidden`)}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)||null}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return A(this.childrenList,e,t)}attachShadow(e){return this.shadowRoot=new he(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return k(this.childrenList,e,t),t}addEventListener(e,t){let n=this.eventListeners??=new Map,r=n.get(e)||new Set;r.add(t),n.set(e,r)}removeEventListener(e,t){let n=this.eventListeners?.get(e);n&&(n.delete(t),n.size===0&&this.eventListeners?.delete(e))}dispatchEvent(e){let t=this.eventListeners?.get(e.type);if(!t||t.size===0)return!0;for(let n of t)typeof n==`function`?n.call(this,e):n.handleEvent(e);return!e.defaultPrevented}serialize(e){typeof this._preSerialize==`function`&&this._preSerialize();let t=e||this._ssrTag||this.tagName;this.shadowRoot&&!this.hasAttribute(`data-ran-dsd`)&&this.setAttribute(`data-ran-dsd`,``);let n=Array.from(this.attributes.entries()).map(([e,t])=>` ${e}="${O(t)}"`).join(``),r=this._inlineStyles?Array.from(this._inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`):``,a=r?` style="${O(r)}"`:``,o=``;return this.shadowRoot&&(o+=this.shadowRoot.serialize()),this.textContent===null?this._innerHTML?o+=this._innerHTML:o+=this.childrenList.map(e=>typeof e==`string`?i(e):(e instanceof j,e.serialize())).join(``):o+=i(this.textContent),[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`].includes(t)&&!o?`<${t}${n}${a} />`:`<${t}${n}${a}>${o}</${t}>`}},he=class{host;options;childrenList=[];adoptedStyleSheets=[];constructor(e,t){this.host=e,this.options=t}get children(){return this.childrenList.filter(e=>typeof e!=`string`&&!(e instanceof j))}appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return A(this.childrenList,e,t)}replaceChildren(...e){this.childrenList=e.filter(e=>e!=null)}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return k(this.childrenList,e,t),t}serialize(){return`<template shadowrootmode="${this.options.mode}"${this.options.delegatesFocus?` shadowrootdelegatesfocus`:``}>${this.adoptedStyleSheets.map(e=>`<style>${String(e).replace(/<\/style/gi,`<\\/style`)}</style>`).join(``)}${this.childrenList.map(e=>typeof e==`string`?i(e):(e instanceof j,e.serialize())).join(``)}</template>`}},M={bind(e,t){t(typeof e==`function`?e():e)},append(e,t){for(let n of t){if(n==null)continue;if(Array.isArray(n)){M.append(e,n);continue}if(typeof n==`function`){M.append(e,[n()]);continue}if(typeof n==`object`&&(`__ranFor`in n||`__ranIndex`in n))throw TypeError(`Import For and Index from the static entry when using static builders`);let t=n instanceof N?n.build():typeof n==`string`&&!d?document.createTextNode(n):n;e.appendChild(t)}}},ge=`http://www.w3.org/2000/svg`,_e=new Set(`svg.circle.clipPath.defs.desc.ellipse.feBlend.feColorMatrix.feComposite.feDropShadow.feFlood.feGaussianBlur.feMerge.feMergeNode.feOffset.filter.foreignObject.g.image.line.linearGradient.marker.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.switch.symbol.text.textPath.tspan.use`.split(`.`)),N=class{runtime;el;constructor(e,t,n=M){this.runtime=n;let r=t??(_e.has(e)?`http://www.w3.org/2000/svg`:void 0);this.el=d?new me(e):r?document.createElementNS(r,e):document.createElement(e)}id(e){return this.el.setAttribute(`id`,e),this}bind(e,t){this.runtime.bind(e,t)}class(e){return this.bind(e,e=>{d?this.el.attributes.set(`class`,e):this.el.setAttribute(`class`,e)}),this}addClass(...e){return e.forEach(e=>this.el.classList.add(e)),this}removeClass(...e){return e.forEach(e=>this.el.classList.remove(e)),this}attr(e,t){return this.bind(t,t=>this.el.setAttribute(e,t)),this}attrs(e){return Object.entries(e).forEach(([e,t])=>{t!=null&&this.el.setAttribute(e,String(t))}),this}boolAttr(e,t,n=``){return this.bind(t,t=>{t?this.el.setAttribute(e,n):this.el.removeAttribute(e)}),this}part(e){return this.attr(`part`,e)}data(e,t){return this.attr(`data-${e}`,t)}style(e,t){return typeof e==`string`?this.bind(t??``,t=>this.el.style.setProperty(e,t)):Object.entries(e).forEach(([e,t])=>this.el.style.setProperty(e,t)),this}cssVar(e,t){let n=e.startsWith(`--`)?e:`--${e}`;return this.style(n,t)}aria(e,t){return this.attr(`aria-${e}`,t)}role(e){return this.attr(`role`,e)}tabIndex(e){return this.attr(`tabindex`,String(e))}label(e){return this.aria(`label`,e)}labelledBy(e){return this.aria(`labelledby`,e)}describedBy(e){return this.aria(`describedby`,e)}ariaHidden(e=!0){return this.aria(`hidden`,String(e))}on(e,t,n){return this.el.addEventListener(e,t,n),this}listen(e,t,n,r){return e.on(this.el,t,n,r),this}delegate(e,t,n,r,i){return e.delegate(this.el,t,n,r,i),this}children(...e){return this.runtime.append(this.el,e),this}replaceChildren(...e){if(d){let e=this.el;e.childrenList=[]}else this.el.replaceChildren();return this.children(...e)}text(e){return this.bind(e,e=>{this.el.textContent=e}),this}unsafeHtml(e){return this.bind(e,e=>{this.el.innerHTML=e}),this}ref(e){return e.current=this.el,this}shadow(e={mode:`closed`}){let t=this.el.attachShadow(e);return new ve(this.el,t,e,this.runtime)}build(){return this.el}serialize(){if(d)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},ve=class{runtime;root;hostEl;constructor(e,t,n,r=M){this.runtime=r,this.hostEl=e,this.root=t}children(...e){return this.runtime.append(this.root,e),this}adoptSheet(...e){return this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,...e],this}css(e){if(d)return this.root.adoptedStyleSheets.push(e),this;if(typeof CSSStyleSheet<`u`)try{let t=new CSSStyleSheet;return t.replaceSync(e),this.root.adoptedStyleSheets=[...this.root.adoptedStyleSheets,t],this}catch{}let t=document.createElement(`style`);return t.textContent=e,this.root.appendChild(t),this}done(){return{host:this.hostEl,shadow:this.root}}serialize(){return d?this.root.serialize():this.root.innerHTML}},P=()=>({current:null}),F=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(F(t)):e.concat(t),[]),I=e=>e==null?null:e instanceof N?e.build():typeof e==`string`?d?e:document.createTextNode(e):e,ye=(e,t)=>{if(d){R(e,[t()]);return}let n=document.createComment(``),r=document.createComment(``);e.appendChild(n),e.appendChild(r);let i=null,a=()=>{i?.(),i=null;let e=n.nextSibling;for(;e&&e!==r;){let t=e.nextSibling;e.parentNode?.removeChild(e),e=t}};b(()=>{let e=t();a();let n=document.createDocumentFragment();i=S(t=>(R(n,[e]),t)),r.parentNode?.insertBefore(n,r)}),C(()=>i?.())},be=`__ranFor`,xe=e=>typeof e==`object`&&!!e&&e[be]===!0,Se=(e,t,n)=>{let[r,i]=y(t),a=null,o=S(t=>{let i=I(n(e,r));return a=typeof i==`string`?document.createTextNode(i):i,t});return{node:a,index:i,dispose:o}},L=(e,t)=>{let n=e.parentNode;if(!n)return;let r=e;for(let e of t)r.nextSibling!==e&&n.insertBefore(e,r.nextSibling),r=e},Ce=(e,t)=>{if(d){(t.each()??[]).forEach((n,r)=>{let i=I(t.render(n,()=>r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=new Map;C(()=>{for(let e of r.values())e.dispose();r.clear()}),b(()=>{let e=t.each()??[],i=new Map,a=[];e.forEach((e,n)=>{let o=t.key(e,n);if(i.has(o)){Oe()&&console.error(`[ranview For] duplicate key "${String(o)}" — keys must be unique; ignoring the duplicate item.`);return}let s=r.get(o);s?(r.delete(o),s.index(n)):s=Se(e,n,t.render),i.set(o,s),s.node&&a.push(s.node)});for(let e of r.values())e.node?.parentNode?.removeChild(e.node),e.dispose();L(n,a),r=i})},we=`__ranIndex`,Te=e=>typeof e==`object`&&!!e&&e[we]===!0,Ee=(e,t,n)=>{let[r,i]=y(e),a=null,o=S(e=>{let i=I(n(r,t));return a=typeof i==`string`?document.createTextNode(i):i,e});return{node:a,setItem:i,dispose:o}},De=(e,t)=>{if(d){(t.each()??[]).forEach((n,r)=>{let i=I(t.render(()=>n,r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=[];C(()=>{for(let e of r)e.dispose();r=[]}),b(()=>{let e=t.each()??[];for(let n=0;n<e.length;n++)n<r.length?r[n].setItem(e[n]):r.push(Ee(e[n],n,t.render));for(let t=r.length-1;t>=e.length;t--){let{node:e}=r[t];e?.parentNode?.removeChild(e),r[t].dispose(),r.pop()}L(n,r.map(e=>e.node).filter(e=>e!=null))})},R=(e,t)=>{d?x(()=>z(e,t)):z(e,t)},z=(e,t)=>{F(t).forEach(t=>{if(xe(t)){Ce(e,t);return}if(Te(t)){De(e,t);return}if(typeof t==`function`){ye(e,t);return}let n=I(t);n!=null&&e.appendChild(n)})},Oe=()=>!1,ke={bind(e,t){typeof e==`function`?d?x(()=>t(e())):b(()=>t(e())):t(e)},append:R},Ae=class extends N{constructor(e,t){super(e,t,ke)}};function je(e){let t=t=>new e(t);return{View:t,Div:()=>t(`div`),Svg:t=>new e(t,ge),Span:()=>t(`span`),Slot:()=>t(`slot`),ButtonBuilder:()=>t(`button`),InputBuilder:()=>t(`input`),Style:()=>t(`style`),Label:()=>t(`label`),Ul:()=>t(`ul`),Li:()=>t(`li`),Section:()=>t(`section`),Article:()=>t(`article`),Nav:()=>t(`nav`),Header:()=>t(`header`),Footer:()=>t(`footer`),Main:()=>t(`main`),DeclarativeShadow:(e=`open`,n=!1)=>{let r=t(`template`);return r.attr(`shadowrootmode`,e),n&&r.attr(`shadowrootdelegatesfocus`,``),r}}}var{View:Me,Div:B,Svg:Ne,Span:V,Slot:Pe,ButtonBuilder:Fe,InputBuilder:Ie,Style:Le,Label:Re,Ul:ze,Li:Be,Section:Ve,Article:He,Nav:Ue,Header:We,Footer:Ge,Main:Ke,DeclarativeShadow:qe}=je(Ae),H=[!1,`false`,null,void 0],Je=e=>{let t=e.hasAttribute(`disabled`),n=e.getAttribute(`disabled`);return!(!t||H.includes(n))},Ye=new Map;function Xe(e,t){d?(Ye.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}var Ze=typeof document<`u`?HTMLElement:me,Qe=`data-ranui`,U=`data-ranui-sheet`,W=(e,t)=>{if(typeof document>`u`&&t){let n=e.adoptedStyleSheets;Array.isArray(n)&&!n.includes(t)&&n.push(t)}l(e,t,Qe)},G=new WeakMap,K=new Map,$e=e=>{if(typeof CSSStyleSheet>`u`)return;let t=K.get(e);if(!t)try{let n=new CSSStyleSheet;n.replaceSync(e),t={sheet:n,users:0},K.set(e,t)}catch{return}return t.users++,t.sheet},q=e=>{let t=K.get(e);t&&--t.users===0&&K.delete(e)},et=(e,t)=>{if(typeof document>`u`)return;let n=G.get(e);if((n?.text??``)===t||(n?.sheet?(e.adoptedStyleSheets=e.adoptedStyleSheets.filter(e=>e!==n.sheet),q(n.text)):n&&e.querySelector(`style[${U}]`)?.remove(),G.delete(e),!t))return;let r=$e(t);if(r)try{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}catch{q(t),r=void 0}if(!r){let n=document.createElement(`style`);n.setAttribute(U,``),n.textContent=t,e.appendChild(n)}G.set(e,{text:t,sheet:r})},J=new WeakMap,Y=new WeakMap,tt=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,nt=`:host([hidden]){display:none}`,X=new Map,Z=e=>{let t=X.get(e);if(t!==void 0)return t;let n=`${nt}\n${tt}`,r=e?`${e}\n${n}`:n;return X.set(e,r),r},rt=e=>{let t=Y.get(e);if(t)return t;try{let t=e.attachInternals;if(typeof t!=`function`)return;let n=t.call(e);return Y.set(e,n),n}catch{return}},it=(e,t=``,n={mode:`closed`},r)=>{let i=r??rt(e),a=e.shadowRoot||J.get(e)||i?.shadowRoot||e.attachShadow(n);return J.set(e,a),W(a,Z(t)),a},at=e=>{for(let t of e.children)if(t.tagName!==`STYLE`)return t;return null},ot=(e,t,...n)=>{e.replaceChildren(...n),W(e,Z(t))},st=(e,t,n)=>{let r=at(e);if(r&&n.bind(r))return;let i=n.build();ot(e,t,...Array.isArray(i)?i:[i])},Q=(e,t)=>{if(e.current===null)throw Error(`ranui: ${t} is missing its .ref() on the builder`);return e.current},ct=(e,t,n=``)=>e.getAttribute(t)??n,lt=(e,t,n,r={})=>{r.removeEmpty&&!n?e.removeAttribute(t):e.setAttribute(t,n??``)},ut=(e,t,n,r={})=>{n?(e.setAttribute(t,``),r.aria&&e.setAttribute(`aria-${r.aria}`,`true`)):(e.removeAttribute(t),r.aria&&e.removeAttribute(`aria-${r.aria}`))},dt=(e,t,n,r,i)=>{n===`sheet`&&r!==i&&et(t,e.getAttribute(`sheet`)||``)};function ft(e){return e.key===`Enter`||e.key===` `||e.key===`Spacebar`}function pt(e,t,n){let{disabled:r,required:i,isEmpty:a,message:o=`Please fill out this field.`,anchor:s,ariaTarget:c=e}=n;i?c.setAttribute(`aria-required`,`true`):c.removeAttribute(`aria-required`);let l=!r&&i&&a;l?c.setAttribute(`aria-invalid`,`true`):c.removeAttribute(`aria-invalid`),t&&(l?t.setValidity?.({valueMissing:!0},o,s):t.setValidity?.({}))}function mt(e){return e?.checkValidity?.()??!0}function ht(e){return e?.reportValidity?.()??!0}var gt=`:host{position:var(--ran-checkbox-host-position, relative);display:var(--ran-checkbox-host-display, inline-flex);margin:var(--ran-checkbox-host-margin, 0);padding:var(--ran-checkbox-host-padding, 0);box-sizing:var(--ran-checkbox-host-box-sizing, border-box);list-style:var(--ran-checkbox-host-list-style, none);outline:none}:host([disabled]:not([disabled="false"])){opacity:var(--ran-checkbox-disabled-opacity, 1)}:host([disabled]:not([disabled="false"])) .ran-checkbox-input{cursor:var(--ran-checkbox-disabled-cursor, not-allowed);pointer-events:var(--ran-checkbox-disabled-pointer-events, all)}:host([disabled]:not([disabled="false"])) .ran-checkbox-wrapper{cursor:var(--ran-checkbox-disabled-cursor, not-allowed)}:host([disabled]:not([disabled="false"])) .ran-checkbox-label{color:var(--ran-checkbox-disabled-label-color, var(--ran-color-text-disabled, #8a8a94))}:host([disabled]:not([disabled="false"])) .ran-checkbox-inner{background-color:var(--ran-checkbox-disabled-background-color, var(--ran-color-bg-subtle, #f7f7f8));border:var(--ran-checkbox-disabled-border, 1px solid var(--ran-color-border-hover, #b8b8c0))}:host([disabled]:not([disabled="false"])) .ran-checkbox-inner:after{cursor:not-allowed;pointer-events:none;opacity:var(--ran-checkbox-tick-opacity, 0);border-color:var(--ran-checkbox-disabled-tick-color, var(--ran-color-text-disabled, var(--ran-gray-700)))}:host([disabled]:not([disabled="false"])) .ran-checkbox-checked .ran-checkbox-inner:after{opacity:var(--ran-checkbox-tick-checked-opacity, 1)}:host(:focus-visible) .ran-checkbox-inner{box-shadow:var(--ran-checkbox-focus-box-shadow, var(--ran-focus-ring))}@media(hover:hover){:host(:not([disabled]:not([disabled="false"]))) .ran-checkbox-wrapper:hover .ran-checkbox:not(.ran-checkbox-checked) .ran-checkbox-inner{border-color:var(--ran-checkbox-hover-border-color, var(--ran-color-border-control-hover, #55555e))}}.ran-checkbox-wrapper{display:inline-grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:1lh auto;column-gap:var(--ran-checkbox-label-gap, 8px);max-width:100%;cursor:pointer;font-size:var(--ran-checkbox-label-font-size, var(--ran-text-label-1, 14px));line-height:var(--ran-checkbox-label-line-height, 1.5)}.ran-checkbox-wrapper>.ran-checkbox{grid-column:1;grid-row:1;align-self:center}.ran-checkbox-wrapper>.ran-checkbox-label{grid-column:2;grid-row:1 / span 2}.ran-checkbox-label{color:var(--ran-checkbox-label-color, var(--ran-color-text, rgba(0, 0, 0, .88)));font-size:var(--ran-checkbox-label-font-size, var(--ran-text-label-1, 14px));font-weight:var(--ran-checkbox-label-font-weight, var(--ran-text-label-weight, 500));font-family:var(--ran-checkbox-label-font-family, var(--ran-skin-font-family, inherit));line-height:var(--ran-checkbox-label-line-height, 1.5);-webkit-user-select:none;user-select:none}.ran-checkbox{position:var(--ran-checkbox-position, relative);display:var(--ran-checkbox-display, block);box-sizing:var(--ran-checkbox-box-sizing, border-box);margin:var(--ran-checkbox-margin, 0);width:var(--ran-checkbox-width, var(--ran-size-1, 16px));height:var(--ran-checkbox-height, var(--ran-size-1, 16px));padding:var(--ran-checkbox-padding, 0);color:var(--ran-checkbox-color, var(--ran-color-text, rgba(0, 0, 0, .88)));font-size:var(--ran-checkbox-font-size, var(--ran-text-label-1, 14px));line-height:var(--ran-checkbox-line-height, 1);list-style:var(--ran-checkbox-list-style, none);font-family:var(--ran-checkbox-font-family, var(--ran-skin-font-family, "Geist", "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"));white-space:var(--ran-checkbox-white-space, nowrap);cursor:var(--ran-checkbox-cursor, pointer);border-radius:var(--ran-checkbox-border-radius, var(--ran-radius-xs, 4px))}.ran-checkbox-input{position:var(--ran-checkbox-input-position, absolute);inset:var(--ran-checkbox-input-inset, 0);z-index:var(--ran-checkbox-input-z-index, 1);cursor:var(--ran-checkbox-input-cursor, pointer);opacity:var(--ran-checkbox-input-opacity, 0);margin:var(--ran-checkbox-input-margin, 0)}.ran-checkbox-inner{box-sizing:var(--ran-checkbox-inner-box-sizing, border-box);display:var(--ran-checkbox-inner-display, block);width:var(--ran-checkbox-inner-width, var(--ran-size-1, 16px));height:var(--ran-checkbox-inner-height, var(--ran-size-1, 16px));direction:var(--ran-checkbox-inner-direction, ltr);background-color:var(--ran-checkbox-inner-background-color, var(--ran-color-bg-elevated, #ffffff));border:var(--ran-checkbox-inner-border, 1px solid var(--ran-color-border-control, #8a8a94));border-image-source:var(--ran-checkbox-inner-border-image-source, none);border-image-slice:var(--ran-checkbox-inner-border-image-slice, 8);border-image-width:var(--ran-checkbox-inner-border-image-width, var(--ran-skin-border-image-width, 4px));border-image-outset:0;border-image-repeat:stretch;border-radius:var(--ran-checkbox-inner-border-radius, var(--ran-radius-xs, 4px));border-collapse:var(--ran-checkbox-inner-border-collapse, separate)}.ran-checkbox-inner:after{box-sizing:var(--ran-checkbox-tick-box-sizing, border-box);position:var(--ran-checkbox-tick-position, absolute);top:var(--ran-checkbox-tick-top, 50%);inset-inline-start:var(--ran-checkbox-tick-inset-inline-start, 25%);display:var(--ran-checkbox-tick-display, table);width:var(--ran-checkbox-tick-width, calc(16px / 14 * 5));height:var(--ran-checkbox-tick-height, calc(16px / 14 * 8));border:var(--ran-checkbox-tick-border, 2px solid var(--ran-color-primary-text, #ffffff));border-top:var(--ran-checkbox-tick-border-top, 0);border-inline-start:var(--ran-checkbox-tick-border-inline-start, 0);opacity:var(--ran-checkbox-tick-opacity, 0);content:var(--ran-checkbox-tick-content, "");transition:var(--ran-checkbox-tick-transition, transform .1s var(--ran-motion-ease-standard, cubic-bezier(.2, 0, 0, 1)), opacity .1s);transform:var(--ran-checkbox-tick-transform, rotate(45deg) scale(1) translate(-50%, -50%))}.ran-checkbox-checked .ran-checkbox-inner{background-color:var(--ran-checkbox-checked-background-color, var(--ran-color-primary, #111113));background-image:var(--ran-checkbox-checked-background-image, none);border:var(--ran-checkbox-checked-border, 1px solid var(--ran-color-primary, #111113));animation:var(--ran-checkbox-pop-animation, ran-checkbox-pop var(--ran-motion-duration-base, .2s) var(--ran-motion-ease-standard, cubic-bezier(.2, 0, 0, 1)))}.ran-checkbox-checked .ran-checkbox-inner:after{opacity:var(--ran-checkbox-tick-checked-opacity, 1)}@keyframes ran-checkbox-pop{0%{transform:scale(1)}45%{transform:scale(1.14)}to{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.ran-checkbox-checked .ran-checkbox-inner{animation:none}}`,_t=e=>e,vt=e=>{let t=e;for(;t;){let e=t.closest?.(`[lang]`)?.getAttribute(`lang`);if(e)return e;t=t.getRootNode?.()?.host}return``},yt=e=>{let t=(u()?.getLocale()||vt(e)||(typeof document<`u`?document.documentElement.lang:``)||`en`).toLowerCase();return/^zh[-_](hant|tw|hk|mo)\b/.test(t)?`en`:t.split(/[-_]/)[0]},bt=(e,t)=>t?e.replace(/\{(\w+)\}/g,(e,n)=>String(t[n]??e)):e,xt=(e,t,n,r)=>{let i=u(),a=`ranui.${t}`;if(i){let e=i.getMessages(i.getLocale())[a];if(e!==void 0)return bt(e,r)}return bt(e[yt(n)]?.[t]??e.en[t],r)},St=_t({en:{"checkbox.required":`Please check this box if you want to proceed.`},zh:{"checkbox.required":`如果要继续,请勾选此复选框。`},ja:{"checkbox.required":`続行するには、このボックスをオンにしてください。`},ko:{"checkbox.required":`계속하려면 이 확인란을 선택하세요.`},es:{"checkbox.required":`Marca esta casilla si quieres continuar.`},pt:{"checkbox.required":`Marque esta caixa se deseja continuar.`},de:{"checkbox.required":`Klicken Sie dieses Kästchen an, wenn Sie fortfahren wollen.`},fa:{"checkbox.required":`اگر می‌خواهید ادامه دهید، این کادر را علامت بزنید.`}}),$=class extends Ze{static formAssociated=!0;_events=new a;_internals;checkInput;checkInner;context;container;_shadowDom;static get observedAttributes(){return[`disabled`,`checked`,`value`,`required`,`sheet`]}_defaultChecked=!1;_defaultCaptured=!1;constructor(){super(),this._internals=rt(this),this._shadowDom=it(this,gt,{mode:`closed`},this._internals),st(this._shadowDom,gt,{bind:e=>this._bindPaintedTree(e),build:()=>{let e=P(),t=P(),n=P(),r=B().class(`ran-checkbox-wrapper`).part(`wrapper`).children(B().class(`ran-checkbox`).ref(e).part(`checkbox`).children(Ie().class(`ran-checkbox-input`).ref(t).part(`input`).attr(`type`,`checkbox`),V().class(`ran-checkbox-inner`).ref(n).part(`inner`)),V().class(`ran-checkbox-label`).part(`label`).children(Pe())).build();return this.container=Q(e,`ran checkbox`),this.checkInput=Q(t,`input`),this.checkInner=Q(n,`inner`),this.checkInput.setAttribute(`aria-hidden`,`true`),this.checkInput.tabIndex=-1,r}}),this.context={checked:!1}}_bindPaintedTree(e){let t=e.children.item(0),n=t?.children.item(0),r=t?.children.item(1);return!t||!n||!r||n.tagName.toLowerCase()!==`input`?!1:(this.container=t,this.checkInput=n,this.checkInner=r,this.checkInput.setAttribute(`aria-hidden`,`true`),this.checkInput.tabIndex=-1,!0)}get disabled(){return Je(this)}set disabled(e){H.includes(e)?this.removeAttribute(`disabled`):this.setAttribute(`disabled`,``)}get required(){return this.hasAttribute(`required`)}set required(e){ut(this,`required`,!(!e||e===`false`))}get value(){let e=this.getAttribute(`value`);return H.includes(e)&&(this.context.checked=!1),`${this.context.checked}`}set value(e){H.includes(e)?(this.setAttribute(`value`,`false`),this.context.checked=!1):(this.setAttribute(`value`,`true`),this.context.checked=!0),this.updateChecked()}get checked(){let e=this.getAttribute(`checked`);return H.includes(e)&&(this.context.checked=!1),this.context.checked}set checked(e){H.includes(e)?(this.setAttribute(`checked`,`false`),this.context.checked=!1):(this.setAttribute(`checked`,`true`),this.context.checked=!0),this.updateChecked()}get sheet(){return ct(this,`sheet`)}set sheet(e){lt(this,`sheet`,e)}handlerExternalCss=()=>{dt(this,this._shadowDom,`sheet`,null,this.sheet)};updateChecked=()=>{let{checked:e}=this.context;e?(this.setAttribute(`checked`,`true`),this.setAttribute(`value`,`true`),t(this.container,`ran-checkbox-checked`)):(this.setAttribute(`checked`,`false`),this.setAttribute(`value`,`false`),n(this.container,`ran-checkbox-checked`)),this.syncA11yAndForm()};syncA11yAndForm=()=>{let{checked:e}=this.context;this.setAttribute(`role`,`checkbox`),this.setAttribute(`aria-checked`,e?`true`:`false`),this.disabled?(this.setAttribute(`aria-disabled`,`true`),this.tabIndex=-1):(this.removeAttribute(`aria-disabled`),(this.tabIndex<0||!this.hasAttribute(`tabindex`))&&(this.tabIndex=0)),this._internals?.setFormValue?.(e?this.getAttribute(`value`)||`true`:null),this._updateValidity()};_updateValidity=()=>{pt(this,this._internals,{disabled:this.disabled,required:this.required,isEmpty:!this.context.checked,message:xt(St,`checkbox.required`,this),anchor:this})};checkValidity(){return mt(this._internals)}reportValidity(){return ht(this._internals)}get validity(){return this._internals?.validity}get validationMessage(){return this._internals?.validationMessage??``}formResetCallback(){this.checked=this._defaultChecked}update=()=>{this.updateChecked()};onChange=()=>{if(this.disabled)return;let{checked:e}=this.context;this.context.checked=!e,this.dispatchEvent(new CustomEvent(`change`,{detail:{checked:this.context.checked}})),this.update()};onKeydown=e=>{ft(e)&&(e.preventDefault(),this.onChange())};connectedCallback(){this.handlerExternalCss(),this._defaultCaptured||=(this._defaultChecked=this.context.checked,!0),this._events.on(this,`click`,this.onChange),this._events.on(this,`keydown`,this.onKeydown),this.syncA11yAndForm()}disconnectedCallback(){this._events.abort()}attributeChangedCallback(e,t,n){t!==n&&(e===`disabled`&&n===`false`?this.removeAttribute(`disabled`):(e===`checked`&&(this.checked=n,this.value=n),e===`value`&&(this.checked=n,this.value=n),e===`disabled`?this.syncA11yAndForm():e===`required`&&this._updateValidity(),e===`sheet`&&this.handlerExternalCss()))}};return Xe(`r-checkbox`,$),e.Checkbox=$,e.default=$,e})({});