You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
131 KiB
19 lines
131 KiB
2 years ago
|
var sa=Object.create;var Ne=Object.defineProperty;var ia=Object.getOwnPropertyDescriptor;var na=Object.getOwnPropertyNames;var oa=Object.getPrototypeOf,ha=Object.prototype.hasOwnProperty;var aa=(t,e)=>{for(var r in e)Ne(t,r,{get:e[r],enumerable:!0})},si=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of na(e))!ha.call(t,i)&&i!==r&&Ne(t,i,{get:()=>e[i],enumerable:!(s=ia(e,i))||s.enumerable});return t};var Wt=(t,e,r)=>(r=t!=null?sa(oa(t)):{},si(e||!t||!t.__esModule?Ne(r,"default",{value:t,enumerable:!0}):r,t)),la=t=>si(Ne({},"__esModule",{value:!0}),t);var Sc={};aa(Sc,{Accessor:()=>ri,CUSTOM_TYPES:()=>Ds,Comment:()=>Nt,Component:()=>xe,CustomEvent:()=>Z,Document:()=>Pt,DocumentFragment:()=>be,Easer:()=>Sr,Element:()=>x,ElementRoute:()=>wr,ElementRouteTo:()=>ei,Emitter:()=>lr,Event:()=>X,EventHandler:()=>ti,Fragment:()=>Yt,HTMLButtonElement:()=>mr,HTMLElement:()=>H,HTMLHtmlElement:()=>cr,HTMLInputElement:()=>fr,HTMLLinkElement:()=>zs,HTMLOptionElement:()=>gr,HTMLScriptElement:()=>Bs,HTMLSelectElement:()=>dr,HTMLStyleElement:()=>Us,HTMLTextAreaElement:()=>pr,ImbaElement:()=>_h,IntersectionEventDefaults:()=>Te,KeyboardEvent:()=>Ks,LazyProxy:()=>Cs,Location:()=>ve,MouseEvent:()=>vr,Node:()=>A,PointerEvent:()=>qs,RenderContext:()=>Lt,Router:()=>xr,SVGElement:()=>Se,SVGSVGElement:()=>Ys,Scheduler:()=>ks,ShadowRoot:()=>uh,StyleDeclaration:()=>Gs,Text:()=>Kt,UIEvent:()=>yr,Window:()=>oh,accessor:()=>Qh,autorun:()=>Rh,awaits:()=>Dh,clearInterval:()=>Is,clearTimeout:()=>As,colors:()=>xh,commit:()=>I,createAtom:()=>Vh,createComment:()=>kt,createComponent:()=>Ws,createDynamic:()=>ph,createElement:()=>ch,createFragment:()=>fh,createIndexedList:()=>vh,createKeyedList:()=>bh,createLiveFragment:()=>yh,createRenderContext:()=>Rs,createSVGElement:()=>dh,createSlot:()=>_e,createTextNode:()=>br,customElements:()=>ah,defineTag:()=>mh,descriptor:()=>Jh,document:()=>ur,emit:()=>ot,env:()=>sh,events:()=>Oh,getDeepPropertyDescriptor:()=>ar,getRenderContext:()=>nh,getSuperTagType:()=>lh,getTagType:()=>ht,get_document:()=>qt,hooks:()=>Hs,hotkeys:()=>Ah,hydrate:()=>Sh,listen:()=>nt,locals:()=>ta,mount:()=>Qs,observable:()=>Gh,once:()=>B,parseTime:()=>Bt,proxy:()=>Ps,render:()=>Th,renderContext:()=>k,renderer:()=>Ut,reportChanged:()=>zh,reportObserved:()=>Uh,router:()=>jh,run:()=>Bh,scheduler:()=>z,serve:()=>rh,session:()=>ea,setInterval:()=>Fs,setTimeout:()=>$s,styles:()=>Xs,toCamelCase:()=>Qo,transitions:()=>we,unlisten:()=>zt,unmount:()=>Js,use_dom_bind:()=>Lh,use_dom_teleport:()=>Nh,use_dom_transitions:()=>Mh,use_events:()=>Eh,use_events_hotkey:()=>Ih,use_events_intersect:()=>kh,use_events_keyboard:()=>Zs,use_events_mouse:()=>_r,use_events_pointer:()=>Ch,use_events_resize:()=>$h,use_events_selection:()=>Fh,use_events_touch:()=>Ph,use_hooks:()=>Jo,use_router:()=>Hh,use_slots:()=>gh,use_styles:()=>wh,use_window:()=>hh,\u03B1action:()=>Xh,\u03B1autorun:()=>Wh,\u03B1computed:()=>qh,\u03B1lazy:()=>Zo,\u03B1observable:()=>Kh,\u03B1prop:()=>Zh,\u03B1ref:()=>Yh});module.exports=la(Sc);var js=Wt(require("cluster")),J=Wt(require("fs")),Tt=Wt(require("path")),th=require("events"),eh=Wt(require("http")),Vs=Wt(require("path")),ih=require("async_hooks"),ua=Object.create,ii=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,da=Object.getOwnPropertyNames,fa=Object.getPrototypeOf,pa=Object.prototype.hasOwnProperty,ma=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ga=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of da(e))!pa.call(t,i)&&i!==r&&ii(t,i,{get:()=>e[i],enumerable:!(s=ca(e,i))||s.enumerable});return t},ya=(t,e,r)=>(r=t!=null?ua(fa(t)):{},ga(e||!t||!t.__esModule?ii(r,"default",{value:t,enumerable:!0}):r,t)),va=ma((t,e)=>{"use strict";var r=typeof Reflect=="object"?Reflect:null,s=r&&typeof r.apply=="function"?r.apply:function(u,d,f){return Function.prototype.apply.call(u,d,f)},i;r&&typeof r.ownKeys=="function"?i=r.ownKeys:Object.getOwnPropertySymbols?i=function(u){return Object.getOwnPropertyNames(u).concat(Object.getOwnPropertySymbols(u))}:i=function(u){return Object.getOwnPropertyNames(u)};functi
|
||
|
|
||
|
|
||
|
`;for(let i of tt(r))i.write("event: "+t+`
|
||
|
`),i.write(`id: imba
|
||
|
`),i.write(s);return this}pause(){return this.paused!=!0&&(this.paused=!0,!0)&&this.broadcast("paused"),this}resume(){if(this.paused!=!1&&(this.paused=!1,!0))return this.broadcast("resumed"),this.flushStalledResponses()}flushStalledResponses(){for(let t=0,e=tt(this.stalledResponses),r=e.length;t<r;t++)e[t].end();return this.stalledResponses=[]}close(){var t=this;return this.pause(),new Promise(function(e){return t.closed=!0,t.server.close(e),t.flushStalledResponses()})}};function rh(t,...e){return Oa.wrap(t,...e)}var sh=new class{get rootDir(){return process.env.IMBA_OUTDIR||Vs.default.dirname(process.env.pm_exec_path||process.argv[1])}get publicPath(){return Vs.default.resolve(this.rootDir,process.env.IMBA_PUBDIR||globalThis.IMBA_PUBDIR||"public")}};function Ea(t){let e;return t?(e=t.toIterable)?e.call(t):t:[]}var et={"":[-1,{id:1,slot:1,part:1,elementTiming:"elementtiming"}],HTML:[-1,{title:1,lang:1,translate:1,dir:1,accessKey:"accesskey",draggable:1,spellcheck:1,autocapitalize:1,inputMode:"inputmode",style:1,tabIndex:"tabindex",enterKeyHint:"enterkeyhint"}],HTMLAnchor:[1,{target:1,download:1,ping:1,rel:1,relList:"rel",hreflang:1,type:1,referrerPolicy:"referrerpolicy",coords:1,charset:1,name:1,rev:1,shape:1,href:1}],HTMLArea:[1,{alt:1,coords:1,download:1,shape:1,target:1,ping:1,rel:1,relList:"rel",referrerPolicy:"referrerpolicy",href:1}],HTMLMedia:[1,{src:1,crossOrigin:"crossorigin",preload:1,controlsList:"controlslist"}],HTMLAudio:[4,{}],HTMLBase:[1,{href:1,target:1}],HTMLQuote:[1,{cite:1}],HTMLBody:[1,{text:1,link:1,vLink:"vlink",aLink:"alink",bgColor:"bgcolor",background:1}],HTMLBR:[1,{clear:1}],HTMLButton:[1,{formAction:"formaction",formEnctype:"formenctype",formMethod:"formmethod",formTarget:"formtarget",name:1,type:1,value:1}],HTMLCanvas:[1,{width:1,height:1}],HTMLTableCaption:[1,{align:1}],HTMLTableCol:[1,{span:1,align:1,ch:"char",chOff:"charoff",vAlign:"valign",width:1}],HTMLData:[1,{value:1}],HTMLDataList:[1,{}],HTMLMod:[1,{cite:1,dateTime:"datetime"}],HTMLDetails:[1,{}],HTMLDialog:[1,{}],HTMLDiv:[1,{align:1}],HTMLDList:[1,{}],HTMLEmbed:[1,{src:1,type:1,width:1,height:1,align:1,name:1}],HTMLFieldSet:[1,{name:1}],HTMLForm:[1,{acceptCharset:"accept-charset",action:1,autocomplete:1,enctype:1,encoding:"enctype",method:1,name:1,target:1}],HTMLHeading:[1,{align:1}],HTMLHead:[1,{}],HTMLHR:[1,{align:1,color:1,size:1,width:1}],HTMLHtml:[1,{version:1}],HTMLIFrame:[1,{src:1,srcdoc:1,name:1,sandbox:1,width:1,height:1,referrerPolicy:"referrerpolicy",csp:1,allow:1,align:1,scrolling:1,frameBorder:"frameborder",longDesc:"longdesc",marginHeight:"marginheight",marginWidth:"marginwidth",loading:1}],HTMLImage:[1,{alt:1,src:1,srcset:1,sizes:1,crossOrigin:"crossorigin",useMap:"usemap",width:1,height:1,referrerPolicy:"referrerpolicy",decoding:1,name:1,lowsrc:1,align:1,hspace:1,vspace:1,longDesc:"longdesc",border:1,loading:1}],HTMLInput:[1,{accept:1,alt:1,autocomplete:1,dirName:"dirname",formAction:"formaction",formEnctype:"formenctype",formMethod:"formmethod",formTarget:"formtarget",height:1,max:1,maxLength:"maxlength",min:1,minLength:"minlength",name:1,pattern:1,placeholder:1,src:1,step:1,type:1,defaultValue:"value",value:1,width:1,align:1,useMap:"usemap",required:1}],HTMLLabel:[1,{htmlFor:"for"}],HTMLLegend:[1,{align:1}],HTMLLI:[1,{value:1,type:1}],HTMLLink:[1,{href:1,crossOrigin:"crossorigin",rel:1,relList:"rel",media:1,hreflang:1,type:1,as:1,referrerPolicy:"referrerpolicy",sizes:1,imageSrcset:"imagesrcset",imageSizes:"imagesizes",charset:1,rev:1,target:1,integrity:1}],HTMLMap:[1,{name:1}],HTMLMenu:[1,{}],HTMLMeta:[1,{name:1,httpEquiv:"http-equiv",content:1,scheme:1,property:1,charset:1}],HTMLMeter:[1,{value:1,min:1,max:1,low:1,high:1,optimum:1}],HTMLObject:[1,{data:1,type:1,name:1,useMap:"usemap",width:1,height:1,align:1,archive:1,code:1,hspace:1,standby:1,vspace:1,codeBase:"codebase",codeType:"codetype",border:1}],HTMLOList:[1,{start:1,type:1}],HTMLOptGroup:[1,{label:1}],HTMLOption:[1,{label:1,value:1}],HTMLOutput:[1,{htmlFor:"for",name:1}],HTMLParagraph:[1,{align:1}],HTMLParam:[1,{name:1,value:1,type:1,valueType:"valuetype"}]
|
||
|
`+i.join(`
|
||
|
`)+`
|
||
|
`+e.slice(n)}return"<!DOCTYPE html>"+e}};cr[C]();var dr=class extends H{},fr=class extends H{},pr=class extends H{},mr=class extends H{},gr=class extends H{},Bs=class extends H{get outerHTML(){return lt&&(lt.scripts||(lt.scripts=[])).push(this),this[at]&&(this[at].js?(this.setAttribute("src",this[at].js.url),this.setAttribute("type","module")):console.warn("could not find browser entrypoint for "+this[at].path)),super.outerHTML}},zs=class extends H{get outerHTML(){if(this[at]){let t=this.getAttribute("rel"),e;t=="stylesheet"&&((e=this[at].css.url)||console.warn("could not find stylesheet for "+this[at].path)),e&&this.setAttribute("href",e)}return super.outerHTML}},Us=class extends H{set src(t){this[ee]!=t&&(this[ee]=t)}get src(){return this[ee]}get outerHTML(){if(lt&&this.src&&(lt.styles||(lt.styles=[])).push(this),this.src){this.nodeName="link",this.setAttribute("rel","stylesheet"),this.setAttribute("href",String(this.src));let t=super.outerHTML;return this.nodeName="style",t}return super.outerHTML}},X=class{},yr=class extends X{},vr=class extends yr{},qs=class extends vr{},Ks=class extends yr{},Z=class extends X{},Yi={};function Wi(t,e,r){if(!t)return r[e]=null;if(r[e]!==void 0)return r[e];let s=Object.getOwnPropertyDescriptor(t,e);return s!==void 0||t==Se?r[e]=s||null:Wi(Reflect.getPrototypeOf(t),e,r)}var Se=class extends x{set$(t,e){var r;let s=Yi[r=this.nodeName]||(Yi[r]={}),i=Wi(this,t,s);!i||!i.set?this.setAttribute(t,e):this[t]=e}},Ys=class extends Se{set src(t){if(this[ee]!=t&&(this[ee]=t,!0)){if(t&&t.adoptNode)t.adoptNode(this);else if(t&&t.type=="svg"){if(t.attributes)for(let e=t.attributes,r=0,s=Object.keys(e),i=s.length,n,o;r<i;r++)n=s[r],o=e[n],this.setAttribute(n,o);this.innerHTML=t.content}}}};et[""].klass=x,et.HTML.klass=H,et.SVG.klass=Se,P.html.klass=cr,P.select.klass=dr,P.input.klass=fr,P.textarea.klass=pr,P.button.klass=mr,P.option.klass=gr,P.script.klass=Bs,P.style.klass=Us,P.link.klass=zs,P.svg_svg.klass=Ys,ht(""),ht("HTML"),ht("SVG");function ch(t,e,r,s){let i=ut.createElement(t);return r&&(i.className=r),s!==null&&i.text$(s),e&&e[Jt]&&e[Jt](i),i}function dh(t,e,r,s,i){let n=ut.createElementNS("http://www.w3.org/2000/svg",t);return r&&(n.className=r),e&&e[Jt]&&e[Jt](n),s&&(n.textContent=s),n}function kt(t){return ut.createComment(t)}function br(t){return ut.createTextNode(t)}function fh(){return ut.createDocumentFragment()}function Ws(t,e,r,s,i){let n;return typeof t!="string"&&(t.prototype instanceof H?(n=new t,n.nodeName=t.nodeName):t&&t.nodeName&&(t=t.nodeName)),n||(n=ut.createElement(qi[t]||t)),n[Ii]=e,n[C](),s!==null&&n[Ua]("__").text$(s),(r||n.flags$ns)&&n.flag$(r||""),n}function ph(t,e,r,s){if(t==null||t==null)return kt("");if(t instanceof A)return t;if(typeof t=="string"||t&&t.prototype instanceof A)return Ws(t,e,r,s)}function mh(t,e,r={}){et[t]=Ds[t]={idl:!0,name:t,klass:e};let s=e.nodeName=t,i=e.prototype;if(t.indexOf("-")==-1&&(s=e.nodeName=""+t+"-tag",qi[t]=s),r.extends&&(i[Pe]=r.extends),r.cssns){let n=(i._ns_||"")+" "+r.cssns;i._ns_=n.trim()+" ",i[qa]=r.cssns}if(r.cssid){let n=(i.flags$ns||"")+" "+r.cssid;i[Ka]=r.cssid,i.flags$ns=n.trim()+" "}return e}globalThis[Ya]={Location:ve,Document:Pt};function jr(t){let e;return t?(e=t.toIterable)?e.call(t):t:[]}function Za(t,e){let r=Object.getOwnPropertyDescriptors(e);return delete r.constructor,Object.defineProperties(t,r),t}var He=Symbol.for("#parent"),Xi=Symbol.for("#closestNode"),tl=Symbol.for("#isRichElement"),el=Symbol.for("#afterVisit"),Qi=Symbol.for("#__initor__"),Ji=Symbol.for("#__inited__"),Zi=Symbol.for("#appendChild"),tn=Symbol.for("#removeChild"),en=Symbol.for("#replaceChild"),ct=Symbol.for("#insertInto"),je=Symbol.for("#replaceWith"),rn=Symbol.for("#insertChild"),Ve=Symbol.for("#removeFrom"),sn=Symbol.for("#placeChild"),nn=Symbol.for("#__init__"),rl=Symbol.for("#registerFunctionalSlot"),sl=Symbol.for("#getFunctionalSlot"),on=Symbol.for("#getSlot"),Vr=Symbol.for("##parent"),gt=Symbol.for("##up"),hn=Symbol.for("##flags"),il=Symbol.for("#domFlags"),K=Symbol.for("#end"),an=Symbol.for("#textContent"),Re=Symbol.for("#textNode"),Rr=Sy
|
||
|
box-sizing: border-box;
|
||
|
border-width: 0;
|
||
|
border-style: solid;
|
||
|
border-color: currentColor;
|
||
|
}`,Nl=class{constructor(t=null){this[En](t)}[En](t=null){var e;this.entries=t&&(e=t.entries)!==void 0?e:{}}register(t,e){let r=this.entries[t];r?r&&(r.css=e,r.node&&(r.node.textContent=e)):(r=this.entries[t]={sourceId:t,css:e},this.entries.resets||this.register("resets",Ll))}toString(){return Object.values(this.entries).map(function(t){return t.css}).join(`
|
||
|
|
||
|
`)}toValue(t,e,r,s=null){let i;Cn[r]&&(t=String(t));let n=typeof t;if(n=="number"){if(e||(wl.test(r)?e="px":Tl.test(r)?e="u":r=="rotate"&&(e="turn",t=(t%1).toFixed(4))),e)return _l[e]?t+e:e=="u"?t*4+"px":"calc(var(--u_"+e+",1px) * "+t+")"}else if(n=="string"){if(r&&Cn[r]&&t[0]!='"'&&t[0]!="'"&&(t.indexOf('"')>=0?t.indexOf("'")==-1&&(t="'"+t+"'"):t='"'+t+'"'),i=t.match(xl)){let o=Ur[i[1]][parseInt(i[2])],h="100%";if(typeof s=="number"?h=s+"%":typeof s=="string"&&(h=s),o)return"hsla("+o[0]+","+o[1]+"%,"+o[2]+"%,"+h+")"}}else if(t&&t.toStyleString instanceof Function)return t.toStyleString();return t}parseDimension(t){if(typeof t=="string"){let[e,r,s]=t.match(/^([-+]?[\d\.]+)(%|\w+)$/);return[parseFloat(r),s]}else if(typeof t=="number")return[t]}},Xs=new Nl,xh=Object.keys(Ur);function wh(){return!0}var Ml=class{css$(t,e,r){return this.style[t]=e}css$var(t,e,r,s,i=null){let n=Xs.toValue(e,r,s,i);this.style.setProperty(t,n)}};Sl(x.prototype,Ml.prototype);var Ol=Symbol.for("#insertInto"),Pn=Symbol.for("#removeFrom");function Th(t,e={}){let r=k.context;k.context=e;let s=t(e);return k.context==e&&(k.context=r),s}function Qs(t,e){return console.error(`imba.mount not supported on server.
|
||
|
To spawn a dev-server for an imba client run:
|
||
|
> imba serve my-imba-file.imba`),String(t)}function Js(t){return t&&t[Pn]&&t[Pn](t.parentNode),t}var kn=globalThis.imba||(globalThis.imba={});kn.mount=Qs,kn.unmount=Js;function jt(t,e){let r=Object.getOwnPropertyDescriptors(e);return delete r.constructor,Object.defineProperties(t,r),t}function se(t){let e;return t?(e=t.toIterable)?e.call(t):t:[]}var ie=Symbol.for("##onchange"),ne=Symbol.for("#afterVisit"),oe=Symbol.for("##oninput"),qe=Symbol.for("##onclick"),he=Symbol.for("##bound"),bt=Symbol.for("##visitContext");function Lh(){return!0}var El={INPUT:!0,SELECT:!0,TEXTAREA:!0,BUTTON:!0},qr=function(t){return t instanceof Array||t&&t.has instanceof Function},Kr=function(t,e){return t==e?!0:t instanceof Array?t.indexOf(e)>=0:t&&t.has instanceof Function?t.has(e):t&&t.contains instanceof Function?t.contains(e):!1},Yr=function(t,e){if(t instanceof Array)return t.push(e);if(t&&t.add instanceof Function)return t.add(e)},Wr=function(t,e){if(t instanceof Array){let r=t.indexOf(e);if(r>=0)return t.splice(r,1)}else if(t&&t.delete instanceof Function)return t.delete(e)};function Cl(t){function e(){return t[0]?t[0][t[1]]:void 0}function r(s){return t[0]?t[0][t[1]]=s:null}return{get:e,set:r}}var Pl=class{getRichValue(){return this.value}setRichValue(t){return this.value=t}bind$(t,e){let r=e||[];return t=="data"&&!this[he]&&El[this.nodeName]&&(this[he]=!0,this[ie]&&this.addEventListener("change",this[ie]=this[ie].bind(this)),this[oe]&&this.addEventListener("input",this[oe]=this[oe].bind(this),{capture:!0}),this[qe]&&this.addEventListener("click",this[qe]=this[qe].bind(this),{capture:!0})),Object.defineProperty(this,t,r instanceof Array?Cl(r):r),r}};jt(x.prototype,Pl.prototype),Object.defineProperty(x.prototype,"richValue",{get:function(){return this.getRichValue()},set:function(t){return this.setRichValue(t)}});var kl=class{[ie](t){let e=this.data,r=this.$$value;this.$$value=void 0;let s=this.getRichValue();if(this.multiple){if(r)for(let i=0,n=se(r),o=n.length;i<o;i++){let h=n[i];s.indexOf(h)==-1&&Wr(e,h)}for(let i=0,n=se(s),o=n.length;i<o;i++){let h=n[i];(!r||r.indexOf(h)==-1)&&Yr(e,h)}}else this.data=s[0];return I(),this}getRichValue(){var t;if(this.$$value)return this.$$value;t=[];for(let e=0,r=se(this.selectedOptions),s=r.length;e<s;e++){let i=r[e];t.push(i.richValue)}return this.$$value=t}syncValue(){let t=this.data;if(this.multiple){let e=[];for(let r=0,s=se(this.options),i=s.length;r<i;r++){let n=s[r],o=n.richValue,h=Kr(t,o);n.selected=h,h&&e.push(o)}this.$$value=e}else for(let e=0,r=se(this.options),s=r.length;e<s;e++){let i=r[e].richValue;if(i==t){this.$$value=[i],this.selectedIndex=e;break}}}[ne](){if(this.syncValue(),this[bt])return this[bt]=null}};jt(dr.prototype,kl.prototype);var $l=class{setRichValue(t){return this.$$value=t,this.value=t}getRichValue(){return this.$$value!==void 0?this.$$value:this.value}};jt(gr.prototype,$l.prototype);var Fl=class{setRichValue(t){return this.$$value=t,this.value=t}getRichValue(){return this.$$value!==void 0?this.$$value:this.value}[oe](t){return this.data=this.value,I()}[ne](){let t=this.data;if(t==null&&(t=""),this[he]&&this.value!=t&&(this.value=t),this[bt])return this[bt]=null}};jt(pr.prototype,Fl.prototype);var Il=class{[oe](t){let e=this.type;if(!(e=="checkbox"||e=="radio")&&!(e=="number"&&Number.isNaN(this.valueAsNumber)))return this.$$value=void 0,this.data=this.richValue,I()}[ie](t){let e=this.data,r=this.richValue;if(this.type=="checkbox"||this.type=="radio"){let s=this.checked;qr(e)?s?Yr(e,r):Wr(e,r):this.data=s?r:!1}return I()}setRichValue(t){this.$$value!==t&&(this.$$value=t,this.value!==t&&(this.value=t))}getRichValue(){if(this.$$value!==void 0)return this.$$value;let t=this.value,e=this.type;if(e=="range"||e=="number"){let r=this.valueAsNumber;Number.isNaN(r)&&(r=Number(t.replace(/\,/,".")+0)),Number.isNaN(r)&&(r=null),t=r}else e=="checkbox"&&(t==null||t==="on")&&(t=!0);return t}[ne](){if(this[he]){let t=this.type;if(t=="checkbox"||t=="radio"){let e=this.data;e===!0||e===!1||e==null?this.checked=!!e:this.checked=Kr(e,this.richValue)}else this.richValue=this.data}this[bt]
|