3 lines
8.2 KiB
JavaScript
3 lines
8.2 KiB
JavaScript
import{R as X,z as Y,ap as M,J as q,P as z,A as L,aP as m,b0 as x,b1 as r0,V as e0,b2 as i0,g as f0,b3 as t0,G as j,b4 as s0,b5 as a0,b6 as u0,b7 as l0,U as o0,b8 as c0,b9 as n0,ba as v0,bb as d0,bc as b0,bd as g0}from"./bc36GTfJ.js";function _0(r,f){if(f){const e=document.body;r.autofocus=!0,X(()=>{document.activeElement===e&&r.focus()})}}let U=!1;function h0(){U||(U=!0,document.addEventListener("reset",r=>{Promise.resolve().then(()=>{if(!r.defaultPrevented)for(const f of r.target.elements)f.__on_r?.()})},{capture:!0}))}function C0(r,f){var e=void 0,i;Y(()=>{e!==(e=f())&&(i&&(M(i),i=null),e&&(i=q(()=>{z(()=>e(r))})))})}function D(r){var f,e,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var t=r.length;for(f=0;f<t;f++)r[f]&&(e=D(r[f]))&&(i&&(i+=" "),i+=e)}else for(e in r)r[e]&&(i&&(i+=" "),i+=e);return i}function A0(){for(var r,f,e=0,i="",t=arguments.length;e<t;e++)(r=arguments[e])&&(f=D(r))&&(i&&(i+=" "),i+=f);return i}function p0(r){return typeof r=="object"?A0(r):r??""}const H=[...`
|
||
\r\f \v\uFEFF`];function L0(r,f,e){var i=r==null?"":""+r;if(f&&(i=i?i+" "+f:f),e){for(var t in e)if(e[t])i=i?i+" "+t:t;else if(i.length)for(var s=t.length,l=0;(l=i.indexOf(t,l))>=0;){var n=l+s;(l===0||H.includes(i[l-1]))&&(n===i.length||H.includes(i[n]))?i=(l===0?"":i.substring(0,l))+i.substring(n+1):l=n}}return i===""?null:i}function R(r,f=!1){var e=f?" !important;":";",i="";for(var t in r){var s=r[t];s!=null&&s!==""&&(i+=" "+t+": "+s+e)}return i}function I(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function N0(r,f){if(f){var e="",i,t;if(Array.isArray(f)?(i=f[0],t=f[1]):i=f,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,n=!1,c=[];i&&c.push(...Object.keys(i).map(I)),t&&c.push(...Object.keys(t).map(I));var v=0,A=-1;const p=r.length;for(var d=0;d<p;d++){var a=r[d];if(n?a==="/"&&r[d-1]==="*"&&(n=!1):s?s===a&&(s=!1):a==="/"&&r[d+1]==="*"?n=!0:a==='"'||a==="'"?s=a:a==="("?l++:a===")"&&l--,!n&&s===!1&&l===0){if(a===":"&&A===-1)A=d;else if(a===";"||d===p-1){if(A!==-1){var C=I(r.substring(v,A).trim());if(!c.includes(C)){a!==";"&&d++;var N=r.substring(v,d).trim();e+=" "+N+";"}}v=d+1,A=-1}}}}return i&&(e+=R(i)),t&&(e+=R(t,!0)),e=e.trim(),e===""?null:e}return r==null?null:String(r)}function S0(r,f,e,i,t,s){var l=r.__className;if(L||l!==e||l===void 0){var n=L0(e,i,s);(!L||n!==r.getAttribute("class"))&&(n==null?r.removeAttribute("class"):f?r.className=n:r.setAttribute("class",n)),r.__className=e}else if(s&&t!==s)for(var c in s){var v=!!s[c];(t==null||v!==!!t[c])&&r.classList.toggle(c,v)}return s}function O(r,f={},e,i){for(var t in e){var s=e[t];f[t]!==s&&(e[t]==null?r.style.removeProperty(t):r.style.setProperty(t,s,i))}}function w0(r,f,e,i){var t=r.__style;if(L||t!==f){var s=N0(f,i);(!L||s!==r.getAttribute("style"))&&(s==null?r.removeAttribute("style"):r.style.cssText=s),r.__style=f}else i&&(Array.isArray(i)?(O(r,e?.[0],i[0]),O(r,e?.[1],i[1],"important")):O(r,e,i));return i}function P(r,f,e=!1){if(r.multiple){if(f==null)return;if(!m(f))return x();for(var i of r.options)i.selected=f.includes(Z(i));return}for(i of r.options){var t=Z(i);if(r0(t,f)){i.selected=!0;return}}(!e||f!==void 0)&&(r.selectedIndex=-1)}function E0(r){var f=new MutationObserver(()=>{P(r,r.__value)});f.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),e0(()=>{f.disconnect()})}function Z(r){return"__value"in r?r.__value:r.value}const w=Symbol("class"),E=Symbol("style"),G=Symbol("is custom element"),K=Symbol("is html");function T0(r){if(L){var f=!1,e=()=>{if(!f){if(f=!0,r.hasAttribute("value")){var i=r.value;T(r,"value",null),r.value=i}if(r.hasAttribute("checked")){var t=r.checked;T(r,"checked",null),r.checked=t}}};r.__on_r=e,c0(e),h0()}}function y0(r,f){f?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function T(r,f,e,i){var t=F(r);L&&(t[f]=r.getAttribute(f),f==="src"||f==="srcset"||f==="href"&&r.nodeName==="LINK")||t[f]!==(t[f]=e)&&(f==="loading"&&(r[d0]=e),e==null?r.removeAttribute(f):typeof e!="string"&&J(r).includes(f)?r[f]=e:r.setAttribute(f,e))}function I0(r,f,e,i,t=!1,s=!1){if(L&&t&&r.tagName==="INPUT"){var l=r,n=l.type==="checkbox"?"defaultChecked":"defaultValue";n in e||T0(l)}var c=F(r),v=c[G],A=!c[K];let d=L&&v;d&&j(!1);var a=f||{},C=r.tagName==="OPTION";for(var N in f)N in e||(e[N]=null);e.class?e.class=p0(e.class):e[w]&&(e.class=null),e[E]&&(e.style??=null);var p=J(r);for(const u in e){let o=e[u];if(C&&u==="value"&&o==null){r.value=r.__value="",a[u]=o;continue}if(u==="class"){var h=r.namespaceURI==="http://www.w3.org/1999/xhtml";S0(r,h,o,i,f?.[w],e[w]),a[u]=o,a[w]=e[w];continue}if(u==="style"){w0(r,o,f?.[E],e[E]),a[u]=o,a[E]=e[E];continue}var k=a[u];if(!(o===k&&!(o===void 0&&r.hasAttribute(u)))){a[u]=o;var V=u[0]+u[1];if(V!=="$$")if(V==="on"){const _={},S="$$"+u;let b=u.slice(2);var y=b0(b);if(s0(b)&&(b=b.slice(0,-7),_.capture=!0),!y&&k){if(o!=null)continue;r.removeEventListener(b,a[S],_),a[S]=null}if(o!=null)if(y)r[`__${b}`]=o,u0([b]);else{let Q=function(W){a[u].call(this,W)};a[S]=a0(b,r,Q,_)}else y&&(r[`__${b}`]=void 0)}else if(u==="style")T(r,u,o);else if(u==="autofocus")_0(r,!!o);else if(!v&&(u==="__value"||u==="value"&&o!=null))r.value=r.__value=o;else if(u==="selected"&&C)y0(r,o);else{var g=u;A||(g=l0(g));var $=g==="defaultValue"||g==="defaultChecked";if(o==null&&!v&&!$)if(c[u]=null,g==="value"||g==="checked"){let _=r;const S=f===void 0;if(g==="value"){let b=_.defaultValue;_.removeAttribute(g),_.defaultValue=b,_.value=_.__value=S?b:null}else{let b=_.defaultChecked;_.removeAttribute(g),_.defaultChecked=b,_.checked=S?b:!1}}else r.removeAttribute(u);else $||p.includes(g)&&(v||typeof o!="string")?(r[g]=o,g in c&&(c[g]=o0)):typeof o!="function"&&T(r,g,o)}}}return d&&j(!0),a}function M0(r,f,e=[],i=[],t,s=!1,l=!1){i0(e,i,n=>{var c=void 0,v={},A=r.nodeName==="SELECT",d=!1;if(Y(()=>{var C=f(...n.map(f0)),N=I0(r,c,C,t,s,l);d&&A&&"value"in C&&P(r,C.value);for(let h of Object.getOwnPropertySymbols(v))C[h]||M(v[h]);for(let h of Object.getOwnPropertySymbols(C)){var p=C[h];h.description===t0&&(!c||p!==c[h])&&(v[h]&&M(v[h]),v[h]=q(()=>C0(r,()=>p))),N[h]=p}c=N}),A){var a=r;z(()=>{P(a,c.value,!0),E0(a)})}d=!0})}function F(r){return r.__attributes??={[G]:r.nodeName.includes("-"),[K]:r.namespaceURI===n0}}var B=new Map;function J(r){var f=r.getAttribute("is")||r.nodeName,e=B.get(f);if(e)return e;B.set(f,e=[]);for(var i,t=r,s=Element.prototype;s!==t;){i=g0(t);for(var l in i)i[l].set&&e.push(l);t=v0(t)}return e}const P0="data:image/svg+xml,%3csvg%20width='202'%20height='202'%20viewBox='0%200%20202%20202'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M198%20101C198%2047.4284%20154.572%204%20101%204C63.6769%204%2031.2771%2025.0794%2015.0566%2055.9824C31.5802%2036.8304%2058.3585%2025%2087.5%2025C107.135%2025%20125.868%2030.5962%20141.081%2040.3643C163.17%2054.5475%20177.915%2077.5995%20176.999%20105.066C176.961%20122.231%20171.229%20138.064%20161.595%20150.771L159.861%20153.057L133.999%20112.606L100.778%20164.568L65.0068%20108.618L42.0176%20144.873C57.3037%20166.504%2084.4388%20181%20114.5%20181C149.395%20181%20180.331%20159.267%20193.398%20130.6C196.385%20121.268%20198%20111.323%20198%20101ZM29.0127%20106.222C29.2632%20118.862%2033.0866%20130.771%2039.5967%20141.223L64.9932%20101.171L100.778%20157.143L134%20105.182L160.106%20146.016C168.233%20134.357%20173%20120.186%20173%20104.895H173.002C173.825%2079.7876%20160.762%2058.4662%20140.614%2044.8486L101%20108.688L61.3604%2044.7793C41.8587%2057.6651%2029%2079.7788%2029%20104.895L29.0127%20106.222ZM202%20101C202%20156.781%20156.781%20202%20101%20202V198C134.1%20198%20163.327%20181.42%20180.831%20156.113C164.258%20173.559%20140.379%20185%20114.5%20185C82.6725%20185%2053.8784%20169.41%2037.9658%20146.05C30.0365%20134.409%2025.3017%20120.829%2025.0137%20106.303L25%20104.895C25%2077.6227%2039.3659%2053.7077%2060.9336%2040.3018L62.6338%2039.2441L101%20101.101L137.249%2042.6855C123.002%2033.9863%20105.671%2029%2087.5%2029C51.3264%2029%2019.6837%2047.7188%207.41992%2075.377C5.19019%2083.5392%204%2092.1306%204%20101C4%20154.572%2047.4284%20198%20101%20198V202C45.2192%20202%200%20156.781%200%20101C0%2045.2192%2045.2192%200%20101%200C156.781%200%20202%2045.2192%20202%20101Z'%20fill='%23555'/%3e%3c/svg%3e";export{M0 as a,S0 as b,p0 as c,P0 as f,T as s};
|