@gkd-kit/inspect 0.0.1720776413910 → 0.0.1720790319736
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-B3P9WeFT.js +17 -0
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-B3P9WeFT.js.map +1 -0
- package/dist/assets/DevicePage-DuGAOazv.js +49 -0
- package/dist/assets/{DevicePage-BFvR_8Wh.js.map → DevicePage-DuGAOazv.js.map} +1 -1
- package/dist/assets/HomePage-CiZZ9K2l.js +119 -0
- package/dist/assets/{HomePage-CUjEq4wJ.js.map → HomePage-CiZZ9K2l.js.map} +1 -1
- package/dist/assets/ImportPage-Cpits6pu.js +2 -0
- package/dist/assets/{ImportPage-B1fSzAGM.js.map → ImportPage-Cpits6pu.js.map} +1 -1
- package/dist/assets/PreviewSharePage-CUeNrps3.js +2 -0
- package/dist/assets/{PreviewSharePage-BXByyrPP.js.map → PreviewSharePage-CUeNrps3.js.map} +1 -1
- package/dist/assets/SnapshotPage-CpnT9MXA.js +276 -0
- package/dist/assets/SnapshotPage-CpnT9MXA.js.map +1 -0
- package/dist/assets/{TrackGraph-B3uXACFP.js → TrackGraph-LsieAbNS.js} +2 -2
- package/dist/assets/{TrackGraph-B3uXACFP.js.map → TrackGraph-LsieAbNS.js.map} +1 -1
- package/dist/assets/{_404Page-hYFtgO7G.js → _404Page-BfLfCFVH.js} +2 -2
- package/dist/assets/{_404Page-hYFtgO7G.js.map → _404Page-BfLfCFVH.js.map} +1 -1
- package/dist/assets/dayjs.min-Cg-bNh_C.js +362 -0
- package/dist/assets/{dayjs.min-uaeJZSLa.js.map → dayjs.min-Cg-bNh_C.js.map} +1 -1
- package/dist/assets/{error-CwgeWwPS.js → error-Btoipp7y.js} +2 -2
- package/dist/assets/{error-CwgeWwPS.js.map → error-Btoipp7y.js.map} +1 -1
- package/dist/assets/{export-C47xKJQv.js → export-CkzQvxmp.js} +2 -2
- package/dist/assets/{export-C47xKJQv.js.map → export-CkzQvxmp.js.map} +1 -1
- package/dist/assets/{fetch-B55TsHUD.js → fetch-CtwugztR.js} +18 -18
- package/dist/assets/{fetch-B55TsHUD.js.map → fetch-CtwugztR.js.map} +1 -1
- package/dist/assets/{import-DPo03rJh.js → import-FivSpj9W.js} +2 -2
- package/dist/assets/{import-DPo03rJh.js.map → import-FivSpj9W.js.map} +1 -1
- package/dist/assets/{index-C1QqPJ9i.js → index-BB5J1Ki3.js} +56 -57
- package/dist/assets/index-BB5J1Ki3.js.map +1 -0
- package/dist/assets/{index-D-nOjcUX.js → index-Beo7aU17.js} +31 -31
- package/dist/assets/{index-D-nOjcUX.js.map → index-Beo7aU17.js.map} +1 -1
- package/dist/assets/index-DLD-a2BR.css +1 -0
- package/dist/assets/{index-CTPN0bKj.js → index-DkqASO5t.js} +2 -2
- package/dist/assets/{index-CTPN0bKj.js.map → index-DkqASO5t.js.map} +1 -1
- package/dist/assets/{table-sMK_WHBW.js → table-Bxy-tGbK.js} +77 -77
- package/dist/assets/{table-sMK_WHBW.js.map → table-Bxy-tGbK.js.map} +1 -1
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-CpM4viw-.js +0 -2
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-CpM4viw-.js.map +0 -1
- package/dist/assets/DevicePage-BFvR_8Wh.js +0 -49
- package/dist/assets/HomePage-CUjEq4wJ.js +0 -119
- package/dist/assets/ImportPage-B1fSzAGM.js +0 -2
- package/dist/assets/PreviewSharePage-BXByyrPP.js +0 -2
- package/dist/assets/SnapshotPage-C3BFovS4.js +0 -276
- package/dist/assets/SnapshotPage-C3BFovS4.js.map +0 -1
- package/dist/assets/dayjs.min-uaeJZSLa.js +0 -362
- package/dist/assets/index-C1QqPJ9i.js.map +0 -1
- package/dist/assets/index-bjp6bkMr.css +0 -1
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1720776413910/files/dist/assets/TrackGraph-B3uXACFP.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1720776413910/files/dist/assets/index-C1QqPJ9i.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1720776413910/files/dist/assets/index-bjp6bkMr.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1720776413910/files/dist/assets/dayjs.min-uaeJZSLa.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1720776413910/files/dist/assets/index-D-nOjcUX.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1720776413910/files/dist/assets/fetch-B55TsHUD.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{h as je,v as j,a as Q,g as Tn,e as W,f as X,b as Ae,u as ka,a1 as Dd,a2 as wl,a3 as zd,a4 as Ca,d as kl,r as pt,m as le,l as ea,j as ji,q as Cl,a5 as xl,y as wt,a6 as Bd,t as ge,a7 as Ac,a8 as Tc,a9 as Pc,aa as Kd,ab as Rt,ac as ii,ad as Ud,ae as zu,af as jc,ag as Hd,ah as Bn,ai as Wd,aj as Vd,ak as Gd,c as Jd,al as Qd,am as Yd,n as ss,N as Xd,x as Zd,X as e1,an as ls,ao as t1,Q as xa,ap as n1,p as Rc,i as r1,B as $i,T as kr,aq as us,o as Yi,ar as Bu,as as Ku,at as ta,A as rt,R as Sl,au as no,a0 as kt,K as V,av as Mc,C as Mt,F as E,G as Br,P as Jt,aw as ys,ax as aa,ay as i1,I as ue,E as A,D as L,az as ra,O as Le,M as $e,aA as ro,Y as Lc,aB as Ii,H as Oc,aC as Fc,V as a1,L as yr,aD as cs,aE as o1,$ as s1,aF as Uu,aG as l1,aH as u1,_ as Hu,aI as c1,aJ as f1,J as h1}from"./index-C1QqPJ9i.js";import{_ as d1}from"./ActionCard.vue_vue_type_script_setup_true_lang-CpM4viw-.js";import{f as bs,c as wr,b as Yr,m as kn,a as Dc,l as Wu,g as v1}from"./fetch-B55TsHUD.js";import{h as Ni,C as p1,e as _1,c as m1,d as g1,V as y1,f as Vu,i as Gu,j as b1,k as Ei,l as w1,m as Ju,n as ia,b as ws,o as Qu,p as k1,N as C1,g as Un,q as x1,r as Yu,s as S1,t as $1}from"./dayjs.min-uaeJZSLa.js";import{a as zr,r as E1,N as N1,l as I1}from"./index-D-nOjcUX.js";import{u as zc,a as q1}from"./index-CTPN0bKj.js";import{e as A1,a as Xu}from"./error-CwgeWwPS.js";import{e as T1,f as P1,g as j1}from"./export-C47xKJQv.js";import"./index-CE_5kTG8.js";function Bc(e){return typeof e=="string"?`s-${e}`:`n-${e}`}const R1=je({name:"ChevronLeft",render(){return j("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j("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"}))}}),M1=je({name:"Switcher",render(){return j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},j("path",{d:"M12 8l10 8l-10 8z"}))}}),Ke="0!important",Kc="-1px!important";function Ci(e){return X(e+"-type",[W("& +",[Q("button",{},[X(e+"-type",[Ae("border",{borderLeftWidth:Ke}),Ae("state-border",{left:Kc})])])])])}function xi(e){return X(e+"-type",[W("& +",[Q("button",[X(e+"-type",[Ae("border",{borderTopWidth:Ke}),Ae("state-border",{top:Kc})])])])])}const L1=Q("button-group",`
|
|
3
|
-
flex-wrap: nowrap;
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
position: relative;
|
|
6
|
-
`,[Tn("vertical",{flexDirection:"row"},[Tn("rtl",[Q("button",[W("&:first-child:not(:last-child)",`
|
|
7
|
-
margin-right: ${Ke};
|
|
8
|
-
border-top-right-radius: ${Ke};
|
|
9
|
-
border-bottom-right-radius: ${Ke};
|
|
10
|
-
`),W("&:last-child:not(:first-child)",`
|
|
11
|
-
margin-left: ${Ke};
|
|
12
|
-
border-top-left-radius: ${Ke};
|
|
13
|
-
border-bottom-left-radius: ${Ke};
|
|
14
|
-
`),W("&:not(:first-child):not(:last-child)",`
|
|
15
|
-
margin-left: ${Ke};
|
|
16
|
-
margin-right: ${Ke};
|
|
17
|
-
border-radius: ${Ke};
|
|
18
|
-
`),Ci("default"),X("ghost",[Ci("primary"),Ci("info"),Ci("success"),Ci("warning"),Ci("error")])])])]),X("vertical",{flexDirection:"column"},[Q("button",[W("&:first-child:not(:last-child)",`
|
|
19
|
-
margin-bottom: ${Ke};
|
|
20
|
-
margin-left: ${Ke};
|
|
21
|
-
margin-right: ${Ke};
|
|
22
|
-
border-bottom-left-radius: ${Ke};
|
|
23
|
-
border-bottom-right-radius: ${Ke};
|
|
24
|
-
`),W("&:last-child:not(:first-child)",`
|
|
25
|
-
margin-top: ${Ke};
|
|
26
|
-
margin-left: ${Ke};
|
|
27
|
-
margin-right: ${Ke};
|
|
28
|
-
border-top-left-radius: ${Ke};
|
|
29
|
-
border-top-right-radius: ${Ke};
|
|
30
|
-
`),W("&:not(:first-child):not(:last-child)",`
|
|
31
|
-
margin: ${Ke};
|
|
32
|
-
border-radius: ${Ke};
|
|
33
|
-
`),xi("default"),X("ghost",[xi("primary"),xi("info"),xi("success"),xi("warning"),xi("error")])])])]),O1={size:{type:String,default:void 0},vertical:Boolean},F1=je({name:"ButtonGroup",props:O1,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=ka(e);return Dd("-button-group",L1,t),wl(zd,e),{rtlEnabled:Ca("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return j("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),D1=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"}},z1={name:"Collapse",common:kl,self:D1},B1=Q("collapse","width: 100%;",[Q("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",[Ae("header","cursor: not-allowed;",[Ae("header-main",`
|
|
41
|
-
color: var(--n-title-text-color-disabled);
|
|
42
|
-
`),Q("collapse-item-arrow",`
|
|
43
|
-
color: var(--n-arrow-color-disabled);
|
|
44
|
-
`)])]),Q("collapse-item","margin-left: 32px;"),W("&:first-child","margin-top: 0;"),W("&:first-child >",[Ae("header","padding-top: 0;")]),X("left-arrow-placement",[Ae("header",[Q("collapse-item-arrow","margin-right: 4px;")])]),X("right-arrow-placement",[Ae("header",[Q("collapse-item-arrow","margin-left: 4px;")])]),Ae("content-wrapper",[Ae("content-inner","padding-top: 16px;"),bs({duration:"0.15s"})]),X("active",[Ae("header",[X("active",[Q("collapse-item-arrow","transform: rotate(90deg);")])])]),W("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),Tn("disabled",[X("trigger-area-main",[Ae("header",[Ae("header-main","cursor: pointer;"),Q("collapse-item-arrow","cursor: default;")])]),X("trigger-area-arrow",[Ae("header",[Q("collapse-item-arrow","cursor: pointer;")])]),X("trigger-area-extra",[Ae("header",[Ae("header-extra","cursor: pointer;")])])]),Ae("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
|
-
`,[Ae("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
|
-
`),Ae("header-extra",`
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
transition: color .3s var(--n-bezier);
|
|
65
|
-
color: var(--n-text-color);
|
|
66
|
-
`),Q("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
|
-
`)])])]),K1=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=xl("n-collapse"),U1=je({name:"Collapse",props:K1,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=ka(e),o=pt(e.defaultExpandedNames),s=le(()=>e.expandedNames),l=ea(s,o),c=ji("Collapse","-collapse",B1,z1,e,n);function f(m){const{"onUpdate:expandedNames":g,onUpdateExpandedNames:p,onExpandedNamesChange:C}=e;p&&wt(p,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,p){const{accordion:C}=e,{value:k}=l;if(C)m?(f([g]),h({name:g,expanded:!0,event:p})):(f([]),h({name:g,expanded:!1,event:p}));else if(!Array.isArray(k))f([g]),h({name:g,expanded:!0,event:p});else{const x=k.slice(),I=x.findIndex(F=>g===F);~I?(x.splice(I,1),f(x),h({name:g,expanded:!1,event:p})):(x.push(g),f(x),h({name:g,expanded:!0,event:p}))}}wl(Uc,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:d});const v=Ca("Collapse",a,n),b=le(()=>{const{common:{cubicBezierEaseInOut:m},self:{titleFontWeight:g,dividerColor:p,titlePadding:C,titleTextColor:k,titleTextColorDisabled:x,textColor:I,arrowColor:F,fontSize:J,titleFontSize:K,arrowColorDisabled:re,itemMargin:G}}=c.value;return{"--n-font-size":J,"--n-bezier":m,"--n-text-color":I,"--n-divider-color":p,"--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":F,"--n-arrow-color-disabled":re,"--n-item-margin":G}}),_=r?Cl("collapse",void 0,b,e):void 0;return{rtlEnabled:v,mergedTheme:c,mergedClsPrefix:n,cssVars:r?void 0:b,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),j("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),H1=je({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Bd(ge(e,"show"))}},render(){return j(Pc,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,a=t==="show"&&n,o=j("div",{class:`${r}-collapse-item__content-wrapper`},j("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return a?Ac(o,[[Tc,e]]):e?o:null}})}}),W1={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},V1=je({name:"CollapseItem",props:W1,setup(e){const{mergedRtlRef:t}=ka(e),n=Kd(),r=Rt(()=>{var d;return(d=e.name)!==null&&d!==void 0?d:n}),a=ii(Uc);a||Ud("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:o,props:s,mergedClsPrefixRef:l,slots:c}=a,f=le(()=>{const{value:d}=o;if(Array.isArray(d)){const{value:v}=r;return!~d.findIndex(b=>b===v)}else if(d){const{value:v}=r;return v!==d}return!0});return{rtlEnabled:Ca("Collapse",t,l),collapseSlots:c,randomName:n,mergedClsPrefix:l,collapsed:f,triggerAreas:ge(s,"triggerAreas"),mergedDisplayDirective:le(()=>{const{displayDirective:d}=e;return d||s.displayDirective}),arrowPlacement:le(()=>s.arrowPlacement),handleClick(d){let v="main";Ni(d,"arrow")&&(v="arrow"),Ni(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=zu(t.header,{collapsed:r},()=>[this.title]),f=t["header-extra"]||e["header-extra"],h=t.arrow||e.arrow;return j("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}`)]},j("div",{class:[`${o}-collapse-item__header`,!r&&`${o}-collapse-item__header--active`]},j("div",{class:`${o}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&c,j("div",{class:`${o}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},zu(h,{collapsed:r},()=>{var d;return[j(jc,{clsPrefix:o},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?j(R1,null):j(p1,null)})]})),n==="left"&&c),Hd(f,{collapsed:r},d=>j("div",{class:`${o}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},d))),j(H1,{clsPrefix:o,displayDirective:a,show:!r},t))}}),G1={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},J1=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:b,fontSizeLarge:_}=e;return Object.assign(Object.assign({},G1),{fontSizeSmall:v,fontSizeMedium:b,fontSizeLarge:_,lineHeight:d,borderRadius:f,borderColor:Bn(n,t),borderColorModal:Bn(r,t),borderColorPopover:Bn(a,t),tdColor:n,tdColorModal:r,tdColorPopover:a,tdColorStriped:Bn(n,s),tdColorStripedModal:Bn(r,s),tdColorStripedPopover:Bn(a,s),thColor:Bn(n,o),thColorModal:Bn(r,o),thColorPopover:Bn(a,o),thTextColor:l,tdTextColor:c,thFontWeight:h})},Q1={name:"Table",common:kl,self:J1},Y1=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:Jd(o,{alpha:.1}),arrowColor:s,nodeTextColor:l,nodeTextColorDisabled:c,loadingColor:o,dropMarkColor:o,lineColor:n}},X1=Wd({name:"Tree",common:kl,peers:{Checkbox:Vd,Scrollbar:Gd,Empty:_1},self:Y1}),Z1=W([Q("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)")])]),Tn("bottom-bordered",[W("tr",[W("&:last-child",[W("td",`
|
|
133
|
-
border-bottom: 0px solid var(--n-merged-border-color);
|
|
134
|
-
`)])])])]),Qd(Q("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
|
-
`)])),Yd(Q("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
|
-
`)]))]),ev=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"}}),Hc=je({name:"Table",props:ev,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=ka(e),a=ji("Table","-table",Z1,Q1,e,t),o=Ca("Table",r,t),s=le(()=>{const{size:c}=e,{self:{borderColor:f,tdColor:h,tdColorModal:d,tdColorPopover:v,thColor:b,thColorModal:_,thColorPopover:m,thTextColor:g,tdTextColor:p,borderRadius:C,thFontWeight:k,lineHeight:x,borderColorModal:I,borderColorPopover:F,tdColorStriped:J,tdColorStripedModal:K,tdColorStripedPopover:re,[ss("fontSize",c)]:G,[ss("tdPadding",c)]:Re,[ss("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":p,"--n-border-color":f,"--n-border-color-modal":I,"--n-border-color-popover":F,"--n-border-radius":C,"--n-font-size":G,"--n-th-color":b,"--n-th-color-modal":_,"--n-th-color-popover":m,"--n-th-font-weight":k,"--n-th-text-color":g,"--n-line-height":x,"--n-td-padding":Re,"--n-th-padding":Ce,"--n-td-color-striped":J,"--n-td-color-striped-modal":K,"--n-td-color-striped-popover":re}}),l=n?Cl("table",le(()=>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),j("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)}}),Kn=je({name:"Th",render(){return j("th",null,this.$slots)}}),ks=je({name:"Tr",render(){return j("tr",null,this.$slots)}}),wn=je({name:"Td",render(){return j("td",null,this.$slots)}}),tv=je({name:"Thead",render(){return j("thead",null,this.$slots)}}),Wc=je({name:"Tbody",render(){return j("tbody",null,this.$slots)}}),Vc=xl("n-tree-select"),Sa=xl("n-tree"),nv=je({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(Sa,null);return()=>{const{clsPrefix:n,expanded:r,hide:a,indent:o,onClick:s}=e;return j("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},j("div",{class:`${n}-tree-node-switcher__icon`},j(Xd,null,{default:()=>{if(e.loading)return j(Zd,{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}):j(jc,{clsPrefix:n,key:"switcher"},{default:()=>j(M1,null)})}})))}}}),rv=je({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(Sa);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 j("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],style:{width:`${s}px`},"data-checkbox":!0},j(e1,{focusable:o,disabled:a,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:l}))}}),iv=je({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(Sa),o=pt(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]:b}}}=this;return j("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?j("div",{class:`${e}-tree-node-content__prefix`},s?s({option:h,selected:a,checked:r}):ls(d)):null,j("div",{class:`${e}-tree-node-content__text`},o?o({option:h,selected:a,checked:r}):ls(b)),l||v?j("div",{class:`${e}-tree-node-content__suffix`},l?l({option:h,selected:a,checked:r}):ls(v)):null)}});function Zu({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 j("div",{style:a})}function av({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function ov(e){return le(()=>e.leafOnly?"child":e.checkStrategy)}function br(e,t){return!!e.rawNode[t]}function Gc(e,t,n,r){e==null||e.forEach(a=>{n(a),Gc(a[t],t,n,r),r(a)})}function sv(e,t,n,r,a){const o=new Set,s=new Set,l=[];return Gc(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(t1&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function lv(e,t,n,r,a){const o=new Set,s=new Set,l=new Set,c=[],f=[],h=[];function d(b){b.forEach(_=>{if(h.push(_),t(n,_)){o.add(_[r]),l.add(_[r]);for(let g=h.length-2;g>=0;--g){const p=h[g][r];if(!s.has(p))s.add(p),o.has(p)&&o.delete(p);else break}}const m=_[a];m&&d(m),h.pop()})}d(e);function v(b,_){b.forEach(m=>{const g=m[r],p=o.has(g),C=s.has(g);if(!p&&!C)return;const k=m[a];if(k)if(p)_.push(m);else{c.push(g);const x=Object.assign(Object.assign({},m),{[a]:[]});_.push(x),v(k,x[a])}else _.push(m)})}return v(e,f),{filteredTree:f,highlightKeySet:l,expandedKeys:c}}const Jc=je({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=ii(Sa),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:a,droppingPositionRef:o,droppingOffsetLevelRef:s,nodePropsRef:l,indentRef:c,blockLineRef:f,checkboxPlacementRef:h,checkOnClickRef:d,disabledFieldRef:v,showLineRef:b,renderSwitcherIconRef:_,overrideDefaultNodeClickBehaviorRef:m}=t,g=Rt(()=>!!e.tmNode.rawNode.checkboxDisabled),p=Rt(()=>br(e.tmNode,v.value)),C=Rt(()=>t.disabledRef.value||p.value),k=le(()=>{const{value:T}=l;if(T)return T({option:e.tmNode.rawNode})}),x=pt(null),I={value:null};xa(()=>{I.value=x.value.$el});function F(){const T=()=>{const{tmNode:ae}=e;if(!ae.isLeaf&&!ae.shallowLoaded){if(!t.loadingKeysRef.value.has(ae.key))t.loadingKeysRef.value.add(ae.key);else return;const{onLoadRef:{value:me}}=t;me&&me(ae.rawNode).then(ze=>{ze!==!1&&t.handleSwitcherClick(ae)}).finally(()=>{t.loadingKeysRef.value.delete(ae.key)})}else t.handleSwitcherClick(ae)};_.value?setTimeout(T,0):T()}const J=Rt(()=>!p.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),K=Rt(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),re=Rt(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),G=Rt(()=>{const{value:T}=K;if(!T)return!1;const{value:ae}=d,{tmNode:me}=e;return typeof ae=="boolean"?!me.disabled&&ae:ae(e.tmNode.rawNode)});function Re(T){const{value:ae}=t.expandOnClickRef,{value:me}=J,{value:ze}=G;if(!me&&!ae&&!ze||Ni(T,"checkbox")||Ni(T,"switcher"))return;const{tmNode:Bt}=e;me&&t.handleSelect(Bt),ae&&!Bt.isLeaf&&F(),ze&&xe(!re.value)}function Ce(T){var ae,me;if(!(Ni(T,"checkbox")||Ni(T,"switcher"))){if(!C.value){const ze=m.value;let Bt=!1;if(ze)switch(ze({option:e.tmNode.rawNode})){case"toggleCheck":Bt=!0,xe(!re.value);break;case"toggleSelect":Bt=!0,t.handleSelect(e.tmNode);break;case"toggleExpand":Bt=!0,F(),Bt=!0;break;case"none":Bt=!0,Bt=!0;return}Bt||Re(T)}(me=(ae=k.value)===null||ae===void 0?void 0:ae.onClick)===null||me===void 0||me.call(ae,T)}}function be(T){f.value||Ce(T)}function ve(T){f.value&&Ce(T)}function xe(T){t.handleCheck(e.tmNode,T)}function De(T){t.handleDragStart({event:T,node:e.tmNode})}function tt(T){T.currentTarget===T.target&&t.handleDragEnter({event:T,node:e.tmNode})}function pe(T){T.preventDefault(),t.handleDragOver({event:T,node:e.tmNode})}function bt(T){t.handleDragEnd({event:T,node:e.tmNode})}function jt(T){T.currentTarget===T.target&&t.handleDragLeave({event:T,node:e.tmNode})}function Vt(T){T.preventDefault(),o.value!==null&&t.handleDrop({event:T,node:e.tmNode,dropPosition:o.value})}const qn=le(()=>{const{clsPrefix:T}=e,{value:ae}=c;if(b.value){const me=[];let ze=e.tmNode.parent;for(;ze;)ze.isLastChild?me.push(j("div",{class:`${T}-tree-node-indent`},j("div",{style:{width:`${ae}px`}}))):me.push(j("div",{class:[`${T}-tree-node-indent`,`${T}-tree-node-indent--show-line`]},j("div",{style:{width:`${ae}px`}}))),ze=ze.parent;return me.reverse()}else return n1(e.tmNode.level,j("div",{class:`${e.clsPrefix}-tree-node-indent`},j("div",{style:{width:`${ae}px`}})))});return{showDropMark:Rt(()=>{const{value:T}=a;if(!T)return;const{value:ae}=o;if(!ae)return;const{value:me}=r;if(!me)return;const{tmNode:ze}=e;return ze.key===me.key}),showDropMarkAsParent:Rt(()=>{const{value:T}=n;if(!T)return!1;const{tmNode:ae}=e,{value:me}=o;return me==="before"||me==="after"?T.key===ae.key:!1}),pending:Rt(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:Rt(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:Rt(()=>{var T;return(T=t.highlightKeySetRef.value)===null||T===void 0?void 0:T.has(e.tmNode.key)}),checked:re,indeterminate:Rt(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:Rt(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:Rt(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:C,checkable:K,mergedCheckOnClick:G,checkboxDisabled:g,selectable:J,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:b,contentInstRef:x,contentElRef:I,indentNodes:qn,handleCheck:xe,handleDrop:Vt,handleDragStart:De,handleDragEnter:tt,handleDragOver:pe,handleDragEnd:bt,handleDragLeave:jt,handleLineClick:ve,handleContentClick:be,handleSwitcherClick:F}},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:b,internalScrollable:_,nodeProps:m,checkboxPlacement:g}=this,p=c&&!v?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,C=_?Bc(e.key):void 0,k=g==="right",x=n?j(rv,{indent:h,right:k,focusable:this.checkboxFocusable,disabled:v||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return j("div",Object.assign({class:`${t}-tree-node-wrapper`},p),j("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`]:b,[`${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?j("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`]},j("div",{style:{width:`${h}px`}})):j(nv,{clsPrefix:t,expanded:this.expanded,selected:o,loading:this.loading,hide:e.isLeaf,tmNode:this.tmNode,indent:h,onClick:this.handleSwitcherClick}),k?null:x,j(iv,{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?Zu({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:h}):this.showDropMarkAsParent?Zu({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:h}):null:null,k?x:null))}});function uv({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:a,handleCheck:o,handleSelect:s,handleSwitcherClick:l}){const{value:c}=r,f=ii(Vc,null),h=f?f.pendingNodeKeyRef:pt(c.length?c[c.length-1]:null);function d(v){var b;if(!e.keyboard)return{enterBehavior:null};const{value:_}=h;let m=null;if(_===null){if((v.key==="ArrowDown"||v.key==="ArrowUp")&&v.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(v.key)&&_===null){const{value:g}=t;let p=0;for(;p<g.length;){if(!g[p].disabled){h.value=g[p].key;break}p+=1}}}else{const{value:g}=t;let p=g.findIndex(C=>C.key===_);if(!~p)return{enterBehavior:null};if(v.key==="Enter"){const C=g[p];switch(m=((b=e.overrideDefaultNodeClickBehavior)===null||b===void 0?void 0:b.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(),p+=1;p<g.length;){if(!g[p].disabled){h.value=g[p].key;break}p+=1}else if(v.key==="ArrowUp")for(v.preventDefault(),p-=1;p>=0;){if(!g[p].disabled){h.value=g[p].key;break}p-=1}else if(v.key==="ArrowLeft"){const C=g[p];if(C.isLeaf||!n.value.includes(_)){const k=C.getParent();k&&(h.value=k.key)}else l(C)}else if(v.key==="ArrowRight"){const C=g[p];if(C.isLeaf)return{enterBehavior:null};if(!n.value.includes(_))l(C);else for(p+=1;p<g.length;){if(!g[p].disabled){h.value=g[p].key;break}p+=1}}}return{enterBehavior:m}}return{pendingNodeKeyRef:h,handleKeydown:d}}const cv=je({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 j(Pc,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>j("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:Rc(this.height)}},this.nodes.map(t=>j(Jc,{clsPrefix:e,tmNode:t})))})}}),fs=r1(),fv=Q("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(">",[Q("tree-node",[W("&:first-child","margin-top: 0;")])]),Q("tree-motion-wrapper",[X("expand",[bs({duration:"0.2s"})]),X("collapse",[bs({duration:"0.2s",reverse:!0})])]),Q("tree-node-wrapper",`
|
|
156
|
-
box-sizing: border-box;
|
|
157
|
-
padding: var(--n-node-wrapper-padding);
|
|
158
|
-
`),Q("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",[Q("tree-node-content",[Ae("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),X("disabled",[Q("tree-node-content",`
|
|
165
|
-
color: var(--n-node-text-color-disabled);
|
|
166
|
-
cursor: not-allowed;
|
|
167
|
-
`)]),Tn("disabled",[X("clickable",[Q("tree-node-content",`
|
|
168
|
-
cursor: pointer;
|
|
169
|
-
`)])])]),X("block-node",[Q("tree-node-content",`
|
|
170
|
-
flex: 1;
|
|
171
|
-
min-width: 0;
|
|
172
|
-
`)]),Tn("block-line",[Q("tree-node",[Tn("disabled",[Q("tree-node-content",[W("&:hover","background: var(--n-node-color-hover);")]),X("selectable",[Q("tree-node-content",[W("&:active","background: var(--n-node-color-pressed);")])]),X("pending",[Q("tree-node-content",`
|
|
173
|
-
background: var(--n-node-color-hover);
|
|
174
|
-
`)]),X("selected",[Q("tree-node-content","background: var(--n-node-color-active);")])]),X("selected",[Q("tree-node-content","background: var(--n-node-color-active);")])])]),X("block-line",[Q("tree-node",[Tn("disabled",[W("&:hover","background: var(--n-node-color-hover);"),X("pending",`
|
|
175
|
-
background: var(--n-node-color-hover);
|
|
176
|
-
`),X("selectable",[Tn("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
|
-
`)])]),Q("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
|
-
`)])]),Tn("show-line","height: 0;")]),Q("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
|
-
`,[Ae("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
|
-
`,[Q("icon",[fs]),Q("base-loading",`
|
|
218
|
-
color: var(--n-loading-color);
|
|
219
|
-
position: absolute;
|
|
220
|
-
left: 0;
|
|
221
|
-
top: 0;
|
|
222
|
-
right: 0;
|
|
223
|
-
bottom: 0;
|
|
224
|
-
`,[fs]),Q("base-icon",[fs])]),X("hide","visibility: hidden;"),X("expanded","transform: rotate(90deg);")]),Q("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
|
-
`),Q("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;"),Ae("prefix",`
|
|
248
|
-
display: inline-flex;
|
|
249
|
-
margin-right: 8px;
|
|
250
|
-
`),Ae("text",`
|
|
251
|
-
border-bottom: 1px solid #0000;
|
|
252
|
-
transition: border-color .3s var(--n-bezier);
|
|
253
|
-
flex-grow: 1;
|
|
254
|
-
max-width: 100%;
|
|
255
|
-
`),Ae("suffix",`
|
|
256
|
-
display: inline-flex;
|
|
257
|
-
`)]),Ae("empty","margin: auto;")]);var hv=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 dv(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 vv={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},pv=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:av},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]}),vv),{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}),_v=je({name:"Tree",props:pv,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=ka(e),a=Ca("Tree",r,t),o=ji("Tree","-tree",fv,X1,e,t),s=pt(null),l=pt(null),c=pt(null);function f(){var y;return(y=c.value)===null||y===void 0?void 0:y.listElRef}function h(){var y;return(y=c.value)===null||y===void 0?void 0:y.itemsElRef}const d=le(()=>{const{filter:y}=e;if(y)return y;const{labelField:S}=e;return(q,M)=>{if(!q.length)return!0;const D=M[S];return typeof D=="string"?D.toLowerCase().includes(q.toLowerCase()):!1}}),v=le(()=>{const{pattern:y}=e;return y?!y.length||!d.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:lv(e.data,d.value,y,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),b=le(()=>m1(e.showIrrelevantNodes?e.data:v.value.filteredTree,dv(e.keyField,e.childrenField,e.disabledField,e.getChildren))),_=ii(Vc,null),m=e.internalTreeSelect?_.dataTreeMate:b,{watchProps:g}=e,p=pt([]);g!=null&&g.includes("defaultCheckedKeys")?$i(()=>{p.value=e.defaultCheckedKeys}):p.value=e.defaultCheckedKeys;const C=ge(e,"checkedKeys"),k=ea(C,p),x=le(()=>m.value.getCheckedKeys(k.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),I=ov(e),F=le(()=>x.value.checkedKeys),J=le(()=>{const{indeterminateKeys:y}=e;return y!==void 0?y:x.value.indeterminateKeys}),K=pt([]);g!=null&&g.includes("defaultSelectedKeys")?$i(()=>{K.value=e.defaultSelectedKeys}):K.value=e.defaultSelectedKeys;const re=ge(e,"selectedKeys"),G=ea(re,K),Re=pt([]),Ce=y=>{Re.value=e.defaultExpandAll?m.value.getNonLeafKeys():y===void 0?e.defaultExpandedKeys:y};g!=null&&g.includes("defaultExpandedKeys")?$i(()=>{Ce(void 0)}):$i(()=>{Ce(e.defaultExpandedKeys)});const be=ge(e,"expandedKeys"),ve=ea(be,Re),xe=le(()=>b.value.getFlattenedNodes(ve.value)),{pendingNodeKeyRef:De,handleKeydown:tt}=uv({props:e,mergedCheckedKeysRef:k,mergedSelectedKeysRef:G,fNodesRef:xe,mergedExpandedKeysRef:ve,handleCheck:is,handleSelect:as,handleSwitcherClick:Mu});let pe=null,bt=null;const jt=pt(new Set),Vt=le(()=>e.internalHighlightKeySet||v.value.highlightKeySet),qn=ea(Vt,jt),T=pt(new Set),ae=le(()=>ve.value.filter(y=>!T.value.has(y)));let me=0;const ze=pt(null),Bt=pt(null),Wa=pt(null),Va=pt(null),Ga=pt(0),pd=le(()=>{const{value:y}=Bt;return y?y.parent:null});let es=!1;kr(ge(e,"data"),()=>{es=!0,ta(()=>{es=!1}),T.value.clear(),De.value=null,Qi()},{deep:!1});let ts=!1;const ns=()=>{ts=!0,ta(()=>{ts=!1})};let Ji;kr(ge(e,"pattern"),(y,S)=>{if(e.showIrrelevantNodes)if(Ji=void 0,y){const{expandedKeys:q,highlightKeySet:M}=sv(e.data,e.pattern,e.keyField,e.childrenField,d.value);jt.value=M,ns(),mi(q,on(q),{node:null,action:"filter"})}else jt.value=new Set;else if(!y.length)Ji!==void 0&&(ns(),mi(Ji,on(Ji),{node:null,action:"filter"}));else{S.length||(Ji=ve.value);const{expandedKeys:q}=v.value;q!==void 0&&(ns(),mi(q,on(q),{node:null,action:"filter"}))}});function ju(y){return hv(this,void 0,void 0,function*(){const{onLoad:S}=e;if(!S){yield Promise.resolve();return}const{value:q}=T;if(!q.has(y.key)){q.add(y.key);try{(yield S(y.rawNode))===!1&&gi()}catch(M){console.error(M),gi()}q.delete(y.key)}})}$i(()=>{var y;const{value:S}=b;if(!S)return;const{getNode:q}=S;(y=ve.value)===null||y===void 0||y.forEach(M=>{const D=q(M);D&&!D.shallowLoaded&&ju(D)})});const _i=pt(!1),gr=pt([]);kr(ae,(y,S)=>{if(!e.animated||ts){ta(Ja);return}if(es)return;const q=Yi(o.value.self.nodeHeight),M=new Set(S);let D=null,Be=null;for(const Se of y)if(!M.has(Se)){if(D!==null)return;D=Se}const Gt=new Set(y);for(const Se of S)if(!Gt.has(Se)){if(Be!==null)return;Be=Se}if(D===null&&Be===null)return;const{virtualScroll:sn}=e,bi=(sn?c.value.listElRef:s.value).offsetHeight,wi=Math.ceil(bi/q)+1;let fn;if(D!==null&&(fn=S),Be!==null&&(fn===void 0?fn=y:fn=fn.filter(Se=>Se!==Be)),_i.value=!0,gr.value=b.value.getFlattenedNodes(fn),D!==null){const Se=gr.value.findIndex(hn=>hn.key===D);if(~Se){const hn=gr.value[Se].children;if(hn){const bn=Vu(hn,y);gr.value.splice(Se+1,0,{__motion:!0,mode:"expand",height:sn?bn.length*q:void 0,nodes:sn?bn.slice(0,wi):bn})}}}if(Be!==null){const Se=gr.value.findIndex(hn=>hn.key===Be);if(~Se){const hn=gr.value[Se].children;if(!hn)return;_i.value=!0;const bn=Vu(hn,y);gr.value.splice(Se+1,0,{__motion:!0,mode:"collapse",height:sn?bn.length*q:void 0,nodes:sn?bn.slice(0,wi):bn})}}});const _d=le(()=>g1(xe.value)),md=le(()=>_i.value?gr.value:xe.value);function Ja(){const{value:y}=l;y&&y.sync()}function gd(){_i.value=!1,e.virtualScroll&&ta(Ja)}function on(y){const{getNode:S}=m.value;return y.map(q=>{var M;return((M=S(q))===null||M===void 0?void 0:M.rawNode)||null})}function mi(y,S,q){const{"onUpdate:expandedKeys":M,onUpdateExpandedKeys:D}=e;Re.value=y,M&&wt(M,y,S,q),D&&wt(D,y,S,q)}function Ru(y,S,q){const{"onUpdate:checkedKeys":M,onUpdateCheckedKeys:D}=e;p.value=y,D&&wt(D,y,S,q),M&&wt(M,y,S,q)}function yd(y,S){const{"onUpdate:indeterminateKeys":q,onUpdateIndeterminateKeys:M}=e;q&&wt(q,y,S),M&&wt(M,y,S)}function rs(y,S,q){const{"onUpdate:selectedKeys":M,onUpdateSelectedKeys:D}=e;K.value=y,D&&wt(D,y,S,q),M&&wt(M,y,S,q)}function bd(y){const{onDragenter:S}=e;S&&wt(S,y)}function wd(y){const{onDragleave:S}=e;S&&wt(S,y)}function kd(y){const{onDragend:S}=e;S&&wt(S,y)}function Cd(y){const{onDragstart:S}=e;S&&wt(S,y)}function xd(y){const{onDragover:S}=e;S&&wt(S,y)}function Sd(y){const{onDrop:S}=e;S&&wt(S,y)}function Qi(){$d(),Dr()}function $d(){ze.value=null}function Dr(){Ga.value=0,Bt.value=null,Wa.value=null,Va.value=null,gi()}function gi(){pe&&(window.clearTimeout(pe),pe=null),bt=null}function is(y,S){if(e.disabled||br(y,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){as(y);return}const q=S?"check":"uncheck",{checkedKeys:M,indeterminateKeys:D}=m.value[q](y.key,F.value,{cascade:e.cascade,checkStrategy:I.value,allowNotLoaded:e.allowCheckingNotLoaded});Ru(M,on(M),{node:y.rawNode,action:q}),yd(D,on(D))}function Ed(y){if(e.disabled)return;const{key:S}=y,{value:q}=ve,M=q.findIndex(D=>D===S);if(~M){const D=Array.from(q);D.splice(M,1),mi(D,on(D),{node:y.rawNode,action:"collapse"})}else{const D=b.value.getNode(S);if(!D||D.isLeaf)return;let Be;if(e.accordion){const Gt=new Set(y.siblings.map(({key:sn})=>sn));Be=q.filter(sn=>!Gt.has(sn)),Be.push(S)}else Be=q.concat(S);mi(Be,on(Be),{node:y.rawNode,action:"expand"})}}function Mu(y){e.disabled||_i.value||Ed(y)}function as(y){if(!(e.disabled||!e.selectable)){if(De.value=y.key,e.internalUnifySelectCheck){const{value:{checkedKeys:S,indeterminateKeys:q}}=x;e.multiple?is(y,!(S.includes(y.key)||q.includes(y.key))):Ru([y.key],on([y.key]),{node:y.rawNode,action:"check"})}if(e.multiple){const S=Array.from(G.value),q=S.findIndex(M=>M===y.key);~q?e.cancelable&&S.splice(q,1):~q||S.push(y.key),rs(S,on(S),{node:y.rawNode,action:~q?"unselect":"select"})}else G.value.includes(y.key)?e.cancelable&&rs([],[],{node:y.rawNode,action:"unselect"}):rs([y.key],on([y.key]),{node:y.rawNode,action:"select"})}}function Nd(y){if(pe&&(window.clearTimeout(pe),pe=null),y.isLeaf)return;bt=y.key;const S=()=>{if(bt!==y.key)return;const{value:q}=Wa;if(q&&q.key===y.key&&!ve.value.includes(y.key)){const M=ve.value.concat(y.key);mi(M,on(M),{node:y.rawNode,action:"expand"})}pe=null,bt=null};y.shallowLoaded?pe=window.setTimeout(()=>{S()},1e3):pe=window.setTimeout(()=>{ju(y).then(()=>{S()})},1e3)}function Id({event:y,node:S}){!e.draggable||e.disabled||br(S,e.disabledField)||(Lu({event:y,node:S},!1),bd({event:y,node:S.rawNode}))}function qd({event:y,node:S}){!e.draggable||e.disabled||br(S,e.disabledField)||wd({event:y,node:S.rawNode})}function Ad(y){y.target===y.currentTarget&&Dr()}function Td({event:y,node:S}){Qi(),!(!e.draggable||e.disabled||br(S,e.disabledField))&&kd({event:y,node:S.rawNode})}function Pd({event:y,node:S}){!e.draggable||e.disabled||br(S,e.disabledField)||(me=y.clientX,ze.value=S,Cd({event:y,node:S.rawNode}))}function Lu({event:y,node:S},q=!0){var M;if(!e.draggable||e.disabled||br(S,e.disabledField))return;const{value:D}=ze;if(!D)return;const{allowDrop:Be,indent:Gt}=e;q&&xd({event:y,node:S.rawNode});const sn=y.currentTarget,{height:bi,top:wi}=sn.getBoundingClientRect(),fn=y.clientY-wi;let Se;Be({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}=_d;let we,$t;const ki=bn(S.key);if(ki===null){Dr();return}let Qa=!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)&&(Qa=!0,$t==="after"&&(we=xe.value[ki+1],we?$t="before":(we=S,$t="inside")));const Fu=we;if(Wa.value=Fu,!Qa&&D.isLastChild&&D.key===we.key&&($t="after"),$t==="after"){let Du=me-y.clientX,os=0;for(;Du>=Gt/2&&we.parent!==null&&we.isLastChild&&os<1;)Du-=Gt,os+=1,we=we.parent;Ga.value=os}else Ga.value=0;if((D.contains(we)||$t==="inside"&&((M=D.parent)===null||M===void 0?void 0:M.key)===we.key)&&!(D.key===Fu.key&&D.key===we.key)){Dr();return}if(!Be({node:we.rawNode,dropPosition:$t,phase:"drag"})){Dr();return}if(D.key===we.key)gi();else if(bt!==we.key)if($t==="inside"){if(e.expandOnDragenter){if(Nd(we),!we.shallowLoaded&&bt!==we.key){Qi();return}}else if(!we.shallowLoaded){Qi();return}}else gi();else $t!=="inside"&&gi();Va.value=$t,Bt.value=we}function jd({event:y,node:S,dropPosition:q}){if(!e.draggable||e.disabled||br(S,e.disabledField))return;const{value:M}=ze,{value:D}=Bt,{value:Be}=Va;if(!(!M||!D||!Be)&&e.allowDrop({node:D.rawNode,dropPosition:Be,phase:"drag"})&&M.key!==D.key){if(Be==="before"){const Gt=M.getNext({includeDisabled:!0});if(Gt&&Gt.key===D.key){Dr();return}}if(Be==="after"){const Gt=M.getPrev({includeDisabled:!0});if(Gt&&Gt.key===D.key){Dr();return}}Sd({event:y,node:D.rawNode,dragNode:M.rawNode,dropPosition:q}),Qi()}}function Rd(){Ja()}function Md(){Ja()}function Ld(y){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(y.relatedTarget))return;De.value=null}else{const{value:q}=s;if(q!=null&&q.contains(y.relatedTarget))return;De.value=null}}kr(De,y=>{var S,q;if(y!==null){if(e.virtualScroll)(S=c.value)===null||S===void 0||S.scrollTo({key:y});else if(e.internalScrollable){const{value:M}=l;if(M===null)return;const D=(q=M.contentRef)===null||q===void 0?void 0:q.querySelector(`[data-key="${Bc(y)}"]`);if(!D)return;M.scrollTo({el:D})}}}),wl(Sa,{loadingKeysRef:T,highlightKeySetRef:qn,displayedCheckedKeysRef:F,displayedIndeterminateKeysRef:J,mergedSelectedKeysRef:G,mergedExpandedKeysRef:ve,mergedThemeRef:o,mergedCheckStrategyRef:I,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:Wa,droppingNodeParentRef:pd,draggingNodeRef:ze,droppingPositionRef:Va,droppingOffsetLevelRef:Ga,fNodesRef:xe,pendingNodeKeyRef:De,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:Mu,handleDragEnd:Td,handleDragEnter:Id,handleDragLeave:qd,handleDragStart:Pd,handleDrop:jd,handleDragOver:Lu,handleSelect:as,handleCheck:is});function Od(y,S){var q,M;typeof y=="number"?(q=c.value)===null||q===void 0||q.scrollTo(y,S||0):(M=c.value)===null||M===void 0||M.scrollTo(y)}const Fd={handleKeydown:tt,scrollTo:Od,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:y}=x.value;return{keys:y,options:on(y)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:y}=x.value;return{keys:y,options:on(y)}}},Ou=le(()=>{const{common:{cubicBezierEaseInOut:y},self:{fontSize:S,nodeBorderRadius:q,nodeColorHover:M,nodeColorPressed:D,nodeColorActive:Be,arrowColor:Gt,loadingColor:sn,nodeTextColor:bi,nodeTextColorDisabled:wi,dropMarkColor:fn,nodeWrapperPadding:Se,nodeHeight:hn,lineHeight:bn,lineColor:we}}=o.value,$t=us(Se,"top"),ki=us(Se,"bottom"),Qa=Rc(Yi(hn)-Yi($t)-Yi(ki));return{"--n-arrow-color":Gt,"--n-loading-color":sn,"--n-bezier":y,"--n-font-size":S,"--n-node-border-radius":q,"--n-node-color-active":Be,"--n-node-color-hover":M,"--n-node-color-pressed":D,"--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":Qa,"--n-line-height":bn,"--n-line-color":we}}),yi=n?Cl("tree",void 0,Ou,e):void 0;return Object.assign(Object.assign({},Fd),{mergedClsPrefix:t,mergedTheme:o,rtlEnabled:a,fNodes:md,aip:_i,selfElRef:s,virtualListInstRef:c,scrollbarInstRef:l,handleFocusout:Ld,handleDragLeaveTree:Ad,handleScroll:Rd,getScrollContainer:f,getScrollContent:h,handleAfterEnter:gd,handleResize:Md,cssVars:n?void 0:Ou,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:b}=this,_=c&&!l,m=_?"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`],p=k=>"__motion"in k?j(cv,{height:k.height,nodes:k.nodes,clsPrefix:r,mode:k.mode,onAfterEnter:this.handleAfterEnter}):j(Jc,{key:k.key,tmNode:k,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:k,internalScrollablePadding:x}=this,I=us(x||"0");return j(Ku,Object.assign({},b,{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:_?h:void 0,onFocusout:_?v:void 0}),{default:()=>{var F;return(F=this.onRender)===null||F===void 0||F.call(this),t.length?j(y1,{ref:"virtualListInstRef",items:this.fNodes,itemSize:Yi(k.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:I.top,paddingBottom:I.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:I.left,paddingRight:I.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:J})=>p(J)}):Bu(this.$slots.empty,()=>[j(Gu,{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?j(Ku,Object.assign({},b,{class:g,tabindex:m,onKeydown:_?h:void 0,onFocusout:_?v:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>j("div",{onDragleave:s?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(p))}):j("div",{class:g,tabindex:m,ref:"selfElRef",style:this.cssVars,onKeydown:_?h:void 0,onFocusout:_?v:void 0,onDragleave:s?this.handleDragLeaveTree:void 0},t.length?t.map(p):Bu(this.$slots.empty,()=>[j(Gu,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),ec=e=>{const t=rt(),n={x:0,y:0},r=Sl({...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:b}=t.value.getBoundingClientRect();(b<0||v>window.innerWidth||d<0||h>window.innerHeight)&&(r.x=n.x,r.y=n.y)};return xa(()=>{window.addEventListener("pointermove",l),window.addEventListener("pointerup",f),document.addEventListener("selectstart",o)}),no(()=>{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))}),no(()=>{t.value&&(t.value.removeEventListener("pointerdown",s),t.value.removeEventListener("pointerup",c))}),{target:t,offset:r}},tc="transition-top,bottom,left,right-500",$l=je({__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=ec(x=>{const I=(t.initialValue.width||0)+s.offset.x+-o.offset.x-x;return(t.minWidth||0)<I}),s=ec(x=>{const I=(t.initialValue.width||0)+s.offset.x+x-o.offset.x;return(t.minWidth||0)<I}),l=Sl({...a}),c=le(()=>{const x=(t.initialValue.width||0)+s.offset.x-o.offset.x,I=t.initialValue.width?`width:${x}px;`:"",F=r?`top:${l.y}px;`:`bottom:${l.y}px;`;return n?`left:${l.x-o.offset.x}px;`+F+I:`right:${l.x-s.offset.x}px;`+F+I});let f;const h=x=>{f=x,a.x=l.x,a.y=l.y},d=x=>{if(!_.value||!f)return;const I=x.clientX-f.clientX,F=x.clientY-f.clientY;l.x=a.x+(n?I:-I),l.y=a.y+(r?F:-F)},v=()=>{f=void 0},b=rt(),_=rt(),m=x=>{f&&x.preventDefault()},g=()=>{if(!_.value||!f)return;v();const{top:x,bottom:I,left:F,right:J}=_.value.getBoundingClientRect();if(J<0||F>window.innerWidth||I<0||x>window.innerHeight){l.x=a.x,l.y=a.y;const K=b.value;K&&(K.classList.add(tc),setTimeout(()=>{K.classList.remove(tc)},550))}};xa(()=>{window.addEventListener("pointermove",d),window.addEventListener("pointerup",g),document.addEventListener("selectstart",m)}),no(()=>{window.removeEventListener("pointermove",d),window.removeEventListener("pointerup",g),document.removeEventListener("selectstart",m),v()}),kr(_,(x,I)=>{x&&(x.addEventListener("pointerdown",h),x.addEventListener("pointerup",v)),I&&(I.removeEventListener("pointerdown",h),I.removeEventListener("pointerup",v))}),no(()=>{_.value&&(_.value.removeEventListener("pointerdown",h),_.value.removeEventListener("pointerup",v))});const p=x=>{x instanceof HTMLElement?_.value=x:_.value=void 0};return(x,I)=>(ue(),kt(i1,{to:"#app",disabled:x.disabled},[V("div",{fixed:"",ref_key:"box",ref:b,style:ys([x.$attrs.style,c.value]),class:aa(x.$attrs.class)},[Mc(x.$slots,"default",{onRef:p}),x.sizeDraggable?(ue(),Mt(Br,{key:0},[V("div",{ref:E(o).target,absolute:"","right-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512),V("div",{ref:E(s).target,absolute:"","left-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512)],64)):Jt("",!0)],6)],8,["disabled"]))}}),mv=V("th",null,"Name",-1),gv=V("th",null,"Value",-1),yv=[mv,gv],bv={key:0,flex:"","justify-between":"","items-center":""},wv={key:0,viewBox:"0 0 28 28"},kv=V("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),Cv=[kv],xv={key:1,viewBox:"0 0 1024 1024"},Sv=V("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),$v=[Sv],Ev=je({__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=le(()=>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)=>(ue(),kt($l,{initialValue:{top:75,right:10},class:"box-shadow-dim"},{default:A(({onRef:l})=>[L(E(Hc),{size:"small",striped:"",singleLine:!1,class:"gkd_code",themeOverrides:{thPaddingSmall:"1px 3px",tdPaddingSmall:"1px 3px"}},{default:A(()=>[V("thead",null,[V("tr",{ref:l,"cursor-move":""},yv,512)]),L(E(Wc),null,{default:A(()=>[(ue(!0),Mt(Br,null,ra(a.value,c=>(ue(),kt(E(ks),{key:c.name},{default:A(()=>[L(E(wn),{onClick:f=>E(wr)(`${c.name}=${c.desc}`)},{default:A(()=>[c.tip?(ue(),Mt("div",bv,[V("div",null,Le(c.name),1),L(E(b1),null,{trigger:A(()=>[L(E(zr),{size:"16"},{default:A(()=>[c.tip.type=="info"?(ue(),Mt("svg",wv,Cv)):c.tip.type=="quickFind"?(ue(),Mt("svg",xv,$v)):Jt("",!0)]),_:2},1024)]),default:A(()=>[$e(" "+Le(c.tip.desc),1)]),_:2},1024)])):(ue(),Mt(Br,{key:1},[$e(Le(c.name),1)],64))]),_:2},1032,["onClick"]),L(E(wn),null,{default:A(()=>[L(E(Ei),{class:aa(["w-[calc(var(--gkd-width)*0.12)]",{"text-left direction-rtl":c.name=="id"}])},{default:A(()=>[$e(Le(c.desc),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:2},1024)]),_:1}))}}),Nv={flex:"","flex-col":"",relative:"","h-full":""},Iv=["src"],qv=V("div",{absolute:"","left-0":"","top-0":"","bottom-0":"","right-0":"","b-solid":"","b-1px":"","b-red":""},null,-1),Av=[qv],Tv={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":""},Pv=["src"],jv={absolute:"","left-2px":"","top-2px":"","p-1px":"","z-1":"","text-13px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]"},Rv={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":""},Mv=V("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),Lv=V("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),Ov=je({__name:"ScreenshotCard",props:{url:{},snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:Yr},onUpdateFocusNodes:{type:Function,default:Yr}},setup(e){const t=e,n=zc(),r=E1(le(()=>(n.width.value,n.height.value,Math.random())),300),a=rt(),o=rt(0),s=_=>{if(!t.rootNode)return;const m=a.value;if(!m)return;const g=m.getBoundingClientRect(),p=g.width/m.naturalWidth*m.naturalHeight,C=(g.height-p)/2,k=(_.clientX-g.left)/g.width*m.naturalWidth,x=(_.clientY-g.top-C)/p*m.naturalHeight,I=w1(t.snapshot.nodes,k,x);I.length!==0&&(I.length===1?t.onUpdateFocusNode(I[0]):(t.onUpdateFocusNode(I[0]),t.onUpdateFocusNodes({nodes:I,position:{x:k,y:x}})))},l=_=>`${_*100}%`,c=le(()=>{var C;r.value,o.value;const _=a.value,m=(C=t.focusNode)==null?void 0:C.attr;if(!t.focusNode||!_||!m)return"";const g=_.getBoundingClientRect(),p=g.width/_.naturalWidth*_.naturalHeight;return{left:`calc(${l(m.left/_.naturalWidth)} - 2px)`,width:`calc(${l((m.right-m.left)/_.naturalWidth)} + 2px)`,top:`calc(${l((m.top/_.naturalHeight*p+(g.height-p)/2)/g.height)} - 2px)`,height:`calc(${l((m.bottom-m.top)/_.naturalHeight*p/g.height)} + 2px)`}}),f=rt(!1),h=rt({ox:0,oy:0}),d=le(()=>{var p;const _=(p=t.focusNode)==null?void 0:p.attr;if(!_)return;const{ox:m,oy:g}=h.value;return{left:m-_.left,right:_.right-m,top:g-_.top,bottom:_.bottom-g}}),v=_=>{const m=a.value;if(!m)return;const g=m.getBoundingClientRect(),p=g.width/m.naturalWidth*m.naturalHeight,C=(g.height-p)/2,k=(_.clientX-g.left)/g.width*m.naturalWidth,x=(_.clientY-g.top-C)/p*m.naturalHeight;h.value={ox:k,oy:x},b.value={left:-(k-.1*m.naturalWidth)/m.naturalWidth*1e3+"px",top:-(x-.1*m.naturalWidth)/m.naturalWidth*1e3+"px"}},b=rt({left:"0",top:"0"});return(_,m)=>(ue(),Mt("div",Nv,[V("img",{ref_key:"imgRef",ref:a,src:_.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,Iv),V("div",{style:ys(c.value),absolute:"","pointer-events-none":"","transition-all-300":"","b-1px":"","b-blue":"","b-solid":""},Av,4),Ac(V("div",Tv,[V("img",{src:_.url,"object-contain":"",absolute:"","left-0":"","top-0":"",style:ys(b.value),"w-1000px":""},null,12,Pv),V("div",jv,Le(`${h.value.ox.toFixed(0)},${h.value.oy.toFixed(0)}`),1),d.value?(ue(),Mt("div",Rv,[V("div",null,Le(d.value.top.toFixed(0)),1),V("div",null,Le(d.value.left.toFixed(0)+","+d.value.right.toFixed(0)),1),V("div",null,Le(d.value.bottom.toFixed(0)),1)])):Jt("",!0),Mv,Lv],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,Fv=ArrayBuffer.isView,Qc=Math.clz32;Ft(El,"CharSequence");Ft($a,"Comparable");w(io,"Number");ie(Nl,"Unit");w(Al);w(jl);gt(of);w(ne,"Char",u,u,[$a]);Ft(Ie,"Collection");function Yc(){return Ep(this)}Ft(Fn,"List",u,u,[Ie]);Ft(or,"Entry");Ft(sr,"Map");Ft(Rr,"Set",u,u,[Ie]);gt(pp);w(lr,"Enum",u,u,[$a]);gt(sf);w(he,"Long",u,io,[io,$a]);w(po);w(Es,"JsArrayView",Es,Array);ie(Ff,"Digit");w(cr,"AbstractCollection",u,u,[Ie]);w(Rn,"AbstractMutableCollection",u,cr,[cr,Ie]);w(ai,"IteratorImpl");w(Ia,"ListIteratorImpl",u,ai);w(mt,"AbstractMutableList",u,Rn,[Rn,Fn,Ie]);w(mr,"SubList",u,mt);w(_n,"AbstractMap",u,u,[sr]);w(lo,"AbstractMutableMap",u,_n,[_n,sr]);w(ur,"AbstractMutableSet",u,Rn,[Rn,Rr,Ie]);gt(Kf);w(Je,"ArrayList",lt,mt,[mt,Fn,Ie]);w(Mn,"HashMap",A_,lo,[lo,sr]);w(mn,"HashMapEntrySetBase",u,ur,[Rr,Ie,ur]);w(Hl,"HashMapEntrySet",u,mn);w($n,"HashSet",j_,ur,[ur,Rr,Ie]);gt(Zf);w(Mr,"Itr");w(Xl,"KeysItr",u,Mr);w(Ta,"EntriesItr",u,Mr);w(oi,"EntryRef",u,u,[or]);function Dv(e){var t;e:{var n;if(ee(e,Ie)?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,or)?s=this.e6(o):s=!1,!s){t=!1;break e}}t=!0}return t}Ft(eh,"InternalMap");w(xt,"InternalHashMap",Vl,u,[eh]);w(Pa,"LinkedHashMap",th,Mn,[Mn,sr]);w(Lr,"LinkedHashSet",Zl,$n,[$n,Rr,Ie]);Ft(Vi,"Continuation");w(da,"InterceptedCoroutine",u,u,[Vi]);w(Tt,"CoroutineImpl",u,da,[da,Vi]);ie(Oi,"CompletedContinuation",u,u,[Vi]);w(eu,u,u,Tt);w(gn,"Exception",ih,Error);w(Dt,"RuntimeException",fh,gn);w(si,"IllegalArgumentException",sh,Dt);w(Fi,"IndexOutOfBoundsException",tu,Dt);w(Di,"IllegalStateException",uh,Dt);w(zi,"UnsupportedOperationException",li,Dt);w(Bi,"NoSuchElementException",St,Dt);w(Ki,"Error",dh,Error);w(ci,"NumberFormatException",vh,si);w(Ui,"ArithmeticException",_h,Dt);w(wo,"ConcurrentModificationException",nu,Dt);w(ko,"NullPointerException",ru,Dt);w(Co,"NoWhenBranchMatchedException",iu,Dt);w(xo,"ClassCastException",au,Dt);Ft(pa,"KClass");w(un,"KClassImpl",u,u,[pa]);ie(fi,"NothingKClassImpl",u,un);w(Pi,"ErrorKClass",Pi,u,[pa]);w(Me,"PrimitiveKClassImpl",u,un);w(uo,"SimpleKClassImpl",u,un);Ft(So,"KProperty1");Ft(ou,"KProperty0");ie(Qe,"PrimitiveClasses");w(yn,"StringBuilder",lu,u,[El]);gt(Sh);w(Ra,"Regex");w(uu,"sam$kotlin_Comparator$0");gt(Or);gt(am);gt(Eo);w(Dn,"ArrayAsCollection",u,u,[Ie]);ie(ut,"EmptyList",u,u,[Fn]);ie(hi,"EmptyIterator");w(Hr,"IndexedValue");w(Io,"IntIterator");w(Oa,"CharIterator");w(fr,"SequenceScope",u,u,u,[1]);w(hr,"SequenceBuilderIterator",hr,fr,[fr,Vi],[1]);w(du);w(qo);w(vu,"TransformingSequence");w(Ao);w(pu,"FilteringSequence");w(To);w(_u,"IndexingSequence");Ft(di,"DropTakeSequence");w(Po);w(Xr,"TakeSequence",u,u,[di]);w(jo);w(mu,"TakeWhileSequence");w(Ro);w(Wr,"DropSequence",u,u,[di]);w(Mo);w(gu,"DropWhileSequence");ie(Da,"EmptySequence",u,u,[di]);w(Oo);w(Pr,"SubSequence",u,u,[di]);ie(zn,"EmptySet",u,u,[Rr]);ie(Mh,"Key");Ft(wm,"ContinuationInterceptor");ie(za,"EmptyCoroutineContext");w(eo,"CoroutineSingletons",u,lr);gt(Dh);w(On,"IntProgression");w(jr,"IntRange",u,On);gt(zh);w(pr,"CharProgression");w(vr,"CharRange",u,pr);w(Do,"IntProgressionIterator",u,Io);w(zo,"CharProgressionIterator",u,Oa);gt(bu);gt(Em);w(Ka,"UnsafeLazyImpl");ie(Jh,"UNINITIALIZED_VALUE");gt(Rm);w(_r,"Failure");w(Hs,"NotImplementedError",Hs,Ki);w(Sn,"Pair");function El(){}function $a(){}function io(){}function Nl(){}i(Nl).toString=function(){return"kotlin.Unit"};var se;function Il(e){switch(e.length){case 0:return La();case 1:return yo(e[0]);default:return ql(e)}}function Cs(e,t){return Xc(e,t)>=0}function zv(e){return e.length===0?Wi():new Al(e)}function ql(e){return qa(hm(e))}function Bv(e){var t;switch(e.length){case 0:throw ja("Array is empty.");case 1:t=e[0];break;default:throw Ve("Array has more than one element.")}return t}function Xc(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,N(t,e[l]))return l}while(o<=s)}return-1}function Kv(e){return e.length-1|0}function Uv(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,N(t,e[o]))return o}while(0<=a)}return-1}function Hv(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,lu(),t,n,r,a,o,s).toString()}function Wv(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 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=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)Kh(t,d,l);else break e}return o>=0&&c>o&&t.f(s),t.f(a),t}function Al(e){this.g_1=e}i(Al).h=function(){return uf(this.g_1)};function xn(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,Gv(e,lu(),t,n,r,a,o,s).toString()}function Gv(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)Kh(t,h,l);else break e}return o>=0&&c>o&&t.f(s),t.f(a),t}function Xa(e){return e.l()?null:e.k(0)}function Jv(e){return ef(Zv(e))}function Qv(e){return new jl(e)}function Yv(e){return e.l()?null:e.k(e.m()-1|0)}function oa(e){if(e.l())throw ja("List is empty.");return e.k(0)}function Zc(e,t){if(ee(t,Ie)){var n=Ai(e.m()+t.m()|0);return n.q(e),n.q(t),n}else{var r=qa(e);return No(r,t),r}}function sa(e){if(e.l())throw ja("List is empty.");return e.k(Ma(e))}function Tl(e){return qa(e)}function Xv(e,t){return 0<=t&&t<e.m()?e.k(t):null}function Pl(e,t){if(ee(e,Ie)){if(e.m()<=1)return ef(e);var n=pn(e),r=Li(n)?n:$();return f_(r,t),zl(r)}var a=tf(e);return y_(a,t),a}function ef(e){if(ee(e,Ie)){var t;switch(e.m()){case 0:t=La();break;case 1:var n;ee(e,Fn)?n=e.k(0):n=e.h().j(),t=yo(n);break;default:t=Tl(e);break}return t}return um(tf(e))}function Zv(e){var t;return ee(e,Ie)?t=e0(e):t=ao(e,Zl()),t}function tf(e){return ee(e,Ie)?Tl(e):ao(e,lt())}function ao(e,t){for(var n=e.h();n.i();){var r=n.j();t.e(r)}return t}function ep(e){if(ee(e,Ie)){var t;switch(e.m()){case 0:t=yu();break;case 1:var n;ee(e,Fn)?n=e.k(0):n=e.h().j(),t=zf(n);break;default:t=ao(e,r0(e.m()));break}return t}return ym(ao(e,Zl()))}function jl(e){this.r_1=e}i(jl).h=function(){return this.r_1.h()};function tp(e,t){return Bh.s(e,t,-1)}function la(e,t){return e>t?t:e}function oo(e,t){return e<t?t:e}function Rl(e){return ap(e,lt())}function Ml(e,t){var n=new _u(e),r=new pu(n,!0,op(t));return new vu(r,sp)}function nf(e,t){if(!(t>=0)){var n="Requested element count "+t+" is less than zero.";throw Ve(O(n))}var r;return t===0?r=Wi():ee(e,di)?r=e.t(t):r=new Xr(e,t),r}function np(e,t){return new mu(e,t)}function rp(e,t){var n;return ee(e,di)?n=e.u(t):n=new Wr(e,t),n}function ip(e,t){return new gu(e,t)}function rf(e){var t=e.h();return t.i()?t.j():null}function af(e){var t=e.h();if(!t.i())return La();var n=t.j();if(!t.i())return yo(n);var r=lt();for(r.e(n);t.i();)r.e(t.j());return r}function ap(e,t){for(var n=e.h();n.i();){var r=n.j();t.e(r)}return t}function op(e){return function(t){return e(t.v_1,t.w_1)}}function sp(e){return e.w_1}function Yt(e,t){return 0<=t&&t<=(P(e)-1|0)?R(e,t):null}function nc(e,t){if(!(t>=0)){var n="Requested character count "+t+" is less than zero.";throw Ve(O(n))}return ln(e,la(t,P(e)),P(e))}function lp(e){return up(e,Ai(P(e)))}function up(e,t){for(var n=0;n<P(e);){var r=R(e,n);n=n+1|0,t.e(new ne(r))}return t}function cp(e){var t=e&65535;return t}function nt(e,t){return e-t|0}function fp(e,t){return nt(e.x_1,t instanceof ne?t.x_1:$())}function Xi(e,t){return e-t|0}function Kr(e,t){return new vr(e,t)}function Lt(e){return e}function He(e){return String.fromCharCode(e)}function hp(e,t){return t instanceof ne?e===t.x_1:!1}function dp(e){return e}function of(){xs=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 xs;function vp(){return xs==null&&new of,xs}function ne(e){vp(),this.x_1=e}i(ne).i1=function(e){return nt(this.x_1,e)};i(ne).d=function(e){return fp(this,e)};i(ne).toString=function(){return He(this.x_1)};i(ne).equals=function(e){return hp(this.x_1,e)};i(ne).hashCode=function(){return dp(this.x_1)};function Fn(){}function Ie(){}function or(){}function sr(){}function Rr(){}function pp(){}function lr(e,t){this.v1_1=e,this.w1_1=t}i(lr).x1=function(e){return mf(this.w1_1,e.w1_1)};i(lr).d=function(e){return this.x1(e instanceof lr?e:$())};i(lr).equals=function(e){return this===e};i(lr).hashCode=function(){return Rp(this)};i(lr).toString=function(){return this.v1_1};function Oe(e){var t=e==null?null:O(e);return t==null?"null":t}function sf(){Ss=this,this.y1_1=new he(0,-2147483648),this.z1_1=new he(-1,2147483647),this.a2_1=8,this.b2_1=64}var Ss;function _p(){return Ss==null&&new sf,Ss}function he(e,t){_p(),io.call(this),this.c2_1=e,this.d2_1=t}i(he).e2=function(e){return mo(this,e)};i(he).d=function(e){return this.e2(e instanceof he?e:$())};i(he).f2=function(e){return so(this,e)};i(he).g2=function(e){return Hp(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 ca(this)};i(he).toString=function(){return Is(this,10)};i(he).equals=function(e){var t;return e instanceof he?t=Cn(this,e):t=!1,t};i(he).hashCode=function(){return Gp(this)};i(he).valueOf=function(){return this.k2()};function lf(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=mp(f);var d=h;d!=null&&(n.push(d),s=Math.max(s,d.length)),s>t&&(t=s)}return gp(t,n)}function mp(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 gp(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 yp(e,t){var n=t>>5;if(n>e.length)return!1;var r=t&31,a=1<<r;return!!(e[n]&a)}function vo(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 uf(e){return new po(e)}function bp(e){var t="CharArray",n=new Uint16Array(e);return n.$type$=t,n}function po(e){this.m2_1=e,this.l2_1=0}i(po).i=function(){return this.l2_1!==this.m2_1.length};i(po).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 ja(""+this.l2_1);return e};function hs(){return Ri(),cf}var cf;function ff(){return Ri(),hf}var hf;function $s(){return Ri(),df}var df;function vf(){return Ri(),pf}var pf;function wp(){return Ri(),_f}var _f;function kp(e){return Ri(),(e|0)===e?$f(e):(ff()[0]=e,_e($s()[wp()],31)+$s()[vf()]|0)}var rc;function Ri(){rc||(rc=!0,cf=new ArrayBuffer(8),hf=new Float64Array(hs()),new Float32Array(hs()),df=new Int32Array(hs()),ff()[0]=-1,pf=$s()[0]!==0?1:0,_f=1-vf()|0)}function R(e,t){var n;if(Ll(e)){var r=e.charCodeAt(t),a,o=0;if(r<Lt(o))a=!0;else{var s=65535;a=r>Lt(s)}if(a)throw Ve("Invalid Char code: "+r);n=ha(r)}else n=e.b(t);return n}function Ll(e){return typeof e=="string"}function P(e){var t;return Ll(e)?t=e.length:t=e.a(),t}function ln(e,t,n){var r;return Ll(e)?r=e.substring(t,n):r=e.c(t,n),r}function Cp(e,t){var n=e,r=t;if(n===r)return!0;if(n==null||r==null||!Nf(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,!N(n[s],r[s]))return!1}while(a<o);return!0}function xp(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)+oe(t[o])|0}while(r<a);return n}function Sp(e){return Hv(e,", ","[","]",u,u,$p)}function $p(e){return O(e)}function Ep(e){var t=Ip(e),n=qp(e),r=Ap(),a=Tp(),o=Pp();return Np(t,n,r,a,o)}function Np(e,t,n,r,a){var o=Y(i(Es));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 Ol(){throw li()}function Es(){Array.call(this)}function Ip(e){return function(){return e.m()}}function qp(e){return function(t){return e.k(t)}}function Ap(){var e=function(){return Ol(),se};return e.callableName="UNSUPPORTED_OPERATION",e}function Tp(){var e=function(){return Ol(),se};return e.callableName="UNSUPPORTED_OPERATION",e}function Pp(){var e=function(){return Ol(),se};return e.callableName="UNSUPPORTED_OPERATION",e}function mf(e,t){var n;switch(typeof e){case"number":var r;typeof t=="number"?r=ic(e,t):t instanceof he?r=ic(e,t.k2()):r=ac(e,t),n=r;break;case"string":case"boolean":n=ac(e,t);break;default:n=jp(e,t);break}return n}function ic(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 ac(e,t){return e<t?-1:e>t?1:0}function jp(e,t){return e.d(t)}function Rp(e){return Ns(e)}function Ns(e){if(!("kotlinHashCodeValue$"in e)){var t=gf(),n=new Object;n.value=t,n.enumerable=!1,Object.defineProperty(e,"kotlinHashCodeValue$",n)}return e.kotlinHashCodeValue$}function gf(){return Math.random()*4294967296|0}function Y(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 N(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 oe(e){if(e==null)return 0;var t=typeof e,n;switch(t){case"object":n=typeof e.hashCode=="function"?e.hashCode():Ns(e);break;case"function":n=Ns(e);break;case"number":n=kp(e);break;case"boolean":n=Fl(e);break;case"string":n=Ut(String(e));break;case"bigint":n=Mp(e);break;case"symbol":n=Lp(e);break;default:n=function(){throw new Error("Unexpected typeof `"+t+"`")}();break}return n}function O(e){var t;return e==null?t="null":Nf(e)?t="[...]":typeof e.toString!="function"?t=Op(e):t=e.toString(),t}function Fl(e){return e?1231:1237}function Ut(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 Mp(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 Lp(e){var t=Fp(e)?Dp():zp(),n=t.get(e);if(n!==u)return n;var r=gf();return t.set(e,r),r}function Op(e){return Object.prototype.toString.call(e)}function Fp(e){return Symbol.keyFor(e)!=u}function Dp(){return ds===u&&(ds=new Map),ds}function zp(){return vs===u&&(vs=new WeakMap),vs}var ds,vs;function B(e,t){Error.captureStackTrace!=null?Error.captureStackTrace(e,t):e.stack=new Error().stack}function i(e){return e.prototype}function _o(e,t,n){Error.call(e),Bp(e,t,n)}function Bp(e,t,n){var r=Of(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 At(e){var t;return e==null?Kp():t=e,t}function Kp(){throw ru()}function Cr(){throw iu()}function $(){throw au()}function Hn(){return qe(),yf}var yf;function Ya(){return qe(),bf}var bf;function oc(){return qe(),wf}var wf;function Up(){return qe(),kf}var kf;function Pn(){return qe(),Cf}var Cf;function sc(){return qe(),xf}var xf;function mo(e,t){if(qe(),Cn(e,t))return 0;var n=vn(e),r=vn(t);return n&&!r?-1:!n&&r?1:vn(ua(e,t))?-1:1}function so(e,t){qe();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,b=0;return b=b+(o+f|0)|0,v=v+(b>>>16|0)|0,b=b&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|b,h<<16|d)}function ua(e,t){return qe(),so(e,t.h2())}function xr(e,t){if(qe(),Ur(e))return Hn();if(Ur(t))return Hn();if(Cn(e,Pn()))return lc(t)?Pn():Hn();if(Cn(t,Pn()))return lc(e)?Pn():Hn();if(vn(e)){var n;return vn(t)?n=xr(Qt(e),Qt(t)):n=Qt(xr(Qt(e),t)),n}else if(vn(t))return Qt(xr(e,Qt(t)));if(uc(e,sc())&&uc(t,sc()))return fa(ca(e)*ca(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,b=0,_=0;return _=_+_e(s,h)|0,b=b+(_>>>16|0)|0,_=_&65535,b=b+_e(o,h)|0,v=v+(b>>>16|0)|0,b=b&65535,b=b+_e(s,f)|0,v=v+(b>>>16|0)|0,b=b&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(b<<16|_,d<<16|v)}function Hp(e,t){if(qe(),Ur(t))throw ah("division by zero");if(Ur(e))return Hn();if(Cn(e,Pn())){if(Cn(t,Ya())||Cn(t,oc()))return Pn();if(Cn(t,Pn()))return Ya();var n=Vp(e,1),r=Wp(n.g2(t),1);if(Cn(r,Hn()))return vn(t)?Ya():oc();var a=ua(e,xr(t,r));return so(r,a.g2(t))}else if(Cn(t,Pn()))return Hn();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=Hn(),l=e;Qp(l,t);){for(var c=ca(l)/ca(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=fa(f),b=xr(v,t);vn(b)||Jp(b,l);)f=f-d,v=fa(f),b=xr(v,t);Ur(v)&&(v=Ya()),s=so(s,v),l=ua(l,b)}return s}function Wp(e,t){qe();var n=t&63;return new he(e.c2_1<<n,e.d2_1<<n|(e.c2_1>>>(32-n|0)|0))}function Vp(e,t){qe();var n=t&63;return new he(e.c2_1>>>n|0|e.d2_1<<(32-n|0),e.d2_1>>n)}function ca(e){return qe(),e.d2_1*4294967296+Yp(e)}function Is(e,t){if(qe(),Ur(e))return"0";if(vn(e))if(Cn(e,Pn())){var n=na(t),r=e.g2(n),a=ua(xr(r,n),e).j2(),o=Is(r,t);return o+a.toString(t)}else return"-"+Is(Qt(e),t);for(var s=9,l=fa(Math.pow(t,s)),c=e,f="";;){var h=c.g2(l),d=ua(c,xr(h,l)).j2(),v=d.toString(t);if(c=h,Ur(c))return v+f;for(;v.length<s;)v="0"+v;f=v+f}}function Cn(e,t){return qe(),e.d2_1===t.d2_1&&e.c2_1===t.c2_1}function Gp(e){return qe(),e.c2_1^e.d2_1}function na(e){return qe(),new he(e,e<0?-1:0)}function vn(e){return qe(),e.d2_1<0}function Ur(e){return qe(),e.d2_1===0&&e.c2_1===0}function lc(e){return qe(),(e.c2_1&1)===1}function Qt(e){return qe(),e.h2()}function uc(e,t){return qe(),mo(e,t)<0}function fa(e){if(qe(),m_(e))return Hn();if(e<=-9223372036854776e3)return Pn();if(e+1>=9223372036854776e3)return Up();if(e<0)return Qt(fa(-e));var t=4294967296,n=e%t|0,r=e/t|0;return new he(n,r)}function Jp(e,t){return qe(),mo(e,t)>0}function Qp(e,t){return qe(),mo(e,t)>=0}function Yp(e){return qe(),e.c2_1>=0?e.c2_1:4294967296+e.c2_1}var cc;function qe(){cc||(cc=!0,yf=na(0),bf=na(1),wf=na(-1),kf=new he(-1,2147483647),Cf=new he(0,-2147483648),xf=na(16777216))}function Sf(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 Zi===u&&(Zi=0),Zi=Zi+1|0,Zi}var Zi;function Dl(e,t,n,r,a,o,s,l,c){a!=null&&(t.prototype=Object.create(a.prototype),t.prototype.constructor=t);var f=Sf(e,n,r,l,c,s);if(t.$metadata$=f,o!=null){var h=N(f.iid,u)?t.prototype:t;h.$imask$=lf(o)}}function w(e,t,n,r,a,o,s,l){var c="class";Dl(c,e,t,n,r,a,o,s,l)}function ie(e,t,n,r,a,o,s,l){var c="object";Dl(c,e,t,n,r,a,o,s,l)}function Ft(e,t,n,r,a,o,s,l){var c="interface";Dl(c,e,t,n,r,a,o,s,l)}function Ea(e,t,n,r){w(e,"Lambda",u,t,n,r,u,u)}function gt(e,t,n,r){ie(e,"Companion",u,t,n,r,u,u)}function Zp(e,t,n,r,a){return Sf("class",e,t,n,r,a)}function qi(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&&Li(s)?n[o]=s:n[o]=[].slice.call(s)}while(o!==a);return[].concat.apply([],n)}function $f(e){var t;return e instanceof he?t=e.j2():t=e_(e),t}function e_(e){var t;return e>2147483647?t=2147483647:e<-2147483648?t=-2147483648:t=e|0,t}function t_(e){return e<<16>>16}function ha(e){var t=$f(e),n=t_(t);return cp(n)}function n_(e,t){return new jr(e,t)}function r_(){return Mi(),Ef}var Ef;function Si(){return Mi(),Zp(u,u,u,u,u)}function Na(e,t,n,r,a){return Mi(),r.get=r,r.set=a,r.callableName=e,i_(r,a_(t,a),o_(r,n))}function i_(e,t,n){return Mi(),e.$metadata$=t,e.constructor=e,e.$imask$=n,e}function a_(e,t){return Mi(),r_()[e][t==null?0:1]}function o_(e,t){Mi();var n=e.$imask$,r;if(n==null){var a=[t];r=lf(a)}else r=n;return r}var fc;function Mi(){if(!fc){fc=!0;var e=[Si(),Si()],t=[Si(),Si()];Ef=[e,t,[Si(),Si()]]}}function Nf(e){return go(e)||Fv(e)}function go(e){return Array.isArray(e)}function ee(e,t){return s_(e,t.$metadata$.iid)}function s_(e,t){var n=e.$imask$,r;if(n==null)return!1;r=n;var a=r;return yp(a,t)}function Li(e){var t;return go(e)?t=!e.$type$:t=!1,t}function If(e){var t;return typeof e=="number"?t=!0:t=e instanceof he,t}function l_(e){var t=typeof e;return t==="string"||t==="boolean"||If(e)||ee(e,$a)}function dt(e){return typeof e=="string"||ee(e,El)}function qf(e){return go(e)&&e.$type$==="BooleanArray"}function Af(e){return e instanceof Int8Array}function Tf(e){return e instanceof Int16Array}function Pf(e){var t;return e instanceof Uint16Array?t=e.$type$==="CharArray":t=!1,t}function jf(e){return e instanceof Int32Array}function Rf(e){return e instanceof Float32Array}function Mf(e){return go(e)&&e.$type$==="LongArray"}function Lf(e){return e instanceof Float64Array}function Of(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(hc(e,"message")&&(a=a|1),hc(e,"cause")&&(a=a|2),a!==3){var o=u_(e);o!=Error.prototype&&(a=a|Of(o))}return n!=null&&(n.errorInfo=a),a}function hc(e,t){return e.hasOwnProperty(t)}function u_(e){return Object.getPrototypeOf(e)}var u;function c_(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 qs(e,t){return Cp(e,t)}function As(e){return xp(e)}function zl(e){return new Je(e)}function f_(e,t){e.length>1&&Uf(e,t)}function h_(e,t){if(!(t>=0)){var n="Invalid new array size: "+t+".";throw Ve(O(n))}return C0(e,new Int32Array(t))}function d_(e,t){if(!(t>=0)){var n="Invalid new array size: "+t+".";throw Ve(O(n))}return x0(e,t,null)}function Bl(e){var t=(e.m()/2|0)-1|0;if(t<0)return se;var n=Ma(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 v_(e){var t=Lt(e),n=p_(dc().q2_1,t),r=t-dc().q2_1[n]|0;return r<10?r:-1}function p_(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 Ff(){Ts=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 Ts;function dc(){return Ts==null&&new Ff,Ts}function __(e){var t=Lt(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 m_(e){return e!==e}function g_(e){var t;return e===0?t=0:t=1<<(31-Qc(e)|0),t}function Df(e){return sm(e)}function pn(e){var t;return e.toArray!==void 0?t=e.toArray():t=Df(e),t}function Kl(e){return e<0&&dm(),e}function y_(e,t){b_(e,t)}function yo(e){return vm([e])}function zf(e){return gm([e])}function b_(e,t){if(e.m()<=1)return se;var n=pn(e);Uf(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 Rn(){cr.call(this)}i(Rn).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(Rn).toJSON=function(){return this.toArray()};i(Rn).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 Tr(O(e))}this.u2_1.x2(this.t2_1),this.s2_1=this.t2_1,this.t2_1=-1};function Ia(e,t){this.b3_1=e,ai.call(this,e),cn.c3(t,this.b3_1.m()),this.s2_1=t}i(Ia).d3=function(){return this.s2_1>0};i(Ia).e3=function(){return this.s2_1};i(Ia).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 mr(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(mr).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(mr).k=function(e){return cn.l3(e,this.j3_1),this.h3_1.k(this.i3_1+e|0)};i(mr).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(mr).p2=function(e,t){return cn.l3(e,this.j3_1),this.h3_1.p2(this.i3_1+e|0,t)};i(mr).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(mr).m=function(){return this.j3_1};i(mr).r2=function(){return this.h3_1.r2()};function mt(){Rn.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(N(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(N(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 Ia(this,e)};i(mt).p1=function(e,t){return new mr(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,Fn)?cn.o3(this,e):!1};i(mt).hashCode=function(){return cn.p3(this)};function lo(){_n.call(this),this.s3_1=null,this.t3_1=null}function ur(){Rn.call(this)}i(ur).equals=function(e){return e===this?!0:e!=null&&ee(e,Rr)?fu.y3(this,e):!1};i(ur).hashCode=function(){return fu.z3(this)};function Bf(e){if(!(e>=0)){var t="capacity must be non-negative.";throw Ve(O(t))}return vo(Array(e),null)}function vc(e,t,n){e.fill(null,t,n)}function pc(e,t){return d_(e,t)}function Kf(){Ps=this;var e=this,t=Ai(0);t.p_1=!0,e.a4_1=t}var Ps;function w_(){return Ps==null&&new Kf,Ps}function k_(e){var t=[];return Je.call(e,t),e}function lt(){return k_(Y(i(Je)))}function C_(e,t){var n=[];if(Je.call(t,n),!(e>=0)){var r="Negative initial capacity: "+e;throw Ve(O(r))}return t}function Ai(e){return C_(e,Y(i(Je)))}function x_(e,t){var n=pn(e);return Je.call(t,n),t}function qa(e){return x_(e,Y(i(Je)))}function S_(e,t){var n=e.m();return e.o_1.length=e.m()+t|0,n}function Ul(e,t){return cn.l3(t,e.m()),t}function $_(e,t){return cn.c3(t,e.m()),t}function Je(e){w_(),mt.call(this),this.o_1=e,this.p_1=!1}i(Je).m=function(){return this.o_1.length};i(Je).k=function(e){var t=this.o_1[Ul(this,e)];return t==null||t!=null?t:$()};i(Je).p2=function(e,t){this.r2(),Ul(this,e);var n=this.o_1[e];this.o_1[e]=t;var r=n;return r==null||r!=null?r:$()};i(Je).e=function(e){return this.r2(),this.o_1.push(e),this.w2_1=this.w2_1+1|0,!0};i(Je).k3=function(e,t){this.r2(),this.o_1.splice($_(this,e),0,t),this.w2_1=this.w2_1+1|0};i(Je).q=function(e){if(this.r2(),e.l())return!1;for(var t=S_(this,e.m()),n=0,r=e.h();r.i();){var a=r.j(),o=n;n=o+1|0;var s=Kl(o);this.o_1[t+s|0]=a}return this.w2_1=this.w2_1+1|0,!0};i(Je).x2=function(e){this.r2(),Ul(this,e),this.w2_1=this.w2_1+1|0;var t;return e===Ma(this)?t=this.o_1.pop():t=this.o_1.splice(e,1)[0],t};i(Je).m3=function(e,t){this.r2(),this.w2_1=this.w2_1+1|0,this.o_1.splice(e,t-e|0)};i(Je).n3=function(){this.r2();var e=this;e.o_1=[],this.w2_1=this.w2_1+1|0};i(Je).l1=function(e){return Xc(this.o_1,e)};i(Je).m1=function(e){return Uv(this.o_1,e)};i(Je).toString=function(){return Sp(this.o_1)};i(Je).b4=function(){return[].slice.call(this.o_1)};i(Je).toArray=function(){return this.b4()};i(Je).r2=function(){if(this.p_1)throw li()};var Za;function Uf(e,t){if(E_()){var n=I_(t);e.sort(n)}else N_(e,0,Kv(e),t)}function E_(){var e=Za;if(e!=null)return e;Za=!1;var t=[],n=0;if(n<600)do{var r=n;n=n+1|0,t.push(r)}while(n<600);var a=q_;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 Za=!0,!0}function N_(e,t,n,r){var a=e.length,o=vo(Array(a),null),s=js(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 js(e,t,n,r,a){if(n===r)return e;var o=(n+r|0)/2|0,s=js(e,t,n,o,a),l=js(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 b=s[f],_=l[h];a.compare(b,_)<=0?(c[v]=b,f=f+1|0):(c[v]=_,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 I_(e){return function(t,n){return e.compare(t,n)}}function q_(e,t){return(e&3)-(t&3)|0}function Hf(e,t){return lo.call(t),Mn.call(t),t.g4_1=e,t}function Wf(e){return Hf(Vl(),e),e}function A_(){return Wf(Y(i(Mn)))}function T_(e,t,n){return Hf(Yf(e,t),n),n}function P_(e,t){return T_(e,1,t),t}i(Mn).s1=function(e){return this.g4_1.i4(e)};i(Mn).u1=function(){var e=this.h4_1,t;if(e==null){var n=new Hl(this.g4_1);this.h4_1=n,t=n}else t=e;return t};i(Mn).t1=function(e){return this.g4_1.t1(e)};i(Mn).u3=function(e,t){return this.g4_1.u3(e,t)};i(Mn).m=function(){return this.g4_1.m()};function Mn(){this.h4_1=null}function Hl(e){mn.call(this,e)}i(Hl).h=function(){return this.k4_1.l4()};function mn(e){ur.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,or)?this.m4(e!=null&&ee(e,or)?e:$()):!1};i(mn).n4=function(e){throw li()};i(mn).e=function(e){return this.n4(e!=null&&ee(e,or)?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 Wl(e,t){return ur.call(t),$n.call(t),t.r4_1=e,t}function Vf(e){return Wl(Vl(),e),e}function j_(){return Vf(Y(i($n)))}function R_(e,t){Wl(F_(e.m()),t);for(var n=e.h();n.i();){var r=n.j();t.r4_1.u3(r,!0)}return t}function Gf(e,t,n){return Wl(Yf(e,t),n),n}function M_(e,t){return Gf(e,1,t),t}function L_(e){return M_(e,Y(i($n)))}i($n).e=function(e){return this.r4_1.u3(e,!0)==null};i($n).j1=function(e){return this.r4_1.i4(e)};i($n).l=function(){return this.r4_1.m()===0};i($n).h=function(){return this.r4_1.s4()};i($n).m=function(){return this.r4_1.m()};function $n(){}function Jf(e,t){return g_(_e(oo(t,1),3))}function Qf(e,t){return Qc(t)+1|0}function O_(e){return Gl(8,e),e}function Vl(){return O_(Y(i(xt)))}function Gl(e,t){return xt.call(t,Bf(e),null,new Int32Array(e),new Int32Array(Jf(Aa,e)),2,0),t}function F_(e){return Gl(e,Y(i(xt)))}function D_(e,t,n){return Gl(e,n),n}function Yf(e,t){return D_(e,t,Y(i(xt)))}function Ti(e){return e.t4_1.length}function jn(e){return e.w4_1.length}function Xf(e){e.a5_1=e.a5_1+1|0}function z_(e,t){B_(e,t)?Ql(e,jn(e)):K_(e,e.y4_1+t|0)}function B_(e,t){var n=Ti(e)-e.y4_1|0,r=e.y4_1-e.m()|0;return n<t&&(r+n|0)>=t&&r>=(Ti(e)/4|0)}function K_(e,t){if(t<0)throw hh("too many elements");if(t>Ti(e)){var n=cn.d5(Ti(e),t);e.t4_1=pc(e.t4_1,n);var r=e,a=e.u4_1;r.u4_1=a==null?null:pc(a,n),e.v4_1=h_(e.v4_1,n);var o=Jf(Aa,n);o>jn(e)&&Ql(e,o)}}function U_(e){var t=e.u4_1;if(t!=null)return t;var n=Bf(Ti(e));return e.u4_1=n,n}function Jl(e,t){return t==null?0:_e(oe(t),-1640531527)>>>e.z4_1|0}function H_(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;vc(e.t4_1,n,e.y4_1),r==null||vc(r,n,e.y4_1),e.y4_1=n}function Ql(e,t){Xf(e),e.y4_1>e.b5_1&&H_(e),t!==jn(e)?(e.w4_1=new Int32Array(t),e.z4_1=Qf(Aa,t)):c_(e.w4_1,0,0,jn(e));for(var n=0;n<e.y4_1;){var r=n;if(n=r+1|0,!W_(e,r))throw Tr("This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?")}}function W_(e,t){for(var n=Jl(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 Yl(e,t){for(var n=Jl(e,t),r=e.x4_1;;){var a=e.w4_1[n];if(a===0)return-1;if(a>0&&N(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 V_(e,t){e.q4();e:for(;;)for(var n=Jl(e,t),r=la(_e(e.x4_1,2),jn(e)/2|0),a=0;;){var o=e.w4_1[n];if(o<=0){if(e.y4_1>=Ti(e)){z_(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,Xf(e),a>e.x4_1&&(e.x4_1=a),l}if(N(e.t4_1[o-1|0],t))return-o|0;if(a=a+1|0,a>r){Ql(e,_e(jn(e),2));continue e}var c=n;n=c-1|0,c===0&&(n=jn(e)-1|0)}}function G_(e,t){return e.b5_1===t.m()&&e.p4(t.u1())}function Zf(){this.e5_1=-1640531527,this.f5_1=8,this.g5_1=2,this.h5_1=-1}var Aa;function Mr(e){this.i5_1=e,this.j5_1=0,this.k5_1=-1,this.l5_1=this.i5_1.a5_1,this.m5()}i(Mr).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(Mr).i=function(){return this.j5_1<this.i5_1.y4_1};i(Mr).n5=function(){if(this.i5_1.a5_1!==this.l5_1)throw nu()};function Xl(e){Mr.call(this,e)}i(Xl).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 Ta(e){Mr.call(this,e)}i(Ta).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(Ta).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:oe(n),a=r==null?0:r,o=At(this.i5_1.u4_1)[this.k5_1],s=o==null?null:oe(o),l=a^(s==null?0:s);return this.m5(),l};i(Ta).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];N(r,this.i5_1)?e.a6("(this Map)"):e.z5(r),e.b6(61);var a=At(this.i5_1.u4_1)[this.k5_1];N(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 At(this.c6_1.u4_1)[this.d6_1]};i(oi).equals=function(e){var t,n;return e!=null&&ee(e,or)?n=N(e.q1(),this.q1()):n=!1,n?t=N(e.r1(),this.r1()):t=!1,t};i(oi).hashCode=function(){var e=this.q1(),t=e==null?null:oe(e),n=t==null?0:t,r=this.r1(),a=r==null?null:oe(r);return n^(a==null?0:a)};i(oi).toString=function(){return Oe(this.q1())+"="+Oe(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=Qf(Aa,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=Yl(this,e);return t<0?null:At(this.u4_1)[t]};i(xt).i4=function(e){return Yl(this,e)>=0};i(xt).u3=function(e,t){var n=V_(this,e),r=U_(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,sr)?n=G_(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=wh(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=Yl(this,e.q1());return t<0?!1:N(At(this.u4_1)[t],e.r1())};i(xt).e6=function(e){return this.o4(ee(e,or)?e:$())};i(xt).s4=function(){return new Xl(this)};i(xt).l4=function(){return new Ta(this)};function eh(){}function J_(e){return Wf(e),Pa.call(e),e}function th(){return J_(Y(i(Pa)))}function Q_(e,t){return P_(e,t),Pa.call(t),t}function Y_(e){return Q_(e,Y(i(Pa)))}function Pa(){}function X_(e){return Vf(e),Lr.call(e),e}function Zl(){return X_(Y(i(Lr)))}function Z_(e,t){return R_(e,t),Lr.call(t),t}function e0(e){return Z_(e,Y(i(Lr)))}function t0(e,t,n){return Gf(e,t,n),Lr.call(n),n}function n0(e,t){return t0(e,1,t),t}function r0(e){return n0(e,Y(i(Lr)))}i(Lr).r2=function(){return this.r4_1.q4()};function Lr(){}function Tt(e){da.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(Tt).o6=function(){return At(this.n6_1)};i(Tt).p6=function(e){var t=this,n;if(Pm(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===dr())return se;a=l,o=null}catch(_){var c=_;a=null,o=c}s.s6();var f=At(s.h6_1);if(f instanceof Tt)t=f;else{if(o!=null){var h=At(o),d=Mm(h);f.t6(d)}else{var v=a,b=v;f.t6(b)}return se}}};i(Tt).t6=function(e){return this.p6(e)};function Oi(){}i(Oi).o6=function(){var e="This continuation is already complete";throw Tr(O(e))};i(Oi).p6=function(e){var t="This continuation is already complete";throw Tr(O(t))};i(Oi).t6=function(e){return this.p6(e)};i(Oi).toString=function(){return"This continuation is already complete"};var nh;function da(){this.r6_1=null}i(da).s6=function(){var e=this.r6_1;e!=null&&e!==this&&At(this.o6().u6(Lh)).v6(e),this.r6_1=nh};function i0(e,t,n){return new eu(n,e,t,n)}function eu(e,t,n,r){this.e7_1=t,this.f7_1=n,this.g7_1=r,Tt.call(this,ee(e,Vi)?e:$())}i(eu).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 rh(e){return _o(e),gn.call(e),e}function ih(){var e=rh(Y(i(gn)));return B(e,ih),e}function bo(e,t){return _o(t,e),gn.call(t),t}function ah(e){var t=bo(e,Y(i(gn)));return B(t,ah),t}function gn(){B(this,gn)}function oh(e){return En(e),si.call(e),e}function sh(){var e=oh(Y(i(si)));return B(e,sh),e}function lh(e,t){return ui(e,t),si.call(t),t}function Ve(e){var t=lh(e,Y(i(si)));return B(t,Ve),t}function si(){B(this,si)}function a0(e){return En(e),Fi.call(e),e}function tu(){var e=a0(Y(i(Fi)));return B(e,tu),e}function o0(e,t){return ui(e,t),Fi.call(t),t}function Ln(e){var t=o0(e,Y(i(Fi)));return B(t,Ln),t}function Fi(){B(this,Fi)}function s0(e){return En(e),Di.call(e),e}function uh(){var e=s0(Y(i(Di)));return B(e,uh),e}function l0(e,t){return ui(e,t),Di.call(t),t}function Tr(e){var t=l0(e,Y(i(Di)));return B(t,Tr),t}function Di(){B(this,Di)}function u0(e){return En(e),zi.call(e),e}function li(){var e=u0(Y(i(zi)));return B(e,li),e}function c0(e,t){return ui(e,t),zi.call(t),t}function ch(e){var t=c0(e,Y(i(zi)));return B(t,ch),t}function zi(){B(this,zi)}function En(e){return rh(e),Dt.call(e),e}function fh(){var e=En(Y(i(Dt)));return B(e,fh),e}function ui(e,t){return bo(e,t),Dt.call(t),t}function hh(e){var t=ui(e,Y(i(Dt)));return B(t,hh),t}function Dt(){B(this,Dt)}function f0(e){return En(e),Bi.call(e),e}function St(){var e=f0(Y(i(Bi)));return B(e,St),e}function h0(e,t){return ui(e,t),Bi.call(t),t}function ja(e){var t=h0(e,Y(i(Bi)));return B(t,ja),t}function Bi(){B(this,Bi)}function d0(e){return _o(e),Ki.call(e),e}function dh(){var e=d0(Y(i(Ki)));return B(e,dh),e}function v0(e,t){return _o(t,e),Ki.call(t),t}function Ki(){B(this,Ki)}function p0(e){return oh(e),ci.call(e),e}function vh(){var e=p0(Y(i(ci)));return B(e,vh),e}function _0(e,t){return lh(e,t),ci.call(t),t}function ph(e){var t=_0(e,Y(i(ci)));return B(t,ph),t}function ci(){B(this,ci)}function m0(e){return En(e),Ui.call(e),e}function _h(){var e=m0(Y(i(Ui)));return B(e,_h),e}function g0(e,t){return ui(e,t),Ui.call(t),t}function mh(e){var t=g0(e,Y(i(Ui)));return B(t,mh),t}function Ui(){B(this,Ui)}function y0(e){return En(e),wo.call(e),e}function nu(){var e=y0(Y(i(wo)));return B(e,nu),e}function wo(){B(this,wo)}function b0(e){return En(e),ko.call(e),e}function ru(){var e=b0(Y(i(ko)));return B(e,ru),e}function ko(){B(this,ko)}function w0(e){return En(e),Co.call(e),e}function iu(){var e=w0(Y(i(Co)));return B(e,iu),e}function Co(){B(this,Co)}function k0(e){return En(e),xo.call(e),e}function au(){var e=k0(Y(i(xo)));return B(e,au),e}function xo(){B(this,xo)}function va(e){return new Ka(e)}function C0(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 x0(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 pa(){}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 Pi?t=!1:e instanceof un?t=N(this.m7(),e.m7()):t=!1,t};i(un).hashCode=function(){var e=this.k7(),t=e==null?null:Ut(e);return t==null?0:t};i(un).toString=function(){return"class "+this.k7()};function fi(){Rs=this,un.call(this,Object),this.o7_1="Nothing"}i(fi).k7=function(){return this.o7_1};i(fi).m7=function(){throw ch("There's no native JS class for Nothing type")};i(fi).equals=function(e){return e===this};i(fi).hashCode=function(){return 0};var Rs;function gh(){return Rs==null&&new fi,Rs}function Pi(){}i(Pi).equals=function(e){return e===this};i(Pi).hashCode=function(){return 0};function Me(e,t,n){un.call(this,e),this.q7_1=t,this.r7_1=n}i(Me).equals=function(e){return e instanceof Me?i(un).equals.call(this,e)&&this.q7_1===e.q7_1:!1};i(Me).k7=function(){return this.q7_1};function uo(e){un.call(this,e);var t=this,n=e.$metadata$;t.t7_1=n==null?null:n.simpleName}i(uo).k7=function(){return this.t7_1};function So(){}function ou(){}function _c(){return H0(),yh}var yh;function S0(e){return e!=null}function $0(e){return If(e)}function E0(e){return e!=null?typeof e=="boolean":!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?typeof e=="number":!1}function P0(e){return e!=null?Li(e):!1}function j0(e){return e!=null?typeof e=="string":!1}function R0(e){return e instanceof Error}function M0(e){return e!=null?qf(e):!1}function L0(e){return e!=null?Pf(e):!1}function O0(e){return e!=null?Af(e):!1}function F0(e){return e!=null?Tf(e):!1}function D0(e){return e!=null?jf(e):!1}function z0(e){return e!=null?Mf(e):!1}function B0(e){return e!=null?Rf(e):!1}function K0(e){return e!=null?Lf(e):!1}function U0(e){return function(t){var n;return typeof t=="function"?n=t.length===e:n=!1,n}}function Qe(){Ms=this;var e=this,t=Object;e.anyClass=new Me(t,"Any",S0);var n=this,r=Number;n.numberClass=new Me(r,"Number",$0),this.nothingClass=gh();var a=this,o=Boolean;a.booleanClass=new Me(o,"Boolean",E0);var s=this,l=Number;s.byteClass=new Me(l,"Byte",N0);var c=this,f=Number;c.shortClass=new Me(f,"Short",I0);var h=this,d=Number;h.intClass=new Me(d,"Int",q0);var v=this,b=Number;v.floatClass=new Me(b,"Float",A0);var _=this,m=Number;_.doubleClass=new Me(m,"Double",T0);var g=this,p=Array;g.arrayClass=new Me(p,"Array",P0);var C=this,k=String;C.stringClass=new Me(k,"String",j0);var x=this,I=Error;x.throwableClass=new Me(I,"Throwable",R0);var F=this,J=Array;F.booleanArrayClass=new Me(J,"BooleanArray",M0);var K=this,re=Uint16Array;K.charArrayClass=new Me(re,"CharArray",L0);var G=this,Re=Int8Array;G.byteArrayClass=new Me(Re,"ByteArray",O0);var Ce=this,be=Int16Array;Ce.shortArrayClass=new Me(be,"ShortArray",F0);var ve=this,xe=Int32Array;ve.intArrayClass=new Me(xe,"IntArray",D0);var De=this,tt=Array;De.longArrayClass=new Me(tt,"LongArray",z0);var pe=this,bt=Float32Array;pe.floatArrayClass=new Me(bt,"FloatArray",B0);var jt=this,Vt=Float64Array;jt.doubleArrayClass=new Me(Vt,"DoubleArray",K0)}i(Qe).u7=function(){return this.anyClass};i(Qe).v7=function(){return this.numberClass};i(Qe).w7=function(){return this.nothingClass};i(Qe).x7=function(){return this.booleanClass};i(Qe).y7=function(){return this.byteClass};i(Qe).z7=function(){return this.shortClass};i(Qe).a8=function(){return this.intClass};i(Qe).b8=function(){return this.floatClass};i(Qe).c8=function(){return this.doubleClass};i(Qe).d8=function(){return this.arrayClass};i(Qe).e8=function(){return this.stringClass};i(Qe).f8=function(){return this.throwableClass};i(Qe).g8=function(){return this.booleanArrayClass};i(Qe).h8=function(){return this.charArrayClass};i(Qe).i8=function(){return this.byteArrayClass};i(Qe).j8=function(){return this.shortArrayClass};i(Qe).k8=function(){return this.intArrayClass};i(Qe).l8=function(){return this.longArrayClass};i(Qe).m8=function(){return this.floatArrayClass};i(Qe).n8=function(){return this.doubleArrayClass};i(Qe).functionClass=function(e){var t=_c()[e],n;if(t==null){var r=Function,a="Function"+e,o=new Me(r,a,U0(e));_c()[e]=o,n=o}else n=t;return n};var Ms;function Et(){return Ms==null&&new Qe,Ms}var mc;function H0(){mc||(mc=!0,yh=vo(Array(0),null))}function W0(e){var t;return Array.isArray(e)?t=V0(e):t=su(e),t}function V0(e){var t;switch(e.length){case 1:t=su(e[0]);break;case 0:t=gh();break;default:t=new Pi;break}return t}function su(e){if(e===String)return Et().stringClass;var t=e.$metadata$,n;if(t!=null){var r;if(t.$kClass$==null){var a=new uo(e);t.$kClass$=a,r=a}else r=t.$kClass$;n=r}else n=new uo(e);return n}function co(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(qf(e))a=Et().booleanArrayClass;else if(Pf(e))a=Et().charArrayClass;else if(Af(e))a=Et().byteArrayClass;else if(Tf(e))a=Et().shortArrayClass;else if(jf(e))a=Et().intArrayClass;else if(Mf(e))a=Et().longArrayClass;else if(Rf(e))a=Et().floatArrayClass;else if(Lf(e))a=Et().doubleArrayClass;else if(ee(e,pa))a=W0(pa);else if(Li(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=su(l)}a=s}t=a;break}return t}function bh(e){e.lastIndex=0}function G0(e,t){return kh(t),t}function wh(e){return G0(e,Y(i(yn)))}function kh(e){return yn.call(e,""),e}function lu(){return kh(Y(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<=(P(t)-1|0))n=R(t,e);else throw Ln("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+He(e),this};i(yn).f=function(e){return this.y5_1=this.y5_1+Oe(e),this};i(yn).z5=function(e){return this.y5_1=this.y5_1+Oe(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 gc(e){var t=He(e).toUpperCase();return t.length>1?e:R(t,0)}function Ch(e){return __(e)}function yc(e,t){return e.toString(xh(t))}function xh(e){if(!(2<=e&&e<=36))throw Ve("radix "+e+" was not in valid range 2..36");return e}function J0(e){var t=Hh(e),n;return t==null?Wh(e):n=t,n}function bc(e,t){var n=wu(e,t),r;return n==null?Wh(e):r=n,r}function Q0(e,t){var n=nt(e,48)>=0&&nt(e,57)<=0?Xi(e,48):nt(e,65)>=0&&nt(e,90)<=0?Xi(e,65)+10|0:nt(e,97)>=0&&nt(e,122)<=0?Xi(e,97)+10|0:nt(e,128)<0?-1:nt(e,65313)>=0&&nt(e,65338)<=0?Xi(e,65313)+10|0:nt(e,65345)>=0&&nt(e,65370)<=0?Xi(e,65345)+10|0:v_(e);return n>=t?-1:n}function Y0(e,t){return Ra.call(t,e,yu()),t}function X0(e){return Y0(e,Y(i(Ra)))}function Sh(){Ls=this,this.o8_1=new RegExp("[\\\\^$*+?.()|[\\]{}]","g"),this.p8_1=new RegExp("[\\\\$]","g"),this.q8_1=new RegExp("\\$","g")}var Ls;function Z0(){return Ls==null&&new Sh,Ls}function Ra(e,t){Z0(),this.r8_1=e,this.s8_1=ep(t),this.t8_1=new RegExp(e,em(t,"gu")),this.u8_1=null,this.v8_1=null}i(Ra).w8=function(e){bh(this.t8_1);var t=this.t8_1.exec(O(e));return t!=null&&t.index===0&&this.t8_1.lastIndex===P(e)};i(Ra).toString=function(){return this.t8_1.toString()};function em(e,t){return xn(e,"",t,u,u,u,tm)}function tm(e){return e.z8_1}function nm(e,t){return Tm(e,t)}function uu(e){this.a9_1=e}i(uu).b9=function(e,t){return this.a9_1(e,t)};i(uu).compare=function(e,t){return this.b9(e,t)};function cu(e,t,n){return n=n===u?!1:n,n?$o(e,0,t,0,t.length,n):e.startsWith(t,0)}function $h(e,t,n){return n=n===u?!1:n,n?$o(e,e.length-t.length|0,t,0,t.length,n):e.endsWith(t)}function rm(e,t,n,r){return r=r===u?!1:r,r?$o(e,n,t,0,t.length,r):e.startsWith(t,n)}function $o(e,t,n,r,a,o){return o=o===u?!1:o,Ba(e,t,n,r,a,o)}function im(e){return function(t){return t===e?"(this Collection)":Oe(t)}}function cr(){}i(cr).j1=function(e){var t;e:{var n;if(ee(this,Ie)?n=this.l():n=!1,n){t=!1;break e}for(var r=this.h();r.i();){var a=r.j();if(N(a,e)){t=!0;break e}}t=!1}return t};i(cr).k1=function(e){var t;e:{var n;if(ee(e,Ie)?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(cr).l=function(){return this.m()===0};i(cr).toString=function(){return xn(this,", ","[","]",u,u,im(this))};i(cr).toArray=function(){return Df(this)};function Or(){this.n2_1=2147483639}i(Or).l3=function(e,t){if(e<0||e>=t)throw Ln("index: "+e+", size: "+t)};i(Or).c3=function(e,t){if(e<0||e>t)throw Ln("index: "+e+", size: "+t)};i(Or).o2=function(e,t,n){if(e<0||t>n)throw Ln("fromIndex: "+e+", toIndex: "+t+", size: "+n);if(e>t)throw Ve("fromIndex: "+e+" > toIndex: "+t)};i(Or).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(Or).p3=function(e){for(var t=1,n=e.h();n.i();){var r=n.j(),a=_e(31,t),o=r==null?null:oe(r);t=a+(o==null?0:o)|0}return t};i(Or).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(!N(a,o))return!1}return!0};var cn;function wc(e,t){return t===e?"(this Map)":Oe(t)}function Eh(e,t){var n;e:{for(var r=e.u1().h();r.i();){var a=r.j();if(N(a.q1(),t)){n=a;break e}}n=null}return n}function am(){}function om(e){return function(t){return e.c9(t)}}function _n(){this.v3_1=null,this.w3_1=null}i(_n).s1=function(e){return Eh(this,e)!=null};i(_n).x3=function(e){if(!(e!=null&&ee(e,or)))return!1;var t=e.q1(),n=e.r1(),r=(ee(this,sr)?this:$()).t1(t);if(!N(n,r))return!1;var a;return r==null?a=!(ee(this,sr)?this:$()).s1(t):a=!1,!a};i(_n).equals=function(e){if(e===this)return!0;if(!(e!=null&&ee(e,sr))||this.m()!==e.m())return!1;var t;e:{var n=e.u1(),r;if(ee(n,Ie)?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=Eh(this,e);return t==null?null:t.r1()};i(_n).hashCode=function(){return oe(this.u1())};i(_n).m=function(){return this.u1().m()};i(_n).toString=function(){var e=this.u1();return xn(e,", ","{","}",u,u,om(this))};i(_n).c9=function(e){return wc(this,e.q1())+"="+wc(this,e.r1())};function Eo(){}i(Eo).z3=function(e){for(var t=0,n=e.h();n.i();){var r=n.j(),a=t,o=r==null?null:oe(r);t=a+(o==null?0:o)|0}return t};i(Eo).y3=function(e,t){return e.m()!==t.m()?!1:e.k1(t)};var fu;function sm(e){if(e.l())return[];for(var t=e.m(),n=vo(Array(t),null),r=e.h(),a=0;r.i();){var o=a;a=o+1|0,n[o]=r.j()}return n}function hu(e){return e.length>0?zl(e):La()}function Nh(e){return e.length===0?lt():qa(new Dn(e,!0))}function Ma(e){return e.m()-1|0}function lm(e,t,n,r){n=n===u?0:n,r=r===u?e.m():r,cm(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=Fo(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 La(){return fm()}function um(e){switch(e.m()){case 0:return La();case 1:return yo(e.k(0));default:return e}}function Dn(e,t){this.d9_1=e,this.e9_1=t}i(Dn).m=function(){return this.d9_1.length};i(Dn).l=function(){return this.d9_1.length===0};i(Dn).f9=function(e){return Cs(this.d9_1,e)};i(Dn).g9=function(e){var t;e:{var n;if(ee(e,Ie)?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(Dn).k1=function(e){return this.g9(e)};i(Dn).h=function(){return uf(this.d9_1)};function cm(e,t,n){if(t>n)throw Ve("fromIndex ("+t+") is greater than toIndex ("+n+").");if(t<0)throw Ln("fromIndex ("+t+") is less than zero.");if(n>e)throw Ln("toIndex ("+n+") is greater than size ("+e+").")}function ut(){Os=this,this.h9_1=new he(-1478467534,-1720727600)}i(ut).equals=function(e){var t;return e!=null&&ee(e,Fn)?t=e.l():t=!1,t};i(ut).hashCode=function(){return 1};i(ut).toString=function(){return"[]"};i(ut).m=function(){return 0};i(ut).l=function(){return!0};i(ut).i9=function(e){return!1};i(ut).j1=function(e){return!1};i(ut).j9=function(e){return e.l()};i(ut).k1=function(e){return this.j9(e)};i(ut).k=function(e){throw Ln("Empty list doesn't contain element at index "+e+".")};i(ut).k9=function(e){return-1};i(ut).l1=function(e){return-1};i(ut).l9=function(e){return-1};i(ut).m1=function(e){return-1};i(ut).h=function(){return Hi};i(ut).n1=function(){return Hi};i(ut).o1=function(e){if(e!==0)throw Ln("Index: "+e);return Hi};i(ut).p1=function(e,t){if(e===0&&t===0)return this;throw Ln("fromIndex: "+e+", toIndex: "+t)};var Os;function fm(){return Os==null&&new ut,Os}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 Hi;function hm(e){return new Dn(e,!1)}function dm(){throw mh("Index overflow has happened.")}function vm(e){return e.length===0?lt():qa(new Dn(e,!0))}function Hr(e,t){this.v_1=e,this.w_1=t}i(Hr).toString=function(){return"IndexedValue(index="+this.v_1+", value="+Oe(this.w_1)+")"};i(Hr).hashCode=function(){var e=this.v_1;return e=_e(e,31)+(this.w_1==null?0:oe(this.w_1))|0,e};i(Hr).equals=function(e){if(this===e)return!0;if(!(e instanceof Hr))return!1;var t=e instanceof Hr?e:$();return!(this.v_1!==t.v_1||!N(this.w_1,t.w_1))};function Fs(e,t){var n;return ee(e,Ie)?n=e.m():n=t,n}function pm(e,t){return e.q(zl(t))}function No(e,t){if(ee(t,Ie))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 Io(){}i(Io).j=function(){return this.m9()};function Oa(){}i(Oa).n9=function(){return this.o9()};i(Oa).j=function(){return new ne(this.n9())};function Fa(e){return new du(e)}function fr(){}function _m(e){var t=new hr;return t.t9_1=i0(e,t,t),t}function mm(e){if(e.i())return e.j();throw St()}function Ih(e){switch(e.q9_1){case 4:return St();case 5:return Tr("Iterator has failed.");default:return Tr("Unexpected state of the iterator: "+e.q9_1)}}function hr(){fr.call(this),this.q9_1=0,this.r9_1=null,this.s9_1=null,this.t9_1=null}i(hr).i=function(){for(;;){switch(this.q9_1){case 0:break;case 1:if(At(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 Ih(this)}this.q9_1=5;var e=At(this.t9_1);this.t9_1=null;var t=se;e.t6(t)}};i(hr).j=function(){switch(this.q9_1){case 0:case 1:return mm(this);case 2:return this.q9_1=1,At(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 Ih(this)}};i(hr).p9=function(e,t){return this.r9_1=e,this.q9_1=3,this.t9_1=t,dr()};i(hr).u9=function(e){Lm(e);var t=e;t==null||t!=null||$(),this.q9_1=4};i(hr).t6=function(e){return this.u9(e)};i(hr).o6=function(){return km()};function du(e){this.v9_1=e}i(du).h=function(){return _m(this.v9_1)};function Wi(){return Lo}function qo(e){this.x9_1=e,this.w9_1=e.y9_1.h()}i(qo).j=function(){return this.x9_1.z9_1(this.w9_1.j())};i(qo).i=function(){return this.w9_1.i()};function vu(e,t){this.y9_1=e,this.z9_1=t}i(vu).h=function(){return new qo(this)};function qh(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,se}e.ba_1=0}function Ao(e){this.da_1=e,this.aa_1=e.ea_1.h(),this.ba_1=-1,this.ca_1=null}i(Ao).j=function(){if(this.ba_1===-1&&qh(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(Ao).i=function(){return this.ba_1===-1&&qh(this),this.ba_1===1};function pu(e,t,n){t=t===u?!0:t,this.ea_1=e,this.fa_1=t,this.ga_1=n}i(pu).h=function(){return new Ao(this)};function To(e){this.ha_1=e.ja_1.h(),this.ia_1=0}i(To).j=function(){var e=this.ia_1;return this.ia_1=e+1|0,new Hr(Kl(e),this.ha_1.j())};i(To).i=function(){return this.ha_1.i()};function _u(e){this.ja_1=e}i(_u).h=function(){return new To(this)};function di(){}function Po(e){this.ka_1=e.na_1,this.la_1=e.ma_1.h()}i(Po).j=function(){if(this.ka_1===0)throw St();return this.ka_1=this.ka_1-1|0,this.la_1.j()};i(Po).i=function(){return this.ka_1>0&&this.la_1.i()};function Xr(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 Ve(O(n))}}i(Xr).u=function(e){return e>=this.na_1?Wi():new Pr(this.ma_1,e,this.na_1)};i(Xr).t=function(e){return e>=this.na_1?this:new Xr(this.ma_1,e)};i(Xr).h=function(){return new Po(this)};function Ah(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,se}e.pa_1=0}function jo(e){this.ra_1=e,this.oa_1=e.sa_1.h(),this.pa_1=-1,this.qa_1=null}i(jo).j=function(){if(this.pa_1===-1&&Ah(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(jo).i=function(){return this.pa_1===-1&&Ah(this),this.pa_1===1};function mu(e,t){this.sa_1=e,this.ta_1=t}i(mu).h=function(){return new jo(this)};function Th(e){for(;e.va_1>0&&e.ua_1.i();)e.ua_1.j(),e.va_1=e.va_1-1|0}function Ro(e){this.ua_1=e.wa_1.h(),this.va_1=e.xa_1}i(Ro).j=function(){return Th(this),this.ua_1.j()};i(Ro).i=function(){return Th(this),this.ua_1.i()};function Wr(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 Ve(O(n))}}i(Wr).u=function(e){var t=this.xa_1+e|0;return t<0?new Wr(this,e):new Wr(this.wa_1,t)};i(Wr).t=function(e){var t=this.xa_1+e|0;return t<0?new Xr(this,e):new Pr(this.wa_1,this.xa_1,t)};i(Wr).h=function(){return new Ro(this)};function Ph(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,se}e.za_1=0}function Mo(e){this.bb_1=e,this.ya_1=e.cb_1.h(),this.za_1=-1,this.ab_1=null}i(Mo).j=function(){if(this.za_1===-1&&Ph(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(Mo).i=function(){return this.za_1===-1&&Ph(this),this.za_1===1||this.ya_1.i()};function gu(e,t){this.cb_1=e,this.db_1=t}i(gu).h=function(){return new Mo(this)};function Da(){}i(Da).h=function(){return Hi};i(Da).u=function(e){return Lo};i(Da).t=function(e){return Lo};var Lo;function jh(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 Rh(e){return e.jb_1-e.ib_1|0}function Oo(e){this.gb_1=e,this.eb_1=e.hb_1.h(),this.fb_1=0}i(Oo).i=function(){return jh(this),this.fb_1<this.gb_1.jb_1&&this.eb_1.i()};i(Oo).j=function(){if(jh(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 Ve(O(r))}if(!(this.jb_1>=0)){var a="endIndex should be non-negative, but is "+this.jb_1;throw Ve(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 Ve(O(o))}}i(Pr).u=function(e){return e>=Rh(this)?Wi():new Pr(this.hb_1,this.ib_1+e|0,this.jb_1)};i(Pr).t=function(e){return e>=Rh(this)?this:new Pr(this.hb_1,this.ib_1,this.ib_1+e|0)};i(Pr).h=function(){return new Oo(this)};function yu(){return bm()}function gm(e){return Wv(e,L_(e.length))}function ym(e){switch(e.m()){case 0:return yu();case 1:return zf(e.h().j());default:return e}}function zn(){Ds=this,this.kb_1=new he(1993859828,793161749)}i(zn).equals=function(e){var t;return e!=null&&ee(e,Rr)?t=e.l():t=!1,t};i(zn).hashCode=function(){return 0};i(zn).toString=function(){return"[]"};i(zn).m=function(){return 0};i(zn).l=function(){return!0};i(zn).j9=function(e){return e.l()};i(zn).k1=function(e){return this.j9(e)};i(zn).h=function(){return Hi};var Ds;function bm(){return Ds==null&&new zn,Ds}function Fo(e,t){return e===t?0:e==null?-1:t==null?1:mf(e!=null&&l_(e)?e:$(),t)}function Vi(){}function Mh(){}var Lh;function wm(){}function za(){zs=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 zs;function km(){return zs==null&&new za,zs}function dr(){return xm()}var Oh,kc;function Cm(){if(kc)return se;kc=!0,Oh=new eo("COROUTINE_SUSPENDED",0),new eo("UNDECIDED",1),new eo("RESUMED",2)}function eo(e,t){lr.call(this,e,t)}function xm(){return Cm(),Oh}function Fh(e,t,n){var r;if(n>0)r=e>=t?t:t-Cc(t,e,n)|0;else if(n<0)r=e<=t?t:t+Cc(e,t,-n|0)|0;else throw Ve("Step is zero.");return r}function Cc(e,t,n){return ps(ps(e,n)-ps(t,n)|0,n)}function ps(e,t){var n=e%t|0;return n>=0?n:n+t|0}function Dh(){Bs=this,this.mb_1=new jr(1,0)}var Bs;function Sm(){return Bs==null&&new Dh,Bs}function jr(e,t){Sm(),On.call(this,e,t,1)}i(jr).l=function(){return this.qb_1>this.rb_1};i(jr).equals=function(e){var t;return e instanceof jr?t=this.l()&&e.l()||this.qb_1===e.qb_1&&this.rb_1===e.rb_1:t=!1,t};i(jr).hashCode=function(){return this.l()?-1:_e(31,this.qb_1)+this.rb_1|0};i(jr).toString=function(){return""+this.qb_1+".."+this.rb_1};function zh(){Ks=this,this.tb_1=new vr(1,0)}var Ks;function $m(){return Ks==null&&new zh,Ks}function vr(e,t){$m(),pr.call(this,e,t,1)}i(vr).xb=function(e){return nt(this.yb_1,e)<=0&&nt(e,this.zb_1)<=0};i(vr).l=function(){return nt(this.yb_1,this.zb_1)>0};i(vr).equals=function(e){var t;return e instanceof vr?t=this.l()&&e.l()||this.yb_1===e.yb_1&&this.zb_1===e.zb_1:t=!1,t};i(vr).hashCode=function(){var e;if(this.l())e=-1;else{var t=this.yb_1,n=Lt(t),r=_e(31,n),a=this.zb_1;e=r+Lt(a)|0}return e};i(vr).toString=function(){return He(this.yb_1)+".."+He(this.zb_1)};function Do(e,t,n){Io.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(Do).i=function(){return this.dc_1};i(Do).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){Oa.call(this),this.fc_1=n;var r=this;r.gc_1=Lt(t),this.hc_1=this.fc_1>0?nt(e,t)<=0:nt(e,t)>=0;var a=this,o;this.hc_1?o=Lt(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 ha(e)};function bu(){}i(bu).s=function(e,t,n){return new On(e,t,n)};var Bh;function On(e,t,n){if(n===0)throw Ve("Step must be non-zero.");if(n===-2147483648)throw Ve("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.qb_1=e,this.rb_1=Fh(e,t,n),this.sb_1=n}i(On).h=function(){return new Do(this.qb_1,this.rb_1,this.sb_1)};i(On).l=function(){return this.sb_1>0?this.qb_1>this.rb_1:this.qb_1<this.rb_1};i(On).equals=function(e){var t;return e instanceof On?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(On).hashCode=function(){return this.l()?-1:_e(31,_e(31,this.qb_1)+this.rb_1|0)+this.sb_1|0};i(On).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 Em(){}function pr(e,t,n){if(n===0)throw Ve("Step must be non-zero.");if(n===-2147483648)throw Ve("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.yb_1=e;var r=this,a=Lt(e),o=Lt(t);r.zb_1=ha(Fh(a,o,n)),this.ac_1=n}i(pr).h=function(){return new zo(this.yb_1,this.zb_1,this.ac_1)};i(pr).l=function(){return this.ac_1>0?nt(this.yb_1,this.zb_1)>0:nt(this.yb_1,this.zb_1)<0};i(pr).equals=function(e){var t;return e instanceof pr?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(pr).hashCode=function(){var e;if(this.l())e=-1;else{var t=this.yb_1,n=Lt(t),r=_e(31,n),a=this.zb_1,o=Lt(a);e=_e(31,r+o|0)+this.ac_1|0}return e};i(pr).toString=function(){return this.ac_1>0?He(this.yb_1)+".."+He(this.zb_1)+" step "+this.ac_1:He(this.yb_1)+" downTo "+He(this.zb_1)+" step "+(-this.ac_1|0)};function Kh(e,t,n){n!=null?e.f(n(t)):t==null||dt(t)?e.f(t):t instanceof ne?e.b6(t.x_1):e.f(Oe(t))}function Uh(e,t,n){if(n=n===u?!1:n,e===t)return!0;if(!n)return!1;var r=gc(e),a=gc(t),o;if(r===a)o=!0;else{var s=He(r).toLowerCase(),l=R(s,0),c=He(a).toLowerCase();o=l===R(c,0)}return o}function Hh(e){return wu(e,10)}function wu(e,t){xh(t);var n=e.length;if(n===0)return null;var r,a,o,s=R(e,0);if(nt(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=Q0(R(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 Wh(e){throw ph("Invalid number format: '"+e+"'")}function ku(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?cu(e,t):Ba(e,0,t,0,P(t),n)}function Cu(e,t,n){n=n===u?!1:n;var r;return typeof t=="string"?r=Us(e,t,u,n)>=0:r=Vh(e,t,0,P(e),n)>=0,r}function Bo(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?$h(e,t):Ba(e,P(e)-P(t)|0,t,0,P(t),n)}function Nm(e){var t;e:{for(var n=0;n<P(e);){var r=R(e,n);if(n=n+1|0,!Ch(r)){t=!1;break e}}t=!0}return t}function Ht(e,t,n){return n=n===u?!1:n,qm(e,t,u,n)>=0}function Ko(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?rm(e,t,n):Ba(e,n,t,0,P(t),r)}function Us(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=Vh(e,t,n,P(e),r):a=e.indexOf(t,n),a}function Ba(e,t,n,r,a,o){if(r<0||t<0||t>(P(e)-a|0)||r>(P(n)-a|0))return!1;var s=0;if(s<a)do{var l=s;if(s=s+1|0,!Uh(R(e,t+l|0),R(n,r+l|0),o))return!1}while(s<a);return!0}function Vh(e,t,n,r,a,o){o=o===u?!1:o;var s=o?tp(la(n,Gh(e)),oo(r,0)):n_(oo(n,0),la(r,P(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,$o(t,0,e,d,P(t),a))return d}while(d!==f)}else{var v=s.qb_1,b=s.rb_1,_=s.sb_1;if(_>0&&v<=b||_<0&&b<=v)do{var m=v;if(v=v+_|0,Ba(t,0,e,m,P(t),a))return m}while(m!==b)}return-1}function Im(e){var t=0,n=P(e)-1|0,r=!1;e:for(;t<=n;){var a=r?n:t,o=Ch(R(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 qm(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=bp([t]);a=Am(e,s,n,r)}else{var l=He(t);a=e.indexOf(l,n)}return a}function Gh(e){return P(e)-1|0}function Am(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=Bv(t),s=He(o);return e.indexOf(s,n)}var l=oo(n,0),c=Gh(e);if(l<=c)do{var f=l;l=l+1|0;var h=R(e,f),d;e:{for(var v=0,b=t.length;v<b;){var _=t[v];if(v=v+1|0,Uh(_,h,r)){d=!0;break e}}d=!1}if(d)return f}while(f!==c);return-1}function Tm(e,t){var n;if(e!=null&&typeof e=="string"?n=t!=null?typeof t=="string":!1:n=!1,n)return N(e,t);if(e===t)return!0;if(e==null||t==null||P(e)!==P(t))return!1;var r=0,a=P(e);if(r<a)do{var o=r;if(r=r+1|0,R(e,o)!==R(t,o))return!1}while(r<a);return!0}function Ka(e){this.jc_1=e,this.kc_1=Uo}i(Ka).r1=function(){this.kc_1===Uo&&(this.kc_1=At(this.jc_1)(),this.jc_1=null);var e=this.kc_1;return e==null||e!=null?e:$()};i(Ka).lc=function(){return this.kc_1!==Uo};i(Ka).toString=function(){return this.lc()?Oe(this.r1()):"Lazy value not initialized yet."};function Jh(){}var Uo;function Pm(e){var t=e;return t instanceof _r}function jm(e){var t;return e instanceof _r?t=e.mc_1:t=null,t}function Rm(){}function _r(e){this.mc_1=e}i(_r).equals=function(e){var t;return e instanceof _r?t=N(this.mc_1,e.mc_1):t=!1,t};i(_r).hashCode=function(){return oe(this.mc_1)};i(_r).toString=function(){return"Failure("+this.mc_1.toString()+")"};function Mm(e){return new _r(e)}function Lm(e){var t=e;if(t instanceof _r)throw e.mc_1}function Hs(e){e=e===u?"An operation is not implemented.":e,v0(e,this),B(this,Hs)}function Sn(e,t){this.nc_1=e,this.oc_1=t}i(Sn).toString=function(){return"("+Oe(this.nc_1)+", "+Oe(this.oc_1)+")"};i(Sn).pc=function(){return this.nc_1};i(Sn).qc=function(){return this.oc_1};i(Sn).hashCode=function(){var e=this.nc_1==null?0:oe(this.nc_1);return e=_e(e,31)+(this.oc_1==null?0:oe(this.oc_1))|0,e};i(Sn).equals=function(e){if(this===e)return!0;if(!(e instanceof Sn))return!1;var t=e instanceof Sn?e:$();return!(!N(this.nc_1,t.nc_1)||!N(this.oc_1,t.oc_1))};function xc(e,t){return new Sn(e,t)}i(mt).asJsReadonlyArrayView=Yc;i(xt).p4=Dv;i(ut).asJsReadonlyArrayView=Yc;se=new Nl;Za=null;Aa=new Zf;nh=new Oi;cn=new Or;fu=new Eo;Hi=new hi;Lo=new Da;Lh=new Mh;Bh=new bu;Uo=new Jh;var z=Math.imul;Ft(In,"Stringify");function xu(){return this.uc()-this.tc()|0}Ft(Yo,"Position",u,u,[In]);w(Kt,"Expression",u,u,[Yo]);w(ce,"BinaryExpression",u,Kt);w(Ho,"sam$kotlin_Comparator$0");gt(_a);w(U,"CompareOperator",u,u,[In]);ie(Wn,"Equal",u,U);ie(Vn,"NotEqual",u,U);ie(Gn,"Start",u,U);ie(Jn,"NotStart",u,U);ie(Qn,"Include",u,U);ie(Yn,"NotInclude",u,U);ie(Xn,"End",u,U);ie(Zn,"NotEnd",u,U);ie(er,"Less",u,U);ie(tr,"LessEqual",u,U);ie(nr,"More",u,U);ie(rr,"MoreEqual",u,U);ie(ir,"Matches",u,U);ie(ar,"NotMatches",u,U);w(vi,"ConnectExpression",u,u,[In]);w(Go,"sam$kotlin_Comparator$0");gt(ma);w(yt,"ConnectOperator",u,u,[In]);ie(Sr,"BeforeBrother",u,yt);ie($r,"AfterBrother",u,yt);ie(Er,"Ancestor",u,yt);ie(Nr,"Child",u,yt);ie(Ir,"Descendant",u,yt);w(ct,"ConnectSegment",ct,u,[In]);w(Ot,"ConnectWrapper",u,u,[In]);w(Ye,"Context");w(vt,"SelectorCheckException",u,gn);w(Xt,"UnknownIdentifierException",u,vt);w(Zt,"UnknownMemberException",u,vt);w(en,"UnknownIdentifierMethodException",u,vt);w(tn,"UnknownMemberMethodException",u,vt);w(ft,"MismatchParamTypeException",u,vt);w(Ct,"MismatchExpressionTypeException",u,vt);w(nn,"MismatchOperatorTypeException",u,vt);w(Ee,"LogicalExpression",u,Kt);w(Qo,"sam$kotlin_Comparator$0");gt(ga);w(Nn,"LogicalOperator",u,u,[In]);ie(qr,"AndOperator",u,Nn);ie(Ar,"OrOperator",u,Nn);w(_t,"NotExpression",u,Kt);w(Te,"PolynomialExpression",Te,vi);w(We,"PositionImpl",u,u,[Yo]);w(ot,"PropertySegment",u,u,[In]);w(Xe,"PropertyWrapper",u,u,[In]);w(Nt,"QuickFindValue");gt(Xo);w(zt,"Selector",u,u,[In]);w(st,"SyntaxError",u,gn);gt(Au);Ea(Zr,Tt,u,[1]);Ea(ei,Tt,u,[1]);Ea(ti,Tt,u,[1]);Ea(ni,Tt,u,[1]);Ea(ri,Tt,u,[1]);w(Ze,"Transform");w(It,"TupleExpression",u,vi);w(an,"PrimitiveType");ie(Gr,"BooleanType",u,an);ie(Jr,"IntType",u,an);ie(Qr,"StringType",u,an);w(rn,"ObjectType",u,an);w(de,"MethodInfo");w(te,"PropInfo");w(at,"TypeInfo");w(et,"ValueExpression",u,u,[Yo]);w(Pt,"Variable",u,et);w(Fe,"Identifier",u,Pt);w(Ne,"MemberExpression",u,Pt);w(ke,"CallExpression",u,Pt);w(Wt,"LiteralExpression",u,et);w(qt,"NullLiteral",u,Wt);w(ht,"BooleanLiteral",u,Wt);w(Ge,"IntLiteral",u,Wt);w(fe,"StringLiteral",u,Wt);w(Ue,"Parser");w(Pe,"ParserResult");ie(Ha,"ParserSet");w(pi,"DefaultTypeInfo");function ce(e,t,n,r,a){Kt.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 qi([this.left.properties,this.right.properties])};i(ce).dd=function(){return qi([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=z(e,31)+this.sc_1|0,e=z(e,31)+oe(this.left)|0,e=z(e,31)+this.operator.hashCode()|0,e=z(e,31)+oe(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||!N(this.left,t.left)||!this.operator.equals(t.operator)||!N(this.right,t.right))};function Om(e,t,n){if(e===n)return!0;if(P(e)!==P(n))return!1;var r=P(e)-1|0;if(0<=r)do{var a=r;if(r=r+-1|0,R(e,a)!==R(n,a))return!1}while(0<=r);return!0}function Ho(e){this.id_1=e}i(Ho).b9=function(e,t){return this.id_1(e,t)};i(Ho).compare=function(e,t){return this.b9(e,t)};function Fm(){var e=hu([Vr(),Qh(),Fr(),Yh(),Su(),Xh(),$u(),Zh(),Ua(),ed(),td(),nd(),Vo(),Eu()]),t=Dm,n=new Ho(t),r=Pl(e,n);return pn(r)}function Dm(e,t){var n=-e.key.length|0,r=-t.key.length|0;return Fo(n,r)}function _a(){Ws=this;var e=this;e.jd_1=va(Fm)}i(_a).kd=function(){var e=this.jd_1;return zm(),e.r1()};var Ws;function Wo(){return Ws==null&&new _a,Ws}function Wn(){Vs=this,U.call(this,"=")}i(Wn).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&dt(a)?l=o!=null?dt(o):!1:l=!1,l?s=Om(a,Wo(),o):s=N(a,o),s};i(Wn).od=function(e,t){return!0};i(Wn).toString=function(){return"Equal"};i(Wn).hashCode=function(){return 717536815};i(Wn).equals=function(e){return this===e?!0:e instanceof Wn?(e instanceof Wn||$(),!0):!1};var Vs;function Vr(){return Vs==null&&new Wn,Vs}function Vn(){Gs=this,U.call(this,"!=")}i(Vn).ad=function(e,t,n,r){return!Vr().ad(e,t,n,r)};i(Vn).od=function(e,t){return!0};i(Vn).toString=function(){return"NotEqual"};i(Vn).hashCode=function(){return 1058184006};i(Vn).equals=function(e){return this===e?!0:e instanceof Vn?(e instanceof Vn||$(),!0):!1};var Gs;function Qh(){return Gs==null&&new Vn,Gs}function Gn(){Js=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&&dt(a)?l=o!=null?dt(o):!1:l=!1,l?s=ku(a,o):s=!1,s};i(Gn).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(Gn).toString=function(){return"Start"};i(Gn).hashCode=function(){return 730536797};i(Gn).equals=function(e){return this===e?!0:e instanceof Gn?(e instanceof Gn||$(),!0):!1};var Js;function Fr(){return Js==null&&new Gn,Js}function Jn(){Qs=this,U.call(this,"!^=")}i(Jn).ad=function(e,t,n,r){var a=n.nd(e,t),o=r.nd(e,t),s,l;return a!=null&&dt(a)?l=o!=null?dt(o):!1:l=!1,l?s=!ku(a,o):s=!1,s};i(Jn).od=function(e,t){return Fr().od(e,t)};i(Jn).toString=function(){return"NotStart"};i(Jn).hashCode=function(){return 1071183988};i(Jn).equals=function(e){return this===e?!0:e instanceof Jn?(e instanceof Jn||$(),!0):!1};var Qs;function Yh(){return Qs==null&&new Jn,Qs}function Qn(){Ys=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&&dt(a)?l=o!=null?dt(o):!1:l=!1,l?s=Cu(a,o):s=!1,s};i(Qn).od=function(e,t){return Fr().od(e,t)};i(Qn).toString=function(){return"Include"};i(Qn).hashCode=function(){return 1510988003};i(Qn).equals=function(e){return this===e?!0:e instanceof Qn?(e instanceof Qn||$(),!0):!1};var Ys;function Su(){return Ys==null&&new Qn,Ys}function Yn(){Xs=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&&dt(a)?l=o!=null?dt(o):!1:l=!1,l?s=!Cu(a,o):s=!1,s};i(Yn).od=function(e,t){return Fr().od(e,t)};i(Yn).toString=function(){return"NotInclude"};i(Yn).hashCode=function(){return-1839543238};i(Yn).equals=function(e){return this===e?!0:e instanceof Yn?(e instanceof Yn||$(),!0):!1};var Xs;function Xh(){return Xs==null&&new Yn,Xs}function Xn(){Zs=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&&dt(a)?l=o!=null?dt(o):!1:l=!1,l?s=Bo(a,o):s=!1,s};i(Xn).od=function(e,t){return Fr().od(e,t)};i(Xn).toString=function(){return"End"};i(Xn).hashCode=function(){return 1234264726};i(Xn).equals=function(e){return this===e?!0:e instanceof Xn?(e instanceof Xn||$(),!0):!1};var Zs;function $u(){return Zs==null&&new Xn,Zs}function Zn(){el=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&&dt(a)?l=o!=null?dt(o):!1:l=!1,l?s=!Bo(a,o):s=!1,s};i(Zn).od=function(e,t){return Fr().od(e,t)};i(Zn).toString=function(){return"NotEnd"};i(Zn).hashCode=function(){return 1024563565};i(Zn).equals=function(e){return this===e?!0:e instanceof Zn?(e instanceof Zn||$(),!0):!1};var el;function Zh(){return el==null&&new Zn,el}function er(){tl=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&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a<o:s=!1,s};i(er).od=function(e,t){var n,r;if(e instanceof Pt?r=!0:r=e instanceof Ge,r){var a;t instanceof Ge?a=!0:a=t instanceof Pt,n=a}else n=!1;return n};i(er).toString=function(){return"Less"};i(er).hashCode=function(){return-392298690};i(er).equals=function(e){return this===e?!0:e instanceof er?(e instanceof er||$(),!0):!1};var tl;function Ua(){return tl==null&&new er,tl}function tr(){nl=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&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a<=o:s=!1,s};i(tr).od=function(e,t){return Ua().od(e,t)};i(tr).toString=function(){return"LessEqual"};i(tr).hashCode=function(){return-2095624554};i(tr).equals=function(e){return this===e?!0:e instanceof tr?(e instanceof tr||$(),!0):!1};var nl;function ed(){return nl==null&&new tr,nl}function nr(){rl=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){return Ua().od(e,t)};i(nr).toString=function(){return"More"};i(nr).hashCode=function(){return-392259334};i(nr).equals=function(e){return this===e?!0:e instanceof nr?(e instanceof nr||$(),!0):!1};var rl;function td(){return rl==null&&new nr,rl}function rr(){il=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 Ua().od(e,t)};i(rr).toString=function(){return"MoreEqual"};i(rr).hashCode=function(){return-648189350};i(rr).equals=function(e){return this===e?!0:e instanceof rr?(e instanceof rr||$(),!0):!1};var il;function nd(){return il==null&&new rr,il}function ir(){al=this,U.call(this,"~=")}i(ir).ad=function(e,t,n,r){var a=n.nd(e,t),o,s;return a!=null&&dt(a)?s=r instanceof fe:s=!1,s?o=r.xd_1(a):o=!1,o};i(ir).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(ir).toString=function(){return"Matches"};i(ir).hashCode=function(){return 409275758};i(ir).equals=function(e){return this===e?!0:e instanceof ir?(e instanceof ir||$(),!0):!1};var al;function Vo(){return al==null&&new ir,al}function ar(){ol=this,U.call(this,"!~=")}i(ar).ad=function(e,t,n,r){var a=n.nd(e,t),o,s;return a!=null&&dt(a)?s=r instanceof fe:s=!1,s?o=!r.xd_1(a):o=!1,o};i(ar).od=function(e,t){return Vo().od(e,t)};i(ar).toString=function(){return"NotMatches"};i(ar).hashCode=function(){return 1353711813};i(ar).equals=function(e){return this===e?!0:e instanceof ar?(e instanceof ar||$(),!0):!1};var ol;function Eu(){return ol==null&&new ar,ol}function U(e){Wo(),this.key=e}i(U).q1=function(){return this.key};i(U).stringify=function(){return this.key};function zm(){return Na("allSubClasses",1,So,function(e){return e.allSubClasses},null)}function vi(){}function Go(e){this.ae_1=e}i(Go).b9=function(e,t){return this.ae_1(e,t)};i(Go).compare=function(e,t){return this.b9(e,t)};function Bm(){var e=hu([rd(),id(),fo(),ad(),Nu()]),t=Km,n=new Go(t);return Pl(e,n)}function Km(e,t){var n=-e.key.length|0,r=-t.key.length|0;return Fo(n,r)}function ma(){sl=this;var e=this;e.be_1=va(Bm)}i(ma).kd=function(){var e=this.be_1;return Um(),e.r1()};var sl;function Jo(){return sl==null&&new ma,sl}function Sr(){ll=this,yt.call(this,"+")}i(Sr).ce=function(e,t,n){return t.traverseBeforeBrothers(e,n)};i(Sr).toString=function(){return"BeforeBrother"};i(Sr).hashCode=function(){return 1632618113};i(Sr).equals=function(e){return this===e?!0:e instanceof Sr?(e instanceof Sr||$(),!0):!1};var ll;function rd(){return ll==null&&new Sr,ll}function $r(){ul=this,yt.call(this,"-")}i($r).ce=function(e,t,n){return t.traverseAfterBrothers(e,n)};i($r).toString=function(){return"AfterBrother"};i($r).hashCode=function(){return 1215887620};i($r).equals=function(e){return this===e?!0:e instanceof $r?(e instanceof $r||$(),!0):!1};var ul;function id(){return ul==null&&new $r,ul}function Er(){cl=this,yt.call(this,">")}i(Er).ce=function(e,t,n){return t.traverseAncestors(e,n)};i(Er).toString=function(){return"Ancestor"};i(Er).hashCode=function(){return 736770963};i(Er).equals=function(e){return this===e?!0:e instanceof Er?(e instanceof Er||$(),!0):!1};var cl;function fo(){return cl==null&&new Er,cl}function Nr(){fl=this,yt.call(this,"<")}i(Nr).ce=function(e,t,n){return t.traverseChildren(e,n)};i(Nr).toString=function(){return"Child"};i(Nr).hashCode=function(){return-1105093796};i(Nr).equals=function(e){return this===e?!0:e instanceof Nr?(e instanceof Nr||$(),!0):!1};var fl;function ad(){return fl==null&&new Nr,fl}function Ir(){hl=this,yt.call(this,"<<")}i(Ir).ce=function(e,t,n){return t.traverseDescendants(e,n)};i(Ir).toString=function(){return"Descendant"};i(Ir).hashCode=function(){return 2093403837};i(Ir).equals=function(e){return this===e?!0:e instanceof Ir?(e instanceof Ir||$(),!0):!1};var hl;function Nu(){return hl==null&&new Ir,hl}function yt(e){Jo(),this.key=e}i(yt).q1=function(){return this.key};i(yt).stringify=function(){return this.key};function Um(){return Na("allSubClasses",1,So,function(e){return e.allSubClasses},null)}function ct(e,t){e=e===u?fo():e,t=t===u?new Te:t,this.operator=e,this.connectExpression=t;var n=this,r,a,o;if(N(this.operator,fo())){var s=this.connectExpression;o=s instanceof Te}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(N(this.operator,Nu())){var d=this.connectExpression;h=d instanceof Te}else h=!1;h?f=this.connectExpression.a===1:f=!1,f?c=this.connectExpression.b===0:c=!1,l.isMatchAnyDescendant=c}i(ct).wc=function(){return this.operator};i(ct).je=function(){return this.connectExpression};i(ct).stringify=function(){return this.isMatchAnyAncestor?"":this.operator.stringify()+this.connectExpression.stringify()};i(ct).ke=function(e,t){return this.operator.ce(e,t,this.connectExpression)};i(ct).le=function(){return this.isMatchAnyAncestor};i(ct).me=function(){return this.isMatchAnyDescendant};i(ct).pc=function(){return this.operator};i(ct).qc=function(){return this.connectExpression};i(ct).ne=function(e,t){return new ct(e,t)};i(ct).copy=function(e,t,n){return e=e===u?this.operator:e,t=t===u?this.connectExpression:t,this.ne(e,t)};i(ct).toString=function(){return"ConnectSegment(operator="+O(this.operator)+", connectExpression="+O(this.connectExpression)+")"};i(ct).hashCode=function(){var e=oe(this.operator);return e=z(e,31)+oe(this.connectExpression)|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!(!N(this.operator,t.operator)||!N(this.connectExpression,t.connectExpression))};function Ot(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(Ot).qe=function(){return this.segment};i(Ot).re=function(){return this.to};i(Ot).stringify=function(){var e=this.to.stringify()+" "+this.segment.stringify();return O(Im(dt(e)?e:$()))};i(Ot).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(Ot).pc=function(){return this.segment};i(Ot).qc=function(){return this.to};i(Ot).se=function(e,t){return new Ot(e,t)};i(Ot).copy=function(e,t,n){return e=e===u?this.segment:e,t=t===u?this.to:t,this.se(e,t)};i(Ot).toString=function(){return"ConnectWrapper(segment="+this.segment.toString()+", to="+this.to.toString()+")"};i(Ot).hashCode=function(){var e=this.segment.hashCode();return e=z(e,31)+this.to.hashCode()|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.segment.equals(t.segment)||!this.to.equals(t.to))};function Ye(e,t){t=t===u?null:t,this.current=e,this.prev=t}i(Ye).te=function(){return this.current};i(Ye).ue=function(){return this.prev};i(Ye).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(Ye).get=function(e){if(e===0)return this;var t=this.getPrev(e-1|0),n;if(t==null)throw tu();return n=t,n};i(Ye).toList=function(){for(var e=Nh([this.current]),t=this.prev;t!=null;)e.e(t.current),t=t.prev;return e};i(Ye).toArray=function(){var e=this.toList(),t=ee(e,Fn)?e:$(),n=pn(t);return Li(n)?n:$()};i(Ye).next=function(e){return new Ye(e,this)};i(Ye).pc=function(){return this.current};i(Ye).qc=function(){return this.prev};i(Ye).ve=function(e,t){return new Ye(e,t)};i(Ye).copy=function(e,t,n){return e=e===u?this.current:e,t=t===u?this.prev:t,this.ve(e,t)};i(Ye).toString=function(){return"Context(current="+Oe(this.current)+", prev="+Oe(this.prev)+")"};i(Ye).hashCode=function(){var e=this.current==null?0:oe(this.current);return e=z(e,31)+(this.prev==null?0:this.prev.hashCode())|0,e};i(Ye).equals=function(e){if(this===e)return!0;if(!(e instanceof Ye))return!1;var t=e instanceof Ye?e:$();return!(!N(this.current,t.current)||!N(this.prev,t.prev))};function vt(e){bo(e,this),B(this,vt),this.we_1=e}i(vt).i7=function(){return this.we_1};function Xt(e){vt.call(this,"Unknown Identifier: "+e.bf_1),B(this,Xt),this.value=e}i(Xt).r1=function(){return this.value};i(Xt).pc=function(){return this.value};i(Xt).ef=function(e){return new Xt(e)};i(Xt).copy=function(e,t){return e=e===u?this.value:e,this.ef(e)};i(Xt).toString=function(){return"UnknownIdentifierException(value="+this.value.toString()+")"};i(Xt).hashCode=function(){return this.value.hashCode()};i(Xt).equals=function(e){if(this===e)return!0;if(!(e instanceof Xt))return!1;var t=e instanceof Xt?e:$();return!!this.value.equals(t.value)};function Zt(e){vt.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){vt.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){vt.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 ft(e,t,n){vt.call(this,"Mismatch Param Type: "+Oe(t.value)+" should be "+n.key),B(this,ft),this.call=e,this.argument=t,this.type=n}i(ft).pf=function(){return this.call};i(ft).qf=function(){return this.argument};i(ft).rf=function(){return this.type};i(ft).pc=function(){return this.call};i(ft).qc=function(){return this.argument};i(ft).ed=function(){return this.type};i(ft).sf=function(e,t,n){return new ft(e,t,n)};i(ft).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(ft).toString=function(){return"MismatchParamTypeException(call="+this.call.toString()+", argument="+O(this.argument)+", type="+O(this.type)+")"};i(ft).hashCode=function(){var e=this.call.hashCode();return e=z(e,31)+oe(this.argument)|0,e=z(e,31)+oe(this.type)|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.call.equals(t.call)||!N(this.argument,t.argument)||!N(this.type,t.type))};function Ct(e,t,n){vt.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=z(e,31)+oe(this.leftType)|0,e=z(e,31)+oe(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)||!N(this.leftType,t.leftType)||!N(this.rightType,t.rightType))};function nn(e){vt.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 Kt(){}function Ee(e,t,n,r,a){Kt.call(this),this.ag_1=e,this.bg_1=t,this.left=n,this.operator=r,this.right=a}i(Ee).tc=function(){return this.ag_1};i(Ee).uc=function(){return this.bg_1};i(Ee).vc=function(){return this.left};i(Ee).wc=function(){return this.operator};i(Ee).xc=function(){return this.right};i(Ee).match=function(e,t){return this.operator.value.compare(e,t,this.left,this.right)};i(Ee).bd=function(){var e=this.left.binaryExpressions,t=this.right.binaryExpressions;return e.concat(t)};i(Ee).stringify=function(){var e,t,n=this.left;n instanceof Ee?t=!N(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 Ee?o=!N(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(Ee).pc=function(){return this.ag_1};i(Ee).qc=function(){return this.bg_1};i(Ee).ed=function(){return this.left};i(Ee).fd=function(){return this.operator};i(Ee).gd=function(){return this.right};i(Ee).cg=function(e,t,n,r,a){return new Ee(e,t,n,r,a)};i(Ee).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(Ee).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(Ee).hashCode=function(){var e=this.ag_1;return e=z(e,31)+this.bg_1|0,e=z(e,31)+oe(this.left)|0,e=z(e,31)+this.operator.hashCode()|0,e=z(e,31)+oe(this.right)|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.ag_1!==t.ag_1||this.bg_1!==t.bg_1||!N(this.left,t.left)||!this.operator.equals(t.operator)||!N(this.right,t.right))};function Qo(e){this.dg_1=e}i(Qo).b9=function(e,t){return this.dg_1(e,t)};i(Qo).compare=function(e,t){return this.b9(e,t)};function Hm(){var e=hu([qu(),od()]),t=Wm,n=new Qo(t);return Pl(e,n)}function Wm(e,t){var n=-e.key.length|0,r=-t.key.length|0;return Fo(n,r)}function ga(){dl=this;var e=this;e.eg_1=va(Hm)}i(ga).kd=function(){var e=this.eg_1;return Vm(),e.r1()};var dl;function Iu(){return dl==null&&new ga,dl}function qr(){vl=this,Nn.call(this,"&&")}i(qr).compare=function(e,t,n,r){return n.match(e,t)&&r.match(e,t)};i(qr).toString=function(){return"AndOperator"};i(qr).hashCode=function(){return-772304006};i(qr).equals=function(e){return this===e?!0:e instanceof qr?(e instanceof qr||$(),!0):!1};var vl;function qu(){return vl==null&&new qr,vl}function Ar(){pl=this,Nn.call(this,"||")}i(Ar).compare=function(e,t,n,r){return n.match(e,t)||r.match(e,t)};i(Ar).toString=function(){return"OrOperator"};i(Ar).hashCode=function(){return-302302232};i(Ar).equals=function(e){return this===e?!0:e instanceof Ar?(e instanceof Ar||$(),!0):!1};var pl;function od(){return pl==null&&new Ar,pl}function Nn(e){Iu(),this.key=e}i(Nn).q1=function(){return this.key};i(Nn).stringify=function(){return this.key};function Vm(){return Na("allSubClasses",1,So,function(e){return e.allSubClasses},null)}function _t(e,t){Kt.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=z(e,31)+oe(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||!N(this.expression,t.expression))};function An(e){var t="invalid PolynomialExpression: a="+e.a+", b="+e.b;throw Tr(O(t))}function Gm(e){return function(t){return z(e.a,t)+e.b|0}}function Jm(e){return function(t){return z(e.a,t)+e.b|0}}function Qm(e,t){return function(n){return z(e.a,t+n|0)+e.b|0}}function Ym(e){return function(t){return t!==0&&An(e),e.b}}function Xm(e,t){return function(n){return z(e.a,t-n|0)+e.b|0}}function Te(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=z(this.a,o)+this.b|0}r=a}else{var s;if(this.a===0){var l;this.b>0?l=this.b:An(this),s=l}else{var c;if(this.b>0){var f;if(this.b<=(-this.a|0))An(this);else{var h=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;f=z(this.a,h)+this.b|0}c=f}else An(this);s=c}r=s-1|0}n.fe_1=r;var d=this,v;if(this.a>0)v=null;else{var b;if(this.a===0){var _;this.b>0?_=this.b:An(this),b=_}else{var m;if(this.b>0){var g;this.b<=(-this.a|0)?An(this):g=this.a+this.b|0,m=g}else An(this);b=m}v=b-1|0}d.ge_1=v,this.he_1=this.fe_1===this.ge_1;var p=this,C;if(this.a>0){var k;if(this.b>0)k=Gm(this);else if(this.b===0)k=Jm(this);else{var x=((-this.b|0)/this.a|0)+1|0;k=Qm(this,x)}C=k}else if(this.a===0){var I;this.b>0?I=Ym(this):An(this),C=I}else{var F;if(this.b>0){var J;if(this.b<=(-this.a|0))An(this);else{var K=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;J=Xm(this,K)}F=J}else An(this);C=F}p.ie_1=C}i(Te).ig=function(){return this.a};i(Te).jg=function(){return this.b};i(Te).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(Te).yd=function(){return this.fe_1};i(Te).zd=function(){return this.ge_1};i(Te).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(Te).getOffset=function(e){return this.ie_1(e)-1|0};i(Te).pc=function(){return this.a};i(Te).qc=function(){return this.b};i(Te).kg=function(e,t){return new Te(e,t)};i(Te).copy=function(e,t,n){return e=e===u?this.a:e,t=t===u?this.b:t,this.kg(e,t)};i(Te).toString=function(){return"PolynomialExpression(a="+this.a+", b="+this.b+")"};i(Te).hashCode=function(){var e=this.a;return e=z(e,31)+this.b|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.a!==t.a||this.b!==t.b)};function In(){}function We(e,t,n){this.yc_1=e,this.zc_1=t,this.value=n}i(We).tc=function(){return this.yc_1};i(We).uc=function(){return this.zc_1};i(We).r1=function(){return this.value};i(We).stringify=function(){return this.value.stringify()};i(We).pc=function(){return this.yc_1};i(We).qc=function(){return this.zc_1};i(We).ed=function(){return this.value};i(We).lg=function(e,t,n){return new We(e,t,n)};i(We).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(We).toString=function(){return"PositionImpl(start="+this.yc_1+", end="+this.zc_1+", value="+O(this.value)+")"};i(We).hashCode=function(){var e=this.yc_1;return e=z(e,31)+this.zc_1|0,e=z(e,31)+oe(this.value)|0,e};i(We).equals=function(e){if(this===e)return!0;if(!(e instanceof We))return!1;var t=e instanceof We?e:$();return!(this.yc_1!==t.yc_1||this.zc_1!==t.zc_1||!N(this.value,t.value))};function Yo(){}function Zm(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 P(o)===e.name.length?nm(o,e.name):P(o)>e.name.length?R(o,(P(o)-e.name.length|0)-1|0)===46&&Bo(o,e.name):!1}function eg(e){return"["+e.stringify()+"]"}function ot(e,t,n){this.at=e,this.name=t,this.expressions=n,this.mg_1=Nm(this.name)||this.name==="*"}i(ot).ng=function(){return this.at};i(ot).og=function(){return this.name};i(ot).pg=function(){return this.expressions};i(ot).bd=function(){for(var e=this.expressions,t=lt(),n=e.h();n.i();){var r=n.j(),a=Il(r.binaryExpressions);No(t,a)}return pn(t)};i(ot).stringify=function(){var e=this.at?"@":"",t=e+this.name;return t+xn(this.expressions,"",u,u,u,u,eg)};i(ot).match=function(e,t){var n;if(Zm(this,e.current,t)){var r;e:{var a=this.expressions,o;if(ee(a,Ie)?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(ot).pc=function(){return this.at};i(ot).qc=function(){return this.name};i(ot).ed=function(){return this.expressions};i(ot).qg=function(e,t,n){return new ot(e,t,n)};i(ot).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(ot).toString=function(){return"PropertySegment(at="+this.at+", name="+this.name+", expressions="+O(this.expressions)+")"};i(ot).hashCode=function(){var e=Fl(this.at);return e=z(e,31)+Ut(this.name)|0,e=z(e,31)+oe(this.expressions)|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.at!==t.at||this.name!==t.name||!N(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,Ie)?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=N(l.operator.value,Vr()):f=!1,f?c=N(l.left.value,"depth")&&N(l.right.value,0)||N(l.left.value,"parent")&&N(l.right.value,"null"):c=!1,c){r=!0;break e}}r=!1}n.isMatchRoot=r,this.quickFindValue=tg(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="+Oe(this.to)+")"};i(Xe).hashCode=function(){var e=this.segment.hashCode();return e=z(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)||!N(this.to,t.to))};function Nt(e,t,n){this.id=e,this.vid=t,this.text=n,this.canQf=this.id!=null||this.vid!=null||this.text!=null}i(Nt).ug=function(){return this.id};i(Nt).vg=function(){return this.vid};i(Nt).wg=function(){return this.text};i(Nt).xg=function(){return this.canQf};i(Nt).pc=function(){return this.id};i(Nt).qc=function(){return this.vid};i(Nt).ed=function(){return this.text};i(Nt).yg=function(e,t,n){return new Nt(e,t,n)};i(Nt).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(Nt).toString=function(){return"QuickFindValue(id="+this.id+", vid="+this.vid+", text="+this.text+")"};i(Nt).hashCode=function(){var e=this.id==null?0:Ut(this.id);return e=z(e,31)+(this.vid==null?0:Ut(this.vid))|0,e=z(e,31)+(this.text==null?0:Ut(this.text))|0,e};i(Nt).equals=function(e){if(this===e)return!0;if(!(e instanceof Nt))return!1;var t=e instanceof Nt?e:$();return!(this.id!=t.id||this.vid!=t.vid||this.text!=t.text)};function tg(e){var t=Xa(e.expressions),n,r,a,o;if(t instanceof ce?o=N(t.left.value,"id"):o=!1,o?a=N(t.operator.value,Vr()):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=Xa(e.expressions),f,h,d,v;if(c instanceof ce?v=N(c.left.value,"vid"):v=!1,v?d=N(c.operator.value,Vr()):d=!1,d){var b=c.right;h=b instanceof fe}else h=!1;h?f=c.right.vd_1:f=null;var _=f,m=Xa(e.expressions),g,p,C,k;if(m instanceof ce?k=N(m.left.value,"text"):k=!1,k?C=N(m.operator.value,Vr())||N(m.operator.value,Fr())||N(m.operator.value,Su())||N(m.operator.value,$u()):C=!1,C){var x=m.right;p=x instanceof fe}else p=!1;p?g=m.right.vd_1:g=null;var I=g;return new Nt(l,_,I)}function sd(){Gi();var e=ld;return ag(),e.r1()}var ld;function ud(){Gi();var e=cd;return og(),e.r1()}var cd;function Xo(){}i(Xo).parse=function(e){return dd(e)};i(Xo).parseOrNull=function(e){var t;try{t=dd(e)}catch(r){var n;if(r instanceof gn)n=null;else throw r;t=n}return t};var fd;function ng(){return fd}function zt(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=lt();f!=null;){var d=f;h.e(d.segment.operator.key),f=f.to.to}c.connectKeys=pn(h);for(var v=this,b=this.propertyWrapper,_=lt();b!=null;){var m=b.segment;pm(_,m.binaryExpressions);var g=b.to;b=g==null?null:g.to}var p=Jv(_);v.binaryExpressions=pn(p);var C=this,k;e:{if(this.connectKeys.length!==0){k=!0;break e}for(var x=this.binaryExpressions,I=0,F=x.length;I<F;){var J=x[I];I=I+1|0;var K;t:{for(var re=J.properties,G=0,Re=re.length;G<Re;){var Ce=re[G];if(G=G+1|0,Cs(sd(),Ce)){K=!0;break t}}K=!1}if(K){k=!0;break e}var be;t:{for(var ve=J.methods,xe=0,De=ve.length;xe<De;){var tt=ve[xe];if(xe=xe+1|0,Cs(ud(),tt)){be=!0;break t}}be=!1}if(be){k=!0;break e}}k=!1}C.useCache=k}i(zt).zg=function(){return this.source};i(zt).ah=function(){return this.propertyWrapper};i(zt).stringify=function(){return this.propertyWrapper.stringify()};i(zt).bh=function(){return this.targetIndex};i(zt).matchContext=function(e,t){return this.propertyWrapper.matchContext(new Ye(e),t)};i(zt).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(zt).sg=function(){return this.quickFindValue};i(zt).rg=function(){return this.isMatchRoot};i(zt).ch=function(){return this.connectKeys};i(zt).bd=function(){return this.binaryExpressions};i(zt).dh=function(){return this.useCache};i(zt).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=Sc(a.left,e),s=Sc(a.right,e);if(o!=null&&s!=null&&!N(o,s))throw new Ct(a,o,s)}}catch(c){if(c instanceof vt){var l=c;return l}else throw c}return null};function Sc(e,t){Gi();var n;return e instanceof qt?n=null:e instanceof ht?n=ya():e instanceof Ge?n=ba():e instanceof fe?n=wa():e instanceof Pt?n=to(e,t).type:Cr(),n}function to(e,t){Gi();var n;if(e instanceof ke){var r=e.callee,a;if(r instanceof ke)throw Ve("Unsupported nested call");if(r instanceof Fe){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 Ne){var v=to(e.callee.object0,t).methods,b;e:{for(var _=0,m=v.length;_<m;){var g=v[_];if(_=_+1|0,g.name===e.callee.property&&g.params.length===e.arguments.m()){b=g;break e}}b=null}var p=b,C;if(p==null)throw new tn(e.callee);C=p,a=C}else Cr();for(var k=a,x=0,I=k.params,F=0,J=I.length;F<J;){var K=I[F];F=F+1|0;var re=x;x=re+1|0;var G=e.arguments.k(re);if(!(G instanceof qt))if(G instanceof ht){if(!N(K.type,ya()))throw new ft(e,G,ya())}else if(G instanceof Ge){if(!N(K.type,ba()))throw new ft(e,G,ba())}else if(G instanceof fe){if(!N(K.type,wa()))throw new ft(e,G,wa())}else G instanceof Pt?to(G,K):Cr()}return k.returnType}else if(e instanceof Fe){var Re=t.props,Ce;e:{for(var be=0,ve=Re.length;be<ve;){var xe=Re[be];if(be=be+1|0,xe.name===e.bf_1){Ce=xe;break e}}Ce=null}var De=Ce,tt=De==null?null:De.type,pe;if(tt==null)throw new Xt(e);pe=tt,n=pe}else if(e instanceof Ne){var bt=to(e.object0,t).props,jt;e:{for(var Vt=0,qn=bt.length;Vt<qn;){var T=bt[Vt];if(Vt=Vt+1|0,T.name===e.property){jt=T;break e}}jt=null}var ae=jt,me=ae==null?null:ae.type,ze;if(me==null)throw new Zt(e);ze=me,n=ze}else Cr();return n}function rg(){return Gi(),["index","parent","depth"]}function ig(){return Gi(),["getChild"]}function ag(){return Na("useCacheProperties",0,ou,function(){return sd()},null)}function og(){return Na("useCacheMethods",0,ou,function(){return ud()},null)}var $c;function Gi(){$c||($c=!0,ld=va(rg),cd=va(ig))}function st(e,t,n,r){r=r===u?null:r;var a=Yt(n,t);bo("expected "+e+" in selector at position "+t+", but got "+Oe(a==null?null:new ne(a)),this),B(this,st),this.expectedValue=e,this.position=t,this.source=n,this.jh_1=r}i(st).kh=function(){return this.expectedValue};i(st).lh=function(){return this.position};i(st).zg=function(){return this.source};i(st).j7=function(){return this.jh_1};i(st).pc=function(){return this.expectedValue};i(st).qc=function(){return this.position};i(st).ed=function(){return this.source};i(st).fd=function(){return this.jh_1};i(st).mh=function(e,t,n,r){return new st(e,t,n,r)};i(st).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(st).toString=function(){return"SyntaxError(expectedValue="+this.expectedValue+", position="+this.position+", source="+this.source+", cause="+Oe(this.jh_1)+")"};i(st).hashCode=function(){var e=Ut(this.expectedValue);return e=z(e,31)+this.position|0,e=z(e,31)+Ut(this.source)|0,e=z(e,31)+(this.jh_1==null?0:oe(this.jh_1))|0,e};i(st).equals=function(e){if(this===e)return!0;if(!(e instanceof st))return!1;var t=e instanceof st?e:$();return!(this.expectedValue!==t.expectedValue||this.position!==t.position||this.source!==t.source||!N(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>=P(e))a=!0;else{var o;P(n)>0?o=!Ht(n,R(e,t)):o=!1,a=o}if(a)throw new st(r==null?n:r,t,O(e))}function it(e,t,n,r){throw n=n===u?"":n,r=r===u?null:r,new st(n,t,O(e),r)}function sg(e){return function(t,n,r){return e(t,n,r)}}function lg(e){return function(t){return zv(e(t))}}function Au(){}i(Au).multiplatformBuild=function(e,t,n,r,a){var o=sg(t);return new Ze(e,o,n,lg(r),a)};var hd;function ug(){return hd}function cg(e,t,n){return null}function fg(e){return function(t){for(var n=e(t);n!=null;)n=e(At(n));return n}}function Zr(e,t,n){this.vh_1=e,this.wh_1=t,Tt.call(this,n)}i(Zr).bi=function(e,t){var n=this.ci(e,t);return n.k6_1=se,n.l6_1=null,n.q6()};i(Zr).h7=function(e,t){return this.bi(e instanceof fr?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=Rl(this.vh_1(this.wh_1)),this.yh_1.l())return se;Bl(this.yh_1);var n=this;n.zh_1=lt(),this.i6_1=1;continue e;case 1:if(this.ai_1=this.yh_1.x2(Ma(this.yh_1)),this.i6_1=2,e=this.xh_1.p9(this.ai_1,this),e===dr())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 se;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 hg(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 dg(e){return function(t){return Fa(hg(e,t,null))}}function vg(e){return function(t,n){return e.checkOffset(t)}}function pg(e){return function(t,n){var r=e(t),a;n.maxOffset!=null?a=nf(r,At(n.maxOffset)+1|0):a=r;var o=a;return Ml(o,vg(n))}}function ei(e,t,n,r){this.li_1=e,this.mi_1=t,this.ni_1=n,Tt.call(this,r)}i(ei).bi=function(e,t){var n=this.ci(e,t);return n.k6_1=se,n.l6_1=null,n.q6()};i(ei).h7=function(e,t){return this.bi(e instanceof fr?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 se;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===dr())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 se}var c=this;this.pi_1=this.li_1(this.ui_1),c.si_1=se,this.i6_1=4;continue e;case 4:this.i6_1=1;continue e;case 5:return se;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 _g(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 mg(e){return function(t,n){return Fa(_g(e,t,n,null))}}function gg(e){return function(t){return!N(t,e)}}function yg(e){return function(t,n){return e.checkOffset(t)}}function bg(e,t){return function(n,r){var a=e(n),o;if(a!=null){var s=t(a),l=Rl(np(s,gg(n)));Bl(l);var c=Qv(l);o=Ml(c,yg(r))}else o=Wi();return o}}function wg(e){return function(t){return!N(t,e)}}function kg(e){return function(t,n){return e.checkOffset(t)}}function Cg(e,t){return function(n,r){var a=e(n),o;if(a!=null){var s=t(a),l=rp(ip(s,wg(n)),1),c;r.maxOffset!=null?c=nf(l,At(r.maxOffset)+1|0):c=l;var f=c;o=Ml(f,kg(r))}else o=Wi();return o}}function ti(e,t,n,r){this.dj_1=e,this.ej_1=t,this.fj_1=n,Tt.call(this,r)}i(ti).bi=function(e,t){var n=this.ci(e,t);return n.k6_1=se,n.l6_1=null,n.q6()};i(ti).h7=function(e,t){return this.bi(e instanceof fr?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=Rl(this.dj_1(this.ej_1)),this.hj_1.l())return se;Bl(this.hj_1);var n=this;n.ij_1=lt(),this.jj_1=0,this.i6_1=1;continue e;case 1:if(this.kj_1=this.hj_1.x2(Ma(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===dr())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 se}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 se;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 xg(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 Sg(e){return function(t,n){return Fa(xg(e,t,n,null))}}function ni(e,t,n,r){this.tj_1=e,this.uj_1=t,this.vj_1=n,Tt.call(this,r)}i(ni).bi=function(e,t){var n=this.ci(e,t);return n.k6_1=se,n.l6_1=null,n.q6()};i(ni).h7=function(e,t){return this.bi(e instanceof fr?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===dr())return e;continue e}case 1:var a=this;a.yj_1=se,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===dr())return e;continue e}case 4:var f=this;f.gk_1=se,this.i6_1=5;continue e;case 5:this.i6_1=3;continue e;case 6:return se;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 $g(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 Eg(e){return function(t,n){return Fa($g(n,t,e,null))}}function Ng(e){return function(t,n){return rf(e.de_1(t,n))}}function ri(e,t,n,r){this.rk_1=e,this.sk_1=t,this.tk_1=n,Tt.call(this,r)}i(ri).hl=function(e,t){var n=this.il(e,t);return n.k6_1=se,n.l6_1=null,n.q6()};i(ri).h7=function(e,t){return this.hl(e instanceof fr?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===dr())return e;continue e}case 1:var a=this;a.wk_1=se,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===dr())return e;continue e}case 4:var f=this;f.el_1=se,this.i6_1=5;continue e;case 5:this.i6_1=3;continue e;case 6:return se;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 Ig(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 qg(e){return function(t,n){return Fa(Ig(n,t,e,null))}}function Ag(e){return function(t,n){return rf(e.ee_1(t,n))}}function Tg(e){return function(t,n){var r=af(e.de_1(t,n)),a=ee(r,Fn)?r:$(),o=pn(a);return Li(o)?o:$()}}function Pg(e){return function(t,n){var r=e.ee_1(t,n),a=af(r);return pn(a)}}function Ze(e,t,n,r,a,o,s,l,c,f,h,d){var v;t===u?v=cg:v=t,t=v;var b;o===u?b=fg(a):b=o,o=b;var _;s===u?_=dg(r):_=s,s=_;var m;l===u?m=pg(r):m=l,l=m;var g;c===u?g=mg(a):g=c,c=g;var p;f===u?p=bg(a,r):p=f,f=p;var C;h===u?C=Cg(a,r):C=h,h=C;var k;d===u?k=Sg(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=Eg(this);var I=this;I.querySelector=Ng(this);var F=this;F.ee_1=qg(this);var J=this;J.querySelectorContext=Ag(this);var K=this;K.querySelectorAllArray=Tg(this);var re=this;re.querySelectorAllContextArray=Pg(this)}i(Ze).jl=function(){return this.getAttr};i(Ze).kl=function(){return this.getInvoke};i(Ze).ll=function(){return this.getName};i(Ze).ml=function(){return this.getChildren};i(Ze).nl=function(){return this.getParent};i(Ze).ol=function(){return this.getRoot};i(Ze).pl=function(){return this.getDescendants};i(Ze).ql=function(){return this.traverseChildren};i(Ze).rl=function(){return this.traverseAncestors};i(Ze).sl=function(){return this.traverseBeforeBrothers};i(Ze).tl=function(){return this.traverseAfterBrothers};i(Ze).ul=function(){return this.traverseDescendants};i(Ze).vl=function(){return this.de_1};i(Ze).wl=function(){return this.querySelector};i(Ze).xl=function(){return this.ee_1};i(Ze).yl=function(){return this.querySelectorContext};i(Ze).zl=function(){return this.querySelectorAllArray};i(Ze).am=function(){return this.querySelectorAllContextArray};function It(e){vi.call(this),this.numbers=e;var t=this,n=Xa(this.numbers);t.bm_1=(n==null?1:n)-1|0,this.cm_1=Yv(this.numbers);for(var r=this,a=this.numbers,o=Ai(Fs(a,10)),s=a.h();s.i();){var l=s.j(),c=l-1|0;o.e(c)}r.dm_1=o}i(It).em=function(){return this.numbers};i(It).yd=function(){return this.bm_1};i(It).zd=function(){return this.cm_1};i(It).checkOffset=function(e){return lm(this.dm_1,e)>=0};i(It).getOffset=function(e){return this.numbers.k(e)};i(It).stringify=function(){if(this.numbers.m()===1){var e;return oa(this.numbers)===1?e="":e=oa(this.numbers).toString(),e}return"("+xn(this.numbers,",")+")"};i(It).pc=function(){return this.numbers};i(It).fm=function(e){return new It(e)};i(It).copy=function(e,t){return e=e===u?this.numbers:e,this.fm(e)};i(It).toString=function(){return"TupleExpression(numbers="+O(this.numbers)+")"};i(It).hashCode=function(){return oe(this.numbers)};i(It).equals=function(e){if(this===e)return!0;if(!(e instanceof It))return!1;var t=e instanceof It?e:$();return!!N(this.numbers,t.numbers)};function Gr(){_l=this,an.call(this,"boolean")}i(Gr).toString=function(){return"BooleanType"};i(Gr).hashCode=function(){return 1452179029};i(Gr).equals=function(e){return this===e?!0:e instanceof Gr?(e instanceof Gr||$(),!0):!1};var _l;function ya(){return _l==null&&new Gr,_l}function Jr(){ml=this,an.call(this,"int")}i(Jr).toString=function(){return"IntType"};i(Jr).hashCode=function(){return-1601449956};i(Jr).equals=function(e){return this===e?!0:e instanceof Jr?(e instanceof Jr||$(),!0):!1};var ml;function ba(){return ml==null&&new Jr,ml}function Qr(){gl=this,an.call(this,"string")}i(Qr).toString=function(){return"StringType"};i(Qr).hashCode=function(){return 1719560632};i(Qr).equals=function(e){return this===e?!0:e instanceof Qr?(e instanceof Qr||$(),!0):!1};var gl;function wa(){return gl==null&&new Qr,gl}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 Ut(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||!co(this).equals(co(e))||(e instanceof de||$(),this.name!==e.name)||!this.returnType.equals(e.returnType)||!qs(this.params,e.params))};i(de).hashCode=function(){var e=Ut(this.name);return e=z(31,e)+this.returnType.hashCode()|0,e=z(31,e)+As(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=Ut(this.name);return e=z(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 at(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(at).rf=function(){return this.type};i(at).lm=function(e){this.props=e};i(at).mm=function(){return this.props};i(at).nm=function(e){this.methods=e};i(at).dd=function(){return this.methods};i(at).equals=function(e){return this===e?!0:!(e==null||!co(this).equals(co(e))||(e instanceof at||$(),!N(this.type,e.type))||!qs(this.props,e.props)||!qs(this.methods,e.methods))};i(at).hashCode=function(){var e=oe(this.type);return e=z(31,e)+As(this.props)|0,e=z(31,e)+As(this.methods)|0,e};i(at).pc=function(){return this.type};i(at).qc=function(){return this.props};i(at).ed=function(){return this.methods};i(at).om=function(e,t,n){return new at(e,t,n)};i(at).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(at).toString=function(){return"TypeInfo(type="+O(this.type)+", props="+O(this.props)+", methods="+O(this.methods)+")"};function jg(e){return e.stringify()}function Rg(e){return!1}function Pt(e){et.call(this,e,"var"),this.rm_1=e}i(Pt).r1=function(){return this.rm_1};function Fe(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(Fe).tc=function(){return this.af_1};i(Fe).r1=function(){return this.bf_1};i(Fe).uc=function(){return this.cf_1};i(Fe).nd=function(e,t){return t.getAttr(e,this.bf_1)};i(Fe).cd=function(){return[this.bf_1]};i(Fe).dd=function(){return[]};i(Fe).pc=function(){return this.af_1};i(Fe).qc=function(){return this.bf_1};i(Fe).sm=function(e,t){return new Fe(e,t)};i(Fe).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(Fe).toString=function(){return"Identifier(start="+this.af_1+", value="+this.bf_1+")"};i(Fe).hashCode=function(){var e=this.af_1;return e=z(e,31)+Ut(this.bf_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.af_1!==t.af_1||this.bf_1!==t.bf_1)};function Ne(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(Ne).tc=function(){return this.if_1};i(Ne).uc=function(){return this.jf_1};i(Ne).tm=function(){return this.object0};i(Ne).um=function(){return this.property};i(Ne).nd=function(e,t){var n=this.object0.nd(e,t);return n==null?null:t.getAttr(n,this.property)};i(Ne).cd=function(){return qi([this.object0.properties,[this.property]])};i(Ne).dd=function(){return this.object0.methods};i(Ne).pc=function(){return this.if_1};i(Ne).qc=function(){return this.jf_1};i(Ne).ed=function(){return this.object0};i(Ne).fd=function(){return this.property};i(Ne).vm=function(e,t,n,r){return new Ne(e,t,n,r)};i(Ne).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(Ne).toString=function(){return"MemberExpression(start="+this.if_1+", end="+this.jf_1+", object0="+O(this.object0)+", property="+this.property+")"};i(Ne).hashCode=function(){var e=this.if_1;return e=z(e,31)+this.jf_1|0,e=z(e,31)+oe(this.object0)|0,e=z(e,31)+Ut(this.property)|0,e};i(Ne).equals=function(e){if(this===e)return!0;if(!(e instanceof Ne))return!1;var t=e instanceof Ne?e:$();return!(this.if_1!==t.if_1||this.jf_1!==t.jf_1||!N(this.object0,t.object0)||this.property!==t.property)};function ke(e,t,n,r){var a=n.stringify();Pt.call(this,a+"("+xn(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 Fe){for(var a=this.arguments,o=Ai(Fs(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 Ne){var f=this.callee.object0.nd(e,t);if(f==null)return null;for(var h=f,d=this.arguments,v=Ai(Fs(d,10)),b=d.h();b.i();){var _=b.j(),m=_.nd(e,t);if(m==null)return null;v.e(m)}r=t.getInvoke(h,this.callee.property,v)}else Cr();return r};i(ke).cd=function(){for(var e=ql(this.callee.properties),t=this.arguments,n=lt(),r=t.h();r.i();){var a=r.j(),o=Il(a.properties);No(n,o)}var s=Zc(e,n);return pn(s)};i(ke).dd=function(){var e=this.callee,t;e instanceof ke?t=this.callee.methods:e instanceof Fe?t=[this.callee.bf_1]:e instanceof Ne?t=qi([this.callee.object0.methods,[this.callee.property]]):Cr();for(var n=ql(t),r=this.arguments,a=lt(),o=r.h();o.i();){var s=o.j(),l=Il(s.methods);No(a,l)}var c=Zc(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=z(e,31)+this.ih_1|0,e=z(e,31)+oe(this.callee)|0,e=z(e,31)+oe(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||!N(this.callee,t.callee)||!N(this.arguments,t.arguments))};function Wt(e,t){et.call(this,e,t),this.bn_1=e,this.cn_1=t}i(Wt).r1=function(){return this.bn_1};i(Wt).rf=function(){return this.cn_1};i(Wt).nd=function(e,t){return this.value};i(Wt).cd=function(){return[]};i(Wt).dd=function(){return[]};function qt(e){Wt.call(this,null,"null"),this.hn_1=e,this.in_1=this.hn_1+4|0}i(qt).tc=function(){return this.hn_1};i(qt).uc=function(){return this.in_1};i(qt).pc=function(){return this.hn_1};i(qt).jn=function(e){return new qt(e)};i(qt).copy=function(e,t){return e=e===u?this.hn_1:e,this.jn(e)};i(qt).toString=function(){return"NullLiteral(start="+this.hn_1+")"};i(qt).hashCode=function(){return this.hn_1};i(qt).equals=function(e){if(this===e)return!0;if(!(e instanceof qt))return!1;var t=e instanceof qt?e:$();return this.hn_1===t.hn_1};function ht(e,t){Wt.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(ht).tc=function(){return this.on_1};i(ht).r1=function(){return this.pn_1};i(ht).uc=function(){return this.qn_1};i(ht).pc=function(){return this.on_1};i(ht).qc=function(){return this.pn_1};i(ht).rn=function(e,t){return new ht(e,t)};i(ht).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(ht).toString=function(){return"BooleanLiteral(start="+this.on_1+", value="+this.pn_1+")"};i(ht).hashCode=function(){var e=this.on_1;return e=z(e,31)+Fl(this.pn_1)|0,e};i(ht).equals=function(e){if(this===e)return!0;if(!(e instanceof ht))return!1;var t=e instanceof ht?e:$();return!(this.on_1!==t.on_1||this.pn_1!==t.pn_1)};function Ge(e,t,n){Wt.call(this,n,"int"),this.wn_1=e,this.xn_1=t,this.yn_1=n}i(Ge).tc=function(){return this.wn_1};i(Ge).uc=function(){return this.xn_1};i(Ge).r1=function(){return this.yn_1};i(Ge).pc=function(){return this.wn_1};i(Ge).qc=function(){return this.xn_1};i(Ge).ed=function(){return this.yn_1};i(Ge).zn=function(e,t,n){return new Ge(e,t,n)};i(Ge).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(Ge).toString=function(){return"IntLiteral(start="+this.wn_1+", end="+this.xn_1+", value="+this.yn_1+")"};i(Ge).hashCode=function(){var e=this.wn_1;return e=z(e,31)+this.xn_1|0,e=z(e,31)+this.yn_1|0,e};i(Ge).equals=function(e){if(this===e)return!0;if(!(e instanceof Ge))return!1;var t=e instanceof Ge?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,Wt.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=fy(this.vd_1);s=l==null?o:l}var c=s,f;c==null?f=Rg: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 cy(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="+Oe(this.wd_1)+")"};i(fe).hashCode=function(){var e=this.td_1;return e=z(e,31)+this.ud_1|0,e=z(e,31)+Ut(this.vd_1)|0,e=z(e,31)+(this.wd_1==null?0:oe(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||!N(this.wd_1,t.wd_1))};function et(e,t){this.ld_1=e,this.md_1=t}i(et).r1=function(){return this.ld_1};i(et).rf=function(){return this.md_1};i(et).stringify=function(){return Oe(this.value)};function Ue(e,t){e=e===u?"":e,this.eo_1=e,this.fo_1=t}i(Ue).go=function(e,t){return this.fo_1(e,t,this.eo_1)};i(Ue).toString=function(){return"Parser(prefix="+this.eo_1+", temp="+O(this.fo_1)+")"};i(Ue).hashCode=function(){var e=Ut(this.eo_1);return e=z(e,31)+oe(this.fo_1)|0,e};i(Ue).equals=function(e){if(this===e)return!0;if(!(e instanceof Ue))return!1;var t=e instanceof Ue?e:$();return!(this.eo_1!==t.eo_1||!N(this.fo_1,t.fo_1))};function Pe(e,t){t=t===u?0:t,this.ho_1=e,this.io_1=t}i(Pe).toString=function(){return"ParserResult(data="+Oe(this.ho_1)+", length="+this.io_1+")"};i(Pe).hashCode=function(){var e=this.ho_1==null?0:oe(this.ho_1);return e=z(e,31)+this.io_1|0,e};i(Pe).equals=function(e){if(this===e)return!0;if(!(e instanceof Pe))return!1;var t=e instanceof Pe?e:$();return!(!N(this.ho_1,t.ho_1)||this.io_1!==t.io_1)};function Mg(e,t){var n=0,r=Yt(t,n);if(!N(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=Kr(48,57),o=Yt(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=Yt(t,n);return N(c==null?null:new ne(c),new ne(44))}function Lg(e,t,n){var r=Wo().allSubClasses,a;e:{for(var o=0,s=r.length;o<s;){var l=r[o];if(o=o+1|0,Ko(t,l.key,n)){a=l;break e}}a=null}var c=a,f;c==null?it(t,n,"CompareOperator"):f=c;var h=f;return new We(n,n+h.key.length|0,h)}function yl(e,t,n){var r=t;if((r==null?null:new ne(r))==null)return!1;var a,o,s,l=t;return N(l==null?null:new ne(l),new ne(95))?s=!0:s=Kr(97,122).xb(t),s?o=!0:o=Kr(65,90).xb(t),o?a=!0:a=!n&&Kr(48,57).xb(t),a}function Ec(e,t,n,r){return n=n===u?!1:n,yl(e,t,n)}function _s(e,t,n,r){if(Ko(t,r,n)){var a=Yt(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 Nc(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 Og(e,t,n){var r=n,a=Nc(e,t,r);r=r+a.a()|0,r=r+e.jo_1.go(t,r).io_1|0;var o=Lg(e,t,r);r=r+o.a()|0,r=r+e.jo_1.go(t,r).io_1|0;var s=Nc(e,t,r),l,c;if(N(o.value,Vo())||N(o.value,Eu())?c=s instanceof fe:c=!1,c){var f;try{f=my(s.vd_1)}catch(_){var h;if(_ instanceof gn){var d=_;it(t,r,"valid primitive string regex",d)}else throw _;f=h}var v=f;l=s.copy(u,u,u,v)}else l=s;var b=l;return r=r+b.a()|0,new ce(n,r,a,o,b)}function Fg(e,t,n){var r=n;r=r+e.jo_1.go(t,r).io_1|0;var a=Iu().allSubClasses,o;e:{for(var s=a.h();s.i();){var l=s.j();if(Ko(t,l.key,n)){o=l;break e}}o=null}var c=o,f;c==null?it(t,n,"LogicalOperator"):f=c;var h=f;return new We(r,r+h.key.length|0,h)}function Dg(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 zg(e,t,n){for(var r=t,a="";r<P(e)&&Ht(n,R(e,r));)a=a+He(R(e,r)),r=r+1|0;return new Pe(a,r-t|0)}function Bg(e,t,n){return ye(e,t,n,"whitespace"),Z().jo_1.go(e,t)}function Kg(e,t,n){var r=t,a=Yt(e,r),o,s=a;if((s==null?null:new ne(s))!=null?o=!Ht(n,a):o=!1,o)return new Pe("");ye(e,r,n,"*0-9a-zA-Z_");var l=He(R(e,r));if(r=r+1|0,l==="*")return new Pe(l,r-t|0);var c="1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_.";e:for(;r<P(e);){if(R(l,(r-t|0)-1|0)===46&&ye(e,r,n,"[0-9a-zA-Z_]"),Ht(c,R(e,r)))l=l+He(R(e,r));else break e;r=r+1|0}return new Pe(l,r-t|0)}function Ug(e){return e.key}function Hg(e,t,n){var r=Jo().allSubClasses,a;e:{for(var o=r.h();o.i();){var s=o.j();if(Ko(e,s.key,t)){a=s;break e}}a=null}var l=a,c;l==null?it(e,t,"ConnectOperator"):c=l;var f=c;return new Pe(f,f.key.length)}function Wg(e,t,n){var r=t;ye(e,r,n,"number");for(var a="";r<P(e)&&Ht(n,R(e,r));)a=a+He(R(e,r)),r=r+1|0;var o;try{o=J0(a)}catch(l){var s;if(l instanceof ci)it(e,t,"valid format number");else throw l;o=s}return new Pe(o,r-t|0)}function Vg(e,t,n){var r=t;ye(e,r,n);var a=R(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(Ht(Z().no_1.eo_1,R(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=z(l,s);return r<P(e)&&R(e,r)===110?(r=r+1|0,new Pe(new Sn(1,f),r-t|0)):new Pe(new Sn(0,f),r-t|0)}function Gg(e,t,n){var r=t;ye(e,r,n);var a=lt();if(R(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);R(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>=P(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=th(),c=a.h();c.i();){var f=c.j(),h=f.ho_1,d=h.pc(),v=h.qc(),b=l.t1(d),_=(b==null?0:b)+v|0;l.u3(d,_)}for(var m=Y_(l.m()),g=l.u1().h();g.i();){var p=g.j();p.q1()>1&&it(e,t,"power must be 0 or 1");var C=p.r1();m.u3(se,C)}var k;try{var x=l.t1(1),I=x==null?0:x,F=l.t1(0);k=new Te(I,F==null?0:F)}catch(re){var J;if(re instanceof gn)it(e,t,"valid polynomialExpression");else throw re;k=J}var K=k;return new Pe(K,r-t|0)}function Jg(e,t,n){var r=t;ye(e,r,"("),r=r+1|0;for(var a=lt();r<P(e)&&R(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&&it(e,r,"positive integer"):o.ho_1<=sa(a)&&it(e,r,">"+sa(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=Yt(e,r);N(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 Pe(new It(a),r-t|0)}function Qg(e,t,n){var r=t,a;if(Mg(Z(),ln(e,t,P(e)))){var o=Z().qo_1.go(e,r);r=r+o.io_1|0,a=new Pe(o.ho_1,r-t|0)}else{var s=Z().po_1.go(e,t);r=r+s.io_1|0,a=new Pe(s.ho_1,r-t|0)}return a}function Yg(e,t,n){var r=t,a=Z().mo_1.go(e,r);r=r+a.io_1|0;var o=null;r<P(e)&&Ht(Z().ro_1.eo_1,R(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 Pe(new ct(a.ho_1,l==null?new Te:l),r-t|0)}function Xg(e,t,n){var r=t;ye(e,r,n);var a=R(e,r);r=r+1|0,r>=P(e)&&it(e,r,"any char");var o="";e:for(;R(e,r)!==a;){if(r>=(P(e)-1|0)){ye(e,r,He(a));break e}var s=R(e,r),l=Lt(s);if(0<=l&&l<=31&&it(e,r,"0-1f escape char"),R(e,r)===92){r=r+1|0,ye(e,r);var c=o,f=R(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,b=r+1|0,_=O(ln(e,v,b));h=ha(bc(_,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,p=r+1|0,C=O(ln(e,g,p));h=ha(bc(C,16))}else it(e,r,"escape char");o=c+He(h)}else o=o+He(R(e,r));r=r+1|0}return r=r+1|0,new Pe(o,r-t|0)}function Zg(e,t,n){var r=t;ye(e,r,n);var a=He(R(e,r));for(r=r+1|0;r<P(e)&&Ht(Z().wo_1,R(e,r));)R(e,r)===46&&ye(e,r+1|0,n),a=a+He(R(e,r)),r=r+1|0;return new Pe(a,r-t|0)}function ey(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 Pe(a,r-t|0)}function ty(e,t,n){var r=t,a=!1,o=Yt(e,r);N(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=lt();r<P(e)&&R(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&&it(e,r,"["),new Pe(new ot(a,s.ho_1,l),r-t|0)}function ny(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=lt();e:for(;r<P(e)&&Ht(Z().jo_1.eo_1,R(e,r));){if(r=r+Z().ko_1.go(e,r).io_1|0,r>=P(e))break e;var s;if(Ht(Z().so_1.eo_1,R(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 ct(u,new Te(1,0));var c=s,f=Z().zo_1.go(e,r);r=r+f.io_1|0,o.e(xc(c,f.ho_1))}return new Pe(xc(a.ho_1,o),r-t|0)}function ry(e,t,n){return t!==P(e)&&it(e,t,"EOF"),new Pe(se,0)}function Ha(){bl=this;var e=this;e.jo_1=new Ue(` \r
|
|
270
|
-
`,zg);var t=this;t.ko_1=new Ue(` \r
|
|
271
|
-
`,Bg);var n=this;n.lo_1=new Ue("*1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_",Kg);var r=this,a=Jo().allSubClasses,o=xn(a,"",u,u,u,u,Ug);r.mo_1=new Ue(o,Hg);var s=this;s.no_1=new Ue("1234567890",Wg);var l=this;l.oo_1=new Ue("+-1234567890n",Vg);var c=this;c.po_1=new Ue("(0123456789n",Gg);var f=this;f.qo_1=new Ue(u,Jg);var h=this;h.ro_1=new Ue(this.po_1.eo_1,Qg);var d=this;d.so_1=new Ue(this.mo_1.eo_1,Yg);var v=this;v.uo_1=new Ue("`'\"",Xg),this.vo_1="_"+xn(Kr(97,122),"")+xn(Kr(65,90),""),this.wo_1=this.vo_1+He(46)+xn(Kr(48,57),"");var b=this;b.xo_1=new Ue(this.vo_1,Zg);var _=this;_.yo_1=new Ue("[",ey);var m=this;m.zo_1=new Ue(u,ty);var g=this;g.ap_1=new Ue(u,ny);var p=this;p.bp_1=new Ue(u,ry)}i(Ha).cp=function(e,t){var n=t;if(n=n+this.jo_1.go(e,n).io_1|0,n>=P(e)&&it(e,n,"Variable"),_s(this,e,n,"true"))return new ht(n,!0);if(_s(this,e,n,"false"))return new ht(n,!1);if(_s(this,e,n,"null"))return new qt(n);if(Ht(this.uo_1.eo_1,R(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(R(e,n)===45){n=n+1|0;var a=this.no_1.go(e,n);return n=n+a.io_1|0,new Ge((n-a.io_1|0)-1|0,n,-a.ho_1|0)}if(Ht(this.no_1.eo_1,R(e,n))){var o=this.no_1.go(e,n);return n=n+o.io_1|0,new Ge(n-o.io_1|0,n,o.ho_1)}var s=null;e:for(;n<P(e);){n=n+this.jo_1.go(e,n).io_1|0;var l=Yt(e,n),c=l;if(N(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&&it(e,n,"Variable");for(var h=lt();n<P(e)&&R(e,n)!==41;){var d=this.cp(e,n);h.e(d),n=n+d.a()|0;var v=Yt(e,n);N(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 b=this.cp(e,n);n=n+b.a()|0,n=n+this.jo_1.go(e,n).io_1|0,ye(e,n,")"),n=n+1|0;var _=n,m;return b instanceof ht?m=b.copy(f):b instanceof Ge?m=b.copy(f,_):b instanceof qt?m=b.copy(f):b instanceof fe||b instanceof ke?m=b.copy(f,_):b instanceof Fe?m=b.copy(f):b instanceof Ne?m=b.copy(f,_):Cr(),m}}else{var g=l;if(N(g==null?null:new ne(g),new ne(46))){n=n+1|0,s instanceof Pt||it(e,n,"Variable"),yl(this,Yt(e,n),!0)||it(e,n,"Variable");var p;t:{var C=nc(e,n),k=0,x=P(C);if(k<x)do{var I=k;k=k+1|0;var F=R(C,I);if(!yl(Z(),F,!1)){p=ln(C,0,I);break t}}while(k<x);p=ln(C,0,P(C))}var J=O(p);s=new Ne(s.tc(),n+J.length|0,s,J),n=n+J.length|0}else if(Ec(this,l)){var K;t:{var re=nc(e,n),G=0,Re=P(re);if(G<Re)do{var Ce=G;G=G+1|0;var be=R(re,Ce);if(!Ec(Z(),be)){K=ln(re,0,Ce);break t}}while(G<Re);K=ln(re,0,P(re))}var ve=O(K);s=new Fe(n,ve),n=n+ve.length|0}else break e}}return s==null&&it(e,n,"Variable"),s};i(Ha).dp=function(e,t,n){var r=t;r=r+this.jo_1.go(e,r).io_1|0;var a=lt();e:for(;r<P(e)&&R(e,r)!==93&&R(e,r)!==41;){var o=R(e,r);if(o===40){var s=r;if(!a.l()){var l=sa(a),c;if(l instanceof We){var f=l.value;c=f instanceof Nn}else c=!1;if(!c){for(var h=0;(r-1|0)>=h&&Ht(this.jo_1.eo_1,R(e,(r-1|0)-h|0));)h=h+1|0;it(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 b=r,_;if(v instanceof ce||v instanceof Ee?_=v.copy(s,b):v instanceof _t?_=v.copy(s):Cr(),a.e(_),n)break e}else if(Ht("|&",o)){var m=Fg(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=Dg(this,e,r);r=r+g.a()|0,a.e(g),r=r+this.jo_1.go(e,r).io_1|0}else{var p=Og(this,e,r);r=r+p.a()|0,a.e(p)}r=r+this.jo_1.go(e,r).io_1|0}if(a.l()&&it(e,r-t|0,"Expression"),a.m()===1){var C=oa(a);return C instanceof Kt?C:$()}for(var k=Tl(a),x=0;x<k.m();){var I=k.k(x),F;if(I instanceof We?F=N(I.value,qu()):F=!1,F){var J=k.k(x-1|0),K=J instanceof Kt?J:$(),re=k.k(x+1|0),G=re instanceof Kt?re:$(),Re=I instanceof We?I:$();k.p2(x,new Ee(K.tc(),G.uc(),K,Re,G)),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 Kt?Ce:$(),ve=k.k(1),xe=ve instanceof We?ve:$(),De=k.k(2),tt=De instanceof Kt?De:$();k.p2(1,new Ee(be.tc(),tt.uc(),be,xe,tt)),k.x2(0),k.x2(1)}var pe=oa(k);return pe instanceof Kt?pe:$()};i(Ha).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 bl;function Z(){return bl==null&&new Ha,bl}function dd(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=lt(),o=lt();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=Nh([new Xe(oa(a))]),f=0,h=o.h();h.i();){var d=h.j(),v=f;f=v+1|0;var b=Kl(v),_=new Ot(d,sa(c)),m=new Xe(a.k(b+1|0),_);c.e(m)}return new zt(e,sa(c))}function iy(e){gy(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 ay(){var e=new at(ya()),t=new at(ba()),n=new at(wa()),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],b=new de("times",t,v),_=[t],m=new de("div",t,_),g=[t];a.methods=[o,l,f,d,b,m,new de("rem",t,g)];var p=n;p.props=[new te("length",t)];var C=n,k=[t],x=new de("get",n,k),I=[t],F=new de("at",n,I),J=[t],K=new de("substring",n,J),re=[t,t],G=new de("substring",n,re),Re=new de("toInt",t),Ce=[t],be=new de("toInt",t,Ce),ve=[n],xe=new de("indexOf",t,ve),De=[n,t];C.methods=[x,F,K,G,Re,be,xe,new de("indexOf",t,De)];var tt=new at(new rn("context")),pe=new at(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 jt=pe,Vt=[t];jt.methods=[new de("getChild",pe,Vt)];var qn=tt,T=pe.methods,ae=[t];qn.methods=qi([T,[new de("getPrev",tt,ae)]]);var me=tt;return me.props=qi([pe.props,[new te("prev",tt)]]),new pi(e,t,n,tt,pe)}function oy(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=z(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,b;if(v==null)return null;b=v,r=e/b|0;break;case"rem":var _=dn(n),m;if(_==null)m=null;else{if(_===0)return null;m=_}var g=m,p;if(g==null)return null;p=g,r=e%p|0;break;default:r=null;break}return r}function sy(e,t,n){return hy(e,t,n)}function ly(e,t,n){return t==="toInt"?e?1:0:null}function uy(e,t){return dy(e,t)}function cy(e,t){t=t===u?34:t;var n=wh(e.length+2|0);n.b6(t);for(var r=0;r<P(e);){var a=R(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("\\"+Oe(l==null?null:new ne(l)))}else{var c=Lt(a);if(0<=c&&c<=15){var f=Lt(a);n.a6("\\x0"+yc(f,16))}else if(16<=c&&c<=31){var h=Lt(a);n.a6("\\x"+yc(h,16))}else n.b6(a)}}return n.b6(t),n.toString()}function ms(e,t,n){if(cu(e,t)&&$h(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,Ht("\\^$.?*|+()[]{}",R(e,o)))return null}while(r<a);return O(ln(e,t.length,e.length-n.length|0))}return null}function fy(e){var t=ms(e,"(?is)",".*");if(t!=null)return vy(t);var n=ms(e,"(?is).*",".*");if(n!=null)return py(n);var r=ms(e,"(?is).*","");return r!=null?_y(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 hy(e,t,n){var r;switch(t){case"get":var a=dn(n),o;if(a==null)return null;o=a;var s=Yt(e,o);r=Oe(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=Yt(e,P(e)+f|0);h=Oe(d==null?null:new ne(d))}else{var v=Yt(e,f);h=Oe(v==null?null:new ne(v))}r=h;break;case"substring":var b;switch(n.m()){case 1:var _=dn(n),m;if(_==null)return null;m=_;var g=m;if(g<0)return null;if(g>=P(e))return"";var p=P(e);b=O(ln(e,g,p));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>=P(e))return"";var I=dn(n,1),F;if(I==null)return null;F=I;var J=F;if(J<x)return null;var K=la(J,P(e));b=O(ln(e,x,K));break;default:b=null;break}r=b;break;case"toInt":var re;switch(n.m()){case 0:re=Hh(O(e));break;case 1:var G=dn(n),Re;if(G==null)return null;Re=G;var Ce=Re;if(!(2<=Ce&&Ce<=36))return null;re=wu(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=dt(ve)?ve:null,De;if(xe==null)return null;De=xe;var tt=De;be=Us(e,O(tt));break;case 2:var pe=n.k(0),bt=dt(pe)?pe:null,jt;if(bt==null)return null;jt=bt;var Vt=jt,qn=dn(n,1),T;if(qn==null)return null;T=qn;var ae=T;be=Us(e,O(Vt),ae);break;default:be=null;break}r=be;break;default:r=null;break}return r}function dy(e,t){return t==="length"?P(e):null}function vy(e){return function(t){return ku(t,e,!0)}}function py(e){return function(t){return Cu(t,e,!0)}}function _y(e){return function(t){return Bo(t,e,!0)}}var ho;function my(e){if(ho!==null){var t=At(ho)(e);return yy(t)}if(e.length>=4&&cu(e,"(?")){var n=2,r=e.length;if(n<r)e:do{var a=n;n=n+1|0;var o=R(e,a);if(!(97<=o&&o<=122)&&!(65<=o&&o<=90))if(o===41){var s=lp(ln(e,2,a));s.e(new ne(103)),s.e(new ne(117));var l=xn(s,""),c=a+1|0,f=e.substring(c),h=new RegExp(f,l);return by(h)}else break e}while(n<r)}var d=X0(e);return wy(d)}function gy(e){ho=e}function yy(e){return function(t){return e(O(t))}}function by(e){return function(t){bh(e);var n=e.exec(O(t));return n!=null&&n.index===0&&e.lastIndex===P(t)}}function wy(e){return function(t){return e.w8(t)}}i(Kt).a=xu;H(i(Kt),"binaryExpressions",function(){return this.bd()});H(i(ce),"properties",i(ce).cd);H(i(ce),"methods",i(ce).dd);H(i(_a),"allSubClasses",i(_a).kd);H(i(vi),"minOffset",function(){return this.yd()});H(i(vi),"maxOffset",function(){return this.zd()});H(i(ma),"allSubClasses",i(ma).kd);H(i(vt),"message",function(){return this.i7()});H(i(ga),"allSubClasses",i(ga).kd);i(We).a=xu;H(i(ot),"binaryExpressions",i(ot).bd);H(i(Xe),"length",i(Xe).a);H(i(st),"cause",function(){return this.j7()});i(et).a=xu;H(i(et),"value",function(){return this.r1()});H(i(et),"type",function(){return this.rf()});H(i(et),"properties",function(){return this.cd()});H(i(et),"methods",function(){return this.dd()});fd=new Xo;hd=new Au;ho=null;H(U,"Companion",Wo);H(U,"Equal",Vr);H(U,"NotEqual",Qh);H(U,"Start",Fr);H(U,"NotStart",Yh);H(U,"Include",Su);H(U,"NotInclude",Xh);H(U,"End",$u);H(U,"NotEnd",Zh);H(U,"Less",Ua);H(U,"LessEqual",ed);H(U,"More",td);H(U,"MoreEqual",nd);H(U,"Matches",Vo);H(U,"NotMatches",Eu);H(yt,"Companion",Jo);H(yt,"BeforeBrother",rd);H(yt,"AfterBrother",id);H(yt,"Ancestor",fo);H(yt,"Child",ad);H(yt,"Descendant",Nu);H(Nn,"Companion",Iu);H(Nn,"AndOperator",qu);H(Nn,"OrOperator",od);H(zt,"Companion",ng);H(Ze,"Companion",ug);H(an,"BooleanType",ya);H(an,"IntType",ba);H(an,"StringType",wa);an.ObjectType=rn;et.Variable=Pt;et.Identifier=Fe;et.MemberExpression=Ne;et.CallExpression=ke;et.LiteralExpression=Wt;et.NullLiteral=qt;et.BooleanLiteral=ht;et.IntLiteral=Ge;et.StringLiteral=fe;async function ky(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 Cy="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1720776413910/files/dist/assets/mod-BHC4TAjm.wasm",xy=ky(fetch(Cy)).then(e=>{const t=e.exports.toMatches;iy(t),ro.wasmSupported=!0,console.log("use wasm matches")}).catch(e=>{ro.wasmSupported=!1,console.error(e),console.log("use js matches")}),Ic=(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},qc=(e,t,n)=>{var r;if(t==="getChild"){const a=n.asJsReadonlyArrayView()[0];return(r=e.children[a])!=null?r:null}return null},gs=Ze.Companion.multiplatformBuild((e,t)=>typeof e=="string"?uy(e,t):e instanceof Ye?t==="prev"?e.prev:Ic(e.current,t):Ju(e)?Ic(e,t):null,(e,t,n)=>{if(typeof e=="number")return oy(e,t,n);if(typeof e=="boolean")return ly(e,t);if(typeof e=="string")return sy(e,t,n);if(e instanceof Ye){if(t==="getPrev"){const r=n.asJsReadonlyArrayView()[0];return Number.isSafeInteger(r)?e.getPrev(r):null}return qc(e.current,t,n)}return Ju(e)?qc(e,t,n):null},e=>e.attr.name,e=>e.children,e=>e.parent),Sy=ay(),$y=e=>{const t=zt.Companion.parse(e);for(const r of t.binaryExpressions)if(r.operator.value.key=="~="&&!ro.wasmSupported&&!Lc.ignoreWasmWarn){ro.wasmErrorDlgVisible=!0;break}return Ey(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,gs))!=null?a:void 0},querySelectorAll:r=>gs.querySelectorAllArray(r,t),querySelectorTrackAll:r=>gs.querySelectorAllContextArray(r,t).map(a=>a.toArray())}},Ey=e=>{const t=e.checkType(Sy.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 ft)throw new Error("不匹配参数类型:"+t.call.stringify(),{cause:t});if(t instanceof Xt)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 Tu={},Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});function Ny(e){return String.fromCharCode(parseInt(e.slice(1),16))}function Iy(e){return btoa(encodeURIComponent(e).replace(/%[0-9A-F]{2}/g,Ny))}Zo.encode=Iy;function qy(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function Ay(e){return decodeURIComponent(Array.from(atob(e),qy).join(""))}Zo.decode=Ay;Object.defineProperty(Tu,"__esModule",{value:!0});const vd=Zo;function Ty(e){return vd.decode(e.replace(/\-/g,"+").replace(/_/g,"/"))}var Py=Tu.decode=Ty;function jy(e){return vd.encode(e).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}var Ry=Tu.encode=jy;const Pu=zc(),My=le(()=>Pu.width.value/100),Ly=le(()=>Math.max(1200,Pu.width.value));le(()=>Math.max(700,Pu.height.value));const Oy={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},Fy={flex:"","m-b-4px":""},Dy=V("svg",{viewBox:"0 0 32 32"},[V("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),zy=V("div",{"p-5px":""},null,-1),By={key:0,underline:"","decoration-1":"","m-r-4px":"",title:"查询数量"},Ky=["title"],Uy=V("svg",{viewBox:"0 0 24 24"},[V("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),Hy=V("div",{"p-l-4px":""},null,-1),Wy=V("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[V("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),Vy=V("div",{"p-l-4px":""},null,-1),Gy=V("svg",{viewBox:"0 0 24 24"},[V("g",{fill:"none"},[V("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),Jy=V("svg",{viewBox:"0 0 24 24"},[V("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),Qy=je({__name:"SearchCard",props:{snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:Yr},onUpdateTrack:{type:Function,default:Yr}},setup(e){Oc();const t=Fc(),n=e,r=rt(""),a=Sl([]),o=rt([]),s=_=>{const m=A1(()=>$y(_),p=>typeof p=="string"?p:p instanceof Error&&p.cause instanceof vt?p.message:"非法选择器");if(a.find(p=>typeof p.selector=="object"&&p.selector.toString()==m.toString())){kn.warning("不可重复选择");return}const g=m.querySelectorTrackAll(n.rootNode);if(g.length==0){kn.success("没有选择到节点");return}return kn.success(`选择到 ${g.length} 个节点`),a.unshift({selector:m,nodes:g,key:Date.now()}),g.length},l=_=>{if(a.find(p=>typeof p.selector=="string"&&p.selector.toString()==_)){kn.warning("不可重复搜索");return}const m=[],g=[n.rootNode];for(;g.length>0;){const p=g.pop();ia(p).includes(_)&&m.push(p),g.push(...[...p.children].reverse())}if(m.length==0){kn.success("没有搜索到节点");return}return kn.success(`搜索到 ${m.length} 个节点`),a.unshift({selector:_,nodes:m,key:Date.now()}),m.length},c=()=>{const _=a[0],m=_.nodes[0];Array.isArray(m)?typeof _.selector=="object"&&Array.isArray(m)&&n.onUpdateFocusNode(m[_.selector.targetIndex]):n.onUpdateFocusNode(m);const g=new Set(a.map(C=>C.key)),p=o.value.filter(C=>g.has(C));p.push(_.key),o.value=p},f=Xu(()=>{const _=r.value.trim();if(_){if(d.value){if(!s(_))return}else if(!l(_))return;c()}});xa(async()=>{await xy;let _=0;t.query.gkd&&(_+=s(Py(t.query.gkd))||0),t.query.str&&(_+=l(t.query.str)||0),_>0&&c()});const h=Xu(async _=>{var F,J,K;let m=o1[n.snapshot.id];m&&(m=s1(m));const g=Ii[n.snapshot.id],p=g?Uu(g):void 0,C=_.selector,k=_.nodes[0].at(-1),x=[((F=k.quickFind)!=null?F:k.idQf)&&k.attr.id&&C.qfIdValue,((J=k.quickFind)!=null?J:k.idQf)&&k.attr.vid&&C.qfVidValue,((K=k.quickFind)!=null?K:k.textQf)&&k.attr.text&&C.qfTextValue].some(Boolean),I={id:n.snapshot.appId,name:Un(n.snapshot).name,groups:[{key:1,name:`[ChangeMe]规则名称-${x1().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:p}]}]};wr(I1.stringify(I,void 0,2))}),d=rt(!0),v=le(()=>Ii[n.snapshot.id]),b=_=>{if(!v.value)return;const m=new URL(Uu(Ii[n.snapshot.id]));typeof _.selector=="object"?m.searchParams.set("gkd",Ry(_.selector.toString())):m.searchParams.set("str",_.selector.toString()),wr(m.toString())};return(_,m)=>(ue(),kt($l,{initialValue:{top:75,right:Math.max(315,12*E(My)+135),width:Math.max(480,E(Ly)*.3)},minWidth:300,sizeDraggable:"",class:"z-1 box-shadow-dim"},{default:A(({onRef:g})=>[V("div",Oy,[V("div",Fy,[L(E(k1),{value:d.value,"onUpdate:value":m[0]||(m[0]=p=>d.value=p)},{default:A(()=>[L(E(ws),null,{default:A(()=>[L(E(Qu),{value:!1},{default:A(()=>[$e(" 字符搜索 ")]),_:1}),L(E(Qu),{value:!0},{default:A(()=>[$e(" 选择器查询 ")]),_:1})]),_:1})]),_:1},8,["value"]),V("div",{"flex-1":"","cursor-move":"",ref:g},null,512)]),L(E(C1),null,{default:A(()=>[L(E(N1),{value:r.value,"onUpdate:value":m[1]||(m[1]=p=>r.value=p),placeholder:d.value?"请输入选择器":"请输入字符",onKeyup:a1(E(f),["enter"]),inputProps:{class:"gkd_code"}},null,8,["value","placeholder","onKeyup"]),L(E(yr),{onClick:E(f)},{icon:A(()=>[L(E(zr),null,{default:A(()=>[Dy]),_:1})]),_:1},8,["onClick"])]),_:1}),zy,L(E(U1),{expandedNames:o.value,"onUpdate:expandedNames":m[2]||(m[2]=p=>o.value=p)},{default:A(()=>[(ue(!0),Mt(Br,null,ra(E(a),(p,C)=>(ue(),kt(E(V1),{key:p.key,name:p.key},{header:A(()=>[p.nodes.length>1?(ue(),Mt("span",By,Le(p.nodes.length),1)):Jt("",!0),V("span",{"break-all":"",title:typeof p.selector=="object"?"选择器":"搜索字符"},Le(p.selector.toString()),9,Ky)]),"header-extra":A(()=>[typeof p.selector=="object"&&p.selector.canCopy?(ue(),kt(E(yr),{key:0,size:"small",onClick:cs(k=>E(h)(p),["stop"]),title:"复制规则"},{icon:A(()=>[L(E(zr),null,{default:A(()=>[Uy]),_:1})]),_:2},1032,["onClick"])):Jt("",!0),Hy,v.value?(ue(),kt(E(yr),{key:1,size:"small",title:typeof p.selector=="object"?"复制查询链接":"复制搜索链接",onClick:cs(k=>b(p),["stop"])},{icon:A(()=>[L(E(zr),null,{default:A(()=>[Wy]),_:1})]),_:2},1032,["title","onClick"])):Jt("",!0),Vy,L(E(yr),{size:"small",onClick:cs(k=>E(a).splice(C,1),["stop"]),title:"删除记录"},{icon:A(()=>[L(E(zr),null,{default:A(()=>[Gy]),_:1})]),_:2},1032,["onClick"])]),default:A(()=>[L(E(ws),{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:A(()=>[typeof p.selector=="string"||p.selector.connectKeys.length===0?(ue(!0),Mt(Br,{key:0},ra(p.nodes.map(k=>Array.isArray(k)?k[0]:k),k=>(ue(),kt(E(yr),{key:k.id,onClick:x=>_.onUpdateFocusNode(k),size:"small",class:aa({"color-[#00F]":k===_.focusNode})},{default:A(()=>[$e(Le(E(ia)(k)),1)]),_:2},1032,["onClick","class"]))),128)):(ue(!0),Mt(Br,{key:1},ra(p.nodes.map(k=>Array.isArray(k)?k:[k]),(k,x)=>(ue(),kt(E(F1),{key:x},{default:A(()=>[L(E(yr),{size:"small",onClick:I=>_.onUpdateTrack({nodes:k,selector:p.selector})},{default:A(()=>[L(E(zr),null,{default:A(()=>[Jy]),_:1})]),_:2},1032,["onClick"]),L(E(yr),{onClick:I=>_.onUpdateFocusNode(k[p.selector.targetIndex]),size:"small",class:aa({"color-[#00F]":k[p.selector.targetIndex]===_.focusNode})},{default:A(()=>[$e(Le(E(ia)(k[p.selector.targetIndex])),1)]),_:2},1032,["onClick","class"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["expandedNames"])])]),_:1},8,["initialValue"]))}}),Yy={flex:"","flex-col":""},Xy=je({__name:"WindowCard",props:{snapshot:{},rootNode:{},focusNode:{},focusCount:{},onUpdateFocusNode:{type:Function,default:Yr}},setup(e){const t=e,n=rt([]);kr([()=>t.focusNode,()=>t.focusCount],async()=>{if(!t.focusNode)return;const l=t.focusNode.id;ta().then(async()=>{var h,d;await Dc(100),l===((h=t.focusNode)==null?void 0:h.id)&&((d=r.value)==null||d.scrollTo({key:l,behavior:"smooth",debounce:!0}))});let c=t.focusNode.parent;if(!c)return;const f=new Set(n.value);for(;c;)f.add(c.id),c=c.parent;f.size==n.value.length&&n.value.every(h=>f.has(h))||(n.value=[...f])});const r=rt(),a=(l,c)=>{var f;return c.id===((f=t.focusNode)==null?void 0:f.id)},o=l=>{var f;const c=l.option.idQf||l.option.textQf||l.option.quickFind;return{onClick:()=>{t.onUpdateFocusNode(l.option)},style:{color:l.option.id==((f=t.focusNode)==null?void 0:f.id)?"#00F":void 0,fontWeight:c?"bold":void 0}}},s=l=>ia(l.option);return(l,c)=>(ue(),Mt("div",Yy,[L(E(Hc),{size:"small",striped:"",singleLine:!1,themeOverrides:{thPaddingSmall:"2px 6px",tdPaddingSmall:"2px 6px"}},{default:A(()=>[L(E(tv),null,{default:A(()=>[L(E(ks),null,{default:A(()=>[L(E(Kn),null,{default:A(()=>[$e(" 设备 ")]),_:1}),L(E(Kn),null,{default:A(()=>[$e(" GKD ")]),_:1}),L(E(Kn),null,{default:A(()=>[$e(" 应用名称 ")]),_:1}),L(E(Kn),null,{default:A(()=>[$e(" 版本名称 ")]),_:1}),L(E(Kn),null,{default:A(()=>[$e(" 版本代码 ")]),_:1}),L(E(Kn),null,{default:A(()=>[$e(" 系统应用 ")]),_:1}),L(E(Kn),null,{default:A(()=>[$e(" 应用ID ")]),_:1}),L(E(Kn),null,{default:A(()=>[$e(" 界面ID ")]),_:1}),L(E(Kn),null,{default:A(()=>[$e(" 操作 ")]),_:1})]),_:1})]),_:1}),L(E(Wc),null,{default:A(()=>[L(E(ks),null,{default:A(()=>[L(E(wn),{class:"whitespace-nowrap w-0"},{default:A(()=>[$e(Le(`${E(Yu)(l.snapshot).manufacturer} Android ${E(Yu)(l.snapshot).release||""}`),1)]),_:1}),L(E(wn),{class:"whitespace-nowrap"},{default:A(()=>[$e(Le(E(S1)(l.snapshot).versionName),1)]),_:1}),L(E(wn),{class:"whitespace-nowrap",onClick:c[0]||(c[0]=f=>E(wr)(E(Un)(l.snapshot).name))},{default:A(()=>[L(E(Ei),null,{default:A(()=>[$e(Le(E(Un)(l.snapshot).name),1)]),_:1})]),_:1}),L(E(wn),{class:"whitespace-nowrap",onClick:c[1]||(c[1]=f=>E(wr)(E(Un)(l.snapshot).versionName))},{default:A(()=>[L(E(Ei),null,{default:A(()=>[$e(Le(E(Un)(l.snapshot).versionName),1)]),_:1})]),_:1}),L(E(wn),{class:"whitespace-nowrap",onClick:c[2]||(c[2]=f=>E(wr)(E(Un)(l.snapshot).versionCode.toString()))},{default:A(()=>[L(E(Ei),null,{default:A(()=>[$e(Le(E(Un)(l.snapshot).versionCode),1)]),_:1})]),_:1}),L(E(wn),{class:"whitespace-nowrap"},{default:A(()=>[$e(Le(E(Un)(l.snapshot).isSystem?"是":"否"),1)]),_:1}),L(E(wn),{class:"whitespace-nowrap max-w-[max(12vw,180px)]",onClick:c[3]||(c[3]=f=>E(wr)(l.snapshot.appId))},{default:A(()=>[L(E(Ei),null,{default:A(()=>[$e(Le(l.snapshot.appId),1)]),_:1})]),_:1}),L(E(wn),{onClick:c[4]||(c[4]=f=>E(wr)(l.snapshot.activityId)),class:"break-words max-w-[max(15vw,200px)] text-left direction-rtl"},{default:A(()=>[L(E(Ei),null,{default:A(()=>[$e(Le(l.snapshot.activityId),1)]),_:1})]),_:1}),L(E(wn),null,{default:A(()=>[Mc(l.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3}),L(E(_v),{ref_key:"treeRef",ref:r,virtualScroll:"",showLine:"",keyField:"id",expandedKeys:n.value,"onUpdate:expandedKeys":c[5]||(c[5]=f=>n.value=f),data:[l.rootNode],filter:a,nodeProps:o,renderLabel:s},null,8,["expandedKeys","data","filter","nodeProps","renderLabel"])]))}}),Zy={bg:"#eee","px-2px":""},eb=je({__name:"MultiFocusCard",props:{focusNode:{},focusNodes:{},onUpdateFocusNode:{type:Function,default:Yr},onClose:{type:Function,default:Yr}},setup(e){const n=document.documentElement.scrollWidth/100*25.5;return(r,a)=>(ue(),kt($l,{initialValue:{top:215,left:n},class:"z-2 box-shadow-dim w-420px",disabled:!r.focusNodes},{default:A(({onRef:o})=>[r.focusNodes?(ue(),kt(E(l1),{key:0,size:"small",closable:"",onClose:r.onClose},{header:A(()=>[V("div",{ref:o,"cursor-move":""},[$e(" 位置 "),V("span",Zy,Le(`${r.focusNodes.position.x.toFixed(0)},${r.focusNodes.position.y.toFixed()}`),1),$e(" 存在 "+Le(r.focusNodes.nodes.length)+" 个层叠节点 ",1)],512)]),default:A(()=>[L(E(ws),{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:A(()=>[(ue(!0),Mt(Br,null,ra(r.focusNodes.nodes,s=>(ue(),kt(E(yr),{key:s.id,onClick:l=>r.onUpdateFocusNode(s),size:"small",class:aa({"color-[#00F]":s===r.focusNode})},{default:A(()=>[$e(Le(E(ia)(s)),1)]),_:2},1032,["onClick","class"]))),128))]),_:1})]),_:2},1032,["onClose"])):Jt("",!0)]),_:1},8,["initialValue","disabled"]))}}),tb={"h-full":"",flex:"","gap-5px":"","p-5px":"","box-border":""},nb=V("svg",{viewBox:"0 0 24 24"},[V("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),rb={key:0,class:"gkd_code py-2px px-4px rounded-2px bg-[#eee]"},ib=V("div",{"opacity-75":"","text-12px":""},"*为简化视图已隐藏部分节点",-1),vb=je({__name:"SnapshotPage",setup(e){const t=(()=>{const g=()=>f1(()=>import("./TrackGraph-B3uXACFP.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return setTimeout(g,3e3),u1(g)})(),n=Fc(),r=Oc(),a=q1(),o=le(()=>String(n.params.snapshotId||"")),s=le(()=>{const g=Number(n.query.showSize||"");return!Number.isSafeInteger(g)||g<=0?2e3:g}),l=rt(""),c=rt();xa(async()=>{if(!Number.isSafeInteger(+o.value)){kn.error("非法快照ID");return}const g=await Hu.getItem(o.value);if(!g){Wu.start();try{const C=Ii[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{Wu.finish()}kn.error("快照数据缺失");return}setTimeout(()=>{const C=Ii[g.id];C&&T1(C)},1e3),v1()&&Lc.autoUploadImport&&setTimeout(async()=>{P1(g),Ii[g.id]||j1(await Hu.getItem(o.value))},1e3),g.nodes.length>s.value&&(kn.warning(`当前展示节点数量为${s.value}
|
|
274
|
-
之后的${g.nodes.length-s.value}个节点将被丢弃
|
|
275
|
-
使用showSize查询参数可以修改展示数量`),g.nodes=g.nodes.slice(0,s.value));const p=await c1.getItem(o.value);if(!p){kn.create("截屏数据缺失");return}l.value=URL.createObjectURL(new Blob([p],{type:"image/png"})),c.value=g,f.value=$1(g.nodes),a.value="快照-"+Un(g).name||g.appId,h.value||(h.value=f.value)});const f=rt(),h=rt(),d=rt(0),v=async()=>{kn.success("删除成功,即将回到首页"),await Dc(2e3),r.replace({path:"/"})},b=rt(),_=rt(!1);$i(()=>{b.value&&(_.value=!0)});const m=rt();return kr(()=>h.value,g=>{var C;const p=(C=m.value)==null?void 0:C.nodes;p&&(!g||!p.includes(g))&&(m.value=void 0)}),(g,p)=>(ue(),Mt("div",tb,[l.value&&c.value?(ue(),kt(Ov,{key:0,url:l.value,snapshot:c.value,rootNode:f.value,focusNode:h.value,onUpdateFocusNode:p[0]||(p[0]=C=>{h.value=C,d.value++}),onUpdateFocusNodes:p[1]||(p[1]=C=>m.value=C)},null,8,["url","snapshot","rootNode","focusNode"])):Jt("",!0),c.value&&f.value?(ue(),kt(Xy,{key:1,rootNode:f.value,snapshot:c.value,focusNode:h.value,onUpdateFocusNode:p[2]||(p[2]=C=>h.value=C),focusCount:d.value,class:"flex-1"},{default:A(()=>[c.value?(ue(),kt(d1,{key:0,snapshot:c.value,onDelete:v,showPreview:!1},null,8,["snapshot"])):Jt("",!0)]),_:1},8,["rootNode","snapshot","focusNode","focusCount"])):Jt("",!0),h.value?(ue(),kt(Ev,{key:2,focusNode:h.value},null,8,["focusNode"])):Jt("",!0),f.value&&c.value?(ue(),kt(Qy,{key:3,snapshot:c.value,rootNode:f.value,focusNode:h.value,onUpdateFocusNode:p[3]||(p[3]=C=>{h.value=C,d.value++}),onUpdateTrack:p[4]||(p[4]=C=>b.value=C)},null,8,["snapshot","rootNode","focusNode"])):Jt("",!0),L(eb,{focusNode:h.value,focusNodes:m.value,onUpdateFocusNode:p[5]||(p[5]=C=>{h.value=C,d.value++}),onClose:p[6]||(p[6]=C=>m.value=void 0)},null,8,["focusNode","focusNodes"]),L(E(h1),{show:_.value,"onUpdate:show":p[7]||(p[7]=C=>_.value=C),preset:"dialog",title:"选择器路径视图",class:"min-w-[calc(var(--gkd-width)*0.4)]",onAfterLeave:p[8]||(p[8]=C=>b.value=void 0)},{icon:A(()=>[L(E(zr),null,{default:A(()=>[nb]),_:1})]),default:A(()=>[b.value?(ue(),Mt("div",rb,Le(b.value.selector.toString()),1)):Jt("",!0),b.value?(ue(),kt(E(t),{key:1,track:b.value},null,8,["track"])):Jt("",!0),ib]),_:1},8,["show"])]))}});export{vb as default};
|
|
276
|
-
//# sourceMappingURL=SnapshotPage-C3BFovS4.js.map
|