@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,111 @@
1
+ var ranui_colorpicker=(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=(e,t=0,n=1)=>Math.min(n,Math.max(t,e))})),o,s=n((()=>{o=(e,t=500)=>{let n=null,r,i=null,a=()=>{if(n=null,!i)return;let t=i,a=r;i=null,r=void 0,e.apply(a,t)},o=function(...e){r=this,i=e,n!==null&&clearTimeout(n),n=setTimeout(a,t)};return o.cancel=()=>{n!==null&&clearTimeout(n),n=null,i=null,r=void 0},o.flush=()=>{n!==null&&(clearTimeout(n),a())},o.pending=()=>n!==null,o}})),c,l,u=n((()=>{c=()=>typeof window<`u`,l=()=>{if(!c())return!1;let e=window.navigator.userAgent;return!!/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(e)}}));function d(e){let t=``+e,n=m.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 f,p,m,ee=n((()=>{f=(e,t)=>{if(typeof document>`u`)return;let n=e.classList;n.contains(t)||n.add(t)},p=(e,t)=>{if(typeof document>`u`)return;let n=e.classList;n.contains(t)&&n.remove(t)},m=/["'&<>]/})),h,te=n((()=>{h=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}}})),ne,re,g,_,ie=n((()=>{ne=new Map,re=`data-adopted-style`,g=(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}},_=(e,t,n=re)=>{if(t){if(typeof document>`u`){let n=e.adoptedStyleSheets;Array.isArray(n)&&!n.includes(t)&&n.push(t);return}if(!g(e,t,ne)&&!e.querySelector(`style[${n}]`)){let r=document.createElement(`style`);r.setAttribute(n,``),r.textContent=t,e.appendChild(r)}}}}));function v(){return y}var y,ae=n((()=>{Object.freeze({}),y=null})),oe,se,ce,le=n((()=>{oe=(e,t,n,r)=>e===`end`?t+n-r:e===`center`?t+(n-r)/2:t,se=()=>({top:0,left:0,width:typeof window<`u`?window.innerWidth:1/0,height:typeof window<`u`?window.innerHeight:1/0}),ce=e=>{let{anchor:t,floating:n,offset:r=0,padding:i=8}=e,a=e.boundary??se(),[o,s]=e.placement.split(`-`),c=s??`start`,l=o,u=l===`top`||l===`bottom`,d=t.width>0&&t.height>0&&n.width>0&&n.height>0;if(d&&u){let e=a.top+a.height-(t.top+t.height),i=t.top-a.top;l===`bottom`&&e<n.height+r&&i>e?l=`top`:l===`top`&&i<n.height+r&&e>i&&(l=`bottom`)}else if(d){let e=a.left+a.width-(t.left+t.width),i=t.left-a.left;l===`right`&&e<n.width+r&&i>e?l=`left`:l===`left`&&i<n.width+r&&e>i&&(l=`right`)}let f=(e,t,n)=>oe(c,e,t,n),p,m;if(l===`bottom`?(p=t.top+t.height+r,m=f(t.left,t.width,n.width)):l===`top`?(p=t.top-n.height-r,m=f(t.left,t.width,n.width)):l===`right`?(p=f(t.top,t.height,n.height),m=t.left+t.width+r):(p=f(t.top,t.height,n.height),m=t.left-n.width-r),d&&u){let e=a.left+i,t=a.left+a.width-n.width-i;t>=e&&(m=Math.min(Math.max(m,e),t))}else if(d){let e=a.top+i,t=a.top+a.height-n.height-i;t>=e&&(p=Math.min(Math.max(p,e),t))}return{top:p,left:m,placement:s?`${l}-${c}`:l,side:l,align:c}}})),b,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se=n((()=>{b=Math.round,ue=function(e){let t=e[0]===`#`?e.slice(1):e;if(/^[a-f\d]{3}$/i.test(t))return[parseInt(t[0]+t[0],16),parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16)];let n=/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:null},de=function(e){let t=e.toString(16);return t.length===1?`0`+t:t},fe=function(e,t=0,n=0){return e instanceof Array&&(n=e[2],t=e[1],e=e[0]),`#`+de(e)+de(t)+de(n)},pe=function(e,t,n){let r=0,i,a;e/=255,t/=255,n/=255;let o=Math.max(e,t,n),s=Math.min(e,t,n);a=o;let c=o-s;if(i=o===0?0:c/o,o===s)r=0;else{switch(o){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return r=b(r*360),i=b(i*100),a=b(a*100),[r,i,a]},me=function(e,t,n){let r=0,i=0,a=0;if(n===0)return[0,0,0];t/=100,n/=100,e/=60;let o=Math.floor(e),s=e-o,c=n*(1-t),l=n*(1-t*s),u=n*(1-t*(1-s));return o===0?(r=n,i=u,a=c):o===1?(r=l,i=n,a=c):o===2?(r=c,i=n,a=u):o===3?(r=c,i=l,a=n):o===4?(r=u,i=c,a=n):o===5&&(r=n,i=c,a=l),r=b(r*255),i=b(i*255),a=b(a*255),[r,i,a]},he=me,ge=pe,_e=function(e){let t=ue(e);return t?pe(t[0],t[1],t[2]):null},ve=_e,ye=/^#([\da-f]{6}|[\da-f]{3})$/i,be=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/,xe=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d{1,3}(\.\d+)?)\)$/})),x=n((()=>{a(),s(),ee(),te(),ie(),le(),u(),Se()})),S,Ce=n((()=>{S=typeof document>`u`})),we=n((()=>{x()}));function Te(e,t){let n=t?.equals??Object.is,r={value:e,observers:new Set};return[()=>(je(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)Me(e,T);Be===0&&Ne()}}]}function C(e){let t=ke(e,!0);return Ae(t),Fe(t),()=>Le(t)}function Ee(e){let t=E;E=null;try{return e()}finally{E=t}}function De(e){let t={owned:[],cleanups:[],owner:D},n=D,r=E;D=t,E=null;try{return e(()=>Re(t))}finally{D=n,E=r}}function Oe(e){D&&D.cleanups.push(e)}function ke(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:T,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:D}}function Ae(e){D&&D.owned.push(e)}function je(e){E&&(E.sources.add(e),e.observers.add(E))}function Me(e,t){if(e.disposed||e.state>=t)return;let n=e.state===w;if(e.state=t,e.isEffect)O.add(e);else if(n)for(let t of e.observers)Me(t,ze)}function Ne(){if(!(Be>0||Ve)){Ve=!0;try{for(;O.size>0;){let e=[...O];O.clear();for(let t of e)t.disposed||Pe(t)}}finally{Ve=!1}}}function Pe(e){if(!(e.disposed||e.state===w)){if(e.state===ze)for(let t of e.sources)`fn`in t&&Pe(t);e.state===T&&Fe(e),e.state=w}}function Fe(e){if(e.running)throw Error(`ranview reactivity: cyclic dependency detected (a computation triggered itself).`);Ie(e);let t=E,n=D;E=e,D=e,e.running=!0,e.state=w;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)Me(t,T)}}finally{e.running=!1,E=t,D=n}}function Ie(e){for(let t of e.owned)Le(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 Le(e){e.disposed||(e.disposed=!0,Ie(e),e.observers.clear())}function Re(e){for(let t of e.owned)Le(t);e.owned.length=0;for(let t of e.cleanups)t();e.cleanups.length=0}var w,ze,T,E,D,Be,O,Ve,He=n((()=>{w=0,ze=1,T=2,E=null,D=null,Be=0,O=new Set,Ve=!1}));function Ue(e){return d(e)}var We=n((()=>{x()}));function Ge(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&&!qe.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 Ke,qe,Je,Ye,k,Xe=n((()=>{Ke=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,qe=`.#[`,Je=(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()},Ye=(e,t)=>{let n=t.trim();if(!n)return!1;let r=Ge(n);return r!==null&&r.every(t=>Je(e,t))},k=(e,t,n)=>{for(let r of e)Ke(r)&&(Ye(r,t)&&n.push(r),k(r.childrenList,t,n))}}));function Ze(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,Qe,$e,et,tt=n((()=>{We(),Xe(),A=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return Ze(this.childrenList,e,t)}serialize(){return this.childrenList.map(e=>typeof e==`string`?d(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}},Qe=new Map,$e=class{tagName;attributes=new Map;_inlineStyles=null;get inlineStyles(){return this._inlineStyles??Qe}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:d(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 Ze(this.childrenList,e,t)}attachShadow(e){return this.shadowRoot=new et(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}="${Ue(t)}"`).join(``),r=this._inlineStyles?Array.from(this._inlineStyles.entries()).map(([e,t])=>`${e}:${t}`).join(`;`):``,i=r?` style="${Ue(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`?d(e):(e instanceof A,e.serialize())).join(``):a+=d(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}>`}},et=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 Ze(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`?d(e):(e instanceof A,e.serialize())).join(``)}</template>`}}})),j,nt,rt,it,at,ot=n((()=>{Ce(),tt(),j={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)){j.append(e,n);continue}if(typeof n==`function`){j.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 it?n.build():typeof n==`string`&&!S?document.createTextNode(n):n;e.appendChild(t)}}},nt=`http://www.w3.org/2000/svg`,rt=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(`.`)),it=class{runtime;el;constructor(e,t,n=j){this.runtime=n;let r=t??(rt.has(e)?`http://www.w3.org/2000/svg`:void 0);this.el=S?new $e(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=>{S?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(S){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 at(this.el,t,e,this.runtime)}build(){return this.el}serialize(){if(S)return this.el.serialize();let e=document.createElement(`div`);return e.appendChild(this.el.cloneNode(!0)),e.innerHTML}},at=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(S)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 S?this.root.serialize():this.root.innerHTML}}})),M,st,N,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct=n((()=>{Ce(),ot(),He(),M=()=>({current:null}),st=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(st(t)):e.concat(t),[]),N=e=>e==null?null:e instanceof it?e.build():typeof e==`string`?S?e:document.createTextNode(e):e,ct=(e,t)=>{if(S){vt(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}};C(()=>{let e=t();a();let n=document.createDocumentFragment();i=De(t=>(vt(n,[e]),t)),r.parentNode?.insertBefore(n,r)}),Oe(()=>i?.())},lt=`__ranFor`,ut=e=>typeof e==`object`&&!!e&&e[lt]===!0,dt=(e,t,n)=>{let[r,i]=Te(t),a=null,o=De(t=>{let i=N(n(e,r));return a=typeof i==`string`?document.createTextNode(i):i,t});return{node:a,index:i,dispose:o}},ft=(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},pt=(e,t)=>{if(S){(t.each()??[]).forEach((n,r)=>{let i=N(t.render(n,()=>r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=new Map;Oe(()=>{for(let e of r.values())e.dispose();r.clear()}),C(()=>{let e=t.each()??[],i=new Map,a=[];e.forEach((e,n)=>{let o=t.key(e,n);if(i.has(o)){bt()&&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=dt(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();ft(n,a),r=i})},mt=`__ranIndex`,ht=e=>typeof e==`object`&&!!e&&e[mt]===!0,gt=(e,t,n)=>{let[r,i]=Te(e),a=null,o=De(e=>{let i=N(n(r,t));return a=typeof i==`string`?document.createTextNode(i):i,e});return{node:a,setItem:i,dispose:o}},_t=(e,t)=>{if(S){(t.each()??[]).forEach((n,r)=>{let i=N(t.render(()=>n,r));i!=null&&e.appendChild(i)});return}let n=document.createComment(``);e.appendChild(n);let r=[];Oe(()=>{for(let e of r)e.dispose();r=[]}),C(()=>{let e=t.each()??[];for(let n=0;n<e.length;n++)n<r.length?r[n].setItem(e[n]):r.push(gt(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()}ft(n,r.map(e=>e.node).filter(e=>e!=null))})},vt=(e,t)=>{S?Ee(()=>yt(e,t)):yt(e,t)},yt=(e,t)=>{st(t).forEach(t=>{if(ut(t)){pt(e,t);return}if(ht(t)){_t(e,t);return}if(typeof t==`function`){ct(e,t);return}let n=N(t);n!=null&&e.appendChild(n)})},bt=()=>!1,xt={bind(e,t){typeof e==`function`?S?Ee(()=>t(e())):C(()=>t(e())):t(e)},append:vt},St=class extends it{constructor(e,t){super(e,t,xt)}}}));function wt(e){let t=t=>new e(t);return{View:t,Div:()=>t(`div`),Svg:t=>new e(t,nt),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 Tt=n((()=>{ot()})),P,F,Et,Dt,I,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt=n((()=>{Ct(),Tt(),{View:P,Div:F,Svg:Et,Span:Dt,Slot:I,ButtonBuilder:Ot,InputBuilder:kt,Style:At,Label:jt,Ul:Mt,Li:Nt,Section:Pt,Article:Ft,Nav:It,Header:Lt,Footer:Rt,Main:zt,DeclarativeShadow:Bt}=wt(St)})),Ht=n((()=>{Ce(),we(),He(),We(),Xe(),tt(),Ct(),Vt()})),L=n((()=>{Ht()})),Ut=[!1,`false`,null,void 0],R=e=>{let t=e.hasAttribute(`disabled`),n=e.getAttribute(`disabled`);return!(!t||Ut.includes(n))};function z(e,t){S?(Gt.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}function Wt(e){return Gt.get(e)}var Gt,B=n((()=>{Ht(),Gt=new Map})),Kt,V,H=n((()=>{tt(),Kt=()=>typeof document<`u`?HTMLElement:$e,V=Kt()})),qt,Jt,Yt,Xt,U,Zt,Qt,$t,en=n((()=>{x(),qt=`data-ranui`,Jt=`data-ranui-sheet`,Yt=(e,t)=>{if(typeof document>`u`&&t){let n=e.adoptedStyleSheets;Array.isArray(n)&&!n.includes(t)&&n.push(t)}_(e,t,qt)},Xt=new WeakMap,U=new Map,Zt=e=>{if(typeof CSSStyleSheet>`u`)return;let t=U.get(e);if(!t)try{let n=new CSSStyleSheet;n.replaceSync(e),t={sheet:n,users:0},U.set(e,t)}catch{return}return t.users++,t.sheet},Qt=e=>{let t=U.get(e);t&&--t.users===0&&U.delete(e)},$t=(e,t)=>{if(typeof document>`u`)return;let n=Xt.get(e);if((n?.text??``)===t||(n?.sheet?(e.adoptedStyleSheets=e.adoptedStyleSheets.filter(e=>e!==n.sheet),Qt(n.text)):n&&e.querySelector(`style[${Jt}]`)?.remove(),Xt.delete(e),!t))return;let r=Zt(t);if(r)try{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}catch{Qt(t),r=void 0}if(!r){let n=document.createElement(`style`);n.setAttribute(Jt,``),n.textContent=t,e.appendChild(n)}Xt.set(e,{text:t,sheet:r})}})),tn,nn,rn,an,on,sn,cn,W,ln,G,un,K,q,J,dn,Y,X=n((()=>{en(),tn=new WeakMap,nn=new WeakMap,rn=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,an=`:host([hidden]){display:none}`,on=new Map,sn=e=>{let t=on.get(e);if(t!==void 0)return t;let n=`${an}\n${rn}`,r=e?`${e}\n${n}`:n;return on.set(e,r),r},cn=e=>{let t=nn.get(e);if(t)return t;try{let t=e.attachInternals;if(typeof t!=`function`)return;let n=t.call(e);return nn.set(e,n),n}catch{return}},W=(e,t=``,n={mode:`closed`},r)=>{let i=r??cn(e),a=e.shadowRoot||tn.get(e)||i?.shadowRoot||e.attachShadow(n);return tn.set(e,a),Yt(a,sn(t)),a},ln=e=>{for(let t of e.children)if(t.tagName!==`STYLE`)return t;return null},G=(e,t,...n)=>{e.replaceChildren(...n),Yt(e,sn(t))},un=(e,t,n)=>{let r=ln(e);if(r&&n.bind(r))return;let i=n.build();G(e,t,...Array.isArray(i)?i:[i])},K=(e,t)=>{if(e.current===null)throw Error(`ranui: ${t} is missing its .ref() on the builder`);return e.current},q=(e,t,n=``)=>e.getAttribute(t)??n,J=(e,t,n,r={})=>{r.removeEmpty&&!n?e.removeAttribute(t):e.setAttribute(t,n??``)},dn=(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}`))},Y=(e,t,n,r,i)=>{n===`sheet`&&r!==i&&$t(t,e.getAttribute(`sheet`)||``)}}));L();var fn=`:host{visibility:hidden;position:absolute}`;H(),B(),X(),z(`r-content`,class extends V{observer;_shadowDom;_slot;constructor(){super(),this._shadowDom=W(this,fn);let e=I().class(`slot`).build();G(this._shadowDom,fn,e),this._slot=e,this.observer=new MutationObserver(this.callback)}callback=e=>{let t=e.filter(e=>e.type===`childList`||e.type===`attributes`);if(!t.length)return;let n=t[t.length-1];this.dispatchEvent(new CustomEvent(`change`,{detail:{type:t.some(e=>e.type===`childList`)?`childList`:`attributes`,value:{content:this.children,mutation:n,mutations:t}}}))};connectedCallback(){this.observer.observe(this,{attributes:!0,childList:!0,subtree:!0})}disconnectedCallback(){this.observer.disconnect()}});var pn=`@keyframes ranui-dropdown-up-in{0%{transform:scaleY(.8);transform-origin:100% 100%;opacity:0}to{transform:scaleY(1);transform-origin:100% 100%;opacity:1}}@keyframes ranui-dropdown-up-out{0%{transform:scaleY(1);transform-origin:100% 100%;opacity:1}to{transform:scaleY(.8);transform-origin:100% 100%;opacity:0}}@keyframes ranui-dropdown-down-in{0%{transform:scaleY(.8);transform-origin:0% 0%;opacity:0}to{transform:scaleY(1);transform-origin:0% 0%;opacity:1}}@keyframes ranui-dropdown-down-out{0%{transform:scaleY(1);transform-origin:0% 0%;opacity:1}to{transform:scaleY(.8);transform-origin:0% 0%;opacity:0}}@keyframes ranui-dropdown-left-in{0%{transform:scaleX(.8);transform-origin:100% 0%;opacity:0}to{transform:scaleX(1);transform-origin:100% 0%;opacity:1}}@keyframes ranui-dropdown-left-out{0%{transform:scaleX(1);transform-origin:100% 0%;opacity:1}to{transform:scaleX(.8);transform-origin:100% 0%;opacity:0}}@keyframes ranui-dropdown-right-in{0%{transform:scaleX(.8);transform-origin:0% 0%;opacity:0}to{transform:scaleX(1);transform-origin:0% 0%;opacity:1}}@keyframes ranui-dropdown-right-out{0%{transform:scaleX(1);transform-origin:0% 0%;opacity:1}to{transform:scaleX(.8);transform-origin:0% 0%;opacity:0}}.ran-dropdown-down-in{animation:ranui-dropdown-down-in var(--ran-dropdown-animation-duration, var(--ran-motion-duration-base, .2s)) var(--ran-dropdown-animation-timing-function, var(--ran-motion-ease-standard, ease));animation-fill-mode:forwards}.ran-dropdown-down-out{animation:ranui-dropdown-down-out var(--ran-dropdown-animation-duration, var(--ran-motion-duration-base, .2s)) var(--ran-dropdown-animation-timing-function, var(--ran-motion-ease-standard, ease));animation-fill-mode:forwards}.ran-dropdown-up-in{animation:ranui-dropdown-up-in var(--ran-dropdown-animation-duration, var(--ran-motion-duration-base, .2s)) var(--ran-dropdown-animation-timing-function, var(--ran-motion-ease-standard, ease));animation-fill-mode:forwards}.ran-dropdown-up-out{animation:ranui-dropdown-up-out var(--ran-dropdown-animation-duration, var(--ran-motion-duration-base, .2s)) var(--ran-dropdown-animation-timing-function, var(--ran-motion-ease-standard, ease));animation-fill-mode:forwards}.ran-dropdown-left-in{animation:ranui-dropdown-left-in var(--ran-dropdown-animation-duration, var(--ran-motion-duration-base, .2s)) var(--ran-dropdown-animation-timing-function, var(--ran-motion-ease-standard, ease));animation-fill-mode:forwards}.ran-dropdown-left-out{animation:ranui-dropdown-left-out var(--ran-dropdown-animation-duration, var(--ran-motion-duration-base, .2s)) var(--ran-dropdown-animation-timing-function, var(--ran-motion-ease-standard, ease));animation-fill-mode:forwards}.ran-dropdown-right-in{animation:ranui-dropdown-right-in var(--ran-dropdown-animation-duration, var(--ran-motion-duration-base, .2s)) var(--ran-dropdown-animation-timing-function, var(--ran-motion-ease-standard, ease));animation-fill-mode:forwards}.ran-dropdown-right-out{animation:ranui-dropdown-right-out var(--ran-dropdown-animation-duration, var(--ran-motion-duration-base, .2s)) var(--ran-dropdown-animation-timing-function, var(--ran-motion-ease-standard, ease));animation-fill-mode:forwards}:host{text-align:var(--ran-dropdown-host-text-align, left);z-index:var(--ran-dropdown-host-z-index, auto)}:host([data-ran-floating]),:host([data-ran-floating]) .ranui-dropdown-container,:host([data-ran-floating]) ::slotted(*){transition-property:none!important;transition-delay:0s}:host([data-ran-floating="placing"]){opacity:0;pointer-events:none}.ranui-dropdown{position:var(--ran-dropdown-position, relative);transform-origin:var(--ran-x, 50%) var(--ran-y, 50%);box-sizing:var(--ran-dropdown-box-sizing, border-box);margin:var(--ran-dropdown-margin, 0);padding:var(--ran-dropdown-padding, 0);color:var(--ran-dropdown-color, var(--ran-color-text, rgba(0, 0, 0, .88)));font-size:var(--ran-dropdown-font-size, var(--ran-text-label-1, 14px));font-weight:var(--ran-dropdown-font-weight, var(--ran-text-label-weight, 500));list-style:var(--ran-dropdown-list-style, none);font-family:var(--ran-dropdown-font-family, var(--ran-skin-font-family, -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"));z-index:var(--ran-dropdown-z-index, var(--ran-z-dropdown, 1100));overflow:var(--ran-dropdown-overflow, hidden);font-variant:var(--ran-dropdown-font-variant, initial);background:var(--ran-dropdown-background, var(--ran-color-bg-elevated, #ffffff));border:var(--ran-dropdown-border, 1px solid var(--ran-color-border, #e4e4e8));border-radius:var(--ran-dropdown-border-radius, var(--ran-radius-md, 12px));outline:var(--ran-dropdown-outline, none);box-shadow:var(--ran-dropdown-box-shadow, var(--ran-shadow-menu, var(--ran-shadow-elevated, 0 6px 16px 0 rgba(0, 0, 0, .08), 0 3px 6px -4px rgba(0, 0, 0, .12), 0 9px 28px 8px rgba(0, 0, 0, .05))));cursor:var(--ran-dropdown-cursor, auto);width:var(--ran-dropdown-width, 100%);height:var(--ran-dropdown-height, 100%);min-height:var(--ran-dropdown-min-height, 100%);min-width:var(--ran-dropdown-min-width, 100%)}:host([role="listbox"]) .ranui-dropdown,:host([role="menu"]) .ranui-dropdown{padding:var(--ran-dropdown-padding, var(--ran-space-1, 4px))}.ranui-dropdown-container{position:var(--ran-dropdown-container-position, relative);display:var(--ran-dropdown-container-display, block);width:var(--ran-dropdown-container-width, 100%);height:var(--ran-dropdown-container-height, 100%);box-sizing:var(--ran-dropdown-container-box-sizing, border-box)}.ranui-dropdown-container .top{left:50%;transform:translate(calc(0px - var(--ran-dropdown-arrow-width, 16px) / 2 + var(--ran-dropdown-arrow-anchor-offset, 0px))) translateY(calc(-1 * var(--ran-dropdown-arrow-height, var(--ran-dropdown-arrow-width, 16px)) + var(--ran-dropdown-arrow-overlap, 2px))) rotate(0);top:0}.ranui-dropdown-container .bottom{left:50%;transform:translate(calc(0px - var(--ran-dropdown-arrow-width, 16px) / 2 + var(--ran-dropdown-arrow-anchor-offset, 0px))) translateY(var(--ran-dropdown-arrow-overlap, 2px)) rotate(180deg);top:max(0px,calc(100% - calc(var(--ran-dropdown-arrow-width, 16px) / 4)))}.ranui-dropdown-container .left,.ranui-dropdown-container .right{top:max(0px,calc(var(--ran-dropdown-arrow-anchor-height, var(--ran-dropdown-min-height, 100%)) / 2 - var(--ran-dropdown-arrow-width, 16px) / 2))}.ranui-dropdown-container .left{transform:translate(calc(0px - var(--ran-dropdown-arrow-width, 16px) + var(--ran-dropdown-arrow-overlap, 2px))) translateY(calc(var(--ran-dropdown-arrow-shape-offset, 0px) + var(--ran-dropdown-arrow-anchor-offset-y, 0px))) rotate(270deg)}.ranui-dropdown-container .right{left:100%;transform:translate(calc(0px - var(--ran-dropdown-arrow-overlap, 2px))) translateY(calc(var(--ran-dropdown-arrow-shape-offset, 0px) + var(--ran-dropdown-arrow-anchor-offset-y, 0px))) rotate(90deg)}.ranui-dropdown-arrow{position:var(--ran-dropdown-arrow-position, absolute);box-sizing:var(--ran-dropdown-arrow-box-sizing, border-box);z-index:var(--ran-dropdown-arrow-z-index, 1);display:var(--ran-dropdown-arrow-display, block);pointer-events:var(--ran-dropdown-arrow-pointer-events, none);width:var(--ran-dropdown-arrow-width, var(--ran-dropdown-arrow-width, 16px));height:var(--ran-dropdown-arrow-height, var(--ran-dropdown-arrow-width, 16px));overflow:var(--ran-dropdown-arrow-overflow, hidden)}.ranui-dropdown-arrow svg{display:block;width:100%;height:100%;overflow:visible}.ranui-dropdown-arrow path{fill:var(--ran-dropdown-arrow-fill-background, var(--ran-dropdown-arrow-tip-background, var(--ran-color-bg-elevated, #ffffff)));filter:var(--ran-dropdown-arrow-shadow, drop-shadow(0 -1px 0 var(--ran-color-border)))}::slotted(.ran-select-option-hover){position:absolute;top:0;left:0;z-index:0;width:0;height:0;border-radius:var(--ran-dropdown-option-item-border-radius, var(--ran-radius-sm, 8px));background:var(--ran-select-option-hover-background, var(--ran-surface-glass-hover));opacity:0;pointer-events:none;transition:var(--ran-select-option-hover-transition, transform var(--ran-motion-duration-slow, .28s) var(--ran-motion-ease-standard, cubic-bezier(.2, 0, 0, 1)), width var(--ran-motion-duration-slow, .28s) var(--ran-motion-ease-standard, cubic-bezier(.2, 0, 0, 1)), height var(--ran-motion-duration-slow, .28s) var(--ran-motion-ease-standard, cubic-bezier(.2, 0, 0, 1)))}::slotted(.ran-select-option-hover[data-instant]){transition:none}@media(prefers-reduced-motion:reduce){::slotted(.ran-select-option-hover){transition:none}}:host([surface="glass"]) .ranui-dropdown{background:var(--ran-surface-glass-overlay-specular, linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .12) 24%, transparent 48%), linear-gradient(0deg, rgba(255, 255, 255, .22) 0%, transparent 30%), radial-gradient(120% 55% at 50% -8%, rgba(255, 255, 255, .28), transparent 58%)),var(--ran-surface-glass-overlay-fill, rgba(255, 255, 255, .48));-webkit-backdrop-filter:blur(var(--ran-surface-glass-overlay-blur, 18px)) saturate(var(--ran-surface-glass-saturate, 180%)) brightness(var(--ran-surface-glass-brightness, 1.08));backdrop-filter:blur(var(--ran-surface-glass-overlay-blur, 18px)) saturate(var(--ran-surface-glass-saturate, 180%)) brightness(var(--ran-surface-glass-brightness, 1.08));border-color:var(--ran-surface-glass-overlay-border, rgba(255, 255, 255, .72));box-shadow:var(--ran-surface-glass-overlay-shadow, 0 18px 48px rgba(0, 0, 0, .25), 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), inset 0 -24px 48px rgba(255, 255, 255, .1))}@media(prefers-reduced-transparency:reduce){:host([surface="glass"]) .ranui-dropdown{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--ran-surface-glass-overlay-solid-fallback, var(--ran-color-bg-elevated));box-shadow:var(--ran-surface-glass-overlay-solid-shadow, var(--ran-shadow-modal))}}:host-context([data-ran-surface="glass"]):host(:not([surface="solid"])) .ranui-dropdown{background:var(--ran-surface-glass-overlay-specular, linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .12) 24%, transparent 48%), linear-gradient(0deg, rgba(255, 255, 255, .22) 0%, transparent 30%), radial-gradient(120% 55% at 50% -8%, rgba(255, 255, 255, .28), transparent 58%)),var(--ran-surface-glass-overlay-fill, rgba(255, 255, 255, .48));-webkit-backdrop-filter:blur(var(--ran-surface-glass-overlay-blur, 18px)) saturate(var(--ran-surface-glass-saturate, 180%)) brightness(var(--ran-surface-glass-brightness, 1.08));backdrop-filter:blur(var(--ran-surface-glass-overlay-blur, 18px)) saturate(var(--ran-surface-glass-saturate, 180%)) brightness(var(--ran-surface-glass-brightness, 1.08));border-color:var(--ran-surface-glass-overlay-border, rgba(255, 255, 255, .72));box-shadow:var(--ran-surface-glass-overlay-shadow, 0 18px 48px rgba(0, 0, 0, .25), 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), inset 0 -24px 48px rgba(255, 255, 255, .1))}@media(prefers-reduced-transparency:reduce){:host-context([data-ran-surface="glass"]):host(:not([surface="solid"])) .ranui-dropdown{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--ran-surface-glass-overlay-solid-fallback, var(--ran-color-bg-elevated));box-shadow:var(--ran-surface-glass-overlay-solid-shadow, var(--ran-shadow-modal))}}@media(prefers-reduced-motion:reduce){.ran-dropdown-down-in,.ran-dropdown-down-out,.ran-dropdown-up-in,.ran-dropdown-up-out,.ran-dropdown-left-in,.ran-dropdown-left-out,.ran-dropdown-right-in,.ran-dropdown-right-out{animation:none}}`;x(),H(),L(),X(),B(),z(`r-dropdown`,class extends V{dropdown;_slot;_shadowDom;arrowIcon;container;static get observedAttributes(){return[`transit`,`arrow`,`sheet`,`surface`]}constructor(){super(),this._shadowDom=W(this,pn);let e=M(),t=M(),n=F().class(`ranui-dropdown-container`).children(F().style(`-webkit-tap-highlight-color`,`transparent`).style(`outline`,`0`).class(`ranui-dropdown`).ref(e).part(`dropdown`).children(I().class(`slot`).ref(t))).build();G(this._shadowDom,pn,n),this.container=n,this.dropdown=K(e,`ranui dropdown`),this._slot=K(t,`slot`)}get transit(){return q(this,`transit`)}set transit(e){J(this,`transit`,e,{removeEmpty:!0})}get arrow(){return q(this,`arrow`)}set arrow(e){J(this,`arrow`,e,{removeEmpty:!0})}get sheet(){return q(this,`sheet`)}set sheet(e){J(this,`sheet`,e)}get surface(){return q(this,`surface`)}set surface(e){J(this,`surface`,e,{removeEmpty:!0})}handlerExternalCss=()=>{Y(this,this._shadowDom,`sheet`,null,this.sheet)};appliedTransit=``;handlerTransit=()=>{this.container&&(this.appliedTransit&&p(this.container,this.appliedTransit),this.appliedTransit=this.transit,this.appliedTransit&&f(this.container,this.appliedTransit))};getAnimationTarget=()=>this.container;handlerArrow=()=>{let e=(this.arrow||``).trim();e?(!this.arrowIcon&&this.container&&(this.arrowIcon=F().class(`ranui-dropdown-arrow`).build(),this.arrowIcon.innerHTML=`<svg viewBox="0 0 16 16" preserveAspectRatio="none" aria-hidden="true" focusable="false"><path d="M 0 16 A 4 4 0 0 0 2.82842712474619 14.82842712474619 L 6.585786437626905 11.050252531694166 A 2 2 0 0 1 9.414213562373096 11.050252531694166 L 13.17157287525381 14.82842712474619 A 4 4 0 0 0 16 16 Z"/></svg>`,this.container.appendChild(this.arrowIcon)),this.arrowIcon&&(this.arrowIcon.className=`ranui-dropdown-arrow ${e}`)):(this.arrowIcon&&this.container.contains(this.arrowIcon)&&this.container.removeChild(this.arrowIcon),this.arrowIcon=void 0)};stopPropagation=e=>{e.stopPropagation()};connectedCallback(){this.handlerExternalCss(),this.handlerTransit(),this.handlerArrow()}disconnectedCallback(){}attributeChangedCallback(e,t,n){e===`transit`&&this.handlerTransit(),e===`arrow`&&this.handlerArrow(),e===`sheet`&&t!==n&&this.handlerExternalCss()}});var mn=`:host{display:var(--ran-popover-host-display, block)}:host(:focus-visible){outline:none;border-radius:var(--ran-radius-sm, 8px);box-shadow:var(--ran-focus-ring)}.ran-popover{box-sizing:var(--ran-popover-box-sizing, border-box);position:var(--ran-popover-position, relative);display:var(--ran-popover-display, block);margin:var(--ran-popover-margin, 0);padding:var(--ran-popover-padding, 0)}.ran-popover-block{display:var(--ran-popover-block-display, block)}`,hn=e=>e.getAnimationTarget?.()??e,gn=(e,t)=>{let n=hn(e);typeof n.getAnimations!=`function`||typeof requestAnimationFrame!=`function`?t():requestAnimationFrame(()=>{let e=n.getAnimations();e.length?(async()=>{await Promise.allSettled(e.map(e=>e.finished)),t()})():t()})};le();var _n={bottom:{enter:`ran-dropdown-down-in`,exit:`ran-dropdown-down-out`},top:{enter:`ran-dropdown-up-in`,exit:`ran-dropdown-up-out`},left:{enter:`ran-dropdown-left-in`,exit:`ran-dropdown-left-out`},right:{enter:`ran-dropdown-right-in`,exit:`ran-dropdown-right-out`}},vn=Symbol.for(`ranui.floating.panel-owner`),yn=Symbol.for(`ranui.floating.panel-escape`),bn=Symbol.for(`ranui.floating.active-panels`),xn=`ranui-floating-change`,Sn=`data-ran-floating`,Cn=(e,t)=>{let n=new Set,r=e;for(;r&&!n.has(r);){if(r===t)return!0;n.add(r),r=r[vn]??r.parentNode??(r instanceof ShadowRoot?r.host:null)}return!1},wn=e=>[...e.ownerDocument[bn]??[]].filter(t=>t.isConnected&&Cn(t,e)),Tn=(e,t)=>{wn(e).at(-1)?.[yn]?.(t)},En=(e,t,n)=>{let r=e.ownerDocument;t?(e[vn]=t,e[yn]=n,(r[bn]??=new Set).add(e)):(delete e[vn],delete e[yn],r[bn]?.delete(e)),r.dispatchEvent(new Event(xn))},Dn=class{options;repositionBound=!1;outsideBinding=0;opened=!1;presence=null;repositionFrame=0;generation=0;resolvedSide;constructor(e){this.options=e}get isPositioned(){return this.presence===`open`}get floatingPresence(){return this.presence}get anchor(){return this.options.anchor?.()??this.options.host}setPresence(e,t){this.presence=t,t?e.setAttribute(Sn,t):e.removeAttribute(Sn),t===`placing`?(e.style.setProperty(`opacity`,`0`),e.style.setProperty(`pointer-events`,`none`)):(t===`open`||t===null)&&(e.style.removeProperty(`opacity`),e.style.removeProperty(`pointer-events`))}containsEvent(e){let t=this.options.panel();return e.composedPath().some(e=>{let n=e instanceof Node?e:null,r=new Set;for(;n&&!r.has(n);){if(n===this.options.host||n===t)return!0;r.add(n),n=n[vn]??n.parentNode??(n instanceof ShadowRoot?n.host:null)}return!1})}bindOutside(e,t){let{host:n}=this.options,r=n.getRootNode(),i=n.ownerDocument,a=++this.outsideBinding,o=new WeakSet;r!==i&&e.on(r,`click`,e=>{o.add(e),this.opened&&!this.containsEvent(e)&&t(e)},{capture:!0}),e.on(i,`click`,e=>{if(!this.opened)return;let s=this.containsEvent(e),c=this.generation;r===i?s||t(e):setTimeout(()=>{a===this.outsideBinding&&c===this.generation&&n.isConnected&&this.opened&&!o.has(e)&&!s&&t(e)},0)},{capture:!0})}apply=e=>{let{host:t}=this.options;t.setAttribute(`aria-expanded`,e?`true`:`false`);let n=this.options.panel();if(!n||e===this.opened)return;this.opened=e;let r=++this.generation;e?(n.style.setProperty(`z-index`,`var(--ran-dropdown-host-z-index, var(--ran-z-dropdown, 1100))`),En(n,t,this.options.onEscape),this.resolvedSide=void 0,t.dispatchEvent(new CustomEvent(`show`)),this.setPresence(n,`placing`),n.style.setProperty(`display`,`block`),this.attachReposition(),this.position(!0),gn(n,()=>{r===this.generation&&(n.removeAttribute(`transit`),t.dispatchEvent(new CustomEvent(`after-show`)))})):(En(n),this.detachReposition(),t.dispatchEvent(new CustomEvent(`hide`)),this.setPresence(n,`closing`),n.setAttribute(`transit`,_n[this.resolvedSide??this.side()].exit),gn(n,()=>{r===this.generation&&(n.style.setProperty(`display`,`none`),this.setPresence(n,null),n.removeAttribute(`transit`),t.dispatchEvent(new CustomEvent(`after-hide`)))}))};side=()=>this.options.placement().split(`-`)[0];position=(e=!1)=>{let t=this.options.panel();if(!t)return;let n=this.generation;e&&t.offsetWidth;let r=this.options.panel();r===t&&(!e||this.opened&&n===this.generation)&&this.write(r,e)};write(e,t){let{offset:n=0,containerId:r,beforeMeasure:i,measurePanel:a,adjust:o,afterPosition:s}=this.options,c=this.anchor.getBoundingClientRect();i?.(c,e);let l=this.options.host.getRootNode(),u=r?.()??``,d=u?l.getElementById?.(u)??document.getElementById(u):null,f=e.getBoundingClientRect(),p=a?.(e),m=f,ee=p?.width??f.width,h=p?.height??f.height,te=this.options.placement(),[ne,re]=te.split(`-`),g=re??`start`,_,ie,v=ne;if(d){let e=d.getBoundingClientRect();v===`top`||v===`bottom`?(_=v===`bottom`?c.bottom-e.top+n:c.top-e.top-h-n,ie=oe(g,c.left,c.width,ee)-e.left):(_=oe(g,c.top,c.height,h)-e.top,ie=v===`right`?c.right-e.left+n:c.left-e.left-ee-n)}else{let e=ce({anchor:{top:c.top,left:c.left,width:c.width,height:c.height},floating:{width:ee,height:h},placement:te,offset:n});v=e.side,_=e.top+window.scrollY,ie=e.left+window.scrollX}let y={top:_,left:ie,side:v,align:g,anchorRect:c,panelRect:m,container:d},ae=o?.(y,e);ae&&(y.top=ae.top,y.left=ae.left),this.resolvedSide=y.side,e.style.setProperty(`position`,`absolute`),e.style.setProperty(`inset`,`${y.top}px auto auto ${y.left}px`),e.style.setProperty(`--ran-x`,`${y.left}px`),e.style.setProperty(`--ran-y`,`${y.top}px`),s?.(y,e),t&&e.setAttribute(`transit`,_n[y.side].enter),(t||this.presence===`placing`)&&this.setPresence(e,`open`)}scrollIsInsidePanel=e=>{let t=this.options.panel();if(!t)return!1;if(typeof e.composedPath==`function`&&e.composedPath().includes(t))return!0;let n=e.target;return n instanceof Node&&(n===t||t.contains(n))};reposition=e=>{this.opened&&!this.repositionFrame&&(e?.type===`scroll`&&this.scrollIsInsidePanel(e)||(typeof requestAnimationFrame==`function`?this.repositionFrame=requestAnimationFrame(()=>{this.repositionFrame=0,this.opened&&this.position()}):this.position()))};attachReposition(){this.repositionBound||typeof window>`u`||(window.addEventListener(`scroll`,this.reposition,!0),window.addEventListener(`resize`,this.reposition),this.repositionBound=!0)}detachReposition(){this.repositionBound&&typeof window<`u`&&(window.removeEventListener(`scroll`,this.reposition,!0),window.removeEventListener(`resize`,this.reposition),this.repositionBound=!1)}destroy=()=>{this.generation++,this.outsideBinding++,this.opened=!1;let e=this.options.panel();e?(En(e),this.setPresence(e,null)):this.presence=null,this.repositionFrame&&typeof cancelAnimationFrame==`function`&&(cancelAnimationFrame(this.repositionFrame),this.repositionFrame=0),this.detachReposition()}};function On(e,t){let{current:n,min:r,max:i,step:a=1,coarseStep:o=a*10}=t,s=e.shiftKey?o:a;switch(e.key){case`ArrowRight`:case`ArrowUp`:return Math.min(i,n+s);case`ArrowLeft`:case`ArrowDown`:return Math.max(r,n-s);case`Home`:return r;case`End`:return i;default:return}}function kn(e){return e.key===`Enter`||e.key===` `||e.key===`Spacebar`}function An(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 jn(e){return e?.checkValidity?.()??!0}function Mn(e){return e?.reportValidity?.()??!0}x(),H(),L(),X(),B();var Nn=8,Pn=300,Z=16,Fn=`a[href], button, input:not([type="hidden"]), select, textarea, summary, [contenteditable]:not([contenteditable="false"]), [tabindex]`,In={top:`bottom`,bottom:`top`,left:`right`,right:`left`};z(`r-popover`,class extends V{_events=new h;_slot;popoverBlock;popoverContent;popoverInner;popoverInnerBlock;_shadowDom;removeTimeId;_repositionBound=!1;_returnFocus;_floating=new Dn({onEscape:e=>this._dismissFromKeyboard(e),host:this,panel:()=>this.popoverContent,anchor:()=>Array.from(this.children).find(e=>e.tagName!==`R-CONTENT`)??this,placement:()=>this.placement,offset:Nn,containerId:()=>this.getPopupContainerId,afterPosition:(e,t)=>{let{anchorRect:n,panelRect:r,side:i}=e,a=In[i];a&&t.setAttribute(`arrow`,a),t.style.setProperty(`--ran-dropdown-arrow-anchor-width`,`${n.width}px`),t.style.setProperty(`--ran-dropdown-arrow-anchor-height`,`${n.height}px`),t.style.setProperty(`--ran-dropdown-min-width`,`${r.width}px`),t.style.setProperty(`--ran-dropdown-min-height`,`${r.height}px`);let o=t.getBoundingClientRect(),s=n.left+n.width/2,c=o.left+o.width/2;t.style.setProperty(`--ran-dropdown-arrow-anchor-offset`,`${s-c}px`),t.style.setProperty(`--ran-dropdown-arrow-anchor-offset-y`,`${n.top-o.top}px`)}});static get observedAttributes(){return[`open`,`placement`,`trigger`,`sheet`]}closePopover=()=>{this.setDropdownDisplayNone()};constructor(){super(),this._shadowDom=W(this,mn);let e=M(),t=F().class(`ran-popover-block`).role(`tooltip`).children(I().class(`slot`).ref(e)).build();G(this._shadowDom,mn,t),this.popoverBlock=t,this._slot=K(e,`slot`)}get placement(){return q(this,`placement`,`top`)}set placement(e){J(this,`placement`,e)}get placementSide(){return this.placement.split(`-`)[0]}get open(){return this.hasAttribute(`open`)}set open(e){e?this.setAttribute(`open`,``):this.removeAttribute(`open`)}_applyOpen=()=>{this._floating.apply(this.open)};show=()=>{this.open=!0};hide=()=>{this.open=!1};toggle=()=>{this.open=!this.open};get trigger(){return q(this,`trigger`,`hover`)}set trigger(e){J(this,`trigger`,e)}get getPopupContainerId(){return q(this,`getPopupContainerId`)}set getPopupContainerId(e){J(this,`getPopupContainerId`,e)}get sheet(){return q(this,`sheet`)}set sheet(e){J(this,`sheet`,e)}handlerExternalCss=()=>{Y(this,this._shadowDom,`sheet`,null,this.sheet)};_ownsTabStop=!1;_hasFocusableTrigger=()=>Array.from(this.children).some(e=>e.tagName!==`R-CONTENT`&&[e,...Array.from(e.querySelectorAll(`*`))].some(e=>e instanceof HTMLElement&&(e.matches(Fn)||e.localName.includes(`-`)&&e.focus!==HTMLElement.prototype.focus)));syncTabStop=()=>{if(this._ownsTabStop&&this.getAttribute(`tabindex`)!==`0`&&(this._ownsTabStop=!1),!this.hasAttribute(`tabindex`)||this._ownsTabStop){if(this._hasFocusableTrigger())this._ownsTabStop&&this.removeAttribute(`tabindex`),this._ownsTabStop=!1;else{this.tabIndex=0,this._ownsTabStop=!0;for(let e of Array.from(this.querySelectorAll(`:not(:defined)`)))customElements.whenDefined(e.localName).then(this.syncTabStop,()=>void 0)}}};initAria=()=>{this.syncTabStop(),this.setAttribute(`aria-haspopup`,`dialog`),this.setAttribute(`aria-expanded`,`false`)};updateAriaExpanded=e=>{this.setAttribute(`aria-expanded`,e?`true`:`false`)};stopPropagation=e=>{e.stopPropagation()};createContent=e=>{if(e){if(!this.popoverContent){let e=getComputedStyle(this).getPropertyValue(`--ran-popover-content-padding`).trim()||`12px`;this.popoverContent=P(`r-dropdown`).class(`ran-popover-dropdown`).style(`display`,`none`).style(`position`,`absolute`).cssVar(`ran-dropdown-padding`,e).build(),this.popoverContent?.addEventListener(`click`,this.stopPropagation),this._events.on(this.popoverContent,`keydown`,this._dismissFromKeyboard);let t=F().children(this.popoverContent).build();this.popoverInner=t,this.trigger.includes(`hover`)&&!l()&&(this.popoverContent?.addEventListener(`mouseleave`,this.blur),this.popoverContent?.addEventListener(`mouseenter`,this.removeDropDownTimeId));let n=this.getRootNode();((n.getElementById?n.getElementById(this.getPopupContainerId):null)||document.getElementById(this.getPopupContainerId)||document.body).appendChild(t)}if(this.popoverContent&&e.length>0){this.popoverContent.innerHTML=``;let t=document.createDocumentFragment();for(let n of Array.from(e))t.appendChild(n);this.popoverContent.appendChild(t)}}};watchContent=e=>{let{value:t}=e.detail;this.createContent(t.content)};blur=o(()=>{this.removeTimeId&&this.removeDropDownTimeId(),this.removeTimeId=setTimeout(()=>{this.removeDropDownTimeId(),this.setDropdownDisplayNone()},Pn)},Z);removeDropDownTimeId=o(()=>{this.trigger.includes(`hover`)&&!l()&&(clearTimeout(this.removeTimeId),this.removeTimeId=void 0)},Z);setDropdownDisplayBlock=o(()=>{this.open=!0},Z);setDropdownDisplayNone=o(()=>{this.open=!1},Z);placementPosition=()=>{this._floating.position()};hoverPopover=e=>{e.stopPropagation(),e.preventDefault(),this.setDropdownDisplayBlock()};clickContent=e=>{e.stopPropagation()};clickPopover=e=>{e.stopPropagation(),e.preventDefault(),this.setDropdownDisplayBlock.cancel(),this.setDropdownDisplayNone.cancel(),this.blur.cancel(),clearTimeout(this.removeTimeId),this.removeTimeId=void 0;let t=!this.open;this.toggle(),t&&(this._returnFocus=e.composedPath().find(e=>e instanceof HTMLElement&&e!==this&&this.contains(e)&&e.tabIndex>=0)??Array.from(this.children).find(e=>e.tagName!==`R-CONTENT`)??this)};keydownPopover=e=>{e.defaultPrevented||e.isComposing||e.keyCode===229||(e.key===`Escape`?(this.setDropdownDisplayBlock.cancel(),this._dismissFromKeyboard(e)):kn(e)&&(e.preventDefault(),this.setDropdownDisplayBlock()))};_dismissFromKeyboard=e=>{e.key!==`Escape`||e.defaultPrevented||e.isComposing||e.keyCode===229||!this.open||(wn(this).some(e=>e!==this.popoverContent)?Tn(this,e):(e.preventDefault(),e.stopPropagation(),this.setDropdownDisplayBlock.cancel(),this.setDropdownDisplayNone.cancel(),this.blur.cancel(),clearTimeout(this.removeTimeId),this.removeTimeId=void 0,this.hide(),this._returnFocus?.isConnected&&this._returnFocus.focus({preventScroll:!0,focusVisible:!0})))};clickRemovePopover=e=>{this.hoverRemovePopover(e)};popoverTrigger=()=>{this._events.abort();for(let e of this.children)e.tagName===`R-CONTENT`&&this._events.on(e,`change`,this.watchContent);this.trigger.includes(`hover`)&&!l()&&(this._events.on(this,`mouseenter`,this.hoverPopover),this._events.on(this,`mouseleave`,this.blur)),this._events.on(this,`click`,this.clickPopover).on(this,`keydown`,this.keydownPopover),this._events.on(this._slot,`slotchange`,this.syncTabStop),this._events.on(this,`show`,()=>{let e=this.getRootNode().activeElement;this._returnFocus=e instanceof HTMLElement&&(e===this||this.contains(e))?e:Array.from(this.children).find(e=>e.tagName!==`R-CONTENT`)??this}),this.popoverContent&&this._events.on(this.popoverContent,`keydown`,this._dismissFromKeyboard),this._floating.bindOutside(this._events,this.clickRemovePopover)};hoverRemovePopover=e=>{this._floating.containsEvent(e)||this.setDropdownDisplayNone()};changePlacement=o(()=>{if(!this.getPopupContainerId&&this.open)return;let e=In[this.placementSide];e&&this.popoverContent?.setAttribute(`arrow`,e)},Z);connectedCallback(){this.initAria(),this.handlerExternalCss();for(let e of this.children)e.tagName===`R-CONTENT`&&this.createContent(e.children);this.popoverTrigger(),this.changePlacement()}disconnectedCallback(){this._events.abort(),this.setDropdownDisplayBlock.cancel(),this.setDropdownDisplayNone.cancel(),this.blur.cancel(),this.removeDropDownTimeId.cancel(),this._floating.destroy(),clearTimeout(this.removeTimeId),this.removeTimeId=void 0;let e=Array.from(this.children).find(e=>e.tagName===`R-CONTENT`);e&&this.popoverContent&&e.append(...Array.from(this.popoverContent.childNodes)),this.popoverInner?.remove(),this.popoverInner=void 0,this.popoverContent=void 0}attributeChangedCallback(e,t,n){t!==n&&(e===`trigger`&&this.popoverTrigger(),e===`placement`&&this.changePlacement(),e===`sheet`&&this.handlerExternalCss(),e===`open`&&this._applyOpen())}});var Ln=`:host{position:var(--ran-input-host-position, relative);display:var(--ran-input-host-display, flex);flex-direction:column;box-sizing:var(--ran-input-host-box-sizing, border-box)}:host([surface="glass"]:not([disabled])) .ran-input{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));border-color:var(--ran-input-glass-border-color, var(--ran-color-border-control, #8a8a94))}@media(prefers-reduced-transparency:reduce){:host([surface="glass"]:not([disabled])) .ran-input{-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))}}.ran-input-label{display:var(--ran-input-label-display, block);flex:none;margin-bottom:var(--ran-input-label-margin-bottom, var(--ran-space-1, 4px));font-size:var(--ran-input-label-font-size, var(--ran-text-label-1, 14px));font-weight:var(--ran-input-label-font-weight, var(--ran-text-label-weight, 500));color:var(--ran-input-label-color, var(--ran-color-text, #111113))}:host([status="error"]) .ran-input-label{color:var(--ran-input-label-error-color, var(--ran-color-danger-foreground, #d8001b))}:host([status="warning"]) .ran-input-label{color:var(--ran-input-label-warning-color, var(--ran-color-warning-foreground, #aa4d00))}:host([disabled]) .ran-input-label{color:var(--ran-input-label-disabled-color, var(--ran-color-text-disabled, #8a8a94));cursor:var(--ran-input-label-disabled-cursor, not-allowed)}.ran-input{box-sizing:var(--ran-input-box-sizing, border-box);position:var(--ran-input-position, relative);display:var(--ran-input-display, flex);align-items:var(--ran-input-align-items, center);width:var(--ran-input-width, 100%);flex:1 1 auto;height:var(--ran-input-height, auto);min-width:var(--ran-input-min-width, 0);padding:var(--ran-input-padding, 0px 0px 0px 4px);color:var(--ran-input-color, var(--ran-color-text, #111113));font-size:var(--ran-input-font-size, var(--ran-text-label-3, 12px));font-family:var(--ran-input-font-family, var(--ran-skin-font-family, inherit));line-height:var(--ran-input-line-height, 1.5715);background-color:var(--ran-input-background-color, var(--ran-color-bg-elevated, #ffffff));background-image:var(--ran-input-background-image, none);border:var(--ran-input-border, 1px solid var(--ran-color-border-control, #8a8a94));border-image-source:var(--ran-input-border-image-source, none);border-image-slice:var(--ran-input-border-image-slice, 8);border-image-width:var(--ran-input-border-image-width, var(--ran-skin-border-image-width, 4px));border-image-outset:0;border-image-repeat:stretch;border-radius:var(--ran-input-border-radius, var(--ran-radius-sm, 6px));transition:var(--ran-input-transition, none);min-height:var(--ran-input-min-height, var(--ran-size-7, 32px))}.ran-input .ran-icon{display:var(--ran-input-icon-display, flex);align-items:var(--ran-input-icon-align-items, center);justify-content:var(--ran-input-icon-justify-content, center)}.ran-input:not([status]):has(.ran-input-content:focus-visible){border-color:var(--ran-input-active-border-color, var(--ran-color-border-control, #8a8a94))}.ran-input:has(.ran-input-content:focus-visible){box-shadow:var(--ran-input-active-box-shadow, var(--ran-focus-ring));border-right-width:var(--ran-input-active-border-right-width, 1px);outline:var(--ran-input-active-outline, 0)}@media(hover:hover){.ran-input:hover:not([disabled]){border-color:var(--ran-input-hover-border-color, var(--ran-color-border-control-hover, #55555e));border-right-width:var(--ran-input-hover-border-right-width, 1px)}}.ran-input[status=error] .ran-input-content,.ran-input[status=warning] .ran-input-content{padding-right:var(--ran-input-content-status-padding-right, var(--ran-space-8, 32px))}.ran-input[status=error]:after,.ran-input[status=warning]:after{content:"";position:absolute;top:50%;right:var(--ran-input-status-icon-right, var(--ran-space-3, 12px));width:var(--ran-input-status-icon-width, var(--ran-size-1, 16px));height:var(--ran-input-status-icon-height, var(--ran-size-1, 16px));transform:translateY(-50%);pointer-events:none;mask-position:center;mask-repeat:no-repeat;mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain}.ran-input[status=error]{border-color:var(--ran-input-error-border-color, var(--ran-color-danger, #d70f2f))}.ran-input[status=error]:after{background-color:var(--ran-color-danger, #d70f2f);mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 100 14A7 7 0 008 1zm-.75 3.5h1.5v5h-1.5v-5zM8 11a1 1 0 110 2 1 1 0 010-2z'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 100 14A7 7 0 008 1zm-.75 3.5h1.5v5h-1.5v-5zM8 11a1 1 0 110 2 1 1 0 010-2z'/%3E%3C/svg%3E")}.ran-input[status=warning]{border-color:var(--ran-input-warning-border-color, var(--ran-color-warning, #ffae00))}.ran-input[status=warning]:after{background-color:var(--ran-color-warning, #ffae00);mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5l6.85 11.86a.5.5 0 01-.43.75H1.58a.5.5 0 01-.43-.75L8 1.5zm-.75 4.25v3.5h1.5v-3.5h-1.5zM8 10.75a1 1 0 110 2 1 1 0 010-2z'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5l6.85 11.86a.5.5 0 01-.43.75H1.58a.5.5 0 01-.43-.75L8 1.5zm-.75 4.25v3.5h1.5v-3.5h-1.5zM8 10.75a1 1 0 110 2 1 1 0 010-2z'/%3E%3C/svg%3E")}.ran-input[disabled]{color:var(--ran-input-disabled-color, var(--ran-color-text-disabled, #8a8a94));background-color:var(--ran-input-disabled-background-color, var(--ran-color-bg-subtle, #f7f7f8));border-color:var(--ran-input-disabled-border-color, var(--ran-color-border, #e4e4e8));box-shadow:var(--ran-input-disabled-box-shadow, none);cursor:var(--ran-input-disabled-cursor, not-allowed);opacity:var(--ran-input-disabled-opacity, 1)}.ran-input[disabled]>.ran-input-content{color:var(--ran-input-content-disabled-color, var(--ran-color-text-disabled, #8a8a94));background-color:var(--ran-input-content-disabled-background-color, var(--ran-color-bg-subtle, #f7f7f8));border-color:var(--ran-input-content-disabled-border-color, var(--ran-color-border, #e4e4e8));box-shadow:var(--ran-input-content-disabled-box-shadow, none);cursor:var(--ran-input-content-disabled-cursor, not-allowed);opacity:var(--ran-input-content-disabled-opacity, 1)}.ran-input-content{writing-mode:var(--ran-input-content-writing-mode, horizontal-tb);text-rendering:var(--ran-input-content-text-rendering, auto);letter-spacing:var(--ran-input-content-letter-spacing, normal);word-spacing:var(--ran-input-content-word-spacing, normal);text-transform:var(--ran-input-content-text-transform, none);text-indent:var(--ran-input-content-text-indent, 0px);text-shadow:var(--ran-input-content-text-shadow, none);text-align:var(--ran-input-content-text-align, start);cursor:var(--ran-input-content-cursor, text);touch-action:var(--ran-input-content-touch-action, manipulation);-webkit-appearance:var(--ran-input-content--webkit-appearance, none);text-overflow:var(--ran-input-content-text-overflow, ellipsis);box-sizing:var(--ran-input-content-box-sizing, border-box);margin:var(--ran-input-content-margin, 0);font-variant:var(--ran-input-content-font-variant, tabular-nums);list-style:var(--ran-input-content-list-style, none);font-feature-settings:var(--ran-input-content-font-feature-settings, "tnum");position:var(--ran-input-content-position, relative);border:var(--ran-input-content-border, none);width:var(--ran-input-content-width, 100%);height:var(--ran-input-content-height, 100%);min-height:var(--ran-input-content-min-height, var(--ran-size-6, 30px));min-width:var(--ran-input-content-min-width, 0);color:var(--ran-input-content-color, var(--ran-color-text, #111113));font-size:var(--ran-input-content-font-size, var(--ran-text-copy-2, 14px));line-height:var(--ran-input-content-line-height, 1.48);background-color:var(--ran-input-content-background-color, var(--ran-color-bg-elevated, #ffffff));background-image:var(--ran-input-content-background-image, none);transition:var(--ran-input-content-transition, none);outline:var(--ran-input-content-outline, none);border-radius:var(--ran-input-content-border-radius, var(--ran-radius-sm, 6px));padding:var(--ran-input-content-padding, 0 0 0 var(--ran-space-1, 4px));font-weight:var(--ran-input-content-font-weight, var(--ran-text-copy-weight, 400));-webkit-tap-highlight-color:transparent}.ran-input-content:focus,.ran-input-content:focus-visible,.ran-input-content:hover{border:var(--ran-input-content-hover-border, none);outline:var(--ran-input-content-hover-outline, none);box-shadow:var(--ran-input-content-hover-box-shadow, none)}.ran-input-content::placeholder{color:var(--ran-input-content-placeholder-color, var(--ran-color-text-placeholder, #6e6e78))}.ran-input-content::-webkit-search-cancel-button{display:none;-webkit-appearance:none}.ran-input-message{flex:none;margin-top:var(--ran-input-message-margin-top, 4px);font-size:var(--ran-input-message-font-size, var(--ran-text-label-3, 12px));font-weight:var(--ran-input-message-font-weight, var(--ran-text-label-weight, 500));line-height:var(--ran-input-message-line-height, 1.5);color:var(--ran-input-message-color, var(--ran-color-text-secondary, #55555e))}.ran-input-message:empty{display:none}:host([status="error"]) .ran-input-message{flex:none;color:var(--ran-input-message-error-color, var(--ran-color-danger-foreground, #d8001b))}:host([status="warning"]) .ran-input-message{flex:none;color:var(--ran-input-message-warning-color, var(--ran-color-warning-foreground, #aa4d00))}`;ae();var Rn=e=>e,zn=e=>{let t=e;for(;t;){let e=t.closest?.(`[lang]`)?.getAttribute(`lang`);if(e)return e;t=t.getRootNode?.()?.host}return``},Bn=e=>{let t=(v()?.getLocale()||zn(e)||(typeof document<`u`?document.documentElement.lang:``)||`en`).toLowerCase();return/^zh[-_](hant|tw|hk|mo)\b/.test(t)?`en`:t.split(/[-_]/)[0]},Vn=(e,t)=>t?e.replace(/\{(\w+)\}/g,(e,n)=>String(t[n]??e)):e,Q=(e,t,n,r)=>{let i=v(),a=`ranui.${t}`;if(i){let e=i.getMessages(i.getLocale())[a];if(e!==void 0)return Vn(e,r)}return Vn(e[Bn(n)]?.[t]??e.en[t],r)},Hn=Rn({en:{"input.required":`Please fill out this field.`},zh:{"input.required":`请填写此字段。`},ja:{"input.required":`このフィールドを入力してください。`},ko:{"input.required":`이 입력란을 작성하세요.`},es:{"input.required":`Completa este campo.`},pt:{"input.required":`Preencha este campo.`},de:{"input.required":`Füllen Sie dieses Feld aus.`},fa:{"input.required":`لطفاً این قسمت را پر کنید.`}}),Un,Wn=n((()=>{Un=`: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))}}`})),Gn=r({default:()=>Kn}),Kn,qn=n((()=>{Kn=`<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>`})),Jn=r({default:()=>Yn}),Yn,Xn=n((()=>{Yn=`<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>`})),Zn=r({default:()=>Qn}),Qn,$n=n((()=>{Qn=`<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>`})),er=r({default:()=>tr}),tr,nr=n((()=>{tr=`<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
+ `})),rr=r({default:()=>ir}),ir,ar=n((()=>{ir=`<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>`})),or=r({default:()=>sr}),sr,cr=n((()=>{sr=`<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>`})),lr=r({default:()=>ur}),ur,dr=n((()=>{ur=`<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>`})),fr=r({default:()=>pr}),pr,mr=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"><path d="M6 9l6 6 6-6"/></g></svg>
12
+ `})),hr=r({default:()=>gr}),gr,_r=n((()=>{gr=`<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>`})),vr=r({default:()=>yr}),yr,br=n((()=>{yr=`<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>`})),xr=r({default:()=>Sr}),Sr,Cr=n((()=>{Sr=`<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>`})),wr=r({default:()=>Tr}),Tr,Er=n((()=>{Tr=`<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>`})),Dr=r({default:()=>Or}),Or,kr=n((()=>{Or=`<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>`})),Ar=r({default:()=>jr}),jr,Mr=n((()=>{jr=`<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
+ `})),Nr=r({default:()=>Pr}),Pr,Fr=n((()=>{Pr=`<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>`})),Ir=r({default:()=>Lr}),Lr,Rr=n((()=>{Lr=`<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>`})),zr=r({default:()=>Br}),Br,Vr=n((()=>{Br=`<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>`})),Hr=r({default:()=>Ur}),Ur,Wr=n((()=>{Ur=`<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
+ `})),Gr=r({default:()=>Kr}),Kr,qr=n((()=>{Kr=`<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
+ `})),Jr=r({default:()=>Yr}),Yr,Xr=n((()=>{Yr=`<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>`})),Zr=r({default:()=>Qr}),Qr,$r=n((()=>{Qr=`<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>`})),ei=r({default:()=>ti}),ti,ni=n((()=>{ti=`<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>`})),ri=r({default:()=>ii}),ii,ai=n((()=>{ii=`<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
+ `})),oi=r({default:()=>si}),si,ci=n((()=>{si=` <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
+ `})),li=r({default:()=>ui}),ui,di=n((()=>{ui=`<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>`})),fi=r({default:()=>pi}),pi,mi=n((()=>{pi=`<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>`})),hi=r({default:()=>gi}),gi,_i=n((()=>{gi=`<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
+ `})),vi=r({default:()=>yi}),yi,bi=n((()=>{yi=`<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>`})),xi=r({default:()=>Si}),Si,Ci=n((()=>{Si=`<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
+ `})),wi=r({default:()=>Ti}),Ti,Ei=n((()=>{Ti=`<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
+ `})),Di=r({default:()=>Oi}),Oi,ki=n((()=>{Oi=`<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
+ `})),Ai=r({default:()=>ji}),ji,Mi=n((()=>{ji=`<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
+ `})),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"><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
+ `})),Ii=r({default:()=>Li}),Li,Ri=n((()=>{Li=`<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
+ `})),zi=r({default:()=>Bi}),Bi,Vi=n((()=>{Bi=`<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
+ `})),Hi=r({default:()=>Ui}),Ui,Wi=n((()=>{Ui=`<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
+ `})),Gi=r({default:()=>Ki}),Ki,qi=n((()=>{Ki=`<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>`})),Ji=r({default:()=>Yi}),Yi,Xi=n((()=>{Yi=`<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>`})),Zi=r({default:()=>Qi}),Qi,$i=n((()=>{Qi=`<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>`})),ea=r({default:()=>ta}),ta,na=n((()=>{ta=`<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
+ `})),ra=r({default:()=>ia}),ia,aa=n((()=>{ia=`<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>`})),oa=r({default:()=>sa}),sa,ca=n((()=>{sa=`<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
+ `})),la=r({default:()=>ua}),ua,da=n((()=>{ua=`<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>`})),fa=r({default:()=>pa}),pa,ma=n((()=>{pa=`<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>`})),ha=r({default:()=>ga}),ga,_a=n((()=>{ga=`<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>`})),va=r({default:()=>ya}),ya,ba=n((()=>{ya=`<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
+ `})),xa=r({default:()=>Sa}),Sa,Ca=n((()=>{Sa=`<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
+ `})),wa=r({default:()=>Ta}),Ta,Ea=n((()=>{Ta=`<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>`})),Da=r({default:()=>Oa}),Oa,ka=n((()=>{Oa=`<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>`})),Aa=r({default:()=>ja}),ja,Ma=n((()=>{ja=`<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>`})),Na=r({default:()=>Pa}),Pa,Fa=n((()=>{Pa=`<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>`})),Ia=r({default:()=>La}),La,Ra=n((()=>{La=`<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>`})),za=r({Icon:()=>Ya,RAN_ICON_NAMES:()=>Ja,registerIcon:()=>Wa,registerIcons:()=>Ga}),Ba,Va,Ha,$,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa=n((()=>{Wn(),H(),L(),B(),X(),Ba=!1,Va=new Map,Ha=!1,$=e=>/<svg[\s>]/i.test(e),Ua=e=>{if(typeof e==`string`)return $(e)?e:void 0;if(!e||typeof e!=`object`)return;let t=e,n=t.data;if(typeof n==`string`&&$(n))return n;let r=t.default;if(typeof r==`string`&&$(r))return r;if(r&&typeof r==`object`){let e=r;if(typeof e.data==`string`&&$(e.data))return e.data}},Wa=(e,t)=>{Ha=!0;let n=Ua(t);n&&(Va.set(`inline:${e}`,n),typeof window<`u`&&window.dispatchEvent(new CustomEvent(`ranui-icon-registered`,{detail:{name:e}})))},Ga=e=>{Ha=!0,Object.entries(e).forEach(([e,t])=>{Wa(e,t)})},Ka=Object.assign({"../../assets/icons/add-user.svg":()=>Promise.resolve().then(()=>(qn(),Gn)).then(e=>e.default),"../../assets/icons/arrow-down.svg":()=>Promise.resolve().then(()=>(Xn(),Jn)).then(e=>e.default),"../../assets/icons/book.svg":()=>Promise.resolve().then(()=>($n(),Zn)).then(e=>e.default),"../../assets/icons/cast.svg":()=>Promise.resolve().then(()=>(nr(),er)).then(e=>e.default),"../../assets/icons/check-circle-fill.svg":()=>Promise.resolve().then(()=>(ar(),rr)).then(e=>e.default),"../../assets/icons/check-circle.svg":()=>Promise.resolve().then(()=>(cr(),or)).then(e=>e.default),"../../assets/icons/check.svg":()=>Promise.resolve().then(()=>(dr(),lr)).then(e=>e.default),"../../assets/icons/chevron-down.svg":()=>Promise.resolve().then(()=>(mr(),fr)).then(e=>e.default),"../../assets/icons/close-circle-fill.svg":()=>Promise.resolve().then(()=>(_r(),hr)).then(e=>e.default),"../../assets/icons/close-circle.svg":()=>Promise.resolve().then(()=>(br(),vr)).then(e=>e.default),"../../assets/icons/close.svg":()=>Promise.resolve().then(()=>(Cr(),xr)).then(e=>e.default),"../../assets/icons/copy.svg":()=>Promise.resolve().then(()=>(Er(),wr)).then(e=>e.default),"../../assets/icons/download.svg":()=>Promise.resolve().then(()=>(kr(),Dr)).then(e=>e.default),"../../assets/icons/drop.svg":()=>Promise.resolve().then(()=>(Mr(),Ar)).then(e=>e.default),"../../assets/icons/eye-close.svg":()=>Promise.resolve().then(()=>(Fr(),Nr)).then(e=>e.default),"../../assets/icons/eye.svg":()=>Promise.resolve().then(()=>(Rr(),Ir)).then(e=>e.default),"../../assets/icons/fullscreen.svg":()=>Promise.resolve().then(()=>(Vr(),zr)).then(e=>e.default),"../../assets/icons/github.svg":()=>Promise.resolve().then(()=>(Wr(),Hr)).then(e=>e.default),"../../assets/icons/globe.svg":()=>Promise.resolve().then(()=>(qr(),Gr)).then(e=>e.default),"../../assets/icons/home.svg":()=>Promise.resolve().then(()=>(Xr(),Jr)).then(e=>e.default),"../../assets/icons/info-circle-fill.svg":()=>Promise.resolve().then(()=>($r(),Zr)).then(e=>e.default),"../../assets/icons/info-circle.svg":()=>Promise.resolve().then(()=>(ni(),ei)).then(e=>e.default),"../../assets/icons/issue.svg":()=>Promise.resolve().then(()=>(ai(),ri)).then(e=>e.default),"../../assets/icons/loading-scene.svg":()=>Promise.resolve().then(()=>(ci(),oi)).then(e=>e.default),"../../assets/icons/loading.svg":()=>Promise.resolve().then(()=>(di(),li)).then(e=>e.default),"../../assets/icons/lock.svg":()=>Promise.resolve().then(()=>(mi(),fi)).then(e=>e.default),"../../assets/icons/menu.svg":()=>Promise.resolve().then(()=>(_i(),hi)).then(e=>e.default),"../../assets/icons/message.svg":()=>Promise.resolve().then(()=>(bi(),vi)).then(e=>e.default),"../../assets/icons/mic-off.svg":()=>Promise.resolve().then(()=>(Ci(),xi)).then(e=>e.default),"../../assets/icons/mic.svg":()=>Promise.resolve().then(()=>(Ei(),wi)).then(e=>e.default),"../../assets/icons/more.svg":()=>Promise.resolve().then(()=>(ki(),Di)).then(e=>e.default),"../../assets/icons/pause.svg":()=>Promise.resolve().then(()=>(Mi(),Ai)).then(e=>e.default),"../../assets/icons/pencil.svg":()=>Promise.resolve().then(()=>(Fi(),Ni)).then(e=>e.default),"../../assets/icons/pip.svg":()=>Promise.resolve().then(()=>(Ri(),Ii)).then(e=>e.default),"../../assets/icons/play.svg":()=>Promise.resolve().then(()=>(Vi(),zi)).then(e=>e.default),"../../assets/icons/plus.svg":()=>Promise.resolve().then(()=>(Wi(),Hi)).then(e=>e.default),"../../assets/icons/power-off.svg":()=>Promise.resolve().then(()=>(qi(),Gi)).then(e=>e.default),"../../assets/icons/preview.svg":()=>Promise.resolve().then(()=>(Xi(),Ji)).then(e=>e.default),"../../assets/icons/refresh.svg":()=>Promise.resolve().then(()=>($i(),Zi)).then(e=>e.default),"../../assets/icons/search.svg":()=>Promise.resolve().then(()=>(na(),ea)).then(e=>e.default),"../../assets/icons/setting.svg":()=>Promise.resolve().then(()=>(aa(),ra)).then(e=>e.default),"../../assets/icons/sort.svg":()=>Promise.resolve().then(()=>(ca(),oa)).then(e=>e.default),"../../assets/icons/team.svg":()=>Promise.resolve().then(()=>(da(),la)).then(e=>e.default),"../../assets/icons/unlock.svg":()=>Promise.resolve().then(()=>(ma(),fa)).then(e=>e.default),"../../assets/icons/user.svg":()=>Promise.resolve().then(()=>(_a(),ha)).then(e=>e.default),"../../assets/icons/volume-mute.svg":()=>Promise.resolve().then(()=>(ba(),va)).then(e=>e.default),"../../assets/icons/volume.svg":()=>Promise.resolve().then(()=>(Ca(),xa)).then(e=>e.default),"../../assets/icons/warning-circle-fill.svg":()=>Promise.resolve().then(()=>(Ea(),wa)).then(e=>e.default),"../../assets/icons/warning-circle.svg":()=>Promise.resolve().then(()=>(ka(),Da)).then(e=>e.default),"../../assets/icons/without-content.svg":()=>Promise.resolve().then(()=>(Ma(),Aa)).then(e=>e.default),"../../assets/icons/zoom-in.svg":()=>Promise.resolve().then(()=>(Fa(),Na)).then(e=>e.default),"../../assets/icons/zoom-out.svg":()=>Promise.resolve().then(()=>(Ra(),Ia)).then(e=>e.default)}),qa={};for(let[e,t]of Object.entries(Ka)){let n=e.split(`/`).pop()?.replace(/\.svg$/,``);n&&(qa[n]=t)}Ja=`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(`.`),Ya=class extends V{isDev=Ba;_events=new h;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=W(this,Un),un(this._shadowDom,Un,{bind:e=>this._bindPaintedTree(e),build:()=>{let e=F().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 q(this,`name`)}set name(e){e&&this.setAttribute(`name`,e)}get size(){return q(this,`size`)}set size(e){e&&this.setAttribute(`size`,e)}get color(){return q(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 q(this,`aria-label`)}set ariaLabel(e){J(this,`aria-label`,e,{removeEmpty:!0})}get sheet(){return q(this,`sheet`)}set sheet(e){J(this,`sheet`,e)}handlerExternalCss=()=>{Y(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=Va.get(t);if(!n){let t=qa[e];if(t&&typeof document<`u`){this.lazyLoadBuiltinIcon(e,t);return}this.isDev&&Ha&&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=>{Wa(e,t)}).catch(t=>{this.isDev&&console.warn(`[ranui-icon] lazy load builtin failed: ${e}`,t)})};isSvgText=e=>$(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=P(`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())}},z(`r-icon`,Ya)}));H(),L(),X(),B();var Za=()=>{typeof document<`u`&&(typeof customElements<`u`&&customElements.get(`r-icon`)||Promise.resolve().then(()=>(Xa(),za)))},Qa=0;z(`r-input`,class extends V{static formAssociated=!0;_internals;static get observedAttributes(){return[`label`,`disabled`,`name`,`placeholder`,`type`,`icon`,`value`,`status`,`message`,`min`,`max`,`step`,`required`,`sheet`,`surface`]}_events=new h;_shadowDom;_input;_label;_inputContent;_icon;_message;_defaultValue=``;_defaultValueCaptured=!1;constructor(){super(),this._internals=cn(this),this._shadowDom=W(this,Ln,{mode:`closed`},this._internals),un(this._shadowDom,Ln,{bind:e=>this._bindPaintedTree(e),build:()=>{let e=M(),t=F().class(`ran-input`).part(`input`).children(kt().class(`ran-input-content`).ref(e).part(`content`)).build();return this._input=t,this._inputContent=K(e,`content`),this._inputContent.id||(this._inputContent.id=`ran-input-${++Qa}`),t}})}_bindPaintedTree(e){let t=e.getAttribute(`part`)||``,n=typeof e.className==`string`?e.className:``;if(!t.includes(`input`)&&!n.includes(`ran-input`))return!1;let r=null,i;for(let t of Array.from(e.children)){let e=t.tagName.toLowerCase();e===`input`?r=t:e===`r-icon`&&(i=t)}if(!r)return!1;this._input=e,this._inputContent=r,this._icon=i,this._inputContent.id||(this._inputContent.id=`ran-input-${++Qa}`);for(let t of this._shadowDom.children){if(t===e)break;t.tagName.toLowerCase()===`label`&&(this._label=t)}for(let t of this._shadowDom.children){if(t===e||t===this._label)continue;let n=t.getAttribute?.(`part`)||``;t.tagName.toLowerCase()===`div`&&n.includes(`message`)&&(this._message=t)}return!0}focus(e){this._inputContent?.focus(e)}blur(){this._inputContent?.blur()}select(){this._inputContent?.select?.()}get value(){return this.getAttribute(`value`)||``}set value(e){this._inputContent.value=e,J(this,`value`,e,{removeEmpty:!0}),this._syncValue()}get placeholder(){return this.getAttribute(`placeholder`)||``}set placeholder(e){e?this.setAttribute(`placeholder`,e):this.removeAttribute(`placeholder`)}get required(){return this.hasAttribute(`required`)}set required(e){dn(this,`required`,!(!e||e===`false`))}get disabled(){return R(this)}set disabled(e){Ut.includes(e)?(this.removeAttribute(`disabled`),this._input.removeAttribute(`disabled`),this._inputContent.removeAttribute(`disabled`)):(this.setAttribute(`disabled`,``),this._input.setAttribute(`disabled`,``),this._inputContent.setAttribute(`disabled`,``))}get label(){return this.getAttribute(`label`)||``}set label(e){this.setAttribute(`label`,e)}get status(){return this.getAttribute(`status`)||``}set status(e){e?(this.setAttribute(`status`,e),this._input.setAttribute(`status`,e)):(this.removeAttribute(`status`),this._input.removeAttribute(`status`))}get message(){return this.getAttribute(`message`)||``}set message(e){e?this.setAttribute(`message`,e):this.removeAttribute(`message`)}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get min(){return this.getAttribute(`min`)||``}set min(e){this.type===`number`&&this.setAttribute(`min`,e)}get max(){return this.getAttribute(`max`)||``}set max(e){this.type===`number`&&this.setAttribute(`max`,e)}get step(){return this.getAttribute(`step`)||``}set step(e){this.type===`number`&&this.setAttribute(`step`,e)}get icon(){return this.getAttribute(`icon`)||``}set icon(e){e?this.setAttribute(`icon`,e):this.removeAttribute(`icon`)}get type(){return this.getAttribute(`type`)||``}set type(e){e?this.setAttribute(`type`,e):this.removeAttribute(`type`)}get sheet(){return q(this,`sheet`)}set sheet(e){J(this,`sheet`,e)}get surface(){return q(this,`surface`)}set surface(e){J(this,`surface`,e,{removeEmpty:!0})}handlerExternalCss=()=>{Y(this,this._shadowDom,`sheet`,null,this.sheet)};_updateValidity=()=>{let e=this._inputContent;this.required?e.setAttribute(`aria-required`,`true`):e.removeAttribute(`aria-required`);let t=e.validity;if(!this.disabled&&(t?!t.valid:this.required&&!this.value)){e.setAttribute(`aria-invalid`,`true`);let n={};for(let e of[`badInput`,`customError`,`patternMismatch`,`rangeOverflow`,`rangeUnderflow`,`stepMismatch`,`tooLong`,`tooShort`,`typeMismatch`,`valueMissing`])t?.[e]&&(n[e]=!0);t||(n.valueMissing=!0),this._internals?.setValidity?.(n,e.validationMessage||Q(Hn,`input.required`,this),e)}else e.removeAttribute(`aria-invalid`),this._internals?.setValidity?.({})};_syncValue=()=>{let e=this.value;this._inputContent.value!==e&&(this._inputContent.value=e),e?this._input.setAttribute(`value`,e):this._input.removeAttribute(`value`),this._internals?.setFormValue?.(this._inputContent.value),this._updateValidity()};checkValidity(){return jn(this._internals)}reportValidity(){return Mn(this._internals)}get validity(){return this._internals?.validity}get validationMessage(){return this._internals?.validationMessage??``}formResetCallback(){this.value=this._defaultValue}customInput=e=>{e.stopPropagation(),e.preventDefault();let{target:t,data:n=``}=e;J(this,`value`,t?.value??n??``,{removeEmpty:!0}),this._syncValue(),this.dispatchEvent(new CustomEvent(`input`,{detail:{value:this.value}}))};customKeydown=e=>{e.key!==`Enter`||e.isComposing||this._internals?.form?.requestSubmit()};customChange=()=>{J(this,`value`,this._inputContent?.value??this.value,{removeEmpty:!0}),this._syncValue(),this.dispatchEvent(new CustomEvent(`change`,{detail:{value:this.value}}))};listenPlaceholder=(e,t)=>{e===`placeholder`&&this._inputContent&&(t==null?this._inputContent.removeAttribute(`placeholder`):this._inputContent.setAttribute(`placeholder`,t))};listenLabel=(e,t)=>{e===`label`&&this._inputContent&&(t==null?(this._input.removeAttribute(`label`),this._label&&=(this._label.remove(),void 0)):this._label?this._label.textContent=t:(this._label=jt().class(`ran-input-label`).part(`label`).text(t).build(),this._label.htmlFor=this._inputContent.id,this._shadowDom.insertBefore(this._label,this._input)))};listenType=(e,t)=>{if(e===`type`&&this._inputContent){t?this._inputContent.setAttribute(`type`,t):this._inputContent.removeAttribute(`type`);for(let e of[`min`,`max`,`step`])this.listenNumericConstraint(e,this.getAttribute(e));this._syncValue()}};listenStatus=(e,t)=>{e===`status`&&this._input&&(t?this._input.setAttribute(`status`,t):this._input.removeAttribute(`status`))};listenMessage=(e,t)=>{e===`message`&&(t?(this._message||(this._message=F().class(`ran-input-message`).part(`message`).build(),this._message.id=`${this._inputContent.id}-message`,this._shadowDom.appendChild(this._message),this._inputContent.setAttribute(`aria-describedby`,this._message.id)),this._message.textContent=t):this._message&&=(this._inputContent.removeAttribute(`aria-describedby`),this._message.remove(),void 0))};listenNumericConstraint=(e,t)=>{(e===`min`||e===`max`||e===`step`)&&this._inputContent&&(this.type===`number`&&t!=null?this._inputContent.setAttribute(e,t):this._inputContent.removeAttribute(e),this._updateValidity())};listenRequired=(e,t)=>{e===`required`&&this._inputContent&&(t==null?this._inputContent.removeAttribute(`required`):this._inputContent.setAttribute(`required`,``),this._updateValidity())};listenDisabled=(e,t)=>{e===`disabled`&&this._input&&(Ut.includes(t)?(this._input.removeAttribute(`disabled`),this._inputContent.removeAttribute(`disabled`)):(this._input.setAttribute(`disabled`,``),this._inputContent.setAttribute(`disabled`,``)),this._updateValidity())};listenIcon=(e,t,n)=>{e===`icon`&&t&&t!==n&&(this.setAttribute(`icon`,t),this.dealIcon())};dealIcon=()=>{if(Za(),!this._icon){let e=Wt(`r-icon`);typeof document>`u`&&e?(this._icon=new e,this._icon.setAttribute(`class`,`ran-icon`)):this._icon=P(`r-icon`).class(`ran-icon`).build(),typeof this._inputContent.insertAdjacentElement==`function`?this._inputContent.insertAdjacentElement(`beforebegin`,this._icon):this._inputContent.parentNode?.insertBefore(this._icon,this._inputContent)}if(this.icon){this._icon.setAttribute(`name`,this.icon);let e=this._icon;typeof document>`u`&&e._preSerialize?.()}};_preSerialize(){let e=this.getAttribute(`label`);e!=null&&this.listenLabel(`label`,e);let t=this.getAttribute(`placeholder`);t!=null&&this.listenPlaceholder(`placeholder`,t);let n=this.getAttribute(`type`);n!=null&&this.listenType(`type`,n),this.getAttribute(`icon`)&&this.dealIcon()}listenEvent=(e,t,n)=>{this.listenType(e,n),this.listenPlaceholder(e,n),this.listenLabel(e,n),this.listenStatus(e,n),this.listenMessage(e,n),this.listenNumericConstraint(e,n),this.listenRequired(e,n),this.listenDisabled(e,n),this.listenIcon(e,n,t),e===`value`&&t!==n&&this._syncValue()};connectedCallback(){this.handlerExternalCss(),this._defaultValueCaptured||=(this._defaultValue=this.value,!0),this.value&&(this._inputContent.value=this.value,this._input.setAttribute(`value`,this.value)),this._internals?.setFormValue?.(this.value),this.status&&this._input.setAttribute(`status`,this.status),this.message&&this.listenMessage(`message`,this.message),R(this)&&(this._input.setAttribute(`disabled`,``),this._inputContent.setAttribute(`disabled`,``)),this.type&&this._inputContent.setAttribute(`type`,this.type),this.type===`number`&&(this.min&&this._inputContent.setAttribute(`min`,this.min),this.max&&this._inputContent.setAttribute(`max`,this.max),this.step&&this._inputContent.setAttribute(`step`,this.step)),this.required&&this._inputContent.setAttribute(`required`,``),this._syncValue(),this._events.on(this._inputContent,`input`,this.customInput),this._events.on(this._inputContent,`change`,this.customChange),this._events.on(this._inputContent,`keydown`,this.customKeydown),document.readyState===`complete`&&this.dealIcon()}disconnectedCallback(){this._events.abort()}attributeChangedCallback(e,t,n){t!==n&&(this.listenEvent(e,t,n),e===`sheet`&&this.handlerExternalCss())}});var $a=`:host{position:var(--ran-select-host-position, relative);display:var(--ran-select-host-display, inline-block);cursor:var(--ran-select-host-cursor, pointer);min-width:var(--ran-select-min-width, 80px);max-width:100%;outline:var(--ran-select-host-outline, 0);-webkit-tap-highlight-color:var(--ran-select-host-tap-highlight-color, transparent)}:host,:host(:focus),:host(:active){outline:var(--ran-select-host-focus-outline, 0);-webkit-tap-highlight-color:transparent}:host ::slotted(r-option){display:var(--ran-select-option-display, none)}:host([disabled]){cursor:var(--ran-select-host-disabled-cursor, not-allowed);pointer-events:var(--ran-select-host-disabled-pointer-events, all);opacity:var(--ran-select-host-disabled-opacity, 1)}:host(:not([disabled]):hover) .ran-select{cursor:var(--ran-select-host-hover-cursor, pointer)}:host(:not([disabled],[type="text"]):focus-visible) .selection{border:var(--ran-select-focus-border, 1px solid var(--ran-color-border-control, var(--ran-gray-700)))}:host(:not([disabled]):hover) .selection-search{cursor:var(--ran-select-search-hover-cursor, pointer)}:host(:not([disabled]):hover) .selection-item{cursor:var(--ran-select-item-hover-cursor, pointer)}@media(hover:hover){:host(:not([disabled],[type="text"]):hover) .selection{border:var(--ran-select-hover-border, 1px solid var(--ran-color-border-control-hover, var(--ran-gray-900)));background-color:var(--ran-select-hover-background-color, var(--ran-select-background-color, var(--ran-color-bg-elevated, #ffffff)))}:host(:not([disabled]):hover) .selection-item{color:var(--ran-select-item-hover-color, var(--ran-color-text, #111113))}}:host([type="text"]) .selection{border:var(--ran-select-text-border, none);background:var(--ran-select-text-background, transparent)}:host([type="text"]) .icon{display:var(--ran-select-icon-text-display, none)}:host(:not([disabled]):focus-visible) .selection{box-shadow:var(--ran-select-focus-box-shadow, var(--ran-focus-ring))}:host(:not([disabled]):focus-visible) .selection-search{cursor:var(--ran-select-search-focus-cursor, pointer)}:host(:not([disabled]):focus-visible) .selection-item{cursor:var(--ran-select-item-focus-cursor, pointer);color:var(--ran-select-item-focus-color, var(--ran-color-text, #111113))}:host .selection-search{display:var(--ran-select-search-display, none)}:host([showSearch]:not([disabled])) .selection-search{cursor:var(--ran-select-search-visible-cursor, text);display:var(--ran-select-search-visible-display, block)}:host([showSearch]:not([disabled])) .selection-item{cursor:var(--ran-select-item-search-cursor, pointer)}:host([showSearch]:not([disabled]):focus) .selection-search{display:var(--ran-select-search-visible-display, block);cursor:var(--ran-select-search-visible-cursor, text);opacity:var(--ran-select-search-visible-opacity, 1)}.ran-select-label{display:var(--ran-select-label-display, block);margin-bottom:var(--ran-select-label-margin-bottom, var(--ran-space-1, 4px));font-size:var(--ran-select-label-font-size, var(--ran-text-label-1, 14px));font-weight:var(--ran-select-label-font-weight, var(--ran-text-label-weight, 500));color:var(--ran-select-label-color, var(--ran-color-text, #111113));cursor:var(--ran-select-label-cursor, pointer)}:host([label]){display:var(--ran-select-host-display, inline-flex);flex-direction:column}:host([label]) .ran-select-label{flex:none}:host([label]) .ran-select{flex:1 1 auto;height:var(--ran-select-root-height, auto)}:host([disabled]) .ran-select-label{color:var(--ran-select-label-disabled-color, var(--ran-color-text-disabled, #8a8a94));cursor:var(--ran-select-label-disabled-cursor, not-allowed)}.ran-select{width:var(--ran-select-root-width, 100%);height:var(--ran-select-root-height, 100%);font-size:var(--ran-select-root-font-size, var(--ran-text-label-1, 14px));font-weight:var(--ran-select-root-font-weight, var(--ran-text-label-weight, 500));box-sizing:var(--ran-select-root-box-sizing, border-box);margin:var(--ran-select-root-margin, 0);padding:var(--ran-select-root-padding, 0);color:var(--ran-select-root-color, var(--ran-color-text, rgba(0, 0, 0, .88)));line-height:var(--ran-select-root-line-height, 1.57142857);list-style:var(--ran-select-root-list-style, none);font-family:var(--ran-select-root-font-family, var(--ran-skin-font-family, -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"));position:var(--ran-select-root-position, relative);display:var(--ran-select-root-display, block)}.ran-select .selection{position:var(--ran-select-position, relative);background-color:var(--ran-select-background-color, var(--ran-color-bg-elevated, #ffffff));background-image:var(--ran-select-background-image, none);border:var(--ran-select-border, 1px solid var(--ran-color-border-control, var(--ran-gray-700)));transition:var(--ran-select-transition, none);width:var(--ran-select-width, 100%);height:var(--ran-select-height, 100%);min-height:var(--ran-select-min-height, var(--ran-size-7, 32px));padding:var(--ran-select-padding, 0);box-sizing:var(--ran-select-box-sizing, border-box);margin:var(--ran-select-margin, 0);color:var(--ran-select-color, var(--ran-color-text, rgba(0, 0, 0, .88)));font-size:var(--ran-select-font-size, var(--ran-text-label-1, 14px));font-weight:var(--ran-select-font-weight, var(--ran-text-label-weight, 500));line-height:var(--ran-select-line-height, 1.57142857);list-style:var(--ran-select-list-style, none);font-family:var(--ran-select-font-family, inherit);display:var(--ran-select-display, flex);border-radius:var(--ran-select-border-radius, var(--ran-radius-sm, 6px))}.ran-select .selection-search{position:var(--ran-select-search-position, absolute);opacity:var(--ran-select-search-opacity, 0);top:var(--ran-select-search-top, 0);left:var(--ran-select-search-left, 0);height:var(--ran-select-search-height, 100%);inset-inline-start:var(--ran-select-search-inset-inline-start, 11px);inset-inline-end:var(--ran-select-search-inset-inline-end, 11px);margin:var(--ran-select-search-margin, 0);padding:var(--ran-select-search-padding, 0);background:var(--ran-select-search-background, transparent);border:var(--ran-select-search-border, none);outline:var(--ran-select-search-outline, none);appearance:var(--ran-select-search-appearance, none);font-family:var(--ran-select-search-font-family, inherit);cursor:var(--ran-select-search-cursor, not-allowed)}.ran-select .selection-search::-webkit-search-cancel-button{display:var(--ran-select-search-cancel-display, none);-webkit-appearance:var(--ran-select-search-cancel-appearance, none)}.ran-select .selection-search::part(input){border:var(--ran-select-search-input-border, none);padding:var(--ran-select-search-input-padding, 0);height:100%;min-height:100%;box-sizing:border-box;outline:var(--ran-select-search-input-outline, none)}.ran-select .selection-search::part(input):active{border:var(--ran-select-search-active-border, none);padding:var(--ran-select-search-active-padding, 0);height:var(--ran-select-search-active-height, 100%);outline:var(--ran-select-search-active-outline, none);border-color:var(--ran-select-search-active-border-color, transparent);box-shadow:var(--ran-select-search-active-box-shadow, none);border-right-width:var(--ran-select-search-active-border-width, 0px)}.ran-select .selection-search::part(content){min-height:var(--ran-select-search-content-min-height, 0)}.ran-select .selection-value{display:flex;flex:1 1 auto;align-items:center;min-width:0}.ran-select .selection-item{position:var(--ran-select-item-position, static);top:var(--ran-select-item-top, auto);flex:1 1 auto;min-width:0;margin:var(--ran-select-item-margin, 0);padding:var(--ran-select-item-padding, 0 var(--ran-select-item-right, 28px) 0 var(--ran-select-item-left, 12px));background:var(--ran-select-item-background, transparent);border:var(--ran-select-item-border, none);outline:var(--ran-select-item-outline, none);appearance:var(--ran-select-item-appearance, none);font-family:var(--ran-select-item-font-family, inherit);height:var(--ran-select-item-height, auto);display:var(--ran-select-item-display, block);align-items:var(--ran-select-item-align-items, center);-webkit-user-select:var(--ran-select-item-user-select, none);user-select:var(--ran-select-item-user-select, none);overflow:var(--ran-select-item-overflow, hidden);white-space:var(--ran-select-item-white-space, nowrap);text-overflow:var(--ran-select-item-text-overflow, ellipsis);cursor:var(--ran-select-item-cursor, pointer)}.ran-select .selection-select{color:var(--ran-select-select-color, var(--ran-color-text-disabled, rgba(0, 0, 0, .25)))}.ran-select .selection .icon{display:var(--ran-select-icon-display, flex);align-items:var(--ran-select-icon-align-items, center);color:var(--ran-select-icon-color, var(--ran-color-text-disabled, rgba(0, 0, 0, .25)));font-style:var(--ran-select-icon-font-style, normal);text-align:var(--ran-select-icon-text-align, center);text-transform:var(--ran-select-icon-text-transform, none);text-rendering:var(--ran-select-icon-text-rendering, optimizeLegibility);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:var(--ran-select-icon-position, absolute);top:var(--ran-select-icon-top, 50%);inset-inline-start:var(--ran-select-icon-inset-inline-start, auto);inset-inline-end:var(--ran-select-icon-inset-inline-end, 8px);height:var(--ran-select-icon-height, var(--ran-size-1, 16px));transform:var(--ran-select-icon-transform, translateY(-50%));margin-top:var(--ran-select-icon-margin-top, 0);font-size:var(--ran-select-icon-font-size, var(--ran-text-label-3, 12px));pointer-events:var(--ran-select-icon-pointer-events, none)}:host(:not([value])) .ran-select .selection .selection-item,:host([value=""]) .ran-select .selection .selection-item{color:var(--ran-color-text-placeholder, var(--ran-gray-800))}:host([disabled]) .ran-select .selection{background-color:var(--ran-color-bg-subtle, var(--ran-background-200));border-color:var(--ran-color-border, var(--ran-gray-400))}:host([disabled]) .ran-select .selection .selection-item{color:var(--ran-color-text-disabled, var(--ran-gray-700))}:host-context([data-ran-surface="glass"]) .ran-select .selection{transition:var(--ran-select-transition, background-color var(--ran-motion-duration-fast, .14s) var(--ran-motion-ease-standard, ease), border-color var(--ran-motion-duration-fast, .14s) var(--ran-motion-ease-standard, ease), box-shadow var(--ran-motion-duration-fast, .14s) var(--ran-motion-ease-standard, ease))}@media(hover:hover){:host-context([data-ran-surface="glass"]):host(:not([disabled],[type="text"]):hover) .ran-select .selection{border:var(--ran-select-hover-border, 1px solid transparent);background-color:var(--ran-select-hover-background-color, var(--ran-surface-glass-hover))}}@media(prefers-reduced-motion:reduce){:host-context([data-ran-surface="glass"]) .ran-select .selection{transition:none}}:host-context([data-ran-surface="glass"]):host(:not([disabled]):focus-visible) .ran-select .selection{border:var(--ran-select-focus-border, 1px solid color-mix(in srgb, var(--ran-color-focus, var(--ran-blue-700)) 55%, transparent));box-shadow:var(--ran-select-focus-box-shadow, 0 0 0 3px color-mix(in srgb, var(--ran-color-focus, var(--ran-blue-700)) 22%, transparent))}`;mr(),L(),H(),X(),B(),z(`r-option`,class extends V{_option;_optionContent;_shadowDom;_slot;static get observedAttributes(){return[`disabled`,`sheet`,`value`]}constructor(){super(),this._shadowDom=W(this);let e=I().build(),t=F().class(`ran-select-dropdown-option-content`).children(e).build(),n=F().class(`ran-select-dropdown-option`).children(t).build();G(this._shadowDom,``,n),this._slot=e,this._optionContent=t,this._option=n}get value(){return this.getAttribute(`value`)}set value(e){J(this,`value`,e)}get sheet(){return this.getAttribute(`sheet`)}set sheet(e){J(this,`sheet`,e)}get disabled(){return R(this)}set disabled(e){!e||e===`false`?this.removeAttribute(`disabled`):this.setAttribute(`disabled`,``)}handlerExternalCss(){Y(this,this._shadowDom,`sheet`,null,this.sheet)}connectedCallback(){this.classList.contains(`ran-option`)||this.classList.add(`ran-option`)}attributeChangedCallback(e,t,n){t!==n&&(e===`disabled`&&this._option&&(!n||n===`false`?this._option.setAttribute(`disabled`,``):this._option.removeAttribute(`disabled`)),e===`sheet`&&this._shadowDom&&this.handlerExternalCss())}});var eo=`.ranui-dropdown-option-item{position:var(--ran-dropdown-option-item-position, relative);display:var(--ran-dropdown-option-item-display, block);padding:var(--ran-dropdown-option-item-padding, var(--ran-space-2, 8px) var(--ran-space-3, 12px));color:var(--ran-dropdown-option-item-color, var(--ran-color-text, rgba(0, 0, 0, .88)));font-weight:var(--ran-dropdown-option-item-font-weight, 400);font-size:var(--ran-dropdown-option-item-font-size, var(--ran-text-label-1, 14px));transition:var(--ran-dropdown-option-item-transition, none);border-radius:var(--ran-dropdown-option-item-border-radius, var(--ran-radius-sm, 8px));cursor:var(--ran-dropdown-option-item-cursor, pointer)}:host(:not([disabled]):not([role="option"])) .ranui-dropdown-option-item:hover{background-color:var(--ran-dropdown-option-item-hover-background-color, var(--ran-color-bg-hover))}.ranui-dropdown-option-item-content{text-align:var(--ran-dropdown-option-item-content-text-align, left);overflow:var(--ran-dropdown-option-item-content-overflow, hidden);white-space:var(--ran-dropdown-option-item-content-white-space, nowrap);text-overflow:var(--ran-dropdown-option-item-content-text-overflow, ellipsis);color:var(--ran-dropdown-option-item-content-color, var(--ran-color-text, rgba(0, 0, 0, .88)));font-size:var(--ran-dropdown-option-item-content-font-size, var(--ran-text-label-1, 14px));line-height:var(--ran-dropdown-option-item-content-line-height, 20px);box-sizing:var(--ran-dropdown-option-item-content-box-sizing, border-box);list-style:var(--ran-dropdown-option-item-content-list-style, none);font-family:var(--ran-dropdown-option-item-content-font-family, -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");font-variant:var(--ran-dropdown-option-item-content-font-variant, initial)}.ranui-dropdown-option-active{background-color:var(--ran-dropdown-option-active-background-color, var(--ran-dropdown-option-item-hover-background-color, var(--ran-color-bg-hover)))}.ranui-dropdown-option-selected{font-weight:var(--ran-dropdown-option-selected-font-weight, 500);padding-inline-end:var(--ran-dropdown-option-selected-padding-inline-end, calc(var(--ran-space-3, 12px) + 1em + var(--ran-space-2, 8px)))}.ranui-dropdown-option-selected:after{content:"";display:var(--ran-dropdown-option-selected-check-display, block);position:absolute;inset-inline-end:var(--ran-space-3, 12px);top:50%;width:1em;height:1em;transform:translateY(-50%);background-color:var(--ran-dropdown-option-selected-check-color, currentColor);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat}.ranui-dropdown-option-selected:not(.ranui-dropdown-option-active){background-color:var(--ran-dropdown-option-selected-background-color, transparent)}:host-context([data-ran-surface="glass"]) .ranui-dropdown-option-item,:host-context([surface="glass"]) .ranui-dropdown-option-item{transition:var(--ran-dropdown-option-item-transition, background-color var(--ran-motion-duration-fast, .14s) var(--ran-motion-ease-standard, ease), color var(--ran-motion-duration-fast, .14s) var(--ran-motion-ease-standard, ease))}:host-context([data-ran-surface="glass"]):host(:not([disabled]):not([role="option"])) .ranui-dropdown-option-item:hover,:host-context([surface="glass"]):host(:not([disabled]):not([role="option"])) .ranui-dropdown-option-item:hover{background-color:var(--ran-dropdown-option-item-hover-background-color, var(--ran-surface-glass-hover))}:host-context([data-ran-surface="glass"]) .ranui-dropdown-option-active,:host-context([surface="glass"]) .ranui-dropdown-option-active{background-color:var(--ran-dropdown-option-active-background-color, var(--ran-dropdown-option-item-hover-background-color, var(--ran-surface-glass-hover)))}:host-context([data-hover-fill]) .ranui-dropdown-option-item{z-index:1}:host-context([data-hover-fill]) .ranui-dropdown-option-active,:host-context([data-hover-fill]):host(:not([disabled]):not([role="option"])) .ranui-dropdown-option-item:hover{background-color:transparent}@media(prefers-reduced-motion:reduce){:host-context([data-ran-surface="glass"]) .ranui-dropdown-option-item,:host-context([surface="glass"]) .ranui-dropdown-option-item{transition:none}}:host([disabled]) .ranui-dropdown-option-item{cursor:not-allowed;color:var(--ran-color-text-disabled)}:host([disabled]) .ranui-dropdown-option-item-content{color:var(--ran-color-text-disabled)}@media(forced-colors:active){.ranui-dropdown-option-active{outline:1px solid Highlight;outline-offset:-1px}.ranui-dropdown-option-selected:after{forced-color-adjust:none;background-color:CanvasText}}`;L(),H(),B(),X(),z(`r-dropdown-item`,class extends V{ionDropdownItem;_slot;_shadowDom;ionDropdownItemContent;static get observedAttributes(){return[`active`,`selected`,`value`,`title`,`sheet`]}constructor(){super(),this._shadowDom=W(this,eo);let e=M(),t=M(),n=I().class(`slot`).ref(e).build(),r=F().class(`ranui-dropdown-option-item-content`).part(`content`).ref(t).children(n).build(),i=F().class(`ranui-dropdown-option-item`).part(`item`).children(r).build();G(this._shadowDom,eo,i),this._slot=K(e,`slot`),this.ionDropdownItemContent=K(t,`content`),this.ionDropdownItem=i}get value(){return q(this,`value`)}set value(e){!R(this)&&e?this.setAttribute(`value`,e):this.removeAttribute(`value`)}get active(){return q(this,`active`)}set active(e){e?this.setAttribute(`active`,e):this.removeAttribute(`active`)}get selected(){return this.hasAttribute(`selected`)}set selected(e){this.toggleAttribute(`selected`,!!e)}get title(){return q(this,`title`)}set title(e){e?this.setAttribute(`title`,e):this.removeAttribute(`title`)}get sheet(){return q(this,`sheet`)}set sheet(e){J(this,`sheet`,e)}handlerExternalCss=()=>{Y(this,this._shadowDom,`sheet`,null,this.sheet)};connectedCallback(){this.handlerExternalCss(),this.ionDropdownItem.classList.toggle(`ranui-dropdown-option-active`,!!this.active),this.ionDropdownItem.classList.toggle(`ranui-dropdown-option-selected`,this.selected)}attributeChangedCallback(e,t,n){e===`sheet`?this.handlerExternalCss():(e===`active`&&this.ionDropdownItem.classList.toggle(`ranui-dropdown-option-active`,!!n),e===`selected`&&this.ionDropdownItem.classList.toggle(`ranui-dropdown-option-selected`,n!==null))}}),Xa();var to=Rn({en:{"select.required":`Please select an item in the list.`},zh:{"select.required":`请从列表中选择一项。`},ja:{"select.required":`リスト内の項目を選択してください。`},ko:{"select.required":`목록에서 항목을 선택하세요.`},es:{"select.required":`Selecciona un elemento de la lista.`},pt:{"select.required":`Selecione um item da lista.`},de:{"select.required":`Wählen Sie ein Element in der Liste aus.`},fa:{"select.required":`لطفاً یک مورد از فهرست انتخاب کنید.`}});x(),H(),B(),L(),X(),Wa(`chevron-down`,pr);var no=0;z(`r-select`,class extends V{static formAssociated=!0;_internals;_events=new h;_searchEvents=new h;removeTimeId;_listboxId;_activeIndex;_slot;_shadowDom;_select;_selection;_search;_icon;_selectDropdown;_selectionDropdown;_floating=new Dn({onEscape:e=>{this.keydownSelect(e),e.defaultPrevented&&this.focus({preventScroll:!0})},host:this,panel:()=>this._selectionDropdown,placement:()=>this.placement,offset:4,containerId:()=>this.getPopupContainerId,beforeMeasure:(e,t)=>{let n=`${e.width}px`;t.style.setProperty(`--ran-select-trigger-width`,n),t.style.setProperty(`min-width`,n),t.style.setProperty(`width`,`max-content`),t.style.setProperty(`--ran-dropdown-width`,`max-content`),t.style.setProperty(`--ran-dropdown-min-width`,n)},measurePanel:e=>{let t=e._shadowDom?.querySelector(`.ranui-dropdown`),n=parseFloat(e.style.minWidth)||0,r=t?Math.max(t.scrollWidth,t.getBoundingClientRect().width):0,i=Math.max(n,r,e.scrollWidth,e.getBoundingClientRect().width),a=`${Math.ceil(i)}px`;e.style.setProperty(`width`,a),e.style.setProperty(`min-width`,a),e.style.setProperty(`--ran-dropdown-width`,`100%`),e.style.setProperty(`--ran-dropdown-min-width`,`100%`);let o=t?.getBoundingClientRect(),s=e.getBoundingClientRect();return{width:Math.max(o?.width??0,s.width,i),height:o?.height??s.height}},afterPosition:()=>{this._glassMenuLaidOut=!0,this._optionHoverTarget=null,this._syncGlassMenuChrome()}});_optionList;_optionItems=new WeakMap;_optionSeq=0;_optionLabelMapValue;_optionValueMapLabel;_activeOption;_optionHover;_optionHoverTarget=null;_glassMenuLaidOut=!1;_lastPointerAt=``;_text;_selector;_label;onSearch;_composing=!1;_lastSearchValue;_pendingDefaultValue=!0;_typeaheadBuffer=``;_typeaheadTimeId;static get observedAttributes(){return[`disabled`,`required`,`sheet`,`type`,`value`,`label`,`placeholder`,`defaultvalue`,`showsearch`,`open`,`placement`,`getpopupcontainerid`,`dropdownclass`,`dropdownsurface`,`trigger`]}constructor(){super(),this._internals=cn(this),this._listboxId=`ran-select-listbox-${Math.random().toString(36).slice(2,9)}`,this._activeIndex=-1,this._optionList=[],this._optionLabelMapValue=new Map,this._optionValueMapLabel=new Map,this._shadowDom=W(this,$a,{mode:`closed`},this._internals),un(this._shadowDom,$a,{bind:e=>this._bindPaintedTree(e),build:()=>{let e=M(),t=M(),n=M(),r=M(),i=M(),a=M(),o=F().class(`ran-select`).part(`select`).children(F().class(`selection`).ref(e).part(`selection`).children(P(`r-icon`).class(`icon`).ref(n).part(`icon`).attr(`name`,`chevron-down`).attr(`color`,`var(--ran-color-text-secondary)`).attr(`size`,`16`),F().class(`selection-value`).ref(t).children(Dt().class(`selection-item`).ref(r).part(`selection-item`),kt().class(`selection-search`).ref(i).part(`search`).attr(`type`,`search`).attr(`autocomplete`,`off`))),I().ref(a).class(`slot`)).build();return this._select=o,this._selection=K(e,`selection`),this._selector=K(t,`selector`),this._icon=K(n,`icon`),this._text=K(r,`selection item`),this._search=K(i,`selection search`),this._slot=K(a,`slot`),o}})}_bindPaintedTree(e){let t=e.children.item(0),n=t?.children.item(0),r=t?.children.item(1),i=r?.children.item(0),a=r?.children.item(1),o=e.children.item(1);if(!t||!n||!r||!i||!a||!o||o.tagName.toLowerCase()!==`slot`)return!1;this._select=e,this._selection=t,this._selector=r,this._icon=n,this._text=i,this._search=a,this._slot=o;for(let t of this._shadowDom.children){if(t===e)break;t.tagName.toLowerCase()===`label`&&(this._label=t)}return!0}get value(){return this.getAttribute(`value`)||``}set value(e){this._pendingDefaultValue=!1,e?this.setAttribute(`value`,e):this.removeAttribute(`value`),e?this.syncFormValue():this._clearSelection()}syncFormValue=()=>{this._internals?.setFormValue?.(this.value),this._updateValidity()};get required(){return this.hasAttribute(`required`)}set required(e){dn(this,`required`,!(!e||e===`false`))}get label(){return this.getAttribute(`label`)||``}set label(e){this.setAttribute(`label`,e)}_syncLabel=e=>{e==null?this._label&&(this._label.remove(),this._label=void 0,this.removeAttribute(`aria-label`)):(this._label?this._label.textContent=e:(this.id||=`ran-select-${++no}`,this._label=jt().class(`ran-select-label`).part(`label`).text(e).build(),this._label.id=`${this.id}-label`,this._label.addEventListener(`click`,()=>this.focus()),this._shadowDom.insertBefore(this._label,this._select)),this.setAttribute(`aria-label`,e))};_updateValidity=()=>{An(this,this._internals,{disabled:this.disabled,required:this.required,isEmpty:!this.value,message:Q(to,`select.required`,this),anchor:this})};checkValidity(){return jn(this._internals)}reportValidity(){return Mn(this._internals)}get validity(){return this._internals?.validity}get validationMessage(){return this._internals?.validationMessage??``}formResetCallback(){let e=this.defaultValue;e?this.value=e:(this.removeAttribute(`value`),this._clearSelection())}_clearSelection=()=>{this._pendingDefaultValue=!1,this._syncPlaceholder(),this._text.removeAttribute(`title`),this._activeOption&&=(this._activeOption.removeAttribute(`active`),this._activeOption.setAttribute(`aria-selected`,`false`),void 0),this._activeIndex=-1,this.getDropdownOptions().forEach(e=>e.removeAttribute(`active`)),this.syncActiveState(),this.syncFormValue()};get placeholder(){return this.getAttribute(`placeholder`)||``}set placeholder(e){J(this,`placeholder`,e)}_syncPlaceholder=()=>{!this.value&&this._text&&(this._text.textContent=this.placeholder,this.placeholder?this._search.placeholder=this.placeholder:this._search.removeAttribute(`placeholder`))};get defaultValue(){return this.getAttribute(`defaultValue`)||``}set defaultValue(e){this.setAttribute(`defaultValue`,e||``)}get showSearch(){return this.getAttribute(`showSearch`)||``}set showSearch(e){this.setAttribute(`showSearch`,e||``)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e||``)}get placement(){return this.getAttribute(`placement`)||`bottom`}set placement(e){this.setAttribute(`placement`,e||``)}get sheet(){return q(this,`sheet`)}set sheet(e){J(this,`sheet`,e)}get getPopupContainerId(){return this.getAttribute(`getPopupContainerId`)||``}set getPopupContainerId(e){this.setAttribute(`getPopupContainerId`,e||``)}get dropdownclass(){return this.getAttribute(`dropdownclass`)||``}set dropdownclass(e){this.setAttribute(`dropdownclass`,e||``)}get dropdownsurface(){return this.getAttribute(`dropdownsurface`)||``}set dropdownsurface(e){this.setAttribute(`dropdownsurface`,e||``)}get trigger(){return this.getAttribute(`trigger`)||`click`}set trigger(e){this.setAttribute(`trigger`,e||``)}get disabled(){return R(this)}set disabled(e){!e||e===`false`?(this.removeAttribute(`disabled`),this._selection.removeAttribute(`disabled`),this.removeAttribute(`aria-disabled`),(this.tabIndex<0||!this.hasAttribute(`tabindex`))&&(this.tabIndex=0)):(this.setAttribute(`disabled`,``),this._selection.setAttribute(`disabled`,``),this.setAttribute(`aria-disabled`,`true`),this.tabIndex=-1)}initAria=()=>{this.hasAttribute(`tabindex`)||(this.tabIndex=0),this.setAttribute(`role`,`combobox`),this.setAttribute(`aria-haspopup`,`listbox`),this.setAttribute(`aria-controls`,this._listboxId),this.setAttribute(`aria-expanded`,`false`),this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`)};updateAriaExpanded=e=>{this.setAttribute(`aria-expanded`,e?`true`:`false`)};get open(){return this.hasAttribute(`open`)}set open(e){e?this.setAttribute(`open`,``):this.removeAttribute(`open`)}_applyOpen=()=>{if(this.open&&this.disabled)this.open=!1;else{if(this.open){let e=this.getAttribute(`value`),t=this.getDropdownOptions().findIndex(t=>!!e&&t.getAttribute(`value`)===e);t>=0&&this.setActiveOptionByIndex(t,!1)}else this._glassMenuLaidOut=!1;this._floating.apply(this.open),this.open||this._syncGlassMenuChrome()}};show=()=>{this.open=!0};hide=()=>{this.open=!1};toggle=()=>{this.open=!this.open};getDropdownOptions=()=>this._selectionDropdown?Array.from(this._selectionDropdown.querySelectorAll(`r-dropdown-item`)):[];syncActiveState=()=>{let e=this.getDropdownOptions(),t=this.getAttribute(`value`)||``;e.forEach((e,n)=>{e.setAttribute(`role`,`option`),e.toggleAttribute(`selected`,!!t&&e.getAttribute(`value`)===t),e.setAttribute(`aria-selected`,e===this._activeOption?`true`:`false`),e.id||=`${this._listboxId}-option-${n}`}),this._activeOption?.id?this.setAttribute(`aria-activedescendant`,this._activeOption.id):this.removeAttribute(`aria-activedescendant`)};_cursorFromPointer=e=>{let t=`${e.clientX},${e.clientY}`;if(t===this._lastPointerAt)return;this._lastPointerAt=t;let n=e.target.closest?.(`r-dropdown-item`);if(!n||n===this._activeOption||R(n))return;let r=this.getDropdownOptions().indexOf(n);r>=0&&this.setActiveOptionByIndex(r,!1)};setActiveOptionByIndex=(e,t=!0)=>{let n=this.getDropdownOptions();if(n.length===0)return;let r=i(e,0,n.length-1),a=n[r];if(!a)return;this._activeOption&&this._activeOption!==a&&(this._activeOption.removeAttribute(`active`),this._activeOption.setAttribute(`aria-selected`,`false`)),this._activeIndex=r,this._activeOption=a;let o=a.getAttribute(`value`)||``;a.setAttribute(`active`,o),a.setAttribute(`aria-selected`,`true`);let s=this._selectionDropdown?.dropdown;if(t&&s&&s.clientHeight>0&&s.scrollHeight>s.clientHeight){let e=a.getBoundingClientRect(),t=s.getBoundingClientRect(),n=t.height/s.offsetHeight||1;e.top<t.top?s.scrollTop+=(e.top-t.top)/n:e.bottom>t.bottom&&(s.scrollTop+=(e.bottom-t.bottom)/n)}this.syncActiveState(),this._syncGlassMenuChrome()};_usesGlassMenuChrome=()=>{let e=this.dropdownsurface||this._selectionDropdown?.getAttribute(`surface`)||``;return e===`solid`?!1:e===`glass`||typeof document<`u`&&document.documentElement.getAttribute(`data-ran-surface`)===`glass`};_ensureOptionHover=()=>(this._optionHover||(this._optionHover=document.createElement(`span`),this._optionHover.className=`ran-select-option-hover`,this._optionHover.setAttribute(`aria-hidden`,`true`)),this._optionHover);_placeOptionHover=e=>{let t=this._optionHover;if(!t||!this._usesGlassMenuChrome())return;let n=e.getBoundingClientRect(),r=typeof DOMMatrixReadOnly<`u`?DOMMatrixReadOnly:void 0,i=r?new r(getComputedStyle(t).transform):{e:0,f:0},a=t.getBoundingClientRect();t.toggleAttribute(`data-instant`,this._optionHoverTarget===null),t.style.setProperty(`transform`,`translate(${n.left-(a.left-i.e)}px, ${n.top-(a.top-i.f)}px)`),t.style.setProperty(`width`,`${n.width}px`),t.style.setProperty(`height`,`${n.height}px`),t.style.setProperty(`opacity`,`1`),this._optionHoverTarget=e};_hideOptionHover=()=>{this._optionHover&&(this._optionHover.style.setProperty(`opacity`,`0`),this._optionHoverTarget=null)};_syncGlassMenuChrome=()=>{let e=this._selectionDropdown;if(!e)return;let t=this.open&&this._usesGlassMenuChrome();if(e.toggleAttribute(`data-hover-fill`,t),!t){this._hideOptionHover();return}let n=this._ensureOptionHover();n.parentNode!==e&&e.prepend(n),this._glassMenuLaidOut&&(this._activeOption?.isConnected?this._placeOptionHover(this._activeOption):this._hideOptionHover())};selectOptionElement=(e,t=!0)=>{if(!e)return;let n=e.getAttribute(`title`)||e.textContent?.trim()||``,r=e.getAttribute(`value`)||this._optionLabelMapValue.get(n)||``;r&&(this.setAttribute(`value`,r),this.syncFormValue(),this._text.textContent=n,this._text.setAttribute(`title`,n),this._search.setAttribute(`placeholder`,n),this._activeOption&&this._activeOption!==e&&(this._activeOption.removeAttribute(`active`),this._activeOption.setAttribute(`aria-selected`,`false`)),this._activeOption=e,this._activeIndex=this.getDropdownOptions().findIndex(t=>t===e),e.setAttribute(`active`,r),e.setAttribute(`aria-selected`,`true`),this.syncActiveState(),t&&(this.setSelectDropdownDisplayNone(),this.dispatchEvent(new CustomEvent(`change`,{detail:{value:r,label:n}}))))};isDropdownOpen=()=>this.open;_nextEnabledIndex=(e,t)=>{let n=this.getDropdownOptions(),r=n.length;if(r===0)return-1;let a=i(e,0,r-1);for(let e=0;e<r;e++){if(!R(n[a]))return a;let e=a+t;if(e<0||e>r-1)return-1;a=e}return-1};keydownSelect=e=>{if(!(this.disabled||e.isComposing||this._composing)&&(!e.composedPath().includes(this._search)||[`ArrowDown`,`ArrowUp`,`Enter`,`Escape`].includes(e.key))){if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),this.isDropdownOpen()||this.selectMouseDown(e);let t=this.getDropdownOptions();if(t.length===0)return;let n=e.key===`ArrowDown`?1:-1,r=this._activeIndex>=0?this._nextEnabledIndex(this._activeIndex+n,n):this._nextEnabledIndex(n>0?0:t.length-1,n);r>=0&&this.setActiveOptionByIndex(r)}else if(e.key===`Home`||e.key===`End`){e.preventDefault(),this.isDropdownOpen()||this.selectMouseDown(e);let t=this.getDropdownOptions();if(t.length===0)return;let n=e.key===`Home`?1:-1,r=this._nextEnabledIndex(e.key===`Home`?0:t.length-1,n);r>=0&&this.setActiveOptionByIndex(r)}else if(kn(e)){if(e.preventDefault(),!this.isDropdownOpen()){this.selectMouseDown(e);return}this._activeOption&&this.selectOptionElement(this._activeOption)}else if(e.key===`Escape`){if(!this.isDropdownOpen())return;e.preventDefault(),this.setSelectDropdownDisplayNone()}else this._handleTypeahead(e)}};_handleTypeahead=e=>{if(e.key.length!==1||e.ctrlKey||e.altKey||e.metaKey)return;e.preventDefault(),this.isDropdownOpen()||this.selectMouseDown(e);let t=this.getDropdownOptions(),n=t.length;if(n===0)return;clearTimeout(this._typeaheadTimeId),this._typeaheadBuffer+=e.key.toLowerCase(),this._typeaheadTimeId=setTimeout(()=>{this._typeaheadBuffer=``},500);let r=this._activeIndex>=0?this._activeIndex+1:0;for(let e=0;e<n;e++){let i=(r+e)%n,a=t[i];if(!R(a)&&(a.getAttribute(`title`)||a.textContent||``).trim().toLowerCase().startsWith(this._typeaheadBuffer)){this.setActiveOptionByIndex(i);return}}};handlerExternalCss(){Y(this,this._shadowDom,`sheet`,null,this.sheet)}setSelectDropdownDisplayNone=()=>{this.open=!1};setSelectDropdownDisplayBlock=()=>{this.open=!0};placementPosition=(e=!1)=>{this._floating.position(e)};selectMouseDown=e=>{e.stopPropagation(),R(this)||(this.removeDropDownTimeId(e),this.open=!this.open)};_cancelDropdownClose=()=>{clearTimeout(this.removeTimeId),this.removeTimeId=void 0};removeDropDownTimeId=e=>{e.stopPropagation(),this._search.value&&(this._search.value=``,this.hasAttribute(`showsearch`)&&this.changeSearch(e)),this.trigger.includes(`hover`)&&!l()&&this._cancelDropdownClose()};selectBlur=e=>{e.stopPropagation(),this.disabled||(this.removeTimeId&&this.removeDropDownTimeId(e),this.removeTimeId=setTimeout(()=>{this.removeDropDownTimeId(e),this.setSelectDropdownDisplayNone()},300))};clickOption=e=>{if(e.stopPropagation(),this.disabled){e.preventDefault();return}let t=e.target.closest(`r-dropdown-item`);t&&R(t)?this.removeDropDownTimeId(e):(this.selectOptionElement(t),this.removeDropDownTimeId(e),this.focus())};createOption=()=>{let e=this.getRootNode(),t=(e.getElementById?e.getElementById(this.getPopupContainerId):null)||document.getElementById(this.getPopupContainerId)||document.body;this._selectDropdown||(this._selectDropdown=F().style(`-webkit-tap-highlight-color`,`transparent`).style(`outline`,`0`).on(`click`,this.clickOption).on(`pointermove`,this._cursorFromPointer).build(),this._selectionDropdown=P(`r-dropdown`).id(this._listboxId).attr(`role`,`listbox`).style(`position`,`absolute`).style(`display`,`none`).build(),this.dropdownclass&&this._selectionDropdown.setAttribute(`class`,this.dropdownclass),this.dropdownsurface?this._selectionDropdown.setAttribute(`surface`,this.dropdownsurface):this._selectionDropdown.removeAttribute(`surface`),this.trigger.includes(`hover`)&&!l()&&(this._selectDropdown.addEventListener(`mouseleave`,this.selectBlur),this._selectDropdown.addEventListener(`mouseenter`,this._cancelDropdownClose)),this._selectDropdown.appendChild(this._selectionDropdown)),this._selectDropdown.parentNode!==t&&t.appendChild(this._selectDropdown)};removeSelectDropdown=()=>{this._selectDropdown?.remove()};addOptionToSlot=()=>{this._optionList=[],this._optionLabelMapValue.clear(),this._optionValueMapLabel.clear(),this._slot.assignedElements().forEach(e=>{if(e.tagName!==`R-OPTION`)return;let t=e.innerHTML,n=e.getAttribute(`value`)||``,r=R(e);this._optionList?.push({label:t,value:n,disabled:r}),this._optionLabelMapValue.get(t)&&console.warn(`${t} is repeat option`),this._optionValueMapLabel.get(n)&&console.warn(`${n} is repeat option`),this._optionLabelMapValue.set(t,n),this._optionValueMapLabel.set(n,t)});let e=this.hasAttribute(`showsearch`)?this._composing?this._lastSearchValue??``:this._search.value:``;this._renderOptionsForSearch(e),this._selectionDropdown?.style.display===`block`&&this.placementPosition()};createSelectDropdownContent=(e=[])=>{e.length===0?this._selectDropdown?.style.setProperty(`display`,`none`):this._selectDropdown?.style.setProperty(`display`,`block`),this._activeOption=void 0,this._activeIndex=-1;let t=this.value||(this._pendingDefaultValue?this.defaultValue:``),n=(this._selectionDropdown?e:[]).map(e=>{let{label:n,value:r,disabled:i}=e,a=this._optionItems.get(e);return a||(a=P(`r-dropdown-item`).attr(`role`,`option`).attr(`value`,`${r}`).attr(`title`,`${n}`).attr(`id`,`${this._listboxId}-option-${this._optionSeq++}`).text(`${n}`).build(),i&&(a.setAttribute(`disabled`,``),a.setAttribute(`aria-disabled`,`true`)),this._optionItems.set(e,a)),t===r?(a.setAttribute(`active`,r),this._activeOption=a):a.removeAttribute(`active`),a});this._optionHover&&this._usesGlassMenuChrome()?this._selectionDropdown?.replaceChildren(this._optionHover,...n):this._selectionDropdown?.replaceChildren(...n),this._activeIndex=this.getDropdownOptions().findIndex(e=>e===this._activeOption),this._activeOption?this.selectOptionElement(this._activeOption,!1):this.syncActiveState(),this._syncGlassMenuChrome()};setDefaultValue=()=>{let e=this.getAttribute(`defaultValue`)||this.getAttribute(`value`);if(!e)return;let t=this._optionValueMapLabel.get(e);if(!t)return;this.setAttribute(`value`,e),this._text.textContent=t,this._text.setAttribute(`title`,t);let n=this.getDropdownOptions().find(t=>t.getAttribute(`value`)===e)||null;n&&this.selectOptionElement(n,!1)};changeSearch=e=>{if(this.disabled||this._composing||e.isComposing)return;let t=e.detail?.value??this._search.value;(e.type!==`change`||t!==this._lastSearchValue)&&(this.dispatchEvent(new CustomEvent(`search`,{detail:{value:t}})),this._renderOptionsForSearch(t))};_renderOptionsForSearch=e=>{this._lastSearchValue=e;let t=e.toLowerCase(),n=e?this._optionList.filter(e=>`${e.label}`.toLowerCase().includes(t)):this._optionList;this.createSelectDropdownContent(n)};clickRemoveSelect=e=>{this._floating.containsEvent(e)||this.setSelectDropdownDisplayNone()};connectedCallback(){this.handlerExternalCss(),this.createOption(),this._applyShowSearch(),this.addOptionToSlot(),this.initAria(),this.syncFormValue(),this._events.on(this._slot,`slotchange`,this.addOptionToSlot).on(this,`keydown`,this.keydownSelect).on(this,`focusin`,()=>{clearTimeout(this.removeTimeId),this.removeTimeId=void 0}),this._floating.bindOutside(this._events,this.clickRemoveSelect),this.trigger.includes(`hover`)&&!l()&&this._events.on(this,`mouseenter`,this.selectMouseDown).on(this,`mouseleave`,this.selectBlur),this.trigger.includes(`click`)&&this._events.on(this,`click`,this.selectMouseDown).on(this,`blur`,this.selectBlur),this.reapplyValueAfterConnect(),this._syncPlaceholder(),this.open&&this._applyOpen()}reapplyValueAfterConnect=()=>{let e=this.getAttribute(`value`);e&&(this._activeOption=void 0,this.syncSelectedFromValue(e))};_applyShowSearch=()=>{this._searchEvents.abort(),this._composing=!1,this._lastSearchValue=void 0,this.hasAttribute(`showsearch`)&&(this.onSearch=this.changeSearch,this._searchEvents.on(this._search,`keydown`,e=>{e.stopPropagation(),this.keydownSelect(e)}).on(this._search,`input`,this.onSearch).on(this._search,`change`,this.onSearch).on(this._search,`compositionstart`,()=>{this._composing=!0}).on(this._search,`compositionend`,e=>{this._composing=!1,this.changeSearch(e)}).on(this._search,`click`,e=>{e.stopPropagation(),this.open||this.selectMouseDown(e)}))};disconnectedCallback(){this._events.abort(),this._searchEvents.abort(),this._composing=!1,clearTimeout(this.removeTimeId),this.removeTimeId=void 0,this._floating.destroy(),this._selectionDropdown?.style.setProperty(`display`,`none`),this._selectionDropdown?.removeAttribute(`transit`),this._typeaheadBuffer=``,this.removeSelectDropdown(),clearTimeout(this._typeaheadTimeId)}attributeChangedCallback(e,t,n){t!==n&&(e===`disabled`&&this._select&&(this.disabled?(this._select.setAttribute(`disabled`,``),this._selection.setAttribute(`disabled`,``),this.setAttribute(`aria-disabled`,`true`),this.tabIndex=-1,this._search.disabled=!0,this.hide(),this._cancelDropdownClose(),clearTimeout(this._typeaheadTimeId),this._typeaheadBuffer=``,typeof document<`u`&&document.activeElement===this&&this.blur()):(this._select.removeAttribute(`disabled`),this._selection.removeAttribute(`disabled`),this.removeAttribute(`aria-disabled`),this._search.disabled=!1,(this.tabIndex<0||!this.hasAttribute(`tabindex`))&&(this.tabIndex=0))),e===`value`&&this.syncSelectedFromValue(n),e===`placeholder`&&this._syncPlaceholder(),(e===`required`||e===`disabled`)&&this._updateValidity(),e===`sheet`&&this._shadowDom&&this.handlerExternalCss(),e===`label`&&this._shadowDom&&this._syncLabel(n),e===`defaultvalue`&&(this._pendingDefaultValue=!0,this.setDefaultValue()),e===`showsearch`&&this._search&&this._applyShowSearch(),e===`open`&&this._applyOpen(),e===`dropdownsurface`&&this._selectionDropdown&&(n?this._selectionDropdown.setAttribute(`surface`,n):this._selectionDropdown.removeAttribute(`surface`),this._syncGlassMenuChrome()),e===`dropdownclass`&&this._selectionDropdown&&this._selectionDropdown.setAttribute(`class`,n||``))}syncSelectedFromValue=e=>{if(this._pendingDefaultValue=!1,!e){this._clearSelection();return}let t=Array.from(this.querySelectorAll(`r-option`)).find(t=>t.getAttribute(`value`)===e);if(!t)return;let n=t.getAttribute(`title`)||t.textContent?.trim()||``;this._text.textContent!==n&&this.selectOptionElement(t,!1)};_preSerialize(){let e=this.getAttribute(`label`);e!=null&&this._syncLabel(e);let t=this.getAttribute(`value`);if(!t||!this._text)return;let n=Array.from(this.querySelectorAll(`r-option`)).find(e=>e.getAttribute(`value`)===t),r=n&&(n.getAttribute(`title`)||n.textContent?.trim())||``;r||=this._labelFromSerializedOptions(t),r&&(this._text.textContent=r)}_labelFromSerializedOptions(e){try{for(let t of Array.from(this.querySelectorAll(`r-option`)))if(t.getAttribute(`value`)===e)return(t.textContent||``).replace(/\s+/g,` `).trim()}catch{}let t=this.innerHTML||``;if(!t.includes(`r-option`))return``;if(typeof DOMParser<`u`)try{let n=new DOMParser().parseFromString(`<div>${t}</div>`,`text/html`);return Array.from(n.querySelectorAll(`r-option`)).find(t=>t.getAttribute(`value`)===e)?.textContent?.replace(/\s+/g,` `).trim()||``}catch{}let n=0;for(;n<t.length;){let r=t.indexOf(`<r-option`,n);if(r===-1)break;let i=t.indexOf(`>`,r);if(i===-1)break;let a=t.indexOf(`</r-option>`,i+1);if(a===-1)break;let o=t.slice(r+9,i);if(o.includes(`value="${e}"`)||o.includes(`value='${e}'`)){let e=t.slice(i+1,a),n=0;for(;n<e.length;){let t=e.indexOf(`<template`,n);if(t===-1)break;let r=e.indexOf(`</template>`,t);if(r===-1)break;e=e.slice(0,t)+e.slice(r+11),n=t}if(!e.includes(`<`))return e.replace(/\s+/g,` `).trim()}n=a+11}return``}});var ro=`:host{box-sizing:border-box;width:var(--ran-colorpicker-width, var(--ran-size-7, 32px));min-width:var(--ran-colorpicker-min-width, var(--ran-size-7, 32px));height:var(--ran-colorpicker-height, var(--ran-size-7, 32px));border-radius:var(--ran-colorpicker-border-radius, var(--ran-radius-sm, 8px));border:var(--ran-colorpicker-border, 1px solid var(--ran-color-border-control, #8a8a94));cursor:pointer;display:var(--ran-colorpicker-host-display, inline-flex);align-items:center;justify-content:center;transition:var(--ran-colorpicker-transition, none);background:var(--ran-colorpicker-background, var(--ran-color-bg-elevated, #ffffff));padding:var(--ran-colorpicker-padding, 5px)}@media(hover:hover){:host(:hover:not([disabled]:not([disabled="false"]))){border-color:var(--ran-colorpicker-hover-border-color, var(--ran-color-border-control-hover, #55555e))}}:host([disabled]:not([disabled="false"])){cursor:var(--ran-colorpicker-disabled-cursor, not-allowed);opacity:var(--ran-colorpicker-disabled-opacity, 1);background:var(--ran-colorpicker-disabled-background, var(--ran-color-bg-subtle, #f7f7f8));border-color:var(--ran-colorpicker-disabled-border-color, var(--ran-color-border, #e4e4e8))}.ran-colorpicker-block{position:relative;border-radius:var(--ran-colorpicker-block-border-radius, var(--ran-radius-xs, 4px));width:var(--ran-colorpicker-block-width, 20px);height:var(--ran-colorpicker-block-height, 20px);box-shadow:inset 0 0 0 1px var(--ran-gray-alpha-200);background-image:conic-gradient(var(--ran-gray-alpha-100) 0 25%,transparent 0 50%,var(--ran-gray-alpha-100) 0 75%,transparent 0);background-size:50% 50%;outline:none}.ran-colorpicker-block:focus-visible{box-shadow:var(--ran-colorpicker-focus-ring, var(--ran-focus-ring))}.ran-colorpicker-block[disabled]{cursor:var(--ran-colorpicker-disabled-cursor, not-allowed)}.ran-colorpicker-inner{width:100%;height:100%;border-radius:inherit}`,io=`.ran-color-picker-inner{box-sizing:border-box}.ran-color-picker-inner-content{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--ran-space-3);width:224px;padding:var(--ran-space-3);font-family:var(--ran-font-family, inherit)}.ran-color-picker-inner-content *,.ran-color-picker-inner-content *:before,.ran-color-picker-inner-content *:after{box-sizing:border-box}.ran-color-picker-palette{position:relative;width:100%;height:160px;border-radius:var(--ran-radius-sm, 6px);overflow:hidden;cursor:crosshair;box-shadow:inset 0 0 0 1px var(--ran-gray-alpha-200);touch-action:none}.ran-color-picker-saturation{position:absolute;inset:0;border-radius:inherit;background-image:linear-gradient(to top,#000,#0000),linear-gradient(to right,#fff,#fff0)}.ran-color-picker-palette-dot{position:absolute;top:0;left:0;z-index:2;width:14px;height:14px;transform:translate(-50%,-50%);border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #0003,0 1px 3px #00000059;pointer-events:none}.ran-color-picker-controls{display:flex;align-items:center;gap:var(--ran-space-3)}.ran-color-picker-preview{position:relative;flex:none;width:28px;height:28px;border-radius:50%;overflow:hidden;box-shadow:inset 0 0 0 1px var(--ran-gray-alpha-200);background-image:conic-gradient(var(--ran-gray-alpha-100) 0 25%,transparent 0 50%,var(--ran-gray-alpha-100) 0 75%,transparent 0);background-size:12px 12px}.ran-color-picker-preview-inner{position:absolute;inset:0;border-radius:inherit}.ran-color-picker-sliders{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--ran-space-3)}.ran-color-picker-slider{position:relative;height:10px;border-radius:999px;cursor:pointer;box-shadow:inset 0 0 0 1px var(--ran-gray-alpha-200);touch-action:none}.ran-color-picker-slider-hue{background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.ran-color-picker-slider-alpha{background-image:conic-gradient(var(--ran-gray-alpha-100) 0 25%,transparent 0 50%,var(--ran-gray-alpha-100) 0 75%,transparent 0);background-size:8px 8px}.ran-color-picker-slider-alpha-track{position:absolute;inset:0;border-radius:inherit}.ran-color-picker-slider-thumb{position:absolute;top:50%;left:0;z-index:1;width:14px;height:14px;transform:translate(-50%,-50%);border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #0003,0 1px 3px #00000059;pointer-events:none}.ran-color-picker-input-container{display:flex;align-items:center;gap:var(--ran-space-2)}.ran-color-picker-format{flex:none;width:68px}.ran-color-picker-value{flex:1;min-width:0}`,ao=Rn({en:{"colorpicker.alpha":`Alpha opacity`,"colorpicker.hue":`Hue`,"colorpicker.label":`Choose color`},zh:{"colorpicker.alpha":`不透明度`,"colorpicker.hue":`色相`,"colorpicker.label":`选择颜色`},ja:{"colorpicker.alpha":`不透明度`,"colorpicker.hue":`色相`,"colorpicker.label":`色を選択`},ko:{"colorpicker.alpha":`불투명도`,"colorpicker.hue":`색조`,"colorpicker.label":`색상 선택`},es:{"colorpicker.alpha":`Opacidad`,"colorpicker.hue":`Tono`,"colorpicker.label":`Elegir color`},pt:{"colorpicker.alpha":`Opacidade`,"colorpicker.hue":`Matiz`,"colorpicker.label":`Escolher cor`},de:{"colorpicker.alpha":`Deckkraft`,"colorpicker.hue":`Farbton`,"colorpicker.label":`Farbe auswählen`},fa:{"colorpicker.alpha":`میزان کدری`,"colorpicker.hue":`فام`,"colorpicker.label":`انتخاب رنگ`}});x(),He(),H(),L(),B(),X();var oo=360,so=class extends V{colorpicker;colorpickerInner;context;_shadowDom;_events=new h;_effectDisposers=[];popoverBlock;popoverContent;colorPickerInner;colorPickerPalette;colorPickerSaturation;colorPickerPaletteDot;colorPickerHueSlider;colorPickerHueThumb;colorPickerAlphaSlider;colorPickerAlphaTrack;colorPickerAlphaThumb;colorPickerPreviewInner;colorPickerValueInput;colorPickerFormatSelect;colorPickerPaletteSelect;_activeSlider=null;_format=`HEX`;_editingInput=!1;static get observedAttributes(){return[`disabled`,`value`,`sheet`,`label`,`hue-label`,`alpha-label`]}constructor(){super(),this._shadowDom=W(this,ro);let e=M(),t=M(),n=M(),r=F().class(`ran-colorpicker-inner`).ref(n).part(`swatch`).build(),i=F().class(`ran-colorpicker-block`).ref(t).part(`block`).children(r).build(),a=P(`r-content`).ref(e).class(`ran-content`).build(),o=P(`r-popover`).class(`ran-popover`).attr(`trigger`,`click`).cssVar(`ran-popover-content-padding`,`0`).children(i,a).build();G(this._shadowDom,ro,o),this.popoverBlock=o,this.popoverContent=K(e,`r content`),this.colorpicker=K(t,`block`),this.colorpickerInner=K(n,`inner`),this.colorpicker.setAttribute(`role`,`button`),this.colorpicker.setAttribute(`tabindex`,`0`),this.colorpicker.setAttribute(`aria-haspopup`,`dialog`),this.colorpicker.setAttribute(`aria-label`,this.label),this.colorPickerPaletteSelect=!1,this.createContext()}get label(){return q(this,`label`,Q(ao,`colorpicker.label`,this))}set label(e){J(this,`label`,e)}get hueLabel(){return q(this,`hue-label`,Q(ao,`colorpicker.hue`,this))}set hueLabel(e){J(this,`hue-label`,e)}get alphaLabel(){return q(this,`alpha-label`,Q(ao,`colorpicker.alpha`,this))}set alphaLabel(e){J(this,`alpha-label`,e)}get value(){return this.context?.value.getter()||``}set value(e){this.setAttribute(`value`,e)}get sheet(){return q(this,`sheet`)}set sheet(e){J(this,`sheet`,e)}get disabled(){return R(this)}set disabled(e){e===!1||e==null?this.removeAttribute(`disabled`):this.setAttribute(`disabled`,``)}handlerExternalCss=()=>{Y(this,this._shadowDom,`sheet`,null,this.sheet)};syncDisabledState=()=>{let e=R(this);if(this.context?.disabled.setter(e),e?(this.setAttribute(`aria-disabled`,`true`),this.colorpicker?.setAttribute(`disabled`,``)):(this.removeAttribute(`aria-disabled`),this.colorpicker?.removeAttribute(`disabled`)),this.colorpicker?.setAttribute(`aria-disabled`,e?`true`:`false`),this.colorpicker?.setAttribute(`tabindex`,e?`-1`:`0`),e){this.onPointerUp();let e=this._shadowDom.activeElement??this.ownerDocument?.activeElement;e&&(this._shadowDom.contains(e)||this.colorPickerInner?.contains(e))&&e.blur?.(),this.colorPickerFormatSelect?.removeAttribute(`open`),this.popoverBlock.removeAttribute(`open`)}this.colorPickerInner&&(this.colorPickerInner.inert=e),this.colorPickerFormatSelect?.toggleAttribute(`disabled`,e),this.colorPickerValueInput?.toggleAttribute(`disabled`,e)};blockWhenDisabled=e=>{R(this)&&(e.stopImmediatePropagation(),e.preventDefault())};createContext=()=>{let e=e=>{let[t,n]=Te(e);return{getter:t,setter:n}};this.context={value:e(``),disabled:e(!1),hue:e(0),saturation:e(0),lightness:e(100),transparency:e(100)}};currentRgba=()=>{let{hue:e,saturation:t,lightness:n,transparency:r}=this.context,[i,a,o]=he(e.getter(),t.getter(),n.getter());return{r:i,g:a,b:o,a:r.getter()/100}};currentValue=()=>{let{r:e,g:t,b:n,a:r}=this.currentRgba();return r<1?`rgba(${e}, ${t}, ${n}, ${Number(r.toFixed(2))})`:fe(e,t,n)};currentDisplay=()=>{let{r:e,g:t,b:n,a:r}=this.currentRgba();return this._format===`RGB`?r<1?`rgba(${e}, ${t}, ${n}, ${Number(r.toFixed(2))})`:`rgb(${e}, ${t}, ${n})`:fe(e,t,n)};paintSwatch=()=>{let{r:e,g:t,b:n,a:r}=this.currentRgba();this.colorpickerInner?.style.setProperty(`background`,`rgba(${e}, ${t}, ${n}, ${Number(r.toFixed(3))})`)};updateColorValue=e=>{if(e===this.context?.value.getter())return;let t=e.replace(/\s+/g,``),n=ye.exec(e),r=xe.exec(t),i=be.exec(t);if(n){let[e,t,r]=ve(n[0]);this.context.hue.setter(e),this.context.saturation.setter(t),this.context.lightness.setter(r),this.context.transparency.setter(100)}else if(r){let[e,t,n]=ge(Number(r[1]),Number(r[2]),Number(r[3]));this.context.hue.setter(e),this.context.saturation.setter(t),this.context.lightness.setter(n),this.context.transparency.setter(Number(r[4])*100)}else if(i){let[e,t,n]=ge(Number(i[1]),Number(i[2]),Number(i[3]));this.context.hue.setter(e),this.context.saturation.setter(t),this.context.lightness.setter(n),this.context.transparency.setter(100)}else return;this.setAttribute(`value`,e),this.context?.value.setter(e),this.paintSwatch()};emitChange=()=>{if(R(this))return;let e=this.currentValue(),{r:t,g:n,b:r,a:i}=this.currentRgba();this.context?.value.setter(e),this.setAttribute(`value`,e),this.dispatchEvent(new CustomEvent(`change`,{detail:{value:e,hex:fe(t,n,r),rgb:`rgb(${t}, ${n}, ${r})`,rgba:`rgba(${t}, ${n}, ${r}, ${Number(i.toFixed(2))})`,alpha:Number(i.toFixed(2))},bubbles:!0,composed:!0}))};palettePointerDown=e=>{R(this)||(e.preventDefault(),this.colorPickerPaletteSelect=!0,this.updatePaletteFromEvent(e))};updatePaletteFromEvent=e=>{if(R(this)||!this.colorPickerPalette)return;let{left:t,top:n,width:r,height:a}=this.colorPickerPalette.getBoundingClientRect();if(!r||!a)return;let o=i(e.clientX-t,0,r),s=i(e.clientY-n,0,a);this.context.saturation.setter(o/r*100),this.context.lightness.setter((1-s/a)*100),this.emitChange()};sliderPointerDown=e=>t=>{R(this)||(t.preventDefault(),this._activeSlider=e,this.updateSliderFromEvent(e,t))};updateSliderFromEvent=(e,t)=>{if(R(this))return;let n=e===`hue`?this.colorPickerHueSlider:this.colorPickerAlphaSlider;if(!n)return;let{left:r,width:a}=n.getBoundingClientRect();if(!a)return;let o=i(t.clientX-r,0,a)/a;e===`hue`?this.context.hue.setter(o*oo):this.context.transparency.setter(o*100),this.emitChange()};onPointerMove=e=>{let t=e;this.colorPickerPaletteSelect?this.updatePaletteFromEvent(t):this._activeSlider&&this.updateSliderFromEvent(this._activeSlider,t)};syncLabels=()=>{this.colorpicker.setAttribute(`aria-label`,this.label),this.colorPickerHueSlider?.setAttribute(`aria-label`,this.hueLabel),this.colorPickerAlphaSlider?.setAttribute(`aria-label`,this.alphaLabel)};initSliderA11y=(e,t,n)=>{e.setAttribute(`role`,`slider`),e.setAttribute(`tabindex`,`0`),e.setAttribute(`aria-label`,t),e.setAttribute(`aria-orientation`,`horizontal`),e.setAttribute(`aria-valuemin`,`0`),e.setAttribute(`aria-valuemax`,String(n))};sliderKeydown=e=>t=>{if(R(this))return;let n=e===`hue`?oo:100,r=e===`hue`?this.context.hue:this.context.transparency,a=On(t,{current:r.getter(),min:0,max:n,step:1});a!==void 0&&(t.preventDefault(),r.setter(i(a,0,n)),this.emitChange())};onPointerUp=()=>{this.colorPickerPaletteSelect=!1,this._activeSlider=null};onSwatchKeydown=e=>{R(this)||kn(e)&&(e.preventDefault(),this.colorpicker?.click())};onValueInput=e=>{if(R(this))return;let t=e.target,n=e.detail?.value??t?.value;typeof n==`string`&&(this._editingInput=!0,this.updateColorValue(n.trim()),this._editingInput=!1,this.emitChange())};onFormatChange=e=>{if(R(this))return;let t=e.detail?.value;this._format=t===`RGB`?`RGB`:`HEX`,this.syncValueInput()};syncValueInput=()=>{!this._editingInput&&this.colorPickerValueInput&&(this.colorPickerValueInput.value=this.currentDisplay())};setupEffects=()=>{this._effectDisposers.push(C(()=>{let[e,t,n]=he(this.context.hue.getter(),100,100);this.colorPickerSaturation?.style.setProperty(`background-color`,`rgb(${e}, ${t}, ${n})`)}),C(()=>{let e=i(this.context.saturation.getter(),0,100),t=i(this.context.lightness.getter(),0,100);this.colorPickerPaletteDot?.style.setProperty(`left`,`${e}%`),this.colorPickerPaletteDot?.style.setProperty(`top`,`${100-t}%`)}),C(()=>{let e=this.context.hue.getter(),[t,n,r]=he(e,100,100);this.colorPickerHueThumb?.style.setProperty(`left`,`${e/oo*100}%`),this.colorPickerHueThumb?.style.setProperty(`background`,`rgb(${t}, ${n}, ${r})`),this.colorPickerHueSlider?.setAttribute(`aria-valuenow`,String(Math.round(e)))}),C(()=>{let{r:e,g:t,b:n,a:r}=this.currentRgba(),i=`rgb(${e}, ${t}, ${n})`,a=`rgba(${e}, ${t}, ${n}, ${Number(r.toFixed(3))})`;this.colorPickerAlphaTrack?.style.setProperty(`background`,`linear-gradient(to right, rgba(${e}, ${t}, ${n}, 0), ${i})`),this.colorPickerAlphaThumb?.style.setProperty(`left`,`${r*100}%`),this.colorPickerAlphaThumb?.style.setProperty(`background`,a),this.colorPickerPreviewInner?.style.setProperty(`background`,a),this.colorpickerInner?.style.setProperty(`background`,a),this.colorPickerAlphaSlider?.setAttribute(`aria-valuenow`,String(Math.round(r*100))),this.colorPickerAlphaSlider?.setAttribute(`aria-valuetext`,`${Math.round(r*100)}%`),this.syncValueInput()}))};disposeEffects=()=>{for(let e of this._effectDisposers)e();this._effectDisposers=[]};openColorPicker=()=>{if(R(this)||this.colorPickerInner)return;this.colorPickerSaturation=F().class(`ran-color-picker-saturation`).build(),this.colorPickerPaletteDot=F().class(`ran-color-picker-palette-dot`).build(),this.colorPickerPalette=F().class(`ran-color-picker-palette`).on(`pointerdown`,this.palettePointerDown).children(this.colorPickerSaturation,this.colorPickerPaletteDot).build(),this.colorPickerPreviewInner=F().class(`ran-color-picker-preview-inner`).build();let e=F().class(`ran-color-picker-preview`).children(this.colorPickerPreviewInner).build();this.colorPickerHueThumb=F().class(`ran-color-picker-slider-thumb`).build(),this.colorPickerHueSlider=F().class(`ran-color-picker-slider ran-color-picker-slider-hue`).on(`pointerdown`,this.sliderPointerDown(`hue`)).on(`keydown`,this.sliderKeydown(`hue`)).children(this.colorPickerHueThumb).build(),this.initSliderA11y(this.colorPickerHueSlider,this.hueLabel,oo),this.colorPickerAlphaTrack=F().class(`ran-color-picker-slider-alpha-track`).build(),this.colorPickerAlphaThumb=F().class(`ran-color-picker-slider-thumb`).build(),this.colorPickerAlphaSlider=F().class(`ran-color-picker-slider ran-color-picker-slider-alpha`).on(`pointerdown`,this.sliderPointerDown(`alpha`)).on(`keydown`,this.sliderKeydown(`alpha`)).children(this.colorPickerAlphaTrack,this.colorPickerAlphaThumb).build(),this.initSliderA11y(this.colorPickerAlphaSlider,this.alphaLabel,100);let t=F().class(`ran-color-picker-sliders`).children(this.colorPickerHueSlider,this.colorPickerAlphaSlider).build(),n=F().class(`ran-color-picker-controls`).children(e,t).build();this.colorPickerFormatSelect=P(`r-select`).class(`ran-color-picker-format`).attr(`value`,this._format).attr(`defaultValue`,this._format).attr(`trigger`,`click`).children(...[`HEX`,`RGB`].map(e=>P(`r-option`).attr(`value`,e).text(e).build())).on(`change`,this.onFormatChange).build(),this.colorPickerValueInput=P(`r-input`).class(`ran-color-picker-value`).on(`change`,this.onValueInput).build();let r=F().class(`ran-color-picker-input-container`).children(this.colorPickerFormatSelect,this.colorPickerValueInput).build(),i=F().class(`ran-color-picker-inner-content`).children(this.colorPickerPalette,n,r).build();this.colorPickerInner=F().class(`ran-color-picker-inner`).children(At().text(io).build(),i).build(),this.popoverContent.appendChild(this.colorPickerInner),this.setupEffects(),this.syncValueInput()};connectedCallback(){this.handlerExternalCss(),this.setAttribute(`class`,`ran-colorpicker`),this._events.on(this,`click`,this.blockWhenDisabled,{capture:!0}),this._events.on(this,`keydown`,this.blockWhenDisabled,{capture:!0}),this._events.on(this.popoverBlock,`click`,this.openColorPicker),this._events.on(this.colorpicker,`keydown`,this.onSwatchKeydown),this._events.on(document,`pointermove`,this.onPointerMove),this._events.on(document,`pointerup`,this.onPointerUp),this._events.on(document,`pointercancel`,this.onPointerUp),this.syncDisabledState(),this.syncLabels(),this.value&&this.updateColorValue(this.value),this.paintSwatch(),this.colorPickerInner&&this._effectDisposers.length===0&&this.setupEffects()}disconnectedCallback(){this._events.abort(),this.disposeEffects()}attributeChangedCallback(e,t,n){t!==n&&(e===`value`&&this.updateColorValue(n),e===`disabled`&&this.syncDisabledState(),e===`sheet`&&this.handlerExternalCss(),(e===`label`||e===`hue-label`||e===`alpha-label`)&&this.syncLabels())}};return z(`r-colorpicker`,so),e.ColorPicker=so,e.default=so,e})({});
@@ -0,0 +1 @@
1
+ var ranui_content=(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=`:host{visibility:hidden;position:absolute}`,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}},ee=(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)}}},c=0,l=1,u=2,d=null,f=null,p=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,u);p===0&&S()}}]}function _(e){let t=te(e,!0);return ne(t),w(t),()=>E(t)}function v(e){let t=d;d=null;try{return e()}finally{d=t}}function y(e){let t={owned:[],cleanups:[],owner:f},n=f,r=d;f=t,d=null;try{return e(()=>ie(t))}finally{f=n,d=r}}function b(e){f&&f.cleanups.push(e)}function te(e,t,n){return{fn:e,sources:new Set,isEffect:t,running:!1,disposed:!1,state:u,observers:new Set,value:void 0,equals:n??Object.is,owned:[],cleanups:[],owner:f}}function ne(e){f&&f.owned.push(e)}function re(e){d&&(d.sources.add(e),e.observers.add(d))}function x(e,t){if(e.disposed||e.state>=t)return;let n=e.state===c;if(e.state=t,e.isEffect)m.add(e);else if(n)for(let t of e.observers)x(t,l)}function S(){if(!(p>0||h)){h=!0;try{for(;m.size>0;){let e=[...m];m.clear();for(let t of e)t.disposed||C(t)}}finally{h=!1}}}function C(e){if(!(e.disposed||e.state===c)){if(e.state===l)for(let t of e.sources)`fn`in t&&C(t);e.state===u&&w(e),e.state=c}}function w(e){if(e.running)throw Error(`ranview reactivity: cyclic dependency detected (a computation triggered itself).`);T(e);let t=d,n=f;d=e,f=e,e.running=!0,e.state=c;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,u)}}finally{e.running=!1,d=t,f=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 ie(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 i(e)}var O=e=>typeof e!=`string`&&`tagName`in e&&`childrenList`in e,k=`.#[`;function ae(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&&!k.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 oe=(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()},se=(e,t)=>{let n=t.trim();if(!n)return!1;let r=ae(n);return r!==null&&r.every(t=>oe(e,t))},A=(e,t,n)=>{for(let r of e)O(r)&&(se(r,t)&&n.push(r),A(r.childrenList,t,n))};function j(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 M=class{childrenList=[];appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return j(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 A(this.childrenList,e,t),t}},ce=new Map,N=class{tagName;attributes=new Map;_inlineStyles=null;get inlineStyles(){return this._inlineStyles??ce}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 M)}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 j(this.childrenList,e,t)}attachShadow(e){return this.shadowRoot=new le(this,e),this.shadowRoot}querySelector(e){let t=this.querySelectorAll(e);return t.length>0?t[0]:null}querySelectorAll(e){let t=[];return A(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(`;`):``,a=r?` style="${D(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 M,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}>`}},le=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 M))}appendChild(e){return this.childrenList.push(e),e}insertBefore(e,t){return j(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 A(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 M,e.serialize())).join(``)}</template>`}},P={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)){P.append(e,r);continue}if(typeof r==`function`){P.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 I?r.build():typeof r==`string`&&!n?document.createTextNode(r):r;e.appendChild(t)}}},ue=`http://www.w3.org/2000/svg`,F=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(`.`)),I=class{runtime;el;constructor(e,t,r=P){this.runtime=r;let i=t??(F.has(e)?`http://www.w3.org/2000/svg`:void 0);this.el=n?new N(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 L(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}},L=class{runtime;root;hostEl;constructor(e,t,n,r=P){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}},R=e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(R(t)):e.concat(t),[]),z=e=>e==null?null:e instanceof I?e.build():typeof e==`string`?n?e:document.createTextNode(e):e,B=(e,t)=>{if(n){G(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=>(G(n,[e]),t)),i.parentNode?.insertBefore(n,i)}),b(()=>a?.())},V=`__ranFor`,H=e=>typeof e==`object`&&!!e&&e[V]===!0,U=(e,t,n)=>{let[r,i]=g(t),a=null,o=y(t=>{let i=z(n(e,r));return a=typeof i==`string`?document.createTextNode(i):i,t});return{node:a,index:i,dispose:o}},W=(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},de=(e,t)=>{if(n){(t.each()??[]).forEach((n,r)=>{let i=z(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)){ge()&&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=U(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();W(r,a),i=n})},fe=`__ranIndex`,pe=e=>typeof e==`object`&&!!e&&e[fe]===!0,me=(e,t,n)=>{let[r,i]=g(e),a=null,o=y(e=>{let i=z(n(r,t));return a=typeof i==`string`?document.createTextNode(i):i,e});return{node:a,setItem:i,dispose:o}},he=(e,t)=>{if(n){(t.each()??[]).forEach((n,r)=>{let i=z(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(me(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()}W(r,i.map(e=>e.node).filter(e=>e!=null))})},G=(e,t)=>{n?v(()=>K(e,t)):K(e,t)},K=(e,t)=>{R(t).forEach(t=>{if(H(t)){de(e,t);return}if(pe(t)){he(e,t);return}if(typeof t==`function`){B(e,t);return}let n=z(t);n!=null&&e.appendChild(n)})},ge=()=>!1,_e={bind(e,t){typeof e==`function`?n?v(()=>t(e())):_(()=>t(e())):t(e)},append:G},ve=class extends I{constructor(e,t){super(e,t,_e)}};function ye(e){let t=t=>new e(t);return{View:t,Div:()=>t(`div`),Svg:t=>new e(t,ue),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:be,Div:xe,Svg:Se,Span:Ce,Slot:we,ButtonBuilder:Te,InputBuilder:Ee,Style:De,Label:Oe,Ul:ke,Li:Ae,Section:je,Article:Me,Nav:Ne,Header:Pe,Footer:Fe,Main:Ie,DeclarativeShadow:Le}=ye(ve),Re=new Map;function ze(e,t){n?(Re.set(e,t),t.prototype._ssrTag=e):customElements.get(e)||customElements.define(e,t)}var Be=typeof document<`u`?HTMLElement:N,q=`data-ranui`,J=(e,t)=>{if(typeof document>`u`&&t){let n=e.adoptedStyleSheets;Array.isArray(n)&&!n.includes(t)&&n.push(t)}ee(e,t,q)},Y=new WeakMap,X=new WeakMap,Ve=`@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}`,He=`:host([hidden]){display:none}`,Z=new Map,Q=e=>{let t=Z.get(e);if(t!==void 0)return t;let n=`${He}\n${Ve}`,r=e?`${e}\n${n}`:n;return Z.set(e,r),r},Ue=e=>{let t=X.get(e);if(t)return t;try{let t=e.attachInternals;if(typeof t!=`function`)return;let n=t.call(e);return X.set(e,n),n}catch{return}},We=(e,t=``,n={mode:`closed`},r)=>{let i=r??Ue(e),a=e.shadowRoot||Y.get(e)||i?.shadowRoot||e.attachShadow(n);return Y.set(e,a),J(a,Q(t)),a},Ge=(e,t,...n)=>{e.replaceChildren(...n),J(e,Q(t))},$=class extends Be{observer;_shadowDom;_slot;constructor(){super(),this._shadowDom=We(this,t);let e=we().class(`slot`).build();Ge(this._shadowDom,t,e),this._slot=e,this.observer=new MutationObserver(this.callback)}callback=e=>{let t=e.filter(e=>e.type===`childList`||e.type===`attributes`);if(!t.length)return;let n=t[t.length-1];this.dispatchEvent(new CustomEvent(`change`,{detail:{type:t.some(e=>e.type===`childList`)?`childList`:`attributes`,value:{content:this.children,mutation:n,mutations:t}}}))};connectedCallback(){this.observer.observe(this,{attributes:!0,childList:!0,subtree:!0})}disconnectedCallback(){this.observer.disconnect()}};return ze(`r-content`,$),e.Content=$,e.default=$,e})({});