@gkd-kit/inspect 0.0.1728482042396 → 0.0.1729873789619
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-CCPNlPHa.js +17 -0
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-CCPNlPHa.js.map +1 -0
- package/dist/assets/DevicePage-Cm1OoyKo.js +49 -0
- package/dist/assets/DevicePage-Cm1OoyKo.js.map +1 -0
- package/dist/assets/HomePage-CT-J4eCH.js +119 -0
- package/dist/assets/{HomePage-CISsYbai.js.map → HomePage-CT-J4eCH.js.map} +1 -1
- package/dist/assets/ImportPage-BBJWt7tZ.js +2 -0
- package/dist/assets/ImportPage-BBJWt7tZ.js.map +1 -0
- package/dist/assets/PreviewSharePage-DEMuLTdc.js +2 -0
- package/dist/assets/{PreviewSharePage-Bt7cRsKN.js.map → PreviewSharePage-DEMuLTdc.js.map} +1 -1
- package/dist/assets/{SelectorPage-CqKBKxFx.js → SelectorPage-DURH77U7.js} +2 -2
- package/dist/assets/SelectorPage-DURH77U7.js.map +1 -0
- package/dist/assets/SnapshotPage-DYT1omfT.js +279 -0
- package/dist/assets/SnapshotPage-DYT1omfT.js.map +1 -0
- package/dist/assets/{TrackGraph-splH1Tu4.js → TrackGraph-CInYslON.js} +3 -3
- package/dist/assets/{TrackGraph-splH1Tu4.js.map → TrackGraph-CInYslON.js.map} +1 -1
- package/dist/assets/{_404Page-4LcsRMcS.js → _404Page-CuCx1IdG.js} +2 -2
- package/dist/assets/{_404Page-4LcsRMcS.js.map → _404Page-CuCx1IdG.js.map} +1 -1
- package/dist/assets/dayjs.min-uJENVlBD.js +362 -0
- package/dist/assets/{dayjs.min-BGYZIb5x.js.map → dayjs.min-uJENVlBD.js.map} +1 -1
- package/dist/assets/error-CT8oyr5o.js +2 -0
- package/dist/assets/{error-DT8Xtqva.js.map → error-CT8oyr5o.js.map} +1 -1
- package/dist/assets/{export-DB8HS-FM.js → export-B-6cvWy0.js} +5 -5
- package/dist/assets/export-B-6cvWy0.js.map +1 -0
- package/dist/assets/fetch-BzpHdKUe.js +3 -0
- package/dist/assets/fetch-BzpHdKUe.js.map +1 -0
- package/dist/assets/import-zQbiPjPT.js +2 -0
- package/dist/assets/import-zQbiPjPT.js.map +1 -0
- package/dist/assets/{index-CLeFhDja.js → index-BaGfsKYf.js} +2 -2
- package/dist/assets/{index-CLeFhDja.js.map → index-BaGfsKYf.js.map} +1 -1
- package/dist/assets/{index-COG9e1B7.js → index-JV7EmdVw.js} +3 -3
- package/dist/assets/{index-COG9e1B7.js.map → index-JV7EmdVw.js.map} +1 -1
- package/dist/assets/index-PnYsQg37.js +900 -0
- package/dist/assets/index-PnYsQg37.js.map +1 -0
- package/dist/assets/polyfills-DqeL3OL8.js +1 -0
- package/dist/assets/snapshot-B3ZTvFbe.js +2 -0
- package/dist/assets/snapshot-B3ZTvFbe.js.map +1 -0
- package/dist/assets/{table-DBSs4lCt.js → table-7JBU8g1m.js} +17 -17
- package/dist/assets/{table-DBSs4lCt.js.map → table-7JBU8g1m.js.map} +1 -1
- package/dist/index.html +3 -3
- package/package.json +4 -3
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-Cq8KGn5Z.js +0 -17
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-Cq8KGn5Z.js.map +0 -1
- package/dist/assets/DevicePage-6VV4qweq.js +0 -49
- package/dist/assets/DevicePage-6VV4qweq.js.map +0 -1
- package/dist/assets/HomePage-CISsYbai.js +0 -119
- package/dist/assets/ImportPage-C0MjdXRR.js +0 -2
- package/dist/assets/ImportPage-C0MjdXRR.js.map +0 -1
- package/dist/assets/PreviewSharePage-Bt7cRsKN.js +0 -2
- package/dist/assets/SelectorPage-CqKBKxFx.js.map +0 -1
- package/dist/assets/SnapshotPage-DmUnH0UH.js +0 -279
- package/dist/assets/SnapshotPage-DmUnH0UH.js.map +0 -1
- package/dist/assets/dayjs.min-BGYZIb5x.js +0 -362
- package/dist/assets/error-DT8Xtqva.js +0 -2
- package/dist/assets/export-DB8HS-FM.js.map +0 -1
- package/dist/assets/fetch-KNoISS-x.js +0 -332
- package/dist/assets/fetch-KNoISS-x.js.map +0 -1
- package/dist/assets/import-CebuCb71.js +0 -2
- package/dist/assets/import-CebuCb71.js.map +0 -1
- package/dist/assets/index-CE_5kTG8.js +0 -2
- package/dist/assets/index-CE_5kTG8.js.map +0 -1
- package/dist/assets/index-KktKH_r0.js +0 -567
- package/dist/assets/index-KktKH_r0.js.map +0 -1
- package/dist/assets/polyfills-qB0P6p8B.js +0 -1
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729873789619/files/dist/assets/TrackGraph-CInYslON.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729873789619/files/dist/assets/index-PnYsQg37.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729873789619/files/dist/assets/index-DlhjoJf3.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729873789619/files/dist/assets/dayjs.min-uJENVlBD.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729873789619/files/dist/assets/index-JV7EmdVw.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{h as jt,v as O,a as Z,g as jn,e as J,f as rt,b as At,u as La,a0 as e1,a1 as Ml,a2 as n1,a3 as Oa,d as Pl,a4 as Ms,r as ge,m as X,l as _a,j as Gi,q as Rl,a5 as Ll,y as xe,a6 as r1,t as bt,a7 as Hf,a8 as Vf,a9 as Qf,aa as i1,ab as je,ac as mi,ad as a1,ae as Gu,af as Gf,ag as o1,ah as Zn,ai as s1,aj as l1,ak as u1,c as f1,al as c1,am as h1,n as ws,N as d1,x as v1,$ as p1,an as bs,ao as _1,S as ja,ap as m1,p as Jf,i as g1,B as Fi,V as Pr,aq as ks,o as da,ar as Ju,as as Yu,at as ma,A as Pt,T as Ol,au as vo,C as tt,av as ve,D as se,aw as Yf,G as E,I as zn,L as M,P as ye,ax as Ps,ay as Kr,az as y1,F as T,E as K,aA as ya,K as er,O as Rt,M as we,aB as fi,aC as w1,Q as $o,aD as po,R as Xf,aE as Zf,aF as tc,aG as En,H as Bi,Z as b1,aH as Cs,aI as Xu,Y as k1,aJ as ec,aK as C1,aL as Zu,aM as x1,J as S1,_ as $1}from"./index-PnYsQg37.js";import{_ as E1}from"./ActionCard.vue_vue_type_script_setup_true_lang-CCPNlPHa.js";import{e as N1,f as I1,g as q1}from"./export-B-6cvWy0.js";import{g as A1}from"./fetch-BzpHdKUe.js";import{h as Di,C as T1,e as M1,c as tf,d as P1,V as R1,f as ef,N as nf,i as nc,j as L1,_ as rc,k as Ki,l as O1,m as rf,n as j1,o as z1,b as F1,g as tr,p as D1,q as af,r as of,s as B1}from"./dayjs.min-uJENVlBD.js";import{a as sf,b as K1}from"./snapshot-B3ZTvFbe.js";import{N as za,_ as ic,l as ac,r as U1}from"./index-JV7EmdVw.js";import{u as W1,a as H1,b as V1}from"./index-BaGfsKYf.js";import{e as Q1,a as lf}from"./error-CT8oyr5o.js";function oc(t){return typeof t=="string"?`s-${t}`:`n-${t}`}const G1=jt({name:"ChevronLeft",render(){return O("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},O("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),J1=jt({name:"Switcher",render(){return O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},O("path",{d:"M12 8l10 8l-10 8z"}))}}),Ht="0!important",sc="-1px!important";function Oi(t){return rt(`${t}-type`,[J("& +",[Z("button",{},[rt(`${t}-type`,[At("border",{borderLeftWidth:Ht}),At("state-border",{left:sc})])])])])}function ji(t){return rt(`${t}-type`,[J("& +",[Z("button",[rt(`${t}-type`,[At("border",{borderTopWidth:Ht}),At("state-border",{top:sc})])])])])}const Y1=Z("button-group",`
|
|
3
|
+
flex-wrap: nowrap;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
`,[jn("vertical",{flexDirection:"row"},[jn("rtl",[Z("button",[J("&:first-child:not(:last-child)",`
|
|
7
|
+
margin-right: ${Ht};
|
|
8
|
+
border-top-right-radius: ${Ht};
|
|
9
|
+
border-bottom-right-radius: ${Ht};
|
|
10
|
+
`),J("&:last-child:not(:first-child)",`
|
|
11
|
+
margin-left: ${Ht};
|
|
12
|
+
border-top-left-radius: ${Ht};
|
|
13
|
+
border-bottom-left-radius: ${Ht};
|
|
14
|
+
`),J("&:not(:first-child):not(:last-child)",`
|
|
15
|
+
margin-left: ${Ht};
|
|
16
|
+
margin-right: ${Ht};
|
|
17
|
+
border-radius: ${Ht};
|
|
18
|
+
`),Oi("default"),rt("ghost",[Oi("primary"),Oi("info"),Oi("success"),Oi("warning"),Oi("error")])])])]),rt("vertical",{flexDirection:"column"},[Z("button",[J("&:first-child:not(:last-child)",`
|
|
19
|
+
margin-bottom: ${Ht};
|
|
20
|
+
margin-left: ${Ht};
|
|
21
|
+
margin-right: ${Ht};
|
|
22
|
+
border-bottom-left-radius: ${Ht};
|
|
23
|
+
border-bottom-right-radius: ${Ht};
|
|
24
|
+
`),J("&:last-child:not(:first-child)",`
|
|
25
|
+
margin-top: ${Ht};
|
|
26
|
+
margin-left: ${Ht};
|
|
27
|
+
margin-right: ${Ht};
|
|
28
|
+
border-top-left-radius: ${Ht};
|
|
29
|
+
border-top-right-radius: ${Ht};
|
|
30
|
+
`),J("&:not(:first-child):not(:last-child)",`
|
|
31
|
+
margin: ${Ht};
|
|
32
|
+
border-radius: ${Ht};
|
|
33
|
+
`),ji("default"),rt("ghost",[ji("primary"),ji("info"),ji("success"),ji("warning"),ji("error")])])])]),X1={size:{type:String,default:void 0},vertical:Boolean},Z1=jt({name:"ButtonGroup",props:X1,setup(t){const{mergedClsPrefixRef:e,mergedRtlRef:n}=La(t);return e1("-button-group",Y1,e),Ml(n1,t),{rtlEnabled:Oa("ButtonGroup",n,e),mergedClsPrefix:e}},render(){const{mergedClsPrefix:t}=this;return O("div",{class:[`${t}-button-group`,this.rtlEnabled&&`${t}-button-group--rtl`,this.vertical&&`${t}-button-group--vertical`],role:"group"},this.$slots)}});function tv(t){const{fontWeight:e,textColor1:n,textColor2:r,textColorDisabled:a,dividerColor:o,fontSize:s}=t;return{titleFontSize:s,titleFontWeight:e,dividerColor:o,titleTextColor:n,titleTextColorDisabled:a,fontSize:s,textColor:r,arrowColor:r,arrowColorDisabled:a,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const ev={name:"Collapse",common:Pl,self:tv},nv=Z("collapse","width: 100%;",[Z("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
|
+
`,[rt("disabled",[At("header","cursor: not-allowed;",[At("header-main",`
|
|
41
|
+
color: var(--n-title-text-color-disabled);
|
|
42
|
+
`),Z("collapse-item-arrow",`
|
|
43
|
+
color: var(--n-arrow-color-disabled);
|
|
44
|
+
`)])]),Z("collapse-item","margin-left: 32px;"),J("&:first-child","margin-top: 0;"),J("&:first-child >",[At("header","padding-top: 0;")]),rt("left-arrow-placement",[At("header",[Z("collapse-item-arrow","margin-right: 4px;")])]),rt("right-arrow-placement",[At("header",[Z("collapse-item-arrow","margin-left: 4px;")])]),At("content-wrapper",[At("content-inner","padding-top: 16px;"),Ms({duration:"0.15s"})]),rt("active",[At("header",[rt("active",[Z("collapse-item-arrow","transform: rotate(90deg);")])])]),J("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),jn("disabled",[rt("trigger-area-main",[At("header",[At("header-main","cursor: pointer;"),Z("collapse-item-arrow","cursor: default;")])]),rt("trigger-area-arrow",[At("header",[Z("collapse-item-arrow","cursor: pointer;")])]),rt("trigger-area-extra",[At("header",[At("header-extra","cursor: pointer;")])])]),At("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
|
+
`,[At("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
|
+
`),At("header-extra",`
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
transition: color .3s var(--n-bezier);
|
|
65
|
+
color: var(--n-text-color);
|
|
66
|
+
`),Z("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
|
+
`)])])]),rv=Object.assign(Object.assign({},Gi.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}}),lc=Ll("n-collapse"),iv=jt({name:"Collapse",props:rv,setup(t,{slots:e}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=La(t),o=ge(t.defaultExpandedNames),s=X(()=>t.expandedNames),l=_a(s,o),c=Gi("Collapse","-collapse",nv,ev,t,n);function f(g){const{"onUpdate:expandedNames":y,onUpdateExpandedNames:x,onExpandedNamesChange:C}=t;x&&xe(x,g),y&&xe(y,g),C&&xe(C,g),o.value=g}function h(g){const{onItemHeaderClick:y}=t;y&&xe(y,g)}function d(g,y,x){const{accordion:C}=t,{value:p}=l;if(C)g?(f([y]),h({name:y,expanded:!0,event:x})):(f([]),h({name:y,expanded:!1,event:x}));else if(!Array.isArray(p))f([y]),h({name:y,expanded:!0,event:x});else{const k=p.slice(),S=k.findIndex(I=>y===I);~S?(k.splice(S,1),f(k),h({name:y,expanded:!1,event:x})):(k.push(y),f(k),h({name:y,expanded:!0,event:x}))}}Ml(lc,{props:t,mergedClsPrefixRef:n,expandedNamesRef:l,slots:e,toggleItem:d});const v=Oa("Collapse",a,n),_=X(()=>{const{common:{cubicBezierEaseInOut:g},self:{titleFontWeight:y,dividerColor:x,titlePadding:C,titleTextColor:p,titleTextColorDisabled:k,textColor:S,arrowColor:I,fontSize:A,titleFontSize:U,arrowColorDisabled:Y,itemMargin:lt}}=c.value;return{"--n-font-size":A,"--n-bezier":g,"--n-text-color":S,"--n-divider-color":x,"--n-title-padding":C,"--n-title-font-size":U,"--n-title-text-color":p,"--n-title-text-color-disabled":k,"--n-title-font-weight":y,"--n-arrow-color":I,"--n-arrow-color-disabled":Y,"--n-item-margin":lt}}),m=r?Rl("collapse",void 0,_,t):void 0;return{rtlEnabled:v,mergedTheme:c,mergedClsPrefix:n,cssVars:r?void 0:_,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),O("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),av=jt({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(t){return{onceTrue:r1(bt(t,"show"))}},render(){return O(Qf,null,{default:()=>{const{show:t,displayDirective:e,onceTrue:n,clsPrefix:r}=this,a=e==="show"&&n,o=O("div",{class:`${r}-collapse-item__content-wrapper`},O("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return a?Hf(o,[[Vf,t]]):t?o:null}})}}),ov={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},sv=jt({name:"CollapseItem",props:ov,setup(t){const{mergedRtlRef:e}=La(t),n=i1(),r=je(()=>{var d;return(d=t.name)!==null&&d!==void 0?d:n}),a=mi(lc);a||a1("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:o,props:s,mergedClsPrefixRef:l,slots:c}=a,f=X(()=>{const{value:d}=o;if(Array.isArray(d)){const{value:v}=r;return!~d.findIndex(_=>_===v)}else if(d){const{value:v}=r;return v!==d}return!0});return{rtlEnabled:Oa("Collapse",e,l),collapseSlots:c,randomName:n,mergedClsPrefix:l,collapsed:f,triggerAreas:bt(s,"triggerAreas"),mergedDisplayDirective:X(()=>{const{displayDirective:d}=t;return d||s.displayDirective}),arrowPlacement:X(()=>s.arrowPlacement),handleClick(d){let v="main";Di(d,"arrow")&&(v="arrow"),Di(d,"extra")&&(v="extra"),s.triggerAreas.includes(v)&&a&&!t.disabled&&a.toggleItem(f.value,r.value,d)}}},render(){const{collapseSlots:t,$slots:e,arrowPlacement:n,collapsed:r,mergedDisplayDirective:a,mergedClsPrefix:o,disabled:s,triggerAreas:l}=this,c=Gu(e.header,{collapsed:r},()=>[this.title]),f=e["header-extra"]||t["header-extra"],h=e.arrow||t.arrow;return O("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}`)]},O("div",{class:[`${o}-collapse-item__header`,!r&&`${o}-collapse-item__header--active`]},O("div",{class:`${o}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&c,O("div",{class:`${o}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},Gu(h,{collapsed:r},()=>{var d;return[O(Gf,{clsPrefix:o},{default:(d=t.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?O(G1,null):O(T1,null)})]})),n==="left"&&c),o1(f,{collapsed:r},d=>O("div",{class:`${o}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},d))),O(av,{clsPrefix:o,displayDirective:a,show:!r},e))}}),lv={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function uv(t){const{dividerColor:e,cardColor:n,modalColor:r,popoverColor:a,tableHeaderColor:o,tableColorStriped:s,textColor1:l,textColor2:c,borderRadius:f,fontWeightStrong:h,lineHeight:d,fontSizeSmall:v,fontSizeMedium:_,fontSizeLarge:m}=t;return Object.assign(Object.assign({},lv),{fontSizeSmall:v,fontSizeMedium:_,fontSizeLarge:m,lineHeight:d,borderRadius:f,borderColor:Zn(n,e),borderColorModal:Zn(r,e),borderColorPopover:Zn(a,e),tdColor:n,tdColorModal:r,tdColorPopover:a,tdColorStriped:Zn(n,s),tdColorStripedModal:Zn(r,s),tdColorStripedPopover:Zn(a,s),thColor:Zn(n,o),thColorModal:Zn(r,o),thColorPopover:Zn(a,o),thTextColor:l,tdTextColor:c,thFontWeight:h})}const fv={name:"Table",common:Pl,self:uv};function cv(t){const{borderRadiusSmall:e,dividerColor:n,hoverColor:r,pressedColor:a,primaryColor:o,textColor3:s,textColor2:l,textColorDisabled:c,fontSize:f}=t;return{fontSize:f,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:e,nodeColorHover:r,nodeColorPressed:a,nodeColorActive:f1(o,{alpha:.1}),arrowColor:s,nodeTextColor:l,nodeTextColorDisabled:c,loadingColor:o,dropMarkColor:o,lineColor:n}}const hv=s1({name:"Tree",common:Pl,peers:{Checkbox:l1,Scrollbar:u1,Empty:M1},self:cv}),dv=J([Z("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
|
+
`,[J("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
|
+
`,[J("&:last-child",`
|
|
107
|
+
border-right: 0px solid var(--n-merged-border-color);
|
|
108
|
+
`)]),J("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
|
+
`,[J("&:last-child",`
|
|
120
|
+
border-right: 0px solid var(--n-merged-border-color);
|
|
121
|
+
`)]),rt("bordered",`
|
|
122
|
+
border: 1px solid var(--n-merged-border-color);
|
|
123
|
+
border-radius: var(--n-border-radius);
|
|
124
|
+
`,[J("tr",[J("&:last-child",[J("td",`
|
|
125
|
+
border-bottom: 0 solid var(--n-merged-border-color);
|
|
126
|
+
`)])])]),rt("single-line",[J("th",`
|
|
127
|
+
border-right: 0px solid var(--n-merged-border-color);
|
|
128
|
+
`),J("td",`
|
|
129
|
+
border-right: 0px solid var(--n-merged-border-color);
|
|
130
|
+
`)]),rt("single-column",[J("tr",[J("&:not(:last-child)",[J("td",`
|
|
131
|
+
border-bottom: 0px solid var(--n-merged-border-color);
|
|
132
|
+
`)])])]),rt("striped",[J("tr:nth-of-type(even)",[J("td","background-color: var(--n-td-color-striped)")])]),jn("bottom-bordered",[J("tr",[J("&:last-child",[J("td",`
|
|
133
|
+
border-bottom: 0px solid var(--n-merged-border-color);
|
|
134
|
+
`)])])])]),c1(Z("table",`
|
|
135
|
+
background-color: var(--n-td-color-modal);
|
|
136
|
+
--n-merged-border-color: var(--n-border-color-modal);
|
|
137
|
+
`,[J("th",`
|
|
138
|
+
background-color: var(--n-th-color-modal);
|
|
139
|
+
`),J("td",`
|
|
140
|
+
background-color: var(--n-td-color-modal);
|
|
141
|
+
`)])),h1(Z("table",`
|
|
142
|
+
background-color: var(--n-td-color-popover);
|
|
143
|
+
--n-merged-border-color: var(--n-border-color-popover);
|
|
144
|
+
`,[J("th",`
|
|
145
|
+
background-color: var(--n-th-color-popover);
|
|
146
|
+
`),J("td",`
|
|
147
|
+
background-color: var(--n-td-color-popover);
|
|
148
|
+
`)]))]),vv=Object.assign(Object.assign({},Gi.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"}}),pv=jt({name:"Table",props:vv,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:r}=La(t),a=Gi("Table","-table",dv,fv,t,e),o=Oa("Table",r,e),s=X(()=>{const{size:c}=t,{self:{borderColor:f,tdColor:h,tdColorModal:d,tdColorPopover:v,thColor:_,thColorModal:m,thColorPopover:g,thTextColor:y,tdTextColor:x,borderRadius:C,thFontWeight:p,lineHeight:k,borderColorModal:S,borderColorPopover:I,tdColorStriped:A,tdColorStripedModal:U,tdColorStripedPopover:Y,[ws("fontSize",c)]:lt,[ws("tdPadding",c)]:Mt,[ws("thPadding",c)]:xt},common:{cubicBezierEaseInOut:ae}}=a.value;return{"--n-bezier":ae,"--n-td-color":h,"--n-td-color-modal":d,"--n-td-color-popover":v,"--n-td-text-color":x,"--n-border-color":f,"--n-border-color-modal":S,"--n-border-color-popover":I,"--n-border-radius":C,"--n-font-size":lt,"--n-th-color":_,"--n-th-color-modal":m,"--n-th-color-popover":g,"--n-th-font-weight":p,"--n-th-text-color":y,"--n-line-height":k,"--n-td-padding":Mt,"--n-th-padding":xt,"--n-td-color-striped":A,"--n-td-color-striped-modal":U,"--n-td-color-striped-popover":Y}}),l=n?Rl("table",X(()=>t.size[0]),s,t):void 0;return{rtlEnabled:o,mergedClsPrefix:e,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{mergedClsPrefix:e}=this;return(t=this.onRender)===null||t===void 0||t.call(this),O("table",{class:[`${e}-table`,this.themeClass,{[`${e}-table--rtl`]:this.rtlEnabled,[`${e}-table--bottom-bordered`]:this.bottomBordered,[`${e}-table--bordered`]:this.bordered,[`${e}-table--single-line`]:this.singleLine,[`${e}-table--single-column`]:this.singleColumn,[`${e}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),_v=jt({name:"Tr",render(){return O("tr",null,this.$slots)}}),mv=jt({name:"Td",render(){return O("td",null,this.$slots)}}),gv=jt({name:"Tbody",render(){return O("tbody",null,this.$slots)}}),uc=Ll("n-tree-select"),Fa=Ll("n-tree"),yv=jt({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(t){const{renderSwitcherIconRef:e}=mi(Fa,null);return()=>{const{clsPrefix:n,expanded:r,hide:a,indent:o,onClick:s}=t;return O("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},O("div",{class:`${n}-tree-node-switcher__icon`},O(d1,null,{default:()=>{if(t.loading)return O(v1,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:l}=e;return l?l({expanded:t.expanded,selected:t.selected,option:t.tmNode.rawNode}):O(Gf,{clsPrefix:n,key:"switcher"},{default:()=>O(J1,null)})}})))}}}),wv=jt({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(t){const e=mi(Fa);function n(a){const{onCheck:o}=t;o&&o(a)}function r(a){n(a)}return{handleUpdateValue:r,mergedTheme:e.mergedThemeRef}},render(){const{clsPrefix:t,mergedTheme:e,checked:n,indeterminate:r,disabled:a,focusable:o,indent:s,handleUpdateValue:l}=this;return O("span",{class:[`${t}-tree-node-checkbox`,this.right&&`${t}-tree-node-checkbox--right`],style:{width:`${s}px`},"data-checkbox":!0},O(p1,{focusable:o,disabled:a,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:l}))}}),bv=jt({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(t){const{renderLabelRef:e,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:a}=mi(Fa),o=ge(null);function s(c){const{onClick:f}=t;f&&f(c)}function l(c){s(c)}return{selfRef:o,renderLabel:e,renderPrefix:n,renderSuffix:r,labelField:a,handleClick:l}},render(){const{clsPrefix:t,labelField:e,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,[e]:_}}}=this;return O("span",Object.assign({},n,{ref:"selfRef",class:[`${t}-tree-node-content`,n==null?void 0:n.class],onClick:c,draggable:f===void 0?void 0:!0,onDragstart:f}),s||d?O("div",{class:`${t}-tree-node-content__prefix`},s?s({option:h,selected:a,checked:r}):bs(d)):null,O("div",{class:`${t}-tree-node-content__text`},o?o({option:h,selected:a,checked:r}):bs(_)),l||v?O("div",{class:`${t}-tree-node-content__suffix`},l?l({option:h,selected:a,checked:r}):bs(v)):null)}});function uf({position:t,offsetLevel:e,indent:n,el:r}){const a={position:"absolute",boxSizing:"border-box",right:0};if(t==="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=t==="before"?"top":"bottom";a[o]=0,a.left=`${r.offsetLeft+6-e*n}px`,a.height="2px",a.backgroundColor="var(--n-drop-mark-color)",a.transformOrigin=o,a.borderRadius="1px",a.transform=t==="before"?"translateY(-4px)":"translateY(4px)"}return O("div",{style:a})}function kv({dropPosition:t,node:e}){return e.isLeaf===!1||e.children?!0:t!=="inside"}function Cv(t){return X(()=>t.leafOnly?"child":t.checkStrategy)}function Mr(t,e){return!!t.rawNode[e]}function fc(t,e,n,r){t==null||t.forEach(a=>{n(a),fc(a[e],e,n,r),r(a)})}function xv(t,e,n,r,a){const o=new Set,s=new Set,l=[];return fc(t,r,c=>{if(l.push(c),a(e,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(_1&&Image){const t=new Image;t.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function Sv(t,e,n,r,a){const o=new Set,s=new Set,l=new Set,c=[],f=[],h=[];function d(_){_.forEach(m=>{if(h.push(m),e(n,m)){o.add(m[r]),l.add(m[r]);for(let y=h.length-2;y>=0;--y){const x=h[y][r];if(!s.has(x))s.add(x),o.has(x)&&o.delete(x);else break}}const g=m[a];g&&d(g),h.pop()})}d(t);function v(_,m){_.forEach(g=>{const y=g[r],x=o.has(y),C=s.has(y);if(!x&&!C)return;const p=g[a];if(p)if(x)m.push(g);else{c.push(y);const k=Object.assign(Object.assign({},g),{[a]:[]});m.push(k),v(p,k[a])}else m.push(g)})}return v(t,f),{filteredTree:f,highlightKeySet:l,expandedKeys:c}}const cc=jt({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(t){const e=mi(Fa),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:a,droppingPositionRef:o,droppingOffsetLevelRef:s,nodePropsRef:l,indentRef:c,blockLineRef:f,checkboxPlacementRef:h,checkOnClickRef:d,disabledFieldRef:v,showLineRef:_,renderSwitcherIconRef:m,overrideDefaultNodeClickBehaviorRef:g}=e,y=je(()=>!!t.tmNode.rawNode.checkboxDisabled),x=je(()=>Mr(t.tmNode,v.value)),C=je(()=>e.disabledRef.value||x.value),p=X(()=>{const{value:L}=l;if(L)return L({option:t.tmNode.rawNode})}),k=ge(null),S={value:null};ja(()=>{S.value=k.value.$el});function I(){const L=()=>{const{tmNode:ft}=t;if(!ft.isLeaf&&!ft.shallowLoaded){if(!e.loadingKeysRef.value.has(ft.key))e.loadingKeysRef.value.add(ft.key);else return;const{onLoadRef:{value:mt}}=e;mt&&mt(ft.rawNode).then(Dt=>{Dt!==!1&&e.handleSwitcherClick(ft)}).finally(()=>{e.loadingKeysRef.value.delete(ft.key)})}else e.handleSwitcherClick(ft)};m.value?setTimeout(L,0):L()}const A=je(()=>!x.value&&e.selectableRef.value&&(e.internalTreeSelect?e.mergedCheckStrategyRef.value!=="child"||e.multipleRef.value&&e.cascadeRef.value||t.tmNode.isLeaf:!0)),U=je(()=>e.checkableRef.value&&(e.cascadeRef.value||e.mergedCheckStrategyRef.value!=="child"||t.tmNode.isLeaf)),Y=je(()=>e.displayedCheckedKeysRef.value.includes(t.tmNode.key)),lt=je(()=>{const{value:L}=U;if(!L)return!1;const{value:ft}=d,{tmNode:mt}=t;return typeof ft=="boolean"?!mt.disabled&&ft:ft(t.tmNode.rawNode)});function Mt(L){const{value:ft}=e.expandOnClickRef,{value:mt}=A,{value:Dt}=lt;if(!mt&&!ft&&!Dt||Di(L,"checkbox")||Di(L,"switcher"))return;const{tmNode:de}=t;mt&&e.handleSelect(de),ft&&!de.isLeaf&&I(),Dt&&W(!Y.value)}function xt(L){var ft,mt;if(!(Di(L,"checkbox")||Di(L,"switcher"))){if(!C.value){const Dt=g.value;let de=!1;if(Dt)switch(Dt({option:t.tmNode.rawNode})){case"toggleCheck":de=!0,W(!Y.value);break;case"toggleSelect":de=!0,e.handleSelect(t.tmNode);break;case"toggleExpand":de=!0,I(),de=!0;break;case"none":de=!0,de=!0;return}de||Mt(L)}(mt=(ft=p.value)===null||ft===void 0?void 0:ft.onClick)===null||mt===void 0||mt.call(ft,L)}}function ae(L){f.value||xt(L)}function pt(L){f.value&&xt(L)}function W(L){e.handleCheck(t.tmNode,L)}function Ft(L){e.handleDragStart({event:L,node:t.tmNode})}function ut(L){L.currentTarget===L.target&&e.handleDragEnter({event:L,node:t.tmNode})}function Ut(L){L.preventDefault(),e.handleDragOver({event:L,node:t.tmNode})}function Ie(L){e.handleDragEnd({event:L,node:t.tmNode})}function mn(L){L.currentTarget===L.target&&e.handleDragLeave({event:L,node:t.tmNode})}function Rn(L){L.preventDefault(),o.value!==null&&e.handleDrop({event:L,node:t.tmNode,dropPosition:o.value})}const Ar=X(()=>{const{clsPrefix:L}=t,{value:ft}=c;if(_.value){const mt=[];let Dt=t.tmNode.parent;for(;Dt;)Dt.isLastChild?mt.push(O("div",{class:`${L}-tree-node-indent`},O("div",{style:{width:`${ft}px`}}))):mt.push(O("div",{class:[`${L}-tree-node-indent`,`${L}-tree-node-indent--show-line`]},O("div",{style:{width:`${ft}px`}}))),Dt=Dt.parent;return mt.reverse()}else return m1(t.tmNode.level,O("div",{class:`${t.clsPrefix}-tree-node-indent`},O("div",{style:{width:`${ft}px`}})))});return{showDropMark:je(()=>{const{value:L}=a;if(!L)return;const{value:ft}=o;if(!ft)return;const{value:mt}=r;if(!mt)return;const{tmNode:Dt}=t;return Dt.key===mt.key}),showDropMarkAsParent:je(()=>{const{value:L}=n;if(!L)return!1;const{tmNode:ft}=t,{value:mt}=o;return mt==="before"||mt==="after"?L.key===ft.key:!1}),pending:je(()=>e.pendingNodeKeyRef.value===t.tmNode.key),loading:je(()=>e.loadingKeysRef.value.has(t.tmNode.key)),highlight:je(()=>{var L;return(L=e.highlightKeySetRef.value)===null||L===void 0?void 0:L.has(t.tmNode.key)}),checked:Y,indeterminate:je(()=>e.displayedIndeterminateKeysRef.value.includes(t.tmNode.key)),selected:je(()=>e.mergedSelectedKeysRef.value.includes(t.tmNode.key)),expanded:je(()=>e.mergedExpandedKeysRef.value.includes(t.tmNode.key)),disabled:C,checkable:U,mergedCheckOnClick:lt,checkboxDisabled:y,selectable:A,expandOnClick:e.expandOnClickRef,internalScrollable:e.internalScrollableRef,draggable:e.draggableRef,blockLine:f,nodeProps:p,checkboxFocusable:e.internalCheckboxFocusableRef,droppingPosition:o,droppingOffsetLevel:s,indent:c,checkboxPlacement:h,showLine:_,contentInstRef:k,contentElRef:S,indentNodes:Ar,handleCheck:W,handleDrop:Rn,handleDragStart:Ft,handleDragEnter:ut,handleDragOver:Ut,handleDragEnd:Ie,handleDragLeave:mn,handleLineClick:pt,handleContentClick:ae,handleSwitcherClick:I}},render(){const{tmNode:t,clsPrefix:e,checkable:n,expandOnClick:r,selectable:a,selected:o,checked:s,highlight:l,draggable:c,blockLine:f,indent:h,indentNodes:d,disabled:v,pending:_,internalScrollable:m,nodeProps:g,checkboxPlacement:y}=this,x=c&&!v?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,C=m?oc(t.key):void 0,p=y==="right",k=n?O(wv,{indent:h,right:p,focusable:this.checkboxFocusable,disabled:v||this.checkboxDisabled,clsPrefix:e,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return O("div",Object.assign({class:`${e}-tree-node-wrapper`},x),O("div",Object.assign({},f?g:void 0,{class:[`${e}-tree-node`,{[`${e}-tree-node--selected`]:o,[`${e}-tree-node--checkable`]:n,[`${e}-tree-node--highlight`]:l,[`${e}-tree-node--pending`]:_,[`${e}-tree-node--disabled`]:v,[`${e}-tree-node--selectable`]:a,[`${e}-tree-node--clickable`]:a||r||this.mergedCheckOnClick},g==null?void 0:g.class],"data-key":C,draggable:c&&f,onClick:this.handleLineClick,onDragstart:c&&f&&!v?this.handleDragStart:void 0}),d,t.isLeaf&&this.showLine?O("div",{class:[`${e}-tree-node-indent`,`${e}-tree-node-indent--show-line`,t.isLeaf&&`${e}-tree-node-indent--is-leaf`,t.isLastChild&&`${e}-tree-node-indent--last-child`]},O("div",{style:{width:`${h}px`}})):O(yv,{clsPrefix:e,expanded:this.expanded,selected:o,loading:this.loading,hide:t.isLeaf,tmNode:this.tmNode,indent:h,onClick:this.handleSwitcherClick}),p?null:k,O(bv,{ref:"contentInstRef",clsPrefix:e,checked:s,selected:o,onClick:this.handleContentClick,nodeProps:f?void 0:g,onDragstart:c&&!f&&!v?this.handleDragStart:void 0,tmNode:t}),c?this.showDropMark?uf({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:h}):this.showDropMarkAsParent?uf({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:h}):null:null,p?k:null))}});function $v({props:t,fNodesRef:e,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:a,handleCheck:o,handleSelect:s,handleSwitcherClick:l}){const{value:c}=r,f=mi(uc,null),h=f?f.pendingNodeKeyRef:ge(c.length?c[c.length-1]:null);function d(v){var _;if(!t.keyboard)return{enterBehavior:null};const{value:m}=h;let g=null;if(m===null){if((v.key==="ArrowDown"||v.key==="ArrowUp")&&v.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(v.key)&&m===null){const{value:y}=e;let x=0;for(;x<y.length;){if(!y[x].disabled){h.value=y[x].key;break}x+=1}}}else{const{value:y}=e;let x=y.findIndex(C=>C.key===m);if(!~x)return{enterBehavior:null};if(v.key==="Enter"){const C=y[x];switch(g=((_=t.overrideDefaultNodeClickBehavior)===null||_===void 0?void 0:_.call(t,{option:C.rawNode}))||null,g){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:g="default",s(C)}}else if(v.key==="ArrowDown")for(v.preventDefault(),x+=1;x<y.length;){if(!y[x].disabled){h.value=y[x].key;break}x+=1}else if(v.key==="ArrowUp")for(v.preventDefault(),x-=1;x>=0;){if(!y[x].disabled){h.value=y[x].key;break}x-=1}else if(v.key==="ArrowLeft"){const C=y[x];if(C.isLeaf||!n.value.includes(m)){const p=C.getParent();p&&(h.value=p.key)}else l(C)}else if(v.key==="ArrowRight"){const C=y[x];if(C.isLeaf)return{enterBehavior:null};if(!n.value.includes(m))l(C);else for(x+=1;x<y.length;){if(!y[x].disabled){h.value=y[x].key;break}x+=1}}}return{enterBehavior:g}}return{pendingNodeKeyRef:h,handleKeydown:d}}const Ev=jt({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:t}=this;return O(Qf,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>O("div",{class:[`${t}-tree-motion-wrapper`,`${t}-tree-motion-wrapper--${this.mode}`],style:{height:Jf(this.height)}},this.nodes.map(e=>O(cc,{clsPrefix:t,tmNode:e})))})}}),xs=g1(),Nv=Z("tree",`
|
|
149
|
+
font-size: var(--n-font-size);
|
|
150
|
+
outline: none;
|
|
151
|
+
`,[J("ul, li",`
|
|
152
|
+
margin: 0;
|
|
153
|
+
padding: 0;
|
|
154
|
+
list-style: none;
|
|
155
|
+
`),J(">",[Z("tree-node",[J("&:first-child","margin-top: 0;")])]),Z("tree-motion-wrapper",[rt("expand",[Ms({duration:"0.2s"})]),rt("collapse",[Ms({duration:"0.2s",reverse:!0})])]),Z("tree-node-wrapper",`
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
padding: var(--n-node-wrapper-padding);
|
|
158
|
+
`),Z("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
|
+
`,[rt("highlight",[Z("tree-node-content",[At("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),rt("disabled",[Z("tree-node-content",`
|
|
165
|
+
color: var(--n-node-text-color-disabled);
|
|
166
|
+
cursor: not-allowed;
|
|
167
|
+
`)]),jn("disabled",[rt("clickable",[Z("tree-node-content",`
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
`)])])]),rt("block-node",[Z("tree-node-content",`
|
|
170
|
+
flex: 1;
|
|
171
|
+
min-width: 0;
|
|
172
|
+
`)]),jn("block-line",[Z("tree-node",[jn("disabled",[Z("tree-node-content",[J("&:hover","background: var(--n-node-color-hover);")]),rt("selectable",[Z("tree-node-content",[J("&:active","background: var(--n-node-color-pressed);")])]),rt("pending",[Z("tree-node-content",`
|
|
173
|
+
background: var(--n-node-color-hover);
|
|
174
|
+
`)]),rt("selected",[Z("tree-node-content","background: var(--n-node-color-active);")])]),rt("selected",[Z("tree-node-content","background: var(--n-node-color-active);")])])]),rt("block-line",[Z("tree-node",[jn("disabled",[J("&:hover","background: var(--n-node-color-hover);"),rt("pending",`
|
|
175
|
+
background: var(--n-node-color-hover);
|
|
176
|
+
`),rt("selectable",[jn("selected",[J("&:active","background: var(--n-node-color-pressed);")])]),rt("selected","background: var(--n-node-color-active);")]),rt("selected","background: var(--n-node-color-active);"),rt("disabled",`
|
|
177
|
+
cursor: not-allowed;
|
|
178
|
+
`)])]),Z("tree-node-indent",`
|
|
179
|
+
flex-grow: 0;
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
`,[rt("show-line","position: relative",[J("&::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
|
+
`),rt("last-child",[J("&::before",`
|
|
191
|
+
bottom: 50%;
|
|
192
|
+
`)]),rt("is-leaf",[J("&::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
|
+
`)])]),jn("show-line","height: 0;")]),Z("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
|
+
`,[At("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
|
+
`,[Z("icon",[xs]),Z("base-loading",`
|
|
218
|
+
color: var(--n-loading-color);
|
|
219
|
+
position: absolute;
|
|
220
|
+
left: 0;
|
|
221
|
+
top: 0;
|
|
222
|
+
right: 0;
|
|
223
|
+
bottom: 0;
|
|
224
|
+
`,[xs]),Z("base-icon",[xs])]),rt("hide","visibility: hidden;"),rt("expanded","transform: rotate(90deg);")]),Z("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
|
+
`),Z("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
|
+
`,[J("&:last-child","margin-bottom: 0;"),At("prefix",`
|
|
248
|
+
display: inline-flex;
|
|
249
|
+
margin-right: 8px;
|
|
250
|
+
`),At("text",`
|
|
251
|
+
border-bottom: 1px solid #0000;
|
|
252
|
+
transition: border-color .3s var(--n-bezier);
|
|
253
|
+
flex-grow: 1;
|
|
254
|
+
max-width: 100%;
|
|
255
|
+
`),At("suffix",`
|
|
256
|
+
display: inline-flex;
|
|
257
|
+
`)]),At("empty","margin: auto;")]);var Iv=function(t,e,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(t,[])).next())})};function ff(t,e,n,r){return{getIsGroup(){return!1},getKey(o){return o[t]},getChildren:r||(o=>o[e]),getDisabled(o){return!!(o[n]||o.checkboxDisabled)}}}const qv={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},Av=Object.assign(Object.assign(Object.assign(Object.assign({},Gi.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:kv},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]}),qv),{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}),Tv=jt({name:"Tree",props:Av,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:r}=La(t),a=Oa("Tree",r,e),o=Gi("Tree","-tree",Nv,hv,t,e),s=ge(null),l=ge(null),c=ge(null);function f(){var w;return(w=c.value)===null||w===void 0?void 0:w.listElRef}function h(){var w;return(w=c.value)===null||w===void 0?void 0:w.itemsElRef}const d=X(()=>{const{filter:w}=t;if(w)return w;const{labelField:N}=t;return(P,z)=>{if(!P.length)return!0;const D=z[N];return typeof D=="string"?D.toLowerCase().includes(P.toLowerCase()):!1}}),v=X(()=>{const{pattern:w}=t;return w?!w.length||!d.value?{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}:Sv(t.data,d.value,w,t.keyField,t.childrenField):{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}}),_=X(()=>tf(t.showIrrelevantNodes?t.data:v.value.filteredTree,ff(t.keyField,t.childrenField,t.disabledField,t.getChildren))),m=mi(uc,null),g=t.internalTreeSelect?m.dataTreeMate:X(()=>t.showIrrelevantNodes?_.value:tf(t.data,ff(t.keyField,t.childrenField,t.disabledField,t.getChildren))),{watchProps:y}=t,x=ge([]);y!=null&&y.includes("defaultCheckedKeys")?Fi(()=>{x.value=t.defaultCheckedKeys}):x.value=t.defaultCheckedKeys;const C=bt(t,"checkedKeys"),p=_a(C,x),k=X(()=>g.value.getCheckedKeys(p.value,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded})),S=Cv(t),I=X(()=>k.value.checkedKeys),A=X(()=>{const{indeterminateKeys:w}=t;return w!==void 0?w:k.value.indeterminateKeys}),U=ge([]);y!=null&&y.includes("defaultSelectedKeys")?Fi(()=>{U.value=t.defaultSelectedKeys}):U.value=t.defaultSelectedKeys;const Y=bt(t,"selectedKeys"),lt=_a(Y,U),Mt=ge([]),xt=w=>{Mt.value=t.defaultExpandAll?g.value.getNonLeafKeys():w===void 0?t.defaultExpandedKeys:w};y!=null&&y.includes("defaultExpandedKeys")?Fi(()=>{xt(void 0)}):Fi(()=>{xt(t.defaultExpandedKeys)});const ae=bt(t,"expandedKeys"),pt=_a(ae,Mt),W=X(()=>_.value.getFlattenedNodes(pt.value)),{pendingNodeKeyRef:Ft,handleKeydown:ut}=$v({props:t,mergedCheckedKeysRef:p,mergedSelectedKeysRef:lt,fNodesRef:W,mergedExpandedKeysRef:pt,handleCheck:ms,handleSelect:gs,handleSwitcherClick:Uu});let Ut=null,Ie=null;const mn=ge(new Set),Rn=X(()=>t.internalHighlightKeySet||v.value.highlightKeySet),Ar=_a(Rn,mn),L=ge(new Set),ft=X(()=>pt.value.filter(w=>!L.value.has(w)));let mt=0;const Dt=ge(null),de=ge(null),Jn=ge(null),Yn=ge(null),Xn=ge(0),Zr=X(()=>{const{value:w}=de;return w?w.parent:null});let fa=!1;Pr(bt(t,"data"),()=>{fa=!0,ma(()=>{fa=!1}),L.value.clear(),Ft.value=null,ha()},{deep:!1});let ca=!1;const ti=()=>{ca=!0,ma(()=>{ca=!1})};let ei;Pr(bt(t,"pattern"),(w,N)=>{if(t.showIrrelevantNodes)if(ei=void 0,w){const{expandedKeys:P,highlightKeySet:z}=xv(t.data,t.pattern,t.keyField,t.childrenField,d.value);mn.value=z,ti(),Ai(P,un(P),{node:null,action:"filter"})}else mn.value=new Set;else if(!w.length)ei!==void 0&&(ti(),Ai(ei,un(ei),{node:null,action:"filter"}));else{N.length||(ei=pt.value);const{expandedKeys:P}=v.value;P!==void 0&&(ti(),Ai(P,un(P),{node:null,action:"filter"}))}});function so(w){return Iv(this,void 0,void 0,function*(){const{onLoad:N}=t;if(!N){yield Promise.resolve();return}const{value:P}=L;if(!P.has(w.key)){P.add(w.key);try{(yield N(w.rawNode))===!1&&Ti()}catch(z){console.error(z),Ti()}P.delete(w.key)}})}Fi(()=>{var w;const{value:N}=_;if(!N)return;const{getNode:P}=N;(w=pt.value)===null||w===void 0||w.forEach(z=>{const D=P(z);D&&!D.shallowLoaded&&so(D)})});const Tr=ge(!1),Ln=ge([]);Pr(ft,(w,N)=>{if(!t.animated||ca){ma(qi);return}if(fa)return;const P=da(o.value.self.nodeHeight),z=new Set(N);let D=null,Wt=null;for(const Nt of w)if(!z.has(Nt)){if(D!==null)return;D=Nt}const Xe=new Set(w);for(const Nt of N)if(!Xe.has(Nt)){if(Wt!==null)return;Wt=Nt}if(D===null&&Wt===null)return;const{virtualScroll:fn}=t,Pi=(fn?c.value.listElRef:s.value).offsetHeight,Ri=Math.ceil(Pi/P)+1;let gn;if(D!==null&&(gn=N),Wt!==null&&(gn===void 0?gn=w:gn=gn.filter(Nt=>Nt!==Wt)),Tr.value=!0,Ln.value=_.value.getFlattenedNodes(gn),D!==null){const Nt=Ln.value.findIndex(yn=>yn.key===D);if(~Nt){const yn=Ln.value[Nt].children;if(yn){const $n=ef(yn,w);Ln.value.splice(Nt+1,0,{__motion:!0,mode:"expand",height:fn?$n.length*P:void 0,nodes:fn?$n.slice(0,Ri):$n})}}}if(Wt!==null){const Nt=Ln.value.findIndex(yn=>yn.key===Wt);if(~Nt){const yn=Ln.value[Nt].children;if(!yn)return;Tr.value=!0;const $n=ef(yn,w);Ln.value.splice(Nt+1,0,{__motion:!0,mode:"collapse",height:fn?$n.length*P:void 0,nodes:fn?$n.slice(0,Ri):$n})}}});const ds=X(()=>P1(W.value)),vs=X(()=>Tr.value?Ln.value:W.value);function qi(){const{value:w}=l;w&&w.sync()}function ps(){Tr.value=!1,t.virtualScroll&&ma(qi)}function un(w){const{getNode:N}=g.value;return w.map(P=>{var z;return((z=N(P))===null||z===void 0?void 0:z.rawNode)||null})}function Ai(w,N,P){const{"onUpdate:expandedKeys":z,onUpdateExpandedKeys:D}=t;Mt.value=w,z&&xe(z,w,N,P),D&&xe(D,w,N,P)}function Ku(w,N,P){const{"onUpdate:checkedKeys":z,onUpdateCheckedKeys:D}=t;x.value=w,D&&xe(D,w,N,P),z&&xe(z,w,N,P)}function Pd(w,N){const{"onUpdate:indeterminateKeys":P,onUpdateIndeterminateKeys:z}=t;P&&xe(P,w,N),z&&xe(z,w,N)}function _s(w,N,P){const{"onUpdate:selectedKeys":z,onUpdateSelectedKeys:D}=t;U.value=w,D&&xe(D,w,N,P),z&&xe(z,w,N,P)}function Rd(w){const{onDragenter:N}=t;N&&xe(N,w)}function Ld(w){const{onDragleave:N}=t;N&&xe(N,w)}function Od(w){const{onDragend:N}=t;N&&xe(N,w)}function jd(w){const{onDragstart:N}=t;N&&xe(N,w)}function zd(w){const{onDragover:N}=t;N&&xe(N,w)}function Fd(w){const{onDrop:N}=t;N&&xe(N,w)}function ha(){Dd(),ni()}function Dd(){Dt.value=null}function ni(){Xn.value=0,de.value=null,Jn.value=null,Yn.value=null,Ti()}function Ti(){Ut&&(window.clearTimeout(Ut),Ut=null),Ie=null}function ms(w,N){if(t.disabled||Mr(w,t.disabledField))return;if(t.internalUnifySelectCheck&&!t.multiple){gs(w);return}const P=N?"check":"uncheck",{checkedKeys:z,indeterminateKeys:D}=g.value[P](w.key,I.value,{cascade:t.cascade,checkStrategy:S.value,allowNotLoaded:t.allowCheckingNotLoaded});Ku(z,un(z),{node:w.rawNode,action:P}),Pd(D,un(D))}function Bd(w){if(t.disabled)return;const{key:N}=w,{value:P}=pt,z=P.findIndex(D=>D===N);if(~z){const D=Array.from(P);D.splice(z,1),Ai(D,un(D),{node:w.rawNode,action:"collapse"})}else{const D=_.value.getNode(N);if(!D||D.isLeaf)return;let Wt;if(t.accordion){const Xe=new Set(w.siblings.map(({key:fn})=>fn));Wt=P.filter(fn=>!Xe.has(fn)),Wt.push(N)}else Wt=P.concat(N);Ai(Wt,un(Wt),{node:w.rawNode,action:"expand"})}}function Uu(w){t.disabled||Tr.value||Bd(w)}function gs(w){if(!(t.disabled||!t.selectable)){if(Ft.value=w.key,t.internalUnifySelectCheck){const{value:{checkedKeys:N,indeterminateKeys:P}}=k;t.multiple?ms(w,!(N.includes(w.key)||P.includes(w.key))):Ku([w.key],un([w.key]),{node:w.rawNode,action:"check"})}if(t.multiple){const N=Array.from(lt.value),P=N.findIndex(z=>z===w.key);~P?t.cancelable&&N.splice(P,1):~P||N.push(w.key),_s(N,un(N),{node:w.rawNode,action:~P?"unselect":"select"})}else lt.value.includes(w.key)?t.cancelable&&_s([],[],{node:w.rawNode,action:"unselect"}):_s([w.key],un([w.key]),{node:w.rawNode,action:"select"})}}function Kd(w){if(Ut&&(window.clearTimeout(Ut),Ut=null),w.isLeaf)return;Ie=w.key;const N=()=>{if(Ie!==w.key)return;const{value:P}=Jn;if(P&&P.key===w.key&&!pt.value.includes(w.key)){const z=pt.value.concat(w.key);Ai(z,un(z),{node:w.rawNode,action:"expand"})}Ut=null,Ie=null};w.shallowLoaded?Ut=window.setTimeout(()=>{N()},1e3):Ut=window.setTimeout(()=>{so(w).then(()=>{N()})},1e3)}function Ud({event:w,node:N}){!t.draggable||t.disabled||Mr(N,t.disabledField)||(Wu({event:w,node:N},!1),Rd({event:w,node:N.rawNode}))}function Wd({event:w,node:N}){!t.draggable||t.disabled||Mr(N,t.disabledField)||Ld({event:w,node:N.rawNode})}function Hd(w){w.target===w.currentTarget&&ni()}function Vd({event:w,node:N}){ha(),!(!t.draggable||t.disabled||Mr(N,t.disabledField))&&Od({event:w,node:N.rawNode})}function Qd({event:w,node:N}){!t.draggable||t.disabled||Mr(N,t.disabledField)||(mt=w.clientX,Dt.value=N,jd({event:w,node:N.rawNode}))}function Wu({event:w,node:N},P=!0){var z;if(!t.draggable||t.disabled||Mr(N,t.disabledField))return;const{value:D}=Dt;if(!D)return;const{allowDrop:Wt,indent:Xe}=t;P&&zd({event:w,node:N.rawNode});const fn=w.currentTarget,{height:Pi,top:Ri}=fn.getBoundingClientRect(),gn=w.clientY-Ri;let Nt;Wt({node:N.rawNode,dropPosition:"inside",phase:"drag"})?gn<=8?Nt="before":gn>=Pi-8?Nt="after":Nt="inside":gn<=Pi/2?Nt="before":Nt="after";const{value:$n}=ds;let St,qe;const Li=$n(N.key);if(Li===null){ni();return}let lo=!1;Nt==="inside"?(St=N,qe="inside"):Nt==="before"?N.isFirstChild?(St=N,qe="before"):(St=W.value[Li-1],qe="after"):(St=N,qe="after"),!St.isLeaf&&pt.value.includes(St.key)&&(lo=!0,qe==="after"&&(St=W.value[Li+1],St?qe="before":(St=N,qe="inside")));const Vu=St;if(Jn.value=Vu,!lo&&D.isLastChild&&D.key===St.key&&(qe="after"),qe==="after"){let Qu=mt-w.clientX,ys=0;for(;Qu>=Xe/2&&St.parent!==null&&St.isLastChild&&ys<1;)Qu-=Xe,ys+=1,St=St.parent;Xn.value=ys}else Xn.value=0;if((D.contains(St)||qe==="inside"&&((z=D.parent)===null||z===void 0?void 0:z.key)===St.key)&&!(D.key===Vu.key&&D.key===St.key)){ni();return}if(!Wt({node:St.rawNode,dropPosition:qe,phase:"drag"})){ni();return}if(D.key===St.key)Ti();else if(Ie!==St.key)if(qe==="inside"){if(t.expandOnDragenter){if(Kd(St),!St.shallowLoaded&&Ie!==St.key){ha();return}}else if(!St.shallowLoaded){ha();return}}else Ti();else qe!=="inside"&&Ti();Yn.value=qe,de.value=St}function Gd({event:w,node:N,dropPosition:P}){if(!t.draggable||t.disabled||Mr(N,t.disabledField))return;const{value:z}=Dt,{value:D}=de,{value:Wt}=Yn;if(!(!z||!D||!Wt)&&t.allowDrop({node:D.rawNode,dropPosition:Wt,phase:"drag"})&&z.key!==D.key){if(Wt==="before"){const Xe=z.getNext({includeDisabled:!0});if(Xe&&Xe.key===D.key){ni();return}}if(Wt==="after"){const Xe=z.getPrev({includeDisabled:!0});if(Xe&&Xe.key===D.key){ni();return}}Fd({event:w,node:D.rawNode,dragNode:z.rawNode,dropPosition:P}),ha()}}function Jd(){qi()}function Yd(){qi()}function Xd(w){var N;if(t.virtualScroll||t.internalScrollable){const{value:P}=l;if(!((N=P==null?void 0:P.containerRef)===null||N===void 0)&&N.contains(w.relatedTarget))return;Ft.value=null}else{const{value:P}=s;if(P!=null&&P.contains(w.relatedTarget))return;Ft.value=null}}Pr(Ft,w=>{var N,P;if(w!==null){if(t.virtualScroll)(N=c.value)===null||N===void 0||N.scrollTo({key:w});else if(t.internalScrollable){const{value:z}=l;if(z===null)return;const D=(P=z.contentRef)===null||P===void 0?void 0:P.querySelector(`[data-key="${oc(w)}"]`);if(!D)return;z.scrollTo({el:D})}}}),Ml(Fa,{loadingKeysRef:L,highlightKeySetRef:Ar,displayedCheckedKeysRef:I,displayedIndeterminateKeysRef:A,mergedSelectedKeysRef:lt,mergedExpandedKeysRef:pt,mergedThemeRef:o,mergedCheckStrategyRef:S,nodePropsRef:bt(t,"nodeProps"),disabledRef:bt(t,"disabled"),checkableRef:bt(t,"checkable"),selectableRef:bt(t,"selectable"),expandOnClickRef:bt(t,"expandOnClick"),onLoadRef:bt(t,"onLoad"),draggableRef:bt(t,"draggable"),blockLineRef:bt(t,"blockLine"),indentRef:bt(t,"indent"),cascadeRef:bt(t,"cascade"),checkOnClickRef:bt(t,"checkOnClick"),checkboxPlacementRef:t.checkboxPlacement,droppingMouseNodeRef:Jn,droppingNodeParentRef:Zr,draggingNodeRef:Dt,droppingPositionRef:Yn,droppingOffsetLevelRef:Xn,fNodesRef:W,pendingNodeKeyRef:Ft,showLineRef:bt(t,"showLine"),disabledFieldRef:bt(t,"disabledField"),internalScrollableRef:bt(t,"internalScrollable"),internalCheckboxFocusableRef:bt(t,"internalCheckboxFocusable"),internalTreeSelect:t.internalTreeSelect,renderLabelRef:bt(t,"renderLabel"),renderPrefixRef:bt(t,"renderPrefix"),renderSuffixRef:bt(t,"renderSuffix"),renderSwitcherIconRef:bt(t,"renderSwitcherIcon"),labelFieldRef:bt(t,"labelField"),multipleRef:bt(t,"multiple"),overrideDefaultNodeClickBehaviorRef:bt(t,"overrideDefaultNodeClickBehavior"),handleSwitcherClick:Uu,handleDragEnd:Vd,handleDragEnter:Ud,handleDragLeave:Wd,handleDragStart:Qd,handleDrop:Gd,handleDragOver:Wu,handleSelect:gs,handleCheck:ms});function Zd(w,N){var P,z;typeof w=="number"?(P=c.value)===null||P===void 0||P.scrollTo(w,N||0):(z=c.value)===null||z===void 0||z.scrollTo(w)}const t1={handleKeydown:ut,scrollTo:Zd,getCheckedData:()=>{if(!t.checkable)return{keys:[],options:[]};const{checkedKeys:w}=k.value;return{keys:w,options:un(w)}},getIndeterminateData:()=>{if(!t.checkable)return{keys:[],options:[]};const{indeterminateKeys:w}=k.value;return{keys:w,options:un(w)}}},Hu=X(()=>{const{common:{cubicBezierEaseInOut:w},self:{fontSize:N,nodeBorderRadius:P,nodeColorHover:z,nodeColorPressed:D,nodeColorActive:Wt,arrowColor:Xe,loadingColor:fn,nodeTextColor:Pi,nodeTextColorDisabled:Ri,dropMarkColor:gn,nodeWrapperPadding:Nt,nodeHeight:yn,lineHeight:$n,lineColor:St}}=o.value,qe=ks(Nt,"top"),Li=ks(Nt,"bottom"),lo=Jf(da(yn)-da(qe)-da(Li));return{"--n-arrow-color":Xe,"--n-loading-color":fn,"--n-bezier":w,"--n-font-size":N,"--n-node-border-radius":P,"--n-node-color-active":Wt,"--n-node-color-hover":z,"--n-node-color-pressed":D,"--n-node-text-color":Pi,"--n-node-text-color-disabled":Ri,"--n-drop-mark-color":gn,"--n-node-wrapper-padding":Nt,"--n-line-offset-top":`-${qe}`,"--n-line-offset-bottom":`-${Li}`,"--n-node-content-height":lo,"--n-line-height":$n,"--n-line-color":St}}),Mi=n?Rl("tree",void 0,Hu,t):void 0;return Object.assign(Object.assign({},t1),{mergedClsPrefix:e,mergedTheme:o,rtlEnabled:a,fNodes:vs,aip:Tr,selfElRef:s,virtualListInstRef:c,scrollbarInstRef:l,handleFocusout:Xd,handleDragLeaveTree:Hd,handleScroll:Jd,getScrollContainer:f,getScrollContent:h,handleAfterEnter:ps,handleResize:Yd,cssVars:n?void 0:Hu,themeClass:Mi==null?void 0:Mi.themeClass,onRender:Mi==null?void 0:Mi.onRender})},render(){var t;const{fNodes:e,internalRenderEmpty:n}=this;if(!e.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:_}=this,m=c&&!l,g=m?"0":void 0,y=[`${r}-tree`,d&&`${r}-tree--rtl`,f&&`${r}-tree--checkable`,(o||a)&&`${r}-tree--block-node`,o&&`${r}-tree--block-line`],x=p=>"__motion"in p?O(Ev,{height:p.height,nodes:p.nodes,clsPrefix:r,mode:p.mode,onAfterEnter:this.handleAfterEnter}):O(cc,{key:p.key,tmNode:p,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:p,internalScrollablePadding:k}=this,S=ks(k||"0");return O(Yu,Object.assign({},_,{ref:"scrollbarInstRef",onDragleave:s?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:y,theme:p.peers.Scrollbar,themeOverrides:p.peerOverrides.Scrollbar,tabindex:g,onKeydown:m?h:void 0,onFocusout:m?v:void 0}),{default:()=>{var I;return(I=this.onRender)===null||I===void 0||I.call(this),e.length?O(R1,{ref:"virtualListInstRef",items:this.fNodes,itemSize:da(p.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:S.top,paddingBottom:S.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:S.left,paddingRight:S.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:A})=>x(A)}):Ju(this.$slots.empty,()=>[O(nf,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}const{internalScrollable:C}=this;return y.push(this.themeClass),(t=this.onRender)===null||t===void 0||t.call(this),C?O(Yu,Object.assign({},_,{class:y,tabindex:g,onKeydown:m?h:void 0,onFocusout:m?v:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>O("div",{onDragleave:s?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(x))}):O("div",{class:y,tabindex:g,ref:"selfElRef",style:this.cssVars,onKeydown:m?h:void 0,onFocusout:m?v:void 0,onDragleave:s?this.handleDragLeaveTree:void 0},e.length?e.map(x):Ju(this.$slots.empty,()=>[O(nf,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),cf=t=>{const e=Pt(),n={x:0,y:0},r=Ol({...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||!e.value)return;const d=h.clientX-a.clientX,v=h.clientY-a.clientY;t(d)&&(r.x=n.x+d),r.y=n.y+v},c=()=>{a=void 0},f=()=>{if(!e.value||!a)return;c();const{top:h,bottom:d,left:v,right:_}=e.value.getBoundingClientRect();(_<0||v>window.innerWidth||d<0||h>window.innerHeight)&&(r.x=n.x,r.y=n.y)};return ja(()=>{window.addEventListener("pointermove",l),window.addEventListener("pointerup",f),document.addEventListener("selectstart",o)}),vo(()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",f),document.removeEventListener("selectstart",o),c()}),Pr(e,(h,d)=>{h&&(h.addEventListener("pointerdown",s),h.addEventListener("pointerup",c)),d&&(d.removeEventListener("pointerdown",s),d.removeEventListener("pointerup",c))}),vo(()=>{e.value&&(e.value.removeEventListener("pointerdown",s),e.value.removeEventListener("pointerup",c))}),{target:e,offset:r}},hf="transition-top,bottom,left,right-500",Ui=jt({__name:"DraggableCard",props:{initialValue:{default:()=>({})},minWidth:{},sizeDraggable:{type:Boolean},show:{type:Boolean,default:!0},class:{}},setup(t){var p,k;const e=t,n=e.initialValue.left!==void 0,r=e.initialValue.top!==void 0,a={x:(p=n?e.initialValue.left:e.initialValue.right)!=null?p:0,y:(k=r?e.initialValue.top:e.initialValue.bottom)!=null?k:0},o=cf(S=>{const I=(e.initialValue.width||0)+s.offset.x+-o.offset.x-S;return(e.minWidth||0)<I}),s=cf(S=>{const I=(e.initialValue.width||0)+s.offset.x+S-o.offset.x;return(e.minWidth||0)<I}),l=Ol({...a}),c=X(()=>{const S=(e.initialValue.width||0)+s.offset.x-o.offset.x,I=e.initialValue.width?`width:${S}px;`:"",A=r?`top:${l.y}px;`:`bottom:${l.y}px;`;return n?`left:${l.x-o.offset.x}px;`+A+I:`right:${l.x-s.offset.x}px;`+A+I});let f;const h=Pt(!1),d=S=>{f=S,a.x=l.x,a.y=l.y,h.value=!1},v=S=>{if(!g.value||!f)return;const I=S.clientX-f.clientX,A=S.clientY-f.clientY;l.x=a.x+(n?I:-I),l.y=a.y+(r?A:-A),h.value=!0},_=()=>{f=void 0},m=Pt(),g=Pt(),y=S=>{f&&S.preventDefault()},x=()=>{if(!g.value||!f)return;_();const{top:S,bottom:I,left:A,right:U}=g.value.getBoundingClientRect();if(U<0||A>window.innerWidth||I<0||S>window.innerHeight){l.x=a.x,l.y=a.y;const Y=m.value;Y&&(Y.classList.add(hf),setTimeout(()=>{Y.classList.remove(hf)},550))}};ja(()=>{window.addEventListener("pointermove",v),window.addEventListener("pointerup",x),document.addEventListener("selectstart",y)}),vo(()=>{window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",x),document.removeEventListener("selectstart",y),_()}),Pr(g,(S,I)=>{S&&(S.addEventListener("pointerdown",d),S.addEventListener("pointerup",_)),I&&(I.removeEventListener("pointerdown",d),I.removeEventListener("pointerup",_))}),vo(()=>{g.value&&(g.value.removeEventListener("pointerdown",d),g.value.removeEventListener("pointerup",_))});const C=S=>{S instanceof HTMLElement?g.value=S:g.value=void 0};return(S,I)=>(tt(),ve(y1,{to:"#app"},[S.show?(tt(),se("div",{key:0,fixed:"",ref_key:"box",ref:m,style:Ps(E(c)),class:Kr(e.class)},[Yf(S.$slots,"default",{onRef:C,moved:E(h)}),S.sizeDraggable?(tt(),se(zn,{key:0},[M("div",{ref:E(o).target,absolute:"","right-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512),M("div",{ref:E(s).target,absolute:"","left-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512)],64)):ye("",!0)],6)):ye("",!0)]))}}),Mv={key:0,flex:"","justify-between":"","items-center":""},Pv={key:0,viewBox:"0 0 28 28"},Rv={key:1,viewBox:"0 0 1024 1024"},Lv=jt({__name:"AttrCard",props:{focusNode:{}},setup(t){const e=t,n={_id:{desc:"虚拟属性(真机不可用):生成快照访问节点顺序",type:"info"},_pid:{desc:"虚拟属性(真机不可用):父节点的 _id",type:"info"},depth:{desc:"使用此属性在某些应用上可能造成无限节点错误",type:"info"},id:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.idQf)&&e.focusNode.attr.id}},vid:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.idQf)&&e.focusNode.attr.vid}},text:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.textQf)&&e.focusNode.attr.text}}},r=["text","desc"],a=X(()=>Object.entries(e.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)=>{const l=za,c=nc,f=mv,h=L1,d=_v,v=gv,_=pv;return tt(),ve(Ui,{initialValue:{top:40,right:10},class:"box-shadow-dim"},{default:T(({onRef:m})=>[K(_,{size:"small",striped:"",singleLine:!1,class:"gkd_code",themeOverrides:{thPaddingSmall:"1px 3px",tdPaddingSmall:"1px 3px"}},{default:T(()=>[M("thead",null,[M("tr",{ref:m,"cursor-move":""},s[0]||(s[0]=[M("th",null,"Name",-1),M("th",null,"Value",-1)]),512)]),K(v,null,{default:T(()=>[(tt(!0),se(zn,null,ya(E(a),g=>(tt(),ve(d,{key:g.name},{default:T(()=>[K(f,{onClick:y=>E(er)(`${g.name}=${g.desc}`)},{default:T(()=>[g.tip?(tt(),se("div",Mv,[M("div",null,Rt(g.name),1),K(c,null,{trigger:T(()=>[K(l,{size:"16"},{default:T(()=>[g.tip.type=="info"?(tt(),se("svg",Pv,s[1]||(s[1]=[M("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)]))):g.tip.type=="quickFind"?(tt(),se("svg",Rv,s[2]||(s[2]=[M("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)]))):ye("",!0)]),_:2},1024)]),default:T(()=>[we(" "+Rt(g.tip.desc),1)]),_:2},1024)])):(tt(),se(zn,{key:1},[we(Rt(g.name),1)],64))]),_:2},1032,["onClick"]),K(f,null,{default:T(()=>[K(h,{class:Kr(["w-[calc(var(--gkd-width)*0.12)]",{"text-left direction-rtl":g.name=="id","opacity-50":g.value===null}])},{default:T(()=>[we(Rt(g.desc),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:2},1024)]),_:1})}}}),Ov={bg:"#eee","px-2px":""},jv=jt({__name:"MultiFocusCard",props:{focusNode:{},focusNodes:{},onUpdateFocusNode:{type:Function,default:fi},onClose:{type:Function,default:fi}},setup(t){const e=t,r=document.documentElement.scrollWidth/100*25.5,a=X(()=>{var o,s;return(((s=(o=e.focusNodes)==null?void 0:o.nodes)==null?void 0:s.length)||0)>1});return(o,s)=>{const l=$o,c=rc,f=w1;return tt(),ve(Ui,{initialValue:{top:215,left:r},class:"z-2 box-shadow-dim w-420px",show:E(a)},{default:T(({onRef:h})=>[E(a)&&o.focusNodes?(tt(),ve(f,{key:0,size:"small",closable:"",onClose:o.onClose},{header:T(()=>[M("div",{ref:h,"cursor-move":""},[s[0]||(s[0]=we(" 位置 ")),M("span",Ov,Rt(`${o.focusNodes.position.x.toFixed(0)},${o.focusNodes.position.y.toFixed()}`),1),we(" 存在 "+Rt(o.focusNodes.nodes.length)+" 个层叠节点 ",1)],512)]),default:T(()=>[K(c,{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:T(()=>[(tt(!0),se(zn,null,ya(o.focusNodes.nodes,d=>(tt(),ve(l,{key:d.id,onClick:v=>o.onUpdateFocusNode(d),size:"small",class:Kr({"color-[#00F]":d===o.focusNode})},{default:T(()=>[we(Rt(E(Ki)(d)),1)]),_:2},1032,["onClick","class"]))),128))]),_:1})]),_:2},1032,["onClose"])):ye("",!0)]),_:1},8,["initialValue","show"])}}}),zv={flex:"","flex-col":"",relative:"","h-full":""},Fv=["src"],Dv={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":""},Bv=["src"],Kv={absolute:"","left-2px":"","top-2px":"","p-1px":"","z-1":"","text-13px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]"},Uv={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":""},Wv=jt({__name:"ScreenshotCard",props:{url:{},snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:fi},onUpdateFocusNodes:{type:Function,default:fi}},setup(t){const e=t,n=Pt(),r=Pt(!1),a=_=>{if(!e.rootNode)return;const m=n.value;if(!m)return;const g=m.getBoundingClientRect(),y=g.width/m.naturalWidth*m.naturalHeight,x=(g.height-y)/2,C=(_.clientX-g.left)/g.width*m.naturalWidth,p=(_.clientY-g.top-x)/y*m.naturalHeight,k=O1(e.snapshot.nodes,C,p);k.length!==0&&(e.onUpdateFocusNode(k[0]),e.onUpdateFocusNodes({nodes:k,position:{x:C,y:p}}))},o=_=>`${_*100}%`,s=W1(n),l=X(()=>{var C;const _=n.value,m=(C=e.focusNode)==null?void 0:C.attr;if(!e.focusNode||!_||!m||!r.value)return"";const g=s.width.value,y=s.height.value,x=g/_.naturalWidth*_.naturalHeight;return{left:`calc(${o(m.left/_.naturalWidth)} - 2px)`,width:`calc(${o((m.right-m.left)/_.naturalWidth)} + 2px)`,top:`calc(${o((m.top/_.naturalHeight*x+(y-x)/2)/y)} - 2px)`,height:`calc(${o((m.bottom-m.top)/_.naturalHeight*x/y)} + 2px)`}}),c=Pt(!1),f=Pt({ox:0,oy:0}),h=X(()=>{var y;const _=(y=e.focusNode)==null?void 0:y.attr;if(!_)return;const{ox:m,oy:g}=f.value;return{left:m-_.left,right:_.right-m,top:g-_.top,bottom:_.bottom-g}}),d=_=>{const m=n.value;if(!m)return;const g=m.getBoundingClientRect(),y=g.width/m.naturalWidth*m.naturalHeight,x=(g.height-y)/2,C=(_.clientX-g.left)/g.width*m.naturalWidth,p=(_.clientY-g.top-x)/y*m.naturalHeight;f.value={ox:C,oy:p},v.value={left:-(C-.1*m.naturalWidth)/m.naturalWidth*1e3+"px",top:-(p-.1*m.naturalWidth)/m.naturalWidth*1e3+"px"}},v=Pt({left:"0",top:"0"});return(_,m)=>(tt(),se("div",zv,[M("img",{ref_key:"imgRef",ref:n,src:_.url,onClick:a,"cursor-crosshair":"","h-full":"","object-contain":"",class:"max-w-[calc(var(--gkd-width)*0.35)]",onMouseover:m[0]||(m[0]=g=>c.value=!0),onMouseleave:m[1]||(m[1]=g=>c.value=!1),onMousemove:d,onLoad:m[2]||(m[2]=g=>r.value=!0)},null,40,Fv),M("div",{style:Ps(E(l)),absolute:"","pointer-events-none":"","transition-all-300":"","b-1px":"","b-blue":"","b-solid":""},m[3]||(m[3]=[M("div",{absolute:"","left-0":"","top-0":"","bottom-0":"","right-0":"","b-solid":"","b-1px":"","b-red":""},null,-1)]),4),Hf(M("div",Dv,[M("img",{src:_.url,"object-contain":"",absolute:"","left-0":"","top-0":"",style:Ps(E(v)),"w-1000px":""},null,12,Bv),M("div",Kv,Rt(`${E(f).ox.toFixed(0)},${E(f).oy.toFixed(0)}`),1),E(h)?(tt(),se("div",Uv,[M("div",null,Rt(E(h).top.toFixed(0)),1),M("div",null,Rt(E(h).left.toFixed(0)+","+E(h).right.toFixed(0)),1),M("div",null,Rt(E(h).bottom.toFixed(0)),1)])):ye("",!0),m[4]||(m[4]=M("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)),m[5]||(m[5]=M("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))],512),[[Vf,E(c)]])]))}});typeof Math.imul>"u"&&(Math.imul=function(e,n){return(e&4294901760)*(n&65535)+(e&65535)*(n|0)|0});typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(t){return t!=null&&t.__proto__!=null&&t.__proto__.__proto__===Int8Array.prototype.__proto__});typeof Array.prototype.fill>"u"&&Object.defineProperty(Array.prototype,"fill",{value:function(t){if(this==null)throw new TypeError("this is null or not defined");for(var e=Object(this),n=e.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;)e[o]=t,o++;return e}});[Int8Array,Int16Array,Uint16Array,Int32Array,Float32Array,Float64Array].forEach(function(t){typeof t.prototype.fill>"u"&&Object.defineProperty(t.prototype,"fill",{value:Array.prototype.fill})});typeof Math.clz32>"u"&&(Math.clz32=function(t,e){return function(n){var r=n>>>0;return r===0?32:31-(t(r)/e|0)|0}}(Math.log,Math.LN2));typeof String.prototype.startsWith>"u"&&Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){return e=e||0,this.lastIndexOf(t,e)===e}});typeof String.prototype.endsWith>"u"&&Object.defineProperty(String.prototype,"endsWith",{value:function(t,e){var n=this.toString();(e===void 0||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return r!==-1&&r===e}});var wt=Math.imul,Hv=ArrayBuffer.isView,hc=Math.clz32;Ue(jl,"CharSequence");Ue(Da,"Comparable");b(_o,"Number");st(zl,"Unit");b(Bl);b(Wl);ke(Cc);b(ot,"Char",u,u,[Da]);Ue(It,"Collection");function dc(){return Tp(this)}Ue(Vn,"List",u,u,[It]);Ue(yr,"Entry");Ue(wr,"Map");Ue(Vr,"Set",u,u,[It]);ke(wp);b(br,"Enum",u,u,[Da]);ke(xc);b(_t,"Long",u,_o,[_o,Da]);b(Eo);b(zs,"JsArrayView",zs,Array);st(nh,"Digit");b(Cr,"AbstractCollection",u,u,[It]);b(Kn,"AbstractMutableCollection",u,Cr,[Cr,It]);b(gi,"IteratorImpl");b(Wa,"ListIteratorImpl",u,gi);b(be,"AbstractMutableList",u,Kn,[Kn,Vn,It]);b(qr,"SubList",u,be);b(kn,"AbstractMap",u,u,[wr]);b(wo,"AbstractMutableMap",u,kn,[kn,wr]);b(kr,"AbstractMutableSet",u,Kn,[Kn,Vr,It]);ke(oh);b(Zt,"ArrayList",Tt,be,[be,Vn,It]);b(Un,"HashMap",L_,wo,[wo,wr]);b(Cn,"HashMapEntrySetBase",u,kr,[Vr,It,kr]);b(tu,"HashMapEntrySet",u,Cn);b(Tn,"HashSet",z_,kr,[kr,Vr,It]);ke(_h);b(Qr,"Itr");b(su,"KeysItr",u,Qr);b(Qa,"EntriesItr",u,Qr);b(yi,"EntryRef",u,u,[yr]);function Vv(t){var e;t:{var n;if(at(t,It)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j(),o=a,s;if(o!=null&&at(o,yr)?s=this.e6(o):s=!1,!s){e=!1;break t}}e=!0}return e}Ue(mh,"InternalMap");b($e,"InternalHashMap",nu,u,[mh]);b(Ga,"LinkedHashMap",gh,Un,[Un,wr]);b(Gr,"LinkedHashSet",lu,Tn,[Tn,Vr,It]);Ue(la,"Continuation");b(Ea,"InterceptedCoroutine",u,u,[la]);b(Le,"CoroutineImpl",u,Ea,[Ea,la]);st(Zi,"CompletedContinuation",u,u,[la]);b(uu,u,u,Le);b(xn,"Exception",bh,Error);b(We,"RuntimeException",Nh,xn);b(wi,"IllegalArgumentException",xh,We);b(ta,"IndexOutOfBoundsException",fu,We);b(ea,"IllegalStateException",$h,We);b(na,"UnsupportedOperationException",bi,We);b(ra,"NoSuchElementException",Ee,We);b(ia,"Error",qh,Error);b(Ci,"NumberFormatException",Ah,wi);b(aa,"ArithmeticException",Mh,We);b(Mo,"ConcurrentModificationException",cu,We);b(Po,"NullPointerException",hu,We);b(Ro,"NoWhenBranchMatchedException",du,We);b(Lo,"ClassCastException",vu,We);Ue(Ia,"KClass");b(pn,"KClassImpl",u,u,[Ia]);st(xi,"NothingKClassImpl",u,pn);b(Qi,"ErrorKClass",Qi,u,[Ia]);b(Bt,"PrimitiveKClassImpl",u,pn);b(bo,"SimpleKClassImpl",u,pn);Ue(Oo,"KProperty1");Ue(pu,"KProperty0");st(te,"PrimitiveClasses");b(Sn,"StringBuilder",mu,u,[jl]);ke(Bh);b(Ya,"Regex");b(gu,"sam$kotlin_Comparator$0");ke(Jr);ke(fm);ke(zo);b(Qn,"ArrayAsCollection",u,u,[It]);st(he,"EmptyList",u,u,[Vn]);st(Si,"EmptyIterator");b(ai,"IndexedValue");b(Do,"IntIterator");b(Za,"CharIterator");b(xr,"SequenceScope",u,u,u,[1]);b(Sr,"SequenceBuilderIterator",Sr,xr,[xr,la],[1]);b(ku);b(Bo);b(Cu,"TransformingSequence");b(Ko);b(xu,"FilteringSequence");b(Uo);b(Su,"IndexingSequence");Ue(Ei,"DropTakeSequence");b(Wo);b(ci,"TakeSequence",u,u,[Ei]);b(Ho);b($u,"TakeWhileSequence");b(Vo);b(oi,"DropSequence",u,u,[Ei]);b(Qo);b(Eu,"DropWhileSequence");st(eo,"EmptySequence",u,u,[Ei]);b(Jo);b(Wr,"SubSequence",u,u,[Ei]);st(Gn,"EmptySet",u,u,[Vr]);st(Zh,"Key");Ue($m,"ContinuationInterceptor");st(no,"EmptyCoroutineContext");b(co,"CoroutineSingletons",u,br);ke(rd);b(Hn,"IntProgression");b(Hr,"IntRange",u,Hn);ke(id);b(Nr,"CharProgression");b(Er,"CharRange",u,Nr);b(Xo,"IntProgressionIterator",u,Do);b(Zo,"CharProgressionIterator",u,Za);ke(Iu);ke(Tm);b(io,"UnsafeLazyImpl");st(hd,"UNINITIALIZED_VALUE");ke(Fm);b(Ir,"Failure");b(rl,"NotImplementedError",rl,ia);b(An,"Pair");function jl(){}function Da(){}function _o(){}function zl(){}i(zl).toString=function(){return"kotlin.Unit"};var ht;function Fl(t){switch(t.length){case 0:return oa();case 1:return Ua(t[0]);default:return Dl(t)}}function Rs(t,e){return pc(t,e)>=0}function Qv(t){return t.length===0?$i():new Bl(t)}function vc(t,e,n,r,a,o,s){return e=e===u?", ":e,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,Jv(t,mu(),e,n,r,a,o,s).toString()}function Dl(t){return Ha(gm(t))}function Gv(t){var e;switch(t.length){case 0:throw Ja("Array is empty.");case 1:e=t[0];break;default:throw Kt("Array has more than one element.")}return e}function pc(t,e){if(e==null){var n=0,r=t.length-1|0;if(n<=r)do{var a=n;if(n=n+1|0,t[a]==null)return a}while(n<=r)}else{var o=0,s=t.length-1|0;if(o<=s)do{var l=o;if(o=o+1|0,q(e,t[l]))return l}while(o<=s)}return-1}function Jv(t,e,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,e.e(r);var c=0,f=0,h=t.length;t:for(;f<h;){var d=t[f];if(f=f+1|0,c=c+1|0,c>1&&e.e(n),o<0||c<=o)od(e,d,l);else break t}return o>=0&&c>o&&e.e(s),e.e(a),e}function Yv(t){return t.length-1|0}function Xv(t,e){if(e==null){var n=t.length-1|0;if(0<=n)do{var r=n;if(n=n+-1|0,t[r]==null)return r}while(0<=n)}else{var a=t.length-1|0;if(0<=a)do{var o=a;if(a=a+-1|0,q(e,t[o]))return o}while(0<=a)}return-1}function Zv(t,e){for(var n=0,r=t.length;n<r;){var a=t[n];n=n+1|0,e.f(a)}return e}function Bl(t){this.g_1=t}i(Bl).h=function(){return $c(this.g_1)};function In(t,e,n,r,a,o,s){return e=e===u?", ":e,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,tp(t,mu(),e,n,r,a,o,s).toString()}function tp(t,e,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,e.e(r);var c=0,f=t.h();t:for(;f.i();){var h=f.j();if(c=c+1|0,c>1&&e.e(n),o<0||c<=o)od(e,h,l);else break t}return o>=0&&c>o&&e.e(s),e.e(a),e}function _c(t){return t.l()?null:t.k(0)}function Wi(t){if(t.l())throw Ja("List is empty.");return t.k(0)}function ep(t){return gc(ip(t))}function np(t){return new Wl(t)}function rp(t){return t.l()?null:t.k(t.m()-1|0)}function mc(t,e){if(at(e,It)){var n=Hi(t.m()+e.m()|0);return n.q(t),n.q(e),n}else{var r=Ha(t);return Fo(r,e),r}}function wa(t){if(t.l())throw Ja("List is empty.");return t.k(Xa(t))}function Kl(t){return Ha(t)}function Ul(t,e){if(at(t,It)){if(t.m()<=1)return gc(t);var n=bn(t),r=Xi(n)?n:$();return __(r,e),Yl(r)}var a=yc(t);return x_(a,e),a}function gc(t){if(at(t,It)){var e;switch(t.m()){case 0:e=oa();break;case 1:var n;at(t,Vn)?n=t.k(0):n=t.h().j(),e=Ua(n);break;default:e=Kl(t);break}return e}return pm(yc(t))}function ip(t){var e;return at(t,It)?e=a0(t):e=mo(t,lu()),e}function yc(t){return at(t,It)?Kl(t):mo(t,Tt())}function mo(t,e){for(var n=t.h();n.i();){var r=n.j();e.f(r)}return e}function ap(t){if(at(t,It)){var e;switch(t.m()){case 0:e=Nu();break;case 1:var n;at(t,Vn)?n=t.k(0):n=t.h().j(),e=ih(n);break;default:e=mo(t,l0(t.m()));break}return e}return xm(mo(t,lu()))}function Wl(t){this.r_1=t}i(Wl).h=function(){return this.r_1.h()};function op(t,e){return ad.s(t,e,-1)}function ba(t,e){return t>e?e:t}function go(t,e){return t<e?e:t}function Hl(t){return fp(t,Tt())}function Vl(t,e){var n=new Su(t),r=new xu(n,!0,cp(e));return new Cu(r,hp)}function wc(t,e){if(!(e>=0)){var n="Requested element count "+e+" is less than zero.";throw Kt(F(n))}var r;return e===0?r=$i():at(t,Ei)?r=t.t(e):r=new ci(t,e),r}function sp(t,e){return new $u(t,e)}function lp(t,e){var n;return at(t,Ei)?n=t.u(e):n=new oi(t,e),n}function up(t,e){return new Eu(t,e)}function bc(t){var e=t.h();return e.i()?e.j():null}function kc(t){var e=t.h();if(!e.i())return oa();var n=e.j();if(!e.i())return Ua(n);var r=Tt();for(r.f(n);e.i();)r.f(e.j());return r}function fp(t,e){for(var n=t.h();n.i();){var r=n.j();e.f(r)}return e}function cp(t){return function(e){return t(e.v_1,e.w_1)}}function hp(t){return t.w_1}function tn(t,e){return 0<=e&&e<=(R(t)-1|0)?j(t,e):null}function df(t,e){if(!(e>=0)){var n="Requested character count "+e+" is less than zero.";throw Kt(F(n))}return cn(t,ba(e,R(t)),R(t))}function dp(t){return vp(t,Hi(R(t)))}function vp(t,e){for(var n=0;n<R(t);){var r=j(t,n);n=n+1|0,e.f(new ot(r))}return e}function pp(t){var e=t&65535;return e}function oe(t,e){return t-e|0}function _p(t,e){return oe(t.x_1,e instanceof ot?e.x_1:$())}function va(t,e){return t-e|0}function ri(t,e){return new Er(t,e)}function Fe(t){return t}function Gt(t){return String.fromCharCode(t)}function mp(t,e){return e instanceof ot?t===e.x_1:!1}function gp(t){return t}function Cc(){Ls=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 Ls;function yp(){return Ls==null&&new Cc,Ls}function ot(t){yp(),this.x_1=t}i(ot).i1=function(t){return oe(this.x_1,t)};i(ot).d=function(t){return _p(this,t)};i(ot).toString=function(){return Gt(this.x_1)};i(ot).equals=function(t){return mp(this.x_1,t)};i(ot).hashCode=function(){return gp(this.x_1)};function Vn(){}function It(){}function yr(){}function wr(){}function Vr(){}function wp(){}function br(t,e){this.v1_1=t,this.w1_1=e}i(br).x1=function(t){return Pc(this.w1_1,t.w1_1)};i(br).d=function(t){return this.x1(t instanceof br?t:$())};i(br).equals=function(t){return this===t};i(br).hashCode=function(){return Fp(this)};i(br).toString=function(){return this.v1_1};function Yt(t){var e=t==null?null:F(t);return e==null?"null":e}function xc(){Os=this,this.y1_1=new _t(0,-2147483648),this.z1_1=new _t(-1,2147483647),this.a2_1=8,this.b2_1=64}var Os;function bp(){return Os==null&&new xc,Os}function _t(t,e){bp(),_o.call(this),this.c2_1=t,this.d2_1=e}i(_t).e2=function(t){return Io(this,t)};i(_t).d=function(t){return this.e2(t instanceof _t?t:$())};i(_t).f2=function(t){return yo(this,t)};i(_t).g2=function(t){return Jp(this,t)};i(_t).h2=function(){return this.i2().f2(new _t(1,0))};i(_t).i2=function(){return new _t(~this.c2_1,~this.d2_1)};i(_t).j2=function(){return this.c2_1};i(_t).k2=function(){return xa(this)};i(_t).toString=function(){return Ds(this,10)};i(_t).equals=function(t){var e;return t instanceof _t?e=Nn(this,t):e=!1,e};i(_t).hashCode=function(){return Zp(this)};i(_t).valueOf=function(){return this.k2()};function Sc(t){for(var e=1,n=[],r=0,a=t.length;r<a;){var o=t[r];r=r+1|0;var s=e,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=kp(f);var d=h;d!=null&&(n.push(d),s=Math.max(s,d.length)),s>e&&(e=s)}return Cp(e,n)}function kp(t){var e=t>>5,n=new Int32Array(e+1|0),r=t&31,a=1<<r;return n[e]=n[e]|a,n}function Cp(t,e){for(var n=0,r=new Int32Array(t);n<t;){for(var a=n,o=0,s=0,l=e.length;s<l;){var c=e[s];s=s+1|0,a<c.length&&(o=o|c[a])}r[a]=o,n=n+1|0}return r}function xp(t,e){var n=e>>5;if(n>t.length)return!1;var r=e&31,a=1<<r;return!!(t[n]&a)}function nr(t,e){var n=0,r=t.length-1|0;if(n<=r)do{var a=n;n=n+1|0,t[a]=e}while(a!==r);return t}function $c(t){return new Eo(t)}function Sp(t){var e="CharArray",n=new Uint16Array(t);return n.$type$=e,n}function Eo(t){this.m2_1=t,this.l2_1=0}i(Eo).i=function(){return this.l2_1!==this.m2_1.length};i(Eo).j=function(){var t;if(this.l2_1!==this.m2_1.length){var e=this.l2_1;this.l2_1=e+1|0,t=this.m2_1[e]}else throw Ja(""+this.l2_1);return t};function Ss(){return Ji(),Ec}var Ec;function Nc(){return Ji(),Ic}var Ic;function js(){return Ji(),qc}var qc;function Ac(){return Ji(),Tc}var Tc;function $p(){return Ji(),Mc}var Mc;function Ep(t){return Ji(),(t|0)===t?Kc(t):(Nc()[0]=t,wt(js()[$p()],31)+js()[Ac()]|0)}var vf;function Ji(){vf||(vf=!0,Ec=new ArrayBuffer(8),Ic=new Float64Array(Ss()),new Float32Array(Ss()),qc=new Int32Array(Ss()),Nc()[0]=-1,Tc=js()[0]!==0?1:0,Mc=1-Ac()|0)}function j(t,e){var n;if(Ql(t)){var r=t.charCodeAt(e),a,o=0;if(r<Fe(o))a=!0;else{var s=65535;a=r>Fe(s)}if(a)throw Kt("Invalid Char code: "+r);n=$a(r)}else n=t.b(e);return n}function Ql(t){return typeof t=="string"}function R(t){var e;return Ql(t)?e=t.length:e=t.a(),e}function cn(t,e,n){var r;return Ql(t)?r=t.substring(e,n):r=t.c(e,n),r}function Np(t,e){var n=t,r=e;if(n===r)return!0;if(n==null||r==null||!Wc(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,!q(n[s],r[s]))return!1}while(a<o);return!0}function Ip(t){var e=t;if(e==null)return 0;var n=1,r=0,a=e.length;if(r<a)do{var o=r;r=r+1|0,n=wt(n,31)+ct(e[o])|0}while(r<a);return n}function qp(t){return vc(t,", ","[","]",u,u,Ap)}function Ap(t){return F(t)}function Tp(t){var e=Pp(t),n=Rp(t),r=Lp(),a=Op(),o=jp();return Mp(e,n,r,a,o)}function Mp(t,e,n,r,a){var o=et(i(zs));return new Proxy(o,{get:function(s,l,c){if(l==="length")return t();var f=typeof l,h=f==="string"||f==="number"?+l:void 0;return isNaN(h)?s[l]:e(h)},has:function(s,l){return!isNaN(l)&&l<t()},set:function(s,l,c){if(l==="length"){var f=t(),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 Gl(){throw bi()}function zs(){Array.call(this)}function Pp(t){return function(){return t.m()}}function Rp(t){return function(e){return t.k(e)}}function Lp(){var t=function(){return Gl(),ht};return t.callableName="UNSUPPORTED_OPERATION",t}function Op(){var t=function(){return Gl(),ht};return t.callableName="UNSUPPORTED_OPERATION",t}function jp(){var t=function(){return Gl(),ht};return t.callableName="UNSUPPORTED_OPERATION",t}function Pc(t,e){var n;switch(typeof t){case"number":var r;typeof e=="number"?r=pf(t,e):e instanceof _t?r=pf(t,e.k2()):r=_f(t,e),n=r;break;case"string":case"boolean":n=_f(t,e);break;default:n=zp(t,e);break}return n}function pf(t,e){var n;if(t<e)n=-1;else if(t>e)n=1;else if(t===e){var r;if(t!==0)r=0;else{var a=1/t,o;a===1/e?o=0:a<0?o=-1:o=1,r=o}n=r}else t!==t?n=e!==e?0:1:n=-1;return n}function _f(t,e){return t<e?-1:t>e?1:0}function zp(t,e){return t.d(e)}function Fp(t){return Fs(t)}function Fs(t){if(!("kotlinHashCodeValue$"in t)){var e=Rc(),n=new Object;n.value=e,n.enumerable=!1,Object.defineProperty(t,"kotlinHashCodeValue$",n)}return t.kotlinHashCodeValue$}function Rc(){return Math.random()*4294967296|0}function et(t){return t=t===u?null:t,Object.create(t)}function V(t,e,n,r){return Object.defineProperty(t,e,{configurable:!0,get:n,set:r})}function q(t,e){if(t==null)return e==null;if(e==null)return!1;if(typeof t=="object"&&typeof t.equals=="function")return t.equals(e);if(t!==t)return e!==e;if(typeof t=="number"&&typeof e=="number"){var n;if(t===e){var r;if(t!==0)r=!0;else{var a=1/t;r=a===1/e}n=r}else n=!1;return n}return t===e}function ct(t){if(t==null)return 0;var e=typeof t,n;switch(e){case"object":n=typeof t.hashCode=="function"?t.hashCode():Fs(t);break;case"function":n=Fs(t);break;case"number":n=Ep(t);break;case"boolean":n=ka(t);break;case"string":n=Ge(String(t));break;case"bigint":n=Dp(t);break;case"symbol":n=Bp(t);break;default:n=function(){throw new Error("Unexpected typeof `"+e+"`")}();break}return n}function F(t){var e;return t==null?e="null":Wc(t)?e="[...]":typeof t.toString!="function"?e=Kp(t):e=t.toString(),e}function ka(t){return t?1231:1237}function Ge(t){var e=0,n=t.length,r=0,a=n-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=t.charCodeAt(o);e=wt(e,31)+s|0}while(o!==a);return e}function Dp(t){for(var e=BigInt(32),n=BigInt(4294967295),r=t<0?-t:t,a=0,o=t<0?-1:1;r!=0;){var s=Number(r&n);a=wt(31,a)+s|0,r=r>>e}return wt(a,o)}function Bp(t){var e=Up(t)?Wp():Hp(),n=e.get(t);if(n!==u)return n;var r=Rc();return e.set(t,r),r}function Kp(t){return Object.prototype.toString.call(t)}function Up(t){return Symbol.keyFor(t)!=u}function Wp(){return $s===u&&($s=new Map),$s}function Hp(){return Es===u&&(Es=new WeakMap),Es}var $s,Es;function H(t,e){Error.captureStackTrace!=null?Error.captureStackTrace(t,e):t.stack=new Error().stack}function i(t){return t.prototype}function No(t,e,n){Error.call(t),Vp(t,e,n)}function Vp(t,e,n){var r=eh(Object.getPrototypeOf(t));if(!(r&1)){var a;if(e==null){var o;if(e!==null){var s=null;o=s==null?u:s}else o=u;a=o}else a=e;t.message=a}r&2||(t.cause=n),t.name=Object.getPrototypeOf(t).constructor.name}function Re(t){var e;return t==null?Qp():e=t,e}function Qp(){throw hu()}function qn(){throw du()}function $(){throw vu()}function ir(){return qt(),Lc}var Lc;function uo(){return qt(),Oc}var Oc;function mf(){return qt(),jc}var jc;function Gp(){return qt(),zc}var zc;function Fn(){return qt(),Fc}var Fc;function gf(){return qt(),Dc}var Dc;function Io(t,e){if(qt(),Nn(t,e))return 0;var n=wn(t),r=wn(e);return n&&!r?-1:!n&&r?1:wn(Ca(t,e))?-1:1}function yo(t,e){qt();var n=t.d2_1>>>16|0,r=t.d2_1&65535,a=t.c2_1>>>16|0,o=t.c2_1&65535,s=e.d2_1>>>16|0,l=e.d2_1&65535,c=e.c2_1>>>16|0,f=e.c2_1&65535,h=0,d=0,v=0,_=0;return _=_+(o+f|0)|0,v=v+(_>>>16|0)|0,_=_&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 _t(v<<16|_,h<<16|d)}function Ca(t,e){return qt(),yo(t,e.h2())}function Rr(t,e){if(qt(),ii(t))return ir();if(ii(e))return ir();if(Nn(t,Fn()))return yf(e)?Fn():ir();if(Nn(e,Fn()))return yf(t)?Fn():ir();if(wn(t)){var n;return wn(e)?n=Rr(Ze(t),Ze(e)):n=Ze(Rr(Ze(t),e)),n}else if(wn(e))return Ze(Rr(t,Ze(e)));if(wf(t,gf())&&wf(e,gf()))return Sa(xa(t)*xa(e));var r=t.d2_1>>>16|0,a=t.d2_1&65535,o=t.c2_1>>>16|0,s=t.c2_1&65535,l=e.d2_1>>>16|0,c=e.d2_1&65535,f=e.c2_1>>>16|0,h=e.c2_1&65535,d=0,v=0,_=0,m=0;return m=m+wt(s,h)|0,_=_+(m>>>16|0)|0,m=m&65535,_=_+wt(o,h)|0,v=v+(_>>>16|0)|0,_=_&65535,_=_+wt(s,f)|0,v=v+(_>>>16|0)|0,_=_&65535,v=v+wt(a,h)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+wt(o,f)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+wt(s,c)|0,d=d+(v>>>16|0)|0,v=v&65535,d=d+(((wt(r,h)+wt(a,f)|0)+wt(o,c)|0)+wt(s,l)|0)|0,d=d&65535,new _t(_<<16|m,d<<16|v)}function Jp(t,e){if(qt(),ii(e))throw kh("division by zero");if(ii(t))return ir();if(Nn(t,Fn())){if(Nn(e,uo())||Nn(e,mf()))return Fn();if(Nn(e,Fn()))return uo();var n=Xp(t,1),r=Yp(n.g2(e),1);if(Nn(r,ir()))return wn(e)?uo():mf();var a=Ca(t,Rr(e,r));return yo(r,a.g2(e))}else if(Nn(e,Fn()))return ir();if(wn(t)){var o;return wn(e)?o=Ze(t).g2(Ze(e)):o=Ze(Ze(t).g2(e)),o}else if(wn(e))return Ze(t.g2(Ze(e)));for(var s=ir(),l=t;e_(l,e);){for(var c=xa(l)/xa(e),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=Sa(f),_=Rr(v,e);wn(_)||t_(_,l);)f=f-d,v=Sa(f),_=Rr(v,e);ii(v)&&(v=uo()),s=yo(s,v),l=Ca(l,_)}return s}function Yp(t,e){qt();var n=e&63;return new _t(t.c2_1<<n,t.d2_1<<n|(t.c2_1>>>(32-n|0)|0))}function Xp(t,e){qt();var n=e&63;return new _t(t.c2_1>>>n|0|t.d2_1<<(32-n|0),t.d2_1>>n)}function xa(t){return qt(),t.d2_1*4294967296+n_(t)}function Ds(t,e){if(qt(),ii(t))return"0";if(wn(t))if(Nn(t,Fn())){var n=ga(e),r=t.g2(n),a=Ca(Rr(r,n),t).j2(),o=Ds(r,e);return o+a.toString(e)}else return"-"+Ds(Ze(t),e);for(var s=9,l=Sa(Math.pow(e,s)),c=t,f="";;){var h=c.g2(l),d=Ca(c,Rr(h,l)).j2(),v=d.toString(e);if(c=h,ii(c))return v+f;for(;v.length<s;)v="0"+v;f=v+f}}function Nn(t,e){return qt(),t.d2_1===e.d2_1&&t.c2_1===e.c2_1}function Zp(t){return qt(),t.c2_1^t.d2_1}function ga(t){return qt(),new _t(t,t<0?-1:0)}function wn(t){return qt(),t.d2_1<0}function ii(t){return qt(),t.d2_1===0&&t.c2_1===0}function yf(t){return qt(),(t.c2_1&1)===1}function Ze(t){return qt(),t.h2()}function wf(t,e){return qt(),Io(t,e)<0}function Sa(t){if(qt(),k_(t))return ir();if(t<=-9223372036854776e3)return Fn();if(t+1>=9223372036854776e3)return Gp();if(t<0)return Ze(Sa(-t));var e=4294967296,n=t%e|0,r=t/e|0;return new _t(n,r)}function t_(t,e){return qt(),Io(t,e)>0}function e_(t,e){return qt(),Io(t,e)>=0}function n_(t){return qt(),t.c2_1>=0?t.c2_1:4294967296+t.c2_1}var bf;function qt(){bf||(bf=!0,Lc=ga(0),Oc=ga(1),jc=ga(-1),zc=new _t(-1,2147483647),Fc=new _t(0,-2147483648),Dc=ga(16777216))}function Bc(t,e,n,r,a,o){var s=u,l=t==="interface"?r_():u;return{kind:t,simpleName:e,associatedObjectKey:r,associatedObjects:a,suspendArity:o,$kClass$:s,defaultConstructor:n,iid:l}}function r_(){return pa===u&&(pa=0),pa=pa+1|0,pa}var pa;function Jl(t,e,n,r,a,o,s,l,c){a!=null&&(e.prototype=Object.create(a.prototype),e.prototype.constructor=e);var f=Bc(t,n,r,l,c,s);if(e.$metadata$=f,o!=null){var h=q(f.iid,u)?e.prototype:e;h.$imask$=Sc(o)}}function b(t,e,n,r,a,o,s,l){var c="class";Jl(c,t,e,n,r,a,o,s,l)}function st(t,e,n,r,a,o,s,l){var c="object";Jl(c,t,e,n,r,a,o,s,l)}function Ue(t,e,n,r,a,o,s,l){var c="interface";Jl(c,t,e,n,r,a,o,s,l)}function Ba(t,e,n,r){b(t,"Lambda",u,e,n,r,u,u)}function ke(t,e,n,r){st(t,"Companion",u,e,n,r,u,u)}function i_(t,e,n,r,a){return Bc("class",t,e,n,r,a)}function rr(t){var e=t.length,n=Array(e),r=0,a=e-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=t[o];s!=null&&Xi(s)?n[o]=s:n[o]=[].slice.call(s)}while(o!==a);return[].concat.apply([],n)}function Kc(t){var e;return t instanceof _t?e=t.j2():e=a_(t),e}function a_(t){var e;return t>2147483647?e=2147483647:t<-2147483648?e=-2147483648:e=t|0,e}function o_(t){return t<<16>>16}function $a(t){var e=Kc(t),n=o_(e);return pp(n)}function s_(t,e){return new Hr(t,e)}function l_(){return Yi(),Uc}var Uc;function zi(){return Yi(),i_(u,u,u,u,u)}function Ka(t,e,n,r,a){return Yi(),r.get=r,r.set=a,r.callableName=t,u_(r,f_(e,a),c_(r,n))}function u_(t,e,n){return Yi(),t.$metadata$=e,t.constructor=t,t.$imask$=n,t}function f_(t,e){return Yi(),l_()[t][e==null?0:1]}function c_(t,e){Yi();var n=t.$imask$,r;if(n==null){var a=[e];r=Sc(a)}else r=n;return r}var kf;function Yi(){if(!kf){kf=!0;var t=[zi(),zi()],e=[zi(),zi()];Uc=[t,e,[zi(),zi()]]}}function Wc(t){return qo(t)||Hv(t)}function qo(t){return Array.isArray(t)}function at(t,e){return h_(t,e.$metadata$.iid)}function h_(t,e){var n=t.$imask$,r;if(n==null)return!1;r=n;var a=r;return xp(a,e)}function Xi(t){var e;return qo(t)?e=!t.$type$:e=!1,e}function Hc(t){var e;return typeof t=="number"?e=!0:e=t instanceof _t,e}function d_(t){var e=typeof t;return e==="string"||e==="boolean"||Hc(t)||at(t,Da)}function me(t){return typeof t=="string"||at(t,jl)}function Vc(t){return qo(t)&&t.$type$==="BooleanArray"}function Qc(t){return t instanceof Int8Array}function Gc(t){return t instanceof Int16Array}function Jc(t){var e;return t instanceof Uint16Array?e=t.$type$==="CharArray":e=!1,e}function Yc(t){return t instanceof Int32Array}function Xc(t){return t instanceof Float32Array}function Zc(t){return qo(t)&&t.$type$==="LongArray"}function th(t){return t instanceof Float64Array}function eh(t){var e=t.constructor,n=e==null?null:e.$metadata$,r=n==null?null:n.errorInfo;if(r!=null)return r;var a=0;if(Cf(t,"message")&&(a=a|1),Cf(t,"cause")&&(a=a|2),a!==3){var o=v_(t);o!=Error.prototype&&(a=a|eh(o))}return n!=null&&(n.errorInfo=a),a}function Cf(t,e){return t.hasOwnProperty(e)}function v_(t){return Object.getPrototypeOf(t)}var u;function p_(t,e,n,r){n=n===u?0:n,r=r===u?t.length:r,_n.o2(n,r,t.length),t.fill(e,n,r)}function Bs(t,e){return Np(t,e)}function Ks(t){return Ip(t)}function Yl(t){return new Zt(t)}function __(t,e){t.length>1&&sh(t,e)}function m_(t,e){if(!(e>=0)){var n="Invalid new array size: "+e+".";throw Kt(F(n))}return N0(t,new Int32Array(e))}function g_(t,e){if(!(e>=0)){var n="Invalid new array size: "+e+".";throw Kt(F(n))}return I0(t,e,null)}function Xl(t){var e=(t.m()/2|0)-1|0;if(e<0)return ht;var n=Xa(t),r=0;if(r<=e)do{var a=r;r=r+1|0;var o=t.k(a);t.p2(a,t.k(n)),t.p2(n,o),n=n-1|0}while(a!==e)}function y_(t){var e=Fe(t),n=w_(xf().q2_1,e),r=e-xf().q2_1[n]|0;return r<10?r:-1}function w_(t,e){for(var n=0,r=t.length-1|0,a=-1,o=0;n<=r;)if(a=(n+r|0)/2|0,o=t[a],e>o)n=a+1|0;else{if(e===o)return a;r=a-1|0}return a-(e<o?1:0)|0}function nh(){Us=this;var t=this;t.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 Us;function xf(){return Us==null&&new nh,Us}function b_(t){var e=Fe(t);return(9<=e?e<=13:!1)||(28<=e?e<=32:!1)||e===160||e>4096&&(e===5760||(8192<=e?e<=8202:!1)||e===8232||e===8233||e===8239||e===8287||e===12288)}function k_(t){return t!==t}function C_(t){var e;return t===0?e=0:e=1<<(31-hc(t)|0),e}function rh(t){return hm(t)}function Ua(t){return vm([t])}function bn(t){var e;return t.toArray!==void 0?e=t.toArray():e=rh(t),e}function Ao(t){return t<0&&ym(),t}function x_(t,e){S_(t,e)}function ih(t){return Cm([t])}function S_(t,e){if(t.m()<=1)return ht;var n=bn(t);sh(n,e);var r=0,a=n.length;if(r<a)do{var o=r;r=r+1|0,t.p2(o,n[o])}while(r<a)}function Kn(){Cr.call(this)}i(Kn).q=function(t){this.r2();for(var e=!1,n=t.h();n.i();){var r=n.j();this.f(r)&&(e=!0)}return e};i(Kn).toJSON=function(){return this.toArray()};i(Kn).r2=function(){};function gi(t){this.u2_1=t,this.s2_1=0,this.t2_1=-1}i(gi).i=function(){return this.s2_1<this.u2_1.m()};i(gi).j=function(){if(!this.i())throw Ee();var t=this,e=this.s2_1;return this.s2_1=e+1|0,t.t2_1=e,this.u2_1.k(this.t2_1)};i(gi).v2=function(){if(this.t2_1===-1){var t="Call next() or previous() before removing element from the iterator.";throw Ur(F(t))}this.u2_1.x2(this.t2_1),this.s2_1=this.t2_1,this.t2_1=-1};function Wa(t,e){this.b3_1=t,gi.call(this,t),_n.c3(e,this.b3_1.m()),this.s2_1=e}i(Wa).d3=function(){return this.s2_1>0};i(Wa).e3=function(){return this.s2_1};i(Wa).f3=function(){if(!this.d3())throw Ee();var t=this;return this.s2_1=this.s2_1-1|0,t.t2_1=this.s2_1,this.b3_1.k(this.t2_1)};function qr(t,e,n){be.call(this),this.h3_1=t,this.i3_1=e,this.j3_1=0,_n.o2(this.i3_1,n,this.h3_1.m()),this.j3_1=n-this.i3_1|0}i(qr).k3=function(t,e){_n.c3(t,this.j3_1),this.h3_1.k3(this.i3_1+t|0,e),this.j3_1=this.j3_1+1|0};i(qr).k=function(t){return _n.l3(t,this.j3_1),this.h3_1.k(this.i3_1+t|0)};i(qr).x2=function(t){_n.l3(t,this.j3_1);var e=this.h3_1.x2(this.i3_1+t|0);return this.j3_1=this.j3_1-1|0,e};i(qr).p2=function(t,e){return _n.l3(t,this.j3_1),this.h3_1.p2(this.i3_1+t|0,e)};i(qr).m3=function(t,e){this.h3_1.m3(this.i3_1+t|0,this.i3_1+e|0),this.j3_1=this.j3_1-(e-t|0)|0};i(qr).m=function(){return this.j3_1};i(qr).r2=function(){return this.h3_1.r2()};function be(){Kn.call(this),this.w2_1=0}i(be).f=function(t){return this.r2(),this.k3(this.m(),t),!0};i(be).n3=function(){this.r2(),this.m3(0,this.m())};i(be).h=function(){return new gi(this)};i(be).j1=function(t){return this.l1(t)>=0};i(be).l1=function(t){var e;t:{for(var n=0,r=this.h();r.i();){var a=r.j();if(q(a,t)){e=n;break t}n=n+1|0}e=-1}return e};i(be).m1=function(t){var e;t:{for(var n=this.o1(this.m());n.d3();){var r=n.f3();if(q(r,t)){e=n.e3();break t}}e=-1}return e};i(be).n1=function(){return this.o1(0)};i(be).o1=function(t){return new Wa(this,t)};i(be).p1=function(t,e){return new qr(this,t,e)};i(be).m3=function(t,e){var n=this.o1(t),r=e-t|0,a=0;if(a<r)do a=a+1|0,n.j(),n.v2();while(a<r)};i(be).equals=function(t){return t===this?!0:t!=null&&at(t,Vn)?_n.o3(this,t):!1};i(be).hashCode=function(){return _n.p3(this)};function wo(){kn.call(this),this.s3_1=null,this.t3_1=null}function kr(){Kn.call(this)}i(kr).equals=function(t){return t===this?!0:t!=null&&at(t,Vr)?wu.y3(this,t):!1};i(kr).hashCode=function(){return wu.z3(this)};function ah(t){if(!(t>=0)){var e="capacity must be non-negative.";throw Kt(F(e))}return nr(Array(t),null)}function Sf(t,e,n){t.fill(null,e,n)}function $f(t,e){return g_(t,e)}function oh(){Ws=this;var t=this,e=Hi(0);e.p_1=!0,t.a4_1=e}var Ws;function $_(){return Ws==null&&new oh,Ws}function E_(t){var e=[];return Zt.call(t,e),t}function Tt(){return E_(et(i(Zt)))}function N_(t,e){var n=[];if(Zt.call(e,n),!(t>=0)){var r="Negative initial capacity: "+t;throw Kt(F(r))}return e}function Hi(t){return N_(t,et(i(Zt)))}function I_(t,e){var n=bn(t);return Zt.call(e,n),e}function Ha(t){return I_(t,et(i(Zt)))}function q_(t,e){var n=t.m();return t.o_1.length=t.m()+e|0,n}function Zl(t,e){return _n.l3(e,t.m()),e}function A_(t,e){return _n.c3(e,t.m()),e}function Zt(t){$_(),be.call(this),this.o_1=t,this.p_1=!1}i(Zt).m=function(){return this.o_1.length};i(Zt).k=function(t){var e=this.o_1[Zl(this,t)];return e==null||e!=null?e:$()};i(Zt).p2=function(t,e){this.r2(),Zl(this,t);var n=this.o_1[t];this.o_1[t]=e;var r=n;return r==null||r!=null?r:$()};i(Zt).f=function(t){return this.r2(),this.o_1.push(t),this.w2_1=this.w2_1+1|0,!0};i(Zt).k3=function(t,e){this.r2(),this.o_1.splice(A_(this,t),0,e),this.w2_1=this.w2_1+1|0};i(Zt).q=function(t){if(this.r2(),t.l())return!1;for(var e=q_(this,t.m()),n=0,r=t.h();r.i();){var a=r.j(),o=n;n=o+1|0;var s=Ao(o);this.o_1[e+s|0]=a}return this.w2_1=this.w2_1+1|0,!0};i(Zt).x2=function(t){this.r2(),Zl(this,t),this.w2_1=this.w2_1+1|0;var e;return t===Xa(this)?e=this.o_1.pop():e=this.o_1.splice(t,1)[0],e};i(Zt).m3=function(t,e){this.r2(),this.w2_1=this.w2_1+1|0,this.o_1.splice(t,e-t|0)};i(Zt).n3=function(){this.r2();var t=this;t.o_1=[],this.w2_1=this.w2_1+1|0};i(Zt).l1=function(t){return pc(this.o_1,t)};i(Zt).m1=function(t){return Xv(this.o_1,t)};i(Zt).toString=function(){return qp(this.o_1)};i(Zt).b4=function(){return[].slice.call(this.o_1)};i(Zt).toArray=function(){return this.b4()};i(Zt).r2=function(){if(this.p_1)throw bi()};var fo;function sh(t,e){if(T_()){var n=P_(e);t.sort(n)}else M_(t,0,Yv(t),e)}function T_(){var t=fo;if(t!=null)return t;fo=!1;var e=[],n=0;if(n<600)do{var r=n;n=n+1|0,e.push(r)}while(n<600);var a=R_;e.sort(a);var o=1,s=e.length;if(o<s)do{var l=o;o=o+1|0;var c=e[l-1|0],f=e[l];if((c&3)===(f&3)&&c>=f)return!1}while(o<s);return fo=!0,!0}function M_(t,e,n,r){var a=t.length,o=nr(Array(a),null),s=Hs(t,o,e,n,r);if(s!==t){var l=e;if(l<=n)do{var c=l;l=l+1|0,t[c]=s[c]}while(c!==n)}}function Hs(t,e,n,r,a){if(n===r)return t;var o=(n+r|0)/2|0,s=Hs(t,e,n,o,a),l=Hs(t,e,o+1|0,r,a),c=s===e?t:e,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 _=s[f],m=l[h];a.compare(_,m)<=0?(c[v]=_,f=f+1|0):(c[v]=m,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 P_(t){return function(e,n){return t.compare(e,n)}}function R_(t,e){return(t&3)-(e&3)|0}function lh(t,e){return wo.call(e),Un.call(e),e.g4_1=t,e}function uh(t){return lh(nu(),t),t}function L_(){return uh(et(i(Un)))}function O_(t,e,n){return lh(vh(t,e),n),n}function j_(t,e){return O_(t,1,e),e}i(Un).s1=function(t){return this.g4_1.i4(t)};i(Un).u1=function(){var t=this.h4_1,e;if(t==null){var n=new tu(this.g4_1);this.h4_1=n,e=n}else e=t;return e};i(Un).t1=function(t){return this.g4_1.t1(t)};i(Un).u3=function(t,e){return this.g4_1.u3(t,e)};i(Un).m=function(){return this.g4_1.m()};function Un(){this.h4_1=null}function tu(t){Cn.call(this,t)}i(tu).h=function(){return this.k4_1.l4()};function Cn(t){kr.call(this),this.k4_1=t}i(Cn).m=function(){return this.k4_1.m()};i(Cn).l=function(){return this.k4_1.m()===0};i(Cn).m4=function(t){return this.k4_1.o4(t)};i(Cn).j1=function(t){return t!=null&&at(t,yr)?this.m4(t!=null&&at(t,yr)?t:$()):!1};i(Cn).n4=function(t){throw bi()};i(Cn).f=function(t){return this.n4(t!=null&&at(t,yr)?t:$())};i(Cn).q=function(t){throw bi()};i(Cn).k1=function(t){return this.k4_1.p4(t)};i(Cn).r2=function(){return this.k4_1.q4()};function eu(t,e){return kr.call(e),Tn.call(e),e.r4_1=t,e}function fh(t){return eu(nu(),t),t}function z_(){return fh(et(i(Tn)))}function F_(t,e){eu(U_(t.m()),e);for(var n=t.h();n.i();){var r=n.j();e.r4_1.u3(r,!0)}return e}function ch(t,e,n){return eu(vh(t,e),n),n}function D_(t,e){return ch(t,1,e),e}function B_(t){return D_(t,et(i(Tn)))}i(Tn).f=function(t){return this.r4_1.u3(t,!0)==null};i(Tn).j1=function(t){return this.r4_1.i4(t)};i(Tn).l=function(){return this.r4_1.m()===0};i(Tn).h=function(){return this.r4_1.s4()};i(Tn).m=function(){return this.r4_1.m()};function Tn(){}function hh(t,e){return C_(wt(go(e,1),3))}function dh(t,e){return hc(e)+1|0}function K_(t){return ru(8,t),t}function nu(){return K_(et(i($e)))}function ru(t,e){return $e.call(e,ah(t),null,new Int32Array(t),new Int32Array(hh(Va,t)),2,0),e}function U_(t){return ru(t,et(i($e)))}function W_(t,e,n){return ru(t,n),n}function vh(t,e){return W_(t,e,et(i($e)))}function Vi(t){return t.t4_1.length}function Dn(t){return t.w4_1.length}function ph(t){t.a5_1=t.a5_1+1|0}function H_(t,e){V_(t,e)?au(t,Dn(t)):Q_(t,t.y4_1+e|0)}function V_(t,e){var n=Vi(t)-t.y4_1|0,r=t.y4_1-t.m()|0;return n<e&&(r+n|0)>=e&&r>=(Vi(t)/4|0)}function Q_(t,e){if(e<0)throw Ih("too many elements");if(e>Vi(t)){var n=_n.d5(Vi(t),e);t.t4_1=$f(t.t4_1,n);var r=t,a=t.u4_1;r.u4_1=a==null?null:$f(a,n),t.v4_1=m_(t.v4_1,n);var o=hh(Va,n);o>Dn(t)&&au(t,o)}}function G_(t){var e=t.u4_1;if(e!=null)return e;var n=ah(Vi(t));return t.u4_1=n,n}function iu(t,e){return e==null?0:wt(ct(e),-1640531527)>>>t.z4_1|0}function J_(t){for(var e=0,n=0,r=t.u4_1;e<t.y4_1;)t.v4_1[e]>=0&&(t.t4_1[n]=t.t4_1[e],r!=null&&(r[n]=r[e]),n=n+1|0),e=e+1|0;Sf(t.t4_1,n,t.y4_1),r==null||Sf(r,n,t.y4_1),t.y4_1=n}function au(t,e){ph(t),t.y4_1>t.b5_1&&J_(t),e!==Dn(t)?(t.w4_1=new Int32Array(e),t.z4_1=dh(Va,e)):p_(t.w4_1,0,0,Dn(t));for(var n=0;n<t.y4_1;){var r=n;if(n=r+1|0,!Y_(t,r))throw Ur("This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?")}}function Y_(t,e){for(var n=iu(t,t.t4_1[e]),r=t.x4_1;;){var a=t.w4_1[n];if(a===0)return t.w4_1[n]=e+1|0,t.v4_1[e]=n,!0;if(r=r-1|0,r<0)return!1;var o=n;n=o-1|0,o===0&&(n=Dn(t)-1|0)}}function ou(t,e){for(var n=iu(t,e),r=t.x4_1;;){var a=t.w4_1[n];if(a===0)return-1;if(a>0&&q(t.t4_1[a-1|0],e))return a-1|0;if(r=r-1|0,r<0)return-1;var o=n;n=o-1|0,o===0&&(n=Dn(t)-1|0)}}function X_(t,e){t.q4();t:for(;;)for(var n=iu(t,e),r=ba(wt(t.x4_1,2),Dn(t)/2|0),a=0;;){var o=t.w4_1[n];if(o<=0){if(t.y4_1>=Vi(t)){H_(t,1);continue t}var s=t.y4_1;t.y4_1=s+1|0;var l=s;return t.t4_1[l]=e,t.v4_1[l]=n,t.w4_1[n]=l+1|0,t.b5_1=t.b5_1+1|0,ph(t),a>t.x4_1&&(t.x4_1=a),l}if(q(t.t4_1[o-1|0],e))return-o|0;if(a=a+1|0,a>r){au(t,wt(Dn(t),2));continue t}var c=n;n=c-1|0,c===0&&(n=Dn(t)-1|0)}}function Z_(t,e){return t.b5_1===e.m()&&t.p4(e.u1())}function _h(){this.e5_1=-1640531527,this.f5_1=8,this.g5_1=2,this.h5_1=-1}var Va;function Qr(t){this.i5_1=t,this.j5_1=0,this.k5_1=-1,this.l5_1=this.i5_1.a5_1,this.m5()}i(Qr).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(Qr).i=function(){return this.j5_1<this.i5_1.y4_1};i(Qr).n5=function(){if(this.i5_1.a5_1!==this.l5_1)throw cu()};function su(t){Qr.call(this,t)}i(su).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw Ee();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=this.i5_1.t4_1[this.k5_1];return this.m5(),n};function Qa(t){Qr.call(this,t)}i(Qa).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw Ee();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=new yi(this.i5_1,this.k5_1);return this.m5(),n};i(Qa).w5=function(){if(this.j5_1>=this.i5_1.y4_1)throw Ee();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=this.i5_1.t4_1[this.k5_1],r=n==null?null:ct(n),a=r==null?0:r,o=Re(this.i5_1.u4_1)[this.k5_1],s=o==null?null:ct(o),l=a^(s==null?0:s);return this.m5(),l};i(Qa).x5=function(t){if(this.j5_1>=this.i5_1.y4_1)throw Ee();var e=this,n=this.j5_1;this.j5_1=n+1|0,e.k5_1=n;var r=this.i5_1.t4_1[this.k5_1];q(r,this.i5_1)?t.a6("(this Map)"):t.z5(r),t.b6(61);var a=Re(this.i5_1.u4_1)[this.k5_1];q(a,this.i5_1)?t.a6("(this Map)"):t.z5(a),this.m5()};function yi(t,e){this.c6_1=t,this.d6_1=e}i(yi).q1=function(){return this.c6_1.t4_1[this.d6_1]};i(yi).r1=function(){return Re(this.c6_1.u4_1)[this.d6_1]};i(yi).equals=function(t){var e,n;return t!=null&&at(t,yr)?n=q(t.q1(),this.q1()):n=!1,n?e=q(t.r1(),this.r1()):e=!1,e};i(yi).hashCode=function(){var t=this.q1(),e=t==null?null:ct(t),n=e==null?0:e,r=this.r1(),a=r==null?null:ct(r);return n^(a==null?0:a)};i(yi).toString=function(){return Yt(this.q1())+"="+Yt(this.r1())};function $e(t,e,n,r,a,o){this.t4_1=t,this.u4_1=e,this.v4_1=n,this.w4_1=r,this.x4_1=a,this.y4_1=o,this.z4_1=dh(Va,Dn(this)),this.a5_1=0,this.b5_1=0,this.c5_1=!1}i($e).m=function(){return this.b5_1};i($e).t1=function(t){var e=ou(this,t);return e<0?null:Re(this.u4_1)[e]};i($e).i4=function(t){return ou(this,t)>=0};i($e).u3=function(t,e){var n=X_(this,t),r=G_(this);if(n<0){var a=r[(-n|0)-1|0];return r[(-n|0)-1|0]=e,a}else return r[n]=e,null};i($e).equals=function(t){var e;if(t===this)e=!0;else{var n;t!=null&&at(t,wr)?n=Z_(this,t):n=!1,e=n}return e};i($e).hashCode=function(){for(var t=0,e=this.l4();e.i();)t=t+e.w5()|0;return t};i($e).toString=function(){var t=jh(2+wt(this.b5_1,3)|0);t.a6("{");for(var e=0,n=this.l4();n.i();)e>0&&t.a6(", "),n.x5(t),e=e+1|0;return t.a6("}"),t.toString()};i($e).q4=function(){if(this.c5_1)throw bi()};i($e).o4=function(t){var e=ou(this,t.q1());return e<0?!1:q(Re(this.u4_1)[e],t.r1())};i($e).e6=function(t){return this.o4(at(t,yr)?t:$())};i($e).s4=function(){return new su(this)};i($e).l4=function(){return new Qa(this)};function mh(){}function t0(t){return uh(t),Ga.call(t),t}function gh(){return t0(et(i(Ga)))}function e0(t,e){return j_(t,e),Ga.call(e),e}function n0(t){return e0(t,et(i(Ga)))}function Ga(){}function r0(t){return fh(t),Gr.call(t),t}function lu(){return r0(et(i(Gr)))}function i0(t,e){return F_(t,e),Gr.call(e),e}function a0(t){return i0(t,et(i(Gr)))}function o0(t,e,n){return ch(t,e,n),Gr.call(n),n}function s0(t,e){return o0(t,1,e),e}function l0(t){return s0(t,et(i(Gr)))}i(Gr).r2=function(){return this.r4_1.q4()};function Gr(){}function Le(t){Ea.call(this),this.h6_1=t,this.i6_1=0,this.j6_1=0,this.k6_1=null,this.l6_1=null,this.m6_1=null;var e=this,n=this.h6_1;e.n6_1=n==null?null:n.o6()}i(Le).o6=function(){return Re(this.n6_1)};i(Le).p6=function(t){var e=this,n;if(jm(t))n=null;else{var r=t;n=r==null||r!=null?r:$()}for(var a=n,o=zm(t);;){var s=e;o==null?s.k6_1=a:(s.i6_1=s.j6_1,s.l6_1=o);try{var l=s.q6();if(l===$r())return ht;a=l,o=null}catch(m){var c=m;a=null,o=c}s.s6();var f=Re(s.h6_1);if(f instanceof Le)e=f;else{if(o!=null){var h=Re(o),d=Dm(h);f.t6(d)}else{var v=a,_=v;f.t6(_)}return ht}}};i(Le).t6=function(t){return this.p6(t)};function Zi(){}i(Zi).o6=function(){var t="This continuation is already complete";throw Ur(F(t))};i(Zi).p6=function(t){var e="This continuation is already complete";throw Ur(F(e))};i(Zi).t6=function(t){return this.p6(t)};i(Zi).toString=function(){return"This continuation is already complete"};var yh;function Ea(){this.r6_1=null}i(Ea).s6=function(){var t=this.r6_1;t!=null&&t!==this&&Re(this.o6().u6(td)).v6(t),this.r6_1=yh};function u0(t,e,n){return new uu(n,t,e,n)}function uu(t,e,n,r){this.e7_1=e,this.f7_1=n,this.g7_1=r,Le.call(this,at(t,la)?t:$())}i(uu).q6=function(){if(this.l6_1!=null)throw this.l6_1;var t=this.e7_1;return typeof t=="function"?t(this.f7_1,this.g7_1):this.e7_1.h7(this.f7_1,this.g7_1)};function wh(t){return No(t),xn.call(t),t}function bh(){var t=wh(et(i(xn)));return H(t,bh),t}function To(t,e){return No(e,t),xn.call(e),e}function kh(t){var e=To(t,et(i(xn)));return H(e,kh),e}function xn(){H(this,xn)}function Ch(t){return Mn(t),wi.call(t),t}function xh(){var t=Ch(et(i(wi)));return H(t,xh),t}function Sh(t,e){return ki(t,e),wi.call(e),e}function Kt(t){var e=Sh(t,et(i(wi)));return H(e,Kt),e}function wi(){H(this,wi)}function f0(t){return Mn(t),ta.call(t),t}function fu(){var t=f0(et(i(ta)));return H(t,fu),t}function c0(t,e){return ki(t,e),ta.call(e),e}function Wn(t){var e=c0(t,et(i(ta)));return H(e,Wn),e}function ta(){H(this,ta)}function h0(t){return Mn(t),ea.call(t),t}function $h(){var t=h0(et(i(ea)));return H(t,$h),t}function d0(t,e){return ki(t,e),ea.call(e),e}function Ur(t){var e=d0(t,et(i(ea)));return H(e,Ur),e}function ea(){H(this,ea)}function v0(t){return Mn(t),na.call(t),t}function bi(){var t=v0(et(i(na)));return H(t,bi),t}function p0(t,e){return ki(t,e),na.call(e),e}function Eh(t){var e=p0(t,et(i(na)));return H(e,Eh),e}function na(){H(this,na)}function Mn(t){return wh(t),We.call(t),t}function Nh(){var t=Mn(et(i(We)));return H(t,Nh),t}function ki(t,e){return To(t,e),We.call(e),e}function Ih(t){var e=ki(t,et(i(We)));return H(e,Ih),e}function We(){H(this,We)}function _0(t){return Mn(t),ra.call(t),t}function Ee(){var t=_0(et(i(ra)));return H(t,Ee),t}function m0(t,e){return ki(t,e),ra.call(e),e}function Ja(t){var e=m0(t,et(i(ra)));return H(e,Ja),e}function ra(){H(this,ra)}function g0(t){return No(t),ia.call(t),t}function qh(){var t=g0(et(i(ia)));return H(t,qh),t}function y0(t,e){return No(e,t),ia.call(e),e}function ia(){H(this,ia)}function w0(t){return Ch(t),Ci.call(t),t}function Ah(){var t=w0(et(i(Ci)));return H(t,Ah),t}function b0(t,e){return Sh(t,e),Ci.call(e),e}function Th(t){var e=b0(t,et(i(Ci)));return H(e,Th),e}function Ci(){H(this,Ci)}function k0(t){return Mn(t),aa.call(t),t}function Mh(){var t=k0(et(i(aa)));return H(t,Mh),t}function C0(t,e){return ki(t,e),aa.call(e),e}function Ph(t){var e=C0(t,et(i(aa)));return H(e,Ph),e}function aa(){H(this,aa)}function x0(t){return Mn(t),Mo.call(t),t}function cu(){var t=x0(et(i(Mo)));return H(t,cu),t}function Mo(){H(this,Mo)}function S0(t){return Mn(t),Po.call(t),t}function hu(){var t=S0(et(i(Po)));return H(t,hu),t}function Po(){H(this,Po)}function $0(t){return Mn(t),Ro.call(t),t}function du(){var t=$0(et(i(Ro)));return H(t,du),t}function Ro(){H(this,Ro)}function E0(t){return Mn(t),Lo.call(t),t}function vu(){var t=E0(et(i(Lo)));return H(t,vu),t}function Lo(){H(this,Lo)}function Na(t){return new io(t)}function N0(t,e){for(var n=t.length,r=e.length,a=0,o=e;a<n&&a<r;){var s=a,l=a;a=l+1|0,o[s]=t[l]}return e}function I0(t,e,n){var r=t.slice(0,e);t.$type$!==void 0&&(r.$type$=t.$type$);var a=t.length;if(e>a)for(r.length=e;a<e;){var o=a;a=o+1|0,r[o]=n}return r}function Ia(){}function pn(t){this.l7_1=t}i(pn).m7=function(){return this.l7_1};i(pn).equals=function(t){var e;return t instanceof xi||t instanceof Qi?e=!1:t instanceof pn?e=q(this.m7(),t.m7()):e=!1,e};i(pn).hashCode=function(){var t=this.k7(),e=t==null?null:Ge(t);return e==null?0:e};i(pn).toString=function(){return"class "+this.k7()};function xi(){Vs=this,pn.call(this,Object),this.o7_1="Nothing"}i(xi).k7=function(){return this.o7_1};i(xi).m7=function(){throw Eh("There's no native JS class for Nothing type")};i(xi).equals=function(t){return t===this};i(xi).hashCode=function(){return 0};var Vs;function Rh(){return Vs==null&&new xi,Vs}function Qi(){}i(Qi).equals=function(t){return t===this};i(Qi).hashCode=function(){return 0};function Bt(t,e,n){pn.call(this,t),this.q7_1=e,this.r7_1=n}i(Bt).equals=function(t){return t instanceof Bt?i(pn).equals.call(this,t)&&this.q7_1===t.q7_1:!1};i(Bt).k7=function(){return this.q7_1};function bo(t){pn.call(this,t);var e=this,n=t.$metadata$;e.t7_1=n==null?null:n.simpleName}i(bo).k7=function(){return this.t7_1};function Oo(){}function pu(){}function Ef(){return J0(),Lh}var Lh;function q0(t){return t!=null}function A0(t){return Hc(t)}function T0(t){return t!=null?typeof t=="boolean":!1}function M0(t){return t!=null?typeof t=="number":!1}function P0(t){return t!=null?typeof t=="number":!1}function R0(t){return t!=null?typeof t=="number":!1}function L0(t){return t!=null?typeof t=="number":!1}function O0(t){return t!=null?typeof t=="number":!1}function j0(t){return t!=null?Xi(t):!1}function z0(t){return t!=null?typeof t=="string":!1}function F0(t){return t instanceof Error}function D0(t){return t!=null?Vc(t):!1}function B0(t){return t!=null?Jc(t):!1}function K0(t){return t!=null?Qc(t):!1}function U0(t){return t!=null?Gc(t):!1}function W0(t){return t!=null?Yc(t):!1}function H0(t){return t!=null?Zc(t):!1}function V0(t){return t!=null?Xc(t):!1}function Q0(t){return t!=null?th(t):!1}function G0(t){return function(e){var n;return typeof e=="function"?n=e.length===t:n=!1,n}}function te(){Qs=this;var t=this,e=Object;t.anyClass=new Bt(e,"Any",q0);var n=this,r=Number;n.numberClass=new Bt(r,"Number",A0),this.nothingClass=Rh();var a=this,o=Boolean;a.booleanClass=new Bt(o,"Boolean",T0);var s=this,l=Number;s.byteClass=new Bt(l,"Byte",M0);var c=this,f=Number;c.shortClass=new Bt(f,"Short",P0);var h=this,d=Number;h.intClass=new Bt(d,"Int",R0);var v=this,_=Number;v.floatClass=new Bt(_,"Float",L0);var m=this,g=Number;m.doubleClass=new Bt(g,"Double",O0);var y=this,x=Array;y.arrayClass=new Bt(x,"Array",j0);var C=this,p=String;C.stringClass=new Bt(p,"String",z0);var k=this,S=Error;k.throwableClass=new Bt(S,"Throwable",F0);var I=this,A=Array;I.booleanArrayClass=new Bt(A,"BooleanArray",D0);var U=this,Y=Uint16Array;U.charArrayClass=new Bt(Y,"CharArray",B0);var lt=this,Mt=Int8Array;lt.byteArrayClass=new Bt(Mt,"ByteArray",K0);var xt=this,ae=Int16Array;xt.shortArrayClass=new Bt(ae,"ShortArray",U0);var pt=this,W=Int32Array;pt.intArrayClass=new Bt(W,"IntArray",W0);var Ft=this,ut=Array;Ft.longArrayClass=new Bt(ut,"LongArray",H0);var Ut=this,Ie=Float32Array;Ut.floatArrayClass=new Bt(Ie,"FloatArray",V0);var mn=this,Rn=Float64Array;mn.doubleArrayClass=new Bt(Rn,"DoubleArray",Q0)}i(te).u7=function(){return this.anyClass};i(te).v7=function(){return this.numberClass};i(te).w7=function(){return this.nothingClass};i(te).x7=function(){return this.booleanClass};i(te).y7=function(){return this.byteClass};i(te).z7=function(){return this.shortClass};i(te).a8=function(){return this.intClass};i(te).b8=function(){return this.floatClass};i(te).c8=function(){return this.doubleClass};i(te).d8=function(){return this.arrayClass};i(te).e8=function(){return this.stringClass};i(te).f8=function(){return this.throwableClass};i(te).g8=function(){return this.booleanArrayClass};i(te).h8=function(){return this.charArrayClass};i(te).i8=function(){return this.byteArrayClass};i(te).j8=function(){return this.shortArrayClass};i(te).k8=function(){return this.intArrayClass};i(te).l8=function(){return this.longArrayClass};i(te).m8=function(){return this.floatArrayClass};i(te).n8=function(){return this.doubleArrayClass};i(te).functionClass=function(t){var e=Ef()[t],n;if(e==null){var r=Function,a="Function"+t,o=new Bt(r,a,G0(t));Ef()[t]=o,n=o}else n=e;return n};var Qs;function Ae(){return Qs==null&&new te,Qs}var Nf;function J0(){Nf||(Nf=!0,Lh=nr(Array(0),null))}function Y0(t){var e;return Array.isArray(t)?e=X0(t):e=_u(t),e}function X0(t){var e;switch(t.length){case 1:e=_u(t[0]);break;case 0:e=Rh();break;default:e=new Qi;break}return e}function _u(t){if(t===String)return Ae().stringClass;var e=t.$metadata$,n;if(e!=null){var r;if(e.$kClass$==null){var a=new bo(t);e.$kClass$=a,r=a}else r=e.$kClass$;n=r}else n=new bo(t);return n}function ko(t){var e;switch(typeof t){case"string":e=Ae().stringClass;break;case"number":var n;(t|0)===t?n=Ae().intClass:n=Ae().doubleClass,e=n;break;case"boolean":e=Ae().booleanClass;break;case"function":var r=Ae();e=r.functionClass(t.length);break;default:var a;if(Vc(t))a=Ae().booleanArrayClass;else if(Jc(t))a=Ae().charArrayClass;else if(Qc(t))a=Ae().byteArrayClass;else if(Gc(t))a=Ae().shortArrayClass;else if(Yc(t))a=Ae().intArrayClass;else if(Zc(t))a=Ae().longArrayClass;else if(Xc(t))a=Ae().floatArrayClass;else if(th(t))a=Ae().doubleArrayClass;else if(at(t,Ia))a=Y0(Ia);else if(Xi(t))a=Ae().arrayClass;else{var o=Object.getPrototypeOf(t).constructor,s;if(o===Object)s=Ae().anyClass;else if(o===Error)s=Ae().throwableClass;else{var l=o;s=_u(l)}a=s}e=a;break}return e}function Oh(t){t.lastIndex=0}function Z0(t,e){return zh(e),e}function jh(t){return Z0(t,et(i(Sn)))}function zh(t){return Sn.call(t,""),t}function mu(){return zh(et(i(Sn)))}function Sn(t){this.y5_1=t!==void 0?t:""}i(Sn).a=function(){return this.y5_1.length};i(Sn).b=function(t){var e=this.y5_1,n;if(0<=t&&t<=(R(e)-1|0))n=j(e,t);else throw Wn("index: "+t+", length: "+this.a()+"}");return n};i(Sn).c=function(t,e){return this.y5_1.substring(t,e)};i(Sn).b6=function(t){return this.y5_1=this.y5_1+Gt(t),this};i(Sn).e=function(t){return this.y5_1=this.y5_1+Yt(t),this};i(Sn).z5=function(t){return this.y5_1=this.y5_1+Yt(t),this};i(Sn).a6=function(t){var e=this,n=this.y5_1;return e.y5_1=n+(t==null?"null":t),this};i(Sn).toString=function(){return this.y5_1};function If(t){var e=Gt(t).toUpperCase();return e.length>1?t:j(e,0)}function Fh(t){return b_(t)}function qf(t,e){return t.toString(Dh(e))}function Dh(t){if(!(2<=t&&t<=36))throw Kt("radix "+t+" was not in valid range 2..36");return t}function tm(t){var e=ld(t),n;return e==null?ud(t):n=e,n}function Af(t,e){var n=qu(t,e),r;return n==null?ud(t):r=n,r}function em(t,e){var n=oe(t,48)>=0&&oe(t,57)<=0?va(t,48):oe(t,65)>=0&&oe(t,90)<=0?va(t,65)+10|0:oe(t,97)>=0&&oe(t,122)<=0?va(t,97)+10|0:oe(t,128)<0?-1:oe(t,65313)>=0&&oe(t,65338)<=0?va(t,65313)+10|0:oe(t,65345)>=0&&oe(t,65370)<=0?va(t,65345)+10|0:y_(t);return n>=e?-1:n}function nm(t,e){return Ya.call(e,t,Nu()),e}function rm(t){return nm(t,et(i(Ya)))}function Bh(){Gs=this,this.o8_1=new RegExp("[\\\\^$*+?.()|[\\]{}]","g"),this.p8_1=new RegExp("[\\\\$]","g"),this.q8_1=new RegExp("\\$","g")}var Gs;function im(){return Gs==null&&new Bh,Gs}function Ya(t,e){im(),this.r8_1=t,this.s8_1=ap(e),this.t8_1=new RegExp(t,am(e,"gu")),this.u8_1=null,this.v8_1=null}i(Ya).w8=function(t){Oh(this.t8_1);var e=this.t8_1.exec(F(t));return e!=null&&e.index===0&&this.t8_1.lastIndex===R(t)};i(Ya).toString=function(){return this.t8_1.toString()};function am(t,e){return In(t,"",e,u,u,u,om)}function om(t){return t.z8_1}function sm(t,e){return Om(t,e)}function gu(t){this.a9_1=t}i(gu).b9=function(t,e){return this.a9_1(t,e)};i(gu).compare=function(t,e){return this.b9(t,e)};function yu(t,e,n){return n=n===u?!1:n,n?jo(t,0,e,0,e.length,n):t.startsWith(e,0)}function Kh(t,e,n){return n=n===u?!1:n,n?jo(t,t.length-e.length|0,e,0,e.length,n):t.endsWith(e)}function lm(t,e,n,r){return r=r===u?!1:r,r?jo(t,n,e,0,e.length,r):t.startsWith(e,n)}function jo(t,e,n,r,a,o){return o=o===u?!1:o,ro(t,e,n,r,a,o)}function um(t){return function(e){return e===t?"(this Collection)":Yt(e)}}function Cr(){}i(Cr).j1=function(t){var e;t:{var n;if(at(this,It)?n=this.l():n=!1,n){e=!1;break t}for(var r=this.h();r.i();){var a=r.j();if(q(a,t)){e=!0;break t}}e=!1}return e};i(Cr).k1=function(t){var e;t:{var n;if(at(t,It)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j();if(!this.j1(a)){e=!1;break t}}e=!0}return e};i(Cr).l=function(){return this.m()===0};i(Cr).toString=function(){return In(this,", ","[","]",u,u,um(this))};i(Cr).toArray=function(){return rh(this)};function Jr(){this.n2_1=2147483639}i(Jr).l3=function(t,e){if(t<0||t>=e)throw Wn("index: "+t+", size: "+e)};i(Jr).c3=function(t,e){if(t<0||t>e)throw Wn("index: "+t+", size: "+e)};i(Jr).o2=function(t,e,n){if(t<0||e>n)throw Wn("fromIndex: "+t+", toIndex: "+e+", size: "+n);if(t>e)throw Kt("fromIndex: "+t+" > toIndex: "+e)};i(Jr).d5=function(t,e){var n=t+(t>>1)|0;return(n-e|0)<0&&(n=e),(n-2147483639|0)>0&&(n=e>2147483639?2147483647:2147483639),n};i(Jr).p3=function(t){for(var e=1,n=t.h();n.i();){var r=n.j(),a=wt(31,e),o=r==null?null:ct(r);e=a+(o==null?0:o)|0}return e};i(Jr).o3=function(t,e){if(t.m()!==e.m())return!1;for(var n=e.h(),r=t.h();r.i();){var a=r.j(),o=n.j();if(!q(a,o))return!1}return!0};var _n;function Tf(t,e){return e===t?"(this Map)":Yt(e)}function Uh(t,e){var n;t:{for(var r=t.u1().h();r.i();){var a=r.j();if(q(a.q1(),e)){n=a;break t}}n=null}return n}function fm(){}function cm(t){return function(e){return t.c9(e)}}function kn(){this.v3_1=null,this.w3_1=null}i(kn).s1=function(t){return Uh(this,t)!=null};i(kn).x3=function(t){if(!(t!=null&&at(t,yr)))return!1;var e=t.q1(),n=t.r1(),r=(at(this,wr)?this:$()).t1(e);if(!q(n,r))return!1;var a;return r==null?a=!(at(this,wr)?this:$()).s1(e):a=!1,!a};i(kn).equals=function(t){if(t===this)return!0;if(!(t!=null&&at(t,wr))||this.m()!==t.m())return!1;var e;t:{var n=t.u1(),r;if(at(n,It)?r=n.l():r=!1,r){e=!0;break t}for(var a=n.h();a.i();){var o=a.j();if(!this.x3(o)){e=!1;break t}}e=!0}return e};i(kn).t1=function(t){var e=Uh(this,t);return e==null?null:e.r1()};i(kn).hashCode=function(){return ct(this.u1())};i(kn).m=function(){return this.u1().m()};i(kn).toString=function(){var t=this.u1();return In(t,", ","{","}",u,u,cm(this))};i(kn).c9=function(t){return Tf(this,t.q1())+"="+Tf(this,t.r1())};function zo(){}i(zo).z3=function(t){for(var e=0,n=t.h();n.i();){var r=n.j(),a=e,o=r==null?null:ct(r);e=a+(o==null?0:o)|0}return e};i(zo).y3=function(t,e){return t.m()!==e.m()?!1:t.k1(e)};var wu;function hm(t){if(t.l())return[];for(var e=t.m(),n=nr(Array(e),null),r=t.h(),a=0;r.i();){var o=a;a=o+1|0,n[o]=r.j()}return n}function bu(t){return t.length>0?Yl(t):oa()}function Wh(t){return t.length===0?Tt():Ha(new Qn(t,!0))}function oa(){return _m()}function Xa(t){return t.m()-1|0}function dm(t,e,n,r){n=n===u?0:n,r=r===u?t.m():r,mm(t.m(),n,r);for(var a=n,o=r-1|0;a<=o;){var s=(a+o|0)>>>1|0,l=t.k(s),c=Yo(l,e);if(c<0)a=s+1|0;else if(c>0)o=s-1|0;else return s}return-(a+1|0)|0}function vm(t){return t.length===0?Tt():Ha(new Qn(t,!0))}function pm(t){switch(t.m()){case 0:return oa();case 1:return Ua(t.k(0));default:return t}}function Qn(t,e){this.d9_1=t,this.e9_1=e}i(Qn).m=function(){return this.d9_1.length};i(Qn).l=function(){return this.d9_1.length===0};i(Qn).f9=function(t){return Rs(this.d9_1,t)};i(Qn).g9=function(t){var e;t:{var n;if(at(t,It)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j();if(!this.f9(a)){e=!1;break t}}e=!0}return e};i(Qn).k1=function(t){return this.g9(t)};i(Qn).h=function(){return $c(this.d9_1)};function he(){Js=this,this.h9_1=new _t(-1478467534,-1720727600)}i(he).equals=function(t){var e;return t!=null&&at(t,Vn)?e=t.l():e=!1,e};i(he).hashCode=function(){return 1};i(he).toString=function(){return"[]"};i(he).m=function(){return 0};i(he).l=function(){return!0};i(he).i9=function(t){return!1};i(he).j1=function(t){return!1};i(he).j9=function(t){return t.l()};i(he).k1=function(t){return this.j9(t)};i(he).k=function(t){throw Wn("Empty list doesn't contain element at index "+t+".")};i(he).k9=function(t){return-1};i(he).l1=function(t){return-1};i(he).l9=function(t){return-1};i(he).m1=function(t){return-1};i(he).h=function(){return sa};i(he).n1=function(){return sa};i(he).o1=function(t){if(t!==0)throw Wn("Index: "+t);return sa};i(he).p1=function(t,e){if(t===0&&e===0)return this;throw Wn("fromIndex: "+t+", toIndex: "+e)};var Js;function _m(){return Js==null&&new he,Js}function mm(t,e,n){if(e>n)throw Kt("fromIndex ("+e+") is greater than toIndex ("+n+").");if(e<0)throw Wn("fromIndex ("+e+") is less than zero.");if(n>t)throw Wn("toIndex ("+n+") is greater than size ("+t+").")}function Si(){}i(Si).i=function(){return!1};i(Si).d3=function(){return!1};i(Si).e3=function(){return 0};i(Si).j=function(){throw Ee()};i(Si).f3=function(){throw Ee()};var sa;function gm(t){return new Qn(t,!1)}function ym(){throw Ph("Index overflow has happened.")}function ai(t,e){this.v_1=t,this.w_1=e}i(ai).toString=function(){return"IndexedValue(index="+this.v_1+", value="+Yt(this.w_1)+")"};i(ai).hashCode=function(){var t=this.v_1;return t=wt(t,31)+(this.w_1==null?0:ct(this.w_1))|0,t};i(ai).equals=function(t){if(this===t)return!0;if(!(t instanceof ai))return!1;var e=t instanceof ai?t:$();return!(this.v_1!==e.v_1||!q(this.w_1,e.w_1))};function Ys(t,e){var n;return at(t,It)?n=t.m():n=e,n}function wm(t,e){return t.q(Yl(e))}function Fo(t,e){if(at(e,It))return t.q(e);for(var n=!1,r=e.h();r.i();){var a=r.j();t.f(a)&&(n=!0)}return n}function Do(){}i(Do).j=function(){return this.m9()};function Za(){}i(Za).n9=function(){return this.o9()};i(Za).j=function(){return new ot(this.n9())};function to(t){return new ku(t)}function xr(){}function bm(t){var e=new Sr;return e.t9_1=u0(t,e,e),e}function km(t){if(t.i())return t.j();throw Ee()}function Hh(t){switch(t.q9_1){case 4:return Ee();case 5:return Ur("Iterator has failed.");default:return Ur("Unexpected state of the iterator: "+t.q9_1)}}function Sr(){xr.call(this),this.q9_1=0,this.r9_1=null,this.s9_1=null,this.t9_1=null}i(Sr).i=function(){for(;;){switch(this.q9_1){case 0:break;case 1:if(Re(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 Hh(this)}this.q9_1=5;var t=Re(this.t9_1);this.t9_1=null;var e=ht;t.t6(e)}};i(Sr).j=function(){switch(this.q9_1){case 0:case 1:return km(this);case 2:return this.q9_1=1,Re(this.s9_1).j();case 3:this.q9_1=0;var t=this.r9_1,e=t==null||t!=null?t:$();return this.r9_1=null,e;default:throw Hh(this)}};i(Sr).p9=function(t,e){return this.r9_1=t,this.q9_1=3,this.t9_1=e,$r()};i(Sr).u9=function(t){Bm(t);var e=t;e==null||e!=null||$(),this.q9_1=4};i(Sr).t6=function(t){return this.u9(t)};i(Sr).o6=function(){return Em()};function ku(t){this.v9_1=t}i(ku).h=function(){return bm(this.v9_1)};function $i(){return Go}function Bo(t){this.x9_1=t,this.w9_1=t.y9_1.h()}i(Bo).j=function(){return this.x9_1.z9_1(this.w9_1.j())};i(Bo).i=function(){return this.w9_1.i()};function Cu(t,e){this.y9_1=t,this.z9_1=e}i(Cu).h=function(){return new Bo(this)};function Vh(t){for(;t.aa_1.i();){var e=t.aa_1.j();if(t.da_1.ga_1(e)===t.da_1.fa_1)return t.ca_1=e,t.ba_1=1,ht}t.ba_1=0}function Ko(t){this.da_1=t,this.aa_1=t.ea_1.h(),this.ba_1=-1,this.ca_1=null}i(Ko).j=function(){if(this.ba_1===-1&&Vh(this),this.ba_1===0)throw Ee();var t=this.ca_1;return this.ca_1=null,this.ba_1=-1,t==null||t!=null?t:$()};i(Ko).i=function(){return this.ba_1===-1&&Vh(this),this.ba_1===1};function xu(t,e,n){e=e===u?!0:e,this.ea_1=t,this.fa_1=e,this.ga_1=n}i(xu).h=function(){return new Ko(this)};function Uo(t){this.ha_1=t.ja_1.h(),this.ia_1=0}i(Uo).j=function(){var t=this.ia_1;return this.ia_1=t+1|0,new ai(Ao(t),this.ha_1.j())};i(Uo).i=function(){return this.ha_1.i()};function Su(t){this.ja_1=t}i(Su).h=function(){return new Uo(this)};function Ei(){}function Wo(t){this.ka_1=t.na_1,this.la_1=t.ma_1.h()}i(Wo).j=function(){if(this.ka_1===0)throw Ee();return this.ka_1=this.ka_1-1|0,this.la_1.j()};i(Wo).i=function(){return this.ka_1>0&&this.la_1.i()};function ci(t,e){if(this.ma_1=t,this.na_1=e,!(this.na_1>=0)){var n="count must be non-negative, but was "+this.na_1+".";throw Kt(F(n))}}i(ci).u=function(t){return t>=this.na_1?$i():new Wr(this.ma_1,t,this.na_1)};i(ci).t=function(t){return t>=this.na_1?this:new ci(this.ma_1,t)};i(ci).h=function(){return new Wo(this)};function Qh(t){if(t.oa_1.i()){var e=t.oa_1.j();if(t.ra_1.ta_1(e))return t.pa_1=1,t.qa_1=e,ht}t.pa_1=0}function Ho(t){this.ra_1=t,this.oa_1=t.sa_1.h(),this.pa_1=-1,this.qa_1=null}i(Ho).j=function(){if(this.pa_1===-1&&Qh(this),this.pa_1===0)throw Ee();var t=this.qa_1,e=t==null||t!=null?t:$();return this.qa_1=null,this.pa_1=-1,e};i(Ho).i=function(){return this.pa_1===-1&&Qh(this),this.pa_1===1};function $u(t,e){this.sa_1=t,this.ta_1=e}i($u).h=function(){return new Ho(this)};function Gh(t){for(;t.va_1>0&&t.ua_1.i();)t.ua_1.j(),t.va_1=t.va_1-1|0}function Vo(t){this.ua_1=t.wa_1.h(),this.va_1=t.xa_1}i(Vo).j=function(){return Gh(this),this.ua_1.j()};i(Vo).i=function(){return Gh(this),this.ua_1.i()};function oi(t,e){if(this.wa_1=t,this.xa_1=e,!(this.xa_1>=0)){var n="count must be non-negative, but was "+this.xa_1+".";throw Kt(F(n))}}i(oi).u=function(t){var e=this.xa_1+t|0;return e<0?new oi(this,t):new oi(this.wa_1,e)};i(oi).t=function(t){var e=this.xa_1+t|0;return e<0?new ci(this,t):new Wr(this.wa_1,this.xa_1,e)};i(oi).h=function(){return new Vo(this)};function Jh(t){for(;t.ya_1.i();){var e=t.ya_1.j();if(!t.bb_1.db_1(e))return t.ab_1=e,t.za_1=1,ht}t.za_1=0}function Qo(t){this.bb_1=t,this.ya_1=t.cb_1.h(),this.za_1=-1,this.ab_1=null}i(Qo).j=function(){if(this.za_1===-1&&Jh(this),this.za_1===1){var t=this.ab_1,e=t==null||t!=null?t:$();return this.ab_1=null,this.za_1=0,e}return this.ya_1.j()};i(Qo).i=function(){return this.za_1===-1&&Jh(this),this.za_1===1||this.ya_1.i()};function Eu(t,e){this.cb_1=t,this.db_1=e}i(Eu).h=function(){return new Qo(this)};function eo(){}i(eo).h=function(){return sa};i(eo).u=function(t){return Go};i(eo).t=function(t){return Go};var Go;function Yh(t){for(;t.fb_1<t.gb_1.ib_1&&t.eb_1.i();)t.eb_1.j(),t.fb_1=t.fb_1+1|0}function Xh(t){return t.jb_1-t.ib_1|0}function Jo(t){this.gb_1=t,this.eb_1=t.hb_1.h(),this.fb_1=0}i(Jo).i=function(){return Yh(this),this.fb_1<this.gb_1.jb_1&&this.eb_1.i()};i(Jo).j=function(){if(Yh(this),this.fb_1>=this.gb_1.jb_1)throw Ee();return this.fb_1=this.fb_1+1|0,this.eb_1.j()};function Wr(t,e,n){if(this.hb_1=t,this.ib_1=e,this.jb_1=n,!(this.ib_1>=0)){var r="startIndex should be non-negative, but is "+this.ib_1;throw Kt(F(r))}if(!(this.jb_1>=0)){var a="endIndex should be non-negative, but is "+this.jb_1;throw Kt(F(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 Kt(F(o))}}i(Wr).u=function(t){return t>=Xh(this)?$i():new Wr(this.hb_1,this.ib_1+t|0,this.jb_1)};i(Wr).t=function(t){return t>=Xh(this)?this:new Wr(this.hb_1,this.ib_1,this.ib_1+t|0)};i(Wr).h=function(){return new Jo(this)};function Nu(){return Sm()}function Cm(t){return Zv(t,B_(t.length))}function xm(t){switch(t.m()){case 0:return Nu();case 1:return ih(t.h().j());default:return t}}function Gn(){Xs=this,this.kb_1=new _t(1993859828,793161749)}i(Gn).equals=function(t){var e;return t!=null&&at(t,Vr)?e=t.l():e=!1,e};i(Gn).hashCode=function(){return 0};i(Gn).toString=function(){return"[]"};i(Gn).m=function(){return 0};i(Gn).l=function(){return!0};i(Gn).j9=function(t){return t.l()};i(Gn).k1=function(t){return this.j9(t)};i(Gn).h=function(){return sa};var Xs;function Sm(){return Xs==null&&new Gn,Xs}function Yo(t,e){return t===e?0:t==null?-1:e==null?1:Pc(t!=null&&d_(t)?t:$(),e)}function la(){}function Zh(){}var td;function $m(){}function no(){Zs=this,this.lb_1=new _t(0,0)}i(no).u6=function(t){return null};i(no).hashCode=function(){return 0};i(no).toString=function(){return"EmptyCoroutineContext"};var Zs;function Em(){return Zs==null&&new no,Zs}function $r(){return Im()}var ed,Mf;function Nm(){if(Mf)return ht;Mf=!0,ed=new co("COROUTINE_SUSPENDED",0),new co("UNDECIDED",1),new co("RESUMED",2)}function co(t,e){br.call(this,t,e)}function Im(){return Nm(),ed}function nd(t,e,n){var r;if(n>0)r=t>=e?e:e-Pf(e,t,n)|0;else if(n<0)r=t<=e?e:e+Pf(t,e,-n|0)|0;else throw Kt("Step is zero.");return r}function Pf(t,e,n){return Ns(Ns(t,n)-Ns(e,n)|0,n)}function Ns(t,e){var n=t%e|0;return n>=0?n:n+e|0}function rd(){tl=this,this.mb_1=new Hr(1,0)}var tl;function qm(){return tl==null&&new rd,tl}function Hr(t,e){qm(),Hn.call(this,t,e,1)}i(Hr).l=function(){return this.qb_1>this.rb_1};i(Hr).equals=function(t){var e;return t instanceof Hr?e=this.l()&&t.l()||this.qb_1===t.qb_1&&this.rb_1===t.rb_1:e=!1,e};i(Hr).hashCode=function(){return this.l()?-1:wt(31,this.qb_1)+this.rb_1|0};i(Hr).toString=function(){return""+this.qb_1+".."+this.rb_1};function id(){el=this,this.tb_1=new Er(1,0)}var el;function Am(){return el==null&&new id,el}function Er(t,e){Am(),Nr.call(this,t,e,1)}i(Er).xb=function(t){return oe(this.yb_1,t)<=0&&oe(t,this.zb_1)<=0};i(Er).l=function(){return oe(this.yb_1,this.zb_1)>0};i(Er).equals=function(t){var e;return t instanceof Er?e=this.l()&&t.l()||this.yb_1===t.yb_1&&this.zb_1===t.zb_1:e=!1,e};i(Er).hashCode=function(){var t;if(this.l())t=-1;else{var e=this.yb_1,n=Fe(e),r=wt(31,n),a=this.zb_1;t=r+Fe(a)|0}return t};i(Er).toString=function(){return Gt(this.yb_1)+".."+Gt(this.zb_1)};function Xo(t,e,n){Do.call(this),this.bc_1=n,this.cc_1=e,this.dc_1=this.bc_1>0?t<=e:t>=e,this.ec_1=this.dc_1?t:this.cc_1}i(Xo).i=function(){return this.dc_1};i(Xo).m9=function(){var t=this.ec_1;if(t===this.cc_1){if(!this.dc_1)throw Ee();this.dc_1=!1}else this.ec_1=this.ec_1+this.bc_1|0;return t};function Zo(t,e,n){Za.call(this),this.fc_1=n;var r=this;r.gc_1=Fe(e),this.hc_1=this.fc_1>0?oe(t,e)<=0:oe(t,e)>=0;var a=this,o;this.hc_1?o=Fe(t):o=this.gc_1,a.ic_1=o}i(Zo).i=function(){return this.hc_1};i(Zo).o9=function(){var t=this.ic_1;if(t===this.gc_1){if(!this.hc_1)throw Ee();this.hc_1=!1}else this.ic_1=this.ic_1+this.fc_1|0;return $a(t)};function Iu(){}i(Iu).s=function(t,e,n){return new Hn(t,e,n)};var ad;function Hn(t,e,n){if(n===0)throw Kt("Step must be non-zero.");if(n===-2147483648)throw Kt("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.qb_1=t,this.rb_1=nd(t,e,n),this.sb_1=n}i(Hn).h=function(){return new Xo(this.qb_1,this.rb_1,this.sb_1)};i(Hn).l=function(){return this.sb_1>0?this.qb_1>this.rb_1:this.qb_1<this.rb_1};i(Hn).equals=function(t){var e;return t instanceof Hn?e=this.l()&&t.l()||this.qb_1===t.qb_1&&this.rb_1===t.rb_1&&this.sb_1===t.sb_1:e=!1,e};i(Hn).hashCode=function(){return this.l()?-1:wt(31,wt(31,this.qb_1)+this.rb_1|0)+this.sb_1|0};i(Hn).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 Tm(){}function Nr(t,e,n){if(n===0)throw Kt("Step must be non-zero.");if(n===-2147483648)throw Kt("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.yb_1=t;var r=this,a=Fe(t),o=Fe(e);r.zb_1=$a(nd(a,o,n)),this.ac_1=n}i(Nr).h=function(){return new Zo(this.yb_1,this.zb_1,this.ac_1)};i(Nr).l=function(){return this.ac_1>0?oe(this.yb_1,this.zb_1)>0:oe(this.yb_1,this.zb_1)<0};i(Nr).equals=function(t){var e;return t instanceof Nr?e=this.l()&&t.l()||this.yb_1===t.yb_1&&this.zb_1===t.zb_1&&this.ac_1===t.ac_1:e=!1,e};i(Nr).hashCode=function(){var t;if(this.l())t=-1;else{var e=this.yb_1,n=Fe(e),r=wt(31,n),a=this.zb_1,o=Fe(a);t=wt(31,r+o|0)+this.ac_1|0}return t};i(Nr).toString=function(){return this.ac_1>0?Gt(this.yb_1)+".."+Gt(this.zb_1)+" step "+this.ac_1:Gt(this.yb_1)+" downTo "+Gt(this.zb_1)+" step "+(-this.ac_1|0)};function od(t,e,n){n!=null?t.e(n(e)):e==null||me(e)?t.e(e):e instanceof ot?t.b6(e.x_1):t.e(Yt(e))}function sd(t,e,n){if(n=n===u?!1:n,t===e)return!0;if(!n)return!1;var r=If(t),a=If(e),o;if(r===a)o=!0;else{var s=Gt(r).toLowerCase(),l=j(s,0),c=Gt(a).toLowerCase();o=l===j(c,0)}return o}function ld(t){return qu(t,10)}function qu(t,e){Dh(e);var n=t.length;if(n===0)return null;var r,a,o,s=j(t,0);if(oe(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=em(j(t,d),e);if(v<0)return null;if(f<c)if(c===l){if(c=o/e|0,f<c)return null}else return null;if(f=wt(f,e),f<(o+v|0))return null;f=f-v|0}while(h<n);return a?f:-f|0}function ud(t){throw Th("Invalid number format: '"+t+"'")}function Au(t,e,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof t=="string",a?r=typeof e=="string":r=!1,r?yu(t,e):ro(t,0,e,0,R(e),n)}function Tu(t,e,n){n=n===u?!1:n;var r;return typeof e=="string"?r=nl(t,e,u,n)>=0:r=fd(t,e,0,R(t),n)>=0,r}function ts(t,e,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof t=="string",a?r=typeof e=="string":r=!1,r?Kh(t,e):ro(t,R(t)-R(e)|0,e,0,R(e),n)}function Mm(t){var e;t:{for(var n=0;n<R(t);){var r=j(t,n);if(n=n+1|0,!Fh(r)){e=!1;break t}}e=!0}return e}function Je(t,e,n){return n=n===u?!1:n,Rm(t,e,u,n)>=0}function es(t,e,n,r){r=r===u?!1:r;var a,o;return r?o=!1:o=typeof t=="string",o?a=typeof e=="string":a=!1,a?lm(t,e,n):ro(t,n,e,0,R(e),r)}function nl(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;return r?o=!0:o=typeof t!="string",o?a=fd(t,e,n,R(t),r):a=t.indexOf(e,n),a}function ro(t,e,n,r,a,o){if(r<0||e<0||e>(R(t)-a|0)||r>(R(n)-a|0))return!1;var s=0;if(s<a)do{var l=s;if(s=s+1|0,!sd(j(t,e+l|0),j(n,r+l|0),o))return!1}while(s<a);return!0}function fd(t,e,n,r,a,o){o=o===u?!1:o;var s=o?op(ba(n,cd(t)),go(r,0)):s_(go(n,0),ba(r,R(t))),l;if(typeof t=="string"?l=typeof e=="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,jo(e,0,t,d,R(e),a))return d}while(d!==f)}else{var v=s.qb_1,_=s.rb_1,m=s.sb_1;if(m>0&&v<=_||m<0&&_<=v)do{var g=v;if(v=v+m|0,ro(e,0,t,g,R(e),a))return g}while(g!==_)}return-1}function Pm(t){var e=0,n=R(t)-1|0,r=!1;t:for(;e<=n;){var a=r?n:e,o=Fh(j(t,a));if(!r)o?e=e+1|0:r=!0;else if(o)n=n-1|0;else break t}return cn(t,e,n+1|0)}function Rm(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;if(r?o=!0:o=typeof t!="string",o){var s=Sp([e]);a=Lm(t,s,n,r)}else{var l=Gt(e);a=t.indexOf(l,n)}return a}function cd(t){return R(t)-1|0}function Lm(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a;if(!r&&e.length===1?a=typeof t=="string":a=!1,a){var o=Gv(e),s=Gt(o);return t.indexOf(s,n)}var l=go(n,0),c=cd(t);if(l<=c)do{var f=l;l=l+1|0;var h=j(t,f),d;t:{for(var v=0,_=e.length;v<_;){var m=e[v];if(v=v+1|0,sd(m,h,r)){d=!0;break t}}d=!1}if(d)return f}while(f!==c);return-1}function Om(t,e){var n;if(t!=null&&typeof t=="string"?n=e!=null?typeof e=="string":!1:n=!1,n)return q(t,e);if(t===e)return!0;if(t==null||e==null||R(t)!==R(e))return!1;var r=0,a=R(t);if(r<a)do{var o=r;if(r=r+1|0,j(t,o)!==j(e,o))return!1}while(r<a);return!0}function io(t){this.jc_1=t,this.kc_1=ns}i(io).r1=function(){this.kc_1===ns&&(this.kc_1=Re(this.jc_1)(),this.jc_1=null);var t=this.kc_1;return t==null||t!=null?t:$()};i(io).lc=function(){return this.kc_1!==ns};i(io).toString=function(){return this.lc()?Yt(this.r1()):"Lazy value not initialized yet."};function hd(){}var ns;function jm(t){var e=t;return e instanceof Ir}function zm(t){var e;return t instanceof Ir?e=t.mc_1:e=null,e}function Fm(){}function Ir(t){this.mc_1=t}i(Ir).equals=function(t){var e;return t instanceof Ir?e=q(this.mc_1,t.mc_1):e=!1,e};i(Ir).hashCode=function(){return ct(this.mc_1)};i(Ir).toString=function(){return"Failure("+this.mc_1.toString()+")"};function Dm(t){return new Ir(t)}function Bm(t){var e=t;if(e instanceof Ir)throw t.mc_1}function rl(t){t=t===u?"An operation is not implemented.":t,y0(t,this),H(this,rl)}function An(t,e){this.nc_1=t,this.oc_1=e}i(An).toString=function(){return"("+Yt(this.nc_1)+", "+Yt(this.oc_1)+")"};i(An).pc=function(){return this.nc_1};i(An).qc=function(){return this.oc_1};i(An).hashCode=function(){var t=this.nc_1==null?0:ct(this.nc_1);return t=wt(t,31)+(this.oc_1==null?0:ct(this.oc_1))|0,t};i(An).equals=function(t){if(this===t)return!0;if(!(t instanceof An))return!1;var e=t instanceof An?t:$();return!(!q(this.nc_1,e.nc_1)||!q(this.oc_1,e.oc_1))};function Rf(t,e){return new An(t,e)}i(be).asJsReadonlyArrayView=dc;i($e).p4=Vv;i(he).asJsReadonlyArrayView=dc;ht=new zl;fo=null;Va=new _h;yh=new Zi;_n=new Jr;wu=new zo;sa=new Si;Go=new eo;td=new Zh;ad=new Iu;ns=new hd;var B=Math.imul;Ue(sn,"Stringify");function Mu(){return this.uc()-this.tc()|0}Ue(fs,"Position",u,u,[sn]);b(He,"Expression",u,u,[fs]);b(dt,"BinaryExpression",u,He);b(rs,"sam$kotlin_Comparator$0");ke(qa);b(Q,"CompareOperator",u,u,[sn]);st(Bn,"Equal",u,Q);st(or,"NotEqual",u,Q);st(sr,"Start",u,Q);st(lr,"NotStart",u,Q);st(ur,"Include",u,Q);st(fr,"NotInclude",u,Q);st(cr,"End",u,Q);st(hr,"NotEnd",u,Q);st(dr,"Less",u,Q);st(vr,"LessEqual",u,Q);st(pr,"More",u,Q);st(_r,"MoreEqual",u,Q);st(mr,"Matches",u,Q);st(gr,"NotMatches",u,Q);b(Ni,"ConnectExpression",u,u,[sn]);b(os,"sam$kotlin_Comparator$0");ke(Aa);b(Ce,"ConnectOperator",u,u,[sn]);st(Lr,"BeforeBrother",u,Ce);st(Or,"AfterBrother",u,Ce);st(jr,"Ancestor",u,Ce);st(zr,"Child",u,Ce);st(Fr,"Descendant",u,Ce);b(pe,"ConnectSegment",pe,u,[sn]);b(Te,"ConnectWrapper",u,u,[sn]);b(ee,"Context");b(zt,"SelectorCheckException",u,xn);b(en,"UnknownIdentifierException",u,zt);b(nn,"UnknownMemberException",u,zt);b(Ve,"UnknownIdentifierMethodException",u,zt);b(rn,"UnknownIdentifierMethodParamsException",u,zt);b(Qe,"UnknownMemberMethodException",u,zt);b(an,"UnknownMemberMethodParamsException",u,zt);b(ue,"MismatchParamTypeException",u,zt);b(Se,"MismatchExpressionTypeException",u,zt);b(on,"MismatchOperatorTypeException",u,zt);b(De,"FastQuery",u,u,[sn]);b(hn,"Id",u,De);b(dn,"Vid",u,De);b(vn,"Text",u,De);b(vt,"LogicalExpression",u,He);b(us,"sam$kotlin_Comparator$0");ke(Ta);b(Pn,"LogicalOperator",u,u,[sn]);st(Dr,"AndOperator",u,Pn);st(Br,"OrOperator",u,Pn);b(Be,"MatchOption",Be);b(ne,"NotExpression",u,He);b(Lt,"PolynomialExpression",Lt,Ni);b(Jt,"PositionImpl",u,u,[fs]);b(fe,"PropertySegment",u,u,[sn]);b(re,"PropertyWrapper",u,u,[sn]);ke(cs);b(Ne,"Selector",u,u,[sn]);b(ce,"SyntaxError",u,xn);ke(Fu);Ba(hi,Le,u,[1]);Ba(di,Le,u,[1]);Ba(vi,Le,u,[1]);Ba(pi,Le,u,[1]);Ba(_i,Le,u,[1]);b(Ct,"Transform");b(Me,"TupleExpression",u,Ni);b(ln,"PrimitiveType");st(si,"BooleanType",u,ln);st(li,"IntType",u,ln);st(ui,"StringType",u,ln);b(Ke,"ObjectType",u,ln);b(G,"MethodInfo",u,u,[sn]);b(nt,"PropInfo");b(Qt,"TypeInfo",u,u,[sn]);b(ie,"ValueExpression",u,u,[fs]);b(Oe,"Variable",u,ie);b($t,"Identifier",u,Oe);b(gt,"MemberExpression",u,Oe);b(Et,"CallExpression",u,Oe);b(Ye,"LiteralExpression",u,ie);b(Pe,"NullLiteral",u,Ye);b(_e,"BooleanLiteral",u,Ye);b(Xt,"IntLiteral",u,Ye);b(yt,"StringLiteral",u,Ye);b(Vt,"Parser");b(Ot,"ParserResult");st(oo,"ParserSet");b(Xr,"DefaultTypeInfo");function dt(t,e,n,r,a){He.call(this),this.rc_1=t,this.sc_1=e,this.left=n,this.operator=r,this.right=a}i(dt).tc=function(){return this.rc_1};i(dt).uc=function(){return this.sc_1};i(dt).vc=function(){return this.left};i(dt).wc=function(){return this.operator};i(dt).xc=function(){return this.right};i(dt).match=function(t,e){return this.operator.value.ad(t,e,this.left,this.right)};i(dt).bd=function(){return[this]};i(dt).stringify=function(){return this.left.stringify()+this.operator.stringify()+this.right.stringify()};i(dt).cd=function(){return rr([this.left.properties,this.right.properties])};i(dt).dd=function(){return rr([this.left.methods,this.right.methods])};i(dt).pc=function(){return this.rc_1};i(dt).qc=function(){return this.sc_1};i(dt).ed=function(){return this.left};i(dt).fd=function(){return this.operator};i(dt).gd=function(){return this.right};i(dt).hd=function(t,e,n,r,a){return new dt(t,e,n,r,a)};i(dt).copy=function(t,e,n,r,a,o){return t=t===u?this.rc_1:t,e=e===u?this.sc_1:e,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.hd(t,e,n,r,a)};i(dt).toString=function(){return"BinaryExpression(start="+this.rc_1+", end="+this.sc_1+", left="+F(this.left)+", operator="+this.operator.toString()+", right="+F(this.right)+")"};i(dt).hashCode=function(){var t=this.rc_1;return t=B(t,31)+this.sc_1|0,t=B(t,31)+ct(this.left)|0,t=B(t,31)+this.operator.hashCode()|0,t=B(t,31)+ct(this.right)|0,t};i(dt).equals=function(t){if(this===t)return!0;if(!(t instanceof dt))return!1;var e=t instanceof dt?t:$();return!(this.rc_1!==e.rc_1||this.sc_1!==e.sc_1||!q(this.left,e.left)||!this.operator.equals(e.operator)||!q(this.right,e.right))};function Km(t,e,n){if(t===n)return!0;if(R(t)!==R(n))return!1;var r=R(t)-1|0;if(0<=r)do{var a=r;if(r=r+-1|0,j(t,a)!==j(n,a))return!1}while(0<=r);return!0}function rs(t){this.id_1=t}i(rs).b9=function(t,e){return this.id_1(t,e)};i(rs).compare=function(t,e){return this.b9(t,e)};function Um(){var t=bu([ar(),dd(),Yr(),vd(),Pu(),pd(),Ru(),_d(),ao(),md(),gd(),yd(),as(),Lu()]),e=Wm,n=new rs(e),r=Ul(t,n);return bn(r)}function Wm(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Yo(n,r)}function qa(){il=this;var t=this;t.jd_1=Na(Um)}i(qa).kd=function(){var t=this.jd_1;return Hm(),t.r1()};var il;function is(){return il==null&&new qa,il}function Bn(){al=this,Q.call(this,"=")}i(Bn).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e);return this.compare(a,o)};i(Bn).od=function(t,e){return!0};i(Bn).compare=function(t,e){var n,r;return t!=null&&me(t)?r=e!=null?me(e):!1:r=!1,r?n=Km(t,is(),e):n=q(t,e),n};i(Bn).toString=function(){return"Equal"};i(Bn).hashCode=function(){return 717536815};i(Bn).equals=function(t){return this===t?!0:t instanceof Bn?(t instanceof Bn||$(),!0):!1};var al;function ar(){return al==null&&new Bn,al}function or(){ol=this,Q.call(this,"!=")}i(or).ad=function(t,e,n,r){return!ar().ad(t,e,n,r)};i(or).od=function(t,e){return!0};i(or).toString=function(){return"NotEqual"};i(or).hashCode=function(){return 1058184006};i(or).equals=function(t){return this===t?!0:t instanceof or?(t instanceof or||$(),!0):!1};var ol;function dd(){return ol==null&&new or,ol}function sr(){sl=this,Q.call(this,"^=")}i(sr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&me(a)?l=o!=null?me(o):!1:l=!1,l?s=Au(a,o):s=!1,s};i(sr).od=function(t,e){var n,r;if(t instanceof yt?r=!0:r=t instanceof Oe,r){var a;e instanceof yt?a=!0:a=e instanceof Oe,n=a}else n=!1;return n};i(sr).toString=function(){return"Start"};i(sr).hashCode=function(){return 730536797};i(sr).equals=function(t){return this===t?!0:t instanceof sr?(t instanceof sr||$(),!0):!1};var sl;function Yr(){return sl==null&&new sr,sl}function lr(){ll=this,Q.call(this,"!^=")}i(lr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&me(a)?l=o!=null?me(o):!1:l=!1,l?s=!Au(a,o):s=!1,s};i(lr).od=function(t,e){return Yr().od(t,e)};i(lr).toString=function(){return"NotStart"};i(lr).hashCode=function(){return 1071183988};i(lr).equals=function(t){return this===t?!0:t instanceof lr?(t instanceof lr||$(),!0):!1};var ll;function vd(){return ll==null&&new lr,ll}function ur(){ul=this,Q.call(this,"*=")}i(ur).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&me(a)?l=o!=null?me(o):!1:l=!1,l?s=Tu(a,o):s=!1,s};i(ur).od=function(t,e){return Yr().od(t,e)};i(ur).toString=function(){return"Include"};i(ur).hashCode=function(){return 1510988003};i(ur).equals=function(t){return this===t?!0:t instanceof ur?(t instanceof ur||$(),!0):!1};var ul;function Pu(){return ul==null&&new ur,ul}function fr(){fl=this,Q.call(this,"!*=")}i(fr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&me(a)?l=o!=null?me(o):!1:l=!1,l?s=!Tu(a,o):s=!1,s};i(fr).od=function(t,e){return Yr().od(t,e)};i(fr).toString=function(){return"NotInclude"};i(fr).hashCode=function(){return-1839543238};i(fr).equals=function(t){return this===t?!0:t instanceof fr?(t instanceof fr||$(),!0):!1};var fl;function pd(){return fl==null&&new fr,fl}function cr(){cl=this,Q.call(this,"$=")}i(cr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&me(a)?l=o!=null?me(o):!1:l=!1,l?s=ts(a,o):s=!1,s};i(cr).od=function(t,e){return Yr().od(t,e)};i(cr).toString=function(){return"End"};i(cr).hashCode=function(){return 1234264726};i(cr).equals=function(t){return this===t?!0:t instanceof cr?(t instanceof cr||$(),!0):!1};var cl;function Ru(){return cl==null&&new cr,cl}function hr(){hl=this,Q.call(this,"!$=")}i(hr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&me(a)?l=o!=null?me(o):!1:l=!1,l?s=!ts(a,o):s=!1,s};i(hr).od=function(t,e){return Yr().od(t,e)};i(hr).toString=function(){return"NotEnd"};i(hr).hashCode=function(){return 1024563565};i(hr).equals=function(t){return this===t?!0:t instanceof hr?(t instanceof hr||$(),!0):!1};var hl;function _d(){return hl==null&&new hr,hl}function dr(){dl=this,Q.call(this,"<")}i(dr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),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(dr).od=function(t,e){var n,r;if(t instanceof Oe?r=!0:r=t instanceof Xt,r){var a;e instanceof Xt?a=!0:a=e instanceof Oe,n=a}else n=!1;return n};i(dr).toString=function(){return"Less"};i(dr).hashCode=function(){return-392298690};i(dr).equals=function(t){return this===t?!0:t instanceof dr?(t instanceof dr||$(),!0):!1};var dl;function ao(){return dl==null&&new dr,dl}function vr(){vl=this,Q.call(this,"<=")}i(vr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),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(vr).od=function(t,e){return ao().od(t,e)};i(vr).toString=function(){return"LessEqual"};i(vr).hashCode=function(){return-2095624554};i(vr).equals=function(t){return this===t?!0:t instanceof vr?(t instanceof vr||$(),!0):!1};var vl;function md(){return vl==null&&new vr,vl}function pr(){pl=this,Q.call(this,">")}i(pr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),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(pr).od=function(t,e){return ao().od(t,e)};i(pr).toString=function(){return"More"};i(pr).hashCode=function(){return-392259334};i(pr).equals=function(t){return this===t?!0:t instanceof pr?(t instanceof pr||$(),!0):!1};var pl;function gd(){return pl==null&&new pr,pl}function _r(){_l=this,Q.call(this,">=")}i(_r).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),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(_r).od=function(t,e){return ao().od(t,e)};i(_r).toString=function(){return"MoreEqual"};i(_r).hashCode=function(){return-648189350};i(_r).equals=function(t){return this===t?!0:t instanceof _r?(t instanceof _r||$(),!0):!1};var _l;function yd(){return _l==null&&new _r,_l}function mr(){ml=this,Q.call(this,"~=")}i(mr).ad=function(t,e,n,r){var a=n.nd(t,e),o,s;return a!=null&&me(a)?s=r instanceof yt:s=!1,s?o=r.xd_1(a):o=!1,o};i(mr).od=function(t,e){var n;if(t instanceof Oe){var r;e instanceof yt?r=e.wd_1!=null:r=!1,n=r}else n=!1;return n};i(mr).toString=function(){return"Matches"};i(mr).hashCode=function(){return 409275758};i(mr).equals=function(t){return this===t?!0:t instanceof mr?(t instanceof mr||$(),!0):!1};var ml;function as(){return ml==null&&new mr,ml}function gr(){gl=this,Q.call(this,"!~=")}i(gr).ad=function(t,e,n,r){var a=n.nd(t,e),o,s;return a!=null&&me(a)?s=r instanceof yt:s=!1,s?o=!r.xd_1(a):o=!1,o};i(gr).od=function(t,e){return as().od(t,e)};i(gr).toString=function(){return"NotMatches"};i(gr).hashCode=function(){return 1353711813};i(gr).equals=function(t){return this===t?!0:t instanceof gr?(t instanceof gr||$(),!0):!1};var gl;function Lu(){return gl==null&&new gr,gl}function Q(t){is(),this.key=t}i(Q).q1=function(){return this.key};i(Q).stringify=function(){return this.key};function Hm(){return Ka("allSubClasses",1,Oo,function(t){return t.allSubClasses},null)}function Ni(){}function os(t){this.ae_1=t}i(os).b9=function(t,e){return this.ae_1(t,e)};i(os).compare=function(t,e){return this.b9(t,e)};function Vm(){var t=bu([wd(),bd(),Co(),kd(),ls()]),e=Qm,n=new os(e);return Ul(t,n)}function Qm(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Yo(n,r)}function Aa(){yl=this;var t=this;t.be_1=Na(Vm)}i(Aa).kd=function(){var t=this.be_1;return Gm(),t.r1()};var yl;function ss(){return yl==null&&new Aa,yl}function Lr(){wl=this,Ce.call(this,"+")}i(Lr).ce=function(t,e,n){return e.traverseBeforeBrothers(t,n)};i(Lr).toString=function(){return"BeforeBrother"};i(Lr).hashCode=function(){return 1632618113};i(Lr).equals=function(t){return this===t?!0:t instanceof Lr?(t instanceof Lr||$(),!0):!1};var wl;function wd(){return wl==null&&new Lr,wl}function Or(){bl=this,Ce.call(this,"-")}i(Or).ce=function(t,e,n){return e.traverseAfterBrothers(t,n)};i(Or).toString=function(){return"AfterBrother"};i(Or).hashCode=function(){return 1215887620};i(Or).equals=function(t){return this===t?!0:t instanceof Or?(t instanceof Or||$(),!0):!1};var bl;function bd(){return bl==null&&new Or,bl}function jr(){kl=this,Ce.call(this,">")}i(jr).ce=function(t,e,n){return e.traverseAncestors(t,n)};i(jr).toString=function(){return"Ancestor"};i(jr).hashCode=function(){return 736770963};i(jr).equals=function(t){return this===t?!0:t instanceof jr?(t instanceof jr||$(),!0):!1};var kl;function Co(){return kl==null&&new jr,kl}function zr(){Cl=this,Ce.call(this,"<")}i(zr).ce=function(t,e,n){return e.traverseChildren(t,n)};i(zr).toString=function(){return"Child"};i(zr).hashCode=function(){return-1105093796};i(zr).equals=function(t){return this===t?!0:t instanceof zr?(t instanceof zr||$(),!0):!1};var Cl;function kd(){return Cl==null&&new zr,Cl}function Fr(){xl=this,Ce.call(this,"<<")}i(Fr).ce=function(t,e,n){return e.traverseDescendants(t,n)};i(Fr).toString=function(){return"Descendant"};i(Fr).hashCode=function(){return 2093403837};i(Fr).equals=function(t){return this===t?!0:t instanceof Fr?(t instanceof Fr||$(),!0):!1};var xl;function ls(){return xl==null&&new Fr,xl}function Ce(t){ss(),this.key=t}i(Ce).q1=function(){return this.key};i(Ce).stringify=function(){return this.key};function Gm(){return Ka("allSubClasses",1,Oo,function(t){return t.allSubClasses},null)}function pe(t,e){t=t===u?Co():t,e=e===u?new Lt:e,this.operator=t,this.connectExpression=e;var n=this,r,a,o;if(q(this.operator,Co())){var s=this.connectExpression;o=s instanceof Lt}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(q(this.operator,ls())){var d=this.connectExpression;h=d instanceof Lt}else h=!1;h?f=this.connectExpression.a===1:f=!1,f?c=this.connectExpression.b===0:c=!1,l.isMatchAnyDescendant=c}i(pe).wc=function(){return this.operator};i(pe).he=function(){return this.connectExpression};i(pe).stringify=function(){return this.isMatchAnyAncestor?"":this.operator.stringify()+this.connectExpression.stringify()};i(pe).ie=function(t,e){return this.operator.ce(t,e,this.connectExpression)};i(pe).je=function(){return this.isMatchAnyAncestor};i(pe).ke=function(){return this.isMatchAnyDescendant};i(pe).pc=function(){return this.operator};i(pe).qc=function(){return this.connectExpression};i(pe).le=function(t,e){return new pe(t,e)};i(pe).copy=function(t,e,n){return t=t===u?this.operator:t,e=e===u?this.connectExpression:e,this.le(t,e)};i(pe).toString=function(){return"ConnectSegment(operator="+F(this.operator)+", connectExpression="+F(this.connectExpression)+")"};i(pe).hashCode=function(){var t=ct(this.operator);return t=B(t,31)+ct(this.connectExpression)|0,t};i(pe).equals=function(t){if(this===t)return!0;if(!(t instanceof pe))return!1;var e=t instanceof pe?t:$();return!(!q(this.operator,e.operator)||!q(this.connectExpression,e.connectExpression))};function Te(t,e){this.segment=t,this.to=e,this.me_1=this.to.isMatchRoot&&this.segment.isMatchAnyAncestor;var n=this,r;this.segment.isMatchAnyDescendant?r=!this.to.fastQueryList.l():r=!1,n.canFq=r}i(Te).ne=function(){return this.segment};i(Te).oe=function(){return this.to};i(Te).stringify=function(){var t=this.to.stringify()+" "+this.segment.stringify();return F(Pm(me(t)?t:$()))};i(Te).matchContext=function(t,e,n){if(this.me_1){var r=e.getRoot(t.current),a;if(r==null)return null;a=r;var o=a;return this.to.matchContext(t.next(o),e,n)}if(this.canFq&&n.fastQuery)for(var s=e.traverseFastQueryDescendants(t.current,this.to.fastQueryList).h();s.i();){var l=s.j(),c=this.to.matchContext(t.next(l),e,n);if(c!=null)return c}else for(var f=this.segment.ie(t.current,e).h();f.i();){var h=f.j();t:{if(h==null)break t;var d=this.to.matchContext(t.next(h),e,n);if(d!=null)return d}}return null};i(Te).pe=function(){return this.canFq};i(Te).pc=function(){return this.segment};i(Te).qc=function(){return this.to};i(Te).qe=function(t,e){return new Te(t,e)};i(Te).copy=function(t,e,n){return t=t===u?this.segment:t,e=e===u?this.to:e,this.qe(t,e)};i(Te).toString=function(){return"ConnectWrapper(segment="+this.segment.toString()+", to="+this.to.toString()+")"};i(Te).hashCode=function(){var t=this.segment.hashCode();return t=B(t,31)+this.to.hashCode()|0,t};i(Te).equals=function(t){if(this===t)return!0;if(!(t instanceof Te))return!1;var e=t instanceof Te?t:$();return!(!this.segment.equals(e.segment)||!this.to.equals(e.to))};function ee(t,e){e=e===u?null:e,this.current=t,this.prev=e}i(ee).re=function(){return this.current};i(ee).se=function(){return this.prev};i(ee).getPrev=function(t){if(t<0)return null;var e=this.prev,n;if(e==null)return null;n=e;var r=n,a=0;if(a<t)do{a=a+1|0;var o=r.prev,s;if(o==null)return null;s=o,r=s}while(a<t);return r};i(ee).get=function(t){if(t===0)return this;var e=this.getPrev(t-1|0),n;if(e==null)throw fu();return n=e,n};i(ee).toList=function(){for(var t=Wh([this.current]),e=this.prev;e!=null;)t.f(e.current),e=e.prev;return t};i(ee).toArray=function(){var t=this.toList(),e=at(t,Vn)?t:$(),n=bn(e);return Xi(n)?n:$()};i(ee).next=function(t){return new ee(t,this)};i(ee).pc=function(){return this.current};i(ee).qc=function(){return this.prev};i(ee).te=function(t,e){return new ee(t,e)};i(ee).copy=function(t,e,n){return t=t===u?this.current:t,e=e===u?this.prev:e,this.te(t,e)};i(ee).toString=function(){return"Context(current="+Yt(this.current)+", prev="+Yt(this.prev)+")"};i(ee).hashCode=function(){var t=this.current==null?0:ct(this.current);return t=B(t,31)+(this.prev==null?0:this.prev.hashCode())|0,t};i(ee).equals=function(t){if(this===t)return!0;if(!(t instanceof ee))return!1;var e=t instanceof ee?t:$();return!(!q(this.current,e.current)||!q(this.prev,e.prev))};function zt(t){To(t,this),H(this,zt),this.ue_1=t}i(zt).i7=function(){return this.ue_1};function en(t){zt.call(this,"Unknown Identifier: "+t.stringify()),H(this,en),this.value=t}i(en).r1=function(){return this.value};i(en).pc=function(){return this.value};i(en).we=function(t){return new en(t)};i(en).copy=function(t,e){return t=t===u?this.value:t,this.we(t)};i(en).toString=function(){return"UnknownIdentifierException(value="+this.value.toString()+")"};i(en).hashCode=function(){return this.value.hashCode()};i(en).equals=function(t){if(this===t)return!0;if(!(t instanceof en))return!1;var e=t instanceof en?t:$();return!!this.value.equals(e.value)};function nn(t){zt.call(this,"Unknown Member: "+t.stringify()),H(this,nn),this.value=t}i(nn).r1=function(){return this.value};i(nn).pc=function(){return this.value};i(nn).ye=function(t){return new nn(t)};i(nn).copy=function(t,e){return t=t===u?this.value:t,this.ye(t)};i(nn).toString=function(){return"UnknownMemberException(value="+this.value.toString()+")"};i(nn).hashCode=function(){return this.value.hashCode()};i(nn).equals=function(t){if(this===t)return!0;if(!(t instanceof nn))return!1;var e=t instanceof nn?t:$();return!!this.value.equals(e.value)};function Ve(t){zt.call(this,"Unknown Identifier Method: "+t.stringify()),H(this,Ve),this.value=t}i(Ve).r1=function(){return this.value};i(Ve).pc=function(){return this.value};i(Ve).we=function(t){return new Ve(t)};i(Ve).copy=function(t,e){return t=t===u?this.value:t,this.we(t)};i(Ve).toString=function(){return"UnknownIdentifierMethodException(value="+this.value.toString()+")"};i(Ve).hashCode=function(){return this.value.hashCode()};i(Ve).equals=function(t){if(this===t)return!0;if(!(t instanceof Ve))return!1;var e=t instanceof Ve?t:$();return!!this.value.equals(e.value)};function rn(t){zt.call(this,"Unknown Identifier Method Params: "+t.stringify()),H(this,rn),this.value=t}i(rn).r1=function(){return this.value};i(rn).pc=function(){return this.value};i(rn).bf=function(t){return new rn(t)};i(rn).copy=function(t,e){return t=t===u?this.value:t,this.bf(t)};i(rn).toString=function(){return"UnknownIdentifierMethodParamsException(value="+this.value.toString()+")"};i(rn).hashCode=function(){return this.value.hashCode()};i(rn).equals=function(t){if(this===t)return!0;if(!(t instanceof rn))return!1;var e=t instanceof rn?t:$();return!!this.value.equals(e.value)};function Qe(t){zt.call(this,"Unknown Member Method: "+t.stringify()),H(this,Qe),this.value=t}i(Qe).r1=function(){return this.value};i(Qe).pc=function(){return this.value};i(Qe).ye=function(t){return new Qe(t)};i(Qe).copy=function(t,e){return t=t===u?this.value:t,this.ye(t)};i(Qe).toString=function(){return"UnknownMemberMethodException(value="+this.value.toString()+")"};i(Qe).hashCode=function(){return this.value.hashCode()};i(Qe).equals=function(t){if(this===t)return!0;if(!(t instanceof Qe))return!1;var e=t instanceof Qe?t:$();return!!this.value.equals(e.value)};function an(t){zt.call(this,"Unknown Member Method Params: "+t.stringify()),H(this,an),this.value=t}i(an).r1=function(){return this.value};i(an).pc=function(){return this.value};i(an).bf=function(t){return new an(t)};i(an).copy=function(t,e){return t=t===u?this.value:t,this.bf(t)};i(an).toString=function(){return"UnknownMemberMethodParamsException(value="+this.value.toString()+")"};i(an).hashCode=function(){return this.value.hashCode()};i(an).equals=function(t){if(this===t)return!0;if(!(t instanceof an))return!1;var e=t instanceof an?t:$();return!!this.value.equals(e.value)};function ue(t,e,n){zt.call(this,"Mismatch Param Type: "+e.stringify()+" should be "+n.key),H(this,ue),this.call=t,this.argument=e,this.type=n}i(ue).ff=function(){return this.call};i(ue).gf=function(){return this.argument};i(ue).hf=function(){return this.type};i(ue).pc=function(){return this.call};i(ue).qc=function(){return this.argument};i(ue).ed=function(){return this.type};i(ue).if=function(t,e,n){return new ue(t,e,n)};i(ue).copy=function(t,e,n,r){return t=t===u?this.call:t,e=e===u?this.argument:e,n=n===u?this.type:n,this.if(t,e,n)};i(ue).toString=function(){return"MismatchParamTypeException(call="+this.call.toString()+", argument="+F(this.argument)+", type="+F(this.type)+")"};i(ue).hashCode=function(){var t=this.call.hashCode();return t=B(t,31)+ct(this.argument)|0,t=B(t,31)+ct(this.type)|0,t};i(ue).equals=function(t){if(this===t)return!0;if(!(t instanceof ue))return!1;var e=t instanceof ue?t:$();return!(!this.call.equals(e.call)||!q(this.argument,e.argument)||!q(this.type,e.type))};function Se(t,e,n){zt.call(this,"Mismatch Expression Type: "+t.stringify()),H(this,Se),this.exception=t,this.leftType=e,this.rightType=n}i(Se).kf=function(){return this.exception};i(Se).lf=function(){return this.leftType};i(Se).mf=function(){return this.rightType};i(Se).pc=function(){return this.exception};i(Se).qc=function(){return this.leftType};i(Se).ed=function(){return this.rightType};i(Se).nf=function(t,e,n){return new Se(t,e,n)};i(Se).copy=function(t,e,n,r){return t=t===u?this.exception:t,e=e===u?this.leftType:e,n=n===u?this.rightType:n,this.nf(t,e,n)};i(Se).toString=function(){return"MismatchExpressionTypeException(exception="+this.exception.toString()+", leftType="+F(this.leftType)+", rightType="+F(this.rightType)+")"};i(Se).hashCode=function(){var t=this.exception.hashCode();return t=B(t,31)+ct(this.leftType)|0,t=B(t,31)+ct(this.rightType)|0,t};i(Se).equals=function(t){if(this===t)return!0;if(!(t instanceof Se))return!1;var e=t instanceof Se?t:$();return!(!this.exception.equals(e.exception)||!q(this.leftType,e.leftType)||!q(this.rightType,e.rightType))};function on(t){zt.call(this,"Mismatch Operator Type: "+t.stringify()),H(this,on),this.exception=t}i(on).kf=function(){return this.exception};i(on).pc=function(){return this.exception};i(on).pf=function(t){return new on(t)};i(on).copy=function(t,e){return t=t===u?this.exception:t,this.pf(t)};i(on).toString=function(){return"MismatchOperatorTypeException(exception="+this.exception.toString()+")"};i(on).hashCode=function(){return this.exception.hashCode()};i(on).equals=function(t){if(this===t)return!0;if(!(t instanceof on))return!1;var e=t instanceof on?t:$();return!!this.exception.equals(e.exception)};function He(){}function hn(t){De.call(this,t),this.rf_1=t}i(hn).r1=function(){return this.rf_1};i(hn).pc=function(){return this.rf_1};i(hn).sf=function(t){return new hn(t)};i(hn).copy=function(t,e){return t=t===u?this.rf_1:t,this.sf(t)};i(hn).toString=function(){return"Id(value="+this.rf_1+")"};i(hn).hashCode=function(){return Ge(this.rf_1)};i(hn).equals=function(t){if(this===t)return!0;if(!(t instanceof hn))return!1;var e=t instanceof hn?t:$();return this.rf_1===e.rf_1};function dn(t){De.call(this,t),this.uf_1=t}i(dn).r1=function(){return this.uf_1};i(dn).pc=function(){return this.uf_1};i(dn).sf=function(t){return new dn(t)};i(dn).copy=function(t,e){return t=t===u?this.uf_1:t,this.sf(t)};i(dn).toString=function(){return"Vid(value="+this.uf_1+")"};i(dn).hashCode=function(){return Ge(this.uf_1)};i(dn).equals=function(t){if(this===t)return!0;if(!(t instanceof dn))return!1;var e=t instanceof dn?t:$();return this.uf_1===e.uf_1};function vn(t){De.call(this,t),this.wf_1=t}i(vn).r1=function(){return this.wf_1};i(vn).pc=function(){return this.wf_1};i(vn).sf=function(t){return new vn(t)};i(vn).copy=function(t,e){return t=t===u?this.wf_1:t,this.sf(t)};i(vn).toString=function(){return"Text(value="+this.wf_1+")"};i(vn).hashCode=function(){return Ge(this.wf_1)};i(vn).equals=function(t){if(this===t)return!0;if(!(t instanceof vn))return!1;var e=t instanceof vn?t:$();return this.wf_1===e.wf_1};function De(t){this.xf_1=t}i(De).r1=function(){return this.xf_1};i(De).stringify=function(){return this.value};function Jm(t){var e=_c(t.expressions),n;if(e==null)return null;n=e;var r=n;if(r instanceof vt){if(!q(r.operator.value,zu()))return null;var a=r.getSameExpressionArray(),o;if(a==null)return null;o=a;for(var s=o,l=Tt(),c=0,f=s.length;c<f;){var h=s[c];c=c+1|0;var d=Lf(h),v;if(d==null)return null;v=d;var _=v;l.f(_)}return l}if(r instanceof dt){var m=Lf(r),g;if(m==null)return null;g=m;var y=g;return Ua(y)}return null}function Lf(t){var e=t.left;if(!(e instanceof $t))return null;var n=t.right;if(!(n instanceof yt))return null;var r=t.right.vd_1;return R(r)===0?null:t.left.value==="id"&&q(t.operator.value,ar())?new hn(t.right.vd_1):t.left.value==="vid"&&q(t.operator.value,ar())?new dn(t.right.vd_1):t.left.value==="text"&&(q(t.operator.value,ar())||q(t.operator.value,Yr())||q(t.operator.value,Pu())||q(t.operator.value,Ru()))?new vn(t.right.vd_1):null}function vt(t,e,n,r,a){He.call(this),this.zf_1=t,this.ag_1=e,this.left=n,this.operator=r,this.right=a}i(vt).tc=function(){return this.zf_1};i(vt).uc=function(){return this.ag_1};i(vt).vc=function(){return this.left};i(vt).wc=function(){return this.operator};i(vt).xc=function(){return this.right};i(vt).match=function(t,e){return this.operator.value.compare(t,e,this.left,this.right)};i(vt).bd=function(){var t=this.left.binaryExpressions,e=this.right.binaryExpressions;return t.concat(e)};i(vt).stringify=function(){var t,e,n=this.left;n instanceof vt?e=!q(this.left.operator.value,this.operator.value):e=!1,e?t="("+this.left.stringify()+")":t=this.left.stringify();var r=t,a,o,s=this.right;s instanceof vt?o=!q(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(vt).getSameExpressionArray=function(){var t,e=this.left;if(e instanceof vt?t=!q(this.left.operator.value,this.operator.value):t=!1,t)return null;var n,r=this.right;if(r instanceof vt?n=!q(this.right.operator.value,this.operator.value):n=!1,n)return null;var a=this.left,o;if(a instanceof dt){var s=this.right,l;if(s instanceof dt)l=[this.left,this.right];else if(s instanceof vt){var c=[this.left],f=this.right.getSameExpressionArray(),h;if(f==null)return null;h=f;var d=h;l=c.concat(d)}else s instanceof ne?l=null:qn();o=l}else if(a instanceof vt){var v=this.left.getSameExpressionArray(),_;if(v==null)return null;_=v;var m=_,g=this.right,y;if(g instanceof dt){var x=[this.right];y=m.concat(x)}else if(g instanceof vt){var C=this.right.getSameExpressionArray(),p;if(C==null)return null;p=C;var k=p;return m.concat(k)}else g instanceof ne?y=null:qn();o=y}else a instanceof ne?o=null:qn();return o};i(vt).pc=function(){return this.zf_1};i(vt).qc=function(){return this.ag_1};i(vt).ed=function(){return this.left};i(vt).fd=function(){return this.operator};i(vt).gd=function(){return this.right};i(vt).bg=function(t,e,n,r,a){return new vt(t,e,n,r,a)};i(vt).copy=function(t,e,n,r,a,o){return t=t===u?this.zf_1:t,e=e===u?this.ag_1:e,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.bg(t,e,n,r,a)};i(vt).toString=function(){return"LogicalExpression(start="+this.zf_1+", end="+this.ag_1+", left="+F(this.left)+", operator="+this.operator.toString()+", right="+F(this.right)+")"};i(vt).hashCode=function(){var t=this.zf_1;return t=B(t,31)+this.ag_1|0,t=B(t,31)+ct(this.left)|0,t=B(t,31)+this.operator.hashCode()|0,t=B(t,31)+ct(this.right)|0,t};i(vt).equals=function(t){if(this===t)return!0;if(!(t instanceof vt))return!1;var e=t instanceof vt?t:$();return!(this.zf_1!==e.zf_1||this.ag_1!==e.ag_1||!q(this.left,e.left)||!this.operator.equals(e.operator)||!q(this.right,e.right))};function us(t){this.cg_1=t}i(us).b9=function(t,e){return this.cg_1(t,e)};i(us).compare=function(t,e){return this.b9(t,e)};function Ym(){var t=bu([ju(),zu()]),e=Xm,n=new us(e);return Ul(t,n)}function Xm(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Yo(n,r)}function Ta(){Sl=this;var t=this;t.dg_1=Na(Ym)}i(Ta).kd=function(){var t=this.dg_1;return Zm(),t.r1()};var Sl;function Ou(){return Sl==null&&new Ta,Sl}function Dr(){$l=this,Pn.call(this,"&&")}i(Dr).compare=function(t,e,n,r){return n.match(t,e)&&r.match(t,e)};i(Dr).toString=function(){return"AndOperator"};i(Dr).hashCode=function(){return-772304006};i(Dr).equals=function(t){return this===t?!0:t instanceof Dr?(t instanceof Dr||$(),!0):!1};var $l;function ju(){return $l==null&&new Dr,$l}function Br(){El=this,Pn.call(this,"||")}i(Br).compare=function(t,e,n,r){return n.match(t,e)||r.match(t,e)};i(Br).toString=function(){return"OrOperator"};i(Br).hashCode=function(){return-302302232};i(Br).equals=function(t){return this===t?!0:t instanceof Br?(t instanceof Br||$(),!0):!1};var El;function zu(){return El==null&&new Br,El}function Pn(t){Ou(),this.key=t}i(Pn).q1=function(){return this.key};i(Pn).stringify=function(){return this.key};function Zm(){return Ka("allSubClasses",1,Oo,function(t){return t.allSubClasses},null)}function ua(){return tg(),Cd}var Cd;function Be(t,e){t=t===u?!1:t,e=e===u?!1:e,this.quickFind=t,this.fastQuery=e}i(Be).eg=function(){return this.quickFind};i(Be).fg=function(){return this.fastQuery};i(Be).pc=function(){return this.quickFind};i(Be).qc=function(){return this.fastQuery};i(Be).gg=function(t,e){return new Be(t,e)};i(Be).copy=function(t,e,n){return t=t===u?this.quickFind:t,e=e===u?this.fastQuery:e,this.gg(t,e)};i(Be).toString=function(){return"MatchOption(quickFind="+this.quickFind+", fastQuery="+this.fastQuery+")"};i(Be).hashCode=function(){var t=ka(this.quickFind);return t=B(t,31)+ka(this.fastQuery)|0,t};i(Be).equals=function(t){if(this===t)return!0;if(!(t instanceof Be))return!1;var e=t instanceof Be?t:$();return!(this.quickFind!==e.quickFind||this.fastQuery!==e.fastQuery)};var Of;function tg(){Of||(Of=!0,Cd=new Be)}function ne(t,e){He.call(this),this.hg_1=t,this.expression=e}i(ne).tc=function(){return this.hg_1};i(ne).ig=function(){return this.expression};i(ne).uc=function(){return this.expression.uc()};i(ne).match=function(t,e){return!this.expression.match(t,e)};i(ne).bd=function(){return this.expression.binaryExpressions};i(ne).stringify=function(){return"!("+this.expression.stringify()+")"};i(ne).pc=function(){return this.hg_1};i(ne).qc=function(){return this.expression};i(ne).jg=function(t,e){return new ne(t,e)};i(ne).copy=function(t,e,n){return t=t===u?this.hg_1:t,e=e===u?this.expression:e,this.jg(t,e)};i(ne).toString=function(){return"NotExpression(start="+this.hg_1+", expression="+F(this.expression)+")"};i(ne).hashCode=function(){var t=this.hg_1;return t=B(t,31)+ct(this.expression)|0,t};i(ne).equals=function(t){if(this===t)return!0;if(!(t instanceof ne))return!1;var e=t instanceof ne?t:$();return!(this.hg_1!==e.hg_1||!q(this.expression,e.expression))};function On(t){var e="invalid PolynomialExpression: a="+t.a+", b="+t.b;throw Ur(F(e))}function eg(t){return function(e){return B(t.a,e)+t.b|0}}function ng(t){return function(e){return B(t.a,e)+t.b|0}}function rg(t,e){return function(n){return B(t.a,e+n|0)+t.b|0}}function ig(t){return function(e){return e!==0&&On(t),t.b}}function ag(t,e){return function(n){return B(t.a,e-n|0)+t.b|0}}function Lt(t,e){t=t===u?0:t,e=e===u?1:e,Ni.call(this),this.a=t,this.b=e;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=B(this.a,o)+this.b|0}r=a}else{var s;if(this.a===0){var l;this.b>0?l=this.b:On(this),s=l}else{var c;if(this.b>0){var f;if(this.b<=(-this.a|0))On(this);else{var h=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;f=B(this.a,h)+this.b|0}c=f}else On(this);s=c}r=s-1|0}n.de_1=r;var d=this,v;if(this.a>0)v=null;else{var _;if(this.a===0){var m;this.b>0?m=this.b:On(this),_=m}else{var g;if(this.b>0){var y;this.b<=(-this.a|0)?On(this):y=this.a+this.b|0,g=y}else On(this);_=g}v=_-1|0}d.ee_1=v,this.fe_1=this.de_1===this.ee_1;var x=this,C;if(this.a>0){var p;if(this.b>0)p=eg(this);else if(this.b===0)p=ng(this);else{var k=((-this.b|0)/this.a|0)+1|0;p=rg(this,k)}C=p}else if(this.a===0){var S;this.b>0?S=ig(this):On(this),C=S}else{var I;if(this.b>0){var A;if(this.b<=(-this.a|0))On(this);else{var U=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;A=ag(this,U)}I=A}else On(this);C=I}x.ge_1=C}i(Lt).kg=function(){return this.a};i(Lt).lg=function(){return this.b};i(Lt).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 t;return this.a>0?t=""+this.a+"n":t="("+this.a+"n)",t}if(this.a===0){if(this.b===1)return"";var e;return this.b>0?e=this.b.toString():e="("+this.b+")",e}var n=this.b>=0?"+":"";return"("+this.a+"n"+n+this.b+")"};i(Lt).yd=function(){return this.de_1};i(Lt).zd=function(){return this.ee_1};i(Lt).checkOffset=function(t){if(this.fe_1)return t===this.de_1;var e=(t+1|0)-this.b|0;return(e%this.a|0)===0&&(e/this.a|0)>=1};i(Lt).getOffset=function(t){return this.ge_1(t)-1|0};i(Lt).pc=function(){return this.a};i(Lt).qc=function(){return this.b};i(Lt).mg=function(t,e){return new Lt(t,e)};i(Lt).copy=function(t,e,n){return t=t===u?this.a:t,e=e===u?this.b:e,this.mg(t,e)};i(Lt).toString=function(){return"PolynomialExpression(a="+this.a+", b="+this.b+")"};i(Lt).hashCode=function(){var t=this.a;return t=B(t,31)+this.b|0,t};i(Lt).equals=function(t){if(this===t)return!0;if(!(t instanceof Lt))return!1;var e=t instanceof Lt?t:$();return!(this.a!==e.a||this.b!==e.b)};function sn(){}function Jt(t,e,n){this.yc_1=t,this.zc_1=e,this.value=n}i(Jt).tc=function(){return this.yc_1};i(Jt).uc=function(){return this.zc_1};i(Jt).r1=function(){return this.value};i(Jt).stringify=function(){return this.value.stringify()};i(Jt).pc=function(){return this.yc_1};i(Jt).qc=function(){return this.zc_1};i(Jt).ed=function(){return this.value};i(Jt).ng=function(t,e,n){return new Jt(t,e,n)};i(Jt).copy=function(t,e,n,r){return t=t===u?this.yc_1:t,e=e===u?this.zc_1:e,n=n===u?this.value:n,this.ng(t,e,n)};i(Jt).toString=function(){return"PositionImpl(start="+this.yc_1+", end="+this.zc_1+", value="+F(this.value)+")"};i(Jt).hashCode=function(){var t=this.yc_1;return t=B(t,31)+this.zc_1|0,t=B(t,31)+ct(this.value)|0,t};i(Jt).equals=function(t){if(this===t)return!0;if(!(t instanceof Jt))return!1;var e=t instanceof Jt?t:$();return!(this.yc_1!==e.yc_1||this.zc_1!==e.zc_1||!q(this.value,e.value))};function fs(){}function og(t,e,n){if(t.yf_1)return!0;var r=n.getName(e),a;if(r==null)return!1;a=r;var o=a;return R(o)===t.name.length?sm(o,t.name):R(o)>t.name.length?j(o,(R(o)-t.name.length|0)-1|0)===46&&ts(o,t.name):!1}function sg(t){return"["+t.stringify()+"]"}function fe(t,e,n){this.at=t,this.name=e,this.expressions=n,this.yf_1=Mm(this.name)||this.name==="*"}i(fe).og=function(){return this.at};i(fe).pg=function(){return this.name};i(fe).qg=function(){return this.expressions};i(fe).bd=function(){for(var t=this.expressions,e=Tt(),n=t.h();n.i();){var r=n.j(),a=Fl(r.binaryExpressions);Fo(e,a)}return bn(e)};i(fe).stringify=function(){var t=this.at?"@":"",e=t+this.name;return e+In(this.expressions,"",u,u,u,u,sg)};i(fe).match=function(t,e){var n;if(og(this,t.current,e)){var r;t:{var a=this.expressions,o;if(at(a,It)?o=a.l():o=!1,o){r=!0;break t}for(var s=a.h();s.i();){var l=s.j();if(!l.match(t,e)){r=!1;break t}}r=!0}n=r}else n=!1;return n};i(fe).pc=function(){return this.at};i(fe).qc=function(){return this.name};i(fe).ed=function(){return this.expressions};i(fe).rg=function(t,e,n){return new fe(t,e,n)};i(fe).copy=function(t,e,n,r){return t=t===u?this.at:t,e=e===u?this.name:e,n=n===u?this.expressions:n,this.rg(t,e,n)};i(fe).toString=function(){return"PropertySegment(at="+this.at+", name="+this.name+", expressions="+F(this.expressions)+")"};i(fe).hashCode=function(){var t=ka(this.at);return t=B(t,31)+Ge(this.name)|0,t=B(t,31)+ct(this.expressions)|0,t};i(fe).equals=function(t){if(this===t)return!0;if(!(t instanceof fe))return!1;var e=t instanceof fe?t:$();return!(this.at!==e.at||this.name!==e.name||!q(this.expressions,e.expressions))};function re(t,e){e=e===u?null:e,this.segment=t,this.to=e;var n=this,r;t:{var a=this.segment.expressions,o;if(at(a,It)?o=a.l():o=!1,o){r=!1;break t}for(var s=a.h();s.i();){var l=s.j(),c,f,h;if(l instanceof dt?h=q(l.operator.value,ar()):h=!1,h?f=q(l.left.value,"parent"):f=!1,f?c=q(l.right.value,"null"):c=!1,c){r=!0;break t}}r=!1}n.isMatchRoot=r;var d=this,v=Jm(this.segment);d.fastQueryList=v==null?oa():v}i(re).ne=function(){return this.segment};i(re).oe=function(){return this.to};i(re).stringify=function(){var t;return this.to!=null?t=this.to.stringify()+" ":t="",t+this.segment.stringify()};i(re).matchContext=function(t,e,n){return this.segment.match(t,e)?this.to==null?t:this.to.matchContext(t,e,n):null};i(re).sg=function(){return this.isMatchRoot};i(re).tg=function(){return this.fastQueryList};i(re).a=function(){return this.to==null?1:this.to.to.length+1|0};i(re).pc=function(){return this.segment};i(re).qc=function(){return this.to};i(re).ug=function(t,e){return new re(t,e)};i(re).copy=function(t,e,n){return t=t===u?this.segment:t,e=e===u?this.to:e,this.ug(t,e)};i(re).toString=function(){return"PropertyWrapper(segment="+this.segment.toString()+", to="+Yt(this.to)+")"};i(re).hashCode=function(){var t=this.segment.hashCode();return t=B(t,31)+(this.to==null?0:this.to.hashCode())|0,t};i(re).equals=function(t){if(this===t)return!0;if(!(t instanceof re))return!1;var e=t instanceof re?t:$();return!(!this.segment.equals(e.segment)||!q(this.to,e.to))};function xd(){Ii();var t=Sd;return cg(),t.r1()}var Sd;function $d(){Ii();var t=Ed;return hg(),t.r1()}var Ed;function cs(){}i(cs).parse=function(t){return qd(t)};i(cs).parseOrNull=function(t){var e;try{e=qd(t)}catch(r){var n;if(r instanceof xn)n=null;else throw r;e=n}return e};var Nd;function lg(){return Nd}function Ne(t,e){this.source=t,this.propertyWrapper=e;var n=this,r;t:{for(var a=this.propertyWrapper.length,o=0,s=this.propertyWrapper;s!=null;){if(s.segment.at){r=(a-1|0)-o|0;break t}var l=s.to;s=l==null?null:l.to,o=o+1|0}r=a-1|0}n.targetIndex=r,this.fastQueryList=this.propertyWrapper.fastQueryList,this.quickFindValue=this.fastQueryList.m()===1?Wi(this.fastQueryList):null,this.isMatchRoot=this.propertyWrapper.isMatchRoot;for(var c=this,f=this.propertyWrapper.to,h=Tt();f!=null;)h.f(f),f=f.to.to;c.connectWrappers=bn(h);for(var d=this,v=this.propertyWrapper,_=Tt();v!=null;){var m=v.segment;wm(_,m.binaryExpressions);var g=v.to;v=g==null?null:g.to}var y=ep(_);d.binaryExpressions=bn(y);var x=this,C;t:{if(this.connectWrappers.length!==0){C=!0;break t}for(var p=this.binaryExpressions,k=0,S=p.length;k<S;){var I=p[k];k=k+1|0;var A;e:{for(var U=I.properties,Y=0,lt=U.length;Y<lt;){var Mt=U[Y];if(Y=Y+1|0,Rs(xd(),Mt)){A=!0;break e}}A=!1}if(A){C=!0;break t}var xt;e:{for(var ae=I.methods,pt=0,W=ae.length;pt<W;){var Ft=ae[pt];if(pt=pt+1|0,Rs($d(),Ft)){xt=!0;break e}}xt=!1}if(xt){C=!0;break t}}C=!1}x.useCache=C}i(Ne).vg=function(){return this.source};i(Ne).wg=function(){return this.propertyWrapper};i(Ne).stringify=function(){return this.propertyWrapper.stringify()};i(Ne).xg=function(){return this.targetIndex};i(Ne).matchContext=function(t,e,n){return this.propertyWrapper.matchContext(new ee(t),e,n)};i(Ne).match=function(t,e,n){var r=this.matchContext(t,e,n),a;if(r==null)return null;a=r;var o=a;return o.get(this.targetIndex).current};i(Ne).tg=function(){return this.fastQueryList};i(Ne).yg=function(){return this.quickFindValue};i(Ne).sg=function(){return this.isMatchRoot};i(Ne).zg=function(){return this.connectWrappers};i(Ne).bd=function(){return this.binaryExpressions};i(Ne).ah=function(){return this.useCache};i(Ne).isSlow=function(t){if(t.quickFind&&this.quickFindValue==null&&!this.isMatchRoot||(!t.fastQuery||this.propertyWrapper.fastQueryList.l())&&!this.isMatchRoot)return!0;var e;t:{for(var n=this.connectWrappers,r=0,a=n.length;r<a;){var o=n[r];if(r=r+1|0,q(o.segment.operator,ls())&&!(o.canFq&&t.fastQuery)){e=!0;break t}}e=!1}return!!e};i(Ne).checkType=function(t){try{for(var e=this.binaryExpressions,n=0,r=e.length;n<r;){var a=e[n];if(n=n+1|0,!a.operator.value.od(a.left,a.right))throw new on(a);var o=jf(a.left,t),s=jf(a.right,t);if(o!=null&&s!=null&&!q(o,s))throw new Se(a,o,s)}}catch(c){if(c instanceof zt){var l=c;return l}else throw c}return null};function jf(t,e){Ii();var n;return t instanceof Pe?n=null:t instanceof _e?n=Ma():t instanceof Xt?n=Pa():t instanceof yt?n=Ra():t instanceof Oe?n=xo(t,e,e).type:qn(),n}function zf(t,e,n){Ii();for(var r=0,a=t.params,o=0,s=a.length;o<s;){var l=a[o];o=o+1|0;var c=r;r=c+1|0;var f=e.arguments.k(c);if(!(f instanceof Pe))if(f instanceof _e){if(!q(l.type,Ma()))throw new ue(e,f,Ma())}else if(f instanceof Xt){if(!q(l.type,Pa()))throw new ue(e,f,Pa())}else if(f instanceof yt){if(!q(l.type,Ra()))throw new ue(e,f,Ra())}else if(f instanceof Oe){var h=xo(f,l,n);if(!q(h.type,l.type))throw new ue(e,f,h.type)}else qn()}return t.returnType}function xo(t,e,n){Ii();var r;if(t instanceof Et){var a=t.callee,o;if(a instanceof Et)throw Kt("Unsupported nested call");if(a instanceof $t){for(var s=n.methods,l=Tt(),c=0,f=s.length;c<f;){var h=s[c];c=c+1|0,h.name===t.callee.value&&l.f(h)}if(l.l())throw new Ve(t.callee);for(var d=Tt(),v=l.h();v.i();){var _=v.j();_.params.length===t.arguments.m()&&d.f(_)}if(d.l())throw new rn(t);o=d}else if(a instanceof gt){for(var m=xo(t.callee.object0,e,n).methods,g=Tt(),y=0,x=m.length;y<x;){var C=m[y];y=y+1|0,C.name===t.callee.property&&g.f(C)}if(g.l())throw new Qe(t.callee);for(var p=Tt(),k=g.h();k.i();){var S=k.j();S.params.length===t.arguments.m()&&p.f(S)}if(p.l())throw new an(t);o=p}else qn();var I=o;if(I.m()===1)return zf(I.k(0),t,n),I.k(0).returnType;for(var A=0,U=I.h();U.i();){var Y=U.j(),lt=A;A=lt+1|0;var Mt=Ao(lt);try{return zf(Y,t,n),Y.returnType}catch(Zr){if(Zr instanceof zt){var xt=Zr;if(Mt===(I.m()-1|0))throw xt}else throw Zr}}var ae=t.callee;if(ae instanceof $t)throw new Ve(t.callee);var pt=t.callee;throw pt instanceof gt?new Qe(t.callee):Kt("Unsupported nested call")}else if(t instanceof $t){var W=n.props,Ft;t:{for(var ut=0,Ut=W.length;ut<Ut;){var Ie=W[ut];if(ut=ut+1|0,Ie.name===t.value){Ft=Ie;break t}}Ft=null}var mn=Ft,Rn=mn==null?null:mn.type,Ar;if(Rn==null)throw new en(t);Ar=Rn,r=Ar}else if(t instanceof gt){var L=xo(t.object0,e,n).props,ft;t:{for(var mt=0,Dt=L.length;mt<Dt;){var de=L[mt];if(mt=mt+1|0,de.name===t.property){ft=de;break t}}ft=null}var Jn=ft,Yn=Jn==null?null:Jn.type,Xn;if(Yn==null)throw new nn(t);Xn=Yn,r=Xn}else qn();return r}function ug(){return Ii(),["index","parent","depth"]}function fg(){return Ii(),["getChild"]}function cg(){return Ka("useCacheProperties",0,pu,function(){return xd()},null)}function hg(){return Ka("useCacheMethods",0,pu,function(){return $d()},null)}var Ff;function Ii(){Ff||(Ff=!0,Sd=Na(ug),Ed=Na(fg))}function ce(t,e,n,r){r=r===u?null:r;var a=tn(n,e);To("expected "+t+" in selector at position "+e+", but got "+Yt(a==null?null:new ot(a)),this),H(this,ce),this.expectedValue=t,this.position=e,this.source=n,this.lh_1=r}i(ce).mh=function(){return this.expectedValue};i(ce).nh=function(){return this.position};i(ce).vg=function(){return this.source};i(ce).j7=function(){return this.lh_1};i(ce).pc=function(){return this.expectedValue};i(ce).qc=function(){return this.position};i(ce).ed=function(){return this.source};i(ce).fd=function(){return this.lh_1};i(ce).oh=function(t,e,n,r){return new ce(t,e,n,r)};i(ce).copy=function(t,e,n,r,a){return t=t===u?this.expectedValue:t,e=e===u?this.position:e,n=n===u?this.source:n,r=r===u?this.lh_1:r,this.oh(t,e,n,r)};i(ce).toString=function(){return"SyntaxError(expectedValue="+this.expectedValue+", position="+this.position+", source="+this.source+", cause="+Yt(this.lh_1)+")"};i(ce).hashCode=function(){var t=Ge(this.expectedValue);return t=B(t,31)+this.position|0,t=B(t,31)+Ge(this.source)|0,t=B(t,31)+(this.lh_1==null?0:ct(this.lh_1))|0,t};i(ce).equals=function(t){if(this===t)return!0;if(!(t instanceof ce))return!1;var e=t instanceof ce?t:$();return!(this.expectedValue!==e.expectedValue||this.position!==e.position||this.source!==e.source||!q(this.lh_1,e.lh_1))};function kt(t,e,n,r){n=n===u?"":n,r=r===u?null:r;var a;if(e>=R(t))a=!0;else{var o;R(n)>0?o=!Je(n,j(t,e)):o=!1,a=o}if(a)throw new ce(r==null?n:r,e,F(t))}function le(t,e,n,r){throw n=n===u?"":n,r=r===u?null:r,new ce(n,e,F(t),r)}function dg(t){return function(e,n,r){return t(e,n,r)}}function vg(t){return function(e){return Qv(t(e))}}function Fu(){}i(Fu).multiplatformBuild=function(t,e,n,r,a){var o=dg(e);return new Ct(t,o,n,vg(r),a)};var Id;function pg(){return Id}function _g(t,e,n){return null}function mg(t){return function(e){for(var n=t(e);n!=null;)n=t(Re(n));return n}}function hi(t,e,n){this.xh_1=t,this.yh_1=e,Le.call(this,n)}i(hi).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ht,n.l6_1=null,n.q6()};i(hi).h7=function(t,e){return this.di(t instanceof xr?t:$(),e)};i(hi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=4,this.ai_1=Hl(this.xh_1(this.yh_1)),this.ai_1.l())return ht;Xl(this.ai_1);var n=this;n.bi_1=Tt(),this.i6_1=1;continue t;case 1:if(this.ci_1=this.ai_1.x2(Xa(this.ai_1)),this.i6_1=2,t=this.zh_1.p9(this.ci_1,this),t===$r())return t;continue t;case 2:for(var r=this.xh_1(this.ci_1).h();r.i();){var a=r.j();this.bi_1.f(a)}if(!this.bi_1.l()){var o=this.bi_1.m()-1|0;if(0<=o)do{var s=o;o=o+-1|0,this.ai_1.f(this.bi_1.k(s))}while(0<=o);this.bi_1.n3()}if(!this.ai_1.l()){this.i6_1=1;continue t}this.i6_1=3;continue t;case 3:return ht;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(hi).ei=function(t,e){var n=new hi(this.xh_1,this.yh_1,e);return n.zh_1=t,n};function gg(t,e,n){var r=new hi(t,e,n),a=function(o,s){return r.di(o,s)};return a.$arity=1,a}function yg(t){return function(e){return to(gg(t,e,null))}}function wg(t){return function(e,n){return t.checkOffset(e)}}function bg(t){return function(e,n){var r=t(e),a;n.maxOffset!=null?a=wc(r,Re(n.maxOffset)+1|0):a=r;var o=a;return Vl(o,wg(n))}}function di(t,e,n,r){this.ni_1=t,this.oi_1=e,this.pi_1=n,Le.call(this,r)}i(di).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ht,n.l6_1=null,n.q6()};i(di).h7=function(t,e){return this.di(t instanceof xr?t:$(),e)};i(di).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:this.j6_1=6;var n=this,r=this.ni_1(this.oi_1),a;if(r==null)return ht;a=r,n.ri_1=a,this.si_1=0,this.i6_1=1;continue t;case 1:if(this.ri_1==null){this.i6_1=5;continue t}if(this.ti_1=this.ri_1,this.ti_1==null){this.ui_1=null,this.i6_1=4;continue t}else{var o=this;o.vi_1=this.ti_1;var s=this;if(s.wi_1=this.vi_1,this.pi_1.checkOffset(this.si_1)){if(this.i6_1=2,t=this.qi_1.p9(this.wi_1,this),t===$r())return t;continue t}else{this.i6_1=3;continue t}}case 2:this.i6_1=3;continue t;case 3:this.si_1=this.si_1+1|0;var l=this.pi_1.maxOffset;if(l!=null){if(this.si_1>l)return ht}var c=this;this.ri_1=this.ni_1(this.wi_1),c.ui_1=ht,this.i6_1=4;continue t;case 4:this.i6_1=1;continue t;case 5:return ht;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(di).ei=function(t,e){var n=new di(this.ni_1,this.oi_1,this.pi_1,e);return n.qi_1=t,n};function kg(t,e,n,r){var a=new di(t,e,n,r),o=function(s,l){return a.di(s,l)};return o.$arity=1,o}function Cg(t){return function(e,n){return to(kg(t,e,n,null))}}function xg(t){return function(e){return!q(e,t)}}function Sg(t){return function(e,n){return t.checkOffset(e)}}function $g(t,e){return function(n,r){var a=t(n),o;if(a!=null){var s=e(a),l=Hl(sp(s,xg(n)));Xl(l);var c=np(l);o=Vl(c,Sg(r))}else o=$i();return o}}function Eg(t){return function(e){return!q(e,t)}}function Ng(t){return function(e,n){return t.checkOffset(e)}}function Ig(t,e){return function(n,r){var a=t(n),o;if(a!=null){var s=e(a),l=lp(up(s,Eg(n)),1),c;r.maxOffset!=null?c=wc(l,Re(r.maxOffset)+1|0):c=l;var f=c;o=Vl(f,Ng(r))}else o=$i();return o}}function vi(t,e,n,r){this.fj_1=t,this.gj_1=e,this.hj_1=n,Le.call(this,r)}i(vi).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ht,n.l6_1=null,n.q6()};i(vi).h7=function(t,e){return this.di(t instanceof xr?t:$(),e)};i(vi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=5,this.jj_1=Hl(this.fj_1(this.gj_1)),this.jj_1.l())return ht;Xl(this.jj_1);var n=this;n.kj_1=Tt(),this.lj_1=0,this.i6_1=1;continue t;case 1:if(this.mj_1=this.jj_1.x2(Xa(this.jj_1)),this.hj_1.checkOffset(this.lj_1)){if(this.i6_1=2,t=this.ij_1.p9(this.mj_1,this),t===$r())return t;continue t}else{this.i6_1=3;continue t}case 2:this.i6_1=3;continue t;case 3:this.lj_1=this.lj_1+1|0;var r=this.hj_1.maxOffset;if(r!=null){if(this.lj_1>r)return ht}for(var a=this.fj_1(this.mj_1).h();a.i();){var o=a.j();this.kj_1.f(o)}if(!this.kj_1.l()){var s=this.kj_1.m()-1|0;if(0<=s)do{var l=s;s=s+-1|0,this.jj_1.f(this.kj_1.k(l))}while(0<=s);this.kj_1.n3()}if(!this.jj_1.l()){this.i6_1=1;continue t}this.i6_1=4;continue t;case 4:return ht;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(vi).ei=function(t,e){var n=new vi(this.fj_1,this.gj_1,this.hj_1,e);return n.ij_1=t,n};function qg(t,e,n,r){var a=new vi(t,e,n,r),o=function(s,l){return a.di(s,l)};return o.$arity=1,o}function Ag(t){return function(e,n){return to(qg(t,e,n,null))}}function Tg(t,e){return $i()}function pi(t,e,n,r,a){this.vj_1=t,this.wj_1=e,this.xj_1=n,this.yj_1=r,Le.call(this,a)}i(pi).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ht,n.l6_1=null,n.q6()};i(pi).h7=function(t,e){return this.di(t instanceof xr?t:$(),e)};i(pi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=7,this.ak_1=this.vj_1.match(this.wj_1,this.xj_1,this.yj_1),this.ak_1==null){this.bk_1=null,this.i6_1=2;continue t}else{var n=this;n.ck_1=this.ak_1;var r=this;if(r.dk_1=this.ck_1,this.i6_1=1,t=this.zj_1.p9(this.dk_1,this),t===$r())return t;continue t}case 1:var a=this;a.bk_1=ht,this.i6_1=2;continue t;case 2:var o=this;o.ek_1=this.xj_1.getDescendants(this.wj_1),this.fk_1=this.ek_1.h(),this.i6_1=3;continue t;case 3:if(!this.fk_1.i()){this.i6_1=6;continue t}this.gk_1=this.fk_1.j();var s=this;if(s.hk_1=this.gk_1,this.ik_1=this.vj_1.match(this.hk_1,this.xj_1,this.yj_1),this.ik_1==null){this.jk_1=null,this.i6_1=5;continue t}else{var l=this;l.kk_1=this.ik_1;var c=this;if(c.lk_1=this.kk_1,this.i6_1=4,t=this.zj_1.p9(this.lk_1,this),t===$r())return t;continue t}case 4:var f=this;f.jk_1=ht,this.i6_1=5;continue t;case 5:this.i6_1=3;continue t;case 6:return ht;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(pi).ei=function(t,e){var n=new pi(this.vj_1,this.wj_1,this.xj_1,this.yj_1,e);return n.zj_1=t,n};function Mg(t,e,n,r,a){var o=new pi(t,e,n,r,a),s=function(l,c){return o.di(l,c)};return s.$arity=1,s}function _i(t,e,n,r,a){this.uk_1=t,this.vk_1=e,this.wk_1=n,this.xk_1=r,Le.call(this,a)}i(_i).ll=function(t,e){var n=this.ml(t,e);return n.k6_1=ht,n.l6_1=null,n.q6()};i(_i).h7=function(t,e){return this.ll(t instanceof xr?t:$(),e)};i(_i).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=7,this.zk_1=this.uk_1.matchContext(this.vk_1,this.wk_1,this.xk_1),this.zk_1==null){this.al_1=null,this.i6_1=2;continue t}else{var n=this;n.bl_1=this.zk_1;var r=this;if(r.cl_1=this.bl_1,this.i6_1=1,t=this.yk_1.p9(this.cl_1,this),t===$r())return t;continue t}case 1:var a=this;a.al_1=ht,this.i6_1=2;continue t;case 2:var o=this;o.dl_1=this.wk_1.getDescendants(this.vk_1),this.el_1=this.dl_1.h(),this.i6_1=3;continue t;case 3:if(!this.el_1.i()){this.i6_1=6;continue t}this.fl_1=this.el_1.j();var s=this;if(s.gl_1=this.fl_1,this.hl_1=this.uk_1.matchContext(this.gl_1,this.wk_1,this.xk_1),this.hl_1==null){this.il_1=null,this.i6_1=5;continue t}else{var l=this;l.jl_1=this.hl_1;var c=this;if(c.kl_1=this.jl_1,this.i6_1=4,t=this.yk_1.p9(this.kl_1,this),t===$r())return t;continue t}case 4:var f=this;f.il_1=ht,this.i6_1=5;continue t;case 5:this.i6_1=3;continue t;case 6:return ht;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(_i).ml=function(t,e){var n=new _i(this.uk_1,this.vk_1,this.wk_1,this.xk_1,e);return n.yk_1=t,n};function Pg(t,e,n,r,a){var o=new _i(t,e,n,r,a),s=function(l,c){return o.ll(l,c)};return s.$arity=1,s}function Ct(t,e,n,r,a,o,s,l,c,f,h,d,v){var _;e===u?_=_g:_=e,e=_;var m;o===u?m=mg(a):m=o,o=m;var g;s===u?g=yg(r):g=s,s=g;var y;l===u?y=bg(r):y=l,l=y;var x;c===u?x=Cg(a):x=c,c=x;var C;f===u?C=$g(a,r):C=f,f=C;var p;h===u?p=Ig(a,r):p=h,h=p;var k;d===u?k=Ag(r):k=d,d=k;var S;v===u?S=Tg:S=v,v=S,this.getAttr=t,this.getInvoke=e,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,this.traverseFastQueryDescendants=v}i(Ct).nl=function(){return this.getAttr};i(Ct).ol=function(){return this.getInvoke};i(Ct).pl=function(){return this.getName};i(Ct).ql=function(){return this.getChildren};i(Ct).rl=function(){return this.getParent};i(Ct).sl=function(){return this.getRoot};i(Ct).tl=function(){return this.getDescendants};i(Ct).ul=function(){return this.traverseChildren};i(Ct).vl=function(){return this.traverseAncestors};i(Ct).wl=function(){return this.traverseBeforeBrothers};i(Ct).xl=function(){return this.traverseAfterBrothers};i(Ct).yl=function(){return this.traverseDescendants};i(Ct).zl=function(){return this.traverseFastQueryDescendants};i(Ct).am=function(t,e,n){return to(Mg(e,t,this,n,null))};i(Ct).querySelectorAll$default=function(t,e,n,r){return n=n===u?ua():n,r===u?this.am(t,e,n):r.am.call(this,t,e,n)};i(Ct).bm=function(t,e,n){return bc(this.am(t,e,n))};i(Ct).querySelector=function(t,e,n,r){return n=n===u?ua():n,this.bm(t,e,n)};i(Ct).cm=function(t,e,n){return to(Pg(e,t,this,n,null))};i(Ct).querySelectorAllContext$default=function(t,e,n,r){return n=n===u?ua():n,r===u?this.cm(t,e,n):r.cm.call(this,t,e,n)};i(Ct).dm=function(t,e,n){return bc(this.cm(t,e,n))};i(Ct).querySelectorContext=function(t,e,n,r){return n=n===u?ua():n,this.dm(t,e,n)};i(Ct).em=function(t,e,n){var r=kc(this.am(t,e,n)),a=at(r,Vn)?r:$(),o=bn(a);return Xi(o)?o:$()};i(Ct).querySelectorAllArray=function(t,e,n,r){return n=n===u?ua():n,this.em(t,e,n)};i(Ct).fm=function(t,e,n){var r=kc(this.cm(t,e,n));return bn(r)};i(Ct).querySelectorAllContextArray=function(t,e,n,r){return n=n===u?ua():n,this.fm(t,e,n)};function Me(t){Ni.call(this),this.numbers=t;var e=this,n=_c(this.numbers);e.gm_1=(n==null?1:n)-1|0,this.hm_1=rp(this.numbers);for(var r=this,a=this.numbers,o=Hi(Ys(a,10)),s=a.h();s.i();){var l=s.j(),c=l-1|0;o.f(c)}r.im_1=o}i(Me).jm=function(){return this.numbers};i(Me).yd=function(){return this.gm_1};i(Me).zd=function(){return this.hm_1};i(Me).checkOffset=function(t){return dm(this.im_1,t)>=0};i(Me).getOffset=function(t){return this.numbers.k(t)};i(Me).stringify=function(){if(this.numbers.m()===1){var t;return Wi(this.numbers)===1?t="":t=Wi(this.numbers).toString(),t}return"("+In(this.numbers,",")+")"};i(Me).pc=function(){return this.numbers};i(Me).km=function(t){return new Me(t)};i(Me).copy=function(t,e){return t=t===u?this.numbers:t,this.km(t)};i(Me).toString=function(){return"TupleExpression(numbers="+F(this.numbers)+")"};i(Me).hashCode=function(){return ct(this.numbers)};i(Me).equals=function(t){if(this===t)return!0;if(!(t instanceof Me))return!1;var e=t instanceof Me?t:$();return!!q(this.numbers,e.numbers)};function si(){Nl=this,ln.call(this,"boolean")}i(si).toString=function(){return"BooleanType"};i(si).hashCode=function(){return 1452179029};i(si).equals=function(t){return this===t?!0:t instanceof si?(t instanceof si||$(),!0):!1};var Nl;function Ma(){return Nl==null&&new si,Nl}function li(){Il=this,ln.call(this,"int")}i(li).toString=function(){return"IntType"};i(li).hashCode=function(){return-1601449956};i(li).equals=function(t){return this===t?!0:t instanceof li?(t instanceof li||$(),!0):!1};var Il;function Pa(){return Il==null&&new li,Il}function ui(){ql=this,ln.call(this,"string")}i(ui).toString=function(){return"StringType"};i(ui).hashCode=function(){return 1719560632};i(ui).equals=function(t){return this===t?!0:t instanceof ui?(t instanceof ui||$(),!0):!1};var ql;function Ra(){return ql==null&&new ui,ql}function Ke(t){ln.call(this,"object"),this.name=t}i(Ke).pg=function(){return this.name};i(Ke).pc=function(){return this.name};i(Ke).sf=function(t){return new Ke(t)};i(Ke).copy=function(t,e){return t=t===u?this.name:t,this.sf(t)};i(Ke).toString=function(){return"ObjectType(name="+this.name+")"};i(Ke).hashCode=function(){return Ge(this.name)};i(Ke).equals=function(t){if(this===t)return!0;if(!(t instanceof Ke))return!1;var e=t instanceof Ke?t:$();return this.name===e.name};function ln(t){this.key=t}i(ln).q1=function(){return this.key};function Rg(t){return t.stringify()}function G(t,e,n){var r;n===u?r=[]:r=n,n=r,this.name=t,this.returnType=e,this.params=n}i(G).pg=function(){return this.name};i(G).lm=function(){return this.returnType};i(G).mm=function(){return this.params};i(G).stringify=function(){return this.name+"("+vc(this.params,", ",u,u,u,u,Rg)+"): "+this.returnType.stringify()};i(G).equals=function(t){return this===t?!0:!(t==null||!ko(this).equals(ko(t))||(t instanceof G||$(),this.name!==t.name)||!this.returnType.equals(t.returnType)||!Bs(this.params,t.params))};i(G).hashCode=function(){var t=Ge(this.name);return t=B(31,t)+this.returnType.hashCode()|0,t=B(31,t)+Ks(this.params)|0,t};i(G).pc=function(){return this.name};i(G).qc=function(){return this.returnType};i(G).ed=function(){return this.params};i(G).nm=function(t,e,n){return new G(t,e,n)};i(G).copy=function(t,e,n,r){return t=t===u?this.name:t,e=e===u?this.returnType:e,n=n===u?this.params:n,this.nm(t,e,n)};i(G).toString=function(){return"MethodInfo(name="+this.name+", returnType="+this.returnType.toString()+", params="+F(this.params)+")"};function nt(t,e){this.name=t,this.type=e}i(nt).pg=function(){return this.name};i(nt).hf=function(){return this.type};i(nt).pc=function(){return this.name};i(nt).qc=function(){return this.type};i(nt).om=function(t,e){return new nt(t,e)};i(nt).copy=function(t,e,n){return t=t===u?this.name:t,e=e===u?this.type:e,this.om(t,e)};i(nt).toString=function(){return"PropInfo(name="+this.name+", type="+this.type.toString()+")"};i(nt).hashCode=function(){var t=Ge(this.name);return t=B(t,31)+this.type.hashCode()|0,t};i(nt).equals=function(t){if(this===t)return!0;if(!(t instanceof nt))return!1;var e=t instanceof nt?t:$();return!(this.name!==e.name||!this.type.equals(e.type))};function Qt(t,e,n){var r;e===u?r=[]:r=e,e=r;var a;n===u?a=[]:a=n,n=a,this.type=t,this.props=e,this.methods=n}i(Qt).hf=function(){return this.type};i(Qt).pm=function(t){this.props=t};i(Qt).qm=function(){return this.props};i(Qt).rm=function(t){this.methods=t};i(Qt).dd=function(){return this.methods};i(Qt).stringify=function(){var t,e=this.type;return e instanceof Ke?t=this.type.name:t=this.type.key,t};i(Qt).equals=function(t){return this===t?!0:!(t==null||!ko(this).equals(ko(t))||(t instanceof Qt||$(),!q(this.type,t.type))||!Bs(this.props,t.props)||!Bs(this.methods,t.methods))};i(Qt).hashCode=function(){var t=ct(this.type);return t=B(31,t)+Ks(this.props)|0,t=B(31,t)+Ks(this.methods)|0,t};i(Qt).pc=function(){return this.type};i(Qt).qc=function(){return this.props};i(Qt).ed=function(){return this.methods};i(Qt).sm=function(t,e,n){return new Qt(t,e,n)};i(Qt).copy=function(t,e,n,r){return t=t===u?this.type:t,e=e===u?this.props:e,n=n===u?this.methods:n,this.sm(t,e,n)};i(Qt).toString=function(){return"TypeInfo(type="+F(this.type)+", props="+F(this.props)+", methods="+F(this.methods)+")"};function Lg(t){return t.stringify()}function Og(t){return!1}function Oe(t){ie.call(this,t,"var"),this.vm_1=t}i(Oe).r1=function(){return this.vm_1};function $t(t,e){Oe.call(this,e),this.zm_1=t,this.name=e,this.an_1=this.zm_1+this.value.length|0,this.isEqual=this.name==="equal",this.isNotEqual=this.name==="notEqual"}i($t).tc=function(){return this.zm_1};i($t).pg=function(){return this.name};i($t).uc=function(){return this.an_1};i($t).nd=function(t,e){return e.getAttr(t,this.value)};i($t).cd=function(){return[this.value]};i($t).dd=function(){return[]};i($t).bn=function(){return this.isEqual};i($t).cn=function(){return this.isNotEqual};i($t).pc=function(){return this.zm_1};i($t).qc=function(){return this.name};i($t).dn=function(t,e){return new $t(t,e)};i($t).copy=function(t,e,n){return t=t===u?this.zm_1:t,e=e===u?this.name:e,this.dn(t,e)};i($t).toString=function(){return"Identifier(start="+this.zm_1+", name="+this.name+")"};i($t).hashCode=function(){var t=this.zm_1;return t=B(t,31)+Ge(this.name)|0,t};i($t).equals=function(t){if(this===t)return!0;if(!(t instanceof $t))return!1;var e=t instanceof $t?t:$();return!(this.zm_1!==e.zm_1||this.name!==e.name)};function gt(t,e,n,r){Oe.call(this,n.stringify()+"."+r),this.jh_1=t,this.kh_1=e,this.object0=n,this.property=r,this.isPropertyOr=this.property==="or",this.isPropertyAnd=this.property==="and",this.isPropertyIfElse=this.property==="ifElse"}i(gt).tc=function(){return this.jh_1};i(gt).uc=function(){return this.kh_1};i(gt).en=function(){return this.object0};i(gt).fn=function(){return this.property};i(gt).nd=function(t,e){var n=this.object0.nd(t,e);return n==null?null:e.getAttr(n,this.property)};i(gt).cd=function(){return rr([this.object0.properties,[this.property]])};i(gt).dd=function(){return this.object0.methods};i(gt).gn=function(){return this.isPropertyOr};i(gt).hn=function(){return this.isPropertyAnd};i(gt).in=function(){return this.isPropertyIfElse};i(gt).pc=function(){return this.jh_1};i(gt).qc=function(){return this.kh_1};i(gt).ed=function(){return this.object0};i(gt).fd=function(){return this.property};i(gt).jn=function(t,e,n,r){return new gt(t,e,n,r)};i(gt).copy=function(t,e,n,r,a){return t=t===u?this.jh_1:t,e=e===u?this.kh_1:e,n=n===u?this.object0:n,r=r===u?this.property:r,this.jn(t,e,n,r)};i(gt).toString=function(){return"MemberExpression(start="+this.jh_1+", end="+this.kh_1+", object0="+F(this.object0)+", property="+this.property+")"};i(gt).hashCode=function(){var t=this.jh_1;return t=B(t,31)+this.kh_1|0,t=B(t,31)+ct(this.object0)|0,t=B(t,31)+Ge(this.property)|0,t};i(gt).equals=function(t){if(this===t)return!0;if(!(t instanceof gt))return!1;var e=t instanceof gt?t:$();return!(this.jh_1!==e.jh_1||this.kh_1!==e.kh_1||!q(this.object0,e.object0)||this.property!==e.property)};function Et(t,e,n,r){var a=n.stringify();Oe.call(this,a+"("+In(r,",",u,u,u,u,Lg)+")"),this.eh_1=t,this.fh_1=e,this.callee=n,this.arguments=r}i(Et).tc=function(){return this.eh_1};i(Et).uc=function(){return this.fh_1};i(Et).kn=function(){return this.callee};i(Et).ln=function(){return this.arguments};i(Et).nd=function(t,e){var n=this.callee,r;if(n instanceof Et)r=null;else if(n instanceof $t){var a;if(this.callee.isEqual)a=ar().compare(this.arguments.k(0).nd(t,e),this.arguments.k(1).nd(t,e));else if(this.callee.isNotEqual)a=!ar().compare(this.arguments.k(0).nd(t,e),this.arguments.k(1).nd(t,e));else{for(var o=this.arguments,s=Hi(Ys(o,10)),l=o.h();l.i();){var c=l.j(),f=c.nd(t,e);if(f==null)return null;s.f(f)}a=e.getInvoke(t,this.callee.name,s)}r=a}else if(n instanceof gt){var h=this.callee.object0.nd(t,e);if(h==null)return null;var d=h,v;if(this.callee.isPropertyOr){var _;if(typeof d=="boolean"?d:$())_=!0;else{var m=this.arguments.k(0).nd(t,e);if(m==null)return null;var g=m;_=typeof g=="boolean"?g:$()}v=_}else if(this.callee.isPropertyAnd){var y;if(typeof d=="boolean"?d:$()){var x=this.arguments.k(0).nd(t,e);if(x==null)return null;var C=x;y=typeof C=="boolean"?C:$()}else y=!1;v=y}else if(this.callee.isPropertyIfElse){var p;(typeof d=="boolean"?d:$())?p=this.arguments.k(0).nd(t,e):p=this.arguments.k(1).nd(t,e),v=p}else{for(var k=this.arguments,S=Hi(Ys(k,10)),I=k.h();I.i();){var A=I.j(),U=A.nd(t,e);if(U==null)return null;S.f(U)}v=e.getInvoke(d,this.callee.property,S)}r=v}else qn();return r};i(Et).cd=function(){for(var t=Dl(this.callee.properties),e=this.arguments,n=Tt(),r=e.h();r.i();){var a=r.j(),o=Fl(a.properties);Fo(n,o)}var s=mc(t,n);return bn(s)};i(Et).dd=function(){var t=this.callee,e;t instanceof Et?e=this.callee.methods:t instanceof $t?e=[this.callee.name]:t instanceof gt?e=rr([this.callee.object0.methods,[this.callee.property]]):qn();for(var n=Dl(e),r=this.arguments,a=Tt(),o=r.h();o.i();){var s=o.j(),l=Fl(s.methods);Fo(a,l)}var c=mc(n,a);return bn(c)};i(Et).pc=function(){return this.eh_1};i(Et).qc=function(){return this.fh_1};i(Et).ed=function(){return this.callee};i(Et).fd=function(){return this.arguments};i(Et).mn=function(t,e,n,r){return new Et(t,e,n,r)};i(Et).copy=function(t,e,n,r,a){return t=t===u?this.eh_1:t,e=e===u?this.fh_1:e,n=n===u?this.callee:n,r=r===u?this.arguments:r,this.mn(t,e,n,r)};i(Et).toString=function(){return"CallExpression(start="+this.eh_1+", end="+this.fh_1+", callee="+F(this.callee)+", arguments="+F(this.arguments)+")"};i(Et).hashCode=function(){var t=this.eh_1;return t=B(t,31)+this.fh_1|0,t=B(t,31)+ct(this.callee)|0,t=B(t,31)+ct(this.arguments)|0,t};i(Et).equals=function(t){if(this===t)return!0;if(!(t instanceof Et))return!1;var e=t instanceof Et?t:$();return!(this.eh_1!==e.eh_1||this.fh_1!==e.fh_1||!q(this.callee,e.callee)||!q(this.arguments,e.arguments))};function Ye(t,e){ie.call(this,t,e),this.pn_1=t,this.qn_1=e}i(Ye).r1=function(){return this.pn_1};i(Ye).hf=function(){return this.qn_1};i(Ye).nd=function(t,e){return this.value};i(Ye).cd=function(){return[]};i(Ye).dd=function(){return[]};function Pe(t){Ye.call(this,null,"null"),this.vn_1=t,this.wn_1=this.vn_1+4|0}i(Pe).tc=function(){return this.vn_1};i(Pe).uc=function(){return this.wn_1};i(Pe).pc=function(){return this.vn_1};i(Pe).xn=function(t){return new Pe(t)};i(Pe).copy=function(t,e){return t=t===u?this.vn_1:t,this.xn(t)};i(Pe).toString=function(){return"NullLiteral(start="+this.vn_1+")"};i(Pe).hashCode=function(){return this.vn_1};i(Pe).equals=function(t){if(this===t)return!0;if(!(t instanceof Pe))return!1;var e=t instanceof Pe?t:$();return this.vn_1===e.vn_1};function _e(t,e){Ye.call(this,e,"boolean"),this.co_1=t,this.do_1=e,this.eo_1=this.co_1+(this.do_1?4:5)|0}i(_e).tc=function(){return this.co_1};i(_e).r1=function(){return this.do_1};i(_e).uc=function(){return this.eo_1};i(_e).pc=function(){return this.co_1};i(_e).qc=function(){return this.do_1};i(_e).fo=function(t,e){return new _e(t,e)};i(_e).copy=function(t,e,n){return t=t===u?this.co_1:t,e=e===u?this.do_1:e,this.fo(t,e)};i(_e).toString=function(){return"BooleanLiteral(start="+this.co_1+", value="+this.do_1+")"};i(_e).hashCode=function(){var t=this.co_1;return t=B(t,31)+ka(this.do_1)|0,t};i(_e).equals=function(t){if(this===t)return!0;if(!(t instanceof _e))return!1;var e=t instanceof _e?t:$();return!(this.co_1!==e.co_1||this.do_1!==e.do_1)};function Xt(t,e,n){Ye.call(this,n,"int"),this.ko_1=t,this.lo_1=e,this.mo_1=n}i(Xt).tc=function(){return this.ko_1};i(Xt).uc=function(){return this.lo_1};i(Xt).r1=function(){return this.mo_1};i(Xt).pc=function(){return this.ko_1};i(Xt).qc=function(){return this.lo_1};i(Xt).ed=function(){return this.mo_1};i(Xt).no=function(t,e,n){return new Xt(t,e,n)};i(Xt).copy=function(t,e,n,r){return t=t===u?this.ko_1:t,e=e===u?this.lo_1:e,n=n===u?this.mo_1:n,this.no(t,e,n)};i(Xt).toString=function(){return"IntLiteral(start="+this.ko_1+", end="+this.lo_1+", value="+this.mo_1+")"};i(Xt).hashCode=function(){var t=this.ko_1;return t=B(t,31)+this.lo_1|0,t=B(t,31)+this.mo_1|0,t};i(Xt).equals=function(t){if(this===t)return!0;if(!(t instanceof Xt))return!1;var e=t instanceof Xt?t:$();return!(this.ko_1!==e.ko_1||this.lo_1!==e.lo_1||this.mo_1!==e.mo_1)};function yt(t,e,n,r){r=r===u?null:r,Ye.call(this,n,"string"),this.td_1=t,this.ud_1=e,this.vd_1=n,this.wd_1=r;var a=this,o=this.wd_1,s;if(o==null)s=null;else{var l=dy(this.vd_1);s=l==null?o:l}var c=s,f;c==null?f=Og:f=c,a.xd_1=f}i(yt).tc=function(){return this.td_1};i(yt).uc=function(){return this.ud_1};i(yt).r1=function(){return this.vd_1};i(yt).oo=function(){return this.wd_1};i(yt).stringify=function(){return hy(this.vd_1)};i(yt).po=function(){return this.xd_1};i(yt).pc=function(){return this.td_1};i(yt).qc=function(){return this.ud_1};i(yt).ed=function(){return this.vd_1};i(yt).qo=function(){return this.wd_1};i(yt).ro=function(t,e,n,r){return new yt(t,e,n,r)};i(yt).copy=function(t,e,n,r,a){return t=t===u?this.td_1:t,e=e===u?this.ud_1:e,n=n===u?this.vd_1:n,r=r===u?this.wd_1:r,this.ro(t,e,n,r)};i(yt).toString=function(){return"StringLiteral(start="+this.td_1+", end="+this.ud_1+", value="+this.vd_1+", matches="+Yt(this.wd_1)+")"};i(yt).hashCode=function(){var t=this.td_1;return t=B(t,31)+this.ud_1|0,t=B(t,31)+Ge(this.vd_1)|0,t=B(t,31)+(this.wd_1==null?0:ct(this.wd_1))|0,t};i(yt).equals=function(t){if(this===t)return!0;if(!(t instanceof yt))return!1;var e=t instanceof yt?t:$();return!(this.td_1!==e.td_1||this.ud_1!==e.ud_1||this.vd_1!==e.vd_1||!q(this.wd_1,e.wd_1))};function ie(t,e){this.ld_1=t,this.md_1=e}i(ie).r1=function(){return this.ld_1};i(ie).hf=function(){return this.md_1};i(ie).stringify=function(){return Yt(this.value)};function Vt(t,e){t=t===u?"":t,this.so_1=t,this.uo_1=e}i(Vt).vo=function(t,e){return this.uo_1(t,e,this.so_1)};i(Vt).toString=function(){return"Parser(prefix="+this.so_1+", temp="+F(this.uo_1)+")"};i(Vt).hashCode=function(){var t=Ge(this.so_1);return t=B(t,31)+ct(this.uo_1)|0,t};i(Vt).equals=function(t){if(this===t)return!0;if(!(t instanceof Vt))return!1;var e=t instanceof Vt?t:$();return!(this.so_1!==e.so_1||!q(this.uo_1,e.uo_1))};function Ot(t,e){e=e===u?0:e,this.wo_1=t,this.xo_1=e}i(Ot).toString=function(){return"ParserResult(data="+Yt(this.wo_1)+", length="+this.xo_1+")"};i(Ot).hashCode=function(){var t=this.wo_1==null?0:ct(this.wo_1);return t=B(t,31)+this.xo_1|0,t};i(Ot).equals=function(t){if(this===t)return!0;if(!(t instanceof Ot))return!1;var e=t instanceof Ot?t:$();return!(!q(this.wo_1,e.wo_1)||this.xo_1!==e.xo_1)};function jg(t,e){var n=0,r=tn(e,n);if(!q(r==null?null:new ot(r),new ot(40)))return!1;n=n+1|0,n=n+t.yo_1.vo(e,n).xo_1|0;var a=ri(48,57),o=tn(e,n),s,l=o;if((l==null?null:new ot(l))!=null?s=a.xb(o):s=!1,!s)return!1;n=n+t.cp_1.vo(e,n).xo_1|0,n=n+t.yo_1.vo(e,n).xo_1|0;var c=tn(e,n);return q(c==null?null:new ot(c),new ot(44))}function zg(t,e,n){var r=is().allSubClasses,a;t:{for(var o=0,s=r.length;o<s;){var l=r[o];if(o=o+1|0,es(e,l.key,n)){a=l;break t}}a=null}var c=a,f;c==null?le(e,n,"CompareOperator"):f=c;var h=f;return new Jt(n,n+h.key.length|0,h)}function Al(t,e,n){var r=e;if((r==null?null:new ot(r))==null)return!1;var a,o,s,l=e;return q(l==null?null:new ot(l),new ot(95))?s=!0:s=ri(97,122).xb(e),s?o=!0:o=ri(65,90).xb(e),o?a=!0:a=!n&&ri(48,57).xb(e),a}function Df(t,e,n,r){return n=n===u?!1:n,Al(t,e,n)}function Is(t,e,n,r){if(es(e,r,n)){var a=tn(e,n+r.length|0),o,s=a;if((s==null?null:new ot(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 Bf(t,e,n){var r="tfn-"+t.ip_1.so_1+t.cp_1.so_1+t.jp_1;kt(e,n,r);var a=t.qp(e,n);return a}function Fg(t,e,n){var r=n,a=Bf(t,e,r);r=r+a.a()|0,r=r+t.yo_1.vo(e,r).xo_1|0;var o=zg(t,e,r);r=r+o.a()|0,r=r+t.yo_1.vo(e,r).xo_1|0;var s=Bf(t,e,r),l,c;if(q(o.value,as())||q(o.value,Lu())?c=s instanceof yt:c=!1,c){var f;try{f=yy(s.vd_1)}catch(m){var h;if(m instanceof xn){var d=m;le(e,r,"valid primitive string regex",d)}else throw m;f=h}var v=f;l=s.copy(u,u,u,v)}else l=s;var _=l;return r=r+_.a()|0,new dt(n,r,a,o,_)}function Dg(t,e,n){var r=n;r=r+t.yo_1.vo(e,r).xo_1|0;var a=Ou().allSubClasses,o;t:{for(var s=a.h();s.i();){var l=s.j();if(es(e,l.key,n)){o=l;break t}}o=null}var c=o,f;c==null?le(e,n,"LogicalOperator"):f=c;var h=f;return new Jt(r,r+h.key.length|0,h)}function Bg(t,e,n){var r=n;r=r+t.yo_1.vo(e,r).xo_1|0,kt(e,r,"!");var a=r;r=r+1|0,kt(e,r,"(");var o=t.rp(e,r,!0);return r=r+o.a()|0,new ne(a,o)}function Kg(t,e,n){for(var r=e,a="";r<R(t)&&Je(n,j(t,r));)a=a+Gt(j(t,r)),r=r+1|0;return new Ot(a,r-e|0)}function Ug(t,e,n){return kt(t,e,n,"whitespace"),it().yo_1.vo(t,e)}function Wg(t,e,n){var r=e,a=tn(t,r),o,s=a;if((s==null?null:new ot(s))!=null?o=!Je(n,a):o=!1,o)return new Ot("");kt(t,r,n,"*0-9a-zA-Z_");var l=Gt(j(t,r));if(r=r+1|0,l==="*")return new Ot(l,r-e|0);var c="1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_.";t:for(;r<R(t);){if(j(l,(r-e|0)-1|0)===46&&kt(t,r,n,"[0-9a-zA-Z_]"),Je(c,j(t,r)))l=l+Gt(j(t,r));else break t;r=r+1|0}return new Ot(l,r-e|0)}function Hg(t){return t.key}function Vg(t,e,n){var r=ss().allSubClasses,a;t:{for(var o=r.h();o.i();){var s=o.j();if(es(t,s.key,e)){a=s;break t}}a=null}var l=a,c;l==null?le(t,e,"ConnectOperator"):c=l;var f=c;return new Ot(f,f.key.length)}function Qg(t,e,n){var r=e;kt(t,r,n,"number");for(var a="";r<R(t)&&Je(n,j(t,r));)a=a+Gt(j(t,r)),r=r+1|0;var o;try{o=tm(a)}catch(l){var s;if(l instanceof Ci)le(t,e,"valid format number");else throw l;o=s}return new Ot(o,r-e|0)}function Gg(t,e,n){var r=e;kt(t,r,n);var a=j(t,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+it().yo_1.vo(t,r).xo_1|0,kt(t,r,it().cp_1.so_1+"n");var l;if(Je(it().cp_1.so_1,j(t,r))){var c=it().cp_1.vo(t,r);r=r+c.xo_1|0,l=c.wo_1}else l=1;var f=B(l,s);return r<R(t)&&j(t,r)===110?(r=r+1|0,new Ot(new An(1,f),r-e|0)):new Ot(new An(0,f),r-e|0)}function Jg(t,e,n){var r=e;kt(t,r,n);var a=Tt();if(j(t,r)===40){for(r=r+1|0,r=r+it().yo_1.vo(t,r).xo_1|0,kt(t,r,it().dp_1.so_1);j(t,r)!==41;){a.m()>0&&kt(t,r,"+-");var o=it().dp_1.vo(t,r);a.f(o),r=r+o.xo_1|0,r=r+it().yo_1.vo(t,r).xo_1|0,r>=R(t)&&kt(t,r,")")}r=r+1|0}else{var s=it().dp_1.vo(t,r);a.f(s),r=r+s.xo_1|0}for(var l=gh(),c=a.h();c.i();){var f=c.j(),h=f.wo_1,d=h.pc(),v=h.qc(),_=l.t1(d),m=(_==null?0:_)+v|0;l.u3(d,m)}for(var g=n0(l.m()),y=l.u1().h();y.i();){var x=y.j();x.q1()>1&&le(t,e,"power must be 0 or 1");var C=x.r1();g.u3(ht,C)}var p;try{var k=l.t1(1),S=k==null?0:k,I=l.t1(0);p=new Lt(S,I==null?0:I)}catch(Y){var A;if(Y instanceof xn)le(t,e,"valid polynomialExpression");else throw Y;p=A}var U=p;return new Ot(U,r-e|0)}function Yg(t,e,n){var r=e;kt(t,r,"("),r=r+1|0;for(var a=Tt();r<R(t)&&j(t,r)!==41;){r=r+it().yo_1.vo(t,r).xo_1|0;var o=it().cp_1.vo(t,r);a.l()?o.wo_1<=0&&le(t,r,"positive integer"):o.wo_1<=wa(a)&&le(t,r,">"+wa(a)),r=r+o.xo_1|0,a.f(o.wo_1),r=r+it().yo_1.vo(t,r).xo_1|0;var s=tn(t,r);q(s==null?null:new ot(s),new ot(44))&&(r=r+1|0,r=r+it().yo_1.vo(t,r).xo_1|0,kt(t,r,it().cp_1.so_1+")"))}return kt(t,r,")"),r=r+1|0,new Ot(new Me(a),r-e|0)}function Xg(t,e,n){var r=e,a;if(jg(it(),cn(t,e,R(t)))){var o=it().fp_1.vo(t,r);r=r+o.xo_1|0,a=new Ot(o.wo_1,r-e|0)}else{var s=it().ep_1.vo(t,e);r=r+s.xo_1|0,a=new Ot(s.wo_1,r-e|0)}return a}function Zg(t,e,n){var r=e,a=it().bp_1.vo(t,r);r=r+a.xo_1|0;var o=null;r<R(t)&&Je(it().gp_1.so_1,j(t,r))&&(o=it().gp_1.vo(t,r),r=r+o.xo_1|0);var s=o,l=s==null?null:s.wo_1;return new Ot(new pe(a.wo_1,l==null?new Lt:l),r-e|0)}function ty(t,e,n){var r=e;kt(t,r,n);var a=j(t,r);r=r+1|0,r>=R(t)&&le(t,r,"any char");var o="";t:for(;j(t,r)!==a;){if(r>=(R(t)-1|0)){kt(t,r,Gt(a));break t}var s=j(t,r),l=Fe(s);if(0<=l&&l<=31&&le(t,r,"0-1f escape char"),j(t,r)===92){r=r+1|0,kt(t,r);var c=o,f=j(t,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,kt(t,r,"0123456789abcdefABCDEF");while(d<2);var v=(r-2|0)+1|0,_=r+1|0,m=F(cn(t,v,_));h=$a(Af(m,16))}else if(f===117){var g=0;if(g<4)do g=g+1|0,r=r+1|0,kt(t,r,"0123456789abcdefABCDEF");while(g<4);var y=(r-4|0)+1|0,x=r+1|0,C=F(cn(t,y,x));h=$a(Af(C,16))}else le(t,r,"escape char");o=c+Gt(h)}else o=o+Gt(j(t,r));r=r+1|0}return r=r+1|0,new Ot(o,r-e|0)}function ey(t,e,n){var r=e;kt(t,r,n);var a=Gt(j(t,r));for(r=r+1|0;r<R(t)&&Je(it().kp_1,j(t,r));)j(t,r)===46&&kt(t,r+1|0,n),a=a+Gt(j(t,r)),r=r+1|0;return new Ot(a,r-e|0)}function ny(t,e,n){var r=e;kt(t,r,n),r=r+1|0,r=r+it().yo_1.vo(t,r).xo_1|0;var a=it().sp(t,r);return r=r+a.a()|0,kt(t,r,"]"),r=r+1|0,new Ot(a,r-e|0)}function ry(t,e,n){var r=e,a=!1,o=tn(t,r);q(o==null?null:new ot(o),new ot(64))&&(a=!0,r=r+1|0);var s=it().ap_1.vo(t,r);r=r+s.xo_1|0;for(var l=Tt();r<R(t)&&j(t,r)===91;){var c=it().mp_1.vo(t,r);r=r+c.xo_1|0,l.f(c.wo_1)}return s.xo_1===0&&l.m()===0&&le(t,r,"["),new Ot(new fe(a,s.wo_1,l),r-e|0)}function iy(t,e,n){var r=e;r=r+it().yo_1.vo(t,r).xo_1|0;var a=it().np_1.vo(t,r);r=r+a.xo_1|0;var o=Tt();t:for(;r<R(t)&&Je(it().yo_1.so_1,j(t,r));){if(r=r+it().zo_1.vo(t,r).xo_1|0,r>=R(t))break t;var s;if(Je(it().hp_1.so_1,j(t,r))){var l=it().hp_1.vo(t,r);r=r+l.xo_1|0,r=r+it().zo_1.vo(t,r).xo_1|0,s=l.wo_1}else s=new pe(u,new Lt(1,0));var c=s,f=it().np_1.vo(t,r);r=r+f.xo_1|0,o.f(Rf(c,f.wo_1))}return new Ot(Rf(a.wo_1,o),r-e|0)}function ay(t,e,n){return e!==R(t)&&le(t,e,"EOF"),new Ot(ht,0)}function oo(){Tl=this;var t=this;t.yo_1=new Vt(` \r
|
|
270
|
+
`,Kg);var e=this;e.zo_1=new Vt(` \r
|
|
271
|
+
`,Ug);var n=this;n.ap_1=new Vt("*1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_",Wg);var r=this,a=ss().allSubClasses,o=In(a,"",u,u,u,u,Hg);r.bp_1=new Vt(o,Vg);var s=this;s.cp_1=new Vt("1234567890",Qg);var l=this;l.dp_1=new Vt("+-1234567890n",Gg);var c=this;c.ep_1=new Vt("(0123456789n",Jg);var f=this;f.fp_1=new Vt(u,Yg);var h=this;h.gp_1=new Vt(this.ep_1.so_1,Xg);var d=this;d.hp_1=new Vt(this.bp_1.so_1,Zg);var v=this;v.ip_1=new Vt("`'\"",ty),this.jp_1="_"+In(ri(97,122),"")+In(ri(65,90),""),this.kp_1=this.jp_1+Gt(46)+In(ri(48,57),"");var _=this;_.lp_1=new Vt(this.jp_1,ey);var m=this;m.mp_1=new Vt("[",ny);var g=this;g.np_1=new Vt(u,ry);var y=this;y.op_1=new Vt(u,iy);var x=this;x.pp_1=new Vt(u,ay)}i(oo).qp=function(t,e){var n=e;if(n=n+this.yo_1.vo(t,n).xo_1|0,n>=R(t)&&le(t,n,"Variable"),Is(this,t,n,"true"))return new _e(n,!0);if(Is(this,t,n,"false"))return new _e(n,!1);if(Is(this,t,n,"null"))return new Pe(n);if(Je(this.ip_1.so_1,j(t,n))){var r=this.ip_1.vo(t,n);return n=n+r.xo_1|0,new yt(n-r.xo_1|0,n,r.wo_1)}if(j(t,n)===45){n=n+1|0;var a=this.cp_1.vo(t,n);return n=n+a.xo_1|0,new Xt((n-a.xo_1|0)-1|0,n,-a.wo_1|0)}if(Je(this.cp_1.so_1,j(t,n))){var o=this.cp_1.vo(t,n);return n=n+o.xo_1|0,new Xt(n-o.xo_1|0,n,o.wo_1)}var s=null;t:for(;n<R(t);){n=n+this.yo_1.vo(t,n).xo_1|0;var l=tn(t,n),c=l;if(q(c==null?null:new ot(c),new ot(40))){var f=n;if(n=n+1|0,n=n+this.yo_1.vo(t,n).xo_1|0,s!=null){s instanceof Et&&le(t,n,"Variable");for(var h=Tt();n<R(t)&&j(t,n)!==41;){var d=this.qp(t,n);h.f(d),n=n+d.a()|0;var v=tn(t,n);q(v==null?null:new ot(v),new ot(44))&&(n=n+1|0,n=n+this.yo_1.vo(t,n).xo_1|0)}n=n+this.yo_1.vo(t,n).xo_1|0,kt(t,n,")"),n=n+1|0,s=new Et(s.tc(),n,s,h)}else{var _=this.qp(t,n);n=n+_.a()|0,n=n+this.yo_1.vo(t,n).xo_1|0,kt(t,n,")"),n=n+1|0;var m=n,g;return _ instanceof _e?g=_.copy(f):_ instanceof Xt?g=_.copy(f,m):_ instanceof Pe?g=_.copy(f):_ instanceof yt||_ instanceof Et?g=_.copy(f,m):_ instanceof $t?g=_.copy(f):_ instanceof gt?g=_.copy(f,m):qn(),g}}else{var y=l;if(q(y==null?null:new ot(y),new ot(46))){n=n+1|0,s instanceof Oe||le(t,n,"Variable"),Al(this,tn(t,n),!0)||le(t,n,"Variable");var x;e:{var C=df(t,n),p=0,k=R(C);if(p<k)do{var S=p;p=p+1|0;var I=j(C,S);if(!Al(it(),I,!1)){x=cn(C,0,S);break e}}while(p<k);x=cn(C,0,R(C))}var A=F(x);s=new gt(s.tc(),n+A.length|0,s,A),n=n+A.length|0}else if(Df(this,l)){var U;e:{var Y=df(t,n),lt=0,Mt=R(Y);if(lt<Mt)do{var xt=lt;lt=lt+1|0;var ae=j(Y,xt);if(!Df(it(),ae)){U=cn(Y,0,xt);break e}}while(lt<Mt);U=cn(Y,0,R(Y))}var pt=F(U);s=new $t(n,pt),n=n+pt.length|0}else break t}}return s==null&&le(t,n,"Variable"),s};i(oo).rp=function(t,e,n){var r=e;r=r+this.yo_1.vo(t,r).xo_1|0;var a=Tt();t:for(;r<R(t)&&j(t,r)!==93&&j(t,r)!==41;){var o=j(t,r);if(o===40){var s=r;if(!a.l()){var l=wa(a),c;if(l instanceof Jt){var f=l.value;c=f instanceof Pn}else c=!1;if(!c){for(var h=0;(r-1|0)>=h&&Je(this.yo_1.so_1,j(t,(r-1|0)-h|0));)h=h+1|0;le(t,(r-h|0)-l.a()|0,"LogicalOperator")}}r=r+1|0;var d=this.sp(t,r);r=r+d.a()|0;var v=d;kt(t,r,")"),r=r+1|0;var _=r,m;if(v instanceof dt||v instanceof vt?m=v.copy(s,_):v instanceof ne?m=v.copy(s):qn(),a.f(m),n)break t}else if(Je("|&",o)){var g=Dg(this,t,r);r=r+g.a()|0,a.f(g),r=r+this.yo_1.vo(t,r).xo_1|0,kt(t,r,"(!"+this.lp_1.so_1)}else if(o===33){var y=Bg(this,t,r);r=r+y.a()|0,a.f(y),r=r+this.yo_1.vo(t,r).xo_1|0}else{var x=Fg(this,t,r);r=r+x.a()|0,a.f(x)}r=r+this.yo_1.vo(t,r).xo_1|0}if(a.l()&&le(t,r-e|0,"Expression"),a.m()===1){var C=Wi(a);return C instanceof He?C:$()}for(var p=Kl(a),k=0;k<p.m();){var S=p.k(k),I;if(S instanceof Jt?I=q(S.value,ju()):I=!1,I){var A=p.k(k-1|0),U=A instanceof He?A:$(),Y=p.k(k+1|0),lt=Y instanceof He?Y:$(),Mt=S instanceof Jt?S:$();p.p2(k,new vt(U.tc(),lt.uc(),U,Mt,lt)),p.x2(k-1|0),p.x2((k+1|0)-1|0)}else k=k+1|0}for(;p.m()>1;){var xt=p.k(0),ae=xt instanceof He?xt:$(),pt=p.k(1),W=pt instanceof Jt?pt:$(),Ft=p.k(2),ut=Ft instanceof He?Ft:$();p.p2(1,new vt(ae.tc(),ut.uc(),ae,W,ut)),p.x2(0),p.x2(1)}var Ut=Wi(p);return Ut instanceof He?Ut:$()};i(oo).sp=function(t,e,n,r){return n=n===u?!1:n,r===u?this.rp(t,e,n):r.rp.call(this,t,e,n)};var Tl;function it(){return Tl==null&&new oo,Tl}function qd(t){var e=0;e=e+it().yo_1.vo(t,e).xo_1|0;var n=it().op_1.vo(t,e);e=e+n.xo_1|0,e=e+it().yo_1.vo(t,e).xo_1|0,e=e+it().pp_1.vo(t,e).xo_1|0;var r=n.wo_1,a=Tt(),o=Tt();a.f(r.nc_1);for(var s=r.oc_1.h();s.i();){var l=s.j();a.f(l.oc_1),o.f(l.nc_1)}for(var c=Wh([new re(Wi(a))]),f=0,h=o.h();h.i();){var d=h.j(),v=f;f=v+1|0;var _=Ao(v),m=new Te(d,wa(c)),g=new re(a.k(_+1|0),m);c.f(g)}return new Ne(t,wa(c))}function oy(t){wy(t)}function Xr(t,e,n,r,a,o){this.booleanType=t,this.intType=e,this.stringType=n,this.contextType=r,this.nodeType=a,this.globalType=o}i(Xr).tp=function(){return this.booleanType};i(Xr).up=function(){return this.intType};i(Xr).vp=function(){return this.stringType};i(Xr).wp=function(){return this.contextType};i(Xr).xp=function(){return this.nodeType};i(Xr).yp=function(){return this.globalType};function sy(t){t=t===u?!1:t;var e=new Qt(Ma()),n=new Qt(Pa()),r=new Qt(Ra()),a=new Qt(new Ke("node")),o=new Qt(new Ke("context")),s=new Qt(new Ke("global")),l=e,c=new G("toInt",n),f=[e],h=new G("or",e,f),d=[e];l.methods=rr([[c,h,new G("and",e,d),new G("not",e)],As(e,n,r,a,o,"ifElse",e,2)]);var v=n,_=new G("toString",r),m=[n],g=new G("toString",r,m),y=[n],x=new G("plus",n,y),C=[n],p=new G("minus",n,C),k=[n],S=new G("times",n,k),I=[n],A=new G("div",n,I),U=[n],Y=new G("rem",n,U),lt=[n],Mt=new G("more",e,lt),xt=[n],ae=new G("moreEqual",e,xt),pt=[n],W=new G("less",e,pt),Ft=[n];v.methods=[_,g,x,p,S,A,Y,Mt,ae,W,new G("lessEqual",e,Ft)];var ut=r;ut.props=[new nt("length",n)];var Ut=r,Ie=[n],mn=new G("get",r,Ie),Rn=[n],Ar=new G("at",r,Rn),L=[n],ft=new G("substring",r,L),mt=[n,n],Dt=new G("substring",r,mt),de=new G("toInt",n),Jn=[n],Yn=new G("toInt",n,Jn),Xn=[r],Zr=new G("indexOf",n,Xn),fa=[r,n];Ut.methods=[mn,Ar,ft,Dt,de,Yn,Zr,new G("indexOf",n,fa)];var ca=a,ti;t?ti=[new nt("_id",n),new nt("_pid",n)]:ti=[],ca.props=rr([ti,[new nt("id",r),new nt("vid",r),new nt("name",r),new nt("text",r),new nt("desc",r),new nt("clickable",e),new nt("focusable",e),new nt("checkable",e),new nt("checked",e),new nt("editable",e),new nt("longClickable",e),new nt("visibleToUser",e),new nt("left",n),new nt("top",n),new nt("right",n),new nt("bottom",n),new nt("width",n),new nt("height",n),new nt("childCount",n),new nt("index",n),new nt("depth",n),new nt("parent",a)]]);var ei=a,so=[n];ei.methods=[new G("getChild",a,so)];var Tr=o,Ln=a.methods,ds=[n];Tr.methods=rr([Ln,[new G("getPrev",o,ds)]]);var vs=o;vs.props=rr([a.props,[new nt("prev",o),new nt("current",a)]]);var qi=s;qi.methods=rr([o.methods,As(e,n,r,a,o,"equal",e,2),As(e,n,r,a,o,"notEqual",e,2)]);var ps=s;return ps.props=o.props.slice(),new Xr(e,n,r,o,a,s)}function ly(t,e,n){var r;switch(e){case"plus":r=t+ze(n)|0;break;case"minus":r=t-ze(n)|0;break;case"times":r=B(t,ze(n));break;case"div":var a=ze(n);if(a===0)return null;r=t/a|0;break;case"rem":var o=ze(n);if(o===0)return null;r=t%o|0;break;case"more":r=t>ze(n);break;case"moreEqual":r=t>=ze(n);break;case"less":r=t<ze(n);break;case"lessEqual":r=t<=ze(n);break;default:r=null;break}return r}function uy(t,e,n){return vy(t,e,n)}function fy(t,e,n){switch(e){case"toInt":return t?1:0;case"not":return!t;default:return null}}function cy(t,e){return py(t,e)}function hy(t,e){e=e===u?34:e;var n=jh(t.length+2|0);n.b6(e);for(var r=0;r<R(t);){var a=j(t,r);r=r+1|0;var o=a===e?e:a===10?110:a===13?114:a===9?116:a===8?98:a===92?92:null,s=o;if((s==null?null:new ot(s))!=null){var l=o;n.a6("\\"+Yt(l==null?null:new ot(l)))}else{var c=Fe(a);if(0<=c&&c<=15){var f=Fe(a);n.a6("\\x0"+qf(f,16))}else if(16<=c&&c<=31){var h=Fe(a);n.a6("\\x"+qf(h,16))}else n.b6(a)}}return n.b6(e),n.toString()}function qs(t,e,n){if(yu(t,e)&&Kh(t,n)&&t.length>=(e.length+n.length|0)){var r=e.length,a=t.length-n.length|0;if(r<a)do{var o=r;if(r=r+1|0,Je("\\^$.?*|+()[]{}",j(t,o)))return null}while(r<a);return F(cn(t,e.length,t.length-n.length|0))}return null}function dy(t){var e=qs(t,"(?is)",".*");if(e!=null)return _y(e);var n=qs(t,"(?is).*",".*");if(n!=null)return my(n);var r=qs(t,"(?is).*","");return r!=null?gy(r):null}function ze(t,e){e=e===u?0:e;var n=t.k(e);return typeof n=="number"?n:$()}function vy(t,e,n){var r;switch(e){case"get":var a=tn(t,ze(n));r=Yt(a==null?null:new ot(a));break;case"at":var o=ze(n),s;if(o<0){var l=tn(t,R(t)+o|0);s=Yt(l==null?null:new ot(l))}else{var c=tn(t,o);s=Yt(c==null?null:new ot(c))}r=s;break;case"substring":var f;switch(n.m()){case 1:var h=ze(n);if(h<0)return null;if(h>=R(t))return"";var d=R(t);f=F(cn(t,h,d));break;case 2:var v=ze(n);if(v<0)return null;if(v>=R(t))return"";var _=ze(n,1);if(_<v)return null;var m=ba(_,R(t));f=F(cn(t,v,m));break;default:f=null;break}r=f;break;case"toInt":var g;switch(n.m()){case 0:g=ld(F(t));break;case 1:var y=ze(n);if(!(2<=y&&y<=36))return null;g=qu(F(t),y);break;default:g=null;break}r=g;break;case"indexOf":var x;switch(n.m()){case 1:var C=n.k(0),p=me(C)?C:null,k;if(p==null)return null;k=p;var S=k;x=nl(t,F(S));break;case 2:var I=n.k(0),A=me(I)?I:null,U;if(A==null)return null;U=A;var Y=U,lt=ze(n,1);x=nl(t,F(Y),lt);break;default:x=null;break}r=x;break;default:r=null;break}return r}function py(t,e){return e==="length"?R(t):null}function As(t,e,n,r,a,o,s,l){for(var c=0,f=nr(Array(l),null);c<l;)f[c]=t,c=c+1|0;for(var h=new G(o,s,f),d=0,v=nr(Array(l),null);d<l;)v[d]=e,d=d+1|0;for(var _=new G(o,s,v),m=0,g=nr(Array(l),null);m<l;)g[m]=n,m=m+1|0;for(var y=new G(o,s,g),x=0,C=nr(Array(l),null);x<l;)C[x]=r,x=x+1|0;for(var p=new G(o,s,C),k=0,S=nr(Array(l),null);k<l;)S[k]=a,k=k+1|0;return[h,_,y,p,new G(o,s,S)]}function _y(t){return function(e){return Au(e,t,!0)}}function my(t){return function(e){return Tu(e,t,!0)}}function gy(t){return function(e){return ts(e,t,!0)}}var So;function yy(t){if(So!==null){var e=Re(So)(t);return by(e)}if(t.length>=4&&yu(t,"(?")){var n=2,r=t.length;if(n<r)t:do{var a=n;n=n+1|0;var o=j(t,a);if(!(97<=o&&o<=122)&&!(65<=o&&o<=90))if(o===41){var s=dp(cn(t,2,a));s.f(new ot(103)),s.f(new ot(117));var l=In(s,""),c=a+1|0,f=t.substring(c),h=new RegExp(f,l);return ky(h)}else break t}while(n<r)}var d=rm(t);return Cy(d)}function wy(t){So=t}function by(t){return function(e){return t(F(e))}}function ky(t){return function(e){Oh(t);var n=t.exec(F(e));return n!=null&&n.index===0&&t.lastIndex===R(e)}}function Cy(t){return function(e){return t.w8(e)}}i(He).a=Mu;V(i(He),"binaryExpressions",function(){return this.bd()});V(i(dt),"properties",i(dt).cd);V(i(dt),"methods",i(dt).dd);V(i(qa),"allSubClasses",i(qa).kd);V(i(Ni),"minOffset",function(){return this.yd()});V(i(Ni),"maxOffset",function(){return this.zd()});V(i(Aa),"allSubClasses",i(Aa).kd);V(i(zt),"message",function(){return this.i7()});V(i(De),"value",function(){return this.r1()});V(i(Ta),"allSubClasses",i(Ta).kd);i(Jt).a=Mu;V(i(fe),"binaryExpressions",i(fe).bd);V(i(re),"length",i(re).a);V(i(ce),"cause",function(){return this.j7()});i(ie).a=Mu;V(i(ie),"value",function(){return this.r1()});V(i(ie),"type",function(){return this.hf()});V(i(ie),"properties",function(){return this.cd()});V(i(ie),"methods",function(){return this.dd()});Nd=new cs;Id=new Fu;So=null;V(Q,"Companion",is);V(Q,"Equal",ar);V(Q,"NotEqual",dd);V(Q,"Start",Yr);V(Q,"NotStart",vd);V(Q,"Include",Pu);V(Q,"NotInclude",pd);V(Q,"End",Ru);V(Q,"NotEnd",_d);V(Q,"Less",ao);V(Q,"LessEqual",md);V(Q,"More",gd);V(Q,"MoreEqual",yd);V(Q,"Matches",as);V(Q,"NotMatches",Lu);V(Ce,"Companion",ss);V(Ce,"BeforeBrother",wd);V(Ce,"AfterBrother",bd);V(Ce,"Ancestor",Co);V(Ce,"Child",kd);V(Ce,"Descendant",ls);De.Id=hn;De.Vid=dn;De.Text=vn;V(Pn,"Companion",Ou);V(Pn,"AndOperator",ju);V(Pn,"OrOperator",zu);V(Ne,"Companion",lg);V(Ct,"Companion",pg);V(ln,"BooleanType",Ma);V(ln,"IntType",Pa);V(ln,"StringType",Ra);ln.ObjectType=Ke;ie.Variable=Oe;ie.Identifier=$t;ie.MemberExpression=gt;ie.CallExpression=Et;ie.LiteralExpression=Ye;ie.NullLiteral=Pe;ie.BooleanLiteral=_e;ie.IntLiteral=Xt;ie.StringLiteral=yt;async function xy(t){t instanceof Promise&&(t=await t);const e={"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:e};try{if(t instanceof Response)n=(await WebAssembly.instantiateStreaming(t,a)).instance;else{const o=new WebAssembly.Module(t);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 Sy="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1729873789619/files/dist/assets/mod-BHC4TAjm.wasm",$y=xy(fetch(Sy)).then(t=>{const e=t.exports.toMatches;oy(e),po().wasmSupported=!0,console.log("use wasm matches")}).catch(t=>{po().wasmSupported=!1,console.error(t),console.log("use js matches")}),Kf=(t,e)=>{var n,r;return e=="_id"?t.id:e=="_pid"?t.pid:e=="parent"?(n=t.parent)!=null?n:null:(r=Reflect.get(t.attr,e))!=null?r:null},Uf=(t,e,n)=>{var r;if(e==="getChild"){const a=n.asJsReadonlyArrayView()[0];return(r=t.children[a])!=null?r:null}return null},Ts=Ct.Companion.multiplatformBuild((t,e)=>typeof t=="string"?cy(t,e):t instanceof ee?e==="prev"?t.prev:e==="current"?t.current:Kf(t.current,e):rf(t)?Kf(t,e):null,(t,e,n)=>{if(typeof t=="number")return ly(t,e,n);if(typeof t=="boolean")return fy(t,e);if(typeof t=="string")return uy(t,e,n);if(t instanceof ee){if(e==="getPrev"){const r=n.asJsReadonlyArrayView()[0];return Number.isSafeInteger(r)?t.getPrev(r):null}return Uf(t.current,e,n)}return rf(t)?Uf(t,e,n):null},t=>t.attr.name,t=>t.children,t=>t.parent),Ey=sy(!0).globalType,Ny=new Be(!1,!1),ho=t=>{var r;const e=Ne.Companion.parse(t);for(const a of e.binaryExpressions)if(a.operator.value.key=="~="&&!po().wasmSupported&&!Xf().ignoreWasmWarn){po().wasmErrorDlgVisible=!0;break}return Iy(e),{s:e,targetIndex:e.targetIndex,connectKeys:e.connectWrappers.map(a=>a.segment.operator.key),canQf:!!((r=e.quickFindValue)!=null&&r.value),qfIdValue:e.quickFindValue instanceof De.Id?e.quickFindValue.value:null,qfVidValue:e.quickFindValue instanceof De.Vid?e.quickFindValue.value:null,qfTextValue:e.quickFindValue instanceof De.Text?e.quickFindValue.value:null,canCopy:!e.binaryExpressions.some(a=>a.properties.some(o=>o.startsWith("_"))),toString:()=>e.stringify(),match:a=>{var o;return(o=e.match(a,Ts,Ny))!=null?o:void 0},querySelectorAll:a=>Ts.querySelectorAllArray(a,e),querySelectorTrackAll:a=>Ts.querySelectorAllContextArray(a,e).map(o=>o.toArray())}},Iy=t=>{const e=t.checkType(Ey);if(e!=null)throw e instanceof Se?new Error("不匹配表达式类型:"+e.exception.stringify(),{cause:e}):e instanceof on?new Error("不匹配操作符类型:"+e.exception.stringify(),{cause:e}):e instanceof ue?new Error("不匹配参数类型:"+e.call.stringify(),{cause:e}):e instanceof en?new Error("未知属性:"+e.value.stringify(),{cause:e}):e instanceof Ve?new Error("未知方法:"+e.value.stringify(),{cause:e}):e instanceof nn?new Error("未知属性:"+e.value.stringify(),{cause:e}):e instanceof Qe?new Error("未知方法:"+e.value.property,{cause:e}):e instanceof rn?new Error("未知方法参数:"+e.value.stringify(),{cause:e}):e instanceof an?new Error("未知方法参数:"+e.value.stringify(),{cause:e}):new Error("未知错误:"+e.message,{cause:e})},Du=H1(),Ad=X(()=>Du.width.value/100),Td=X(()=>Math.max(1200,Du.width.value));X(()=>Math.max(700,Du.height.value));var Bu={},hs={};Object.defineProperty(hs,"__esModule",{value:!0});function qy(t){return String.fromCharCode(parseInt(t.slice(1),16))}function Ay(t){return btoa(encodeURIComponent(t).replace(/%[0-9A-F]{2}/g,qy))}hs.encode=Ay;function Ty(t){return`%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`}function My(t){return decodeURIComponent(Array.from(atob(t),Ty).join(""))}hs.decode=My;Object.defineProperty(Bu,"__esModule",{value:!0});const Md=hs;function Py(t){return Md.decode(t.replace(/\-/g,"+").replace(/_/g,"/"))}var Ry=Bu.decode=Py;function Ly(t){return Md.encode(t).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}var Oy=Bu.encode=Ly;const jy={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},zy={flex:"","m-b-4px":"","pr-4px":""},Fy={key:0,underline:"","decoration-1":"","m-r-4px":"",title:"查询数量"},Dy=["title"],By=jt({__name:"SearchCard",props:{snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:fi},onUpdateTrack:{type:Function,default:fi}},setup(t){const e=t,n=tc(),{snapshotImportTime:r,snapshotImportId:a,snapshotImageId:o}=Zf(),s=Pt(""),l=Ol([]),c=Pt([]),f=C=>{const p=Q1(()=>ho(C),S=>typeof S=="string"?S:S instanceof Error&&S.cause instanceof zt?S.message:"非法选择器");if(l.find(S=>typeof S.selector=="object"&&S.selector.toString()==p.toString())){En.warning("不可重复选择");return}const k=p.querySelectorTrackAll(e.rootNode);if(k.length==0){En.success("没有选择到节点");return}return En.success(`选择到 ${k.length} 个节点`),l.unshift({selector:p,nodes:k,key:Date.now()}),k.length},h=C=>{if(l.find(S=>typeof S.selector=="string"&&S.selector.toString()==C)){En.warning("不可重复搜索");return}const p=[],k=[e.rootNode];for(;k.length>0;){const S=k.pop();Ki(S).includes(C)&&p.push(S),k.push(...[...S.children].reverse())}if(p.length==0){En.success("没有搜索到节点");return}return En.success(`搜索到 ${p.length} 个节点`),l.unshift({selector:C,nodes:p,key:Date.now()}),p.length},d=()=>{const C=l[0],p=C.nodes[0];Array.isArray(p)?typeof C.selector=="object"&&Array.isArray(p)&&e.onUpdateFocusNode(p[C.selector.targetIndex]):e.onUpdateFocusNode(p);const k=new Set(l.map(I=>I.key)),S=c.value.filter(I=>k.has(I));S.push(C.key),c.value=S},v=lf(()=>{const C=s.value.trim();if(C){if(m.value){if(!f(C))return}else if(!h(C))return;d()}});ja(async()=>{await $y;let C=0;n.query.gkd&&(C+=f(Ry(n.query.gkd))||0),n.query.str&&(C+=h(n.query.str)||0),C>0&&d()});const _=lf(async C=>{var lt,Mt,xt;const p=o[e.snapshot.id],k=a[e.snapshot.id],S=k?Xu(k):void 0,I=C.selector,A=C.nodes[0].at(-1),U=[((lt=A.quickFind)!=null?lt:A.idQf)&&A.attr.id&&I.qfIdValue,((Mt=A.quickFind)!=null?Mt:A.idQf)&&A.attr.vid&&I.qfVidValue,((xt=A.quickFind)!=null?xt:A.textQf)&&A.attr.text&&I.qfTextValue].some(Boolean),Y={id:e.snapshot.appId,name:tr(e.snapshot).name,groups:[{key:1,name:`[ChangeMe]规则名称-${D1().format("YYYY-MM-DD HH:mm:ss")}`,desc:"[ChangeMe]本规则由GKD网页端审查工具生成",rules:[{quickFind:U||void 0,activityIds:e.snapshot.activityId,matches:I.toString(),exampleUrls:k1(p),snapshotUrls:S}]}]};er(ac.stringify(Y,void 0,2))}),m=Pt(!0),g=X(()=>a[e.snapshot.id]),y=C=>{if(!g.value)return;const p=new URL(Xu(a[e.snapshot.id]));typeof C.selector=="object"?p.searchParams.set("gkd",Oy(C.selector.toString())):p.searchParams.set("str",C.selector.toString()),er(p.toString())},x=Pt(!0);return(C,p)=>{const k=j1,S=rc,I=z1,A=za,U=$o,Y=ic,lt=F1,Mt=Z1,xt=sv,ae=iv;return tt(),se(zn,null,[K(Ui,{initialValue:{top:40,right:Math.max(315,12*E(Ad)+135),width:Math.max(480,E(Td)*.3)},minWidth:300,sizeDraggable:"",class:"z-1 box-shadow-dim",show:E(x)},{default:T(({onRef:pt})=>[M("div",jy,[M("div",zy,[K(I,{value:E(m),"onUpdate:value":p[0]||(p[0]=W=>Bi(m)?m.value=W:null)},{default:T(()=>[K(S,null,{default:T(()=>[K(k,{value:!1},{default:T(()=>p[4]||(p[4]=[we(" 字符搜索 ")])),_:1}),K(k,{value:!0},{default:T(()=>p[5]||(p[5]=[we(" 选择器查询 ")])),_:1})]),_:1})]),_:1},8,["value"]),M("div",{"flex-1":"","cursor-move":"",ref:pt},null,512),K(U,{onClick:p[1]||(p[1]=W=>x.value=!E(x)),text:"",title:"最小化"},{icon:T(()=>[K(A,null,{default:T(()=>p[6]||(p[6]=[M("svg",{viewBox:"0 0 24 24"},[M("path",{fill:"currentColor",d:"M6 13v-2h12v2z"})],-1)])),_:1})]),_:1})]),K(lt,null,{default:T(()=>[K(Y,{value:E(s),"onUpdate:value":p[2]||(p[2]=W=>Bi(s)?s.value=W:null),placeholder:E(m)?"请输入选择器":"请输入字符",onKeyup:b1(E(v),["enter"]),inputProps:{class:"gkd_code"}},null,8,["value","placeholder","onKeyup"]),K(U,{onClick:E(v)},{icon:T(()=>[K(A,null,{default:T(()=>p[7]||(p[7]=[M("svg",{viewBox:"0 0 32 32"},[M("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)])),_:1})]),_:1},8,["onClick"])]),_:1}),p[14]||(p[14]=M("div",{"p-5px":""},null,-1)),K(ae,{expandedNames:E(c),"onUpdate:expandedNames":p[3]||(p[3]=W=>Bi(c)?c.value=W:null)},{default:T(()=>[(tt(!0),se(zn,null,ya(E(l),(W,Ft)=>(tt(),ve(xt,{key:W.key,name:W.key},{header:T(()=>[W.nodes.length>1?(tt(),se("span",Fy,Rt(W.nodes.length),1)):ye("",!0),M("span",{"break-all":"",title:typeof W.selector=="object"?"选择器":"搜索字符"},Rt(W.selector.toString()),9,Dy)]),"header-extra":T(()=>[typeof W.selector=="object"&&W.selector.canCopy?(tt(),ve(U,{key:0,size:"small",onClick:Cs(ut=>E(_)(W),["stop"]),title:"复制规则"},{icon:T(()=>[K(A,null,{default:T(()=>p[8]||(p[8]=[M("svg",{viewBox:"0 0 24 24"},[M("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)])),_:1})]),_:2},1032,["onClick"])):ye("",!0),p[11]||(p[11]=M("div",{"p-l-4px":""},null,-1)),E(g)?(tt(),ve(U,{key:1,size:"small",title:typeof W.selector=="object"?"复制查询链接":"复制搜索链接",onClick:Cs(ut=>y(W),["stop"])},{icon:T(()=>[K(A,null,{default:T(()=>p[9]||(p[9]=[M("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[M("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)])),_:1})]),_:2},1032,["title","onClick"])):ye("",!0),p[12]||(p[12]=M("div",{"p-l-4px":""},null,-1)),K(U,{size:"small",onClick:Cs(ut=>E(l).splice(Ft,1),["stop"]),title:"删除记录"},{icon:T(()=>[K(A,null,{default:T(()=>p[10]||(p[10]=[M("svg",{viewBox:"0 0 24 24"},[M("g",{fill:"none"},[M("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)])),_:1})]),_:2},1032,["onClick"])]),default:T(()=>[K(S,{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:T(()=>[typeof W.selector=="string"||W.selector.connectKeys.length===0?(tt(!0),se(zn,{key:0},ya(W.nodes.map(ut=>Array.isArray(ut)?ut[0]:ut),ut=>(tt(),ve(U,{key:ut.id,onClick:Ut=>C.onUpdateFocusNode(ut),size:"small",class:Kr({"color-[#00F]":ut===C.focusNode})},{default:T(()=>[we(Rt(E(Ki)(ut)),1)]),_:2},1032,["onClick","class"]))),128)):(tt(!0),se(zn,{key:1},ya(W.nodes.map(ut=>Array.isArray(ut)?ut:[ut]),(ut,Ut)=>(tt(),ve(Mt,{key:Ut},{default:T(()=>[K(U,{size:"small",onClick:Ie=>C.onUpdateTrack({nodes:ut,selector:W.selector})},{default:T(()=>[K(A,null,{default:T(()=>p[13]||(p[13]=[M("svg",{viewBox:"0 0 24 24"},[M("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)])),_:1})]),_:2},1032,["onClick"]),K(U,{onClick:Ie=>C.onUpdateFocusNode(ut[W.selector.targetIndex]),size:"small",class:Kr({"color-[#00F]":ut[W.selector.targetIndex]===C.focusNode})},{default:T(()=>[we(Rt(E(Ki)(ut[W.selector.targetIndex])),1)]),_:2},1032,["onClick","class"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["expandedNames"])])]),_:1},8,["initialValue","show"]),K(Ui,{initialValue:{bottom:8,right:16},minWidth:300,class:"z-1 box-shadow-dim rounded-1/2 bg-white",show:!E(x)},{default:T(({onRef:pt,moved:W})=>[M("div",{ref:pt},[K(U,{onClick:Ft=>{W||(x.value=!E(x))},circle:"",size:"large",title:"搜索面板"},{icon:T(()=>[K(A,null,{default:T(()=>p[15]||(p[15]=[M("svg",{viewBox:"0 0 24 24"},[M("path",{fill:"currentColor",d:"M2 19v-2h10v2zm0-5v-2h5v2zm0-5V7h5v2zm18.6 10l-3.85-3.85q-.6.425-1.312.638T14 16q-2.075 0-3.537-1.463T9 11t1.463-3.537T14 6t3.538 1.463T19 11q0 .725-.213 1.438t-.637 1.312L22 17.6zM14 14q1.25 0 2.125-.875T17 11t-.875-2.125T14 8t-2.125.875T11 11t.875 2.125T14 14"})],-1)])),_:1})]),_:2},1032,["onClick"])],512)]),_:1},8,["show"])],64)}}}),Wf=[],Ky=jt((t,e)=>{const n=X(()=>t.tag||"div");return()=>{var o,s,l,c;const r=(((s=(o=e.slots).default)==null?void 0:s.call(o))||Wf).filter(f=>typeof f.type!="symbol"),a=[];if(r.length>0&&a.push(r[0]),r.length>1)for(let f=1;f<r.length;f++){const h=((c=(l=e.slots).gap)==null?void 0:c.call(l,{index:f-1}))||Wf;a.push(...h),a.push(r[f])}return t.virtual?a:O(n.value,t,a)}},{props:["tag","virtual"]}),Uy={flex:"","flex-col":""},Wy={flex:"","items-center":"","px-8px":""},Hy={key:0,"w-1px":"","bg-gray":"","h-12px":""},Vy={href:"/",flex:"",title:"首页","mr-4px":""},Qy={flex:"","items-center":"","gap-2px":"","max-w-120px":""},Gy={"ml-8px":""},Jy=jt({__name:"WindowCard",props:{snapshot:{},rootNode:{},focusNode:{},focusCount:{},onUpdateFocusNode:{type:Function,default:fi}},setup(t){const e=t,n=Pt([]);Pr([()=>e.focusNode,()=>e.focusCount],async()=>{if(!e.focusNode)return;const h=e.focusNode.id;ma().then(async()=>{var _,m;await ec(100),h===((_=e.focusNode)==null?void 0:_.id)&&((m=r.value)==null||m.scrollTo({key:h,behavior:"smooth",debounce:!0}))});let d=e.focusNode.parent;if(!d)return;const v=new Set(n.value);for(;d;)v.add(d.id),d=d.parent;v.size==n.value.length&&n.value.every(_=>v.has(_))||(n.value=[...v])});const r=Pt(),a=(h,d)=>{var v;return d.id===((v=e.focusNode)==null?void 0:v.id)},o=h=>{var v;const d=h.option.idQf||h.option.textQf||h.option.quickFind;return{onClick:()=>{e.onUpdateFocusNode(h.option)},style:{color:h.option.id==((v=e.focusNode)==null?void 0:v.id)?"#00F":void 0,fontWeight:d?"bold":void 0}}},s=h=>Ki(h.option),l=X(()=>`${af(e.snapshot).manufacturer} Android ${af(e.snapshot).release||""}`),c=X(()=>tr(e.snapshot).isSystem),f=X(()=>!e.snapshot.activityId||!e.snapshot.appId?"":e.snapshot.activityId.startsWith(e.snapshot.appId)&&e.snapshot.activityId.length>e.snapshot.appId.length?e.snapshot.activityId.substring(e.snapshot.appId.length):e.snapshot.activityId);return(h,d)=>{const v=za,_=$o,m=nc,g=Tv;return tt(),se("div",Uy,[M("div",Wy,[K(E(Ky),{flex:"","flex-wrap":"","items-center":"","gap-8px":"",gkd_code:""},{gap:T(({index:y})=>[y>0?(tt(),se("div",Hy)):ye("",!0)]),default:T(()=>[M("a",Vy,[K(_,{text:""},{icon:T(()=>[K(v,null,{default:T(()=>d[7]||(d[7]=[M("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[M("path",{d:"M16.612 2.214a1.01 1.01 0 0 0-1.242 0L1 13.419l1.243 1.572L4 13.621V26a2.004 2.004 0 0 0 2 2h20a2.004 2.004 0 0 0 2-2V13.63L29.757 15L31 13.428zM18 26h-4v-8h4zm2 0v-8a2.002 2.002 0 0 0-2-2h-4a2.002 2.002 0 0 0-2 2v8H6V12.062l10-7.79l10 7.8V26z",fill:"currentColor"})],-1)])),_:1})]),_:1})]),K(m,null,{trigger:T(()=>[M("div",{onClick:d[0]||(d[0]=y=>E(er)(E(l)))},Rt(E(l)),1)]),default:T(()=>[d[8]||(d[8]=we(" 设备名称 "))]),_:1}),K(m,null,{trigger:T(()=>[M("div",{class:Kr({"opacity-50":!E(of)(h.snapshot).versionName})},Rt(E(of)(h.snapshot).versionName||"null"),3)]),default:T(()=>[d[9]||(d[9]=we(" GKD 版本 "))]),_:1}),M("div",Qy,[E(c)?(tt(),ve(m,{key:0},{trigger:T(()=>[K(v,{size:14},{default:T(()=>d[10]||(d[10]=[M("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[M("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98c0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.566.566 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98c0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73c0 .21-.02.43-.05.73l-.14 1.13l.89.7l1.08.84l-.7 1.21l-1.27-.51l-1.04-.42l-.9.68c-.43.32-.84.56-1.25.73l-1.06.43l-.16 1.13l-.2 1.35h-1.4l-.19-1.35l-.16-1.13l-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7l-1.06.43l-1.27.51l-.7-1.21l1.08-.84l.89-.7l-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13l-.89-.7l-1.08-.84l.7-1.21l1.27.51l1.04.42l.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43l.16-1.13l.2-1.35h1.39l.19 1.35l.16 1.13l1.06.43c.43.18.83.41 1.23.71l.91.7l1.06-.43l1.27-.51l.7 1.21l-1.07.85l-.89.7l.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4s-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2s2 .9 2 2s-.9 2-2 2z",fill:"currentColor"})],-1)])),_:1})]),default:T(()=>[d[11]||(d[11]=we(" 系统应用 "))]),_:1})):ye("",!0),K(m,null,{trigger:T(()=>[M("div",{onClick:d[1]||(d[1]=y=>E(er)(E(tr)(h.snapshot).name))},Rt(E(tr)(h.snapshot).name),1)]),default:T(()=>[d[12]||(d[12]=we(" 应用名称 "))]),_:1})]),K(m,null,{trigger:T(()=>[M("div",{onClick:d[2]||(d[2]=y=>E(er)(E(tr)(h.snapshot).versionName))},Rt(E(tr)(h.snapshot).versionName),1)]),default:T(()=>[d[13]||(d[13]=we(" 版本名称 "))]),_:1}),K(m,null,{trigger:T(()=>[M("div",{onClick:d[3]||(d[3]=y=>E(er)(E(tr)(h.snapshot).versionCode.toString()))},Rt(E(tr)(h.snapshot).versionCode),1)]),default:T(()=>[d[14]||(d[14]=we(" 版本代码 "))]),_:1}),K(m,null,{trigger:T(()=>[M("div",{onClick:d[4]||(d[4]=y=>E(er)(h.snapshot.appId))},Rt(h.snapshot.appId),1)]),default:T(()=>[d[15]||(d[15]=we(" 应用ID "))]),_:1}),K(m,null,{trigger:T(()=>[M("div",{onClick:d[5]||(d[5]=y=>E(er)(E(f))),class:Kr({"opacity-50":!E(f)})},Rt(E(f)||"null"),3)]),default:T(()=>[d[16]||(d[16]=we(" 界面ID "))]),_:1})]),_:1}),d[17]||(d[17]=M("div",{"flex-1":""},null,-1)),M("div",Gy,[Yf(h.$slots,"default")])]),d[18]||(d[18]=M("div",{"h-1px":"","mt-4px":"",bg:"#efeff5"},null,-1)),K(g,{ref_key:"treeRef",ref:r,virtualScroll:"",showLine:"",keyField:"id",expandedKeys:E(n),"onUpdate:expandedKeys":d[6]||(d[6]=y=>Bi(n)?n.value=y:null),data:[h.rootNode],filter:a,nodeProps:o,renderLabel:s},null,8,["expandedKeys","data","filter","nodeProps","renderLabel"])])}}}),Yy={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},Xy={flex:"","m-b-4px":"","pr-4px":""},Zy={"min-h-24px":""},tw={key:0,"color-red":"","whitespace-pre":""},ew=jt({__name:"RuleCard",props:{root:{},focusNode:{},onUpdateFocusNode:{}},setup(t){const e=t,n=Pt(!1),r=Pt(""),a=U1(r,500),o=f=>{if(f==null)return[];if(typeof f=="string")return[f];if(Array.isArray(f)&&f.every(h=>typeof h=="string"))return f},s=X(()=>{if(!a.value)return"";const f=(()=>{try{return ac.parse(a.value)}catch(p){return p}})();if(f instanceof Error)return`非法格式: ${f.message}`;if(typeof f!="object"&&f!==null)return"非法格式: 请使用对象格式";const h=o(f.matches);if(!h)return"非法格式: matches";const d=o(f.anyMatches);if(!d)return"非法格式: anyMatches";const v=o(f.excludeMatches);if(!v)return"非法格式: excludeMatches";const _=[];for(let p=0;p<h.length;p++){const k=h[p];try{_.push(ho(k))}catch(S){const I=S instanceof Error?S.message:String(S);return`非法选择器: matches[${p}]
|
|
274
|
+
错误: ${I}`}}const m=_.map(p=>p.querySelectorAll(e.root));if(_.length){const p=m.findIndex(k=>k.length===0);if(p>=0)return`无法匹配: matches[${p}] 查找结果为空`}const g=[];for(let p=0;p<d.length;p++){const k=d[p];try{g.push(ho(k))}catch(S){const I=S instanceof Error?S.message:String(S);return`非法选择器: anyMatches[${p}]
|
|
275
|
+
错误: ${I}`}}const y=g.map(p=>p.querySelectorAll(e.root));if(g.length&&y.every(p=>p.length===0))return"无法匹配: anyMatches 查找结果为空";if(!h.length&&!d.length)return"非法规则: matches 和 anyMatches 至少存在一个";const x=[];for(let p=0;p<v.length;p++){const k=v[p];try{x.push(ho(k))}catch(S){const I=S instanceof Error?S.message:String(S);return`非法选择器: excludeMatches[${p}]
|
|
276
|
+
错误: ${I}`}}const C=x.map(p=>p.querySelectorAll(e.root));if(x.length){const p=C.findIndex(k=>k.length!==0);if(p>=0)return`无法匹配: excludeMatches[${p}] 查找结果不为空`}return m.length?m.at(-1)[0]:y[0][0]}),l=X(()=>r.value&&a.value&&typeof s.value=="string"?s.value:""),c=X(()=>typeof s.value=="string"?null:s.value);return(f,h)=>{const d=za,v=$o,_=ic;return tt(),se(zn,null,[K(Ui,{initialValue:{top:40,right:Math.max(315,12*E(Ad)+135),width:Math.max(480,E(Td)*.3)},minWidth:300,sizeDraggable:"",class:"z-2 box-shadow-dim",show:E(n)},{default:T(({onRef:m})=>[M("div",Yy,[M("div",Xy,[h[4]||(h[4]=M("div",null,"测试规则",-1)),M("div",{"flex-1":"","cursor-move":"",ref:m},null,512),K(v,{onClick:h[0]||(h[0]=g=>n.value=!E(n)),text:"",title:"最小化"},{icon:T(()=>[K(d,null,{default:T(()=>h[3]||(h[3]=[M("svg",{viewBox:"0 0 24 24"},[M("path",{fill:"currentColor",d:"M6 13v-2h12v2z"})],-1)])),_:1})]),_:1})]),K(_,{value:E(r),"onUpdate:value":h[1]||(h[1]=g=>Bi(r)?r.value=g:null),type:"textarea",placeholder:"请输入单个规则测试",size:"small",class:"gkd_code m-b-4px",autosize:{minRows:10,maxRows:20}},null,8,["value"]),M("div",Zy,[E(l)?(tt(),se("div",tw,Rt(E(l)),1)):E(c)?(tt(),ve(v,{key:1,onClick:h[2]||(h[2]=g=>{var y;return(y=f.onUpdateFocusNode)==null?void 0:y.call(f,E(c))}),size:"small",class:Kr({"color-[#00F]":E(c)===f.focusNode})},{default:T(()=>[we(Rt(E(Ki)(E(c))),1)]),_:1},8,["class"])):ye("",!0)])])]),_:1},8,["initialValue","show"]),K(Ui,{initialValue:{bottom:56,right:16},minWidth:300,class:"z-1 box-shadow-dim rounded-1/2 bg-white",show:!E(n)},{default:T(({onRef:m,moved:g})=>[M("div",{ref:m},[K(v,{onClick:y=>{g||(n.value=!E(n))},circle:"",size:"large",title:"测试规则"},{icon:T(()=>[K(d,null,{default:T(()=>h[5]||(h[5]=[M("svg",{viewBox:"0 0 24 24"},[M("path",{fill:"currentColor",d:"M14.4 20L13 18.6l2.6-2.6l-2.6-2.6l1.4-1.4l2.6 2.6l2.6-2.6l1.4 1.4l-2.6 2.6l2.6 2.6l-1.4 1.4l-2.6-2.6zm1.975-9l-3.55-3.55l1.4-1.4l2.125 2.125l4.25-4.25L22 5.35zM2 17v-2h9v2zm0-8V7h9v2z"})],-1)])),_:1})]),_:2},1032,["onClick"])],512)]),_:1},8,["show"])],64)}}}),nw={"h-full":"",flex:"","gap-5px":"","p-5px":"","box-border":""},rw={key:0,class:"gkd_code py-2px px-4px rounded-2px bg-[#eee]"},dw=jt({__name:"SnapshotPage",setup(t){const e=(()=>{const p=()=>x1(()=>import("./TrackGraph-CInYslON.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url);return setTimeout(p,1e3),C1(p)})(),n=tc(),r=S1(),a=V1(),o=Xf(),s=X(()=>String(n.params.snapshotId||"")),l=X(()=>{const p=Number(n.query.showSize||"");return!Number.isSafeInteger(p)||p<=0?2e3:p}),c=Pt(""),f=Pt(),{snapshotImportId:h,waitInit:d}=Zf();ja(async()=>{if(!Number.isSafeInteger(+s.value)){En.error("非法快照ID");return}await d();const p=await sf.getItem(s.value);if(!p){Zu.start();try{const S=h[s.value]||await fetch("https://detect.gkd.li/api/getImportId?id="+s.value).then(I=>I.json());if(S&&Number.isSafeInteger(S)){r.replace({path:"/i/"+S,query:n.query});return}}finally{Zu.finish()}En.error("快照数据缺失");return}setTimeout(()=>{const S=h[p.id];S&&N1(S)},1e3),A1()&&(await o.waitInit()).autoUploadImport&&setTimeout(async()=>{I1(p),h[p.id]||q1(await sf.getItem(s.value))},1e3),p.nodes.length>l.value&&(En.warning(`当前展示节点数量为${l.value}
|
|
277
|
+
之后的${p.nodes.length-l.value}个节点将被丢弃
|
|
278
|
+
使用showSize查询参数可以修改展示数量`),p.nodes=p.nodes.slice(0,l.value));const k=await K1.getItem(s.value);if(!k){En.create("截屏数据缺失");return}c.value=URL.createObjectURL(new Blob([k],{type:"image/png"})),f.value=p,v.value=B1(p.nodes),a.value="快照-"+tr(p).name||p.appId,_.value||(_.value=v.value)});const v=Pt(),_=Pt(),m=Pt(0),g=async()=>{En.success("删除成功,即将回到首页"),await ec(2e3),r.replace({path:"/"})},y=Pt(),x=Pt(!1);Fi(()=>{y.value&&(x.value=!0)});const C=Pt();return Pr(()=>_.value,p=>{var S;const k=(S=C.value)==null?void 0:S.nodes;k&&(!p||!k.includes(p))&&(C.value=void 0)}),(p,k)=>{const S=za,I=$1;return tt(),se(zn,null,[M("div",nw,[E(c)&&E(f)?(tt(),ve(Wv,{key:0,url:E(c),snapshot:E(f),rootNode:E(v),focusNode:E(_),onUpdateFocusNode:k[0]||(k[0]=A=>{_.value=A,m.value++}),onUpdateFocusNodes:k[1]||(k[1]=A=>C.value=A)},null,8,["url","snapshot","rootNode","focusNode"])):ye("",!0),E(f)&&E(v)?(tt(),ve(Jy,{key:1,rootNode:E(v),snapshot:E(f),focusNode:E(_),onUpdateFocusNode:k[2]||(k[2]=A=>_.value=A),focusCount:E(m),class:"flex-1"},{default:T(()=>[E(f)?(tt(),ve(E1,{key:0,snapshot:E(f),onDelete:g,showPreview:!1},null,8,["snapshot"])):ye("",!0)]),_:1},8,["rootNode","snapshot","focusNode","focusCount"])):ye("",!0)]),E(_)?(tt(),ve(Lv,{key:0,focusNode:E(_)},null,8,["focusNode"])):ye("",!0),E(v)&&E(f)?(tt(),ve(By,{key:1,snapshot:E(f),rootNode:E(v),focusNode:E(_),onUpdateFocusNode:k[3]||(k[3]=A=>{_.value=A,m.value++}),onUpdateTrack:k[4]||(k[4]=A=>y.value=A)},null,8,["snapshot","rootNode","focusNode"])):ye("",!0),K(jv,{focusNode:E(_),focusNodes:E(C),onUpdateFocusNode:k[5]||(k[5]=A=>{_.value=A,m.value++}),onClose:k[6]||(k[6]=A=>C.value=void 0)},null,8,["focusNode","focusNodes"]),E(v)?(tt(),ve(ew,{key:2,root:E(v),focusNode:E(_),onUpdateFocusNode:k[7]||(k[7]=A=>{_.value=A,m.value++})},null,8,["root","focusNode"])):ye("",!0),K(I,{show:E(x),"onUpdate:show":k[8]||(k[8]=A=>Bi(x)?x.value=A:null),preset:"dialog",title:"选择器路径视图",class:"min-w-[calc(var(--gkd-width)*0.4)]",onAfterLeave:k[9]||(k[9]=A=>y.value=void 0)},{icon:T(()=>[K(S,null,{default:T(()=>k[10]||(k[10]=[M("svg",{viewBox:"0 0 24 24"},[M("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)])),_:1})]),default:T(()=>[E(y)?(tt(),se("div",rw,Rt(E(y).selector.toString()),1)):ye("",!0),E(y)?(tt(),ve(E(e),{key:1,track:E(y)},null,8,["track"])):ye("",!0),k[11]||(k[11]=M("div",{"opacity-75":"","text-12px":""},"*为简化视图已隐藏部分节点",-1))]),_:1},8,["show"])],64)}}});export{dw as default};
|
|
279
|
+
//# sourceMappingURL=SnapshotPage-DYT1omfT.js.map
|