@gkd-kit/inspect 0.0.1721406632680 → 0.0.1721453220389
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.
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-O8yaGYTd.js → ActionCard.vue_vue_type_script_setup_true_lang-BC6MBlsl.js} +2 -2
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-O8yaGYTd.js.map → ActionCard.vue_vue_type_script_setup_true_lang-BC6MBlsl.js.map} +1 -1
- package/dist/assets/{DevicePage-Djqn6f7M.js → DevicePage-DTc7OHTC.js} +2 -2
- package/dist/assets/{DevicePage-Djqn6f7M.js.map → DevicePage-DTc7OHTC.js.map} +1 -1
- package/dist/assets/{HomePage-T-ueNFEN.js → HomePage-BZYGXGZA.js} +2 -2
- package/dist/assets/{HomePage-T-ueNFEN.js.map → HomePage-BZYGXGZA.js.map} +1 -1
- package/dist/assets/{ImportPage-BcGduI1F.js → ImportPage-7WnWdCt1.js} +2 -2
- package/dist/assets/{ImportPage-BcGduI1F.js.map → ImportPage-7WnWdCt1.js.map} +1 -1
- package/dist/assets/{PreviewSharePage-Cemv8gvh.js → PreviewSharePage-DxWwwWJ3.js} +2 -2
- package/dist/assets/{PreviewSharePage-Cemv8gvh.js.map → PreviewSharePage-DxWwwWJ3.js.map} +1 -1
- package/dist/assets/SnapshotPage-CnY-ApTj.js +276 -0
- package/dist/assets/SnapshotPage-CnY-ApTj.js.map +1 -0
- package/dist/assets/{TrackGraph-DMhIY-8G.js → TrackGraph-CV8Gl1BE.js} +2 -2
- package/dist/assets/{TrackGraph-DMhIY-8G.js.map → TrackGraph-CV8Gl1BE.js.map} +1 -1
- package/dist/assets/{_404Page-CpuTtnOS.js → _404Page-CYqiarzQ.js} +2 -2
- package/dist/assets/{_404Page-CpuTtnOS.js.map → _404Page-CYqiarzQ.js.map} +1 -1
- package/dist/assets/{dayjs.min-Cu4Q2xgI.js → dayjs.min-DSU4pMtw.js} +2 -2
- package/dist/assets/{dayjs.min-Cu4Q2xgI.js.map → dayjs.min-DSU4pMtw.js.map} +1 -1
- package/dist/assets/{error-CeRmdgMM.js → error-DzsP2TWQ.js} +2 -2
- package/dist/assets/{error-CeRmdgMM.js.map → error-DzsP2TWQ.js.map} +1 -1
- package/dist/assets/{export-fYbfcKTX.js → export-DyPPXlGS.js} +2 -2
- package/dist/assets/{export-fYbfcKTX.js.map → export-DyPPXlGS.js.map} +1 -1
- package/dist/assets/{fetch-TQbL9E8h.js → fetch-DrX8GyFA.js} +2 -2
- package/dist/assets/{fetch-TQbL9E8h.js.map → fetch-DrX8GyFA.js.map} +1 -1
- package/dist/assets/{import-DwrN5Zkq.js → import-DCSQGvFr.js} +2 -2
- package/dist/assets/{import-DwrN5Zkq.js.map → import-DCSQGvFr.js.map} +1 -1
- package/dist/assets/{index-C8rjOWxU.js → index-BPGp-M2Y.js} +2 -2
- package/dist/assets/{index-C8rjOWxU.js.map → index-BPGp-M2Y.js.map} +1 -1
- package/dist/assets/{index-pWUXVHyD.js → index-BvRORSqd.js} +2 -2
- package/dist/assets/{index-pWUXVHyD.js.map → index-BvRORSqd.js.map} +1 -1
- package/dist/assets/{index-mjukiBBo.js → index-DFFgoOSq.js} +4 -4
- package/dist/assets/{index-mjukiBBo.js.map → index-DFFgoOSq.js.map} +1 -1
- package/dist/assets/{table-DpqBZFll.js → table-mNU48rok.js} +2 -2
- package/dist/assets/{table-DpqBZFll.js.map → table-mNU48rok.js.map} +1 -1
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/dist/assets/SnapshotPage-DsxbIwcQ.js +0 -276
- package/dist/assets/SnapshotPage-DsxbIwcQ.js.map +0 -1
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721453220389/files/dist/assets/TrackGraph-CV8Gl1BE.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721453220389/files/dist/assets/index-DFFgoOSq.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721453220389/files/dist/assets/index-DEAqsSIR.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721453220389/files/dist/assets/dayjs.min-DSU4pMtw.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721453220389/files/dist/assets/index-BvRORSqd.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721453220389/files/dist/assets/fetch-DrX8GyFA.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{h as Le,v as R,a as J,g as An,e as W,f as X,b as qe,u as ba,$ as Od,a0 as gl,a1 as zd,a2 as wa,d as yl,r as vt,m as ie,l as Zi,j as ji,q as bl,a3 as wl,y as wt,a4 as Fd,t as ge,a5 as Ac,a6 as Tc,a7 as jc,a8 as Dd,a9 as Mt,aa as ii,ab as Bd,ac as Ou,ad as Pc,ae as Kd,af as Dn,ag as Ud,ah as Hd,ai as Wd,c as Vd,aj as Gd,ak as Jd,n as as,N as Qd,x as Xd,W as Yd,al as os,am as Zd,Q as ka,an as e1,p as Rc,i as t1,B as $i,T as kr,ao as ss,o as Qi,ap as zu,aq as Fu,ar as ea,A as nt,R as kl,as as eo,at as pt,K as P,au as Mc,C as Nt,F as I,G as Cr,P as Lt,av as ms,aw as Qr,ax as n1,I as se,E as T,D as Y,ay as na,O as Ke,M as kt,az as to,X as Lc,aA as Ni,H as Oc,aB as zc,V as r1,L as Kn,aC as ls,aD as i1,_ as a1,aE as Du,aF as o1,aG as s1,Z as Bu,aH as l1,aI as u1,J as c1}from"./index-DFFgoOSq.js";import{_ as f1}from"./ActionCard.vue_vue_type_script_setup_true_lang-BC6MBlsl.js";import{f as gs,c as Hn,b as Xr,m as wn,a as Fc,l as Ku,g as h1}from"./fetch-DrX8GyFA.js";import{h as Ei,C as d1,e as v1,c as p1,d as _1,V as m1,f as Uu,i as Hu,j as Bn,k as g1,l as y1,m as Wu,n as ra,b as ys,o as Vu,p as b1,N as w1,g as Un,q as k1,r as Gu,s as Ju,t as C1}from"./dayjs.min-DSU4pMtw.js";import{a as Wn,r as x1,N as S1,l as $1}from"./index-BvRORSqd.js";import{u as Dc,a as E1}from"./index-BPGp-M2Y.js";import{e as N1,a as Qu}from"./error-DzsP2TWQ.js";import{e as I1,f as q1,g as A1}from"./export-DyPPXlGS.js";import"./index-CE_5kTG8.js";function Bc(e){return typeof e=="string"?`s-${e}`:`n-${e}`}const T1=Le({name:"ChevronLeft",render(){return R("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),j1=Le({name:"Switcher",render(){return R("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},R("path",{d:"M12 8l10 8l-10 8z"}))}}),De="0!important",Kc="-1px!important";function Ci(e){return X(e+"-type",[W("& +",[J("button",{},[X(e+"-type",[qe("border",{borderLeftWidth:De}),qe("state-border",{left:Kc})])])])])}function xi(e){return X(e+"-type",[W("& +",[J("button",[X(e+"-type",[qe("border",{borderTopWidth:De}),qe("state-border",{top:Kc})])])])])}const P1=J("button-group",`
|
|
3
|
+
flex-wrap: nowrap;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
`,[An("vertical",{flexDirection:"row"},[An("rtl",[J("button",[W("&:first-child:not(:last-child)",`
|
|
7
|
+
margin-right: ${De};
|
|
8
|
+
border-top-right-radius: ${De};
|
|
9
|
+
border-bottom-right-radius: ${De};
|
|
10
|
+
`),W("&:last-child:not(:first-child)",`
|
|
11
|
+
margin-left: ${De};
|
|
12
|
+
border-top-left-radius: ${De};
|
|
13
|
+
border-bottom-left-radius: ${De};
|
|
14
|
+
`),W("&:not(:first-child):not(:last-child)",`
|
|
15
|
+
margin-left: ${De};
|
|
16
|
+
margin-right: ${De};
|
|
17
|
+
border-radius: ${De};
|
|
18
|
+
`),Ci("default"),X("ghost",[Ci("primary"),Ci("info"),Ci("success"),Ci("warning"),Ci("error")])])])]),X("vertical",{flexDirection:"column"},[J("button",[W("&:first-child:not(:last-child)",`
|
|
19
|
+
margin-bottom: ${De};
|
|
20
|
+
margin-left: ${De};
|
|
21
|
+
margin-right: ${De};
|
|
22
|
+
border-bottom-left-radius: ${De};
|
|
23
|
+
border-bottom-right-radius: ${De};
|
|
24
|
+
`),W("&:last-child:not(:first-child)",`
|
|
25
|
+
margin-top: ${De};
|
|
26
|
+
margin-left: ${De};
|
|
27
|
+
margin-right: ${De};
|
|
28
|
+
border-top-left-radius: ${De};
|
|
29
|
+
border-top-right-radius: ${De};
|
|
30
|
+
`),W("&:not(:first-child):not(:last-child)",`
|
|
31
|
+
margin: ${De};
|
|
32
|
+
border-radius: ${De};
|
|
33
|
+
`),xi("default"),X("ghost",[xi("primary"),xi("info"),xi("success"),xi("warning"),xi("error")])])])]),R1={size:{type:String,default:void 0},vertical:Boolean},M1=Le({name:"ButtonGroup",props:R1,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=ba(e);return Od("-button-group",P1,t),gl(zd,e),{rtlEnabled:wa("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return R("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),L1=e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:a,dividerColor:o,fontSize:s}=e;return{titleFontSize:s,titleFontWeight:t,dividerColor:o,titleTextColor:n,titleTextColorDisabled:a,fontSize:s,textColor:r,arrowColor:r,arrowColorDisabled:a,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}},O1={name:"Collapse",common:yl,self:L1},z1=J("collapse","width: 100%;",[J("collapse-item",`
|
|
34
|
+
font-size: var(--n-font-size);
|
|
35
|
+
color: var(--n-text-color);
|
|
36
|
+
transition:
|
|
37
|
+
color .3s var(--n-bezier),
|
|
38
|
+
border-color .3s var(--n-bezier);
|
|
39
|
+
margin: var(--n-item-margin);
|
|
40
|
+
`,[X("disabled",[qe("header","cursor: not-allowed;",[qe("header-main",`
|
|
41
|
+
color: var(--n-title-text-color-disabled);
|
|
42
|
+
`),J("collapse-item-arrow",`
|
|
43
|
+
color: var(--n-arrow-color-disabled);
|
|
44
|
+
`)])]),J("collapse-item","margin-left: 32px;"),W("&:first-child","margin-top: 0;"),W("&:first-child >",[qe("header","padding-top: 0;")]),X("left-arrow-placement",[qe("header",[J("collapse-item-arrow","margin-right: 4px;")])]),X("right-arrow-placement",[qe("header",[J("collapse-item-arrow","margin-left: 4px;")])]),qe("content-wrapper",[qe("content-inner","padding-top: 16px;"),gs({duration:"0.15s"})]),X("active",[qe("header",[X("active",[J("collapse-item-arrow","transform: rotate(90deg);")])])]),W("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),An("disabled",[X("trigger-area-main",[qe("header",[qe("header-main","cursor: pointer;"),J("collapse-item-arrow","cursor: default;")])]),X("trigger-area-arrow",[qe("header",[J("collapse-item-arrow","cursor: pointer;")])]),X("trigger-area-extra",[qe("header",[qe("header-extra","cursor: pointer;")])])]),qe("header",`
|
|
45
|
+
font-size: var(--n-title-font-size);
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-wrap: nowrap;
|
|
48
|
+
align-items: center;
|
|
49
|
+
transition: color .3s var(--n-bezier);
|
|
50
|
+
position: relative;
|
|
51
|
+
padding: var(--n-title-padding);
|
|
52
|
+
color: var(--n-title-text-color);
|
|
53
|
+
`,[qe("header-main",`
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-wrap: nowrap;
|
|
56
|
+
align-items: center;
|
|
57
|
+
font-weight: var(--n-title-font-weight);
|
|
58
|
+
transition: color .3s var(--n-bezier);
|
|
59
|
+
flex: 1;
|
|
60
|
+
color: var(--n-title-text-color);
|
|
61
|
+
`),qe("header-extra",`
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
transition: color .3s var(--n-bezier);
|
|
65
|
+
color: var(--n-text-color);
|
|
66
|
+
`),J("collapse-item-arrow",`
|
|
67
|
+
display: flex;
|
|
68
|
+
transition:
|
|
69
|
+
transform .15s var(--n-bezier),
|
|
70
|
+
color .3s var(--n-bezier);
|
|
71
|
+
font-size: 18px;
|
|
72
|
+
color: var(--n-arrow-color);
|
|
73
|
+
`)])])]),F1=Object.assign(Object.assign({},ji.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},triggerAreas:{type:Array,default:()=>["main","extra","arrow"]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),Uc=wl("n-collapse"),D1=Le({name:"Collapse",props:F1,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=ba(e),o=vt(e.defaultExpandedNames),s=ie(()=>e.expandedNames),l=Zi(s,o),c=ji("Collapse","-collapse",z1,O1,e,n);function f(m){const{"onUpdate:expandedNames":g,onUpdateExpandedNames:_,onExpandedNamesChange:C}=e;_&&wt(_,m),g&&wt(g,m),C&&wt(C,m),o.value=m}function h(m){const{onItemHeaderClick:g}=e;g&&wt(g,m)}function d(m,g,_){const{accordion:C}=e,{value:k}=l;if(C)m?(f([g]),h({name:g,expanded:!0,event:_})):(f([]),h({name:g,expanded:!1,event:_}));else if(!Array.isArray(k))f([g]),h({name:g,expanded:!0,event:_});else{const x=k.slice(),N=x.findIndex(z=>g===z);~N?(x.splice(N,1),f(x),h({name:g,expanded:!1,event:_})):(x.push(g),f(x),h({name:g,expanded:!0,event:_}))}}gl(Uc,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:d});const v=wa("Collapse",a,n),y=ie(()=>{const{common:{cubicBezierEaseInOut:m},self:{titleFontWeight:g,dividerColor:_,titlePadding:C,titleTextColor:k,titleTextColorDisabled:x,textColor:N,arrowColor:z,fontSize:G,titleFontSize:K,arrowColorDisabled:re,itemMargin:V}}=c.value;return{"--n-font-size":G,"--n-bezier":m,"--n-text-color":N,"--n-divider-color":_,"--n-title-padding":C,"--n-title-font-size":K,"--n-title-text-color":k,"--n-title-text-color-disabled":x,"--n-title-font-weight":g,"--n-arrow-color":z,"--n-arrow-color-disabled":re,"--n-item-margin":V}}),p=r?bl("collapse",void 0,y,e):void 0;return{rtlEnabled:v,mergedTheme:c,mergedClsPrefix:n,cssVars:r?void 0:y,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),R("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),B1=Le({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Fd(ge(e,"show"))}},render(){return R(jc,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,a=t==="show"&&n,o=R("div",{class:`${r}-collapse-item__content-wrapper`},R("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return a?Ac(o,[[Tc,e]]):e?o:null}})}}),K1={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},U1=Le({name:"CollapseItem",props:K1,setup(e){const{mergedRtlRef:t}=ba(e),n=Dd(),r=Mt(()=>{var d;return(d=e.name)!==null&&d!==void 0?d:n}),a=ii(Uc);a||Bd("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:o,props:s,mergedClsPrefixRef:l,slots:c}=a,f=ie(()=>{const{value:d}=o;if(Array.isArray(d)){const{value:v}=r;return!~d.findIndex(y=>y===v)}else if(d){const{value:v}=r;return v!==d}return!0});return{rtlEnabled:wa("Collapse",t,l),collapseSlots:c,randomName:n,mergedClsPrefix:l,collapsed:f,triggerAreas:ge(s,"triggerAreas"),mergedDisplayDirective:ie(()=>{const{displayDirective:d}=e;return d||s.displayDirective}),arrowPlacement:ie(()=>s.arrowPlacement),handleClick(d){let v="main";Ei(d,"arrow")&&(v="arrow"),Ei(d,"extra")&&(v="extra"),s.triggerAreas.includes(v)&&a&&!e.disabled&&a.toggleItem(f.value,r.value,d)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:a,mergedClsPrefix:o,disabled:s,triggerAreas:l}=this,c=Ou(t.header,{collapsed:r},()=>[this.title]),f=t["header-extra"]||e["header-extra"],h=t.arrow||e.arrow;return R("div",{class:[`${o}-collapse-item`,`${o}-collapse-item--${n}-arrow-placement`,s&&`${o}-collapse-item--disabled`,!r&&`${o}-collapse-item--active`,l.map(d=>`${o}-collapse-item--trigger-area-${d}`)]},R("div",{class:[`${o}-collapse-item__header`,!r&&`${o}-collapse-item__header--active`]},R("div",{class:`${o}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&c,R("div",{class:`${o}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},Ou(h,{collapsed:r},()=>{var d;return[R(Pc,{clsPrefix:o},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?R(T1,null):R(d1,null)})]})),n==="left"&&c),Kd(f,{collapsed:r},d=>R("div",{class:`${o}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},d))),R(B1,{clsPrefix:o,displayDirective:a,show:!r},t))}}),H1={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},W1=e=>{const{dividerColor:t,cardColor:n,modalColor:r,popoverColor:a,tableHeaderColor:o,tableColorStriped:s,textColor1:l,textColor2:c,borderRadius:f,fontWeightStrong:h,lineHeight:d,fontSizeSmall:v,fontSizeMedium:y,fontSizeLarge:p}=e;return Object.assign(Object.assign({},H1),{fontSizeSmall:v,fontSizeMedium:y,fontSizeLarge:p,lineHeight:d,borderRadius:f,borderColor:Dn(n,t),borderColorModal:Dn(r,t),borderColorPopover:Dn(a,t),tdColor:n,tdColorModal:r,tdColorPopover:a,tdColorStriped:Dn(n,s),tdColorStripedModal:Dn(r,s),tdColorStripedPopover:Dn(a,s),thColor:Dn(n,o),thColorModal:Dn(r,o),thColorPopover:Dn(a,o),thTextColor:l,tdTextColor:c,thFontWeight:h})},V1={name:"Table",common:yl,self:W1},G1=e=>{const{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:a,primaryColor:o,textColor3:s,textColor2:l,textColorDisabled:c,fontSize:f}=e;return{fontSize:f,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:a,nodeColorActive:Vd(o,{alpha:.1}),arrowColor:s,nodeTextColor:l,nodeTextColorDisabled:c,loadingColor:o,dropMarkColor:o,lineColor:n}},J1=Ud({name:"Tree",common:yl,peers:{Checkbox:Hd,Scrollbar:Wd,Empty:v1},self:G1}),Q1=W([J("table",`
|
|
74
|
+
font-size: var(--n-font-size);
|
|
75
|
+
font-variant-numeric: tabular-nums;
|
|
76
|
+
line-height: var(--n-line-height);
|
|
77
|
+
width: 100%;
|
|
78
|
+
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
|
79
|
+
text-align: left;
|
|
80
|
+
border-collapse: separate;
|
|
81
|
+
border-spacing: 0;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
background-color: var(--n-td-color);
|
|
84
|
+
border-color: var(--n-merged-border-color);
|
|
85
|
+
transition:
|
|
86
|
+
background-color .3s var(--n-bezier),
|
|
87
|
+
border-color .3s var(--n-bezier),
|
|
88
|
+
color .3s var(--n-bezier);
|
|
89
|
+
--n-merged-border-color: var(--n-border-color);
|
|
90
|
+
`,[W("th",`
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
transition:
|
|
93
|
+
background-color .3s var(--n-bezier),
|
|
94
|
+
border-color .3s var(--n-bezier),
|
|
95
|
+
color .3s var(--n-bezier);
|
|
96
|
+
text-align: inherit;
|
|
97
|
+
padding: var(--n-th-padding);
|
|
98
|
+
vertical-align: inherit;
|
|
99
|
+
text-transform: none;
|
|
100
|
+
border: 0px solid var(--n-merged-border-color);
|
|
101
|
+
font-weight: var(--n-th-font-weight);
|
|
102
|
+
color: var(--n-th-text-color);
|
|
103
|
+
background-color: var(--n-th-color);
|
|
104
|
+
border-bottom: 1px solid var(--n-merged-border-color);
|
|
105
|
+
border-right: 1px solid var(--n-merged-border-color);
|
|
106
|
+
`,[W("&:last-child",`
|
|
107
|
+
border-right: 0px solid var(--n-merged-border-color);
|
|
108
|
+
`)]),W("td",`
|
|
109
|
+
transition:
|
|
110
|
+
background-color .3s var(--n-bezier),
|
|
111
|
+
border-color .3s var(--n-bezier),
|
|
112
|
+
color .3s var(--n-bezier);
|
|
113
|
+
padding: var(--n-td-padding);
|
|
114
|
+
color: var(--n-td-text-color);
|
|
115
|
+
background-color: var(--n-td-color);
|
|
116
|
+
border: 0px solid var(--n-merged-border-color);
|
|
117
|
+
border-right: 1px solid var(--n-merged-border-color);
|
|
118
|
+
border-bottom: 1px solid var(--n-merged-border-color);
|
|
119
|
+
`,[W("&:last-child",`
|
|
120
|
+
border-right: 0px solid var(--n-merged-border-color);
|
|
121
|
+
`)]),X("bordered",`
|
|
122
|
+
border: 1px solid var(--n-merged-border-color);
|
|
123
|
+
border-radius: var(--n-border-radius);
|
|
124
|
+
`,[W("tr",[W("&:last-child",[W("td",`
|
|
125
|
+
border-bottom: 0 solid var(--n-merged-border-color);
|
|
126
|
+
`)])])]),X("single-line",[W("th",`
|
|
127
|
+
border-right: 0px solid var(--n-merged-border-color);
|
|
128
|
+
`),W("td",`
|
|
129
|
+
border-right: 0px solid var(--n-merged-border-color);
|
|
130
|
+
`)]),X("single-column",[W("tr",[W("&:not(:last-child)",[W("td",`
|
|
131
|
+
border-bottom: 0px solid var(--n-merged-border-color);
|
|
132
|
+
`)])])]),X("striped",[W("tr:nth-of-type(even)",[W("td","background-color: var(--n-td-color-striped)")])]),An("bottom-bordered",[W("tr",[W("&:last-child",[W("td",`
|
|
133
|
+
border-bottom: 0px solid var(--n-merged-border-color);
|
|
134
|
+
`)])])])]),Gd(J("table",`
|
|
135
|
+
background-color: var(--n-td-color-modal);
|
|
136
|
+
--n-merged-border-color: var(--n-border-color-modal);
|
|
137
|
+
`,[W("th",`
|
|
138
|
+
background-color: var(--n-th-color-modal);
|
|
139
|
+
`),W("td",`
|
|
140
|
+
background-color: var(--n-td-color-modal);
|
|
141
|
+
`)])),Jd(J("table",`
|
|
142
|
+
background-color: var(--n-td-color-popover);
|
|
143
|
+
--n-merged-border-color: var(--n-border-color-popover);
|
|
144
|
+
`,[W("th",`
|
|
145
|
+
background-color: var(--n-th-color-popover);
|
|
146
|
+
`),W("td",`
|
|
147
|
+
background-color: var(--n-td-color-popover);
|
|
148
|
+
`)]))]),X1=Object.assign(Object.assign({},ji.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),Y1=Le({name:"Table",props:X1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=ba(e),a=ji("Table","-table",Q1,V1,e,t),o=wa("Table",r,t),s=ie(()=>{const{size:c}=e,{self:{borderColor:f,tdColor:h,tdColorModal:d,tdColorPopover:v,thColor:y,thColorModal:p,thColorPopover:m,thTextColor:g,tdTextColor:_,borderRadius:C,thFontWeight:k,lineHeight:x,borderColorModal:N,borderColorPopover:z,tdColorStriped:G,tdColorStripedModal:K,tdColorStripedPopover:re,[as("fontSize",c)]:V,[as("tdPadding",c)]:je,[as("thPadding",c)]:Ce},common:{cubicBezierEaseInOut:be}}=a.value;return{"--n-bezier":be,"--n-td-color":h,"--n-td-color-modal":d,"--n-td-color-popover":v,"--n-td-text-color":_,"--n-border-color":f,"--n-border-color-modal":N,"--n-border-color-popover":z,"--n-border-radius":C,"--n-font-size":V,"--n-th-color":y,"--n-th-color-modal":p,"--n-th-color-popover":m,"--n-th-font-weight":k,"--n-th-text-color":g,"--n-line-height":x,"--n-td-padding":je,"--n-th-padding":Ce,"--n-td-color-striped":G,"--n-td-color-striped-modal":K,"--n-td-color-striped-popover":re}}),l=n?bl("table",ie(()=>e.size[0]),s,e):void 0;return{rtlEnabled:o,mergedClsPrefix:t,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),R("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),Z1=Le({name:"Tr",render(){return R("tr",null,this.$slots)}}),Xu=Le({name:"Td",render(){return R("td",null,this.$slots)}}),ev=Le({name:"Tbody",render(){return R("tbody",null,this.$slots)}}),Hc=wl("n-tree-select"),Ca=wl("n-tree"),tv=Le({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{renderSwitcherIconRef:t}=ii(Ca,null);return()=>{const{clsPrefix:n,expanded:r,hide:a,indent:o,onClick:s}=e;return R("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,r&&`${n}-tree-node-switcher--expanded`,a&&`${n}-tree-node-switcher--hide`],style:{width:`${o}px`},onClick:s},R("div",{class:`${n}-tree-node-switcher__icon`},R(Qd,null,{default:()=>{if(e.loading)return R(Xd,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:l}=t;return l?l({expanded:e.expanded,selected:e.selected,option:e.tmNode.rawNode}):R(Pc,{clsPrefix:n,key:"switcher"},{default:()=>R(j1,null)})}})))}}}),nv=Le({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=ii(Ca);function n(a){const{onCheck:o}=e;o&&o(a)}function r(a){n(a)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:a,focusable:o,indent:s,handleUpdateValue:l}=this;return R("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],style:{width:`${s}px`},"data-checkbox":!0},R(Yd,{focusable:o,disabled:a,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:l}))}}),rv=Le({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:a}=ii(Ca),o=vt(null);function s(c){const{onClick:f}=e;f&&f(c)}function l(c){s(c)}return{selfRef:o,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:a,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:a=!1,renderLabel:o,renderPrefix:s,renderSuffix:l,handleClick:c,onDragstart:f,tmNode:{rawNode:h,rawNode:{prefix:d,suffix:v,[t]:y}}}=this;return R("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:c,draggable:f===void 0?void 0:!0,onDragstart:f}),s||d?R("div",{class:`${e}-tree-node-content__prefix`},s?s({option:h,selected:a,checked:r}):os(d)):null,R("div",{class:`${e}-tree-node-content__text`},o?o({option:h,selected:a,checked:r}):os(y)),l||v?R("div",{class:`${e}-tree-node-content__suffix`},l?l({option:h,selected:a,checked:r}):os(v)):null)}});function Yu({position:e,offsetLevel:t,indent:n,el:r}){const a={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")a.left=0,a.top=0,a.bottom=0,a.borderRadius="inherit",a.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const o=e==="before"?"top":"bottom";a[o]=0,a.left=`${r.offsetLeft+6-t*n}px`,a.height="2px",a.backgroundColor="var(--n-drop-mark-color)",a.transformOrigin=o,a.borderRadius="1px",a.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return R("div",{style:a})}function iv({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function av(e){return ie(()=>e.leafOnly?"child":e.checkStrategy)}function wr(e,t){return!!e.rawNode[t]}function Wc(e,t,n,r){e==null||e.forEach(a=>{n(a),Wc(a[t],t,n,r),r(a)})}function ov(e,t,n,r,a){const o=new Set,s=new Set,l=[];return Wc(e,r,c=>{if(l.push(c),a(t,c)){s.add(c[n]);for(let f=l.length-2;f>=0;--f)if(!o.has(l[f][n]))o.add(l[f][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(o),highlightKeySet:s}}if(Zd&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function sv(e,t,n,r,a){const o=new Set,s=new Set,l=new Set,c=[],f=[],h=[];function d(y){y.forEach(p=>{if(h.push(p),t(n,p)){o.add(p[r]),l.add(p[r]);for(let g=h.length-2;g>=0;--g){const _=h[g][r];if(!s.has(_))s.add(_),o.has(_)&&o.delete(_);else break}}const m=p[a];m&&d(m),h.pop()})}d(e);function v(y,p){y.forEach(m=>{const g=m[r],_=o.has(g),C=s.has(g);if(!_&&!C)return;const k=m[a];if(k)if(_)p.push(m);else{c.push(g);const x=Object.assign(Object.assign({},m),{[a]:[]});p.push(x),v(k,x[a])}else p.push(m)})}return v(e,f),{filteredTree:f,highlightKeySet:l,expandedKeys:c}}const Vc=Le({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=ii(Ca),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:a,droppingPositionRef:o,droppingOffsetLevelRef:s,nodePropsRef:l,indentRef:c,blockLineRef:f,checkboxPlacementRef:h,checkOnClickRef:d,disabledFieldRef:v,showLineRef:y,renderSwitcherIconRef:p,overrideDefaultNodeClickBehaviorRef:m}=t,g=Mt(()=>!!e.tmNode.rawNode.checkboxDisabled),_=Mt(()=>wr(e.tmNode,v.value)),C=Mt(()=>t.disabledRef.value||_.value),k=ie(()=>{const{value:A}=l;if(A)return A({option:e.tmNode.rawNode})}),x=vt(null),N={value:null};ka(()=>{N.value=x.value.$el});function z(){const A=()=>{const{tmNode:oe}=e;if(!oe.isLeaf&&!oe.shallowLoaded){if(!t.loadingKeysRef.value.has(oe.key))t.loadingKeysRef.value.add(oe.key);else return;const{onLoadRef:{value:me}}=t;me&&me(oe.rawNode).then(ze=>{ze!==!1&&t.handleSwitcherClick(oe)}).finally(()=>{t.loadingKeysRef.value.delete(oe.key)})}else t.handleSwitcherClick(oe)};p.value?setTimeout(A,0):A()}const G=Mt(()=>!_.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),K=Mt(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),re=Mt(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),V=Mt(()=>{const{value:A}=K;if(!A)return!1;const{value:oe}=d,{tmNode:me}=e;return typeof oe=="boolean"?!me.disabled&&oe:oe(e.tmNode.rawNode)});function je(A){const{value:oe}=t.expandOnClickRef,{value:me}=G,{value:ze}=V;if(!me&&!oe&&!ze||Ei(A,"checkbox")||Ei(A,"switcher"))return;const{tmNode:Kt}=e;me&&t.handleSelect(Kt),oe&&!Kt.isLeaf&&z(),ze&&xe(!re.value)}function Ce(A){var oe,me;if(!(Ei(A,"checkbox")||Ei(A,"switcher"))){if(!C.value){const ze=m.value;let Kt=!1;if(ze)switch(ze({option:e.tmNode.rawNode})){case"toggleCheck":Kt=!0,xe(!re.value);break;case"toggleSelect":Kt=!0,t.handleSelect(e.tmNode);break;case"toggleExpand":Kt=!0,z(),Kt=!0;break;case"none":Kt=!0,Kt=!0;return}Kt||je(A)}(me=(oe=k.value)===null||oe===void 0?void 0:oe.onClick)===null||me===void 0||me.call(oe,A)}}function be(A){f.value||Ce(A)}function ve(A){f.value&&Ce(A)}function xe(A){t.handleCheck(e.tmNode,A)}function Oe(A){t.handleDragStart({event:A,node:e.tmNode})}function et(A){A.currentTarget===A.target&&t.handleDragEnter({event:A,node:e.tmNode})}function pe(A){A.preventDefault(),t.handleDragOver({event:A,node:e.tmNode})}function bt(A){t.handleDragEnd({event:A,node:e.tmNode})}function Rt(A){A.currentTarget===A.target&&t.handleDragLeave({event:A,node:e.tmNode})}function Gt(A){A.preventDefault(),o.value!==null&&t.handleDrop({event:A,node:e.tmNode,dropPosition:o.value})}const In=ie(()=>{const{clsPrefix:A}=e,{value:oe}=c;if(y.value){const me=[];let ze=e.tmNode.parent;for(;ze;)ze.isLastChild?me.push(R("div",{class:`${A}-tree-node-indent`},R("div",{style:{width:`${oe}px`}}))):me.push(R("div",{class:[`${A}-tree-node-indent`,`${A}-tree-node-indent--show-line`]},R("div",{style:{width:`${oe}px`}}))),ze=ze.parent;return me.reverse()}else return e1(e.tmNode.level,R("div",{class:`${e.clsPrefix}-tree-node-indent`},R("div",{style:{width:`${oe}px`}})))});return{showDropMark:Mt(()=>{const{value:A}=a;if(!A)return;const{value:oe}=o;if(!oe)return;const{value:me}=r;if(!me)return;const{tmNode:ze}=e;return ze.key===me.key}),showDropMarkAsParent:Mt(()=>{const{value:A}=n;if(!A)return!1;const{tmNode:oe}=e,{value:me}=o;return me==="before"||me==="after"?A.key===oe.key:!1}),pending:Mt(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:Mt(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:Mt(()=>{var A;return(A=t.highlightKeySetRef.value)===null||A===void 0?void 0:A.has(e.tmNode.key)}),checked:re,indeterminate:Mt(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:Mt(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:Mt(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:C,checkable:K,mergedCheckOnClick:V,checkboxDisabled:g,selectable:G,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:f,nodeProps:k,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:o,droppingOffsetLevel:s,indent:c,checkboxPlacement:h,showLine:y,contentInstRef:x,contentElRef:N,indentNodes:In,handleCheck:xe,handleDrop:Gt,handleDragStart:Oe,handleDragEnter:et,handleDragOver:pe,handleDragEnd:bt,handleDragLeave:Rt,handleLineClick:ve,handleContentClick:be,handleSwitcherClick:z}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:a,selected:o,checked:s,highlight:l,draggable:c,blockLine:f,indent:h,indentNodes:d,disabled:v,pending:y,internalScrollable:p,nodeProps:m,checkboxPlacement:g}=this,_=c&&!v?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,C=p?Bc(e.key):void 0,k=g==="right",x=n?R(nv,{indent:h,right:k,focusable:this.checkboxFocusable,disabled:v||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return R("div",Object.assign({class:`${t}-tree-node-wrapper`},_),R("div",Object.assign({},f?m:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:o,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:y,[`${t}-tree-node--disabled`]:v,[`${t}-tree-node--selectable`]:a,[`${t}-tree-node--clickable`]:a||r||this.mergedCheckOnClick},m==null?void 0:m.class],"data-key":C,draggable:c&&f,onClick:this.handleLineClick,onDragstart:c&&f&&!v?this.handleDragStart:void 0}),d,e.isLeaf&&this.showLine?R("div",{class:[`${t}-tree-node-indent`,`${t}-tree-node-indent--show-line`,e.isLeaf&&`${t}-tree-node-indent--is-leaf`,e.isLastChild&&`${t}-tree-node-indent--last-child`]},R("div",{style:{width:`${h}px`}})):R(tv,{clsPrefix:t,expanded:this.expanded,selected:o,loading:this.loading,hide:e.isLeaf,tmNode:this.tmNode,indent:h,onClick:this.handleSwitcherClick}),k?null:x,R(rv,{ref:"contentInstRef",clsPrefix:t,checked:s,selected:o,onClick:this.handleContentClick,nodeProps:f?void 0:m,onDragstart:c&&!f&&!v?this.handleDragStart:void 0,tmNode:e}),c?this.showDropMark?Yu({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:h}):this.showDropMarkAsParent?Yu({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:h}):null:null,k?x:null))}});function lv({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:a,handleCheck:o,handleSelect:s,handleSwitcherClick:l}){const{value:c}=r,f=ii(Hc,null),h=f?f.pendingNodeKeyRef:vt(c.length?c[c.length-1]:null);function d(v){var y;if(!e.keyboard)return{enterBehavior:null};const{value:p}=h;let m=null;if(p===null){if((v.key==="ArrowDown"||v.key==="ArrowUp")&&v.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(v.key)&&p===null){const{value:g}=t;let _=0;for(;_<g.length;){if(!g[_].disabled){h.value=g[_].key;break}_+=1}}}else{const{value:g}=t;let _=g.findIndex(C=>C.key===p);if(!~_)return{enterBehavior:null};if(v.key==="Enter"){const C=g[_];switch(m=((y=e.overrideDefaultNodeClickBehavior)===null||y===void 0?void 0:y.call(e,{option:C.rawNode}))||null,m){case"toggleCheck":o(C,!a.value.includes(C.key));break;case"toggleSelect":s(C);break;case"toggleExpand":l(C);break;case"none":break;case"default":default:m="default",s(C)}}else if(v.key==="ArrowDown")for(v.preventDefault(),_+=1;_<g.length;){if(!g[_].disabled){h.value=g[_].key;break}_+=1}else if(v.key==="ArrowUp")for(v.preventDefault(),_-=1;_>=0;){if(!g[_].disabled){h.value=g[_].key;break}_-=1}else if(v.key==="ArrowLeft"){const C=g[_];if(C.isLeaf||!n.value.includes(p)){const k=C.getParent();k&&(h.value=k.key)}else l(C)}else if(v.key==="ArrowRight"){const C=g[_];if(C.isLeaf)return{enterBehavior:null};if(!n.value.includes(p))l(C);else for(_+=1;_<g.length;){if(!g[_].disabled){h.value=g[_].key;break}_+=1}}}return{enterBehavior:m}}return{pendingNodeKeyRef:h,handleKeydown:d}}const uv=Le({name:"TreeMotionWrapper",props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){const{clsPrefix:e}=this;return R(jc,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>R("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:Rc(this.height)}},this.nodes.map(t=>R(Vc,{clsPrefix:e,tmNode:t})))})}}),us=t1(),cv=J("tree",`
|
|
149
|
+
font-size: var(--n-font-size);
|
|
150
|
+
outline: none;
|
|
151
|
+
`,[W("ul, li",`
|
|
152
|
+
margin: 0;
|
|
153
|
+
padding: 0;
|
|
154
|
+
list-style: none;
|
|
155
|
+
`),W(">",[J("tree-node",[W("&:first-child","margin-top: 0;")])]),J("tree-motion-wrapper",[X("expand",[gs({duration:"0.2s"})]),X("collapse",[gs({duration:"0.2s",reverse:!0})])]),J("tree-node-wrapper",`
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
padding: var(--n-node-wrapper-padding);
|
|
158
|
+
`),J("tree-node",`
|
|
159
|
+
transform: translate3d(0,0,0);
|
|
160
|
+
position: relative;
|
|
161
|
+
display: flex;
|
|
162
|
+
border-radius: var(--n-node-border-radius);
|
|
163
|
+
transition: background-color .3s var(--n-bezier);
|
|
164
|
+
`,[X("highlight",[J("tree-node-content",[qe("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),X("disabled",[J("tree-node-content",`
|
|
165
|
+
color: var(--n-node-text-color-disabled);
|
|
166
|
+
cursor: not-allowed;
|
|
167
|
+
`)]),An("disabled",[X("clickable",[J("tree-node-content",`
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
`)])])]),X("block-node",[J("tree-node-content",`
|
|
170
|
+
flex: 1;
|
|
171
|
+
min-width: 0;
|
|
172
|
+
`)]),An("block-line",[J("tree-node",[An("disabled",[J("tree-node-content",[W("&:hover","background: var(--n-node-color-hover);")]),X("selectable",[J("tree-node-content",[W("&:active","background: var(--n-node-color-pressed);")])]),X("pending",[J("tree-node-content",`
|
|
173
|
+
background: var(--n-node-color-hover);
|
|
174
|
+
`)]),X("selected",[J("tree-node-content","background: var(--n-node-color-active);")])]),X("selected",[J("tree-node-content","background: var(--n-node-color-active);")])])]),X("block-line",[J("tree-node",[An("disabled",[W("&:hover","background: var(--n-node-color-hover);"),X("pending",`
|
|
175
|
+
background: var(--n-node-color-hover);
|
|
176
|
+
`),X("selectable",[An("selected",[W("&:active","background: var(--n-node-color-pressed);")])]),X("selected","background: var(--n-node-color-active);")]),X("selected","background: var(--n-node-color-active);"),X("disabled",`
|
|
177
|
+
cursor: not-allowed;
|
|
178
|
+
`)])]),J("tree-node-indent",`
|
|
179
|
+
flex-grow: 0;
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
`,[X("show-line","position: relative",[W("&::before",`
|
|
182
|
+
position: absolute;
|
|
183
|
+
left: 50%;
|
|
184
|
+
border-left: 1px solid var(--n-line-color);
|
|
185
|
+
transition: border-color .3s var(--n-bezier);
|
|
186
|
+
transform: translate(-50%);
|
|
187
|
+
content: "";
|
|
188
|
+
top: var(--n-line-offset-top);
|
|
189
|
+
bottom: var(--n-line-offset-bottom);
|
|
190
|
+
`),X("last-child",[W("&::before",`
|
|
191
|
+
bottom: 50%;
|
|
192
|
+
`)]),X("is-leaf",[W("&::after",`
|
|
193
|
+
position: absolute;
|
|
194
|
+
content: "";
|
|
195
|
+
left: calc(50% + 0.5px);
|
|
196
|
+
right: 0;
|
|
197
|
+
bottom: 50%;
|
|
198
|
+
transition: border-color .3s var(--n-bezier);
|
|
199
|
+
border-bottom: 1px solid var(--n-line-color);
|
|
200
|
+
`)])]),An("show-line","height: 0;")]),J("tree-node-switcher",`
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
display: inline-flex;
|
|
203
|
+
flex-shrink: 0;
|
|
204
|
+
height: var(--n-node-content-height);
|
|
205
|
+
align-items: center;
|
|
206
|
+
justify-content: center;
|
|
207
|
+
transition: transform .15s var(--n-bezier);
|
|
208
|
+
vertical-align: bottom;
|
|
209
|
+
`,[qe("icon",`
|
|
210
|
+
position: relative;
|
|
211
|
+
height: 14px;
|
|
212
|
+
width: 14px;
|
|
213
|
+
display: flex;
|
|
214
|
+
color: var(--n-arrow-color);
|
|
215
|
+
transition: color .3s var(--n-bezier);
|
|
216
|
+
font-size: 14px;
|
|
217
|
+
`,[J("icon",[us]),J("base-loading",`
|
|
218
|
+
color: var(--n-loading-color);
|
|
219
|
+
position: absolute;
|
|
220
|
+
left: 0;
|
|
221
|
+
top: 0;
|
|
222
|
+
right: 0;
|
|
223
|
+
bottom: 0;
|
|
224
|
+
`,[us]),J("base-icon",[us])]),X("hide","visibility: hidden;"),X("expanded","transform: rotate(90deg);")]),J("tree-node-checkbox",`
|
|
225
|
+
display: inline-flex;
|
|
226
|
+
height: var(--n-node-content-height);
|
|
227
|
+
vertical-align: bottom;
|
|
228
|
+
align-items: center;
|
|
229
|
+
justify-content: center;
|
|
230
|
+
`),J("tree-node-content",`
|
|
231
|
+
user-select: none;
|
|
232
|
+
position: relative;
|
|
233
|
+
display: inline-flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
min-height: var(--n-node-content-height);
|
|
236
|
+
box-sizing: border-box;
|
|
237
|
+
line-height: var(--n-line-height);
|
|
238
|
+
vertical-align: bottom;
|
|
239
|
+
padding: 0 6px 0 4px;
|
|
240
|
+
cursor: default;
|
|
241
|
+
border-radius: var(--n-node-border-radius);
|
|
242
|
+
color: var(--n-node-text-color);
|
|
243
|
+
transition:
|
|
244
|
+
color .3s var(--n-bezier),
|
|
245
|
+
background-color .3s var(--n-bezier),
|
|
246
|
+
border-color .3s var(--n-bezier);
|
|
247
|
+
`,[W("&:last-child","margin-bottom: 0;"),qe("prefix",`
|
|
248
|
+
display: inline-flex;
|
|
249
|
+
margin-right: 8px;
|
|
250
|
+
`),qe("text",`
|
|
251
|
+
border-bottom: 1px solid #0000;
|
|
252
|
+
transition: border-color .3s var(--n-bezier);
|
|
253
|
+
flex-grow: 1;
|
|
254
|
+
max-width: 100%;
|
|
255
|
+
`),qe("suffix",`
|
|
256
|
+
display: inline-flex;
|
|
257
|
+
`)]),qe("empty","margin: auto;")]);var fv=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(h){try{f(r.next(h))}catch(d){s(d)}}function c(h){try{f(r.throw(h))}catch(d){s(d)}}function f(h){h.done?o(h.value):a(h.value).then(l,c)}f((r=r.apply(e,[])).next())})};function hv(e,t,n,r){return{getIsGroup(){return!1},getKey(o){return o[e]},getChildren:r||(o=>o[t]),getDisabled(o){return!!(o[n]||o.checkboxDisabled)}}}const dv={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array],overrideDefaultNodeClickBehavior:Function},vv=Object.assign(Object.assign(Object.assign(Object.assign({},ji.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,indent:{type:Number,default:24},allowDrop:{type:Function,default:iv},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),dv),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),pv=Le({name:"Tree",props:vv,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=ba(e),a=wa("Tree",r,t),o=ji("Tree","-tree",cv,J1,e,t),s=vt(null),l=vt(null),c=vt(null);function f(){var b;return(b=c.value)===null||b===void 0?void 0:b.listElRef}function h(){var b;return(b=c.value)===null||b===void 0?void 0:b.itemsElRef}const d=ie(()=>{const{filter:b}=e;if(b)return b;const{labelField:S}=e;return(q,L)=>{if(!q.length)return!0;const F=L[S];return typeof F=="string"?F.toLowerCase().includes(q.toLowerCase()):!1}}),v=ie(()=>{const{pattern:b}=e;return b?!b.length||!d.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:sv(e.data,d.value,b,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),y=ie(()=>p1(e.showIrrelevantNodes?e.data:v.value.filteredTree,hv(e.keyField,e.childrenField,e.disabledField,e.getChildren))),p=ii(Hc,null),m=e.internalTreeSelect?p.dataTreeMate:y,{watchProps:g}=e,_=vt([]);g!=null&&g.includes("defaultCheckedKeys")?$i(()=>{_.value=e.defaultCheckedKeys}):_.value=e.defaultCheckedKeys;const C=ge(e,"checkedKeys"),k=Zi(C,_),x=ie(()=>m.value.getCheckedKeys(k.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),N=av(e),z=ie(()=>x.value.checkedKeys),G=ie(()=>{const{indeterminateKeys:b}=e;return b!==void 0?b:x.value.indeterminateKeys}),K=vt([]);g!=null&&g.includes("defaultSelectedKeys")?$i(()=>{K.value=e.defaultSelectedKeys}):K.value=e.defaultSelectedKeys;const re=ge(e,"selectedKeys"),V=Zi(re,K),je=vt([]),Ce=b=>{je.value=e.defaultExpandAll?m.value.getNonLeafKeys():b===void 0?e.defaultExpandedKeys:b};g!=null&&g.includes("defaultExpandedKeys")?$i(()=>{Ce(void 0)}):$i(()=>{Ce(e.defaultExpandedKeys)});const be=ge(e,"expandedKeys"),ve=Zi(be,je),xe=ie(()=>y.value.getFlattenedNodes(ve.value)),{pendingNodeKeyRef:Oe,handleKeydown:et}=lv({props:e,mergedCheckedKeysRef:k,mergedSelectedKeysRef:V,fNodesRef:xe,mergedExpandedKeysRef:ve,handleCheck:ns,handleSelect:rs,handleSwitcherClick:ju});let pe=null,bt=null;const Rt=vt(new Set),Gt=ie(()=>e.internalHighlightKeySet||v.value.highlightKeySet),In=Zi(Gt,Rt),A=vt(new Set),oe=ie(()=>ve.value.filter(b=>!A.value.has(b)));let me=0;const ze=vt(null),Kt=vt(null),Ua=vt(null),Ha=vt(null),Wa=vt(0),dd=ie(()=>{const{value:b}=Kt;return b?b.parent:null});let Yo=!1;kr(ge(e,"data"),()=>{Yo=!0,ea(()=>{Yo=!1}),A.value.clear(),Oe.value=null,Ji()},{deep:!1});let Zo=!1;const es=()=>{Zo=!0,ea(()=>{Zo=!1})};let Gi;kr(ge(e,"pattern"),(b,S)=>{if(e.showIrrelevantNodes)if(Gi=void 0,b){const{expandedKeys:q,highlightKeySet:L}=ov(e.data,e.pattern,e.keyField,e.childrenField,d.value);Rt.value=L,es(),mi(q,on(q),{node:null,action:"filter"})}else Rt.value=new Set;else if(!b.length)Gi!==void 0&&(es(),mi(Gi,on(Gi),{node:null,action:"filter"}));else{S.length||(Gi=ve.value);const{expandedKeys:q}=v.value;q!==void 0&&(es(),mi(q,on(q),{node:null,action:"filter"}))}});function Au(b){return fv(this,void 0,void 0,function*(){const{onLoad:S}=e;if(!S){yield Promise.resolve();return}const{value:q}=A;if(!q.has(b.key)){q.add(b.key);try{(yield S(b.rawNode))===!1&&gi()}catch(L){console.error(L),gi()}q.delete(b.key)}})}$i(()=>{var b;const{value:S}=y;if(!S)return;const{getNode:q}=S;(b=ve.value)===null||b===void 0||b.forEach(L=>{const F=q(L);F&&!F.shallowLoaded&&Au(F)})});const _i=vt(!1),br=vt([]);kr(oe,(b,S)=>{if(!e.animated||Zo){ea(Va);return}if(Yo)return;const q=Qi(o.value.self.nodeHeight),L=new Set(S);let F=null,Fe=null;for(const Se of b)if(!L.has(Se)){if(F!==null)return;F=Se}const Jt=new Set(b);for(const Se of S)if(!Jt.has(Se)){if(Fe!==null)return;Fe=Se}if(F===null&&Fe===null)return;const{virtualScroll:sn}=e,bi=(sn?c.value.listElRef:s.value).offsetHeight,wi=Math.ceil(bi/q)+1;let fn;if(F!==null&&(fn=S),Fe!==null&&(fn===void 0?fn=b:fn=fn.filter(Se=>Se!==Fe)),_i.value=!0,br.value=y.value.getFlattenedNodes(fn),F!==null){const Se=br.value.findIndex(hn=>hn.key===F);if(~Se){const hn=br.value[Se].children;if(hn){const bn=Uu(hn,b);br.value.splice(Se+1,0,{__motion:!0,mode:"expand",height:sn?bn.length*q:void 0,nodes:sn?bn.slice(0,wi):bn})}}}if(Fe!==null){const Se=br.value.findIndex(hn=>hn.key===Fe);if(~Se){const hn=br.value[Se].children;if(!hn)return;_i.value=!0;const bn=Uu(hn,b);br.value.splice(Se+1,0,{__motion:!0,mode:"collapse",height:sn?bn.length*q:void 0,nodes:sn?bn.slice(0,wi):bn})}}});const vd=ie(()=>_1(xe.value)),pd=ie(()=>_i.value?br.value:xe.value);function Va(){const{value:b}=l;b&&b.sync()}function _d(){_i.value=!1,e.virtualScroll&&ea(Va)}function on(b){const{getNode:S}=m.value;return b.map(q=>{var L;return((L=S(q))===null||L===void 0?void 0:L.rawNode)||null})}function mi(b,S,q){const{"onUpdate:expandedKeys":L,onUpdateExpandedKeys:F}=e;je.value=b,L&&wt(L,b,S,q),F&&wt(F,b,S,q)}function Tu(b,S,q){const{"onUpdate:checkedKeys":L,onUpdateCheckedKeys:F}=e;_.value=b,F&&wt(F,b,S,q),L&&wt(L,b,S,q)}function md(b,S){const{"onUpdate:indeterminateKeys":q,onUpdateIndeterminateKeys:L}=e;q&&wt(q,b,S),L&&wt(L,b,S)}function ts(b,S,q){const{"onUpdate:selectedKeys":L,onUpdateSelectedKeys:F}=e;K.value=b,F&&wt(F,b,S,q),L&&wt(L,b,S,q)}function gd(b){const{onDragenter:S}=e;S&&wt(S,b)}function yd(b){const{onDragleave:S}=e;S&&wt(S,b)}function bd(b){const{onDragend:S}=e;S&&wt(S,b)}function wd(b){const{onDragstart:S}=e;S&&wt(S,b)}function kd(b){const{onDragover:S}=e;S&&wt(S,b)}function Cd(b){const{onDrop:S}=e;S&&wt(S,b)}function Ji(){xd(),Dr()}function xd(){ze.value=null}function Dr(){Wa.value=0,Kt.value=null,Ua.value=null,Ha.value=null,gi()}function gi(){pe&&(window.clearTimeout(pe),pe=null),bt=null}function ns(b,S){if(e.disabled||wr(b,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){rs(b);return}const q=S?"check":"uncheck",{checkedKeys:L,indeterminateKeys:F}=m.value[q](b.key,z.value,{cascade:e.cascade,checkStrategy:N.value,allowNotLoaded:e.allowCheckingNotLoaded});Tu(L,on(L),{node:b.rawNode,action:q}),md(F,on(F))}function Sd(b){if(e.disabled)return;const{key:S}=b,{value:q}=ve,L=q.findIndex(F=>F===S);if(~L){const F=Array.from(q);F.splice(L,1),mi(F,on(F),{node:b.rawNode,action:"collapse"})}else{const F=y.value.getNode(S);if(!F||F.isLeaf)return;let Fe;if(e.accordion){const Jt=new Set(b.siblings.map(({key:sn})=>sn));Fe=q.filter(sn=>!Jt.has(sn)),Fe.push(S)}else Fe=q.concat(S);mi(Fe,on(Fe),{node:b.rawNode,action:"expand"})}}function ju(b){e.disabled||_i.value||Sd(b)}function rs(b){if(!(e.disabled||!e.selectable)){if(Oe.value=b.key,e.internalUnifySelectCheck){const{value:{checkedKeys:S,indeterminateKeys:q}}=x;e.multiple?ns(b,!(S.includes(b.key)||q.includes(b.key))):Tu([b.key],on([b.key]),{node:b.rawNode,action:"check"})}if(e.multiple){const S=Array.from(V.value),q=S.findIndex(L=>L===b.key);~q?e.cancelable&&S.splice(q,1):~q||S.push(b.key),ts(S,on(S),{node:b.rawNode,action:~q?"unselect":"select"})}else V.value.includes(b.key)?e.cancelable&&ts([],[],{node:b.rawNode,action:"unselect"}):ts([b.key],on([b.key]),{node:b.rawNode,action:"select"})}}function $d(b){if(pe&&(window.clearTimeout(pe),pe=null),b.isLeaf)return;bt=b.key;const S=()=>{if(bt!==b.key)return;const{value:q}=Ua;if(q&&q.key===b.key&&!ve.value.includes(b.key)){const L=ve.value.concat(b.key);mi(L,on(L),{node:b.rawNode,action:"expand"})}pe=null,bt=null};b.shallowLoaded?pe=window.setTimeout(()=>{S()},1e3):pe=window.setTimeout(()=>{Au(b).then(()=>{S()})},1e3)}function Ed({event:b,node:S}){!e.draggable||e.disabled||wr(S,e.disabledField)||(Pu({event:b,node:S},!1),gd({event:b,node:S.rawNode}))}function Nd({event:b,node:S}){!e.draggable||e.disabled||wr(S,e.disabledField)||yd({event:b,node:S.rawNode})}function Id(b){b.target===b.currentTarget&&Dr()}function qd({event:b,node:S}){Ji(),!(!e.draggable||e.disabled||wr(S,e.disabledField))&&bd({event:b,node:S.rawNode})}function Ad({event:b,node:S}){!e.draggable||e.disabled||wr(S,e.disabledField)||(me=b.clientX,ze.value=S,wd({event:b,node:S.rawNode}))}function Pu({event:b,node:S},q=!0){var L;if(!e.draggable||e.disabled||wr(S,e.disabledField))return;const{value:F}=ze;if(!F)return;const{allowDrop:Fe,indent:Jt}=e;q&&kd({event:b,node:S.rawNode});const sn=b.currentTarget,{height:bi,top:wi}=sn.getBoundingClientRect(),fn=b.clientY-wi;let Se;Fe({node:S.rawNode,dropPosition:"inside",phase:"drag"})?fn<=8?Se="before":fn>=bi-8?Se="after":Se="inside":fn<=bi/2?Se="before":Se="after";const{value:bn}=vd;let we,$t;const ki=bn(S.key);if(ki===null){Dr();return}let Ga=!1;Se==="inside"?(we=S,$t="inside"):Se==="before"?S.isFirstChild?(we=S,$t="before"):(we=xe.value[ki-1],$t="after"):(we=S,$t="after"),!we.isLeaf&&ve.value.includes(we.key)&&(Ga=!0,$t==="after"&&(we=xe.value[ki+1],we?$t="before":(we=S,$t="inside")));const Mu=we;if(Ua.value=Mu,!Ga&&F.isLastChild&&F.key===we.key&&($t="after"),$t==="after"){let Lu=me-b.clientX,is=0;for(;Lu>=Jt/2&&we.parent!==null&&we.isLastChild&&is<1;)Lu-=Jt,is+=1,we=we.parent;Wa.value=is}else Wa.value=0;if((F.contains(we)||$t==="inside"&&((L=F.parent)===null||L===void 0?void 0:L.key)===we.key)&&!(F.key===Mu.key&&F.key===we.key)){Dr();return}if(!Fe({node:we.rawNode,dropPosition:$t,phase:"drag"})){Dr();return}if(F.key===we.key)gi();else if(bt!==we.key)if($t==="inside"){if(e.expandOnDragenter){if($d(we),!we.shallowLoaded&&bt!==we.key){Ji();return}}else if(!we.shallowLoaded){Ji();return}}else gi();else $t!=="inside"&&gi();Ha.value=$t,Kt.value=we}function Td({event:b,node:S,dropPosition:q}){if(!e.draggable||e.disabled||wr(S,e.disabledField))return;const{value:L}=ze,{value:F}=Kt,{value:Fe}=Ha;if(!(!L||!F||!Fe)&&e.allowDrop({node:F.rawNode,dropPosition:Fe,phase:"drag"})&&L.key!==F.key){if(Fe==="before"){const Jt=L.getNext({includeDisabled:!0});if(Jt&&Jt.key===F.key){Dr();return}}if(Fe==="after"){const Jt=L.getPrev({includeDisabled:!0});if(Jt&&Jt.key===F.key){Dr();return}}Cd({event:b,node:F.rawNode,dragNode:L.rawNode,dropPosition:q}),Ji()}}function jd(){Va()}function Pd(){Va()}function Rd(b){var S;if(e.virtualScroll||e.internalScrollable){const{value:q}=l;if(!((S=q==null?void 0:q.containerRef)===null||S===void 0)&&S.contains(b.relatedTarget))return;Oe.value=null}else{const{value:q}=s;if(q!=null&&q.contains(b.relatedTarget))return;Oe.value=null}}kr(Oe,b=>{var S,q;if(b!==null){if(e.virtualScroll)(S=c.value)===null||S===void 0||S.scrollTo({key:b});else if(e.internalScrollable){const{value:L}=l;if(L===null)return;const F=(q=L.contentRef)===null||q===void 0?void 0:q.querySelector(`[data-key="${Bc(b)}"]`);if(!F)return;L.scrollTo({el:F})}}}),gl(Ca,{loadingKeysRef:A,highlightKeySetRef:In,displayedCheckedKeysRef:z,displayedIndeterminateKeysRef:G,mergedSelectedKeysRef:V,mergedExpandedKeysRef:ve,mergedThemeRef:o,mergedCheckStrategyRef:N,nodePropsRef:ge(e,"nodeProps"),disabledRef:ge(e,"disabled"),checkableRef:ge(e,"checkable"),selectableRef:ge(e,"selectable"),expandOnClickRef:ge(e,"expandOnClick"),onLoadRef:ge(e,"onLoad"),draggableRef:ge(e,"draggable"),blockLineRef:ge(e,"blockLine"),indentRef:ge(e,"indent"),cascadeRef:ge(e,"cascade"),checkOnClickRef:ge(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Ua,droppingNodeParentRef:dd,draggingNodeRef:ze,droppingPositionRef:Ha,droppingOffsetLevelRef:Wa,fNodesRef:xe,pendingNodeKeyRef:Oe,showLineRef:ge(e,"showLine"),disabledFieldRef:ge(e,"disabledField"),internalScrollableRef:ge(e,"internalScrollable"),internalCheckboxFocusableRef:ge(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:ge(e,"renderLabel"),renderPrefixRef:ge(e,"renderPrefix"),renderSuffixRef:ge(e,"renderSuffix"),renderSwitcherIconRef:ge(e,"renderSwitcherIcon"),labelFieldRef:ge(e,"labelField"),multipleRef:ge(e,"multiple"),overrideDefaultNodeClickBehaviorRef:ge(e,"overrideDefaultNodeClickBehavior"),handleSwitcherClick:ju,handleDragEnd:qd,handleDragEnter:Ed,handleDragLeave:Nd,handleDragStart:Ad,handleDrop:Td,handleDragOver:Pu,handleSelect:rs,handleCheck:ns});function Md(b,S){var q,L;typeof b=="number"?(q=c.value)===null||q===void 0||q.scrollTo(b,S||0):(L=c.value)===null||L===void 0||L.scrollTo(b)}const Ld={handleKeydown:et,scrollTo:Md,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:b}=x.value;return{keys:b,options:on(b)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:b}=x.value;return{keys:b,options:on(b)}}},Ru=ie(()=>{const{common:{cubicBezierEaseInOut:b},self:{fontSize:S,nodeBorderRadius:q,nodeColorHover:L,nodeColorPressed:F,nodeColorActive:Fe,arrowColor:Jt,loadingColor:sn,nodeTextColor:bi,nodeTextColorDisabled:wi,dropMarkColor:fn,nodeWrapperPadding:Se,nodeHeight:hn,lineHeight:bn,lineColor:we}}=o.value,$t=ss(Se,"top"),ki=ss(Se,"bottom"),Ga=Rc(Qi(hn)-Qi($t)-Qi(ki));return{"--n-arrow-color":Jt,"--n-loading-color":sn,"--n-bezier":b,"--n-font-size":S,"--n-node-border-radius":q,"--n-node-color-active":Fe,"--n-node-color-hover":L,"--n-node-color-pressed":F,"--n-node-text-color":bi,"--n-node-text-color-disabled":wi,"--n-drop-mark-color":fn,"--n-node-wrapper-padding":Se,"--n-line-offset-top":`-${$t}`,"--n-line-offset-bottom":`-${ki}`,"--n-node-content-height":Ga,"--n-line-height":bn,"--n-line-color":we}}),yi=n?bl("tree",void 0,Ru,e):void 0;return Object.assign(Object.assign({},Ld),{mergedClsPrefix:t,mergedTheme:o,rtlEnabled:a,fNodes:pd,aip:_i,selfElRef:s,virtualListInstRef:c,scrollbarInstRef:l,handleFocusout:Rd,handleDragLeaveTree:Id,handleScroll:jd,getScrollContainer:f,getScrollContent:h,handleAfterEnter:_d,handleResize:Pd,cssVars:n?void 0:Ru,themeClass:yi==null?void 0:yi.themeClass,onRender:yi==null?void 0:yi.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:a,blockLine:o,draggable:s,disabled:l,internalFocusable:c,checkable:f,handleKeydown:h,rtlEnabled:d,handleFocusout:v,scrollbarProps:y}=this,p=c&&!l,m=p?"0":void 0,g=[`${r}-tree`,d&&`${r}-tree--rtl`,f&&`${r}-tree--checkable`,(o||a)&&`${r}-tree--block-node`,o&&`${r}-tree--block-line`],_=k=>"__motion"in k?R(uv,{height:k.height,nodes:k.nodes,clsPrefix:r,mode:k.mode,onAfterEnter:this.handleAfterEnter}):R(Vc,{key:k.key,tmNode:k,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:k,internalScrollablePadding:x}=this,N=ss(x||"0");return R(Fu,Object.assign({},y,{ref:"scrollbarInstRef",onDragleave:s?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:g,theme:k.peers.Scrollbar,themeOverrides:k.peerOverrides.Scrollbar,tabindex:m,onKeydown:p?h:void 0,onFocusout:p?v:void 0}),{default:()=>{var z;return(z=this.onRender)===null||z===void 0||z.call(this),t.length?R(m1,{ref:"virtualListInstRef",items:this.fNodes,itemSize:Qi(k.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:N.top,paddingBottom:N.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:N.left,paddingRight:N.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:G})=>_(G)}):zu(this.$slots.empty,()=>[R(Hu,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}const{internalScrollable:C}=this;return g.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),C?R(Fu,Object.assign({},y,{class:g,tabindex:m,onKeydown:p?h:void 0,onFocusout:p?v:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>R("div",{onDragleave:s?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(_))}):R("div",{class:g,tabindex:m,ref:"selfElRef",style:this.cssVars,onKeydown:p?h:void 0,onFocusout:p?v:void 0,onDragleave:s?this.handleDragLeaveTree:void 0},t.length?t.map(_):zu(this.$slots.empty,()=>[R(Hu,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),Zu=e=>{const t=nt(),n={x:0,y:0},r=kl({...n});let a;const o=h=>{a&&h.preventDefault()},s=h=>{a=h,n.x=r.x,n.y=r.y},l=h=>{if(!a||!t.value)return;const d=h.clientX-a.clientX,v=h.clientY-a.clientY;e(d)&&(r.x=n.x+d),r.y=n.y+v},c=()=>{a=void 0},f=()=>{if(!t.value||!a)return;c();const{top:h,bottom:d,left:v,right:y}=t.value.getBoundingClientRect();(y<0||v>window.innerWidth||d<0||h>window.innerHeight)&&(r.x=n.x,r.y=n.y)};return ka(()=>{window.addEventListener("pointermove",l),window.addEventListener("pointerup",f),document.addEventListener("selectstart",o)}),eo(()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",f),document.removeEventListener("selectstart",o),c()}),kr(t,(h,d)=>{h&&(h.addEventListener("pointerdown",s),h.addEventListener("pointerup",c)),d&&(d.removeEventListener("pointerdown",s),d.removeEventListener("pointerup",c))}),eo(()=>{t.value&&(t.value.removeEventListener("pointerdown",s),t.value.removeEventListener("pointerup",c))}),{target:t,offset:r}},ec="transition-top,bottom,left,right-500",Cl=Le({__name:"DraggableCard",props:{initialValue:{default:()=>({})},minWidth:{},sizeDraggable:{type:Boolean},disabled:{type:Boolean}},setup(e){var C,k;const t=e,n=t.initialValue.left!==void 0,r=t.initialValue.top!==void 0,a={x:(C=n?t.initialValue.left:t.initialValue.right)!=null?C:0,y:(k=r?t.initialValue.top:t.initialValue.bottom)!=null?k:0},o=Zu(x=>{const N=(t.initialValue.width||0)+s.offset.x+-o.offset.x-x;return(t.minWidth||0)<N}),s=Zu(x=>{const N=(t.initialValue.width||0)+s.offset.x+x-o.offset.x;return(t.minWidth||0)<N}),l=kl({...a}),c=ie(()=>{const x=(t.initialValue.width||0)+s.offset.x-o.offset.x,N=t.initialValue.width?`width:${x}px;`:"",z=r?`top:${l.y}px;`:`bottom:${l.y}px;`;return n?`left:${l.x-o.offset.x}px;`+z+N:`right:${l.x-s.offset.x}px;`+z+N});let f;const h=x=>{f=x,a.x=l.x,a.y=l.y},d=x=>{if(!p.value||!f)return;const N=x.clientX-f.clientX,z=x.clientY-f.clientY;l.x=a.x+(n?N:-N),l.y=a.y+(r?z:-z)},v=()=>{f=void 0},y=nt(),p=nt(),m=x=>{f&&x.preventDefault()},g=()=>{if(!p.value||!f)return;v();const{top:x,bottom:N,left:z,right:G}=p.value.getBoundingClientRect();if(G<0||z>window.innerWidth||N<0||x>window.innerHeight){l.x=a.x,l.y=a.y;const K=y.value;K&&(K.classList.add(ec),setTimeout(()=>{K.classList.remove(ec)},550))}};ka(()=>{window.addEventListener("pointermove",d),window.addEventListener("pointerup",g),document.addEventListener("selectstart",m)}),eo(()=>{window.removeEventListener("pointermove",d),window.removeEventListener("pointerup",g),document.removeEventListener("selectstart",m),v()}),kr(p,(x,N)=>{x&&(x.addEventListener("pointerdown",h),x.addEventListener("pointerup",v)),N&&(N.removeEventListener("pointerdown",h),N.removeEventListener("pointerup",v))}),eo(()=>{p.value&&(p.value.removeEventListener("pointerdown",h),p.value.removeEventListener("pointerup",v))});const _=x=>{x instanceof HTMLElement?p.value=x:p.value=void 0};return(x,N)=>(se(),pt(n1,{to:"#app",disabled:x.disabled},[P("div",{fixed:"",ref_key:"box",ref:y,style:ms([x.$attrs.style,c.value]),class:Qr(x.$attrs.class)},[Mc(x.$slots,"default",{onRef:_}),x.sizeDraggable?(se(),Nt(Cr,{key:0},[P("div",{ref:I(o).target,absolute:"","right-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512),P("div",{ref:I(s).target,absolute:"","left-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512)],64)):Lt("",!0)],6)],8,["disabled"]))}}),_v=P("th",null,"Name",-1),mv=P("th",null,"Value",-1),gv=[_v,mv],yv={key:0,flex:"","justify-between":"","items-center":""},bv={key:0,viewBox:"0 0 28 28"},wv=P("path",{d:"M15 8a1 1 0 1 1-2 0a1 1 0 0 1 2 0zm-1.75 3.75v7.5a.75.75 0 0 0 1.5 0v-7.5a.75.75 0 0 0-1.5 0zM2 14C2 7.373 7.373 2 14 2s12 5.373 12 12s-5.373 12-12 12S2 20.627 2 14zM14 3.5C8.201 3.5 3.5 8.201 3.5 14S8.201 24.5 14 24.5S24.5 19.799 24.5 14S19.799 3.5 14 3.5z",fill:"currentColor"},null,-1),kv=[wv],Cv={key:1,viewBox:"0 0 1024 1024"},xv=P("path",{d:"M722.500267 330.888533l-273.408 273.408-147.729067-147.729066a42.018133 42.018133 0 1 0-59.426133 59.426133l177.425066 177.493333a41.984 41.984 0 0 0 59.426134 0L781.9264 390.314667a42.001067 42.001067 0 0 0-59.392-59.426134h-0.034133zM78.506667 783.496533a508.279467 508.279467 0 0 0 319.0784 226.986667C530.773333 1041.066667 667.886933 1017.924267 783.701333 945.390933a508.279467 508.279467 0 0 0 226.986667-319.0784 508.279467 508.279467 0 0 0-65.058133-386.116266C848.554667 85.367467 681.710933 0.341333 511.214933 0.341333a508.6208 508.6208 0 0 0-270.813866 77.960534A36.864 36.864 0 0 0 279.552 140.629333C484.113067 12.288 755.029333 74.581333 883.268267 279.278933a434.9952 434.9952 0 0 1 55.739733 330.5472 435.029333 435.029333 0 0 1-194.3552 273.134934 435.746133 435.746133 0 0 1-330.581333 55.773866A435.165867 435.165867 0 0 1 140.936533 744.379733a436.770133 436.770133 0 0 1-5.666133-456.055466 36.829867 36.829867 0 0 0-63.317333-37.546667A510.1568 510.1568 0 0 0 78.506667 783.530667v-0.034134z",fill:"currentColor"},null,-1),Sv=[xv],$v=Le({__name:"AttrCard",props:{focusNode:{}},setup(e){const t=e,n={_id:{desc:"虚拟属性(真机不可用):生成快照访问节点顺序",type:"info"},_pid:{desc:"虚拟属性(真机不可用):父节点的 _id",type:"info"},depth:{desc:"使用此属性在某些应用上可能造成无限节点错误",type:"info"},id:{desc:"可快速查找",type:"quickFind",show(){return(t.focusNode.quickFind||t.focusNode.idQf)&&t.focusNode.attr.id}},vid:{desc:"可快速查找",type:"quickFind",show(){return(t.focusNode.quickFind||t.focusNode.idQf)&&t.focusNode.attr.vid}},text:{desc:"可快速查找",type:"quickFind",show(){return(t.focusNode.quickFind||t.focusNode.textQf)&&t.focusNode.attr.text}}},r=["text","desc"],a=ie(()=>Object.entries(t.focusNode.attr).map(([o,s])=>{var f,h,d;const l=(f=n[o])==null?void 0:f.show,c={name:o,value:s,desc:JSON.stringify(s),tip:!l||l()?n[o]:void 0};return r.includes(o)?[c,{name:o+".length",value:(h=s==null?void 0:s.length)!=null?h:null,desc:JSON.stringify((d=s==null?void 0:s.length)!=null?d:null),tip:void 0}]:c}).flat());return(o,s)=>(se(),pt(Cl,{initialValue:{top:40,right:10},class:"box-shadow-dim"},{default:T(({onRef:l})=>[Y(I(Y1),{size:"small",striped:"",singleLine:!1,class:"gkd_code",themeOverrides:{thPaddingSmall:"1px 3px",tdPaddingSmall:"1px 3px"}},{default:T(()=>[P("thead",null,[P("tr",{ref:l,"cursor-move":""},gv,512)]),Y(I(ev),null,{default:T(()=>[(se(!0),Nt(Cr,null,na(a.value,c=>(se(),pt(I(Z1),{key:c.name},{default:T(()=>[Y(I(Xu),{onClick:f=>I(Hn)(`${c.name}=${c.desc}`)},{default:T(()=>[c.tip?(se(),Nt("div",yv,[P("div",null,Ke(c.name),1),Y(I(Bn),null,{trigger:T(()=>[Y(I(Wn),{size:"16"},{default:T(()=>[c.tip.type=="info"?(se(),Nt("svg",bv,kv)):c.tip.type=="quickFind"?(se(),Nt("svg",Cv,Sv)):Lt("",!0)]),_:2},1024)]),default:T(()=>[kt(" "+Ke(c.tip.desc),1)]),_:2},1024)])):(se(),Nt(Cr,{key:1},[kt(Ke(c.name),1)],64))]),_:2},1032,["onClick"]),Y(I(Xu),null,{default:T(()=>[Y(I(g1),{class:Qr(["w-[calc(var(--gkd-width)*0.12)]",{"text-left direction-rtl":c.name=="id","opacity-50":c.value===null}])},{default:T(()=>[kt(Ke(c.desc),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:2},1024)]),_:1}))}}),Ev={flex:"","flex-col":"",relative:"","h-full":""},Nv=["src"],Iv=P("div",{absolute:"","left-0":"","top-0":"","bottom-0":"","right-0":"","b-solid":"","b-1px":"","b-red":""},null,-1),qv=[Iv],Av={class:"left-[calc(100%+4px)]",absolute:"","top-0":"","overflow-hidden":"","z-1":"","bg-white":"","h-200px":"","w-200px":"","border-1px":"","border-indigo-600":"","border-dashed":""},Tv=["src"],jv={absolute:"","left-2px":"","top-2px":"","p-1px":"","z-1":"","text-13px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]"},Pv={key:0,absolute:"","left-2px":"","bottom-2px":"","p-1px":"","z-1":"","text-12px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]",flex:"","flex-col":"","flex-items-center":""},Rv=P("div",{class:"top-[calc(50%-1px)] bg-[length:10px_1px]",absolute:"","left-0":"","right-0":"","h-1px":"","bg-repeat-x":"","mix-blend-difference":"",style:{"background-image":`linear-gradient(
|
|
258
|
+
to left,
|
|
259
|
+
transparent 0%,
|
|
260
|
+
transparent 50%,
|
|
261
|
+
#fff 50%,
|
|
262
|
+
#fff 100%
|
|
263
|
+
)`,"background-position-x":"1.5px"}},null,-1),Mv=P("div",{class:"left-[calc(50%-1px)] bg-[length:1px_10px]",absolute:"","top-0":"","bottom-0":"","w-1px":"","bg-repeat-y":"","mix-blend-difference":"",style:{"background-image":`linear-gradient(
|
|
264
|
+
to top,
|
|
265
|
+
transparent 0%,
|
|
266
|
+
transparent 50%,
|
|
267
|
+
#fff 50%,
|
|
268
|
+
#fff 100%
|
|
269
|
+
)`,"background-position-y":"1.5px"}},null,-1),Lv=Le({__name:"ScreenshotCard",props:{url:{},snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:Xr},onUpdateFocusNodes:{type:Function,default:Xr}},setup(e){const t=e,n=Dc(),r=x1(ie(()=>(n.width.value,n.height.value,Math.random())),300),a=nt(),o=nt(0),s=p=>{if(!t.rootNode)return;const m=a.value;if(!m)return;const g=m.getBoundingClientRect(),_=g.width/m.naturalWidth*m.naturalHeight,C=(g.height-_)/2,k=(p.clientX-g.left)/g.width*m.naturalWidth,x=(p.clientY-g.top-C)/_*m.naturalHeight,N=y1(t.snapshot.nodes,k,x);N.length!==0&&(N.length===1?t.onUpdateFocusNode(N[0]):(t.onUpdateFocusNode(N[0]),t.onUpdateFocusNodes({nodes:N,position:{x:k,y:x}})))},l=p=>`${p*100}%`,c=ie(()=>{var C;r.value,o.value;const p=a.value,m=(C=t.focusNode)==null?void 0:C.attr;if(!t.focusNode||!p||!m)return"";const g=p.getBoundingClientRect(),_=g.width/p.naturalWidth*p.naturalHeight;return{left:`calc(${l(m.left/p.naturalWidth)} - 2px)`,width:`calc(${l((m.right-m.left)/p.naturalWidth)} + 2px)`,top:`calc(${l((m.top/p.naturalHeight*_+(g.height-_)/2)/g.height)} - 2px)`,height:`calc(${l((m.bottom-m.top)/p.naturalHeight*_/g.height)} + 2px)`}}),f=nt(!1),h=nt({ox:0,oy:0}),d=ie(()=>{var _;const p=(_=t.focusNode)==null?void 0:_.attr;if(!p)return;const{ox:m,oy:g}=h.value;return{left:m-p.left,right:p.right-m,top:g-p.top,bottom:p.bottom-g}}),v=p=>{const m=a.value;if(!m)return;const g=m.getBoundingClientRect(),_=g.width/m.naturalWidth*m.naturalHeight,C=(g.height-_)/2,k=(p.clientX-g.left)/g.width*m.naturalWidth,x=(p.clientY-g.top-C)/_*m.naturalHeight;h.value={ox:k,oy:x},y.value={left:-(k-.1*m.naturalWidth)/m.naturalWidth*1e3+"px",top:-(x-.1*m.naturalWidth)/m.naturalWidth*1e3+"px"}},y=nt({left:"0",top:"0"});return(p,m)=>(se(),Nt("div",Ev,[P("img",{ref_key:"imgRef",ref:a,src:p.url,onClick:s,"cursor-crosshair":"","h-full":"","object-contain":"",class:"max-w-[calc(var(--gkd-width)*0.35)]",onMouseover:m[0]||(m[0]=g=>f.value=!0),onMouseleave:m[1]||(m[1]=g=>f.value=!1),onMousemove:v,onLoad:m[2]||(m[2]=g=>o.value=Date.now())},null,40,Nv),P("div",{style:ms(c.value),absolute:"","pointer-events-none":"","transition-all-300":"","b-1px":"","b-blue":"","b-solid":""},qv,4),Ac(P("div",Av,[P("img",{src:p.url,"object-contain":"",absolute:"","left-0":"","top-0":"",style:ms(y.value),"w-1000px":""},null,12,Tv),P("div",jv,Ke(`${h.value.ox.toFixed(0)},${h.value.oy.toFixed(0)}`),1),d.value?(se(),Nt("div",Pv,[P("div",null,Ke(d.value.top.toFixed(0)),1),P("div",null,Ke(d.value.left.toFixed(0)+","+d.value.right.toFixed(0)),1),P("div",null,Ke(d.value.bottom.toFixed(0)),1)])):Lt("",!0),Rv,Mv],512),[[Tc,f.value]])]))}});typeof Math.imul>"u"&&(Math.imul=function(t,n){return(t&4294901760)*(n&65535)+(t&65535)*(n|0)|0});typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(e){return e!=null&&e.__proto__!=null&&e.__proto__.__proto__===Int8Array.prototype.__proto__});typeof Array.prototype.fill>"u"&&Object.defineProperty(Array.prototype,"fill",{value:function(e){if(this==null)throw new TypeError("this is null or not defined");for(var t=Object(this),n=t.length>>>0,r=arguments[1],a=r>>0,o=a<0?Math.max(n+a,0):Math.min(a,n),s=arguments[2],l=s===void 0?n:s>>0,c=l<0?Math.max(n+l,0):Math.min(l,n);o<c;)t[o]=e,o++;return t}});[Int8Array,Int16Array,Uint16Array,Int32Array,Float32Array,Float64Array].forEach(function(e){typeof e.prototype.fill>"u"&&Object.defineProperty(e.prototype,"fill",{value:Array.prototype.fill})});typeof Math.clz32>"u"&&(Math.clz32=function(e,t){return function(n){var r=n>>>0;return r===0?32:31-(e(r)/t|0)|0}}(Math.log,Math.LN2));typeof String.prototype.endsWith>"u"&&Object.defineProperty(String.prototype,"endsWith",{value:function(e,t){var n=this.toString();(t===void 0||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return r!==-1&&r===t}});typeof String.prototype.startsWith>"u"&&Object.defineProperty(String.prototype,"startsWith",{value:function(e,t){return t=t||0,this.lastIndexOf(e,t)===t}});var _e=Math.imul,Ov=ArrayBuffer.isView,Gc=Math.clz32;Ft(xl,"CharSequence");Ft(xa,"Comparable");w(no,"Number");ae(Sl,"Unit");w(Nl);w(Al);gt(rf);w(ne,"Char",u,u,[xa]);Ft(Ne,"Collection");function Jc(){return $p(this)}Ft(On,"List",u,u,[Ne]);Ft(lr,"Entry");Ft(ur,"Map");Ft(Mr,"Set",u,u,[Ne]);gt(vp);w(cr,"Enum",u,u,[xa]);gt(af);w(he,"Long",u,no,[no,xa]);w(ho);w(xs,"JsArrayView",xs,Array);ae(Lf,"Digit");w(hr,"AbstractCollection",u,u,[Ne]);w(Pn,"AbstractMutableCollection",u,hr,[hr,Ne]);w(ai,"IteratorImpl");w(Ea,"ListIteratorImpl",u,ai);w(mt,"AbstractMutableList",u,Pn,[Pn,On,Ne]);w(yr,"SubList",u,mt);w(_n,"AbstractMap",u,u,[ur]);w(oo,"AbstractMutableMap",u,_n,[_n,ur]);w(fr,"AbstractMutableSet",u,Pn,[Pn,Mr,Ne]);gt(Df);w(Ge,"ArrayList",st,mt,[mt,On,Ne]);w(Rn,"HashMap",q_,oo,[oo,ur]);w(mn,"HashMapEntrySetBase",u,fr,[Mr,Ne,fr]);w(Bl,"HashMapEntrySet",u,mn);w(Sn,"HashSet",j_,fr,[fr,Mr,Ne]);gt(Xf);w(Lr,"Itr");w(Jl,"KeysItr",u,Lr);w(qa,"EntriesItr",u,Lr);w(oi,"EntryRef",u,u,[lr]);function zv(e){var t;e:{var n;if(ee(e,Ne)?n=e.l():n=!1,n){t=!0;break e}for(var r=e.h();r.i();){var a=r.j(),o=a,s;if(o!=null&&ee(o,lr)?s=this.e6(o):s=!1,!s){t=!1;break e}}t=!0}return t}Ft(Yf,"InternalMap");w(xt,"InternalHashMap",Ul,u,[Yf]);w(Aa,"LinkedHashMap",Zf,Rn,[Rn,ur]);w(Or,"LinkedHashSet",Ql,Sn,[Sn,Mr,Ne]);Ft(Wi,"Continuation");w(fa,"InterceptedCoroutine",u,u,[Wi]);w(jt,"CoroutineImpl",u,fa,[fa,Wi]);ae(Li,"CompletedContinuation",u,u,[Wi]);w(Xl,u,u,jt);w(gn,"Exception",nh,Error);w(Dt,"RuntimeException",uh,gn);w(si,"IllegalArgumentException",ah,Dt);w(Oi,"IndexOutOfBoundsException",Yl,Dt);w(zi,"IllegalStateException",sh,Dt);w(Fi,"UnsupportedOperationException",li,Dt);w(Di,"NoSuchElementException",St,Dt);w(Bi,"Error",fh,Error);w(ci,"NumberFormatException",hh,si);w(Ki,"ArithmeticException",vh,Dt);w(yo,"ConcurrentModificationException",Zl,Dt);w(bo,"NullPointerException",eu,Dt);w(wo,"NoWhenBranchMatchedException",tu,Dt);w(ko,"ClassCastException",nu,Dt);Ft(da,"KClass");w(un,"KClassImpl",u,u,[da]);ae(fi,"NothingKClassImpl",u,un);w(Ti,"ErrorKClass",Ti,u,[da]);w(Pe,"PrimitiveKClassImpl",u,un);w(so,"SimpleKClassImpl",u,un);Ft(Co,"KProperty1");Ft(ru,"KProperty0");ae(Je,"PrimitiveClasses");w(yn,"StringBuilder",au,u,[xl]);gt(Ch);w(ja,"Regex");w(ou,"sam$kotlin_Comparator$0");gt(zr);gt(im);gt(So);w(zn,"ArrayAsCollection",u,u,[Ne]);ae(lt,"EmptyList",u,u,[On]);ae(hi,"EmptyIterator");w(Ur,"IndexedValue");w(Eo,"IntIterator");w(Ma,"CharIterator");w(dr,"SequenceScope",u,u,u,[1]);w(vr,"SequenceBuilderIterator",vr,dr,[dr,Wi],[1]);w(cu);w(No);w(fu,"TransformingSequence");w(Io);w(hu,"FilteringSequence");w(qo);w(du,"IndexingSequence");Ft(di,"DropTakeSequence");w(Ao);w(Yr,"TakeSequence",u,u,[di]);w(To);w(vu,"TakeWhileSequence");w(jo);w(Hr,"DropSequence",u,u,[di]);w(Po);w(pu,"DropWhileSequence");ae(Oa,"EmptySequence",u,u,[di]);w(Mo);w(Pr,"SubSequence",u,u,[di]);ae(Fn,"EmptySet",u,u,[Mr]);ae(Ph,"Key");Ft(bm,"ContinuationInterceptor");ae(za,"EmptyCoroutineContext");w(Ya,"CoroutineSingletons",u,cr);gt(Oh);w(Ln,"IntProgression");w(Rr,"IntRange",u,Ln);gt(zh);w(mr,"CharProgression");w(_r,"CharRange",u,mr);w(Oo,"IntProgressionIterator",u,Eo);w(zo,"CharProgressionIterator",u,Ma);gt(mu);gt($m);w(Da,"UnsafeLazyImpl");ae(Vh,"UNINITIALIZED_VALUE");gt(Pm);w(gr,"Failure");w(Bs,"NotImplementedError",Bs,Bi);w(xn,"Pair");function xl(){}function xa(){}function no(){}function Sl(){}i(Sl).toString=function(){return"kotlin.Unit"};var ue;function $l(e){switch(e.length){case 0:return Ra();case 1:return mo(e[0]);default:return El(e)}}function bs(e,t){return Qc(e,t)>=0}function Fv(e){return e.length===0?Hi():new Nl(e)}function El(e){return Na(fm(e))}function Dv(e){var t;switch(e.length){case 0:throw Ta("Array is empty.");case 1:t=e[0];break;default:throw We("Array has more than one element.")}return t}function Qc(e,t){if(t==null){var n=0,r=e.length-1|0;if(n<=r)do{var a=n;if(n=n+1|0,e[a]==null)return a}while(n<=r)}else{var o=0,s=e.length-1|0;if(o<=s)do{var l=o;if(o=o+1|0,E(t,e[l]))return l}while(o<=s)}return-1}function Bv(e){return e.length-1|0}function Kv(e,t){if(t==null){var n=e.length-1|0;if(0<=n)do{var r=n;if(n=n+-1|0,e[r]==null)return r}while(0<=n)}else{var a=e.length-1|0;if(0<=a)do{var o=a;if(a=a+-1|0,E(t,e[o]))return o}while(0<=a)}return-1}function Uv(e,t,n,r,a,o,s){return t=t===u?", ":t,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,Wv(e,au(),t,n,r,a,o,s).toString()}function Hv(e,t){for(var n=0,r=e.length;n<r;){var a=e[n];n=n+1|0,t.e(a)}return t}function Wv(e,t,n,r,a,o,s,l){n=n===u?", ":n,r=r===u?"":r,a=a===u?"":a,o=o===u?-1:o,s=s===u?"...":s,l=l===u?null:l,t.f(r);var c=0,f=0,h=e.length;e:for(;f<h;){var d=e[f];if(f=f+1|0,c=c+1|0,c>1&&t.f(n),o<0||c<=o)Dh(t,d,l);else break e}return o>=0&&c>o&&t.f(s),t.f(a),t}function Nl(e){this.g_1=e}i(Nl).h=function(){return sf(this.g_1)};function Cn(e,t,n,r,a,o,s){return t=t===u?", ":t,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,Vv(e,au(),t,n,r,a,o,s).toString()}function Vv(e,t,n,r,a,o,s,l){n=n===u?", ":n,r=r===u?"":r,a=a===u?"":a,o=o===u?-1:o,s=s===u?"...":s,l=l===u?null:l,t.f(r);var c=0,f=e.h();e:for(;f.i();){var h=f.j();if(c=c+1|0,c>1&&t.f(n),o<0||c<=o)Dh(t,h,l);else break e}return o>=0&&c>o&&t.f(s),t.f(a),t}function Qa(e){return e.l()?null:e.k(0)}function Gv(e){return Yc(Yv(e))}function Jv(e){return new Al(e)}function Qv(e){return e.l()?null:e.k(e.m()-1|0)}function ia(e){if(e.l())throw Ta("List is empty.");return e.k(0)}function Xc(e,t){if(ee(t,Ne)){var n=qi(e.m()+t.m()|0);return n.q(e),n.q(t),n}else{var r=Na(e);return $o(r,t),r}}function aa(e){if(e.l())throw Ta("List is empty.");return e.k(Pa(e))}function Il(e){return Na(e)}function Xv(e,t){return 0<=t&&t<e.m()?e.k(t):null}function ql(e,t){if(ee(e,Ne)){if(e.m()<=1)return Yc(e);var n=pn(e),r=Mi(n)?n:$();return c_(r,t),Ol(r)}var a=Zc(e);return g_(a,t),a}function Yc(e){if(ee(e,Ne)){var t;switch(e.m()){case 0:t=Ra();break;case 1:var n;ee(e,On)?n=e.k(0):n=e.h().j(),t=mo(n);break;default:t=Il(e);break}return t}return lm(Zc(e))}function Yv(e){var t;return ee(e,Ne)?t=Z_(e):t=ro(e,Ql()),t}function Zc(e){return ee(e,Ne)?Il(e):ro(e,st())}function ro(e,t){for(var n=e.h();n.i();){var r=n.j();t.e(r)}return t}function Zv(e){if(ee(e,Ne)){var t;switch(e.m()){case 0:t=_u();break;case 1:var n;ee(e,On)?n=e.k(0):n=e.h().j(),t=zf(n);break;default:t=ro(e,n0(e.m()));break}return t}return gm(ro(e,Ql()))}function Al(e){this.r_1=e}i(Al).h=function(){return this.r_1.h()};function ep(e,t){return Fh.s(e,t,-1)}function oa(e,t){return e>t?t:e}function io(e,t){return e<t?t:e}function Tl(e){return ip(e,st())}function jl(e,t){var n=new du(e),r=new hu(n,!0,ap(t));return new fu(r,op)}function ef(e,t){if(!(t>=0)){var n="Requested element count "+t+" is less than zero.";throw We(O(n))}var r;return t===0?r=Hi():ee(e,di)?r=e.t(t):r=new Yr(e,t),r}function tp(e,t){return new vu(e,t)}function np(e,t){var n;return ee(e,di)?n=e.u(t):n=new Hr(e,t),n}function rp(e,t){return new pu(e,t)}function tf(e){var t=e.h();return t.i()?t.j():null}function nf(e){var t=e.h();if(!t.i())return Ra();var n=t.j();if(!t.i())return mo(n);var r=st();for(r.e(n);t.i();)r.e(t.j());return r}function ip(e,t){for(var n=e.h();n.i();){var r=n.j();t.e(r)}return t}function ap(e){return function(t){return e(t.v_1,t.w_1)}}function op(e){return e.w_1}function Xt(e,t){return 0<=t&&t<=(j(e)-1|0)?M(e,t):null}function tc(e,t){if(!(t>=0)){var n="Requested character count "+t+" is less than zero.";throw We(O(n))}return ln(e,oa(t,j(e)),j(e))}function sp(e){return lp(e,qi(j(e)))}function lp(e,t){for(var n=0;n<j(e);){var r=M(e,n);n=n+1|0,t.e(new ne(r))}return t}function up(e){var t=e&65535;return t}function tt(e,t){return e-t|0}function cp(e,t){return tt(e.x_1,t instanceof ne?t.x_1:$())}function Xi(e,t){return e-t|0}function Br(e,t){return new _r(e,t)}function Ot(e){return e}function Ue(e){return String.fromCharCode(e)}function fp(e,t){return t instanceof ne?e===t.x_1:!1}function hp(e){return e}function rf(){ws=this,this.y_1=0,this.z_1=65535,this.a1_1=55296,this.b1_1=56319,this.c1_1=56320,this.d1_1=57343,this.e1_1=55296,this.f1_1=57343,this.g1_1=2,this.h1_1=16}var ws;function dp(){return ws==null&&new rf,ws}function ne(e){dp(),this.x_1=e}i(ne).i1=function(e){return tt(this.x_1,e)};i(ne).d=function(e){return cp(this,e)};i(ne).toString=function(){return Ue(this.x_1)};i(ne).equals=function(e){return fp(this.x_1,e)};i(ne).hashCode=function(){return hp(this.x_1)};function On(){}function Ne(){}function lr(){}function ur(){}function Mr(){}function vp(){}function cr(e,t){this.v1_1=e,this.w1_1=t}i(cr).x1=function(e){return pf(this.w1_1,e.w1_1)};i(cr).d=function(e){return this.x1(e instanceof cr?e:$())};i(cr).equals=function(e){return this===e};i(cr).hashCode=function(){return Pp(this)};i(cr).toString=function(){return this.v1_1};function Re(e){var t=e==null?null:O(e);return t==null?"null":t}function af(){ks=this,this.y1_1=new he(0,-2147483648),this.z1_1=new he(-1,2147483647),this.a2_1=8,this.b2_1=64}var ks;function pp(){return ks==null&&new af,ks}function he(e,t){pp(),no.call(this),this.c2_1=e,this.d2_1=t}i(he).e2=function(e){return po(this,e)};i(he).d=function(e){return this.e2(e instanceof he?e:$())};i(he).f2=function(e){return ao(this,e)};i(he).g2=function(e){return Up(this,e)};i(he).h2=function(){return this.i2().f2(new he(1,0))};i(he).i2=function(){return new he(~this.c2_1,~this.d2_1)};i(he).j2=function(){return this.c2_1};i(he).k2=function(){return la(this)};i(he).toString=function(){return $s(this,10)};i(he).equals=function(e){var t;return e instanceof he?t=kn(this,e):t=!1,t};i(he).hashCode=function(){return Vp(this)};i(he).valueOf=function(){return this.k2()};function of(e){for(var t=1,n=[],r=0,a=e.length;r<a;){var o=e[r];r=r+1|0;var s=t,l=o.prototype.$imask$,c=l==null?o.$imask$:l;c!=null&&(n.push(c),s=c.length);var f=o.$metadata$.iid,h;f==null?h=null:h=_p(f);var d=h;d!=null&&(n.push(d),s=Math.max(s,d.length)),s>t&&(t=s)}return mp(t,n)}function _p(e){var t=e>>5,n=new Int32Array(t+1|0),r=e&31,a=1<<r;return n[t]=n[t]|a,n}function mp(e,t){for(var n=0,r=new Int32Array(e);n<e;){for(var a=n,o=0,s=0,l=t.length;s<l;){var c=t[s];s=s+1|0,a<c.length&&(o=o|c[a])}r[a]=o,n=n+1|0}return r}function gp(e,t){var n=t>>5;if(n>e.length)return!1;var r=t&31,a=1<<r;return!!(e[n]&a)}function fo(e,t){var n=0,r=e.length-1|0;if(n<=r)do{var a=n;n=n+1|0,e[a]=t}while(a!==r);return e}function sf(e){return new ho(e)}function yp(e){var t="CharArray",n=new Uint16Array(e);return n.$type$=t,n}function ho(e){this.m2_1=e,this.l2_1=0}i(ho).i=function(){return this.l2_1!==this.m2_1.length};i(ho).j=function(){var e;if(this.l2_1!==this.m2_1.length){var t=this.l2_1;this.l2_1=t+1|0,e=this.m2_1[t]}else throw Ta(""+this.l2_1);return e};function cs(){return Pi(),lf}var lf;function uf(){return Pi(),cf}var cf;function Cs(){return Pi(),ff}var ff;function hf(){return Pi(),df}var df;function bp(){return Pi(),vf}var vf;function wp(e){return Pi(),(e|0)===e?xf(e):(uf()[0]=e,_e(Cs()[bp()],31)+Cs()[hf()]|0)}var nc;function Pi(){nc||(nc=!0,lf=new ArrayBuffer(8),cf=new Float64Array(cs()),new Float32Array(cs()),ff=new Int32Array(cs()),uf()[0]=-1,df=Cs()[0]!==0?1:0,vf=1-hf()|0)}function M(e,t){var n;if(Pl(e)){var r=e.charCodeAt(t),a,o=0;if(r<Ot(o))a=!0;else{var s=65535;a=r>Ot(s)}if(a)throw We("Invalid Char code: "+r);n=ca(r)}else n=e.b(t);return n}function Pl(e){return typeof e=="string"}function j(e){var t;return Pl(e)?t=e.length:t=e.a(),t}function ln(e,t,n){var r;return Pl(e)?r=e.substring(t,n):r=e.c(t,n),r}function kp(e,t){var n=e,r=t;if(n===r)return!0;if(n==null||r==null||!$f(r)||n.length!=r.length)return!1;var a=0,o=n.length;if(a<o)do{var s=a;if(a=a+1|0,!E(n[s],r[s]))return!1}while(a<o);return!0}function Cp(e){var t=e;if(t==null)return 0;var n=1,r=0,a=t.length;if(r<a)do{var o=r;r=r+1|0,n=_e(n,31)+le(t[o])|0}while(r<a);return n}function xp(e){return Uv(e,", ","[","]",u,u,Sp)}function Sp(e){return O(e)}function $p(e){var t=Np(e),n=Ip(e),r=qp(),a=Ap(),o=Tp();return Ep(t,n,r,a,o)}function Ep(e,t,n,r,a){var o=Q(i(xs));return new Proxy(o,{get:function(s,l,c){if(l==="length")return e();var f=typeof l,h=f==="string"||f==="number"?+l:void 0;return isNaN(h)?s[l]:t(h)},has:function(s,l){return!isNaN(l)&&l<e()},set:function(s,l,c){if(l==="length"){var f=e(),h=d==="string"||d==="number"?+l:void 0;if(isNaN(h))throw new RangeError("invalid array length");return h<f?r(f-h):a(h-f),!0}var d=typeof l,v=d==="string"||d==="number"?+l:void 0;return isNaN(v)?!1:(n(v,c),!0)}})}function Rl(){throw li()}function xs(){Array.call(this)}function Np(e){return function(){return e.m()}}function Ip(e){return function(t){return e.k(t)}}function qp(){var e=function(){return Rl(),ue};return e.callableName="UNSUPPORTED_OPERATION",e}function Ap(){var e=function(){return Rl(),ue};return e.callableName="UNSUPPORTED_OPERATION",e}function Tp(){var e=function(){return Rl(),ue};return e.callableName="UNSUPPORTED_OPERATION",e}function pf(e,t){var n;switch(typeof e){case"number":var r;typeof t=="number"?r=rc(e,t):t instanceof he?r=rc(e,t.k2()):r=ic(e,t),n=r;break;case"string":case"boolean":n=ic(e,t);break;default:n=jp(e,t);break}return n}function rc(e,t){var n;if(e<t)n=-1;else if(e>t)n=1;else if(e===t){var r;if(e!==0)r=0;else{var a=1/e,o;a===1/t?o=0:a<0?o=-1:o=1,r=o}n=r}else e!==e?n=t!==t?0:1:n=-1;return n}function ic(e,t){return e<t?-1:e>t?1:0}function jp(e,t){return e.d(t)}function Pp(e){return Ss(e)}function Ss(e){if(!("kotlinHashCodeValue$"in e)){var t=_f(),n=new Object;n.value=t,n.enumerable=!1,Object.defineProperty(e,"kotlinHashCodeValue$",n)}return e.kotlinHashCodeValue$}function _f(){return Math.random()*4294967296|0}function Q(e){return e=e===u?null:e,Object.create(e)}function H(e,t,n,r){return Object.defineProperty(e,t,{configurable:!0,get:n,set:r})}function E(e,t){if(e==null)return t==null;if(t==null)return!1;if(typeof e=="object"&&typeof e.equals=="function")return e.equals(t);if(e!==e)return t!==t;if(typeof e=="number"&&typeof t=="number"){var n;if(e===t){var r;if(e!==0)r=!0;else{var a=1/e;r=a===1/t}n=r}else n=!1;return n}return e===t}function le(e){if(e==null)return 0;var t=typeof e,n;switch(t){case"object":n=typeof e.hashCode=="function"?e.hashCode():Ss(e);break;case"function":n=Ss(e);break;case"number":n=wp(e);break;case"boolean":n=Ml(e);break;case"string":n=Ht(String(e));break;case"bigint":n=Rp(e);break;case"symbol":n=Mp(e);break;default:n=function(){throw new Error("Unexpected typeof `"+t+"`")}();break}return n}function O(e){var t;return e==null?t="null":$f(e)?t="[...]":typeof e.toString!="function"?t=Lp(e):t=e.toString(),t}function Ml(e){return e?1231:1237}function Ht(e){var t=0,n=e.length,r=0,a=n-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=e.charCodeAt(o);t=_e(t,31)+s|0}while(o!==a);return t}function Rp(e){for(var t=BigInt(32),n=BigInt(4294967295),r=e<0?-e:e,a=0,o=e<0?-1:1;r!=0;){var s=Number(r&n);a=_e(31,a)+s|0,r=r>>t}return _e(a,o)}function Mp(e){var t=Op(e)?zp():Fp(),n=t.get(e);if(n!==u)return n;var r=_f();return t.set(e,r),r}function Lp(e){return Object.prototype.toString.call(e)}function Op(e){return Symbol.keyFor(e)!=u}function zp(){return fs===u&&(fs=new Map),fs}function Fp(){return hs===u&&(hs=new WeakMap),hs}var fs,hs;function B(e,t){Error.captureStackTrace!=null?Error.captureStackTrace(e,t):e.stack=new Error().stack}function i(e){return e.prototype}function vo(e,t,n){Error.call(e),Dp(e,t,n)}function Dp(e,t,n){var r=Mf(Object.getPrototypeOf(e));if(!(r&1)){var a;if(t==null){var o;if(t!==null){var s=null;o=s==null?u:s}else o=u;a=o}else a=t;e.message=a}r&2||(e.cause=n),e.name=Object.getPrototypeOf(e).constructor.name}function Tt(e){var t;return e==null?Bp():t=e,t}function Bp(){throw eu()}function xr(){throw tu()}function $(){throw nu()}function Vn(){return Ie(),mf}var mf;function Ja(){return Ie(),gf}var gf;function ac(){return Ie(),yf}var yf;function Kp(){return Ie(),bf}var bf;function Tn(){return Ie(),wf}var wf;function oc(){return Ie(),kf}var kf;function po(e,t){if(Ie(),kn(e,t))return 0;var n=vn(e),r=vn(t);return n&&!r?-1:!n&&r?1:vn(sa(e,t))?-1:1}function ao(e,t){Ie();var n=e.d2_1>>>16|0,r=e.d2_1&65535,a=e.c2_1>>>16|0,o=e.c2_1&65535,s=t.d2_1>>>16|0,l=t.d2_1&65535,c=t.c2_1>>>16|0,f=t.c2_1&65535,h=0,d=0,v=0,y=0;return y=y+(o+f|0)|0,v=v+(y>>>16|0)|0,y=y&65535,v=v+(a+c|0)|0,d=d+(v>>>16|0)|0,v=v&65535,d=d+(r+l|0)|0,h=h+(d>>>16|0)|0,d=d&65535,h=h+(n+s|0)|0,h=h&65535,new he(v<<16|y,h<<16|d)}function sa(e,t){return Ie(),ao(e,t.h2())}function Sr(e,t){if(Ie(),Kr(e))return Vn();if(Kr(t))return Vn();if(kn(e,Tn()))return sc(t)?Tn():Vn();if(kn(t,Tn()))return sc(e)?Tn():Vn();if(vn(e)){var n;return vn(t)?n=Sr(Qt(e),Qt(t)):n=Qt(Sr(Qt(e),t)),n}else if(vn(t))return Qt(Sr(e,Qt(t)));if(lc(e,oc())&&lc(t,oc()))return ua(la(e)*la(t));var r=e.d2_1>>>16|0,a=e.d2_1&65535,o=e.c2_1>>>16|0,s=e.c2_1&65535,l=t.d2_1>>>16|0,c=t.d2_1&65535,f=t.c2_1>>>16|0,h=t.c2_1&65535,d=0,v=0,y=0,p=0;return p=p+_e(s,h)|0,y=y+(p>>>16|0)|0,p=p&65535,y=y+_e(o,h)|0,v=v+(y>>>16|0)|0,y=y&65535,y=y+_e(s,f)|0,v=v+(y>>>16|0)|0,y=y&65535,v=v+_e(a,h)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+_e(o,f)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+_e(s,c)|0,d=d+(v>>>16|0)|0,v=v&65535,d=d+(((_e(r,h)+_e(a,f)|0)+_e(o,c)|0)+_e(s,l)|0)|0,d=d&65535,new he(y<<16|p,d<<16|v)}function Up(e,t){if(Ie(),Kr(t))throw rh("division by zero");if(Kr(e))return Vn();if(kn(e,Tn())){if(kn(t,Ja())||kn(t,ac()))return Tn();if(kn(t,Tn()))return Ja();var n=Wp(e,1),r=Hp(n.g2(t),1);if(kn(r,Vn()))return vn(t)?Ja():ac();var a=sa(e,Sr(t,r));return ao(r,a.g2(t))}else if(kn(t,Tn()))return Vn();if(vn(e)){var o;return vn(t)?o=Qt(e).g2(Qt(t)):o=Qt(Qt(e).g2(t)),o}else if(vn(t))return Qt(e.g2(Qt(t)));for(var s=Vn(),l=e;Jp(l,t);){for(var c=la(l)/la(t),f=Math.max(1,Math.floor(c)),h=Math.ceil(Math.log(f)/Math.LN2),d=h<=48?1:Math.pow(2,h-48),v=ua(f),y=Sr(v,t);vn(y)||Gp(y,l);)f=f-d,v=ua(f),y=Sr(v,t);Kr(v)&&(v=Ja()),s=ao(s,v),l=sa(l,y)}return s}function Hp(e,t){Ie();var n=t&63;return new he(e.c2_1<<n,e.d2_1<<n|(e.c2_1>>>(32-n|0)|0))}function Wp(e,t){Ie();var n=t&63;return new he(e.c2_1>>>n|0|e.d2_1<<(32-n|0),e.d2_1>>n)}function la(e){return Ie(),e.d2_1*4294967296+Qp(e)}function $s(e,t){if(Ie(),Kr(e))return"0";if(vn(e))if(kn(e,Tn())){var n=ta(t),r=e.g2(n),a=sa(Sr(r,n),e).j2(),o=$s(r,t);return o+a.toString(t)}else return"-"+$s(Qt(e),t);for(var s=9,l=ua(Math.pow(t,s)),c=e,f="";;){var h=c.g2(l),d=sa(c,Sr(h,l)).j2(),v=d.toString(t);if(c=h,Kr(c))return v+f;for(;v.length<s;)v="0"+v;f=v+f}}function kn(e,t){return Ie(),e.d2_1===t.d2_1&&e.c2_1===t.c2_1}function Vp(e){return Ie(),e.c2_1^e.d2_1}function ta(e){return Ie(),new he(e,e<0?-1:0)}function vn(e){return Ie(),e.d2_1<0}function Kr(e){return Ie(),e.d2_1===0&&e.c2_1===0}function sc(e){return Ie(),(e.c2_1&1)===1}function Qt(e){return Ie(),e.h2()}function lc(e,t){return Ie(),po(e,t)<0}function ua(e){if(Ie(),__(e))return Vn();if(e<=-9223372036854776e3)return Tn();if(e+1>=9223372036854776e3)return Kp();if(e<0)return Qt(ua(-e));var t=4294967296,n=e%t|0,r=e/t|0;return new he(n,r)}function Gp(e,t){return Ie(),po(e,t)>0}function Jp(e,t){return Ie(),po(e,t)>=0}function Qp(e){return Ie(),e.c2_1>=0?e.c2_1:4294967296+e.c2_1}var uc;function Ie(){uc||(uc=!0,mf=ta(0),gf=ta(1),yf=ta(-1),bf=new he(-1,2147483647),wf=new he(0,-2147483648),kf=ta(16777216))}function Cf(e,t,n,r,a,o){var s=u,l=e==="interface"?Xp():u;return{kind:e,simpleName:t,associatedObjectKey:r,associatedObjects:a,suspendArity:o,$kClass$:s,defaultConstructor:n,iid:l}}function Xp(){return Yi===u&&(Yi=0),Yi=Yi+1|0,Yi}var Yi;function Ll(e,t,n,r,a,o,s,l,c){a!=null&&(t.prototype=Object.create(a.prototype),t.prototype.constructor=t);var f=Cf(e,n,r,l,c,s);if(t.$metadata$=f,o!=null){var h=E(f.iid,u)?t.prototype:t;h.$imask$=of(o)}}function w(e,t,n,r,a,o,s,l){var c="class";Ll(c,e,t,n,r,a,o,s,l)}function ae(e,t,n,r,a,o,s,l){var c="object";Ll(c,e,t,n,r,a,o,s,l)}function Ft(e,t,n,r,a,o,s,l){var c="interface";Ll(c,e,t,n,r,a,o,s,l)}function Sa(e,t,n,r){w(e,"Lambda",u,t,n,r,u,u)}function gt(e,t,n,r){ae(e,"Companion",u,t,n,r,u,u)}function Yp(e,t,n,r,a){return Cf("class",e,t,n,r,a)}function Ii(e){var t=e.length,n=Array(t),r=0,a=t-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=e[o];s!=null&&Mi(s)?n[o]=s:n[o]=[].slice.call(s)}while(o!==a);return[].concat.apply([],n)}function xf(e){var t;return e instanceof he?t=e.j2():t=Zp(e),t}function Zp(e){var t;return e>2147483647?t=2147483647:e<-2147483648?t=-2147483648:t=e|0,t}function e_(e){return e<<16>>16}function ca(e){var t=xf(e),n=e_(t);return up(n)}function t_(e,t){return new Rr(e,t)}function n_(){return Ri(),Sf}var Sf;function Si(){return Ri(),Yp(u,u,u,u,u)}function $a(e,t,n,r,a){return Ri(),r.get=r,r.set=a,r.callableName=e,r_(r,i_(t,a),a_(r,n))}function r_(e,t,n){return Ri(),e.$metadata$=t,e.constructor=e,e.$imask$=n,e}function i_(e,t){return Ri(),n_()[e][t==null?0:1]}function a_(e,t){Ri();var n=e.$imask$,r;if(n==null){var a=[t];r=of(a)}else r=n;return r}var cc;function Ri(){if(!cc){cc=!0;var e=[Si(),Si()],t=[Si(),Si()];Sf=[e,t,[Si(),Si()]]}}function $f(e){return _o(e)||Ov(e)}function _o(e){return Array.isArray(e)}function ee(e,t){return o_(e,t.$metadata$.iid)}function o_(e,t){var n=e.$imask$,r;if(n==null)return!1;r=n;var a=r;return gp(a,t)}function Mi(e){var t;return _o(e)?t=!e.$type$:t=!1,t}function Ef(e){var t;return typeof e=="number"?t=!0:t=e instanceof he,t}function s_(e){var t=typeof e;return t==="string"||t==="boolean"||Ef(e)||ee(e,xa)}function ht(e){return typeof e=="string"||ee(e,xl)}function Nf(e){return _o(e)&&e.$type$==="BooleanArray"}function If(e){return e instanceof Int8Array}function qf(e){return e instanceof Int16Array}function Af(e){var t;return e instanceof Uint16Array?t=e.$type$==="CharArray":t=!1,t}function Tf(e){return e instanceof Int32Array}function jf(e){return e instanceof Float32Array}function Pf(e){return _o(e)&&e.$type$==="LongArray"}function Rf(e){return e instanceof Float64Array}function Mf(e){var t=e.constructor,n=t==null?null:t.$metadata$,r=n==null?null:n.errorInfo;if(r!=null)return r;var a=0;if(fc(e,"message")&&(a=a|1),fc(e,"cause")&&(a=a|2),a!==3){var o=l_(e);o!=Error.prototype&&(a=a|Mf(o))}return n!=null&&(n.errorInfo=a),a}function fc(e,t){return e.hasOwnProperty(t)}function l_(e){return Object.getPrototypeOf(e)}var u;function u_(e,t,n,r){n=n===u?0:n,r=r===u?e.length:r,cn.o2(n,r,e.length),e.fill(t,n,r)}function Es(e,t){return kp(e,t)}function Ns(e){return Cp(e)}function Ol(e){return new Ge(e)}function c_(e,t){e.length>1&&Bf(e,t)}function f_(e,t){if(!(t>=0)){var n="Invalid new array size: "+t+".";throw We(O(n))}return k0(e,new Int32Array(t))}function h_(e,t){if(!(t>=0)){var n="Invalid new array size: "+t+".";throw We(O(n))}return C0(e,t,null)}function zl(e){var t=(e.m()/2|0)-1|0;if(t<0)return ue;var n=Pa(e),r=0;if(r<=t)do{var a=r;r=r+1|0;var o=e.k(a);e.p2(a,e.k(n)),e.p2(n,o),n=n-1|0}while(a!==t)}function d_(e){var t=Ot(e),n=v_(hc().q2_1,t),r=t-hc().q2_1[n]|0;return r<10?r:-1}function v_(e,t){for(var n=0,r=e.length-1|0,a=-1,o=0;n<=r;)if(a=(n+r|0)/2|0,o=e[a],t>o)n=a+1|0;else{if(t===o)return a;r=a-1|0}return a-(t<o?1:0)|0}function Lf(){Is=this;var e=this;e.q2_1=new Int32Array([48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296])}var Is;function hc(){return Is==null&&new Lf,Is}function p_(e){var t=Ot(e);return(9<=t?t<=13:!1)||(28<=t?t<=32:!1)||t===160||t>4096&&(t===5760||(8192<=t?t<=8202:!1)||t===8232||t===8233||t===8239||t===8287||t===12288)}function __(e){return e!==e}function m_(e){var t;return e===0?t=0:t=1<<(31-Gc(e)|0),t}function Of(e){return om(e)}function pn(e){var t;return e.toArray!==void 0?t=e.toArray():t=Of(e),t}function Fl(e){return e<0&&hm(),e}function g_(e,t){y_(e,t)}function mo(e){return dm([e])}function zf(e){return mm([e])}function y_(e,t){if(e.m()<=1)return ue;var n=pn(e);Bf(n,t);var r=0,a=n.length;if(r<a)do{var o=r;r=r+1|0,e.p2(o,n[o])}while(r<a)}function Pn(){hr.call(this)}i(Pn).q=function(e){this.r2();for(var t=!1,n=e.h();n.i();){var r=n.j();this.e(r)&&(t=!0)}return t};i(Pn).toJSON=function(){return this.toArray()};i(Pn).r2=function(){};function ai(e){this.u2_1=e,this.s2_1=0,this.t2_1=-1}i(ai).i=function(){return this.s2_1<this.u2_1.m()};i(ai).j=function(){if(!this.i())throw St();var e=this,t=this.s2_1;return this.s2_1=t+1|0,e.t2_1=t,this.u2_1.k(this.t2_1)};i(ai).v2=function(){if(this.t2_1===-1){var e="Call next() or previous() before removing element from the iterator.";throw jr(O(e))}this.u2_1.x2(this.t2_1),this.s2_1=this.t2_1,this.t2_1=-1};function Ea(e,t){this.b3_1=e,ai.call(this,e),cn.c3(t,this.b3_1.m()),this.s2_1=t}i(Ea).d3=function(){return this.s2_1>0};i(Ea).e3=function(){return this.s2_1};i(Ea).f3=function(){if(!this.d3())throw St();var e=this;return this.s2_1=this.s2_1-1|0,e.t2_1=this.s2_1,this.b3_1.k(this.t2_1)};function yr(e,t,n){mt.call(this),this.h3_1=e,this.i3_1=t,this.j3_1=0,cn.o2(this.i3_1,n,this.h3_1.m()),this.j3_1=n-this.i3_1|0}i(yr).k3=function(e,t){cn.c3(e,this.j3_1),this.h3_1.k3(this.i3_1+e|0,t),this.j3_1=this.j3_1+1|0};i(yr).k=function(e){return cn.l3(e,this.j3_1),this.h3_1.k(this.i3_1+e|0)};i(yr).x2=function(e){cn.l3(e,this.j3_1);var t=this.h3_1.x2(this.i3_1+e|0);return this.j3_1=this.j3_1-1|0,t};i(yr).p2=function(e,t){return cn.l3(e,this.j3_1),this.h3_1.p2(this.i3_1+e|0,t)};i(yr).m3=function(e,t){this.h3_1.m3(this.i3_1+e|0,this.i3_1+t|0),this.j3_1=this.j3_1-(t-e|0)|0};i(yr).m=function(){return this.j3_1};i(yr).r2=function(){return this.h3_1.r2()};function mt(){Pn.call(this),this.w2_1=0}i(mt).e=function(e){return this.r2(),this.k3(this.m(),e),!0};i(mt).n3=function(){this.r2(),this.m3(0,this.m())};i(mt).h=function(){return new ai(this)};i(mt).j1=function(e){return this.l1(e)>=0};i(mt).l1=function(e){var t;e:{for(var n=0,r=this.h();r.i();){var a=r.j();if(E(a,e)){t=n;break e}n=n+1|0}t=-1}return t};i(mt).m1=function(e){var t;e:{for(var n=this.o1(this.m());n.d3();){var r=n.f3();if(E(r,e)){t=n.e3();break e}}t=-1}return t};i(mt).n1=function(){return this.o1(0)};i(mt).o1=function(e){return new Ea(this,e)};i(mt).p1=function(e,t){return new yr(this,e,t)};i(mt).m3=function(e,t){var n=this.o1(e),r=t-e|0,a=0;if(a<r)do a=a+1|0,n.j(),n.v2();while(a<r)};i(mt).equals=function(e){return e===this?!0:e!=null&&ee(e,On)?cn.o3(this,e):!1};i(mt).hashCode=function(){return cn.p3(this)};function oo(){_n.call(this),this.s3_1=null,this.t3_1=null}function fr(){Pn.call(this)}i(fr).equals=function(e){return e===this?!0:e!=null&&ee(e,Mr)?lu.y3(this,e):!1};i(fr).hashCode=function(){return lu.z3(this)};function Ff(e){if(!(e>=0)){var t="capacity must be non-negative.";throw We(O(t))}return fo(Array(e),null)}function dc(e,t,n){e.fill(null,t,n)}function vc(e,t){return h_(e,t)}function Df(){qs=this;var e=this,t=qi(0);t.p_1=!0,e.a4_1=t}var qs;function b_(){return qs==null&&new Df,qs}function w_(e){var t=[];return Ge.call(e,t),e}function st(){return w_(Q(i(Ge)))}function k_(e,t){var n=[];if(Ge.call(t,n),!(e>=0)){var r="Negative initial capacity: "+e;throw We(O(r))}return t}function qi(e){return k_(e,Q(i(Ge)))}function C_(e,t){var n=pn(e);return Ge.call(t,n),t}function Na(e){return C_(e,Q(i(Ge)))}function x_(e,t){var n=e.m();return e.o_1.length=e.m()+t|0,n}function Dl(e,t){return cn.l3(t,e.m()),t}function S_(e,t){return cn.c3(t,e.m()),t}function Ge(e){b_(),mt.call(this),this.o_1=e,this.p_1=!1}i(Ge).m=function(){return this.o_1.length};i(Ge).k=function(e){var t=this.o_1[Dl(this,e)];return t==null||t!=null?t:$()};i(Ge).p2=function(e,t){this.r2(),Dl(this,e);var n=this.o_1[e];this.o_1[e]=t;var r=n;return r==null||r!=null?r:$()};i(Ge).e=function(e){return this.r2(),this.o_1.push(e),this.w2_1=this.w2_1+1|0,!0};i(Ge).k3=function(e,t){this.r2(),this.o_1.splice(S_(this,e),0,t),this.w2_1=this.w2_1+1|0};i(Ge).q=function(e){if(this.r2(),e.l())return!1;for(var t=x_(this,e.m()),n=0,r=e.h();r.i();){var a=r.j(),o=n;n=o+1|0;var s=Fl(o);this.o_1[t+s|0]=a}return this.w2_1=this.w2_1+1|0,!0};i(Ge).x2=function(e){this.r2(),Dl(this,e),this.w2_1=this.w2_1+1|0;var t;return e===Pa(this)?t=this.o_1.pop():t=this.o_1.splice(e,1)[0],t};i(Ge).m3=function(e,t){this.r2(),this.w2_1=this.w2_1+1|0,this.o_1.splice(e,t-e|0)};i(Ge).n3=function(){this.r2();var e=this;e.o_1=[],this.w2_1=this.w2_1+1|0};i(Ge).l1=function(e){return Qc(this.o_1,e)};i(Ge).m1=function(e){return Kv(this.o_1,e)};i(Ge).toString=function(){return xp(this.o_1)};i(Ge).b4=function(){return[].slice.call(this.o_1)};i(Ge).toArray=function(){return this.b4()};i(Ge).r2=function(){if(this.p_1)throw li()};var Xa;function Bf(e,t){if($_()){var n=N_(t);e.sort(n)}else E_(e,0,Bv(e),t)}function $_(){var e=Xa;if(e!=null)return e;Xa=!1;var t=[],n=0;if(n<600)do{var r=n;n=n+1|0,t.push(r)}while(n<600);var a=I_;t.sort(a);var o=1,s=t.length;if(o<s)do{var l=o;o=o+1|0;var c=t[l-1|0],f=t[l];if((c&3)===(f&3)&&c>=f)return!1}while(o<s);return Xa=!0,!0}function E_(e,t,n,r){var a=e.length,o=fo(Array(a),null),s=As(e,o,t,n,r);if(s!==e){var l=t;if(l<=n)do{var c=l;l=l+1|0,e[c]=s[c]}while(c!==n)}}function As(e,t,n,r,a){if(n===r)return e;var o=(n+r|0)/2|0,s=As(e,t,n,o,a),l=As(e,t,o+1|0,r,a),c=s===t?e:t,f=n,h=o+1|0,d=n;if(d<=r)do{var v=d;if(d=d+1|0,f<=o&&h<=r){var y=s[f],p=l[h];a.compare(y,p)<=0?(c[v]=y,f=f+1|0):(c[v]=p,h=h+1|0)}else f<=o?(c[v]=s[f],f=f+1|0):(c[v]=l[h],h=h+1|0)}while(v!==r);return c}function N_(e){return function(t,n){return e.compare(t,n)}}function I_(e,t){return(e&3)-(t&3)|0}function Kf(e,t){return oo.call(t),Rn.call(t),t.g4_1=e,t}function Uf(e){return Kf(Ul(),e),e}function q_(){return Uf(Q(i(Rn)))}function A_(e,t,n){return Kf(Jf(e,t),n),n}function T_(e,t){return A_(e,1,t),t}i(Rn).s1=function(e){return this.g4_1.i4(e)};i(Rn).u1=function(){var e=this.h4_1,t;if(e==null){var n=new Bl(this.g4_1);this.h4_1=n,t=n}else t=e;return t};i(Rn).t1=function(e){return this.g4_1.t1(e)};i(Rn).u3=function(e,t){return this.g4_1.u3(e,t)};i(Rn).m=function(){return this.g4_1.m()};function Rn(){this.h4_1=null}function Bl(e){mn.call(this,e)}i(Bl).h=function(){return this.k4_1.l4()};function mn(e){fr.call(this),this.k4_1=e}i(mn).m=function(){return this.k4_1.m()};i(mn).l=function(){return this.k4_1.m()===0};i(mn).m4=function(e){return this.k4_1.o4(e)};i(mn).j1=function(e){return e!=null&&ee(e,lr)?this.m4(e!=null&&ee(e,lr)?e:$()):!1};i(mn).n4=function(e){throw li()};i(mn).e=function(e){return this.n4(e!=null&&ee(e,lr)?e:$())};i(mn).q=function(e){throw li()};i(mn).k1=function(e){return this.k4_1.p4(e)};i(mn).r2=function(){return this.k4_1.q4()};function Kl(e,t){return fr.call(t),Sn.call(t),t.r4_1=e,t}function Hf(e){return Kl(Ul(),e),e}function j_(){return Hf(Q(i(Sn)))}function P_(e,t){Kl(O_(e.m()),t);for(var n=e.h();n.i();){var r=n.j();t.r4_1.u3(r,!0)}return t}function Wf(e,t,n){return Kl(Jf(e,t),n),n}function R_(e,t){return Wf(e,1,t),t}function M_(e){return R_(e,Q(i(Sn)))}i(Sn).e=function(e){return this.r4_1.u3(e,!0)==null};i(Sn).j1=function(e){return this.r4_1.i4(e)};i(Sn).l=function(){return this.r4_1.m()===0};i(Sn).h=function(){return this.r4_1.s4()};i(Sn).m=function(){return this.r4_1.m()};function Sn(){}function Vf(e,t){return m_(_e(io(t,1),3))}function Gf(e,t){return Gc(t)+1|0}function L_(e){return Hl(8,e),e}function Ul(){return L_(Q(i(xt)))}function Hl(e,t){return xt.call(t,Ff(e),null,new Int32Array(e),new Int32Array(Vf(Ia,e)),2,0),t}function O_(e){return Hl(e,Q(i(xt)))}function z_(e,t,n){return Hl(e,n),n}function Jf(e,t){return z_(e,t,Q(i(xt)))}function Ai(e){return e.t4_1.length}function jn(e){return e.w4_1.length}function Qf(e){e.a5_1=e.a5_1+1|0}function F_(e,t){D_(e,t)?Vl(e,jn(e)):B_(e,e.y4_1+t|0)}function D_(e,t){var n=Ai(e)-e.y4_1|0,r=e.y4_1-e.m()|0;return n<t&&(r+n|0)>=t&&r>=(Ai(e)/4|0)}function B_(e,t){if(t<0)throw ch("too many elements");if(t>Ai(e)){var n=cn.d5(Ai(e),t);e.t4_1=vc(e.t4_1,n);var r=e,a=e.u4_1;r.u4_1=a==null?null:vc(a,n),e.v4_1=f_(e.v4_1,n);var o=Vf(Ia,n);o>jn(e)&&Vl(e,o)}}function K_(e){var t=e.u4_1;if(t!=null)return t;var n=Ff(Ai(e));return e.u4_1=n,n}function Wl(e,t){return t==null?0:_e(le(t),-1640531527)>>>e.z4_1|0}function U_(e){for(var t=0,n=0,r=e.u4_1;t<e.y4_1;)e.v4_1[t]>=0&&(e.t4_1[n]=e.t4_1[t],r!=null&&(r[n]=r[t]),n=n+1|0),t=t+1|0;dc(e.t4_1,n,e.y4_1),r==null||dc(r,n,e.y4_1),e.y4_1=n}function Vl(e,t){Qf(e),e.y4_1>e.b5_1&&U_(e),t!==jn(e)?(e.w4_1=new Int32Array(t),e.z4_1=Gf(Ia,t)):u_(e.w4_1,0,0,jn(e));for(var n=0;n<e.y4_1;){var r=n;if(n=r+1|0,!H_(e,r))throw jr("This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?")}}function H_(e,t){for(var n=Wl(e,e.t4_1[t]),r=e.x4_1;;){var a=e.w4_1[n];if(a===0)return e.w4_1[n]=t+1|0,e.v4_1[t]=n,!0;if(r=r-1|0,r<0)return!1;var o=n;n=o-1|0,o===0&&(n=jn(e)-1|0)}}function Gl(e,t){for(var n=Wl(e,t),r=e.x4_1;;){var a=e.w4_1[n];if(a===0)return-1;if(a>0&&E(e.t4_1[a-1|0],t))return a-1|0;if(r=r-1|0,r<0)return-1;var o=n;n=o-1|0,o===0&&(n=jn(e)-1|0)}}function W_(e,t){e.q4();e:for(;;)for(var n=Wl(e,t),r=oa(_e(e.x4_1,2),jn(e)/2|0),a=0;;){var o=e.w4_1[n];if(o<=0){if(e.y4_1>=Ai(e)){F_(e,1);continue e}var s=e.y4_1;e.y4_1=s+1|0;var l=s;return e.t4_1[l]=t,e.v4_1[l]=n,e.w4_1[n]=l+1|0,e.b5_1=e.b5_1+1|0,Qf(e),a>e.x4_1&&(e.x4_1=a),l}if(E(e.t4_1[o-1|0],t))return-o|0;if(a=a+1|0,a>r){Vl(e,_e(jn(e),2));continue e}var c=n;n=c-1|0,c===0&&(n=jn(e)-1|0)}}function V_(e,t){return e.b5_1===t.m()&&e.p4(t.u1())}function Xf(){this.e5_1=-1640531527,this.f5_1=8,this.g5_1=2,this.h5_1=-1}var Ia;function Lr(e){this.i5_1=e,this.j5_1=0,this.k5_1=-1,this.l5_1=this.i5_1.a5_1,this.m5()}i(Lr).m5=function(){for(;this.j5_1<this.i5_1.y4_1&&this.i5_1.v4_1[this.j5_1]<0;)this.j5_1=this.j5_1+1|0};i(Lr).i=function(){return this.j5_1<this.i5_1.y4_1};i(Lr).n5=function(){if(this.i5_1.a5_1!==this.l5_1)throw Zl()};function Jl(e){Lr.call(this,e)}i(Jl).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw St();var e=this,t=this.j5_1;this.j5_1=t+1|0,e.k5_1=t;var n=this.i5_1.t4_1[this.k5_1];return this.m5(),n};function qa(e){Lr.call(this,e)}i(qa).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw St();var e=this,t=this.j5_1;this.j5_1=t+1|0,e.k5_1=t;var n=new oi(this.i5_1,this.k5_1);return this.m5(),n};i(qa).w5=function(){if(this.j5_1>=this.i5_1.y4_1)throw St();var e=this,t=this.j5_1;this.j5_1=t+1|0,e.k5_1=t;var n=this.i5_1.t4_1[this.k5_1],r=n==null?null:le(n),a=r==null?0:r,o=Tt(this.i5_1.u4_1)[this.k5_1],s=o==null?null:le(o),l=a^(s==null?0:s);return this.m5(),l};i(qa).x5=function(e){if(this.j5_1>=this.i5_1.y4_1)throw St();var t=this,n=this.j5_1;this.j5_1=n+1|0,t.k5_1=n;var r=this.i5_1.t4_1[this.k5_1];E(r,this.i5_1)?e.a6("(this Map)"):e.z5(r),e.b6(61);var a=Tt(this.i5_1.u4_1)[this.k5_1];E(a,this.i5_1)?e.a6("(this Map)"):e.z5(a),this.m5()};function oi(e,t){this.c6_1=e,this.d6_1=t}i(oi).q1=function(){return this.c6_1.t4_1[this.d6_1]};i(oi).r1=function(){return Tt(this.c6_1.u4_1)[this.d6_1]};i(oi).equals=function(e){var t,n;return e!=null&&ee(e,lr)?n=E(e.q1(),this.q1()):n=!1,n?t=E(e.r1(),this.r1()):t=!1,t};i(oi).hashCode=function(){var e=this.q1(),t=e==null?null:le(e),n=t==null?0:t,r=this.r1(),a=r==null?null:le(r);return n^(a==null?0:a)};i(oi).toString=function(){return Re(this.q1())+"="+Re(this.r1())};function xt(e,t,n,r,a,o){this.t4_1=e,this.u4_1=t,this.v4_1=n,this.w4_1=r,this.x4_1=a,this.y4_1=o,this.z4_1=Gf(Ia,jn(this)),this.a5_1=0,this.b5_1=0,this.c5_1=!1}i(xt).m=function(){return this.b5_1};i(xt).t1=function(e){var t=Gl(this,e);return t<0?null:Tt(this.u4_1)[t]};i(xt).i4=function(e){return Gl(this,e)>=0};i(xt).u3=function(e,t){var n=W_(this,e),r=K_(this);if(n<0){var a=r[(-n|0)-1|0];return r[(-n|0)-1|0]=t,a}else return r[n]=t,null};i(xt).equals=function(e){var t;if(e===this)t=!0;else{var n;e!=null&&ee(e,ur)?n=V_(this,e):n=!1,t=n}return t};i(xt).hashCode=function(){for(var e=0,t=this.l4();t.i();)e=e+t.w5()|0;return e};i(xt).toString=function(){var e=yh(2+_e(this.b5_1,3)|0);e.a6("{");for(var t=0,n=this.l4();n.i();)t>0&&e.a6(", "),n.x5(e),t=t+1|0;return e.a6("}"),e.toString()};i(xt).q4=function(){if(this.c5_1)throw li()};i(xt).o4=function(e){var t=Gl(this,e.q1());return t<0?!1:E(Tt(this.u4_1)[t],e.r1())};i(xt).e6=function(e){return this.o4(ee(e,lr)?e:$())};i(xt).s4=function(){return new Jl(this)};i(xt).l4=function(){return new qa(this)};function Yf(){}function G_(e){return Uf(e),Aa.call(e),e}function Zf(){return G_(Q(i(Aa)))}function J_(e,t){return T_(e,t),Aa.call(t),t}function Q_(e){return J_(e,Q(i(Aa)))}function Aa(){}function X_(e){return Hf(e),Or.call(e),e}function Ql(){return X_(Q(i(Or)))}function Y_(e,t){return P_(e,t),Or.call(t),t}function Z_(e){return Y_(e,Q(i(Or)))}function e0(e,t,n){return Wf(e,t,n),Or.call(n),n}function t0(e,t){return e0(e,1,t),t}function n0(e){return t0(e,Q(i(Or)))}i(Or).r2=function(){return this.r4_1.q4()};function Or(){}function jt(e){fa.call(this),this.h6_1=e,this.i6_1=0,this.j6_1=0,this.k6_1=null,this.l6_1=null,this.m6_1=null;var t=this,n=this.h6_1;t.n6_1=n==null?null:n.o6()}i(jt).o6=function(){return Tt(this.n6_1)};i(jt).p6=function(e){var t=this,n;if(Tm(e))n=null;else{var r=e;n=r==null||r!=null?r:$()}for(var a=n,o=jm(e);;){var s=t;o==null?s.k6_1=a:(s.i6_1=s.j6_1,s.l6_1=o);try{var l=s.q6();if(l===pr())return ue;a=l,o=null}catch(p){var c=p;a=null,o=c}s.s6();var f=Tt(s.h6_1);if(f instanceof jt)t=f;else{if(o!=null){var h=Tt(o),d=Rm(h);f.t6(d)}else{var v=a,y=v;f.t6(y)}return ue}}};i(jt).t6=function(e){return this.p6(e)};function Li(){}i(Li).o6=function(){var e="This continuation is already complete";throw jr(O(e))};i(Li).p6=function(e){var t="This continuation is already complete";throw jr(O(t))};i(Li).t6=function(e){return this.p6(e)};i(Li).toString=function(){return"This continuation is already complete"};var eh;function fa(){this.r6_1=null}i(fa).s6=function(){var e=this.r6_1;e!=null&&e!==this&&Tt(this.o6().u6(Rh)).v6(e),this.r6_1=eh};function r0(e,t,n){return new Xl(n,e,t,n)}function Xl(e,t,n,r){this.e7_1=t,this.f7_1=n,this.g7_1=r,jt.call(this,ee(e,Wi)?e:$())}i(Xl).q6=function(){if(this.l6_1!=null)throw this.l6_1;var e=this.e7_1;return typeof e=="function"?e(this.f7_1,this.g7_1):this.e7_1.h7(this.f7_1,this.g7_1)};function th(e){return vo(e),gn.call(e),e}function nh(){var e=th(Q(i(gn)));return B(e,nh),e}function go(e,t){return vo(t,e),gn.call(t),t}function rh(e){var t=go(e,Q(i(gn)));return B(t,rh),t}function gn(){B(this,gn)}function ih(e){return $n(e),si.call(e),e}function ah(){var e=ih(Q(i(si)));return B(e,ah),e}function oh(e,t){return ui(e,t),si.call(t),t}function We(e){var t=oh(e,Q(i(si)));return B(t,We),t}function si(){B(this,si)}function i0(e){return $n(e),Oi.call(e),e}function Yl(){var e=i0(Q(i(Oi)));return B(e,Yl),e}function a0(e,t){return ui(e,t),Oi.call(t),t}function Mn(e){var t=a0(e,Q(i(Oi)));return B(t,Mn),t}function Oi(){B(this,Oi)}function o0(e){return $n(e),zi.call(e),e}function sh(){var e=o0(Q(i(zi)));return B(e,sh),e}function s0(e,t){return ui(e,t),zi.call(t),t}function jr(e){var t=s0(e,Q(i(zi)));return B(t,jr),t}function zi(){B(this,zi)}function l0(e){return $n(e),Fi.call(e),e}function li(){var e=l0(Q(i(Fi)));return B(e,li),e}function u0(e,t){return ui(e,t),Fi.call(t),t}function lh(e){var t=u0(e,Q(i(Fi)));return B(t,lh),t}function Fi(){B(this,Fi)}function $n(e){return th(e),Dt.call(e),e}function uh(){var e=$n(Q(i(Dt)));return B(e,uh),e}function ui(e,t){return go(e,t),Dt.call(t),t}function ch(e){var t=ui(e,Q(i(Dt)));return B(t,ch),t}function Dt(){B(this,Dt)}function c0(e){return $n(e),Di.call(e),e}function St(){var e=c0(Q(i(Di)));return B(e,St),e}function f0(e,t){return ui(e,t),Di.call(t),t}function Ta(e){var t=f0(e,Q(i(Di)));return B(t,Ta),t}function Di(){B(this,Di)}function h0(e){return vo(e),Bi.call(e),e}function fh(){var e=h0(Q(i(Bi)));return B(e,fh),e}function d0(e,t){return vo(t,e),Bi.call(t),t}function Bi(){B(this,Bi)}function v0(e){return ih(e),ci.call(e),e}function hh(){var e=v0(Q(i(ci)));return B(e,hh),e}function p0(e,t){return oh(e,t),ci.call(t),t}function dh(e){var t=p0(e,Q(i(ci)));return B(t,dh),t}function ci(){B(this,ci)}function _0(e){return $n(e),Ki.call(e),e}function vh(){var e=_0(Q(i(Ki)));return B(e,vh),e}function m0(e,t){return ui(e,t),Ki.call(t),t}function ph(e){var t=m0(e,Q(i(Ki)));return B(t,ph),t}function Ki(){B(this,Ki)}function g0(e){return $n(e),yo.call(e),e}function Zl(){var e=g0(Q(i(yo)));return B(e,Zl),e}function yo(){B(this,yo)}function y0(e){return $n(e),bo.call(e),e}function eu(){var e=y0(Q(i(bo)));return B(e,eu),e}function bo(){B(this,bo)}function b0(e){return $n(e),wo.call(e),e}function tu(){var e=b0(Q(i(wo)));return B(e,tu),e}function wo(){B(this,wo)}function w0(e){return $n(e),ko.call(e),e}function nu(){var e=w0(Q(i(ko)));return B(e,nu),e}function ko(){B(this,ko)}function ha(e){return new Da(e)}function k0(e,t){for(var n=e.length,r=t.length,a=0,o=t;a<n&&a<r;){var s=a,l=a;a=l+1|0,o[s]=e[l]}return t}function C0(e,t,n){var r=e.slice(0,t);e.$type$!==void 0&&(r.$type$=e.$type$);var a=e.length;if(t>a)for(r.length=t;a<t;){var o=a;a=o+1|0,r[o]=n}return r}function da(){}function un(e){this.l7_1=e}i(un).m7=function(){return this.l7_1};i(un).equals=function(e){var t;return e instanceof fi||e instanceof Ti?t=!1:e instanceof un?t=E(this.m7(),e.m7()):t=!1,t};i(un).hashCode=function(){var e=this.k7(),t=e==null?null:Ht(e);return t==null?0:t};i(un).toString=function(){return"class "+this.k7()};function fi(){Ts=this,un.call(this,Object),this.o7_1="Nothing"}i(fi).k7=function(){return this.o7_1};i(fi).m7=function(){throw lh("There's no native JS class for Nothing type")};i(fi).equals=function(e){return e===this};i(fi).hashCode=function(){return 0};var Ts;function _h(){return Ts==null&&new fi,Ts}function Ti(){}i(Ti).equals=function(e){return e===this};i(Ti).hashCode=function(){return 0};function Pe(e,t,n){un.call(this,e),this.q7_1=t,this.r7_1=n}i(Pe).equals=function(e){return e instanceof Pe?i(un).equals.call(this,e)&&this.q7_1===e.q7_1:!1};i(Pe).k7=function(){return this.q7_1};function so(e){un.call(this,e);var t=this,n=e.$metadata$;t.t7_1=n==null?null:n.simpleName}i(so).k7=function(){return this.t7_1};function Co(){}function ru(){}function pc(){return U0(),mh}var mh;function x0(e){return e!=null}function S0(e){return Ef(e)}function $0(e){return e!=null?typeof e=="boolean":!1}function E0(e){return e!=null?typeof e=="number":!1}function N0(e){return e!=null?typeof e=="number":!1}function I0(e){return e!=null?typeof e=="number":!1}function q0(e){return e!=null?typeof e=="number":!1}function A0(e){return e!=null?typeof e=="number":!1}function T0(e){return e!=null?Mi(e):!1}function j0(e){return e!=null?typeof e=="string":!1}function P0(e){return e instanceof Error}function R0(e){return e!=null?Nf(e):!1}function M0(e){return e!=null?Af(e):!1}function L0(e){return e!=null?If(e):!1}function O0(e){return e!=null?qf(e):!1}function z0(e){return e!=null?Tf(e):!1}function F0(e){return e!=null?Pf(e):!1}function D0(e){return e!=null?jf(e):!1}function B0(e){return e!=null?Rf(e):!1}function K0(e){return function(t){var n;return typeof t=="function"?n=t.length===e:n=!1,n}}function Je(){js=this;var e=this,t=Object;e.anyClass=new Pe(t,"Any",x0);var n=this,r=Number;n.numberClass=new Pe(r,"Number",S0),this.nothingClass=_h();var a=this,o=Boolean;a.booleanClass=new Pe(o,"Boolean",$0);var s=this,l=Number;s.byteClass=new Pe(l,"Byte",E0);var c=this,f=Number;c.shortClass=new Pe(f,"Short",N0);var h=this,d=Number;h.intClass=new Pe(d,"Int",I0);var v=this,y=Number;v.floatClass=new Pe(y,"Float",q0);var p=this,m=Number;p.doubleClass=new Pe(m,"Double",A0);var g=this,_=Array;g.arrayClass=new Pe(_,"Array",T0);var C=this,k=String;C.stringClass=new Pe(k,"String",j0);var x=this,N=Error;x.throwableClass=new Pe(N,"Throwable",P0);var z=this,G=Array;z.booleanArrayClass=new Pe(G,"BooleanArray",R0);var K=this,re=Uint16Array;K.charArrayClass=new Pe(re,"CharArray",M0);var V=this,je=Int8Array;V.byteArrayClass=new Pe(je,"ByteArray",L0);var Ce=this,be=Int16Array;Ce.shortArrayClass=new Pe(be,"ShortArray",O0);var ve=this,xe=Int32Array;ve.intArrayClass=new Pe(xe,"IntArray",z0);var Oe=this,et=Array;Oe.longArrayClass=new Pe(et,"LongArray",F0);var pe=this,bt=Float32Array;pe.floatArrayClass=new Pe(bt,"FloatArray",D0);var Rt=this,Gt=Float64Array;Rt.doubleArrayClass=new Pe(Gt,"DoubleArray",B0)}i(Je).u7=function(){return this.anyClass};i(Je).v7=function(){return this.numberClass};i(Je).w7=function(){return this.nothingClass};i(Je).x7=function(){return this.booleanClass};i(Je).y7=function(){return this.byteClass};i(Je).z7=function(){return this.shortClass};i(Je).a8=function(){return this.intClass};i(Je).b8=function(){return this.floatClass};i(Je).c8=function(){return this.doubleClass};i(Je).d8=function(){return this.arrayClass};i(Je).e8=function(){return this.stringClass};i(Je).f8=function(){return this.throwableClass};i(Je).g8=function(){return this.booleanArrayClass};i(Je).h8=function(){return this.charArrayClass};i(Je).i8=function(){return this.byteArrayClass};i(Je).j8=function(){return this.shortArrayClass};i(Je).k8=function(){return this.intArrayClass};i(Je).l8=function(){return this.longArrayClass};i(Je).m8=function(){return this.floatArrayClass};i(Je).n8=function(){return this.doubleArrayClass};i(Je).functionClass=function(e){var t=pc()[e],n;if(t==null){var r=Function,a="Function"+e,o=new Pe(r,a,K0(e));pc()[e]=o,n=o}else n=t;return n};var js;function Et(){return js==null&&new Je,js}var _c;function U0(){_c||(_c=!0,mh=fo(Array(0),null))}function H0(e){var t;return Array.isArray(e)?t=W0(e):t=iu(e),t}function W0(e){var t;switch(e.length){case 1:t=iu(e[0]);break;case 0:t=_h();break;default:t=new Ti;break}return t}function iu(e){if(e===String)return Et().stringClass;var t=e.$metadata$,n;if(t!=null){var r;if(t.$kClass$==null){var a=new so(e);t.$kClass$=a,r=a}else r=t.$kClass$;n=r}else n=new so(e);return n}function lo(e){var t;switch(typeof e){case"string":t=Et().stringClass;break;case"number":var n;(e|0)===e?n=Et().intClass:n=Et().doubleClass,t=n;break;case"boolean":t=Et().booleanClass;break;case"function":var r=Et();t=r.functionClass(e.length);break;default:var a;if(Nf(e))a=Et().booleanArrayClass;else if(Af(e))a=Et().charArrayClass;else if(If(e))a=Et().byteArrayClass;else if(qf(e))a=Et().shortArrayClass;else if(Tf(e))a=Et().intArrayClass;else if(Pf(e))a=Et().longArrayClass;else if(jf(e))a=Et().floatArrayClass;else if(Rf(e))a=Et().doubleArrayClass;else if(ee(e,da))a=H0(da);else if(Mi(e))a=Et().arrayClass;else{var o=Object.getPrototypeOf(e).constructor,s;if(o===Object)s=Et().anyClass;else if(o===Error)s=Et().throwableClass;else{var l=o;s=iu(l)}a=s}t=a;break}return t}function gh(e){e.lastIndex=0}function V0(e,t){return bh(t),t}function yh(e){return V0(e,Q(i(yn)))}function bh(e){return yn.call(e,""),e}function au(){return bh(Q(i(yn)))}function yn(e){this.y5_1=e!==void 0?e:""}i(yn).a=function(){return this.y5_1.length};i(yn).b=function(e){var t=this.y5_1,n;if(0<=e&&e<=(j(t)-1|0))n=M(t,e);else throw Mn("index: "+e+", length: "+this.a()+"}");return n};i(yn).c=function(e,t){return this.y5_1.substring(e,t)};i(yn).b6=function(e){return this.y5_1=this.y5_1+Ue(e),this};i(yn).f=function(e){return this.y5_1=this.y5_1+Re(e),this};i(yn).z5=function(e){return this.y5_1=this.y5_1+Re(e),this};i(yn).a6=function(e){var t=this,n=this.y5_1;return t.y5_1=n+(e==null?"null":e),this};i(yn).toString=function(){return this.y5_1};function mc(e){var t=Ue(e).toUpperCase();return t.length>1?e:M(t,0)}function wh(e){return p_(e)}function gc(e,t){return e.toString(kh(t))}function kh(e){if(!(2<=e&&e<=36))throw We("radix "+e+" was not in valid range 2..36");return e}function G0(e){var t=Kh(e),n;return t==null?Uh(e):n=t,n}function yc(e,t){var n=gu(e,t),r;return n==null?Uh(e):r=n,r}function J0(e,t){var n=tt(e,48)>=0&&tt(e,57)<=0?Xi(e,48):tt(e,65)>=0&&tt(e,90)<=0?Xi(e,65)+10|0:tt(e,97)>=0&&tt(e,122)<=0?Xi(e,97)+10|0:tt(e,128)<0?-1:tt(e,65313)>=0&&tt(e,65338)<=0?Xi(e,65313)+10|0:tt(e,65345)>=0&&tt(e,65370)<=0?Xi(e,65345)+10|0:d_(e);return n>=t?-1:n}function Q0(e,t){return ja.call(t,e,_u()),t}function X0(e){return Q0(e,Q(i(ja)))}function Ch(){Ps=this,this.o8_1=new RegExp("[\\\\^$*+?.()|[\\]{}]","g"),this.p8_1=new RegExp("[\\\\$]","g"),this.q8_1=new RegExp("\\$","g")}var Ps;function Y0(){return Ps==null&&new Ch,Ps}function ja(e,t){Y0(),this.r8_1=e,this.s8_1=Zv(t),this.t8_1=new RegExp(e,Z0(t,"gu")),this.u8_1=null,this.v8_1=null}i(ja).w8=function(e){gh(this.t8_1);var t=this.t8_1.exec(O(e));return t!=null&&t.index===0&&this.t8_1.lastIndex===j(e)};i(ja).toString=function(){return this.t8_1.toString()};function Z0(e,t){return Cn(e,"",t,u,u,u,em)}function em(e){return e.z8_1}function tm(e,t){return Am(e,t)}function ou(e){this.a9_1=e}i(ou).b9=function(e,t){return this.a9_1(e,t)};i(ou).compare=function(e,t){return this.b9(e,t)};function su(e,t,n){return n=n===u?!1:n,n?xo(e,0,t,0,t.length,n):e.startsWith(t,0)}function xh(e,t,n){return n=n===u?!1:n,n?xo(e,e.length-t.length|0,t,0,t.length,n):e.endsWith(t)}function nm(e,t,n,r){return r=r===u?!1:r,r?xo(e,n,t,0,t.length,r):e.startsWith(t,n)}function xo(e,t,n,r,a,o){return o=o===u?!1:o,Fa(e,t,n,r,a,o)}function rm(e){return function(t){return t===e?"(this Collection)":Re(t)}}function hr(){}i(hr).j1=function(e){var t;e:{var n;if(ee(this,Ne)?n=this.l():n=!1,n){t=!1;break e}for(var r=this.h();r.i();){var a=r.j();if(E(a,e)){t=!0;break e}}t=!1}return t};i(hr).k1=function(e){var t;e:{var n;if(ee(e,Ne)?n=e.l():n=!1,n){t=!0;break e}for(var r=e.h();r.i();){var a=r.j();if(!this.j1(a)){t=!1;break e}}t=!0}return t};i(hr).l=function(){return this.m()===0};i(hr).toString=function(){return Cn(this,", ","[","]",u,u,rm(this))};i(hr).toArray=function(){return Of(this)};function zr(){this.n2_1=2147483639}i(zr).l3=function(e,t){if(e<0||e>=t)throw Mn("index: "+e+", size: "+t)};i(zr).c3=function(e,t){if(e<0||e>t)throw Mn("index: "+e+", size: "+t)};i(zr).o2=function(e,t,n){if(e<0||t>n)throw Mn("fromIndex: "+e+", toIndex: "+t+", size: "+n);if(e>t)throw We("fromIndex: "+e+" > toIndex: "+t)};i(zr).d5=function(e,t){var n=e+(e>>1)|0;return(n-t|0)<0&&(n=t),(n-2147483639|0)>0&&(n=t>2147483639?2147483647:2147483639),n};i(zr).p3=function(e){for(var t=1,n=e.h();n.i();){var r=n.j(),a=_e(31,t),o=r==null?null:le(r);t=a+(o==null?0:o)|0}return t};i(zr).o3=function(e,t){if(e.m()!==t.m())return!1;for(var n=t.h(),r=e.h();r.i();){var a=r.j(),o=n.j();if(!E(a,o))return!1}return!0};var cn;function bc(e,t){return t===e?"(this Map)":Re(t)}function Sh(e,t){var n;e:{for(var r=e.u1().h();r.i();){var a=r.j();if(E(a.q1(),t)){n=a;break e}}n=null}return n}function im(){}function am(e){return function(t){return e.c9(t)}}function _n(){this.v3_1=null,this.w3_1=null}i(_n).s1=function(e){return Sh(this,e)!=null};i(_n).x3=function(e){if(!(e!=null&&ee(e,lr)))return!1;var t=e.q1(),n=e.r1(),r=(ee(this,ur)?this:$()).t1(t);if(!E(n,r))return!1;var a;return r==null?a=!(ee(this,ur)?this:$()).s1(t):a=!1,!a};i(_n).equals=function(e){if(e===this)return!0;if(!(e!=null&&ee(e,ur))||this.m()!==e.m())return!1;var t;e:{var n=e.u1(),r;if(ee(n,Ne)?r=n.l():r=!1,r){t=!0;break e}for(var a=n.h();a.i();){var o=a.j();if(!this.x3(o)){t=!1;break e}}t=!0}return t};i(_n).t1=function(e){var t=Sh(this,e);return t==null?null:t.r1()};i(_n).hashCode=function(){return le(this.u1())};i(_n).m=function(){return this.u1().m()};i(_n).toString=function(){var e=this.u1();return Cn(e,", ","{","}",u,u,am(this))};i(_n).c9=function(e){return bc(this,e.q1())+"="+bc(this,e.r1())};function So(){}i(So).z3=function(e){for(var t=0,n=e.h();n.i();){var r=n.j(),a=t,o=r==null?null:le(r);t=a+(o==null?0:o)|0}return t};i(So).y3=function(e,t){return e.m()!==t.m()?!1:e.k1(t)};var lu;function om(e){if(e.l())return[];for(var t=e.m(),n=fo(Array(t),null),r=e.h(),a=0;r.i();){var o=a;a=o+1|0,n[o]=r.j()}return n}function uu(e){return e.length>0?Ol(e):Ra()}function $h(e){return e.length===0?st():Na(new zn(e,!0))}function Pa(e){return e.m()-1|0}function sm(e,t,n,r){n=n===u?0:n,r=r===u?e.m():r,um(e.m(),n,r);for(var a=n,o=r-1|0;a<=o;){var s=(a+o|0)>>>1|0,l=e.k(s),c=Lo(l,t);if(c<0)a=s+1|0;else if(c>0)o=s-1|0;else return s}return-(a+1|0)|0}function Ra(){return cm()}function lm(e){switch(e.m()){case 0:return Ra();case 1:return mo(e.k(0));default:return e}}function zn(e,t){this.d9_1=e,this.e9_1=t}i(zn).m=function(){return this.d9_1.length};i(zn).l=function(){return this.d9_1.length===0};i(zn).f9=function(e){return bs(this.d9_1,e)};i(zn).g9=function(e){var t;e:{var n;if(ee(e,Ne)?n=e.l():n=!1,n){t=!0;break e}for(var r=e.h();r.i();){var a=r.j();if(!this.f9(a)){t=!1;break e}}t=!0}return t};i(zn).k1=function(e){return this.g9(e)};i(zn).h=function(){return sf(this.d9_1)};function um(e,t,n){if(t>n)throw We("fromIndex ("+t+") is greater than toIndex ("+n+").");if(t<0)throw Mn("fromIndex ("+t+") is less than zero.");if(n>e)throw Mn("toIndex ("+n+") is greater than size ("+e+").")}function lt(){Rs=this,this.h9_1=new he(-1478467534,-1720727600)}i(lt).equals=function(e){var t;return e!=null&&ee(e,On)?t=e.l():t=!1,t};i(lt).hashCode=function(){return 1};i(lt).toString=function(){return"[]"};i(lt).m=function(){return 0};i(lt).l=function(){return!0};i(lt).i9=function(e){return!1};i(lt).j1=function(e){return!1};i(lt).j9=function(e){return e.l()};i(lt).k1=function(e){return this.j9(e)};i(lt).k=function(e){throw Mn("Empty list doesn't contain element at index "+e+".")};i(lt).k9=function(e){return-1};i(lt).l1=function(e){return-1};i(lt).l9=function(e){return-1};i(lt).m1=function(e){return-1};i(lt).h=function(){return Ui};i(lt).n1=function(){return Ui};i(lt).o1=function(e){if(e!==0)throw Mn("Index: "+e);return Ui};i(lt).p1=function(e,t){if(e===0&&t===0)return this;throw Mn("fromIndex: "+e+", toIndex: "+t)};var Rs;function cm(){return Rs==null&&new lt,Rs}function hi(){}i(hi).i=function(){return!1};i(hi).d3=function(){return!1};i(hi).e3=function(){return 0};i(hi).j=function(){throw St()};i(hi).f3=function(){throw St()};var Ui;function fm(e){return new zn(e,!1)}function hm(){throw ph("Index overflow has happened.")}function dm(e){return e.length===0?st():Na(new zn(e,!0))}function Ur(e,t){this.v_1=e,this.w_1=t}i(Ur).toString=function(){return"IndexedValue(index="+this.v_1+", value="+Re(this.w_1)+")"};i(Ur).hashCode=function(){var e=this.v_1;return e=_e(e,31)+(this.w_1==null?0:le(this.w_1))|0,e};i(Ur).equals=function(e){if(this===e)return!0;if(!(e instanceof Ur))return!1;var t=e instanceof Ur?e:$();return!(this.v_1!==t.v_1||!E(this.w_1,t.w_1))};function Ms(e,t){var n;return ee(e,Ne)?n=e.m():n=t,n}function vm(e,t){return e.q(Ol(t))}function $o(e,t){if(ee(t,Ne))return e.q(t);for(var n=!1,r=t.h();r.i();){var a=r.j();e.e(a)&&(n=!0)}return n}function Eo(){}i(Eo).j=function(){return this.m9()};function Ma(){}i(Ma).n9=function(){return this.o9()};i(Ma).j=function(){return new ne(this.n9())};function La(e){return new cu(e)}function dr(){}function pm(e){var t=new vr;return t.t9_1=r0(e,t,t),t}function _m(e){if(e.i())return e.j();throw St()}function Eh(e){switch(e.q9_1){case 4:return St();case 5:return jr("Iterator has failed.");default:return jr("Unexpected state of the iterator: "+e.q9_1)}}function vr(){dr.call(this),this.q9_1=0,this.r9_1=null,this.s9_1=null,this.t9_1=null}i(vr).i=function(){for(;;){switch(this.q9_1){case 0:break;case 1:if(Tt(this.s9_1).i())return this.q9_1=2,!0;this.s9_1=null;break;case 4:return!1;case 3:case 2:return!0;default:throw Eh(this)}this.q9_1=5;var e=Tt(this.t9_1);this.t9_1=null;var t=ue;e.t6(t)}};i(vr).j=function(){switch(this.q9_1){case 0:case 1:return _m(this);case 2:return this.q9_1=1,Tt(this.s9_1).j();case 3:this.q9_1=0;var e=this.r9_1,t=e==null||e!=null?e:$();return this.r9_1=null,t;default:throw Eh(this)}};i(vr).p9=function(e,t){return this.r9_1=e,this.q9_1=3,this.t9_1=t,pr()};i(vr).u9=function(e){Mm(e);var t=e;t==null||t!=null||$(),this.q9_1=4};i(vr).t6=function(e){return this.u9(e)};i(vr).o6=function(){return wm()};function cu(e){this.v9_1=e}i(cu).h=function(){return pm(this.v9_1)};function Hi(){return Ro}function No(e){this.x9_1=e,this.w9_1=e.y9_1.h()}i(No).j=function(){return this.x9_1.z9_1(this.w9_1.j())};i(No).i=function(){return this.w9_1.i()};function fu(e,t){this.y9_1=e,this.z9_1=t}i(fu).h=function(){return new No(this)};function Nh(e){for(;e.aa_1.i();){var t=e.aa_1.j();if(e.da_1.ga_1(t)===e.da_1.fa_1)return e.ca_1=t,e.ba_1=1,ue}e.ba_1=0}function Io(e){this.da_1=e,this.aa_1=e.ea_1.h(),this.ba_1=-1,this.ca_1=null}i(Io).j=function(){if(this.ba_1===-1&&Nh(this),this.ba_1===0)throw St();var e=this.ca_1;return this.ca_1=null,this.ba_1=-1,e==null||e!=null?e:$()};i(Io).i=function(){return this.ba_1===-1&&Nh(this),this.ba_1===1};function hu(e,t,n){t=t===u?!0:t,this.ea_1=e,this.fa_1=t,this.ga_1=n}i(hu).h=function(){return new Io(this)};function qo(e){this.ha_1=e.ja_1.h(),this.ia_1=0}i(qo).j=function(){var e=this.ia_1;return this.ia_1=e+1|0,new Ur(Fl(e),this.ha_1.j())};i(qo).i=function(){return this.ha_1.i()};function du(e){this.ja_1=e}i(du).h=function(){return new qo(this)};function di(){}function Ao(e){this.ka_1=e.na_1,this.la_1=e.ma_1.h()}i(Ao).j=function(){if(this.ka_1===0)throw St();return this.ka_1=this.ka_1-1|0,this.la_1.j()};i(Ao).i=function(){return this.ka_1>0&&this.la_1.i()};function Yr(e,t){if(this.ma_1=e,this.na_1=t,!(this.na_1>=0)){var n="count must be non-negative, but was "+this.na_1+".";throw We(O(n))}}i(Yr).u=function(e){return e>=this.na_1?Hi():new Pr(this.ma_1,e,this.na_1)};i(Yr).t=function(e){return e>=this.na_1?this:new Yr(this.ma_1,e)};i(Yr).h=function(){return new Ao(this)};function Ih(e){if(e.oa_1.i()){var t=e.oa_1.j();if(e.ra_1.ta_1(t))return e.pa_1=1,e.qa_1=t,ue}e.pa_1=0}function To(e){this.ra_1=e,this.oa_1=e.sa_1.h(),this.pa_1=-1,this.qa_1=null}i(To).j=function(){if(this.pa_1===-1&&Ih(this),this.pa_1===0)throw St();var e=this.qa_1,t=e==null||e!=null?e:$();return this.qa_1=null,this.pa_1=-1,t};i(To).i=function(){return this.pa_1===-1&&Ih(this),this.pa_1===1};function vu(e,t){this.sa_1=e,this.ta_1=t}i(vu).h=function(){return new To(this)};function qh(e){for(;e.va_1>0&&e.ua_1.i();)e.ua_1.j(),e.va_1=e.va_1-1|0}function jo(e){this.ua_1=e.wa_1.h(),this.va_1=e.xa_1}i(jo).j=function(){return qh(this),this.ua_1.j()};i(jo).i=function(){return qh(this),this.ua_1.i()};function Hr(e,t){if(this.wa_1=e,this.xa_1=t,!(this.xa_1>=0)){var n="count must be non-negative, but was "+this.xa_1+".";throw We(O(n))}}i(Hr).u=function(e){var t=this.xa_1+e|0;return t<0?new Hr(this,e):new Hr(this.wa_1,t)};i(Hr).t=function(e){var t=this.xa_1+e|0;return t<0?new Yr(this,e):new Pr(this.wa_1,this.xa_1,t)};i(Hr).h=function(){return new jo(this)};function Ah(e){for(;e.ya_1.i();){var t=e.ya_1.j();if(!e.bb_1.db_1(t))return e.ab_1=t,e.za_1=1,ue}e.za_1=0}function Po(e){this.bb_1=e,this.ya_1=e.cb_1.h(),this.za_1=-1,this.ab_1=null}i(Po).j=function(){if(this.za_1===-1&&Ah(this),this.za_1===1){var e=this.ab_1,t=e==null||e!=null?e:$();return this.ab_1=null,this.za_1=0,t}return this.ya_1.j()};i(Po).i=function(){return this.za_1===-1&&Ah(this),this.za_1===1||this.ya_1.i()};function pu(e,t){this.cb_1=e,this.db_1=t}i(pu).h=function(){return new Po(this)};function Oa(){}i(Oa).h=function(){return Ui};i(Oa).u=function(e){return Ro};i(Oa).t=function(e){return Ro};var Ro;function Th(e){for(;e.fb_1<e.gb_1.ib_1&&e.eb_1.i();)e.eb_1.j(),e.fb_1=e.fb_1+1|0}function jh(e){return e.jb_1-e.ib_1|0}function Mo(e){this.gb_1=e,this.eb_1=e.hb_1.h(),this.fb_1=0}i(Mo).i=function(){return Th(this),this.fb_1<this.gb_1.jb_1&&this.eb_1.i()};i(Mo).j=function(){if(Th(this),this.fb_1>=this.gb_1.jb_1)throw St();return this.fb_1=this.fb_1+1|0,this.eb_1.j()};function Pr(e,t,n){if(this.hb_1=e,this.ib_1=t,this.jb_1=n,!(this.ib_1>=0)){var r="startIndex should be non-negative, but is "+this.ib_1;throw We(O(r))}if(!(this.jb_1>=0)){var a="endIndex should be non-negative, but is "+this.jb_1;throw We(O(a))}if(!(this.jb_1>=this.ib_1)){var o="endIndex should be not less than startIndex, but was "+this.jb_1+" < "+this.ib_1;throw We(O(o))}}i(Pr).u=function(e){return e>=jh(this)?Hi():new Pr(this.hb_1,this.ib_1+e|0,this.jb_1)};i(Pr).t=function(e){return e>=jh(this)?this:new Pr(this.hb_1,this.ib_1,this.ib_1+e|0)};i(Pr).h=function(){return new Mo(this)};function _u(){return ym()}function mm(e){return Hv(e,M_(e.length))}function gm(e){switch(e.m()){case 0:return _u();case 1:return zf(e.h().j());default:return e}}function Fn(){Ls=this,this.kb_1=new he(1993859828,793161749)}i(Fn).equals=function(e){var t;return e!=null&&ee(e,Mr)?t=e.l():t=!1,t};i(Fn).hashCode=function(){return 0};i(Fn).toString=function(){return"[]"};i(Fn).m=function(){return 0};i(Fn).l=function(){return!0};i(Fn).j9=function(e){return e.l()};i(Fn).k1=function(e){return this.j9(e)};i(Fn).h=function(){return Ui};var Ls;function ym(){return Ls==null&&new Fn,Ls}function Lo(e,t){return e===t?0:e==null?-1:t==null?1:pf(e!=null&&s_(e)?e:$(),t)}function Wi(){}function Ph(){}var Rh;function bm(){}function za(){Os=this,this.lb_1=new he(0,0)}i(za).u6=function(e){return null};i(za).hashCode=function(){return 0};i(za).toString=function(){return"EmptyCoroutineContext"};var Os;function wm(){return Os==null&&new za,Os}function pr(){return Cm()}var Mh,wc;function km(){if(wc)return ue;wc=!0,Mh=new Ya("COROUTINE_SUSPENDED",0),new Ya("UNDECIDED",1),new Ya("RESUMED",2)}function Ya(e,t){cr.call(this,e,t)}function Cm(){return km(),Mh}function Lh(e,t,n){var r;if(n>0)r=e>=t?t:t-kc(t,e,n)|0;else if(n<0)r=e<=t?t:t+kc(e,t,-n|0)|0;else throw We("Step is zero.");return r}function kc(e,t,n){return ds(ds(e,n)-ds(t,n)|0,n)}function ds(e,t){var n=e%t|0;return n>=0?n:n+t|0}function Oh(){zs=this,this.mb_1=new Rr(1,0)}var zs;function xm(){return zs==null&&new Oh,zs}function Rr(e,t){xm(),Ln.call(this,e,t,1)}i(Rr).l=function(){return this.qb_1>this.rb_1};i(Rr).equals=function(e){var t;return e instanceof Rr?t=this.l()&&e.l()||this.qb_1===e.qb_1&&this.rb_1===e.rb_1:t=!1,t};i(Rr).hashCode=function(){return this.l()?-1:_e(31,this.qb_1)+this.rb_1|0};i(Rr).toString=function(){return""+this.qb_1+".."+this.rb_1};function zh(){Fs=this,this.tb_1=new _r(1,0)}var Fs;function Sm(){return Fs==null&&new zh,Fs}function _r(e,t){Sm(),mr.call(this,e,t,1)}i(_r).xb=function(e){return tt(this.yb_1,e)<=0&&tt(e,this.zb_1)<=0};i(_r).l=function(){return tt(this.yb_1,this.zb_1)>0};i(_r).equals=function(e){var t;return e instanceof _r?t=this.l()&&e.l()||this.yb_1===e.yb_1&&this.zb_1===e.zb_1:t=!1,t};i(_r).hashCode=function(){var e;if(this.l())e=-1;else{var t=this.yb_1,n=Ot(t),r=_e(31,n),a=this.zb_1;e=r+Ot(a)|0}return e};i(_r).toString=function(){return Ue(this.yb_1)+".."+Ue(this.zb_1)};function Oo(e,t,n){Eo.call(this),this.bc_1=n,this.cc_1=t,this.dc_1=this.bc_1>0?e<=t:e>=t,this.ec_1=this.dc_1?e:this.cc_1}i(Oo).i=function(){return this.dc_1};i(Oo).m9=function(){var e=this.ec_1;if(e===this.cc_1){if(!this.dc_1)throw St();this.dc_1=!1}else this.ec_1=this.ec_1+this.bc_1|0;return e};function zo(e,t,n){Ma.call(this),this.fc_1=n;var r=this;r.gc_1=Ot(t),this.hc_1=this.fc_1>0?tt(e,t)<=0:tt(e,t)>=0;var a=this,o;this.hc_1?o=Ot(e):o=this.gc_1,a.ic_1=o}i(zo).i=function(){return this.hc_1};i(zo).o9=function(){var e=this.ic_1;if(e===this.gc_1){if(!this.hc_1)throw St();this.hc_1=!1}else this.ic_1=this.ic_1+this.fc_1|0;return ca(e)};function mu(){}i(mu).s=function(e,t,n){return new Ln(e,t,n)};var Fh;function Ln(e,t,n){if(n===0)throw We("Step must be non-zero.");if(n===-2147483648)throw We("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.qb_1=e,this.rb_1=Lh(e,t,n),this.sb_1=n}i(Ln).h=function(){return new Oo(this.qb_1,this.rb_1,this.sb_1)};i(Ln).l=function(){return this.sb_1>0?this.qb_1>this.rb_1:this.qb_1<this.rb_1};i(Ln).equals=function(e){var t;return e instanceof Ln?t=this.l()&&e.l()||this.qb_1===e.qb_1&&this.rb_1===e.rb_1&&this.sb_1===e.sb_1:t=!1,t};i(Ln).hashCode=function(){return this.l()?-1:_e(31,_e(31,this.qb_1)+this.rb_1|0)+this.sb_1|0};i(Ln).toString=function(){return this.sb_1>0?""+this.qb_1+".."+this.rb_1+" step "+this.sb_1:""+this.qb_1+" downTo "+this.rb_1+" step "+(-this.sb_1|0)};function $m(){}function mr(e,t,n){if(n===0)throw We("Step must be non-zero.");if(n===-2147483648)throw We("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.yb_1=e;var r=this,a=Ot(e),o=Ot(t);r.zb_1=ca(Lh(a,o,n)),this.ac_1=n}i(mr).h=function(){return new zo(this.yb_1,this.zb_1,this.ac_1)};i(mr).l=function(){return this.ac_1>0?tt(this.yb_1,this.zb_1)>0:tt(this.yb_1,this.zb_1)<0};i(mr).equals=function(e){var t;return e instanceof mr?t=this.l()&&e.l()||this.yb_1===e.yb_1&&this.zb_1===e.zb_1&&this.ac_1===e.ac_1:t=!1,t};i(mr).hashCode=function(){var e;if(this.l())e=-1;else{var t=this.yb_1,n=Ot(t),r=_e(31,n),a=this.zb_1,o=Ot(a);e=_e(31,r+o|0)+this.ac_1|0}return e};i(mr).toString=function(){return this.ac_1>0?Ue(this.yb_1)+".."+Ue(this.zb_1)+" step "+this.ac_1:Ue(this.yb_1)+" downTo "+Ue(this.zb_1)+" step "+(-this.ac_1|0)};function Dh(e,t,n){n!=null?e.f(n(t)):t==null||ht(t)?e.f(t):t instanceof ne?e.b6(t.x_1):e.f(Re(t))}function Bh(e,t,n){if(n=n===u?!1:n,e===t)return!0;if(!n)return!1;var r=mc(e),a=mc(t),o;if(r===a)o=!0;else{var s=Ue(r).toLowerCase(),l=M(s,0),c=Ue(a).toLowerCase();o=l===M(c,0)}return o}function Kh(e){return gu(e,10)}function gu(e,t){kh(t);var n=e.length;if(n===0)return null;var r,a,o,s=M(e,0);if(tt(s,48)<0){if(n===1)return null;if(r=1,s===45)a=!0,o=-2147483648;else if(s===43)a=!1,o=-2147483647;else return null}else r=0,a=!1,o=-2147483647;var l=-59652323,c=l,f=0,h=r;if(h<n)do{var d=h;h=h+1|0;var v=J0(M(e,d),t);if(v<0)return null;if(f<c)if(c===l){if(c=o/t|0,f<c)return null}else return null;if(f=_e(f,t),f<(o+v|0))return null;f=f-v|0}while(h<n);return a?f:-f|0}function Uh(e){throw dh("Invalid number format: '"+e+"'")}function yu(e,t,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof e=="string",a?r=typeof t=="string":r=!1,r?su(e,t):Fa(e,0,t,0,j(t),n)}function bu(e,t,n){n=n===u?!1:n;var r;return typeof t=="string"?r=Ds(e,t,u,n)>=0:r=Hh(e,t,0,j(e),n)>=0,r}function Fo(e,t,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof e=="string",a?r=typeof t=="string":r=!1,r?xh(e,t):Fa(e,j(e)-j(t)|0,t,0,j(t),n)}function Em(e){var t;e:{for(var n=0;n<j(e);){var r=M(e,n);if(n=n+1|0,!wh(r)){t=!1;break e}}t=!0}return t}function Wt(e,t,n){return n=n===u?!1:n,Im(e,t,u,n)>=0}function Do(e,t,n,r){r=r===u?!1:r;var a,o;return r?o=!1:o=typeof e=="string",o?a=typeof t=="string":a=!1,a?nm(e,t,n):Fa(e,n,t,0,j(t),r)}function Ds(e,t,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;return r?o=!0:o=typeof e!="string",o?a=Hh(e,t,n,j(e),r):a=e.indexOf(t,n),a}function Fa(e,t,n,r,a,o){if(r<0||t<0||t>(j(e)-a|0)||r>(j(n)-a|0))return!1;var s=0;if(s<a)do{var l=s;if(s=s+1|0,!Bh(M(e,t+l|0),M(n,r+l|0),o))return!1}while(s<a);return!0}function Hh(e,t,n,r,a,o){o=o===u?!1:o;var s=o?ep(oa(n,Wh(e)),io(r,0)):t_(io(n,0),oa(r,j(e))),l;if(typeof e=="string"?l=typeof t=="string":l=!1,l){var c=s.qb_1,f=s.rb_1,h=s.sb_1;if(h>0&&c<=f||h<0&&f<=c)do{var d=c;if(c=c+h|0,xo(t,0,e,d,j(t),a))return d}while(d!==f)}else{var v=s.qb_1,y=s.rb_1,p=s.sb_1;if(p>0&&v<=y||p<0&&y<=v)do{var m=v;if(v=v+p|0,Fa(t,0,e,m,j(t),a))return m}while(m!==y)}return-1}function Nm(e){var t=0,n=j(e)-1|0,r=!1;e:for(;t<=n;){var a=r?n:t,o=wh(M(e,a));if(!r)o?t=t+1|0:r=!0;else if(o)n=n-1|0;else break e}return ln(e,t,n+1|0)}function Im(e,t,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;if(r?o=!0:o=typeof e!="string",o){var s=yp([t]);a=qm(e,s,n,r)}else{var l=Ue(t);a=e.indexOf(l,n)}return a}function Wh(e){return j(e)-1|0}function qm(e,t,n,r){n=n===u?0:n,r=r===u?!1:r;var a;if(!r&&t.length===1?a=typeof e=="string":a=!1,a){var o=Dv(t),s=Ue(o);return e.indexOf(s,n)}var l=io(n,0),c=Wh(e);if(l<=c)do{var f=l;l=l+1|0;var h=M(e,f),d;e:{for(var v=0,y=t.length;v<y;){var p=t[v];if(v=v+1|0,Bh(p,h,r)){d=!0;break e}}d=!1}if(d)return f}while(f!==c);return-1}function Am(e,t){var n;if(e!=null&&typeof e=="string"?n=t!=null?typeof t=="string":!1:n=!1,n)return E(e,t);if(e===t)return!0;if(e==null||t==null||j(e)!==j(t))return!1;var r=0,a=j(e);if(r<a)do{var o=r;if(r=r+1|0,M(e,o)!==M(t,o))return!1}while(r<a);return!0}function Da(e){this.jc_1=e,this.kc_1=Bo}i(Da).r1=function(){this.kc_1===Bo&&(this.kc_1=Tt(this.jc_1)(),this.jc_1=null);var e=this.kc_1;return e==null||e!=null?e:$()};i(Da).lc=function(){return this.kc_1!==Bo};i(Da).toString=function(){return this.lc()?Re(this.r1()):"Lazy value not initialized yet."};function Vh(){}var Bo;function Tm(e){var t=e;return t instanceof gr}function jm(e){var t;return e instanceof gr?t=e.mc_1:t=null,t}function Pm(){}function gr(e){this.mc_1=e}i(gr).equals=function(e){var t;return e instanceof gr?t=E(this.mc_1,e.mc_1):t=!1,t};i(gr).hashCode=function(){return le(this.mc_1)};i(gr).toString=function(){return"Failure("+this.mc_1.toString()+")"};function Rm(e){return new gr(e)}function Mm(e){var t=e;if(t instanceof gr)throw e.mc_1}function Bs(e){e=e===u?"An operation is not implemented.":e,d0(e,this),B(this,Bs)}function xn(e,t){this.nc_1=e,this.oc_1=t}i(xn).toString=function(){return"("+Re(this.nc_1)+", "+Re(this.oc_1)+")"};i(xn).pc=function(){return this.nc_1};i(xn).qc=function(){return this.oc_1};i(xn).hashCode=function(){var e=this.nc_1==null?0:le(this.nc_1);return e=_e(e,31)+(this.oc_1==null?0:le(this.oc_1))|0,e};i(xn).equals=function(e){if(this===e)return!0;if(!(e instanceof xn))return!1;var t=e instanceof xn?e:$();return!(!E(this.nc_1,t.nc_1)||!E(this.oc_1,t.oc_1))};function Cc(e,t){return new xn(e,t)}i(mt).asJsReadonlyArrayView=Jc;i(xt).p4=zv;i(lt).asJsReadonlyArrayView=Jc;ue=new Sl;Xa=null;Ia=new Xf;eh=new Li;cn=new zr;lu=new So;Ui=new hi;Ro=new Oa;Rh=new Ph;Fh=new mu;Bo=new Vh;var D=Math.imul;Ft(Nn,"Stringify");function wu(){return this.uc()-this.tc()|0}Ft(Jo,"Position",u,u,[Nn]);w(Ut,"Expression",u,u,[Jo]);w(ce,"BinaryExpression",u,Ut);w(Ko,"sam$kotlin_Comparator$0");gt(va);w(U,"CompareOperator",u,u,[Nn]);ae(Gn,"Equal",u,U);ae(Jn,"NotEqual",u,U);ae(Qn,"Start",u,U);ae(Xn,"NotStart",u,U);ae(Yn,"Include",u,U);ae(Zn,"NotInclude",u,U);ae(er,"End",u,U);ae(tr,"NotEnd",u,U);ae(nr,"Less",u,U);ae(rr,"LessEqual",u,U);ae(ir,"More",u,U);ae(ar,"MoreEqual",u,U);ae(or,"Matches",u,U);ae(sr,"NotMatches",u,U);w(vi,"ConnectExpression",u,u,[Nn]);w(Wo,"sam$kotlin_Comparator$0");gt(pa);w(yt,"ConnectOperator",u,u,[Nn]);ae($r,"BeforeBrother",u,yt);ae(Er,"AfterBrother",u,yt);ae(Nr,"Ancestor",u,yt);ae(Ir,"Child",u,yt);ae(qr,"Descendant",u,yt);w(ut,"ConnectSegment",ut,u,[Nn]);w(zt,"ConnectWrapper",u,u,[Nn]);w(Qe,"Context");w(dt,"SelectorCheckException",u,gn);w(Yt,"UnknownIdentifierException",u,dt);w(Zt,"UnknownMemberException",u,dt);w(en,"UnknownIdentifierMethodException",u,dt);w(tn,"UnknownMemberMethodException",u,dt);w(ct,"MismatchParamTypeException",u,dt);w(Ct,"MismatchExpressionTypeException",u,dt);w(nn,"MismatchOperatorTypeException",u,dt);w($e,"LogicalExpression",u,Ut);w(Go,"sam$kotlin_Comparator$0");gt(_a);w(En,"LogicalOperator",u,u,[Nn]);ae(Ar,"AndOperator",u,En);ae(Tr,"OrOperator",u,En);w(_t,"NotExpression",u,Ut);w(Ae,"PolynomialExpression",Ae,vi);w(He,"PositionImpl",u,u,[Jo]);w(at,"PropertySegment",u,u,[Nn]);w(Xe,"PropertyWrapper",u,u,[Nn]);w(It,"QuickFindValue");gt(Qo);w(Bt,"Selector",u,u,[Nn]);w(ot,"SyntaxError",u,gn);gt(Nu);Sa(Zr,jt,u,[1]);Sa(ei,jt,u,[1]);Sa(ti,jt,u,[1]);Sa(ni,jt,u,[1]);Sa(ri,jt,u,[1]);w(Ye,"Transform");w(qt,"TupleExpression",u,vi);w(an,"PrimitiveType");ae(Vr,"BooleanType",u,an);ae(Gr,"IntType",u,an);ae(Jr,"StringType",u,an);w(rn,"ObjectType",u,an);w(de,"MethodInfo");w(te,"PropInfo");w(it,"TypeInfo");w(Ze,"ValueExpression",u,u,[Jo]);w(Pt,"Variable",u,Ze);w(Me,"Identifier",u,Pt);w(Ee,"MemberExpression",u,Pt);w(ke,"CallExpression",u,Pt);w(Vt,"LiteralExpression",u,Ze);w(At,"NullLiteral",u,Vt);w(ft,"BooleanLiteral",u,Vt);w(Ve,"IntLiteral",u,Vt);w(fe,"StringLiteral",u,Vt);w(Be,"Parser");w(Te,"ParserResult");ae(Ka,"ParserSet");w(pi,"DefaultTypeInfo");function ce(e,t,n,r,a){Ut.call(this),this.rc_1=e,this.sc_1=t,this.left=n,this.operator=r,this.right=a}i(ce).tc=function(){return this.rc_1};i(ce).uc=function(){return this.sc_1};i(ce).vc=function(){return this.left};i(ce).wc=function(){return this.operator};i(ce).xc=function(){return this.right};i(ce).match=function(e,t){return this.operator.value.ad(e,t,this.left,this.right)};i(ce).bd=function(){return[this]};i(ce).stringify=function(){return this.left.stringify()+this.operator.stringify()+this.right.stringify()};i(ce).cd=function(){return Ii([this.left.properties,this.right.properties])};i(ce).dd=function(){return Ii([this.left.methods,this.right.methods])};i(ce).pc=function(){return this.rc_1};i(ce).qc=function(){return this.sc_1};i(ce).ed=function(){return this.left};i(ce).fd=function(){return this.operator};i(ce).gd=function(){return this.right};i(ce).hd=function(e,t,n,r,a){return new ce(e,t,n,r,a)};i(ce).copy=function(e,t,n,r,a,o){return e=e===u?this.rc_1:e,t=t===u?this.sc_1:t,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.hd(e,t,n,r,a)};i(ce).toString=function(){return"BinaryExpression(start="+this.rc_1+", end="+this.sc_1+", left="+O(this.left)+", operator="+this.operator.toString()+", right="+O(this.right)+")"};i(ce).hashCode=function(){var e=this.rc_1;return e=D(e,31)+this.sc_1|0,e=D(e,31)+le(this.left)|0,e=D(e,31)+this.operator.hashCode()|0,e=D(e,31)+le(this.right)|0,e};i(ce).equals=function(e){if(this===e)return!0;if(!(e instanceof ce))return!1;var t=e instanceof ce?e:$();return!(this.rc_1!==t.rc_1||this.sc_1!==t.sc_1||!E(this.left,t.left)||!this.operator.equals(t.operator)||!E(this.right,t.right))};function Lm(e,t,n){if(e===n)return!0;if(j(e)!==j(n))return!1;var r=j(e)-1|0;if(0<=r)do{var a=r;if(r=r+-1|0,M(e,a)!==M(n,a))return!1}while(0<=r);return!0}function Ko(e){this.id_1=e}i(Ko).b9=function(e,t){return this.id_1(e,t)};i(Ko).compare=function(e,t){return this.b9(e,t)};function Om(){var e=uu([Wr(),Gh(),Fr(),Jh(),ku(),Qh(),Cu(),Xh(),Ba(),Yh(),Zh(),ed(),Ho(),xu()]),t=zm,n=new Ko(t),r=ql(e,n);return pn(r)}function zm(e,t){var n=-e.key.length|0,r=-t.key.length|0;return Lo(n,r)}function va(){Ks=this;var e=this;e.jd_1=ha(Om)}i(va).kd=function(){var e=this.jd_1;return Fm(),e.r1()};var Ks;function Uo(){return Ks==null&&new va,Ks}function Gn(){Us=this,U.call(this,"=")}i(Gn).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=Lm(a,Uo(),o):s=E(a,o),s};i(Gn).od=function(e,t){return!0};i(Gn).toString=function(){return"Equal"};i(Gn).hashCode=function(){return 717536815};i(Gn).equals=function(e){return this===e?!0:e instanceof Gn?(e instanceof Gn||$(),!0):!1};var Us;function Wr(){return Us==null&&new Gn,Us}function Jn(){Hs=this,U.call(this,"!=")}i(Jn).ad=function(e,t,n,r){return!Wr().ad(e,t,n,r)};i(Jn).od=function(e,t){return!0};i(Jn).toString=function(){return"NotEqual"};i(Jn).hashCode=function(){return 1058184006};i(Jn).equals=function(e){return this===e?!0:e instanceof Jn?(e instanceof Jn||$(),!0):!1};var Hs;function Gh(){return Hs==null&&new Jn,Hs}function Qn(){Ws=this,U.call(this,"^=")}i(Qn).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=yu(a,o):s=!1,s};i(Qn).od=function(e,t){var n,r;if(e instanceof fe?r=!0:r=e instanceof Pt,r){var a;t instanceof fe?a=!0:a=t instanceof Pt,n=a}else n=!1;return n};i(Qn).toString=function(){return"Start"};i(Qn).hashCode=function(){return 730536797};i(Qn).equals=function(e){return this===e?!0:e instanceof Qn?(e instanceof Qn||$(),!0):!1};var Ws;function Fr(){return Ws==null&&new Qn,Ws}function Xn(){Vs=this,U.call(this,"!^=")}i(Xn).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=!yu(a,o):s=!1,s};i(Xn).od=function(e,t){return Fr().od(e,t)};i(Xn).toString=function(){return"NotStart"};i(Xn).hashCode=function(){return 1071183988};i(Xn).equals=function(e){return this===e?!0:e instanceof Xn?(e instanceof Xn||$(),!0):!1};var Vs;function Jh(){return Vs==null&&new Xn,Vs}function Yn(){Gs=this,U.call(this,"*=")}i(Yn).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=bu(a,o):s=!1,s};i(Yn).od=function(e,t){return Fr().od(e,t)};i(Yn).toString=function(){return"Include"};i(Yn).hashCode=function(){return 1510988003};i(Yn).equals=function(e){return this===e?!0:e instanceof Yn?(e instanceof Yn||$(),!0):!1};var Gs;function ku(){return Gs==null&&new Yn,Gs}function Zn(){Js=this,U.call(this,"!*=")}i(Zn).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=!bu(a,o):s=!1,s};i(Zn).od=function(e,t){return Fr().od(e,t)};i(Zn).toString=function(){return"NotInclude"};i(Zn).hashCode=function(){return-1839543238};i(Zn).equals=function(e){return this===e?!0:e instanceof Zn?(e instanceof Zn||$(),!0):!1};var Js;function Qh(){return Js==null&&new Zn,Js}function er(){Qs=this,U.call(this,"$=")}i(er).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=Fo(a,o):s=!1,s};i(er).od=function(e,t){return Fr().od(e,t)};i(er).toString=function(){return"End"};i(er).hashCode=function(){return 1234264726};i(er).equals=function(e){return this===e?!0:e instanceof er?(e instanceof er||$(),!0):!1};var Qs;function Cu(){return Qs==null&&new er,Qs}function tr(){Xs=this,U.call(this,"!$=")}i(tr).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&ht(a)?l=o!=null?ht(o):!1:l=!1,l?s=!Fo(a,o):s=!1,s};i(tr).od=function(e,t){return Fr().od(e,t)};i(tr).toString=function(){return"NotEnd"};i(tr).hashCode=function(){return 1024563565};i(tr).equals=function(e){return this===e?!0:e instanceof tr?(e instanceof tr||$(),!0):!1};var Xs;function Xh(){return Xs==null&&new tr,Xs}function nr(){Ys=this,U.call(this,"<")}i(nr).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a<o:s=!1,s};i(nr).od=function(e,t){var n,r;if(e instanceof Pt?r=!0:r=e instanceof Ve,r){var a;t instanceof Ve?a=!0:a=t instanceof Pt,n=a}else n=!1;return n};i(nr).toString=function(){return"Less"};i(nr).hashCode=function(){return-392298690};i(nr).equals=function(e){return this===e?!0:e instanceof nr?(e instanceof nr||$(),!0):!1};var Ys;function Ba(){return Ys==null&&new nr,Ys}function rr(){Zs=this,U.call(this,"<=")}i(rr).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a<=o:s=!1,s};i(rr).od=function(e,t){return Ba().od(e,t)};i(rr).toString=function(){return"LessEqual"};i(rr).hashCode=function(){return-2095624554};i(rr).equals=function(e){return this===e?!0:e instanceof rr?(e instanceof rr||$(),!0):!1};var Zs;function Yh(){return Zs==null&&new rr,Zs}function ir(){el=this,U.call(this,">")}i(ir).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a>o:s=!1,s};i(ir).od=function(e,t){return Ba().od(e,t)};i(ir).toString=function(){return"More"};i(ir).hashCode=function(){return-392259334};i(ir).equals=function(e){return this===e?!0:e instanceof ir?(e instanceof ir||$(),!0):!1};var el;function Zh(){return el==null&&new ir,el}function ar(){tl=this,U.call(this,">=")}i(ar).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a>=o:s=!1,s};i(ar).od=function(e,t){return Ba().od(e,t)};i(ar).toString=function(){return"MoreEqual"};i(ar).hashCode=function(){return-648189350};i(ar).equals=function(e){return this===e?!0:e instanceof ar?(e instanceof ar||$(),!0):!1};var tl;function ed(){return tl==null&&new ar,tl}function or(){nl=this,U.call(this,"~=")}i(or).ad=function(e,t,n,r){var a=n.nd(e,t),o,s;return a!=null&&ht(a)?s=r instanceof fe:s=!1,s?o=r.xd_1(a):o=!1,o};i(or).od=function(e,t){var n;if(e instanceof Pt){var r;t instanceof fe?r=t.wd_1!=null:r=!1,n=r}else n=!1;return n};i(or).toString=function(){return"Matches"};i(or).hashCode=function(){return 409275758};i(or).equals=function(e){return this===e?!0:e instanceof or?(e instanceof or||$(),!0):!1};var nl;function Ho(){return nl==null&&new or,nl}function sr(){rl=this,U.call(this,"!~=")}i(sr).ad=function(e,t,n,r){var a=n.nd(e,t),o,s;return a!=null&&ht(a)?s=r instanceof fe:s=!1,s?o=!r.xd_1(a):o=!1,o};i(sr).od=function(e,t){return Ho().od(e,t)};i(sr).toString=function(){return"NotMatches"};i(sr).hashCode=function(){return 1353711813};i(sr).equals=function(e){return this===e?!0:e instanceof sr?(e instanceof sr||$(),!0):!1};var rl;function xu(){return rl==null&&new sr,rl}function U(e){Uo(),this.key=e}i(U).q1=function(){return this.key};i(U).stringify=function(){return this.key};function Fm(){return $a("allSubClasses",1,Co,function(e){return e.allSubClasses},null)}function vi(){}function Wo(e){this.ae_1=e}i(Wo).b9=function(e,t){return this.ae_1(e,t)};i(Wo).compare=function(e,t){return this.b9(e,t)};function Dm(){var e=uu([td(),nd(),uo(),rd(),Su()]),t=Bm,n=new Wo(t);return ql(e,n)}function Bm(e,t){var n=-e.key.length|0,r=-t.key.length|0;return Lo(n,r)}function pa(){il=this;var e=this;e.be_1=ha(Dm)}i(pa).kd=function(){var e=this.be_1;return Km(),e.r1()};var il;function Vo(){return il==null&&new pa,il}function $r(){al=this,yt.call(this,"+")}i($r).ce=function(e,t,n){return t.traverseBeforeBrothers(e,n)};i($r).toString=function(){return"BeforeBrother"};i($r).hashCode=function(){return 1632618113};i($r).equals=function(e){return this===e?!0:e instanceof $r?(e instanceof $r||$(),!0):!1};var al;function td(){return al==null&&new $r,al}function Er(){ol=this,yt.call(this,"-")}i(Er).ce=function(e,t,n){return t.traverseAfterBrothers(e,n)};i(Er).toString=function(){return"AfterBrother"};i(Er).hashCode=function(){return 1215887620};i(Er).equals=function(e){return this===e?!0:e instanceof Er?(e instanceof Er||$(),!0):!1};var ol;function nd(){return ol==null&&new Er,ol}function Nr(){sl=this,yt.call(this,">")}i(Nr).ce=function(e,t,n){return t.traverseAncestors(e,n)};i(Nr).toString=function(){return"Ancestor"};i(Nr).hashCode=function(){return 736770963};i(Nr).equals=function(e){return this===e?!0:e instanceof Nr?(e instanceof Nr||$(),!0):!1};var sl;function uo(){return sl==null&&new Nr,sl}function Ir(){ll=this,yt.call(this,"<")}i(Ir).ce=function(e,t,n){return t.traverseChildren(e,n)};i(Ir).toString=function(){return"Child"};i(Ir).hashCode=function(){return-1105093796};i(Ir).equals=function(e){return this===e?!0:e instanceof Ir?(e instanceof Ir||$(),!0):!1};var ll;function rd(){return ll==null&&new Ir,ll}function qr(){ul=this,yt.call(this,"<<")}i(qr).ce=function(e,t,n){return t.traverseDescendants(e,n)};i(qr).toString=function(){return"Descendant"};i(qr).hashCode=function(){return 2093403837};i(qr).equals=function(e){return this===e?!0:e instanceof qr?(e instanceof qr||$(),!0):!1};var ul;function Su(){return ul==null&&new qr,ul}function yt(e){Vo(),this.key=e}i(yt).q1=function(){return this.key};i(yt).stringify=function(){return this.key};function Km(){return $a("allSubClasses",1,Co,function(e){return e.allSubClasses},null)}function ut(e,t){e=e===u?uo():e,t=t===u?new Ae:t,this.operator=e,this.connectExpression=t;var n=this,r,a,o;if(E(this.operator,uo())){var s=this.connectExpression;o=s instanceof Ae}else o=!1;o?a=this.connectExpression.a===1:a=!1,a?r=this.connectExpression.b===0:r=!1,n.isMatchAnyAncestor=r;var l=this,c,f,h;if(E(this.operator,Su())){var d=this.connectExpression;h=d instanceof Ae}else h=!1;h?f=this.connectExpression.a===1:f=!1,f?c=this.connectExpression.b===0:c=!1,l.isMatchAnyDescendant=c}i(ut).wc=function(){return this.operator};i(ut).je=function(){return this.connectExpression};i(ut).stringify=function(){return this.isMatchAnyAncestor?"":this.operator.stringify()+this.connectExpression.stringify()};i(ut).ke=function(e,t){return this.operator.ce(e,t,this.connectExpression)};i(ut).le=function(){return this.isMatchAnyAncestor};i(ut).me=function(){return this.isMatchAnyDescendant};i(ut).pc=function(){return this.operator};i(ut).qc=function(){return this.connectExpression};i(ut).ne=function(e,t){return new ut(e,t)};i(ut).copy=function(e,t,n){return e=e===u?this.operator:e,t=t===u?this.connectExpression:t,this.ne(e,t)};i(ut).toString=function(){return"ConnectSegment(operator="+O(this.operator)+", connectExpression="+O(this.connectExpression)+")"};i(ut).hashCode=function(){var e=le(this.operator);return e=D(e,31)+le(this.connectExpression)|0,e};i(ut).equals=function(e){if(this===e)return!0;if(!(e instanceof ut))return!1;var t=e instanceof ut?e:$();return!(!E(this.operator,t.operator)||!E(this.connectExpression,t.connectExpression))};function zt(e,t){this.segment=e,this.to=t,this.oe_1=this.to.isMatchRoot&&this.segment.isMatchAnyAncestor,this.pe_1=this.to.quickFindValue.canQf&&this.segment.isMatchAnyDescendant}i(zt).qe=function(){return this.segment};i(zt).re=function(){return this.to};i(zt).stringify=function(){var e=this.to.stringify()+" "+this.segment.stringify();return O(Nm(ht(e)?e:$()))};i(zt).matchContext=function(e,t){if(this.oe_1){var n=t.getRoot(e.current),r;if(n==null)return null;r=n;var a=r;return this.to.matchContext(e.next(a),t)}for(var o=this.segment.ke(e.current,t).h();o.i();){var s=o.j();e:{if(s==null)break e;var l=this.to.matchContext(e.next(s),t);if(l!=null)return l}}return null};i(zt).pc=function(){return this.segment};i(zt).qc=function(){return this.to};i(zt).se=function(e,t){return new zt(e,t)};i(zt).copy=function(e,t,n){return e=e===u?this.segment:e,t=t===u?this.to:t,this.se(e,t)};i(zt).toString=function(){return"ConnectWrapper(segment="+this.segment.toString()+", to="+this.to.toString()+")"};i(zt).hashCode=function(){var e=this.segment.hashCode();return e=D(e,31)+this.to.hashCode()|0,e};i(zt).equals=function(e){if(this===e)return!0;if(!(e instanceof zt))return!1;var t=e instanceof zt?e:$();return!(!this.segment.equals(t.segment)||!this.to.equals(t.to))};function Qe(e,t){t=t===u?null:t,this.current=e,this.prev=t}i(Qe).te=function(){return this.current};i(Qe).ue=function(){return this.prev};i(Qe).getPrev=function(e){if(e<0)return null;var t=this.prev,n;if(t==null)return null;n=t;var r=n,a=0;if(a<e)do{a=a+1|0;var o=r.prev,s;if(o==null)return null;s=o,r=s}while(a<e);return r};i(Qe).get=function(e){if(e===0)return this;var t=this.getPrev(e-1|0),n;if(t==null)throw Yl();return n=t,n};i(Qe).toList=function(){for(var e=$h([this.current]),t=this.prev;t!=null;)e.e(t.current),t=t.prev;return e};i(Qe).toArray=function(){var e=this.toList(),t=ee(e,On)?e:$(),n=pn(t);return Mi(n)?n:$()};i(Qe).next=function(e){return new Qe(e,this)};i(Qe).pc=function(){return this.current};i(Qe).qc=function(){return this.prev};i(Qe).ve=function(e,t){return new Qe(e,t)};i(Qe).copy=function(e,t,n){return e=e===u?this.current:e,t=t===u?this.prev:t,this.ve(e,t)};i(Qe).toString=function(){return"Context(current="+Re(this.current)+", prev="+Re(this.prev)+")"};i(Qe).hashCode=function(){var e=this.current==null?0:le(this.current);return e=D(e,31)+(this.prev==null?0:this.prev.hashCode())|0,e};i(Qe).equals=function(e){if(this===e)return!0;if(!(e instanceof Qe))return!1;var t=e instanceof Qe?e:$();return!(!E(this.current,t.current)||!E(this.prev,t.prev))};function dt(e){go(e,this),B(this,dt),this.we_1=e}i(dt).i7=function(){return this.we_1};function Yt(e){dt.call(this,"Unknown Identifier: "+e.bf_1),B(this,Yt),this.value=e}i(Yt).r1=function(){return this.value};i(Yt).pc=function(){return this.value};i(Yt).ef=function(e){return new Yt(e)};i(Yt).copy=function(e,t){return e=e===u?this.value:e,this.ef(e)};i(Yt).toString=function(){return"UnknownIdentifierException(value="+this.value.toString()+")"};i(Yt).hashCode=function(){return this.value.hashCode()};i(Yt).equals=function(e){if(this===e)return!0;if(!(e instanceof Yt))return!1;var t=e instanceof Yt?e:$();return!!this.value.equals(t.value)};function Zt(e){dt.call(this,"Unknown Member: "+e.property),B(this,Zt),this.value=e}i(Zt).r1=function(){return this.value};i(Zt).pc=function(){return this.value};i(Zt).lf=function(e){return new Zt(e)};i(Zt).copy=function(e,t){return e=e===u?this.value:e,this.lf(e)};i(Zt).toString=function(){return"UnknownMemberException(value="+this.value.toString()+")"};i(Zt).hashCode=function(){return this.value.hashCode()};i(Zt).equals=function(e){if(this===e)return!0;if(!(e instanceof Zt))return!1;var t=e instanceof Zt?e:$();return!!this.value.equals(t.value)};function en(e){dt.call(this,"Unknown Identifier Method: "+e.bf_1),B(this,en),this.value=e}i(en).r1=function(){return this.value};i(en).pc=function(){return this.value};i(en).ef=function(e){return new en(e)};i(en).copy=function(e,t){return e=e===u?this.value:e,this.ef(e)};i(en).toString=function(){return"UnknownIdentifierMethodException(value="+this.value.toString()+")"};i(en).hashCode=function(){return this.value.hashCode()};i(en).equals=function(e){if(this===e)return!0;if(!(e instanceof en))return!1;var t=e instanceof en?e:$();return!!this.value.equals(t.value)};function tn(e){dt.call(this,"Unknown Member Method: "+e.property),B(this,tn),this.value=e}i(tn).r1=function(){return this.value};i(tn).pc=function(){return this.value};i(tn).lf=function(e){return new tn(e)};i(tn).copy=function(e,t){return e=e===u?this.value:e,this.lf(e)};i(tn).toString=function(){return"UnknownMemberMethodException(value="+this.value.toString()+")"};i(tn).hashCode=function(){return this.value.hashCode()};i(tn).equals=function(e){if(this===e)return!0;if(!(e instanceof tn))return!1;var t=e instanceof tn?e:$();return!!this.value.equals(t.value)};function ct(e,t,n){dt.call(this,"Mismatch Param Type: "+Re(t.value)+" should be "+n.key),B(this,ct),this.call=e,this.argument=t,this.type=n}i(ct).pf=function(){return this.call};i(ct).qf=function(){return this.argument};i(ct).rf=function(){return this.type};i(ct).pc=function(){return this.call};i(ct).qc=function(){return this.argument};i(ct).ed=function(){return this.type};i(ct).sf=function(e,t,n){return new ct(e,t,n)};i(ct).copy=function(e,t,n,r){return e=e===u?this.call:e,t=t===u?this.argument:t,n=n===u?this.type:n,this.sf(e,t,n)};i(ct).toString=function(){return"MismatchParamTypeException(call="+this.call.toString()+", argument="+O(this.argument)+", type="+O(this.type)+")"};i(ct).hashCode=function(){var e=this.call.hashCode();return e=D(e,31)+le(this.argument)|0,e=D(e,31)+le(this.type)|0,e};i(ct).equals=function(e){if(this===e)return!0;if(!(e instanceof ct))return!1;var t=e instanceof ct?e:$();return!(!this.call.equals(t.call)||!E(this.argument,t.argument)||!E(this.type,t.type))};function Ct(e,t,n){dt.call(this,"Mismatch Expression Type: "+e.stringify()),B(this,Ct),this.exception=e,this.leftType=t,this.rightType=n}i(Ct).uf=function(){return this.exception};i(Ct).vf=function(){return this.leftType};i(Ct).wf=function(){return this.rightType};i(Ct).pc=function(){return this.exception};i(Ct).qc=function(){return this.leftType};i(Ct).ed=function(){return this.rightType};i(Ct).xf=function(e,t,n){return new Ct(e,t,n)};i(Ct).copy=function(e,t,n,r){return e=e===u?this.exception:e,t=t===u?this.leftType:t,n=n===u?this.rightType:n,this.xf(e,t,n)};i(Ct).toString=function(){return"MismatchExpressionTypeException(exception="+this.exception.toString()+", leftType="+O(this.leftType)+", rightType="+O(this.rightType)+")"};i(Ct).hashCode=function(){var e=this.exception.hashCode();return e=D(e,31)+le(this.leftType)|0,e=D(e,31)+le(this.rightType)|0,e};i(Ct).equals=function(e){if(this===e)return!0;if(!(e instanceof Ct))return!1;var t=e instanceof Ct?e:$();return!(!this.exception.equals(t.exception)||!E(this.leftType,t.leftType)||!E(this.rightType,t.rightType))};function nn(e){dt.call(this,"Mismatch Operator Type: "+e.stringify()),B(this,nn),this.exception=e}i(nn).uf=function(){return this.exception};i(nn).pc=function(){return this.exception};i(nn).zf=function(e){return new nn(e)};i(nn).copy=function(e,t){return e=e===u?this.exception:e,this.zf(e)};i(nn).toString=function(){return"MismatchOperatorTypeException(exception="+this.exception.toString()+")"};i(nn).hashCode=function(){return this.exception.hashCode()};i(nn).equals=function(e){if(this===e)return!0;if(!(e instanceof nn))return!1;var t=e instanceof nn?e:$();return!!this.exception.equals(t.exception)};function Ut(){}function $e(e,t,n,r,a){Ut.call(this),this.ag_1=e,this.bg_1=t,this.left=n,this.operator=r,this.right=a}i($e).tc=function(){return this.ag_1};i($e).uc=function(){return this.bg_1};i($e).vc=function(){return this.left};i($e).wc=function(){return this.operator};i($e).xc=function(){return this.right};i($e).match=function(e,t){return this.operator.value.compare(e,t,this.left,this.right)};i($e).bd=function(){var e=this.left.binaryExpressions,t=this.right.binaryExpressions;return e.concat(t)};i($e).stringify=function(){var e,t,n=this.left;n instanceof $e?t=!E(this.left.operator.value,this.operator.value):t=!1,t?e="("+this.left.stringify()+")":e=this.left.stringify();var r=e,a,o,s=this.right;s instanceof $e?o=!E(this.right.operator.value,this.operator.value):o=!1,o?a="("+this.right.stringify()+")":a=this.right.stringify();var l=a;return r+" "+this.operator.stringify()+" "+l};i($e).pc=function(){return this.ag_1};i($e).qc=function(){return this.bg_1};i($e).ed=function(){return this.left};i($e).fd=function(){return this.operator};i($e).gd=function(){return this.right};i($e).cg=function(e,t,n,r,a){return new $e(e,t,n,r,a)};i($e).copy=function(e,t,n,r,a,o){return e=e===u?this.ag_1:e,t=t===u?this.bg_1:t,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.cg(e,t,n,r,a)};i($e).toString=function(){return"LogicalExpression(start="+this.ag_1+", end="+this.bg_1+", left="+O(this.left)+", operator="+this.operator.toString()+", right="+O(this.right)+")"};i($e).hashCode=function(){var e=this.ag_1;return e=D(e,31)+this.bg_1|0,e=D(e,31)+le(this.left)|0,e=D(e,31)+this.operator.hashCode()|0,e=D(e,31)+le(this.right)|0,e};i($e).equals=function(e){if(this===e)return!0;if(!(e instanceof $e))return!1;var t=e instanceof $e?e:$();return!(this.ag_1!==t.ag_1||this.bg_1!==t.bg_1||!E(this.left,t.left)||!this.operator.equals(t.operator)||!E(this.right,t.right))};function Go(e){this.dg_1=e}i(Go).b9=function(e,t){return this.dg_1(e,t)};i(Go).compare=function(e,t){return this.b9(e,t)};function Um(){var e=uu([Eu(),id()]),t=Hm,n=new Go(t);return ql(e,n)}function Hm(e,t){var n=-e.key.length|0,r=-t.key.length|0;return Lo(n,r)}function _a(){cl=this;var e=this;e.eg_1=ha(Um)}i(_a).kd=function(){var e=this.eg_1;return Wm(),e.r1()};var cl;function $u(){return cl==null&&new _a,cl}function Ar(){fl=this,En.call(this,"&&")}i(Ar).compare=function(e,t,n,r){return n.match(e,t)&&r.match(e,t)};i(Ar).toString=function(){return"AndOperator"};i(Ar).hashCode=function(){return-772304006};i(Ar).equals=function(e){return this===e?!0:e instanceof Ar?(e instanceof Ar||$(),!0):!1};var fl;function Eu(){return fl==null&&new Ar,fl}function Tr(){hl=this,En.call(this,"||")}i(Tr).compare=function(e,t,n,r){return n.match(e,t)||r.match(e,t)};i(Tr).toString=function(){return"OrOperator"};i(Tr).hashCode=function(){return-302302232};i(Tr).equals=function(e){return this===e?!0:e instanceof Tr?(e instanceof Tr||$(),!0):!1};var hl;function id(){return hl==null&&new Tr,hl}function En(e){$u(),this.key=e}i(En).q1=function(){return this.key};i(En).stringify=function(){return this.key};function Wm(){return $a("allSubClasses",1,Co,function(e){return e.allSubClasses},null)}function _t(e,t){Ut.call(this),this.fg_1=e,this.expression=t}i(_t).tc=function(){return this.fg_1};i(_t).gg=function(){return this.expression};i(_t).uc=function(){return this.expression.uc()};i(_t).match=function(e,t){return!this.expression.match(e,t)};i(_t).bd=function(){return this.expression.binaryExpressions};i(_t).stringify=function(){return"!("+this.expression.stringify()+")"};i(_t).pc=function(){return this.fg_1};i(_t).qc=function(){return this.expression};i(_t).hg=function(e,t){return new _t(e,t)};i(_t).copy=function(e,t,n){return e=e===u?this.fg_1:e,t=t===u?this.expression:t,this.hg(e,t)};i(_t).toString=function(){return"NotExpression(start="+this.fg_1+", expression="+O(this.expression)+")"};i(_t).hashCode=function(){var e=this.fg_1;return e=D(e,31)+le(this.expression)|0,e};i(_t).equals=function(e){if(this===e)return!0;if(!(e instanceof _t))return!1;var t=e instanceof _t?e:$();return!(this.fg_1!==t.fg_1||!E(this.expression,t.expression))};function qn(e){var t="invalid PolynomialExpression: a="+e.a+", b="+e.b;throw jr(O(t))}function Vm(e){return function(t){return D(e.a,t)+e.b|0}}function Gm(e){return function(t){return D(e.a,t)+e.b|0}}function Jm(e,t){return function(n){return D(e.a,t+n|0)+e.b|0}}function Qm(e){return function(t){return t!==0&&qn(e),e.b}}function Xm(e,t){return function(n){return D(e.a,t-n|0)+e.b|0}}function Ae(e,t){e=e===u?0:e,t=t===u?1:t,vi.call(this),this.a=e,this.b=t;var n=this,r;if(this.a>0){var a;if(this.b>0)a=this.a+this.b|0;else if(this.b===0)a=this.a;else{var o=((-this.b|0)/this.a|0)+1|0;a=D(this.a,o)+this.b|0}r=a}else{var s;if(this.a===0){var l;this.b>0?l=this.b:qn(this),s=l}else{var c;if(this.b>0){var f;if(this.b<=(-this.a|0))qn(this);else{var h=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;f=D(this.a,h)+this.b|0}c=f}else qn(this);s=c}r=s-1|0}n.fe_1=r;var d=this,v;if(this.a>0)v=null;else{var y;if(this.a===0){var p;this.b>0?p=this.b:qn(this),y=p}else{var m;if(this.b>0){var g;this.b<=(-this.a|0)?qn(this):g=this.a+this.b|0,m=g}else qn(this);y=m}v=y-1|0}d.ge_1=v,this.he_1=this.fe_1===this.ge_1;var _=this,C;if(this.a>0){var k;if(this.b>0)k=Vm(this);else if(this.b===0)k=Gm(this);else{var x=((-this.b|0)/this.a|0)+1|0;k=Jm(this,x)}C=k}else if(this.a===0){var N;this.b>0?N=Qm(this):qn(this),C=N}else{var z;if(this.b>0){var G;if(this.b<=(-this.a|0))qn(this);else{var K=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;G=Xm(this,K)}z=G}else qn(this);C=z}_.ie_1=C}i(Ae).ig=function(){return this.a};i(Ae).jg=function(){return this.b};i(Ae).stringify=function(){if(this.a>0&&this.b>0)return this.a===1?"(n+"+this.b+")":"("+this.a+"n+"+this.b+")";if(this.a<0&&this.b>0)return this.a===-1?"("+this.b+"-n)":"("+this.b+this.a+"n)";if(this.b===0){if(this.a===1)return"n";var e;return this.a>0?e=""+this.a+"n":e="("+this.a+"n)",e}if(this.a===0){if(this.b===1)return"";var t;return this.b>0?t=this.b.toString():t="("+this.b+")",t}var n=this.b>=0?"+":"";return"("+this.a+"n"+n+this.b+")"};i(Ae).yd=function(){return this.fe_1};i(Ae).zd=function(){return this.ge_1};i(Ae).checkOffset=function(e){if(this.he_1)return e===this.fe_1;var t=(e+1|0)-this.b|0;return(t%this.a|0)===0&&(t/this.a|0)>=1};i(Ae).getOffset=function(e){return this.ie_1(e)-1|0};i(Ae).pc=function(){return this.a};i(Ae).qc=function(){return this.b};i(Ae).kg=function(e,t){return new Ae(e,t)};i(Ae).copy=function(e,t,n){return e=e===u?this.a:e,t=t===u?this.b:t,this.kg(e,t)};i(Ae).toString=function(){return"PolynomialExpression(a="+this.a+", b="+this.b+")"};i(Ae).hashCode=function(){var e=this.a;return e=D(e,31)+this.b|0,e};i(Ae).equals=function(e){if(this===e)return!0;if(!(e instanceof Ae))return!1;var t=e instanceof Ae?e:$();return!(this.a!==t.a||this.b!==t.b)};function Nn(){}function He(e,t,n){this.yc_1=e,this.zc_1=t,this.value=n}i(He).tc=function(){return this.yc_1};i(He).uc=function(){return this.zc_1};i(He).r1=function(){return this.value};i(He).stringify=function(){return this.value.stringify()};i(He).pc=function(){return this.yc_1};i(He).qc=function(){return this.zc_1};i(He).ed=function(){return this.value};i(He).lg=function(e,t,n){return new He(e,t,n)};i(He).copy=function(e,t,n,r){return e=e===u?this.yc_1:e,t=t===u?this.zc_1:t,n=n===u?this.value:n,this.lg(e,t,n)};i(He).toString=function(){return"PositionImpl(start="+this.yc_1+", end="+this.zc_1+", value="+O(this.value)+")"};i(He).hashCode=function(){var e=this.yc_1;return e=D(e,31)+this.zc_1|0,e=D(e,31)+le(this.value)|0,e};i(He).equals=function(e){if(this===e)return!0;if(!(e instanceof He))return!1;var t=e instanceof He?e:$();return!(this.yc_1!==t.yc_1||this.zc_1!==t.zc_1||!E(this.value,t.value))};function Jo(){}function Ym(e,t,n){if(e.mg_1)return!0;var r=n.getName(t),a;if(r==null)return!1;a=r;var o=a;return j(o)===e.name.length?tm(o,e.name):j(o)>e.name.length?M(o,(j(o)-e.name.length|0)-1|0)===46&&Fo(o,e.name):!1}function Zm(e){return"["+e.stringify()+"]"}function at(e,t,n){this.at=e,this.name=t,this.expressions=n,this.mg_1=Em(this.name)||this.name==="*"}i(at).ng=function(){return this.at};i(at).og=function(){return this.name};i(at).pg=function(){return this.expressions};i(at).bd=function(){for(var e=this.expressions,t=st(),n=e.h();n.i();){var r=n.j(),a=$l(r.binaryExpressions);$o(t,a)}return pn(t)};i(at).stringify=function(){var e=this.at?"@":"",t=e+this.name;return t+Cn(this.expressions,"",u,u,u,u,Zm)};i(at).match=function(e,t){var n;if(Ym(this,e.current,t)){var r;e:{var a=this.expressions,o;if(ee(a,Ne)?o=a.l():o=!1,o){r=!0;break e}for(var s=a.h();s.i();){var l=s.j();if(!l.match(e,t)){r=!1;break e}}r=!0}n=r}else n=!1;return n};i(at).pc=function(){return this.at};i(at).qc=function(){return this.name};i(at).ed=function(){return this.expressions};i(at).qg=function(e,t,n){return new at(e,t,n)};i(at).copy=function(e,t,n,r){return e=e===u?this.at:e,t=t===u?this.name:t,n=n===u?this.expressions:n,this.qg(e,t,n)};i(at).toString=function(){return"PropertySegment(at="+this.at+", name="+this.name+", expressions="+O(this.expressions)+")"};i(at).hashCode=function(){var e=Ml(this.at);return e=D(e,31)+Ht(this.name)|0,e=D(e,31)+le(this.expressions)|0,e};i(at).equals=function(e){if(this===e)return!0;if(!(e instanceof at))return!1;var t=e instanceof at?e:$();return!(this.at!==t.at||this.name!==t.name||!E(this.expressions,t.expressions))};function Xe(e,t){t=t===u?null:t,this.segment=e,this.to=t;var n=this,r;e:{var a=this.segment.expressions,o;if(ee(a,Ne)?o=a.l():o=!1,o){r=!1;break e}for(var s=a.h();s.i();){var l=s.j(),c,f;if(l instanceof ce?f=E(l.operator.value,Wr()):f=!1,f?c=E(l.left.value,"depth")&&E(l.right.value,0)||E(l.left.value,"parent")&&E(l.right.value,"null"):c=!1,c){r=!0;break e}}r=!1}n.isMatchRoot=r,this.quickFindValue=eg(this.segment)}i(Xe).qe=function(){return this.segment};i(Xe).re=function(){return this.to};i(Xe).stringify=function(){var e;return this.to!=null?e=this.to.stringify()+" ":e="",e+this.segment.stringify()};i(Xe).matchContext=function(e,t){return this.segment.match(e,t)?this.to==null?e:this.to.matchContext(e,t):null};i(Xe).rg=function(){return this.isMatchRoot};i(Xe).sg=function(){return this.quickFindValue};i(Xe).a=function(){return this.to==null?1:this.to.to.length+1|0};i(Xe).pc=function(){return this.segment};i(Xe).qc=function(){return this.to};i(Xe).tg=function(e,t){return new Xe(e,t)};i(Xe).copy=function(e,t,n){return e=e===u?this.segment:e,t=t===u?this.to:t,this.tg(e,t)};i(Xe).toString=function(){return"PropertyWrapper(segment="+this.segment.toString()+", to="+Re(this.to)+")"};i(Xe).hashCode=function(){var e=this.segment.hashCode();return e=D(e,31)+(this.to==null?0:this.to.hashCode())|0,e};i(Xe).equals=function(e){if(this===e)return!0;if(!(e instanceof Xe))return!1;var t=e instanceof Xe?e:$();return!(!this.segment.equals(t.segment)||!E(this.to,t.to))};function It(e,t,n){this.id=e,this.vid=t,this.text=n,this.canQf=this.id!=null||this.vid!=null||this.text!=null}i(It).ug=function(){return this.id};i(It).vg=function(){return this.vid};i(It).wg=function(){return this.text};i(It).xg=function(){return this.canQf};i(It).pc=function(){return this.id};i(It).qc=function(){return this.vid};i(It).ed=function(){return this.text};i(It).yg=function(e,t,n){return new It(e,t,n)};i(It).copy=function(e,t,n,r){return e=e===u?this.id:e,t=t===u?this.vid:t,n=n===u?this.text:n,this.yg(e,t,n)};i(It).toString=function(){return"QuickFindValue(id="+this.id+", vid="+this.vid+", text="+this.text+")"};i(It).hashCode=function(){var e=this.id==null?0:Ht(this.id);return e=D(e,31)+(this.vid==null?0:Ht(this.vid))|0,e=D(e,31)+(this.text==null?0:Ht(this.text))|0,e};i(It).equals=function(e){if(this===e)return!0;if(!(e instanceof It))return!1;var t=e instanceof It?e:$();return!(this.id!=t.id||this.vid!=t.vid||this.text!=t.text)};function eg(e){var t=Qa(e.expressions),n,r,a,o;if(t instanceof ce?o=E(t.left.value,"id"):o=!1,o?a=E(t.operator.value,Wr()):a=!1,a){var s=t.right;r=s instanceof fe}else r=!1;r?n=t.right.vd_1:n=null;var l=n,c=Qa(e.expressions),f,h,d,v;if(c instanceof ce?v=E(c.left.value,"vid"):v=!1,v?d=E(c.operator.value,Wr()):d=!1,d){var y=c.right;h=y instanceof fe}else h=!1;h?f=c.right.vd_1:f=null;var p=f,m=Qa(e.expressions),g,_,C,k;if(m instanceof ce?k=E(m.left.value,"text"):k=!1,k?C=E(m.operator.value,Wr())||E(m.operator.value,Fr())||E(m.operator.value,ku())||E(m.operator.value,Cu()):C=!1,C){var x=m.right;_=x instanceof fe}else _=!1;_?g=m.right.vd_1:g=null;var N=g;return new It(l,p,N)}function ad(){Vi();var e=od;return ig(),e.r1()}var od;function sd(){Vi();var e=ld;return ag(),e.r1()}var ld;function Qo(){}i(Qo).parse=function(e){return fd(e)};i(Qo).parseOrNull=function(e){var t;try{t=fd(e)}catch(r){var n;if(r instanceof gn)n=null;else throw r;t=n}return t};var ud;function tg(){return ud}function Bt(e,t){this.source=e,this.propertyWrapper=t;var n=this,r;e:{for(var a=this.propertyWrapper.length,o=0,s=this.propertyWrapper;s!=null;){if(s.segment.at){r=(a-1|0)-o|0;break e}var l=s.to;s=l==null?null:l.to,o=o+1|0}r=a-1|0}n.targetIndex=r,this.quickFindValue=this.propertyWrapper.quickFindValue,this.isMatchRoot=this.propertyWrapper.isMatchRoot;for(var c=this,f=this.propertyWrapper.to,h=st();f!=null;){var d=f;h.e(d.segment.operator.key),f=f.to.to}c.connectKeys=pn(h);for(var v=this,y=this.propertyWrapper,p=st();y!=null;){var m=y.segment;vm(p,m.binaryExpressions);var g=y.to;y=g==null?null:g.to}var _=Gv(p);v.binaryExpressions=pn(_);var C=this,k;e:{if(this.connectKeys.length!==0){k=!0;break e}for(var x=this.binaryExpressions,N=0,z=x.length;N<z;){var G=x[N];N=N+1|0;var K;t:{for(var re=G.properties,V=0,je=re.length;V<je;){var Ce=re[V];if(V=V+1|0,bs(ad(),Ce)){K=!0;break t}}K=!1}if(K){k=!0;break e}var be;t:{for(var ve=G.methods,xe=0,Oe=ve.length;xe<Oe;){var et=ve[xe];if(xe=xe+1|0,bs(sd(),et)){be=!0;break t}}be=!1}if(be){k=!0;break e}}k=!1}C.useCache=k}i(Bt).zg=function(){return this.source};i(Bt).ah=function(){return this.propertyWrapper};i(Bt).stringify=function(){return this.propertyWrapper.stringify()};i(Bt).bh=function(){return this.targetIndex};i(Bt).matchContext=function(e,t){return this.propertyWrapper.matchContext(new Qe(e),t)};i(Bt).match=function(e,t){var n=this.matchContext(e,t),r;if(n==null)return null;r=n;var a=r;return a.get(this.targetIndex).current};i(Bt).sg=function(){return this.quickFindValue};i(Bt).rg=function(){return this.isMatchRoot};i(Bt).ch=function(){return this.connectKeys};i(Bt).bd=function(){return this.binaryExpressions};i(Bt).dh=function(){return this.useCache};i(Bt).checkType=function(e){try{for(var t=this.binaryExpressions,n=0,r=t.length;n<r;){var a=t[n];if(n=n+1|0,!a.operator.value.od(a.left,a.right))throw new nn(a);var o=xc(a.left,e),s=xc(a.right,e);if(o!=null&&s!=null&&!E(o,s))throw new Ct(a,o,s)}}catch(c){if(c instanceof dt){var l=c;return l}else throw c}return null};function xc(e,t){Vi();var n;return e instanceof At?n=null:e instanceof ft?n=ma():e instanceof Ve?n=ga():e instanceof fe?n=ya():e instanceof Pt?n=Za(e,t).type:xr(),n}function Za(e,t){Vi();var n;if(e instanceof ke){var r=e.callee,a;if(r instanceof ke)throw We("Unsupported nested call");if(r instanceof Me){var o=t.methods,s;e:{for(var l=0,c=o.length;l<c;){var f=o[l];if(l=l+1|0,f.name===e.callee.bf_1&&f.params.length===e.arguments.m()){s=f;break e}}s=null}var h=s,d;if(h==null)throw new en(e.callee);d=h,a=d}else if(r instanceof Ee){var v=Za(e.callee.object0,t).methods,y;e:{for(var p=0,m=v.length;p<m;){var g=v[p];if(p=p+1|0,g.name===e.callee.property&&g.params.length===e.arguments.m()){y=g;break e}}y=null}var _=y,C;if(_==null)throw new tn(e.callee);C=_,a=C}else xr();for(var k=a,x=0,N=k.params,z=0,G=N.length;z<G;){var K=N[z];z=z+1|0;var re=x;x=re+1|0;var V=e.arguments.k(re);if(!(V instanceof At))if(V instanceof ft){if(!E(K.type,ma()))throw new ct(e,V,ma())}else if(V instanceof Ve){if(!E(K.type,ga()))throw new ct(e,V,ga())}else if(V instanceof fe){if(!E(K.type,ya()))throw new ct(e,V,ya())}else V instanceof Pt?Za(V,K):xr()}return k.returnType}else if(e instanceof Me){var je=t.props,Ce;e:{for(var be=0,ve=je.length;be<ve;){var xe=je[be];if(be=be+1|0,xe.name===e.bf_1){Ce=xe;break e}}Ce=null}var Oe=Ce,et=Oe==null?null:Oe.type,pe;if(et==null)throw new Yt(e);pe=et,n=pe}else if(e instanceof Ee){var bt=Za(e.object0,t).props,Rt;e:{for(var Gt=0,In=bt.length;Gt<In;){var A=bt[Gt];if(Gt=Gt+1|0,A.name===e.property){Rt=A;break e}}Rt=null}var oe=Rt,me=oe==null?null:oe.type,ze;if(me==null)throw new Zt(e);ze=me,n=ze}else xr();return n}function ng(){return Vi(),["index","parent","depth"]}function rg(){return Vi(),["getChild"]}function ig(){return $a("useCacheProperties",0,ru,function(){return ad()},null)}function ag(){return $a("useCacheMethods",0,ru,function(){return sd()},null)}var Sc;function Vi(){Sc||(Sc=!0,od=ha(ng),ld=ha(rg))}function ot(e,t,n,r){r=r===u?null:r;var a=Xt(n,t);go("expected "+e+" in selector at position "+t+", but got "+Re(a==null?null:new ne(a)),this),B(this,ot),this.expectedValue=e,this.position=t,this.source=n,this.jh_1=r}i(ot).kh=function(){return this.expectedValue};i(ot).lh=function(){return this.position};i(ot).zg=function(){return this.source};i(ot).j7=function(){return this.jh_1};i(ot).pc=function(){return this.expectedValue};i(ot).qc=function(){return this.position};i(ot).ed=function(){return this.source};i(ot).fd=function(){return this.jh_1};i(ot).mh=function(e,t,n,r){return new ot(e,t,n,r)};i(ot).copy=function(e,t,n,r,a){return e=e===u?this.expectedValue:e,t=t===u?this.position:t,n=n===u?this.source:n,r=r===u?this.jh_1:r,this.mh(e,t,n,r)};i(ot).toString=function(){return"SyntaxError(expectedValue="+this.expectedValue+", position="+this.position+", source="+this.source+", cause="+Re(this.jh_1)+")"};i(ot).hashCode=function(){var e=Ht(this.expectedValue);return e=D(e,31)+this.position|0,e=D(e,31)+Ht(this.source)|0,e=D(e,31)+(this.jh_1==null?0:le(this.jh_1))|0,e};i(ot).equals=function(e){if(this===e)return!0;if(!(e instanceof ot))return!1;var t=e instanceof ot?e:$();return!(this.expectedValue!==t.expectedValue||this.position!==t.position||this.source!==t.source||!E(this.jh_1,t.jh_1))};function ye(e,t,n,r){n=n===u?"":n,r=r===u?null:r;var a;if(t>=j(e))a=!0;else{var o;j(n)>0?o=!Wt(n,M(e,t)):o=!1,a=o}if(a)throw new ot(r==null?n:r,t,O(e))}function rt(e,t,n,r){throw n=n===u?"":n,r=r===u?null:r,new ot(n,t,O(e),r)}function og(e){return function(t,n,r){return e(t,n,r)}}function sg(e){return function(t){return Fv(e(t))}}function Nu(){}i(Nu).multiplatformBuild=function(e,t,n,r,a){var o=og(t);return new Ye(e,o,n,sg(r),a)};var cd;function lg(){return cd}function ug(e,t,n){return null}function cg(e){return function(t){for(var n=e(t);n!=null;)n=e(Tt(n));return n}}function Zr(e,t,n){this.vh_1=e,this.wh_1=t,jt.call(this,n)}i(Zr).bi=function(e,t){var n=this.ci(e,t);return n.k6_1=ue,n.l6_1=null,n.q6()};i(Zr).h7=function(e,t){return this.bi(e instanceof dr?e:$(),t)};i(Zr).q6=function(){var e=this.k6_1;e:do try{var t=this.i6_1;switch(t){case 0:if(this.j6_1=4,this.yh_1=Tl(this.vh_1(this.wh_1)),this.yh_1.l())return ue;zl(this.yh_1);var n=this;n.zh_1=st(),this.i6_1=1;continue e;case 1:if(this.ai_1=this.yh_1.x2(Pa(this.yh_1)),this.i6_1=2,e=this.xh_1.p9(this.ai_1,this),e===pr())return e;continue e;case 2:for(var r=this.vh_1(this.ai_1).h();r.i();){var a=r.j();this.zh_1.e(a)}if(!this.zh_1.l()){var o=this.zh_1.m()-1|0;if(0<=o)do{var s=o;o=o+-1|0,this.yh_1.e(this.zh_1.k(s))}while(0<=o);this.zh_1.n3()}if(!this.yh_1.l()){this.i6_1=1;continue e}this.i6_1=3;continue e;case 3:return ue;case 4:throw this.l6_1}}catch(c){var l=c;if(this.j6_1===4)throw l;this.i6_1=this.j6_1,this.l6_1=l}while(!0)};i(Zr).ci=function(e,t){var n=new Zr(this.vh_1,this.wh_1,t);return n.xh_1=e,n};function fg(e,t,n){var r=new Zr(e,t,n),a=function(o,s){return r.bi(o,s)};return a.$arity=1,a}function hg(e){return function(t){return La(fg(e,t,null))}}function dg(e){return function(t,n){return e.checkOffset(t)}}function vg(e){return function(t,n){var r=e(t),a;n.maxOffset!=null?a=ef(r,Tt(n.maxOffset)+1|0):a=r;var o=a;return jl(o,dg(n))}}function ei(e,t,n,r){this.li_1=e,this.mi_1=t,this.ni_1=n,jt.call(this,r)}i(ei).bi=function(e,t){var n=this.ci(e,t);return n.k6_1=ue,n.l6_1=null,n.q6()};i(ei).h7=function(e,t){return this.bi(e instanceof dr?e:$(),t)};i(ei).q6=function(){var e=this.k6_1;e:do try{var t=this.i6_1;switch(t){case 0:this.j6_1=6;var n=this,r=this.li_1(this.mi_1),a;if(r==null)return ue;a=r,n.pi_1=a,this.qi_1=0,this.i6_1=1;continue e;case 1:if(this.pi_1==null){this.i6_1=5;continue e}if(this.ri_1=this.pi_1,this.ri_1==null){this.si_1=null,this.i6_1=4;continue e}else{var o=this;o.ti_1=this.ri_1;var s=this;if(s.ui_1=this.ti_1,this.ni_1.checkOffset(this.qi_1)){if(this.i6_1=2,e=this.oi_1.p9(this.ui_1,this),e===pr())return e;continue e}else{this.i6_1=3;continue e}}case 2:this.i6_1=3;continue e;case 3:this.qi_1=this.qi_1+1|0;var l=this.ni_1.maxOffset;if(l!=null){if(this.qi_1>l)return ue}var c=this;this.pi_1=this.li_1(this.ui_1),c.si_1=ue,this.i6_1=4;continue e;case 4:this.i6_1=1;continue e;case 5:return ue;case 6:throw this.l6_1}}catch(h){var f=h;if(this.j6_1===6)throw f;this.i6_1=this.j6_1,this.l6_1=f}while(!0)};i(ei).ci=function(e,t){var n=new ei(this.li_1,this.mi_1,this.ni_1,t);return n.oi_1=e,n};function pg(e,t,n,r){var a=new ei(e,t,n,r),o=function(s,l){return a.bi(s,l)};return o.$arity=1,o}function _g(e){return function(t,n){return La(pg(e,t,n,null))}}function mg(e){return function(t){return!E(t,e)}}function gg(e){return function(t,n){return e.checkOffset(t)}}function yg(e,t){return function(n,r){var a=e(n),o;if(a!=null){var s=t(a),l=Tl(tp(s,mg(n)));zl(l);var c=Jv(l);o=jl(c,gg(r))}else o=Hi();return o}}function bg(e){return function(t){return!E(t,e)}}function wg(e){return function(t,n){return e.checkOffset(t)}}function kg(e,t){return function(n,r){var a=e(n),o;if(a!=null){var s=t(a),l=np(rp(s,bg(n)),1),c;r.maxOffset!=null?c=ef(l,Tt(r.maxOffset)+1|0):c=l;var f=c;o=jl(f,wg(r))}else o=Hi();return o}}function ti(e,t,n,r){this.dj_1=e,this.ej_1=t,this.fj_1=n,jt.call(this,r)}i(ti).bi=function(e,t){var n=this.ci(e,t);return n.k6_1=ue,n.l6_1=null,n.q6()};i(ti).h7=function(e,t){return this.bi(e instanceof dr?e:$(),t)};i(ti).q6=function(){var e=this.k6_1;e:do try{var t=this.i6_1;switch(t){case 0:if(this.j6_1=5,this.hj_1=Tl(this.dj_1(this.ej_1)),this.hj_1.l())return ue;zl(this.hj_1);var n=this;n.ij_1=st(),this.jj_1=0,this.i6_1=1;continue e;case 1:if(this.kj_1=this.hj_1.x2(Pa(this.hj_1)),this.fj_1.checkOffset(this.jj_1)){if(this.i6_1=2,e=this.gj_1.p9(this.kj_1,this),e===pr())return e;continue e}else{this.i6_1=3;continue e}case 2:this.i6_1=3;continue e;case 3:this.jj_1=this.jj_1+1|0;var r=this.fj_1.maxOffset;if(r!=null){if(this.jj_1>r)return ue}for(var a=this.dj_1(this.kj_1).h();a.i();){var o=a.j();this.ij_1.e(o)}if(!this.ij_1.l()){var s=this.ij_1.m()-1|0;if(0<=s)do{var l=s;s=s+-1|0,this.hj_1.e(this.ij_1.k(l))}while(0<=s);this.ij_1.n3()}if(!this.hj_1.l()){this.i6_1=1;continue e}this.i6_1=4;continue e;case 4:return ue;case 5:throw this.l6_1}}catch(f){var c=f;if(this.j6_1===5)throw c;this.i6_1=this.j6_1,this.l6_1=c}while(!0)};i(ti).ci=function(e,t){var n=new ti(this.dj_1,this.ej_1,this.fj_1,t);return n.gj_1=e,n};function Cg(e,t,n,r){var a=new ti(e,t,n,r),o=function(s,l){return a.bi(s,l)};return o.$arity=1,o}function xg(e){return function(t,n){return La(Cg(e,t,n,null))}}function ni(e,t,n,r){this.tj_1=e,this.uj_1=t,this.vj_1=n,jt.call(this,r)}i(ni).bi=function(e,t){var n=this.ci(e,t);return n.k6_1=ue,n.l6_1=null,n.q6()};i(ni).h7=function(e,t){return this.bi(e instanceof dr?e:$(),t)};i(ni).q6=function(){var e=this.k6_1;e:do try{var t=this.i6_1;switch(t){case 0:if(this.j6_1=7,this.xj_1=this.tj_1.match(this.uj_1,this.vj_1),this.xj_1==null){this.yj_1=null,this.i6_1=2;continue e}else{var n=this;n.zj_1=this.xj_1;var r=this;if(r.ak_1=this.zj_1,this.i6_1=1,e=this.wj_1.p9(this.ak_1,this),e===pr())return e;continue e}case 1:var a=this;a.yj_1=ue,this.i6_1=2;continue e;case 2:var o=this;o.bk_1=this.vj_1.getDescendants(this.uj_1),this.ck_1=this.bk_1.h(),this.i6_1=3;continue e;case 3:if(!this.ck_1.i()){this.i6_1=6;continue e}this.dk_1=this.ck_1.j();var s=this;if(s.ek_1=this.dk_1,this.fk_1=this.tj_1.match(this.ek_1,this.vj_1),this.fk_1==null){this.gk_1=null,this.i6_1=5;continue e}else{var l=this;l.hk_1=this.fk_1;var c=this;if(c.ik_1=this.hk_1,this.i6_1=4,e=this.wj_1.p9(this.ik_1,this),e===pr())return e;continue e}case 4:var f=this;f.gk_1=ue,this.i6_1=5;continue e;case 5:this.i6_1=3;continue e;case 6:return ue;case 7:throw this.l6_1}}catch(d){var h=d;if(this.j6_1===7)throw h;this.i6_1=this.j6_1,this.l6_1=h}while(!0)};i(ni).ci=function(e,t){var n=new ni(this.tj_1,this.uj_1,this.vj_1,t);return n.wj_1=e,n};function Sg(e,t,n,r){var a=new ni(e,t,n,r),o=function(s,l){return a.bi(s,l)};return o.$arity=1,o}function $g(e){return function(t,n){return La(Sg(n,t,e,null))}}function Eg(e){return function(t,n){return tf(e.de_1(t,n))}}function ri(e,t,n,r){this.rk_1=e,this.sk_1=t,this.tk_1=n,jt.call(this,r)}i(ri).hl=function(e,t){var n=this.il(e,t);return n.k6_1=ue,n.l6_1=null,n.q6()};i(ri).h7=function(e,t){return this.hl(e instanceof dr?e:$(),t)};i(ri).q6=function(){var e=this.k6_1;e:do try{var t=this.i6_1;switch(t){case 0:if(this.j6_1=7,this.vk_1=this.rk_1.matchContext(this.sk_1,this.tk_1),this.vk_1==null){this.wk_1=null,this.i6_1=2;continue e}else{var n=this;n.xk_1=this.vk_1;var r=this;if(r.yk_1=this.xk_1,this.i6_1=1,e=this.uk_1.p9(this.yk_1,this),e===pr())return e;continue e}case 1:var a=this;a.wk_1=ue,this.i6_1=2;continue e;case 2:var o=this;o.zk_1=this.tk_1.getDescendants(this.sk_1),this.al_1=this.zk_1.h(),this.i6_1=3;continue e;case 3:if(!this.al_1.i()){this.i6_1=6;continue e}this.bl_1=this.al_1.j();var s=this;if(s.cl_1=this.bl_1,this.dl_1=this.rk_1.matchContext(this.cl_1,this.tk_1),this.dl_1==null){this.el_1=null,this.i6_1=5;continue e}else{var l=this;l.fl_1=this.dl_1;var c=this;if(c.gl_1=this.fl_1,this.i6_1=4,e=this.uk_1.p9(this.gl_1,this),e===pr())return e;continue e}case 4:var f=this;f.el_1=ue,this.i6_1=5;continue e;case 5:this.i6_1=3;continue e;case 6:return ue;case 7:throw this.l6_1}}catch(d){var h=d;if(this.j6_1===7)throw h;this.i6_1=this.j6_1,this.l6_1=h}while(!0)};i(ri).il=function(e,t){var n=new ri(this.rk_1,this.sk_1,this.tk_1,t);return n.uk_1=e,n};function Ng(e,t,n,r){var a=new ri(e,t,n,r),o=function(s,l){return a.hl(s,l)};return o.$arity=1,o}function Ig(e){return function(t,n){return La(Ng(n,t,e,null))}}function qg(e){return function(t,n){return tf(e.ee_1(t,n))}}function Ag(e){return function(t,n){var r=nf(e.de_1(t,n)),a=ee(r,On)?r:$(),o=pn(a);return Mi(o)?o:$()}}function Tg(e){return function(t,n){var r=e.ee_1(t,n),a=nf(r);return pn(a)}}function Ye(e,t,n,r,a,o,s,l,c,f,h,d){var v;t===u?v=ug:v=t,t=v;var y;o===u?y=cg(a):y=o,o=y;var p;s===u?p=hg(r):p=s,s=p;var m;l===u?m=vg(r):m=l,l=m;var g;c===u?g=_g(a):g=c,c=g;var _;f===u?_=yg(a,r):_=f,f=_;var C;h===u?C=kg(a,r):C=h,h=C;var k;d===u?k=xg(r):k=d,d=k,this.getAttr=e,this.getInvoke=t,this.getName=n,this.getChildren=r,this.getParent=a,this.getRoot=o,this.getDescendants=s,this.traverseChildren=l,this.traverseAncestors=c,this.traverseBeforeBrothers=f,this.traverseAfterBrothers=h,this.traverseDescendants=d;var x=this;x.de_1=$g(this);var N=this;N.querySelector=Eg(this);var z=this;z.ee_1=Ig(this);var G=this;G.querySelectorContext=qg(this);var K=this;K.querySelectorAllArray=Ag(this);var re=this;re.querySelectorAllContextArray=Tg(this)}i(Ye).jl=function(){return this.getAttr};i(Ye).kl=function(){return this.getInvoke};i(Ye).ll=function(){return this.getName};i(Ye).ml=function(){return this.getChildren};i(Ye).nl=function(){return this.getParent};i(Ye).ol=function(){return this.getRoot};i(Ye).pl=function(){return this.getDescendants};i(Ye).ql=function(){return this.traverseChildren};i(Ye).rl=function(){return this.traverseAncestors};i(Ye).sl=function(){return this.traverseBeforeBrothers};i(Ye).tl=function(){return this.traverseAfterBrothers};i(Ye).ul=function(){return this.traverseDescendants};i(Ye).vl=function(){return this.de_1};i(Ye).wl=function(){return this.querySelector};i(Ye).xl=function(){return this.ee_1};i(Ye).yl=function(){return this.querySelectorContext};i(Ye).zl=function(){return this.querySelectorAllArray};i(Ye).am=function(){return this.querySelectorAllContextArray};function qt(e){vi.call(this),this.numbers=e;var t=this,n=Qa(this.numbers);t.bm_1=(n==null?1:n)-1|0,this.cm_1=Qv(this.numbers);for(var r=this,a=this.numbers,o=qi(Ms(a,10)),s=a.h();s.i();){var l=s.j(),c=l-1|0;o.e(c)}r.dm_1=o}i(qt).em=function(){return this.numbers};i(qt).yd=function(){return this.bm_1};i(qt).zd=function(){return this.cm_1};i(qt).checkOffset=function(e){return sm(this.dm_1,e)>=0};i(qt).getOffset=function(e){return this.numbers.k(e)};i(qt).stringify=function(){if(this.numbers.m()===1){var e;return ia(this.numbers)===1?e="":e=ia(this.numbers).toString(),e}return"("+Cn(this.numbers,",")+")"};i(qt).pc=function(){return this.numbers};i(qt).fm=function(e){return new qt(e)};i(qt).copy=function(e,t){return e=e===u?this.numbers:e,this.fm(e)};i(qt).toString=function(){return"TupleExpression(numbers="+O(this.numbers)+")"};i(qt).hashCode=function(){return le(this.numbers)};i(qt).equals=function(e){if(this===e)return!0;if(!(e instanceof qt))return!1;var t=e instanceof qt?e:$();return!!E(this.numbers,t.numbers)};function Vr(){dl=this,an.call(this,"boolean")}i(Vr).toString=function(){return"BooleanType"};i(Vr).hashCode=function(){return 1452179029};i(Vr).equals=function(e){return this===e?!0:e instanceof Vr?(e instanceof Vr||$(),!0):!1};var dl;function ma(){return dl==null&&new Vr,dl}function Gr(){vl=this,an.call(this,"int")}i(Gr).toString=function(){return"IntType"};i(Gr).hashCode=function(){return-1601449956};i(Gr).equals=function(e){return this===e?!0:e instanceof Gr?(e instanceof Gr||$(),!0):!1};var vl;function ga(){return vl==null&&new Gr,vl}function Jr(){pl=this,an.call(this,"string")}i(Jr).toString=function(){return"StringType"};i(Jr).hashCode=function(){return 1719560632};i(Jr).equals=function(e){return this===e?!0:e instanceof Jr?(e instanceof Jr||$(),!0):!1};var pl;function ya(){return pl==null&&new Jr,pl}function rn(e){an.call(this,"object"),this.name=e}i(rn).og=function(){return this.name};i(rn).pc=function(){return this.name};i(rn).gm=function(e){return new rn(e)};i(rn).copy=function(e,t){return e=e===u?this.name:e,this.gm(e)};i(rn).toString=function(){return"ObjectType(name="+this.name+")"};i(rn).hashCode=function(){return Ht(this.name)};i(rn).equals=function(e){if(this===e)return!0;if(!(e instanceof rn))return!1;var t=e instanceof rn?e:$();return this.name===t.name};function an(e){this.key=e}i(an).q1=function(){return this.key};function de(e,t,n){var r;n===u?r=[]:r=n,n=r,this.name=e,this.returnType=t,this.params=n}i(de).og=function(){return this.name};i(de).hm=function(){return this.returnType};i(de).im=function(){return this.params};i(de).equals=function(e){return this===e?!0:!(e==null||!lo(this).equals(lo(e))||(e instanceof de||$(),this.name!==e.name)||!this.returnType.equals(e.returnType)||!Es(this.params,e.params))};i(de).hashCode=function(){var e=Ht(this.name);return e=D(31,e)+this.returnType.hashCode()|0,e=D(31,e)+Ns(this.params)|0,e};i(de).pc=function(){return this.name};i(de).qc=function(){return this.returnType};i(de).ed=function(){return this.params};i(de).jm=function(e,t,n){return new de(e,t,n)};i(de).copy=function(e,t,n,r){return e=e===u?this.name:e,t=t===u?this.returnType:t,n=n===u?this.params:n,this.jm(e,t,n)};i(de).toString=function(){return"MethodInfo(name="+this.name+", returnType="+this.returnType.toString()+", params="+O(this.params)+")"};function te(e,t){this.name=e,this.type=t}i(te).og=function(){return this.name};i(te).rf=function(){return this.type};i(te).pc=function(){return this.name};i(te).qc=function(){return this.type};i(te).km=function(e,t){return new te(e,t)};i(te).copy=function(e,t,n){return e=e===u?this.name:e,t=t===u?this.type:t,this.km(e,t)};i(te).toString=function(){return"PropInfo(name="+this.name+", type="+this.type.toString()+")"};i(te).hashCode=function(){var e=Ht(this.name);return e=D(e,31)+this.type.hashCode()|0,e};i(te).equals=function(e){if(this===e)return!0;if(!(e instanceof te))return!1;var t=e instanceof te?e:$();return!(this.name!==t.name||!this.type.equals(t.type))};function it(e,t,n){var r;t===u?r=[]:r=t,t=r;var a;n===u?a=[]:a=n,n=a,this.type=e,this.props=t,this.methods=n}i(it).rf=function(){return this.type};i(it).lm=function(e){this.props=e};i(it).mm=function(){return this.props};i(it).nm=function(e){this.methods=e};i(it).dd=function(){return this.methods};i(it).equals=function(e){return this===e?!0:!(e==null||!lo(this).equals(lo(e))||(e instanceof it||$(),!E(this.type,e.type))||!Es(this.props,e.props)||!Es(this.methods,e.methods))};i(it).hashCode=function(){var e=le(this.type);return e=D(31,e)+Ns(this.props)|0,e=D(31,e)+Ns(this.methods)|0,e};i(it).pc=function(){return this.type};i(it).qc=function(){return this.props};i(it).ed=function(){return this.methods};i(it).om=function(e,t,n){return new it(e,t,n)};i(it).copy=function(e,t,n,r){return e=e===u?this.type:e,t=t===u?this.props:t,n=n===u?this.methods:n,this.om(e,t,n)};i(it).toString=function(){return"TypeInfo(type="+O(this.type)+", props="+O(this.props)+", methods="+O(this.methods)+")"};function jg(e){return e.stringify()}function Pg(e){return!1}function Pt(e){Ze.call(this,e,"var"),this.rm_1=e}i(Pt).r1=function(){return this.rm_1};function Me(e,t){Pt.call(this,t),this.af_1=e,this.bf_1=t,this.cf_1=this.af_1+this.bf_1.length|0}i(Me).tc=function(){return this.af_1};i(Me).r1=function(){return this.bf_1};i(Me).uc=function(){return this.cf_1};i(Me).nd=function(e,t){return t.getAttr(e,this.bf_1)};i(Me).cd=function(){return[this.bf_1]};i(Me).dd=function(){return[]};i(Me).pc=function(){return this.af_1};i(Me).qc=function(){return this.bf_1};i(Me).sm=function(e,t){return new Me(e,t)};i(Me).copy=function(e,t,n){return e=e===u?this.af_1:e,t=t===u?this.bf_1:t,this.sm(e,t)};i(Me).toString=function(){return"Identifier(start="+this.af_1+", value="+this.bf_1+")"};i(Me).hashCode=function(){var e=this.af_1;return e=D(e,31)+Ht(this.bf_1)|0,e};i(Me).equals=function(e){if(this===e)return!0;if(!(e instanceof Me))return!1;var t=e instanceof Me?e:$();return!(this.af_1!==t.af_1||this.bf_1!==t.bf_1)};function Ee(e,t,n,r){Pt.call(this,n.stringify()+"."+r),this.if_1=e,this.jf_1=t,this.object0=n,this.property=r}i(Ee).tc=function(){return this.if_1};i(Ee).uc=function(){return this.jf_1};i(Ee).tm=function(){return this.object0};i(Ee).um=function(){return this.property};i(Ee).nd=function(e,t){var n=this.object0.nd(e,t);return n==null?null:t.getAttr(n,this.property)};i(Ee).cd=function(){return Ii([this.object0.properties,[this.property]])};i(Ee).dd=function(){return this.object0.methods};i(Ee).pc=function(){return this.if_1};i(Ee).qc=function(){return this.jf_1};i(Ee).ed=function(){return this.object0};i(Ee).fd=function(){return this.property};i(Ee).vm=function(e,t,n,r){return new Ee(e,t,n,r)};i(Ee).copy=function(e,t,n,r,a){return e=e===u?this.if_1:e,t=t===u?this.jf_1:t,n=n===u?this.object0:n,r=r===u?this.property:r,this.vm(e,t,n,r)};i(Ee).toString=function(){return"MemberExpression(start="+this.if_1+", end="+this.jf_1+", object0="+O(this.object0)+", property="+this.property+")"};i(Ee).hashCode=function(){var e=this.if_1;return e=D(e,31)+this.jf_1|0,e=D(e,31)+le(this.object0)|0,e=D(e,31)+Ht(this.property)|0,e};i(Ee).equals=function(e){if(this===e)return!0;if(!(e instanceof Ee))return!1;var t=e instanceof Ee?e:$();return!(this.if_1!==t.if_1||this.jf_1!==t.jf_1||!E(this.object0,t.object0)||this.property!==t.property)};function ke(e,t,n,r){var a=n.stringify();Pt.call(this,a+"("+Cn(r,",",u,u,u,u,jg)+")"),this.hh_1=e,this.ih_1=t,this.callee=n,this.arguments=r}i(ke).tc=function(){return this.hh_1};i(ke).uc=function(){return this.ih_1};i(ke).wm=function(){return this.callee};i(ke).xm=function(){return this.arguments};i(ke).nd=function(e,t){var n=this.callee,r;if(n instanceof ke)r=null;else if(n instanceof Me){for(var a=this.arguments,o=qi(Ms(a,10)),s=a.h();s.i();){var l=s.j(),c=l.nd(e,t);if(c==null)return null;o.e(c)}r=t.getInvoke(e,this.callee.bf_1,o)}else if(n instanceof Ee){var f=this.callee.object0.nd(e,t);if(f==null)return null;for(var h=f,d=this.arguments,v=qi(Ms(d,10)),y=d.h();y.i();){var p=y.j(),m=p.nd(e,t);if(m==null)return null;v.e(m)}r=t.getInvoke(h,this.callee.property,v)}else xr();return r};i(ke).cd=function(){for(var e=El(this.callee.properties),t=this.arguments,n=st(),r=t.h();r.i();){var a=r.j(),o=$l(a.properties);$o(n,o)}var s=Xc(e,n);return pn(s)};i(ke).dd=function(){var e=this.callee,t;e instanceof ke?t=this.callee.methods:e instanceof Me?t=[this.callee.bf_1]:e instanceof Ee?t=Ii([this.callee.object0.methods,[this.callee.property]]):xr();for(var n=El(t),r=this.arguments,a=st(),o=r.h();o.i();){var s=o.j(),l=$l(s.methods);$o(a,l)}var c=Xc(n,a);return pn(c)};i(ke).pc=function(){return this.hh_1};i(ke).qc=function(){return this.ih_1};i(ke).ed=function(){return this.callee};i(ke).fd=function(){return this.arguments};i(ke).ym=function(e,t,n,r){return new ke(e,t,n,r)};i(ke).copy=function(e,t,n,r,a){return e=e===u?this.hh_1:e,t=t===u?this.ih_1:t,n=n===u?this.callee:n,r=r===u?this.arguments:r,this.ym(e,t,n,r)};i(ke).toString=function(){return"CallExpression(start="+this.hh_1+", end="+this.ih_1+", callee="+O(this.callee)+", arguments="+O(this.arguments)+")"};i(ke).hashCode=function(){var e=this.hh_1;return e=D(e,31)+this.ih_1|0,e=D(e,31)+le(this.callee)|0,e=D(e,31)+le(this.arguments)|0,e};i(ke).equals=function(e){if(this===e)return!0;if(!(e instanceof ke))return!1;var t=e instanceof ke?e:$();return!(this.hh_1!==t.hh_1||this.ih_1!==t.ih_1||!E(this.callee,t.callee)||!E(this.arguments,t.arguments))};function Vt(e,t){Ze.call(this,e,t),this.bn_1=e,this.cn_1=t}i(Vt).r1=function(){return this.bn_1};i(Vt).rf=function(){return this.cn_1};i(Vt).nd=function(e,t){return this.value};i(Vt).cd=function(){return[]};i(Vt).dd=function(){return[]};function At(e){Vt.call(this,null,"null"),this.hn_1=e,this.in_1=this.hn_1+4|0}i(At).tc=function(){return this.hn_1};i(At).uc=function(){return this.in_1};i(At).pc=function(){return this.hn_1};i(At).jn=function(e){return new At(e)};i(At).copy=function(e,t){return e=e===u?this.hn_1:e,this.jn(e)};i(At).toString=function(){return"NullLiteral(start="+this.hn_1+")"};i(At).hashCode=function(){return this.hn_1};i(At).equals=function(e){if(this===e)return!0;if(!(e instanceof At))return!1;var t=e instanceof At?e:$();return this.hn_1===t.hn_1};function ft(e,t){Vt.call(this,t,"boolean"),this.on_1=e,this.pn_1=t,this.qn_1=this.on_1+(this.pn_1?4:5)|0}i(ft).tc=function(){return this.on_1};i(ft).r1=function(){return this.pn_1};i(ft).uc=function(){return this.qn_1};i(ft).pc=function(){return this.on_1};i(ft).qc=function(){return this.pn_1};i(ft).rn=function(e,t){return new ft(e,t)};i(ft).copy=function(e,t,n){return e=e===u?this.on_1:e,t=t===u?this.pn_1:t,this.rn(e,t)};i(ft).toString=function(){return"BooleanLiteral(start="+this.on_1+", value="+this.pn_1+")"};i(ft).hashCode=function(){var e=this.on_1;return e=D(e,31)+Ml(this.pn_1)|0,e};i(ft).equals=function(e){if(this===e)return!0;if(!(e instanceof ft))return!1;var t=e instanceof ft?e:$();return!(this.on_1!==t.on_1||this.pn_1!==t.pn_1)};function Ve(e,t,n){Vt.call(this,n,"int"),this.wn_1=e,this.xn_1=t,this.yn_1=n}i(Ve).tc=function(){return this.wn_1};i(Ve).uc=function(){return this.xn_1};i(Ve).r1=function(){return this.yn_1};i(Ve).pc=function(){return this.wn_1};i(Ve).qc=function(){return this.xn_1};i(Ve).ed=function(){return this.yn_1};i(Ve).zn=function(e,t,n){return new Ve(e,t,n)};i(Ve).copy=function(e,t,n,r){return e=e===u?this.wn_1:e,t=t===u?this.xn_1:t,n=n===u?this.yn_1:n,this.zn(e,t,n)};i(Ve).toString=function(){return"IntLiteral(start="+this.wn_1+", end="+this.xn_1+", value="+this.yn_1+")"};i(Ve).hashCode=function(){var e=this.wn_1;return e=D(e,31)+this.xn_1|0,e=D(e,31)+this.yn_1|0,e};i(Ve).equals=function(e){if(this===e)return!0;if(!(e instanceof Ve))return!1;var t=e instanceof Ve?e:$();return!(this.wn_1!==t.wn_1||this.xn_1!==t.xn_1||this.yn_1!==t.yn_1)};function fe(e,t,n,r){r=r===u?null:r,Vt.call(this,n,"string"),this.td_1=e,this.ud_1=t,this.vd_1=n,this.wd_1=r;var a=this,o=this.wd_1,s;if(o==null)s=null;else{var l=cy(this.vd_1);s=l==null?o:l}var c=s,f;c==null?f=Pg:f=c,a.xd_1=f}i(fe).tc=function(){return this.td_1};i(fe).uc=function(){return this.ud_1};i(fe).r1=function(){return this.vd_1};i(fe).ao=function(){return this.wd_1};i(fe).stringify=function(){return uy(this.vd_1)};i(fe).bo=function(){return this.xd_1};i(fe).pc=function(){return this.td_1};i(fe).qc=function(){return this.ud_1};i(fe).ed=function(){return this.vd_1};i(fe).co=function(){return this.wd_1};i(fe).do=function(e,t,n,r){return new fe(e,t,n,r)};i(fe).copy=function(e,t,n,r,a){return e=e===u?this.td_1:e,t=t===u?this.ud_1:t,n=n===u?this.vd_1:n,r=r===u?this.wd_1:r,this.do(e,t,n,r)};i(fe).toString=function(){return"StringLiteral(start="+this.td_1+", end="+this.ud_1+", value="+this.vd_1+", matches="+Re(this.wd_1)+")"};i(fe).hashCode=function(){var e=this.td_1;return e=D(e,31)+this.ud_1|0,e=D(e,31)+Ht(this.vd_1)|0,e=D(e,31)+(this.wd_1==null?0:le(this.wd_1))|0,e};i(fe).equals=function(e){if(this===e)return!0;if(!(e instanceof fe))return!1;var t=e instanceof fe?e:$();return!(this.td_1!==t.td_1||this.ud_1!==t.ud_1||this.vd_1!==t.vd_1||!E(this.wd_1,t.wd_1))};function Ze(e,t){this.ld_1=e,this.md_1=t}i(Ze).r1=function(){return this.ld_1};i(Ze).rf=function(){return this.md_1};i(Ze).stringify=function(){return Re(this.value)};function Be(e,t){e=e===u?"":e,this.eo_1=e,this.fo_1=t}i(Be).go=function(e,t){return this.fo_1(e,t,this.eo_1)};i(Be).toString=function(){return"Parser(prefix="+this.eo_1+", temp="+O(this.fo_1)+")"};i(Be).hashCode=function(){var e=Ht(this.eo_1);return e=D(e,31)+le(this.fo_1)|0,e};i(Be).equals=function(e){if(this===e)return!0;if(!(e instanceof Be))return!1;var t=e instanceof Be?e:$();return!(this.eo_1!==t.eo_1||!E(this.fo_1,t.fo_1))};function Te(e,t){t=t===u?0:t,this.ho_1=e,this.io_1=t}i(Te).toString=function(){return"ParserResult(data="+Re(this.ho_1)+", length="+this.io_1+")"};i(Te).hashCode=function(){var e=this.ho_1==null?0:le(this.ho_1);return e=D(e,31)+this.io_1|0,e};i(Te).equals=function(e){if(this===e)return!0;if(!(e instanceof Te))return!1;var t=e instanceof Te?e:$();return!(!E(this.ho_1,t.ho_1)||this.io_1!==t.io_1)};function Rg(e,t){var n=0,r=Xt(t,n);if(!E(r==null?null:new ne(r),new ne(40)))return!1;n=n+1|0,n=n+e.jo_1.go(t,n).io_1|0;var a=Br(48,57),o=Xt(t,n),s,l=o;if((l==null?null:new ne(l))!=null?s=a.xb(o):s=!1,!s)return!1;n=n+e.no_1.go(t,n).io_1|0,n=n+e.jo_1.go(t,n).io_1|0;var c=Xt(t,n);return E(c==null?null:new ne(c),new ne(44))}function Mg(e,t,n){var r=Uo().allSubClasses,a;e:{for(var o=0,s=r.length;o<s;){var l=r[o];if(o=o+1|0,Do(t,l.key,n)){a=l;break e}}a=null}var c=a,f;c==null?rt(t,n,"CompareOperator"):f=c;var h=f;return new He(n,n+h.key.length|0,h)}function _l(e,t,n){var r=t;if((r==null?null:new ne(r))==null)return!1;var a,o,s,l=t;return E(l==null?null:new ne(l),new ne(95))?s=!0:s=Br(97,122).xb(t),s?o=!0:o=Br(65,90).xb(t),o?a=!0:a=!n&&Br(48,57).xb(t),a}function $c(e,t,n,r){return n=n===u?!1:n,_l(e,t,n)}function vs(e,t,n,r){if(Do(t,r,n)){var a=Xt(t,n+r.length|0),o,s=a;if((s==null?null:new ne(s))==null)return!0;o=a;var l=o;return!(l===95||97<=l&&l<=122||65<=l&&l<=90||48<=l&&l<=57)}return!1}function Ec(e,t,n){var r="tfn-"+e.uo_1.eo_1+e.no_1.eo_1+e.vo_1;ye(t,n,r);var a=e.cp(t,n);return a}function Lg(e,t,n){var r=n,a=Ec(e,t,r);r=r+a.a()|0,r=r+e.jo_1.go(t,r).io_1|0;var o=Mg(e,t,r);r=r+o.a()|0,r=r+e.jo_1.go(t,r).io_1|0;var s=Ec(e,t,r),l,c;if(E(o.value,Ho())||E(o.value,xu())?c=s instanceof fe:c=!1,c){var f;try{f=_y(s.vd_1)}catch(p){var h;if(p instanceof gn){var d=p;rt(t,r,"valid primitive string regex",d)}else throw p;f=h}var v=f;l=s.copy(u,u,u,v)}else l=s;var y=l;return r=r+y.a()|0,new ce(n,r,a,o,y)}function Og(e,t,n){var r=n;r=r+e.jo_1.go(t,r).io_1|0;var a=$u().allSubClasses,o;e:{for(var s=a.h();s.i();){var l=s.j();if(Do(t,l.key,n)){o=l;break e}}o=null}var c=o,f;c==null?rt(t,n,"LogicalOperator"):f=c;var h=f;return new He(r,r+h.key.length|0,h)}function zg(e,t,n){var r=n;r=r+e.jo_1.go(t,r).io_1|0,ye(t,r,"!");var a=r;r=r+1|0,ye(t,r,"(");var o=e.dp(t,r,!0);return r=r+o.a()|0,new _t(a,o)}function Fg(e,t,n){for(var r=t,a="";r<j(e)&&Wt(n,M(e,r));)a=a+Ue(M(e,r)),r=r+1|0;return new Te(a,r-t|0)}function Dg(e,t,n){return ye(e,t,n,"whitespace"),Z().jo_1.go(e,t)}function Bg(e,t,n){var r=t,a=Xt(e,r),o,s=a;if((s==null?null:new ne(s))!=null?o=!Wt(n,a):o=!1,o)return new Te("");ye(e,r,n,"*0-9a-zA-Z_");var l=Ue(M(e,r));if(r=r+1|0,l==="*")return new Te(l,r-t|0);var c="1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_.";e:for(;r<j(e);){if(M(l,(r-t|0)-1|0)===46&&ye(e,r,n,"[0-9a-zA-Z_]"),Wt(c,M(e,r)))l=l+Ue(M(e,r));else break e;r=r+1|0}return new Te(l,r-t|0)}function Kg(e){return e.key}function Ug(e,t,n){var r=Vo().allSubClasses,a;e:{for(var o=r.h();o.i();){var s=o.j();if(Do(e,s.key,t)){a=s;break e}}a=null}var l=a,c;l==null?rt(e,t,"ConnectOperator"):c=l;var f=c;return new Te(f,f.key.length)}function Hg(e,t,n){var r=t;ye(e,r,n,"number");for(var a="";r<j(e)&&Wt(n,M(e,r));)a=a+Ue(M(e,r)),r=r+1|0;var o;try{o=G0(a)}catch(l){var s;if(l instanceof ci)rt(e,t,"valid format number");else throw l;o=s}return new Te(o,r-t|0)}function Wg(e,t,n){var r=t;ye(e,r,n);var a=M(e,r),o;a===43?(r=r+1|0,o=1):a===45?(r=r+1|0,o=-1):o=1;var s=o;r=r+Z().jo_1.go(e,r).io_1|0,ye(e,r,Z().no_1.eo_1+"n");var l;if(Wt(Z().no_1.eo_1,M(e,r))){var c=Z().no_1.go(e,r);r=r+c.io_1|0,l=c.ho_1}else l=1;var f=D(l,s);return r<j(e)&&M(e,r)===110?(r=r+1|0,new Te(new xn(1,f),r-t|0)):new Te(new xn(0,f),r-t|0)}function Vg(e,t,n){var r=t;ye(e,r,n);var a=st();if(M(e,r)===40){for(r=r+1|0,r=r+Z().jo_1.go(e,r).io_1|0,ye(e,r,Z().oo_1.eo_1);M(e,r)!==41;){a.m()>0&&ye(e,r,"+-");var o=Z().oo_1.go(e,r);a.e(o),r=r+o.io_1|0,r=r+Z().jo_1.go(e,r).io_1|0,r>=j(e)&&ye(e,r,")")}r=r+1|0}else{var s=Z().oo_1.go(e,r);a.e(s),r=r+s.io_1|0}for(var l=Zf(),c=a.h();c.i();){var f=c.j(),h=f.ho_1,d=h.pc(),v=h.qc(),y=l.t1(d),p=(y==null?0:y)+v|0;l.u3(d,p)}for(var m=Q_(l.m()),g=l.u1().h();g.i();){var _=g.j();_.q1()>1&&rt(e,t,"power must be 0 or 1");var C=_.r1();m.u3(ue,C)}var k;try{var x=l.t1(1),N=x==null?0:x,z=l.t1(0);k=new Ae(N,z==null?0:z)}catch(re){var G;if(re instanceof gn)rt(e,t,"valid polynomialExpression");else throw re;k=G}var K=k;return new Te(K,r-t|0)}function Gg(e,t,n){var r=t;ye(e,r,"("),r=r+1|0;for(var a=st();r<j(e)&&M(e,r)!==41;){r=r+Z().jo_1.go(e,r).io_1|0;var o=Z().no_1.go(e,r);a.l()?o.ho_1<=0&&rt(e,r,"positive integer"):o.ho_1<=aa(a)&&rt(e,r,">"+aa(a)),r=r+o.io_1|0,a.e(o.ho_1),r=r+Z().jo_1.go(e,r).io_1|0;var s=Xt(e,r);E(s==null?null:new ne(s),new ne(44))&&(r=r+1|0,r=r+Z().jo_1.go(e,r).io_1|0,ye(e,r,Z().no_1.eo_1+")"))}return ye(e,r,")"),r=r+1|0,new Te(new qt(a),r-t|0)}function Jg(e,t,n){var r=t,a;if(Rg(Z(),ln(e,t,j(e)))){var o=Z().qo_1.go(e,r);r=r+o.io_1|0,a=new Te(o.ho_1,r-t|0)}else{var s=Z().po_1.go(e,t);r=r+s.io_1|0,a=new Te(s.ho_1,r-t|0)}return a}function Qg(e,t,n){var r=t,a=Z().mo_1.go(e,r);r=r+a.io_1|0;var o=null;r<j(e)&&Wt(Z().ro_1.eo_1,M(e,r))&&(o=Z().ro_1.go(e,r),r=r+o.io_1|0);var s=o,l=s==null?null:s.ho_1;return new Te(new ut(a.ho_1,l==null?new Ae:l),r-t|0)}function Xg(e,t,n){var r=t;ye(e,r,n);var a=M(e,r);r=r+1|0,r>=j(e)&&rt(e,r,"any char");var o="";e:for(;M(e,r)!==a;){if(r>=(j(e)-1|0)){ye(e,r,Ue(a));break e}var s=M(e,r),l=Ot(s);if(0<=l&&l<=31&&rt(e,r,"0-1f escape char"),M(e,r)===92){r=r+1|0,ye(e,r);var c=o,f=M(e,r),h;if(f===92)h=92;else if(f===39)h=39;else if(f===34)h=34;else if(f===96)h=96;else if(f===110)h=10;else if(f===114)h=13;else if(f===116)h=9;else if(f===98)h=8;else if(f===120){var d=0;if(d<2)do d=d+1|0,r=r+1|0,ye(e,r,"0123456789abcdefABCDEF");while(d<2);var v=(r-2|0)+1|0,y=r+1|0,p=O(ln(e,v,y));h=ca(yc(p,16))}else if(f===117){var m=0;if(m<4)do m=m+1|0,r=r+1|0,ye(e,r,"0123456789abcdefABCDEF");while(m<4);var g=(r-4|0)+1|0,_=r+1|0,C=O(ln(e,g,_));h=ca(yc(C,16))}else rt(e,r,"escape char");o=c+Ue(h)}else o=o+Ue(M(e,r));r=r+1|0}return r=r+1|0,new Te(o,r-t|0)}function Yg(e,t,n){var r=t;ye(e,r,n);var a=Ue(M(e,r));for(r=r+1|0;r<j(e)&&Wt(Z().wo_1,M(e,r));)M(e,r)===46&&ye(e,r+1|0,n),a=a+Ue(M(e,r)),r=r+1|0;return new Te(a,r-t|0)}function Zg(e,t,n){var r=t;ye(e,r,n),r=r+1|0,r=r+Z().jo_1.go(e,r).io_1|0;var a=Z().ep(e,r);return r=r+a.a()|0,ye(e,r,"]"),r=r+1|0,new Te(a,r-t|0)}function ey(e,t,n){var r=t,a=!1,o=Xt(e,r);E(o==null?null:new ne(o),new ne(64))&&(a=!0,r=r+1|0);var s=Z().lo_1.go(e,r);r=r+s.io_1|0;for(var l=st();r<j(e)&&M(e,r)===91;){var c=Z().yo_1.go(e,r);r=r+c.io_1|0,l.e(c.ho_1)}return s.io_1===0&&l.m()===0&&rt(e,r,"["),new Te(new at(a,s.ho_1,l),r-t|0)}function ty(e,t,n){var r=t;r=r+Z().jo_1.go(e,r).io_1|0;var a=Z().zo_1.go(e,r);r=r+a.io_1|0;var o=st();e:for(;r<j(e)&&Wt(Z().jo_1.eo_1,M(e,r));){if(r=r+Z().ko_1.go(e,r).io_1|0,r>=j(e))break e;var s;if(Wt(Z().so_1.eo_1,M(e,r))){var l=Z().so_1.go(e,r);r=r+l.io_1|0,r=r+Z().ko_1.go(e,r).io_1|0,s=l.ho_1}else s=new ut(u,new Ae(1,0));var c=s,f=Z().zo_1.go(e,r);r=r+f.io_1|0,o.e(Cc(c,f.ho_1))}return new Te(Cc(a.ho_1,o),r-t|0)}function ny(e,t,n){return t!==j(e)&&rt(e,t,"EOF"),new Te(ue,0)}function Ka(){ml=this;var e=this;e.jo_1=new Be(` \r
|
|
270
|
+
`,Fg);var t=this;t.ko_1=new Be(` \r
|
|
271
|
+
`,Dg);var n=this;n.lo_1=new Be("*1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_",Bg);var r=this,a=Vo().allSubClasses,o=Cn(a,"",u,u,u,u,Kg);r.mo_1=new Be(o,Ug);var s=this;s.no_1=new Be("1234567890",Hg);var l=this;l.oo_1=new Be("+-1234567890n",Wg);var c=this;c.po_1=new Be("(0123456789n",Vg);var f=this;f.qo_1=new Be(u,Gg);var h=this;h.ro_1=new Be(this.po_1.eo_1,Jg);var d=this;d.so_1=new Be(this.mo_1.eo_1,Qg);var v=this;v.uo_1=new Be("`'\"",Xg),this.vo_1="_"+Cn(Br(97,122),"")+Cn(Br(65,90),""),this.wo_1=this.vo_1+Ue(46)+Cn(Br(48,57),"");var y=this;y.xo_1=new Be(this.vo_1,Yg);var p=this;p.yo_1=new Be("[",Zg);var m=this;m.zo_1=new Be(u,ey);var g=this;g.ap_1=new Be(u,ty);var _=this;_.bp_1=new Be(u,ny)}i(Ka).cp=function(e,t){var n=t;if(n=n+this.jo_1.go(e,n).io_1|0,n>=j(e)&&rt(e,n,"Variable"),vs(this,e,n,"true"))return new ft(n,!0);if(vs(this,e,n,"false"))return new ft(n,!1);if(vs(this,e,n,"null"))return new At(n);if(Wt(this.uo_1.eo_1,M(e,n))){var r=this.uo_1.go(e,n);return n=n+r.io_1|0,new fe(n-r.io_1|0,n,r.ho_1)}if(M(e,n)===45){n=n+1|0;var a=this.no_1.go(e,n);return n=n+a.io_1|0,new Ve((n-a.io_1|0)-1|0,n,-a.ho_1|0)}if(Wt(this.no_1.eo_1,M(e,n))){var o=this.no_1.go(e,n);return n=n+o.io_1|0,new Ve(n-o.io_1|0,n,o.ho_1)}var s=null;e:for(;n<j(e);){n=n+this.jo_1.go(e,n).io_1|0;var l=Xt(e,n),c=l;if(E(c==null?null:new ne(c),new ne(40))){var f=n;if(n=n+1|0,n=n+this.jo_1.go(e,n).io_1|0,s!=null){s instanceof ke&&rt(e,n,"Variable");for(var h=st();n<j(e)&&M(e,n)!==41;){var d=this.cp(e,n);h.e(d),n=n+d.a()|0;var v=Xt(e,n);E(v==null?null:new ne(v),new ne(44))&&(n=n+1|0,n=n+this.jo_1.go(e,n).io_1|0)}n=n+this.jo_1.go(e,n).io_1|0,ye(e,n,")"),n=n+1|0,s=new ke(s.tc(),n,s,h)}else{var y=this.cp(e,n);n=n+y.a()|0,n=n+this.jo_1.go(e,n).io_1|0,ye(e,n,")"),n=n+1|0;var p=n,m;return y instanceof ft?m=y.copy(f):y instanceof Ve?m=y.copy(f,p):y instanceof At?m=y.copy(f):y instanceof fe||y instanceof ke?m=y.copy(f,p):y instanceof Me?m=y.copy(f):y instanceof Ee?m=y.copy(f,p):xr(),m}}else{var g=l;if(E(g==null?null:new ne(g),new ne(46))){n=n+1|0,s instanceof Pt||rt(e,n,"Variable"),_l(this,Xt(e,n),!0)||rt(e,n,"Variable");var _;t:{var C=tc(e,n),k=0,x=j(C);if(k<x)do{var N=k;k=k+1|0;var z=M(C,N);if(!_l(Z(),z,!1)){_=ln(C,0,N);break t}}while(k<x);_=ln(C,0,j(C))}var G=O(_);s=new Ee(s.tc(),n+G.length|0,s,G),n=n+G.length|0}else if($c(this,l)){var K;t:{var re=tc(e,n),V=0,je=j(re);if(V<je)do{var Ce=V;V=V+1|0;var be=M(re,Ce);if(!$c(Z(),be)){K=ln(re,0,Ce);break t}}while(V<je);K=ln(re,0,j(re))}var ve=O(K);s=new Me(n,ve),n=n+ve.length|0}else break e}}return s==null&&rt(e,n,"Variable"),s};i(Ka).dp=function(e,t,n){var r=t;r=r+this.jo_1.go(e,r).io_1|0;var a=st();e:for(;r<j(e)&&M(e,r)!==93&&M(e,r)!==41;){var o=M(e,r);if(o===40){var s=r;if(!a.l()){var l=aa(a),c;if(l instanceof He){var f=l.value;c=f instanceof En}else c=!1;if(!c){for(var h=0;(r-1|0)>=h&&Wt(this.jo_1.eo_1,M(e,(r-1|0)-h|0));)h=h+1|0;rt(e,(r-h|0)-l.a()|0,"LogicalOperator")}}r=r+1|0;var d=this.ep(e,r);r=r+d.a()|0;var v=d;ye(e,r,")"),r=r+1|0;var y=r,p;if(v instanceof ce||v instanceof $e?p=v.copy(s,y):v instanceof _t?p=v.copy(s):xr(),a.e(p),n)break e}else if(Wt("|&",o)){var m=Og(this,e,r);r=r+m.a()|0,a.e(m),r=r+this.jo_1.go(e,r).io_1|0,ye(e,r,"(!"+this.xo_1.eo_1)}else if(o===33){var g=zg(this,e,r);r=r+g.a()|0,a.e(g),r=r+this.jo_1.go(e,r).io_1|0}else{var _=Lg(this,e,r);r=r+_.a()|0,a.e(_)}r=r+this.jo_1.go(e,r).io_1|0}if(a.l()&&rt(e,r-t|0,"Expression"),a.m()===1){var C=ia(a);return C instanceof Ut?C:$()}for(var k=Il(a),x=0;x<k.m();){var N=k.k(x),z;if(N instanceof He?z=E(N.value,Eu()):z=!1,z){var G=k.k(x-1|0),K=G instanceof Ut?G:$(),re=k.k(x+1|0),V=re instanceof Ut?re:$(),je=N instanceof He?N:$();k.p2(x,new $e(K.tc(),V.uc(),K,je,V)),k.x2(x-1|0),k.x2((x+1|0)-1|0)}else x=x+1|0}for(;k.m()>1;){var Ce=k.k(0),be=Ce instanceof Ut?Ce:$(),ve=k.k(1),xe=ve instanceof He?ve:$(),Oe=k.k(2),et=Oe instanceof Ut?Oe:$();k.p2(1,new $e(be.tc(),et.uc(),be,xe,et)),k.x2(0),k.x2(1)}var pe=ia(k);return pe instanceof Ut?pe:$()};i(Ka).ep=function(e,t,n,r){return n=n===u?!1:n,r===u?this.dp(e,t,n):r.dp.call(this,e,t,n)};var ml;function Z(){return ml==null&&new Ka,ml}function fd(e){var t=0;t=t+Z().jo_1.go(e,t).io_1|0;var n=Z().ap_1.go(e,t);t=t+n.io_1|0,t=t+Z().jo_1.go(e,t).io_1|0,t=t+Z().bp_1.go(e,t).io_1|0;var r=n.ho_1,a=st(),o=st();a.e(r.nc_1);for(var s=r.oc_1.h();s.i();){var l=s.j();a.e(l.oc_1),o.e(l.nc_1)}for(var c=$h([new Xe(ia(a))]),f=0,h=o.h();h.i();){var d=h.j(),v=f;f=v+1|0;var y=Fl(v),p=new zt(d,aa(c)),m=new Xe(a.k(y+1|0),p);c.e(m)}return new Bt(e,aa(c))}function ry(e){my(e)}function pi(e,t,n,r,a){this.booleanType=e,this.intType=t,this.stringType=n,this.contextType=r,this.nodeType=a}i(pi).fp=function(){return this.booleanType};i(pi).gp=function(){return this.intType};i(pi).hp=function(){return this.stringType};i(pi).ip=function(){return this.contextType};i(pi).jp=function(){return this.nodeType};function iy(){var e=new it(ma()),t=new it(ga()),n=new it(ya()),r=e;r.methods=[new de("toInt",t)];var a=t,o=new de("toString",n),s=[t],l=new de("toString",n,s),c=[t],f=new de("plus",t,c),h=[t],d=new de("minus",t,h),v=[t],y=new de("times",t,v),p=[t],m=new de("div",t,p),g=[t];a.methods=[o,l,f,d,y,m,new de("rem",t,g)];var _=n;_.props=[new te("length",t)];var C=n,k=[t],x=new de("get",n,k),N=[t],z=new de("at",n,N),G=[t],K=new de("substring",n,G),re=[t,t],V=new de("substring",n,re),je=new de("toInt",t),Ce=[t],be=new de("toInt",t,Ce),ve=[n],xe=new de("indexOf",t,ve),Oe=[n,t];C.methods=[x,z,K,V,je,be,xe,new de("indexOf",t,Oe)];var et=new it(new rn("context")),pe=new it(new rn("node")),bt=pe;bt.props=[new te("_id",t),new te("_pid",t),new te("id",n),new te("vid",n),new te("name",n),new te("text",n),new te("desc",n),new te("clickable",e),new te("focusable",e),new te("checkable",e),new te("checked",e),new te("editable",e),new te("longClickable",e),new te("visibleToUser",e),new te("left",t),new te("top",t),new te("right",t),new te("bottom",t),new te("width",t),new te("height",t),new te("childCount",t),new te("index",t),new te("depth",t),new te("parent",pe)];var Rt=pe,Gt=[t];Rt.methods=[new de("getChild",pe,Gt)];var In=et,A=pe.methods,oe=[t];In.methods=Ii([A,[new de("getPrev",et,oe)]]);var me=et;return me.props=Ii([pe.props,[new te("prev",et)]]),new pi(e,t,n,et,pe)}function ay(e,t,n){var r;switch(t){case"plus":var a=dn(n),o;if(a==null)return null;o=a,r=e+o|0;break;case"minus":var s=dn(n),l;if(s==null)return null;l=s,r=e-l|0;break;case"times":var c=dn(n),f;if(c==null)return null;f=c,r=D(e,f);break;case"div":var h=dn(n),d;if(h==null)d=null;else{if(h===0)return null;d=h}var v=d,y;if(v==null)return null;y=v,r=e/y|0;break;case"rem":var p=dn(n),m;if(p==null)m=null;else{if(p===0)return null;m=p}var g=m,_;if(g==null)return null;_=g,r=e%_|0;break;default:r=null;break}return r}function oy(e,t,n){return fy(e,t,n)}function sy(e,t,n){return t==="toInt"?e?1:0:null}function ly(e,t){return hy(e,t)}function uy(e,t){t=t===u?34:t;var n=yh(e.length+2|0);n.b6(t);for(var r=0;r<j(e);){var a=M(e,r);r=r+1|0;var o=a===t?t:a===10?110:a===13?114:a===9?116:a===8?98:a===92?92:null,s=o;if((s==null?null:new ne(s))!=null){var l=o;n.a6("\\"+Re(l==null?null:new ne(l)))}else{var c=Ot(a);if(0<=c&&c<=15){var f=Ot(a);n.a6("\\x0"+gc(f,16))}else if(16<=c&&c<=31){var h=Ot(a);n.a6("\\x"+gc(h,16))}else n.b6(a)}}return n.b6(t),n.toString()}function ps(e,t,n){if(su(e,t)&&xh(e,n)&&e.length>=(t.length+n.length|0)){var r=t.length,a=e.length-n.length|0;if(r<a)do{var o=r;if(r=r+1|0,Wt("\\^$.?*|+()[]{}",M(e,o)))return null}while(r<a);return O(ln(e,t.length,e.length-n.length|0))}return null}function cy(e){var t=ps(e,"(?is)",".*");if(t!=null)return dy(t);var n=ps(e,"(?is).*",".*");if(n!=null)return vy(n);var r=ps(e,"(?is).*","");return r!=null?py(r):null}function dn(e,t){t=t===u?0:t;var n=Xv(e,t);return n!=null&&typeof n=="number"?n:null}function fy(e,t,n){var r;switch(t){case"get":var a=dn(n),o;if(a==null)return null;o=a;var s=Xt(e,o);r=Re(s==null?null:new ne(s));break;case"at":var l=dn(n),c;if(l==null)return null;c=l;var f=c,h;if(f<0){var d=Xt(e,j(e)+f|0);h=Re(d==null?null:new ne(d))}else{var v=Xt(e,f);h=Re(v==null?null:new ne(v))}r=h;break;case"substring":var y;switch(n.m()){case 1:var p=dn(n),m;if(p==null)return null;m=p;var g=m;if(g<0)return null;if(g>=j(e))return"";var _=j(e);y=O(ln(e,g,_));break;case 2:var C=dn(n),k;if(C==null)return null;k=C;var x=k;if(x<0)return null;if(x>=j(e))return"";var N=dn(n,1),z;if(N==null)return null;z=N;var G=z;if(G<x)return null;var K=oa(G,j(e));y=O(ln(e,x,K));break;default:y=null;break}r=y;break;case"toInt":var re;switch(n.m()){case 0:re=Kh(O(e));break;case 1:var V=dn(n),je;if(V==null)return null;je=V;var Ce=je;if(!(2<=Ce&&Ce<=36))return null;re=gu(O(e),Ce);break;default:re=null;break}r=re;break;case"indexOf":var be;switch(n.m()){case 1:var ve=n.k(0),xe=ht(ve)?ve:null,Oe;if(xe==null)return null;Oe=xe;var et=Oe;be=Ds(e,O(et));break;case 2:var pe=n.k(0),bt=ht(pe)?pe:null,Rt;if(bt==null)return null;Rt=bt;var Gt=Rt,In=dn(n,1),A;if(In==null)return null;A=In;var oe=A;be=Ds(e,O(Gt),oe);break;default:be=null;break}r=be;break;default:r=null;break}return r}function hy(e,t){return t==="length"?j(e):null}function dy(e){return function(t){return yu(t,e,!0)}}function vy(e){return function(t){return bu(t,e,!0)}}function py(e){return function(t){return Fo(t,e,!0)}}var co;function _y(e){if(co!==null){var t=Tt(co)(e);return gy(t)}if(e.length>=4&&su(e,"(?")){var n=2,r=e.length;if(n<r)e:do{var a=n;n=n+1|0;var o=M(e,a);if(!(97<=o&&o<=122)&&!(65<=o&&o<=90))if(o===41){var s=sp(ln(e,2,a));s.e(new ne(103)),s.e(new ne(117));var l=Cn(s,""),c=a+1|0,f=e.substring(c),h=new RegExp(f,l);return yy(h)}else break e}while(n<r)}var d=X0(e);return by(d)}function my(e){co=e}function gy(e){return function(t){return e(O(t))}}function yy(e){return function(t){gh(e);var n=e.exec(O(t));return n!=null&&n.index===0&&e.lastIndex===j(t)}}function by(e){return function(t){return e.w8(t)}}i(Ut).a=wu;H(i(Ut),"binaryExpressions",function(){return this.bd()});H(i(ce),"properties",i(ce).cd);H(i(ce),"methods",i(ce).dd);H(i(va),"allSubClasses",i(va).kd);H(i(vi),"minOffset",function(){return this.yd()});H(i(vi),"maxOffset",function(){return this.zd()});H(i(pa),"allSubClasses",i(pa).kd);H(i(dt),"message",function(){return this.i7()});H(i(_a),"allSubClasses",i(_a).kd);i(He).a=wu;H(i(at),"binaryExpressions",i(at).bd);H(i(Xe),"length",i(Xe).a);H(i(ot),"cause",function(){return this.j7()});i(Ze).a=wu;H(i(Ze),"value",function(){return this.r1()});H(i(Ze),"type",function(){return this.rf()});H(i(Ze),"properties",function(){return this.cd()});H(i(Ze),"methods",function(){return this.dd()});ud=new Qo;cd=new Nu;co=null;H(U,"Companion",Uo);H(U,"Equal",Wr);H(U,"NotEqual",Gh);H(U,"Start",Fr);H(U,"NotStart",Jh);H(U,"Include",ku);H(U,"NotInclude",Qh);H(U,"End",Cu);H(U,"NotEnd",Xh);H(U,"Less",Ba);H(U,"LessEqual",Yh);H(U,"More",Zh);H(U,"MoreEqual",ed);H(U,"Matches",Ho);H(U,"NotMatches",xu);H(yt,"Companion",Vo);H(yt,"BeforeBrother",td);H(yt,"AfterBrother",nd);H(yt,"Ancestor",uo);H(yt,"Child",rd);H(yt,"Descendant",Su);H(En,"Companion",$u);H(En,"AndOperator",Eu);H(En,"OrOperator",id);H(Bt,"Companion",tg);H(Ye,"Companion",lg);H(an,"BooleanType",ma);H(an,"IntType",ga);H(an,"StringType",ya);an.ObjectType=rn;Ze.Variable=Pt;Ze.Identifier=Me;Ze.MemberExpression=Ee;Ze.CallExpression=ke;Ze.LiteralExpression=Vt;Ze.NullLiteral=At;Ze.BooleanLiteral=ft;Ze.IntLiteral=Ve;Ze.StringLiteral=fe;async function wy(e){e instanceof Promise&&(e=await e);const t={"kotlin.captureStackTrace":()=>new Error().stack,"kotlin.wasm.internal.throwJsError":(o,s,l)=>{const c=new Error;throw c.message=o,c.name=s,c.stack=l,c},"kotlin.wasm.internal.stringLength":o=>o.length,"kotlin.wasm.internal.jsExportStringToWasm":(o,s,l,c)=>{const f=new Uint16Array(r.memory.buffer,c,l);let h=0,d=s;for(;h<l;)f.set([o.charCodeAt(d)],h),d++,h++},"kotlin.wasm.internal.importStringFromWasm":(o,s,l)=>{const c=new Uint16Array(r.memory.buffer,o,s),f=String.fromCharCode.apply(null,c);return l==null?f:l+f},"kotlin.wasm.internal.getJsEmptyString":()=>"","kotlin.wasm.internal.isNullish":o=>o==null,"kotlin.wasm.internal.getJsTrue":()=>!0,"kotlin.wasm.internal.getJsFalse":()=>!1,"kotlin.random.initialSeed":()=>Math.random()*Math.pow(2,32)|0,"li.songe.matches.__convertKotlinClosureToJsClosure_((String)->Boolean)":o=>s=>r["__callFunction_((String)->Boolean)"](o,s)};let n,r;const a={js_code:t};try{if(e instanceof Response)n=(await WebAssembly.instantiateStreaming(e,a)).instance;else{const o=new WebAssembly.Module(e);n=new WebAssembly.Instance(o,a)}}catch(o){throw o instanceof WebAssembly.CompileError&&console.error(`Please make sure that your runtime environment supports the latest version of Wasm GC and Exception-Handling proposals.
|
|
272
|
+
For more information, see https://kotl.in/wasm-help
|
|
273
|
+
`),o}return r=n.exports,r._initialize(),{instance:n,exports:r}}const ky="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1721453220389/files/dist/assets/mod-BHC4TAjm.wasm",Cy=wy(fetch(ky)).then(e=>{const t=e.exports.toMatches;ry(t),to.wasmSupported=!0,console.log("use wasm matches")}).catch(e=>{to.wasmSupported=!1,console.error(e),console.log("use js matches")}),Nc=(e,t)=>{var n,r;return t=="_id"?e.id:t=="_pid"?e.pid:t=="parent"?(n=e.parent)!=null?n:null:(r=Reflect.get(e.attr,t))!=null?r:null},Ic=(e,t,n)=>{var r;if(t==="getChild"){const a=n.asJsReadonlyArrayView()[0];return(r=e.children[a])!=null?r:null}return null},_s=Ye.Companion.multiplatformBuild((e,t)=>typeof e=="string"?ly(e,t):e instanceof Qe?t==="prev"?e.prev:Nc(e.current,t):Wu(e)?Nc(e,t):null,(e,t,n)=>{if(typeof e=="number")return ay(e,t,n);if(typeof e=="boolean")return sy(e,t);if(typeof e=="string")return oy(e,t,n);if(e instanceof Qe){if(t==="getPrev"){const r=n.asJsReadonlyArrayView()[0];return Number.isSafeInteger(r)?e.getPrev(r):null}return Ic(e.current,t,n)}return Wu(e)?Ic(e,t,n):null},e=>e.attr.name,e=>e.children,e=>e.parent),xy=iy(),Sy=e=>{const t=Bt.Companion.parse(e);for(const r of t.binaryExpressions)if(r.operator.value.key=="~="&&!to.wasmSupported&&!Lc.ignoreWasmWarn){to.wasmErrorDlgVisible=!0;break}return $y(t),{s:t,targetIndex:t.targetIndex,connectKeys:t.connectKeys,canQf:t.quickFindValue.canQf,qfIdValue:t.quickFindValue.id,qfVidValue:t.quickFindValue.vid,qfTextValue:t.quickFindValue.text,canCopy:!t.binaryExpressions.some(r=>r.properties.some(a=>a.startsWith("_"))),toString:()=>t.stringify(),match:r=>{var a;return(a=t.match(r,_s))!=null?a:void 0},querySelectorAll:r=>_s.querySelectorAllArray(r,t),querySelectorTrackAll:r=>_s.querySelectorAllContextArray(r,t).map(a=>a.toArray())}},$y=e=>{const t=e.checkType(xy.contextType);if(t!=null){if(t instanceof Ct)throw new Error("不匹配表达式类型:"+t.exception.stringify(),{cause:t});if(t instanceof nn)throw new Error("不匹配操作符类型:"+t.exception.stringify(),{cause:t});if(t instanceof ct)throw new Error("不匹配参数类型:"+t.call.stringify(),{cause:t});if(t instanceof Yt)throw new Error("未知属性:"+t.value.value,{cause:t});if(t instanceof en)throw new Error("未知方法:"+t.value.value,{cause:t});if(t instanceof Zt)throw new Error("未知属性:"+t.value.property,{cause:t});if(t instanceof tn)throw new Error("未知方法:"+t.value.property,{cause:t})}};var Iu={},Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});function Ey(e){return String.fromCharCode(parseInt(e.slice(1),16))}function Ny(e){return btoa(encodeURIComponent(e).replace(/%[0-9A-F]{2}/g,Ey))}Xo.encode=Ny;function Iy(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function qy(e){return decodeURIComponent(Array.from(atob(e),Iy).join(""))}Xo.decode=qy;Object.defineProperty(Iu,"__esModule",{value:!0});const hd=Xo;function Ay(e){return hd.decode(e.replace(/\-/g,"+").replace(/_/g,"/"))}var Ty=Iu.decode=Ay;function jy(e){return hd.encode(e).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}var Py=Iu.encode=jy;const qu=Dc(),Ry=ie(()=>qu.width.value/100),My=ie(()=>Math.max(1200,qu.width.value));ie(()=>Math.max(700,qu.height.value));const Ly={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},Oy={flex:"","m-b-4px":""},zy=P("svg",{viewBox:"0 0 32 32"},[P("path",{d:"M29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29zM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9z",fill:"currentColor"})],-1),Fy=P("div",{"p-5px":""},null,-1),Dy={key:0,underline:"","decoration-1":"","m-r-4px":"",title:"查询数量"},By=["title"],Ky=P("svg",{viewBox:"0 0 24 24"},[P("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",fill:"currentColor"})],-1),Uy=P("div",{"p-l-4px":""},null,-1),Hy=P("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[P("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81c1.66 0 3-1.34 3-3s-1.34-3-3-3s-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65c0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z",fill:"currentColor"})],-1),Wy=P("div",{"p-l-4px":""},null,-1),Vy=P("svg",{viewBox:"0 0 24 24"},[P("g",{fill:"none"},[P("path",{d:"M12 1.75a3.25 3.25 0 0 1 3.245 3.066L15.25 5h5.25a.75.75 0 0 1 .102 1.493L20.5 6.5h-.796l-1.28 13.02a2.75 2.75 0 0 1-2.561 2.474l-.176.006H8.313a2.75 2.75 0 0 1-2.714-2.307l-.023-.174L4.295 6.5H3.5a.75.75 0 0 1-.743-.648L2.75 5.75a.75.75 0 0 1 .648-.743L3.5 5h5.25A3.25 3.25 0 0 1 12 1.75zm6.197 4.75H5.802l1.267 12.872a1.25 1.25 0 0 0 1.117 1.122l.127.006h7.374c.6 0 1.109-.425 1.225-1.002l.02-.126L18.196 6.5zM13.75 9.25a.75.75 0 0 1 .743.648L14.5 10v7a.75.75 0 0 1-1.493.102L13 17v-7a.75.75 0 0 1 .75-.75zm-3.5 0a.75.75 0 0 1 .743.648L11 10v7a.75.75 0 0 1-1.493.102L9.5 17v-7a.75.75 0 0 1 .75-.75zm1.75-6a1.75 1.75 0 0 0-1.744 1.606L10.25 5h3.5A1.75 1.75 0 0 0 12 3.25z",fill:"currentColor"})])],-1),Gy=P("svg",{viewBox:"0 0 24 24"},[P("path",{fill:"currentColor",d:"M5 21V8.825Q4.125 8.5 3.563 7.738T3 6q0-1.25.875-2.125T6 3q1.25 0 2.125.875T9 6q0 .975-.562 1.738T7 8.825V19h4V3h8v12.175q.875.325 1.438 1.088T21 18q0 1.25-.875 2.125T18 21q-1.25 0-2.125-.875T15 18q0-.975.563-1.75T17 15.175V5h-4v16zM6 7q.425 0 .713-.288T7 6q0-.425-.288-.712T6 5q-.425 0-.712.288T5 6q0 .425.288.713T6 7m12 12q.425 0 .713-.288T19 18q0-.425-.288-.712T18 17q-.425 0-.712.288T17 18q0 .425.288.713T18 19m0-1"})],-1),Jy=Le({__name:"SearchCard",props:{snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:Xr},onUpdateTrack:{type:Function,default:Xr}},setup(e){Oc();const t=zc(),n=e,r=nt(""),a=kl([]),o=nt([]),s=p=>{const m=N1(()=>Sy(p),_=>typeof _=="string"?_:_ instanceof Error&&_.cause instanceof dt?_.message:"非法选择器");if(a.find(_=>typeof _.selector=="object"&&_.selector.toString()==m.toString())){wn.warning("不可重复选择");return}const g=m.querySelectorTrackAll(n.rootNode);if(g.length==0){wn.success("没有选择到节点");return}return wn.success(`选择到 ${g.length} 个节点`),a.unshift({selector:m,nodes:g,key:Date.now()}),g.length},l=p=>{if(a.find(_=>typeof _.selector=="string"&&_.selector.toString()==p)){wn.warning("不可重复搜索");return}const m=[],g=[n.rootNode];for(;g.length>0;){const _=g.pop();ra(_).includes(p)&&m.push(_),g.push(...[..._.children].reverse())}if(m.length==0){wn.success("没有搜索到节点");return}return wn.success(`搜索到 ${m.length} 个节点`),a.unshift({selector:p,nodes:m,key:Date.now()}),m.length},c=()=>{const p=a[0],m=p.nodes[0];Array.isArray(m)?typeof p.selector=="object"&&Array.isArray(m)&&n.onUpdateFocusNode(m[p.selector.targetIndex]):n.onUpdateFocusNode(m);const g=new Set(a.map(C=>C.key)),_=o.value.filter(C=>g.has(C));_.push(p.key),o.value=_},f=Qu(()=>{const p=r.value.trim();if(p){if(d.value){if(!s(p))return}else if(!l(p))return;c()}});ka(async()=>{await Cy;let p=0;t.query.gkd&&(p+=s(Ty(t.query.gkd))||0),t.query.str&&(p+=l(t.query.str)||0),p>0&&c()});const h=Qu(async p=>{var z,G,K;let m=i1[n.snapshot.id];m&&(m=a1(m));const g=Ni[n.snapshot.id],_=g?Du(g):void 0,C=p.selector,k=p.nodes[0].at(-1),x=[((z=k.quickFind)!=null?z:k.idQf)&&k.attr.id&&C.qfIdValue,((G=k.quickFind)!=null?G:k.idQf)&&k.attr.vid&&C.qfVidValue,((K=k.quickFind)!=null?K:k.textQf)&&k.attr.text&&C.qfTextValue].some(Boolean),N={id:n.snapshot.appId,name:Un(n.snapshot).name,groups:[{key:1,name:`[ChangeMe]规则名称-${k1().format("YYYY-MM-DD HH:mm:ss")}`,desc:"[ChangeMe]本规则由GKD网页端审查工具生成",rules:[{quickFind:x||void 0,activityIds:n.snapshot.activityId,matches:C.toString(),exampleUrls:m,snapshotUrls:_}]}]};Hn($1.stringify(N,void 0,2))}),d=nt(!0),v=ie(()=>Ni[n.snapshot.id]),y=p=>{if(!v.value)return;const m=new URL(Du(Ni[n.snapshot.id]));typeof p.selector=="object"?m.searchParams.set("gkd",Py(p.selector.toString())):m.searchParams.set("str",p.selector.toString()),Hn(m.toString())};return(p,m)=>(se(),pt(Cl,{initialValue:{top:40,right:Math.max(315,12*I(Ry)+135),width:Math.max(480,I(My)*.3)},minWidth:300,sizeDraggable:"",class:"z-1 box-shadow-dim"},{default:T(({onRef:g})=>[P("div",Ly,[P("div",Oy,[Y(I(b1),{value:d.value,"onUpdate:value":m[0]||(m[0]=_=>d.value=_)},{default:T(()=>[Y(I(ys),null,{default:T(()=>[Y(I(Vu),{value:!1},{default:T(()=>[kt(" 字符搜索 ")]),_:1}),Y(I(Vu),{value:!0},{default:T(()=>[kt(" 选择器查询 ")]),_:1})]),_:1})]),_:1},8,["value"]),P("div",{"flex-1":"","cursor-move":"",ref:g},null,512)]),Y(I(w1),null,{default:T(()=>[Y(I(S1),{value:r.value,"onUpdate:value":m[1]||(m[1]=_=>r.value=_),placeholder:d.value?"请输入选择器":"请输入字符",onKeyup:r1(I(f),["enter"]),inputProps:{class:"gkd_code"}},null,8,["value","placeholder","onKeyup"]),Y(I(Kn),{onClick:I(f)},{icon:T(()=>[Y(I(Wn),null,{default:T(()=>[zy]),_:1})]),_:1},8,["onClick"])]),_:1}),Fy,Y(I(D1),{expandedNames:o.value,"onUpdate:expandedNames":m[2]||(m[2]=_=>o.value=_)},{default:T(()=>[(se(!0),Nt(Cr,null,na(I(a),(_,C)=>(se(),pt(I(U1),{key:_.key,name:_.key},{header:T(()=>[_.nodes.length>1?(se(),Nt("span",Dy,Ke(_.nodes.length),1)):Lt("",!0),P("span",{"break-all":"",title:typeof _.selector=="object"?"选择器":"搜索字符"},Ke(_.selector.toString()),9,By)]),"header-extra":T(()=>[typeof _.selector=="object"&&_.selector.canCopy?(se(),pt(I(Kn),{key:0,size:"small",onClick:ls(k=>I(h)(_),["stop"]),title:"复制规则"},{icon:T(()=>[Y(I(Wn),null,{default:T(()=>[Ky]),_:1})]),_:2},1032,["onClick"])):Lt("",!0),Uy,v.value?(se(),pt(I(Kn),{key:1,size:"small",title:typeof _.selector=="object"?"复制查询链接":"复制搜索链接",onClick:ls(k=>y(_),["stop"])},{icon:T(()=>[Y(I(Wn),null,{default:T(()=>[Hy]),_:1})]),_:2},1032,["title","onClick"])):Lt("",!0),Wy,Y(I(Kn),{size:"small",onClick:ls(k=>I(a).splice(C,1),["stop"]),title:"删除记录"},{icon:T(()=>[Y(I(Wn),null,{default:T(()=>[Vy]),_:1})]),_:2},1032,["onClick"])]),default:T(()=>[Y(I(ys),{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:T(()=>[typeof _.selector=="string"||_.selector.connectKeys.length===0?(se(!0),Nt(Cr,{key:0},na(_.nodes.map(k=>Array.isArray(k)?k[0]:k),k=>(se(),pt(I(Kn),{key:k.id,onClick:x=>p.onUpdateFocusNode(k),size:"small",class:Qr({"color-[#00F]":k===p.focusNode})},{default:T(()=>[kt(Ke(I(ra)(k)),1)]),_:2},1032,["onClick","class"]))),128)):(se(!0),Nt(Cr,{key:1},na(_.nodes.map(k=>Array.isArray(k)?k:[k]),(k,x)=>(se(),pt(I(M1),{key:x},{default:T(()=>[Y(I(Kn),{size:"small",onClick:N=>p.onUpdateTrack({nodes:k,selector:_.selector})},{default:T(()=>[Y(I(Wn),null,{default:T(()=>[Gy]),_:1})]),_:2},1032,["onClick"]),Y(I(Kn),{onClick:N=>p.onUpdateFocusNode(k[_.selector.targetIndex]),size:"small",class:Qr({"color-[#00F]":k[_.selector.targetIndex]===p.focusNode})},{default:T(()=>[kt(Ke(I(ra)(k[_.selector.targetIndex])),1)]),_:2},1032,["onClick","class"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["expandedNames"])])]),_:1},8,["initialValue"]))}}),qc=[],Qy=Le((e,t)=>{const n=ie(()=>e.tag||"div");return()=>{var o,s,l,c;const r=((s=(o=t.slots).default)==null?void 0:s.call(o))||qc,a=[];if(r.length>0&&a.push(r[0]),r.length>1)for(let f=1;f<r.length;f++){const h=((c=(l=t.slots).gap)==null?void 0:c.call(l,{index:f-1}))||qc;a.push(...h),a.push(r[f])}return e.virtual?a:R(n.value,e,a)}},{props:["tag","virtual"]}),Xy={flex:"","flex-col":""},Yy={flex:"","items-center":"","px-8px":""},Zy={key:0,"w-1px":"","bg-gray":"","h-12px":""},eb={href:"/",flex:"",title:"首页","mr-4px":""},tb=P("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[P("path",{d:"M16.612 2.214a1.01 1.01 0 0 0-1.242 0L1 13.419l1.243 1.572L4 13.621V26a2.004 2.004 0 0 0 2 2h20a2.004 2.004 0 0 0 2-2V13.63L29.757 15L31 13.428zM18 26h-4v-8h4zm2 0v-8a2.002 2.002 0 0 0-2-2h-4a2.002 2.002 0 0 0-2 2v8H6V12.062l10-7.79l10 7.8V26z",fill:"currentColor"})],-1),nb={flex:"","items-center":"","gap-2px":"","max-w-120px":""},rb=P("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[P("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98c0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.566.566 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98c0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73c0 .21-.02.43-.05.73l-.14 1.13l.89.7l1.08.84l-.7 1.21l-1.27-.51l-1.04-.42l-.9.68c-.43.32-.84.56-1.25.73l-1.06.43l-.16 1.13l-.2 1.35h-1.4l-.19-1.35l-.16-1.13l-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7l-1.06.43l-1.27.51l-.7-1.21l1.08-.84l.89-.7l-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13l-.89-.7l-1.08-.84l.7-1.21l1.27.51l1.04.42l.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43l.16-1.13l.2-1.35h1.39l.19 1.35l.16 1.13l1.06.43c.43.18.83.41 1.23.71l.91.7l1.06-.43l1.27-.51l.7 1.21l-1.07.85l-.89.7l.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4s-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2s2 .9 2 2s-.9 2-2 2z",fill:"currentColor"})],-1),ib=P("div",{"flex-1":""},null,-1),ab={"ml-8px":""},ob=P("div",{"h-1px":"","mt-4px":"",bg:"#efeff5"},null,-1),sb=Le({__name:"WindowCard",props:{snapshot:{},rootNode:{},focusNode:{},focusCount:{},onUpdateFocusNode:{type:Function,default:Xr}},setup(e){const t=e,n=nt([]);kr([()=>t.focusNode,()=>t.focusCount],async()=>{if(!t.focusNode)return;const h=t.focusNode.id;ea().then(async()=>{var y,p;await Fc(100),h===((y=t.focusNode)==null?void 0:y.id)&&((p=r.value)==null||p.scrollTo({key:h,behavior:"smooth",debounce:!0}))});let d=t.focusNode.parent;if(!d)return;const v=new Set(n.value);for(;d;)v.add(d.id),d=d.parent;v.size==n.value.length&&n.value.every(y=>v.has(y))||(n.value=[...v])});const r=nt(),a=(h,d)=>{var v;return d.id===((v=t.focusNode)==null?void 0:v.id)},o=h=>{var v;const d=h.option.idQf||h.option.textQf||h.option.quickFind;return{onClick:()=>{t.onUpdateFocusNode(h.option)},style:{color:h.option.id==((v=t.focusNode)==null?void 0:v.id)?"#00F":void 0,fontWeight:d?"bold":void 0}}},s=h=>ra(h.option),l=ie(()=>`${Gu(t.snapshot).manufacturer} Android ${Gu(t.snapshot).release||""}`),c=ie(()=>Un(t.snapshot).isSystem),f=ie(()=>!t.snapshot.activityId||!t.snapshot.appId?"":t.snapshot.activityId.startsWith(t.snapshot.appId)&&t.snapshot.activityId.length>t.snapshot.appId.length?t.snapshot.activityId.substring(t.snapshot.appId.length):t.snapshot.activityId);return(h,d)=>(se(),Nt("div",Xy,[P("div",Yy,[Y(I(Qy),{flex:"","flex-wrap":"","items-center":"","gap-8px":"",gkd_code:""},{gap:T(({index:v})=>[v>0?(se(),Nt("div",Zy)):Lt("",!0)]),default:T(()=>[P("a",eb,[Y(I(Kn),{text:""},{icon:T(()=>[Y(I(Wn),null,{default:T(()=>[tb]),_:1})]),_:1})]),Y(I(Bn),null,{trigger:T(()=>[P("div",{onClick:d[0]||(d[0]=v=>I(Hn)(l.value))},Ke(l.value),1)]),default:T(()=>[kt(" 设备名称 ")]),_:1}),Y(I(Bn),null,{trigger:T(()=>[P("div",{class:Qr({"opacity-50":!I(Ju)(h.snapshot).versionName})},Ke(I(Ju)(h.snapshot).versionName||"null"),3)]),default:T(()=>[kt(" GKD 版本 ")]),_:1}),P("div",nb,[c.value?(se(),pt(I(Bn),{key:0},{trigger:T(()=>[Y(I(Wn),{size:14},{default:T(()=>[rb]),_:1})]),default:T(()=>[kt(" 系统应用 ")]),_:1})):Lt("",!0),Y(I(Bn),null,{trigger:T(()=>[P("div",{onClick:d[1]||(d[1]=v=>I(Hn)(I(Un)(h.snapshot).name))},Ke(I(Un)(h.snapshot).name),1)]),default:T(()=>[kt(" 应用名称 ")]),_:1})]),Y(I(Bn),null,{trigger:T(()=>[P("div",{onClick:d[2]||(d[2]=v=>I(Hn)(I(Un)(h.snapshot).versionName))},Ke(I(Un)(h.snapshot).versionName),1)]),default:T(()=>[kt(" 版本名称 ")]),_:1}),Y(I(Bn),null,{trigger:T(()=>[P("div",{onClick:d[3]||(d[3]=v=>I(Hn)(I(Un)(h.snapshot).versionCode.toString()))},Ke(I(Un)(h.snapshot).versionCode),1)]),default:T(()=>[kt(" 版本代码 ")]),_:1}),Y(I(Bn),null,{trigger:T(()=>[P("div",{onClick:d[4]||(d[4]=v=>I(Hn)(h.snapshot.appId))},Ke(h.snapshot.appId),1)]),default:T(()=>[kt(" 应用ID ")]),_:1}),Y(I(Bn),null,{trigger:T(()=>[P("div",{onClick:d[5]||(d[5]=v=>I(Hn)(f.value)),class:Qr({"opacity-50":!f.value})},Ke(f.value||"null"),3)]),default:T(()=>[kt(" 界面ID ")]),_:1})]),_:1}),ib,P("div",ab,[Mc(h.$slots,"default")])]),ob,Y(I(pv),{ref_key:"treeRef",ref:r,virtualScroll:"",showLine:"",keyField:"id",expandedKeys:n.value,"onUpdate:expandedKeys":d[6]||(d[6]=v=>n.value=v),data:[h.rootNode],filter:a,nodeProps:o,renderLabel:s},null,8,["expandedKeys","data","filter","nodeProps","renderLabel"])]))}}),lb={bg:"#eee","px-2px":""},ub=Le({__name:"MultiFocusCard",props:{focusNode:{},focusNodes:{},onUpdateFocusNode:{type:Function,default:Xr},onClose:{type:Function,default:Xr}},setup(e){const n=document.documentElement.scrollWidth/100*25.5;return(r,a)=>(se(),pt(Cl,{initialValue:{top:215,left:n},class:"z-2 box-shadow-dim w-420px",disabled:!r.focusNodes},{default:T(({onRef:o})=>[r.focusNodes?(se(),pt(I(o1),{key:0,size:"small",closable:"",onClose:r.onClose},{header:T(()=>[P("div",{ref:o,"cursor-move":""},[kt(" 位置 "),P("span",lb,Ke(`${r.focusNodes.position.x.toFixed(0)},${r.focusNodes.position.y.toFixed()}`),1),kt(" 存在 "+Ke(r.focusNodes.nodes.length)+" 个层叠节点 ",1)],512)]),default:T(()=>[Y(I(ys),{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:T(()=>[(se(!0),Nt(Cr,null,na(r.focusNodes.nodes,s=>(se(),pt(I(Kn),{key:s.id,onClick:l=>r.onUpdateFocusNode(s),size:"small",class:Qr({"color-[#00F]":s===r.focusNode})},{default:T(()=>[kt(Ke(I(ra)(s)),1)]),_:2},1032,["onClick","class"]))),128))]),_:1})]),_:2},1032,["onClose"])):Lt("",!0)]),_:1},8,["initialValue","disabled"]))}}),cb={"h-full":"",flex:"","gap-5px":"","p-5px":"","box-border":""},fb=P("svg",{viewBox:"0 0 24 24"},[P("path",{fill:"currentColor",d:"M5 21V8.825Q4.125 8.5 3.563 7.738T3 6q0-1.25.875-2.125T6 3q1.25 0 2.125.875T9 6q0 .975-.562 1.738T7 8.825V19h4V3h8v12.175q.875.325 1.438 1.088T21 18q0 1.25-.875 2.125T18 21q-1.25 0-2.125-.875T15 18q0-.975.563-1.75T17 15.175V5h-4v16zM6 7q.425 0 .713-.288T7 6q0-.425-.288-.712T6 5q-.425 0-.712.288T5 6q0 .425.288.713T6 7m12 12q.425 0 .713-.288T19 18q0-.425-.288-.712T18 17q-.425 0-.712.288T17 18q0 .425.288.713T18 19m0-1"})],-1),hb={key:0,class:"gkd_code py-2px px-4px rounded-2px bg-[#eee]"},db=P("div",{"opacity-75":"","text-12px":""},"*为简化视图已隐藏部分节点",-1),Cb=Le({__name:"SnapshotPage",setup(e){const t=(()=>{const g=()=>u1(()=>import("./TrackGraph-CV8Gl1BE.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return setTimeout(g,3e3),s1(g)})(),n=zc(),r=Oc(),a=E1(),o=ie(()=>String(n.params.snapshotId||"")),s=ie(()=>{const g=Number(n.query.showSize||"");return!Number.isSafeInteger(g)||g<=0?2e3:g}),l=nt(""),c=nt();ka(async()=>{if(!Number.isSafeInteger(+o.value)){wn.error("非法快照ID");return}const g=await Bu.getItem(o.value);if(!g){Ku.start();try{const C=Ni[o.value]||await fetch("https://detect.gkd.li/api/getImportId?id="+o.value).then(k=>k.json());if(C&&Number.isSafeInteger(C)){r.replace({path:"/i/"+C,query:n.query});return}}finally{Ku.finish()}wn.error("快照数据缺失");return}setTimeout(()=>{const C=Ni[g.id];C&&I1(C)},1e3),h1()&&Lc.autoUploadImport&&setTimeout(async()=>{q1(g),Ni[g.id]||A1(await Bu.getItem(o.value))},1e3),g.nodes.length>s.value&&(wn.warning(`当前展示节点数量为${s.value}
|
|
274
|
+
之后的${g.nodes.length-s.value}个节点将被丢弃
|
|
275
|
+
使用showSize查询参数可以修改展示数量`),g.nodes=g.nodes.slice(0,s.value));const _=await l1.getItem(o.value);if(!_){wn.create("截屏数据缺失");return}l.value=URL.createObjectURL(new Blob([_],{type:"image/png"})),c.value=g,f.value=C1(g.nodes),a.value="快照-"+Un(g).name||g.appId,h.value||(h.value=f.value)});const f=nt(),h=nt(),d=nt(0),v=async()=>{wn.success("删除成功,即将回到首页"),await Fc(2e3),r.replace({path:"/"})},y=nt(),p=nt(!1);$i(()=>{y.value&&(p.value=!0)});const m=nt();return kr(()=>h.value,g=>{var C;const _=(C=m.value)==null?void 0:C.nodes;_&&(!g||!_.includes(g))&&(m.value=void 0)}),(g,_)=>(se(),Nt(Cr,null,[P("div",cb,[l.value&&c.value?(se(),pt(Lv,{key:0,url:l.value,snapshot:c.value,rootNode:f.value,focusNode:h.value,onUpdateFocusNode:_[0]||(_[0]=C=>{h.value=C,d.value++}),onUpdateFocusNodes:_[1]||(_[1]=C=>m.value=C)},null,8,["url","snapshot","rootNode","focusNode"])):Lt("",!0),c.value&&f.value?(se(),pt(sb,{key:1,rootNode:f.value,snapshot:c.value,focusNode:h.value,onUpdateFocusNode:_[2]||(_[2]=C=>h.value=C),focusCount:d.value,class:"flex-1"},{default:T(()=>[c.value?(se(),pt(f1,{key:0,snapshot:c.value,onDelete:v,showPreview:!1},null,8,["snapshot"])):Lt("",!0)]),_:1},8,["rootNode","snapshot","focusNode","focusCount"])):Lt("",!0)]),h.value?(se(),pt($v,{key:0,focusNode:h.value},null,8,["focusNode"])):Lt("",!0),f.value&&c.value?(se(),pt(Jy,{key:1,snapshot:c.value,rootNode:f.value,focusNode:h.value,onUpdateFocusNode:_[3]||(_[3]=C=>{h.value=C,d.value++}),onUpdateTrack:_[4]||(_[4]=C=>y.value=C)},null,8,["snapshot","rootNode","focusNode"])):Lt("",!0),Y(ub,{focusNode:h.value,focusNodes:m.value,onUpdateFocusNode:_[5]||(_[5]=C=>{h.value=C,d.value++}),onClose:_[6]||(_[6]=C=>m.value=void 0)},null,8,["focusNode","focusNodes"]),Y(I(c1),{show:p.value,"onUpdate:show":_[7]||(_[7]=C=>p.value=C),preset:"dialog",title:"选择器路径视图",class:"min-w-[calc(var(--gkd-width)*0.4)]",onAfterLeave:_[8]||(_[8]=C=>y.value=void 0)},{icon:T(()=>[Y(I(Wn),null,{default:T(()=>[fb]),_:1})]),default:T(()=>[y.value?(se(),Nt("div",hb,Ke(y.value.selector.toString()),1)):Lt("",!0),y.value?(se(),pt(I(t),{key:1,track:y.value},null,8,["track"])):Lt("",!0),db]),_:1},8,["show"])],64))}});export{Cb as default};
|
|
276
|
+
//# sourceMappingURL=SnapshotPage-CnY-ApTj.js.map
|