hlrender 0.0.170 → 0.0.171

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.
Files changed (98) hide show
  1. package/{_pdf-4a85c1fb.js → _pdf-bfdd10bc.js} +4 -4
  2. package/{_txt-5adcdbf1.js → _txt-c33693fd.js} +4 -4
  3. package/{affix-widget-79b241b8.js → affix-widget-89c96b85.js} +6 -6
  4. package/{alert-widget-3e4247ad.js → alert-widget-9f7d9224.js} +6 -6
  5. package/{anchor-widget-45a6a40c.js → anchor-widget-030d5227.js} +4 -4
  6. package/{auto-complete-widget-3fff90f7.js → auto-complete-widget-020d698b.js} +6 -6
  7. package/{avatar-widget-884a0520.js → avatar-widget-4bb98f07.js} +6 -6
  8. package/{backtop-widget-d3b577db.js → backtop-widget-91257217.js} +6 -6
  9. package/{badge-widget-61593567.js → badge-widget-b553a013.js} +6 -6
  10. package/{barcode-widget-92789c8c.js → barcode-widget-0e6d3296.js} +4 -4
  11. package/{breadcrumb-widget-990d00a9.js → breadcrumb-widget-447f55f9.js} +4 -4
  12. package/{button-widget-a1ca4081.js → button-widget-f4dddcdc.js} +6 -6
  13. package/{cache-widget-72263d58.js → cache-widget-dfef7f50.js} +5 -5
  14. package/{card-widget-469b9f74.js → card-widget-773fb4ea.js} +5 -5
  15. package/{carousel-widget-6df30912.js → carousel-widget-793fc0f4.js} +4 -4
  16. package/{cascader-widget-6548c333.js → cascader-widget-0f49301a.js} +5 -5
  17. package/{chart-widget-6a3e4235.js → chart-widget-d11e199f.js} +4 -4
  18. package/{checkbox-widget-ea9b34e9.js → checkbox-widget-12df0f50.js} +5 -5
  19. package/{collapse-widget-c284e536.js → collapse-widget-4db44cb7.js} +4 -4
  20. package/{color-picker-widget-8e15f7b7.js → color-picker-widget-adf1712b.js} +5 -5
  21. package/{cont-cell-widget-0fce44d4.js → cont-cell-widget-4584a6a8.js} +1 -1
  22. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-009e9be4.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-ba8024d2.js} +2 -2
  23. package/{cont-widget-8aaa30ec.js → cont-widget-22e96c0a.js} +3 -3
  24. package/{date-picker-range-widget-8230b77b.js → date-picker-range-widget-25316a6f.js} +5 -5
  25. package/{date-picker-widget-52cbd307.js → date-picker-widget-2f9a9acd.js} +5 -5
  26. package/{default-slot-widget-445d4395.js → default-slot-widget-15c18525.js} +4 -4
  27. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-1de61c58.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-f391cfe3.js} +2 -2
  28. package/{descriptions-widget-9cadd8c9.js → descriptions-widget-9c67d413.js} +5 -5
  29. package/{dialog-widget-c6669182.js → dialog-widget-47e4c83a.js} +6 -6
  30. package/{divider-widget-5b77d5f1.js → divider-widget-6f19639c.js} +6 -6
  31. package/{drag-wrapper-67e4186c.js → drag-wrapper-be2dc78b.js} +2 -2
  32. package/{drawer-widget-900796a3.js → drawer-widget-82846fa8.js} +6 -6
  33. package/{dropdown-widget-a51c706f.js → dropdown-widget-3b9660e2.js} +5 -5
  34. package/{empty-widget-711e74e7.js → empty-widget-6ccec39f.js} +6 -6
  35. package/{feedback-widget-57da153e.js → feedback-widget-0e0e82a2.js} +6 -6
  36. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-9d4f2d48.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-6e8849f4.js} +3 -3
  37. package/{file-upload-widget-b39e0d27.js → file-upload-widget-c843adbc.js} +9 -9
  38. package/{form-item-wrapper-b5a0c512.js → form-item-wrapper-1b7eae49.js} +2 -2
  39. package/{form-widget-ddb2ee4e.js → form-widget-7d92ee2e.js} +5 -5
  40. package/{grid-col-widget-2d946dbf.js → grid-col-widget-944c620b.js} +1 -1
  41. package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-85076faa.js +41 -0
  42. package/{grid-widget-3132011a.js → grid-widget-e9cd17b1.js} +3 -3
  43. package/{html-text-widget-cdd20c59.js → html-text-widget-3ae9eabe.js} +4 -4
  44. package/{icon-widget-a63ac01b.js → icon-widget-14246464.js} +4 -4
  45. package/{iframe-widget-7c833921.js → iframe-widget-f8864a60.js} +4 -4
  46. package/{image-widget-cc54893c.js → image-widget-73977c04.js} +4 -4
  47. package/{input-number-widget-bea9945a.js → input-number-widget-1b98f230.js} +5 -5
  48. package/{input-widget-df1e90d6.js → input-widget-16fc2818.js} +6 -6
  49. package/{link-widget-52b447c7.js → link-widget-4af34f2d.js} +6 -6
  50. package/{ltable-col-widget-b25ee568.js → ltable-col-widget-83753de7.js} +1 -1
  51. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-b388e891.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-8631e516.js} +4 -4
  52. package/{ltable-widget-559e10a6.js → ltable-widget-c4c3311c.js} +3 -3
  53. package/{menu-widget-832f79c1.js → menu-widget-ccc25618.js} +4 -4
  54. package/{model-widget-2237cd3e.js → model-widget-f7f4cd65.js} +4 -4
  55. package/{multirow-88d117c3.js → multirow-37bc1f23.js} +1 -1
  56. package/{multirow-widget-cd6fa990.js → multirow-widget-423e2d9f.js} +5 -5
  57. package/package.json +1 -1
  58. package/{pagination-widget-f03a8dd7.js → pagination-widget-93e23f6d.js} +4 -4
  59. package/{picture-upload-widget-3df831fa.js → picture-upload-widget-bb8d2bf6.js} +6 -6
  60. package/{progress-widget-0ed97d3e.js → progress-widget-443d4f26.js} +5 -5
  61. package/{qrcode-widget-198acb09.js → qrcode-widget-de81c9f7.js} +4 -4
  62. package/{radio-widget-97ac5675.js → radio-widget-8d4b7780.js} +5 -5
  63. package/{range-widget-425e5d09.js → range-widget-689d7987.js} +6 -6
  64. package/{rate-widget-7298f53c.js → rate-widget-c31949da.js} +5 -5
  65. package/render.es.js +21 -21
  66. package/render.umd.js +2 -2
  67. package/{result-widget-1db69d4a.js → result-widget-2cea0d8e.js} +5 -5
  68. package/{rich-editor-widget-8a4917e2.js → rich-editor-widget-de285c06.js} +5 -5
  69. package/{router-widget-c005111b.js → router-widget-d2849278.js} +4 -4
  70. package/{select-widget-52626b29.js → select-widget-c10a9645.js} +5 -5
  71. package/{sfc-7649bd5b.js → sfc-9e55283d.js} +1 -1
  72. package/{sfcview-a3a9e987.js → sfcview-f9db4e81.js} +1 -1
  73. package/{share-field-6fcd1d83.js → share-field-4b339579.js} +2 -2
  74. package/{share-file-bcd5df8e.js → share-file-fbe68ab1.js} +1 -1
  75. package/{slider-widget-8255d13e.js → slider-widget-8ac6a05e.js} +5 -5
  76. package/{static-text-widget-65e47322.js → static-text-widget-07941eb1.js} +4 -4
  77. package/{steps-widget-00a4813a.js → steps-widget-517ed1bb.js} +4 -4
  78. package/{switch-widget-235c1985.js → switch-widget-219c65da.js} +5 -5
  79. package/{tab-pane-widget-d3b6ba72.js → tab-pane-widget-cfed436d.js} +1 -1
  80. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-0415fd29.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-b57f30d3.js} +7 -7
  81. package/{table-col-widget-0b763344.js → table-col-widget-a790f611.js} +4 -4
  82. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8ba711af.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-e1703ee8.js} +2 -2
  83. package/{table-widget-d71174bf.js → table-widget-cecfeada.js} +6 -6
  84. package/{tabs-widget-6cc44681.js → tabs-widget-28fac8ff.js} +4 -4
  85. package/{tag-widget-f23d2a8c.js → tag-widget-540c484f.js} +6 -6
  86. package/{text-widget-e5cd6d67.js → text-widget-9ea271f4.js} +6 -6
  87. package/{textarea-widget-728de73a.js → textarea-widget-3a77dcf8.js} +5 -5
  88. package/{time-picker-range-widget-7f8116a1.js → time-picker-range-widget-3e6b6e77.js} +5 -5
  89. package/{time-picker-widget-4530e9b0.js → time-picker-widget-0e14b02b.js} +5 -5
  90. package/{time-select-widget-21fcabb6.js → time-select-widget-4126b9c9.js} +5 -5
  91. package/{tmpl-widget-8ab8aa9f.js → tmpl-widget-d54b553a.js} +5 -5
  92. package/{tree-select-widget-0355f65b.js → tree-select-widget-4dcb8313.js} +5 -5
  93. package/{tree-widget-c8309543.js → tree-widget-97a8193e.js} +4 -4
  94. package/{verifycode-widget-38104472.js → verifycode-widget-b561dde8.js} +4 -4
  95. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-3e91afbe.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-06fe973d.js} +1 -1
  96. package/{wrapper-widget-fd7f08bc.js → wrapper-widget-de9d04c1.js} +3 -3
  97. package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-fae40043.js +0 -41
  98. package/{index-98c90591.js → index-1a035ced.js} +4 -4
package/render.umd.js CHANGED
@@ -166,7 +166,7 @@ Expecting `+D.join(", ")+", got '"+(this.terminals_[x]||x)+"'":P="Parse error on
166
166
  `),u.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function DR(e,t){if(t.bookType=="fods")return TR(e,t);var n=rA(),r="",a=[],o=[];return r="mimetype",Or(n,r,"application/vnd.oasis.opendocument.spreadsheet"),r="content.xml",Or(n,r,TR(e,t)),a.push([r,"text/xml"]),o.push([r,"ContentFile"]),r="styles.xml",Or(n,r,Fye(e,t)),a.push([r,"text/xml"]),o.push([r,"StylesFile"]),r="meta.xml",Or(n,r,Ca+DL()),a.push([r,"text/xml"]),o.push([r,"MetadataFile"]),r="manifest.rdf",Or(n,r,Xde(o)),a.push([r,"application/rdf+xml"]),r="META-INF/manifest.xml",Or(n,r,Gde(a)),n}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function bb(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Mye(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):hu(Vc(e))}function Lye(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r<t.length;++r)if(e[n+r]!=t[r])continue e;return!0}return!1}function Hf(e){var t=e.reduce(function(a,o){return a+o.length},0),n=new Uint8Array(t),r=0;return e.forEach(function(a){n.set(a,r),r+=a.length}),n}function Rye(e,t,n){var r=Math.floor(n==0?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,a=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(r&127)<<1;for(var o=0;a>=1;++o,a/=256)e[t+o]=a&255;e[t+15]|=n>=0?0:128}function Yg(e,t){var n=t?t[0]:0,r=e[n]&127;e:if(e[n++]>=128&&(r|=(e[n]&127)<<7,e[n++]<128||(r|=(e[n]&127)<<14,e[n++]<128)||(r|=(e[n]&127)<<21,e[n++]<128)||(r+=(e[n]&127)*Math.pow(2,28),++n,e[n++]<128)||(r+=(e[n]&127)*Math.pow(2,35),++n,e[n++]<128)||(r+=(e[n]&127)*Math.pow(2,42),++n,e[n++]<128)))break e;return t&&(t[0]=n),r}function gi(e){var t=new Uint8Array(7);t[0]=e&127;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383||(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)||(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)||(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)||(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103))break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function j0(e){var t=0,n=e[t]&127;e:if(e[t++]>=128){if(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128))break e;n|=(e[t]&127)<<28}return n}function Na(e){for(var t=[],n=[0];n[0]<e.length;){var r=n[0],a=Yg(e,n),o=a&7;a=Math.floor(a/8);var i=0,u;if(a==0)break;switch(o){case 0:{for(var l=n[0];e[n[0]++]>=128;);u=e.slice(l,n[0])}break;case 5:i=4,u=e.slice(n[0],n[0]+i),n[0]+=i;break;case 1:i=8,u=e.slice(n[0],n[0]+i),n[0]+=i;break;case 2:i=Yg(e,n),u=e.slice(n[0],n[0]+i),n[0]+=i;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(a," at offset ").concat(r))}var s={data:u,type:o};t[a]==null?t[a]=[s]:t[a].push(s)}return t}function co(e){var t=[];return e.forEach(function(n,r){n.forEach(function(a){a.data&&(t.push(gi(r*8+a.type)),a.type==2&&t.push(gi(a.data.length)),t.push(a.data))})}),Hf(t)}function vu(e){for(var t,n=[],r=[0];r[0]<e.length;){var a=Yg(e,r),o=Na(e.slice(r[0],r[0]+a));r[0]+=a;var i={id:j0(o[1][0].data),messages:[]};o[2].forEach(function(u){var l=Na(u.data),s=j0(l[3][0].data);i.messages.push({meta:l,data:e.slice(r[0],r[0]+s)}),r[0]+=s}),(t=o[3])!=null&&t[0]&&(i.merge=j0(o[3][0].data)>>>0>0),n.push(i)}return n}function V0(e){var t=[];return e.forEach(function(n){var r=[];r[1]=[{data:gi(n.id),type:0}],r[2]=[],n.merge!=null&&(r[3]=[{data:gi(+!!n.merge),type:0}]);var a=[];n.messages.forEach(function(i){a.push(i.data),i.meta[3]=[{type:0,data:gi(i.data.length)}],r[2].push({data:co(i.meta),type:2})});var o=co(r);t.push(gi(o.length)),t.push(o),a.forEach(function(i){return t.push(i)})}),Hf(t)}function jye(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=Yg(t,n),a=[];n[0]<t.length;){var o=t[n[0]]&3;if(o==0){var i=t[n[0]++]>>2;if(i<60)++i;else{var u=i-59;i=t[n[0]],u>1&&(i|=t[n[0]+1]<<8),u>2&&(i|=t[n[0]+2]<<16),u>3&&(i|=t[n[0]+3]<<24),i>>>=0,i++,n[0]+=u}a.push(t.slice(n[0],n[0]+i)),n[0]+=i;continue}else{var l=0,s=0;if(o==1?(s=(t[n[0]]>>2&7)+4,l=(t[n[0]++]&224)<<3,l|=t[n[0]++]):(s=(t[n[0]++]>>2)+1,o==2?(l=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(l=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),a=[Hf(a)],l==0)throw new Error("Invalid offset 0");if(l>a[0].length)throw new Error("Invalid offset beyond length");if(s>=l)for(a.push(a[0].slice(-l)),s-=l;s>=a[a.length-1].length;)a.push(a[a.length-1]),s-=a[a.length-1].length;a.push(a[0].slice(-l,-l+s))}}var c=Hf(a);if(c.length!=r)throw new Error("Unexpected length: ".concat(c.length," != ").concat(r));return c}function gu(e){for(var t=[],n=0;n<e.length;){var r=e[n++],a=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(jye(r,e.slice(n,n+a))),n+=a}if(n!==e.length)throw new Error("data is not a valid framed stream!");return Hf(t)}function z0(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),a=new Uint8Array(4);t.push(a);var o=gi(r),i=o.length;t.push(o),r<=60?(i++,t.push(new Uint8Array([r-1<<2]))):r<=256?(i+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(i+=3,t.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(i+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(i+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),i+=r,a[0]=0,a[1]=i&255,a[2]=i>>8&255,a[3]=i>>16&255,n+=r}return Hf(t)}function TA(e,t){var n=new Uint8Array(32),r=bb(n),a=12,o=0;switch(n[0]=5,e.t){case"n":n[1]=2,Rye(n,a,e.v),o|=1,a+=16;break;case"b":n[1]=6,r.setFloat64(a,e.v?1:0,!0),o|=2,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(a,t.indexOf(e.v),!0),o|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,o,!0),n.slice(0,a)}function DA(e,t){var n=new Uint8Array(32),r=bb(n),a=12,o=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(a,e.v,!0),o|=32,a+=8;break;case"b":n[2]=6,r.setFloat64(a,e.v?1:0,!0),o|=32,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(a,t.indexOf(e.v),!0),o|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,o,!0),n.slice(0,a)}function Wf(e){var t=Na(e);return Yg(t[1][0].data)}function Vye(e,t,n){var r,a,o,i;if(!((r=e[6])!=null&&r[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var u=((i=(o=e[8])==null?void 0:o[0])==null?void 0:i.data)&&j0(e[8][0].data)>0||!1;if(u)throw"Math only works with normal offsets";for(var l=0,s=bb(e[7][0].data),c=0,f=[],p=bb(e[4][0].data),d=0,m=[],v=0;v<t.length;++v){if(t[v]==null){s.setUint16(v*2,65535,!0),p.setUint16(v*2,65535);continue}s.setUint16(v*2,c,!0),p.setUint16(v*2,d,!0);var h,g;switch(typeof t[v]){case"string":h=TA({t:"s",v:t[v]},n),g=DA({t:"s",v:t[v]},n);break;case"number":h=TA({t:"n",v:t[v]},n),g=DA({t:"n",v:t[v]},n);break;case"boolean":h=TA({t:"b",v:t[v]},n),g=DA({t:"b",v:t[v]},n);break;default:throw new Error("Unsupported value "+t[v])}f.push(h),c+=h.length,m.push(g),d+=g.length,++l}for(e[2][0].data=gi(l);v<e[7][0].data.length/2;++v)s.setUint16(v*2,65535,!0),p.setUint16(v*2,65535,!0);return e[6][0].data=Hf(f),e[3][0].data=Hf(m),l}function zye(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var r=js(n["!ref"]);r.s.r=r.s.c=0;var a=!1;r.e.c>9&&(a=!0,r.e.c=9),r.e.r>49&&(a=!0,r.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(Aa(r)));var o=Eb(n,{range:r,header:1}),i=["~Sh33tJ5~"];o.forEach(function(K){return K.forEach(function(G){typeof G=="string"&&i.push(G)})});var u={},l=[],s=_i.read(t.numbers,{type:"base64"});s.FileIndex.map(function(K,G){return[K,s.FullPaths[G]]}).forEach(function(K){var G=K[0],W=K[1];if(G.type==2&&G.name.match(/\.iwa/)){var Z=G.content,le=gu(Z),oe=vu(le);oe.forEach(function(re){l.push(re.id),u[re.id]={deps:[],location:W,type:j0(re.messages[0].meta[1][0].data)}})}}),l.sort(function(K,G){return K-G});var c=l.filter(function(K){return K>1}).map(function(K){return[K,gi(K)]});s.FileIndex.map(function(K,G){return[K,s.FullPaths[G]]}).forEach(function(K){var G=K[0];if(K[1],!!G.name.match(/\.iwa/)){var W=vu(gu(G.content));W.forEach(function(Z){Z.messages.forEach(function(le){c.forEach(function(oe){Z.messages.some(function(re){return j0(re.meta[1][0].data)!=11006&&Lye(re.data,oe[1])})&&u[oe[0]].deps.push(Z.id)})})})}});for(var f=_i.find(s,u[1].location),p=vu(gu(f.content)),d,m=0;m<p.length;++m){var v=p[m];v.id==1&&(d=v)}var h=Wf(Na(d.messages[0].data)[1][0].data);for(f=_i.find(s,u[h].location),p=vu(gu(f.content)),m=0;m<p.length;++m)v=p[m],v.id==h&&(d=v);for(h=Wf(Na(d.messages[0].data)[2][0].data),f=_i.find(s,u[h].location),p=vu(gu(f.content)),m=0;m<p.length;++m)v=p[m],v.id==h&&(d=v);for(h=Wf(Na(d.messages[0].data)[2][0].data),f=_i.find(s,u[h].location),p=vu(gu(f.content)),m=0;m<p.length;++m)v=p[m],v.id==h&&(d=v);var g=Na(d.messages[0].data);{g[6][0].data=gi(r.e.r+1),g[7][0].data=gi(r.e.c+1);var y=Wf(g[46][0].data),x=_i.find(s,u[y].location),_=vu(gu(x.content));{for(var w=0;w<_.length&&_[w].id!=y;++w);if(_[w].id!=y)throw"Bad ColumnRowUIDMapArchive";var E=Na(_[w].messages[0].data);E[1]=[],E[2]=[],E[3]=[];for(var S=0;S<=r.e.c;++S){var C=[];C[1]=C[2]=[{type:0,data:gi(S+420690)}],E[1].push({type:2,data:co(C)}),E[2].push({type:0,data:gi(S)}),E[3].push({type:0,data:gi(S)})}E[4]=[],E[5]=[],E[6]=[];for(var T=0;T<=r.e.r;++T)C=[],C[1]=C[2]=[{type:0,data:gi(T+726270)}],E[4].push({type:2,data:co(C)}),E[5].push({type:0,data:gi(T)}),E[6].push({type:0,data:gi(T)});_[w].messages[0].data=co(E)}x.content=z0(V0(_)),x.size=x.content.length,delete g[46];var A=Na(g[4][0].data);{A[7][0].data=gi(r.e.r+1);var D=Na(A[1][0].data),P=Wf(D[2][0].data);x=_i.find(s,u[P].location),_=vu(gu(x.content));{if(_[0].id!=P)throw"Bad HeaderStorageBucket";var O=Na(_[0].messages[0].data);for(T=0;T<o.length;++T){var I=Na(O[2][0].data);I[1][0].data=gi(T),I[4][0].data=gi(o[T].length),O[2][T]={type:O[2][0].type,data:co(I)}}_[0].messages[0].data=co(O)}x.content=z0(V0(_)),x.size=x.content.length;var N=Wf(A[2][0].data);x=_i.find(s,u[N].location),_=vu(gu(x.content));{if(_[0].id!=N)throw"Bad HeaderStorageBucket";for(O=Na(_[0].messages[0].data),S=0;S<=r.e.c;++S)I=Na(O[2][0].data),I[1][0].data=gi(S),I[4][0].data=gi(r.e.r+1),O[2][S]={type:O[2][0].type,data:co(I)};_[0].messages[0].data=co(O)}x.content=z0(V0(_)),x.size=x.content.length;var F=Wf(A[4][0].data);(function(){for(var K=_i.find(s,u[F].location),G=vu(gu(K.content)),W,Z=0;Z<G.length;++Z){var le=G[Z];le.id==F&&(W=le)}var oe=Na(W.messages[0].data);{oe[3]=[];var re=[];i.forEach(function(Y,Q){re[1]=[{type:0,data:gi(Q)}],re[2]=[{type:0,data:gi(1)}],re[3]=[{type:2,data:Mye(Y)}],oe[3].push({type:2,data:co(re)})})}W.messages[0].data=co(oe);var ne=V0(G),ve=z0(ne);K.content=ve,K.size=K.content.length})();var j=Na(A[3][0].data);{var L=j[1][0];delete j[2];var V=Na(L.data);{var X=Wf(V[2][0].data);(function(){for(var K=_i.find(s,u[X].location),G=vu(gu(K.content)),W,Z=0;Z<G.length;++Z){var le=G[Z];le.id==X&&(W=le)}var oe=Na(W.messages[0].data);{delete oe[6],delete j[7];var re=new Uint8Array(oe[5][0].data);oe[5]=[];for(var ne=0,ve=0;ve<=r.e.r;++ve){var Y=Na(re);ne+=Vye(Y,o[ve],i),Y[1][0].data=gi(ve),oe[5].push({data:co(Y),type:2})}oe[1]=[{type:0,data:gi(r.e.c+1)}],oe[2]=[{type:0,data:gi(r.e.r+1)}],oe[3]=[{type:0,data:gi(ne)}],oe[4]=[{type:0,data:gi(r.e.r+1)}]}W.messages[0].data=co(oe);var Q=V0(G),ae=z0(Q);K.content=ae,K.size=K.content.length})()}L.data=co(V)}A[3][0].data=co(j)}g[4][0].data=co(A)}d.messages[0].data=co(g);var R=V0(p),M=z0(R);return f.content=M,f.size=f.content.length,s}function Uye(e){return function(n){for(var r=0;r!=e.length;++r){var a=e[r];n[a[0]]===void 0&&(n[a[0]]=a[1]),a[2]==="n"&&(n[a[0]]=Number(n[a[0]]))}}}function kA(e){Uye([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function Hye(e,t){return t.bookType=="ods"?DR(e,t):t.bookType=="numbers"?zye(e,t):t.bookType=="xlsb"?Wye(e,t):Gye(e,t)}function Wye(e,t){L0=1024,e&&!e.SSF&&(e.SSF=xs(aa)),e&&e.SSF&&(rb(),nb(e.SSF),t.revssf=ib(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Kg?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n=t.bookType=="xlsb"?"bin":"xml",r=aR.indexOf(t.bookType)>-1,a=SL();kA(t=t||{});var o=rA(),i="",u=0;if(t.cellXfs=[],Uf(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),i="docProps/core.xml",Or(o,i,kL(e.Props,t)),a.coreprops.push(i),vi(t.rels,2,i,$r.CORE_PROPS),i="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],s=0;s<e.SheetNames.length;++s)(e.Workbook.Sheets[s]||{}).Hidden!=2&&l.push(e.SheetNames[s]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,Or(o,i,OL(e.Props)),a.extprops.push(i),vi(t.rels,3,i,$r.EXT_PROPS),e.Custprops!==e.Props&&oo(e.Custprops||{}).length>0&&(i="docProps/custom.xml",Or(o,i,IL(e.Custprops)),a.custprops.push(i),vi(t.rels,4,i,$r.CUST_PROPS)),u=1;u<=e.SheetNames.length;++u){var c={"!id":{}},f=e.Sheets[e.SheetNames[u-1]],p=(f||{})["!type"]||"sheet";switch(p){case"chart":default:i="xl/worksheets/sheet"+u+"."+n,Or(o,i,X1e(u-1,i,t,e,c)),a.sheets.push(i),vi(t.wbrels,-1,"worksheets/sheet"+u+"."+n,$r.WS[0])}if(f){var d=f["!comments"],m=!1,v="";d&&d.length>0&&(v="xl/comments"+u+"."+n,Or(o,v,Z1e(d,v)),a.comments.push(v),vi(c,-1,"../comments"+u+"."+n,$r.CMNT),m=!0),f["!legacy"]&&m&&Or(o,"xl/drawings/vmlDrawing"+u+".vml",rR(u,f["!comments"])),delete f["!comments"],delete f["!legacy"]}c["!id"].rId1&&Or(o,AL(i),F0(c))}return t.Strings!=null&&t.Strings.length>0&&(i="xl/sharedStrings."+n,Or(o,i,J1e(t.Strings,i,t)),a.strs.push(i),vi(t.wbrels,-1,"sharedStrings."+n,$r.SST)),i="xl/workbook."+n,Or(o,i,K1e(e,i)),a.workbooks.push(i),vi(t.rels,1,i,$r.WB),i="xl/theme/theme1.xml",Or(o,i,tR(e.Themes,t)),a.themes.push(i),vi(t.wbrels,-1,"theme/theme1.xml",$r.THEME),i="xl/styles."+n,Or(o,i,Y1e(e,i,t)),a.styles.push(i),vi(t.wbrels,-1,"styles."+n,$r.STY),e.vbaraw&&r&&(i="xl/vbaProject.bin",Or(o,i,e.vbaraw),a.vba.push(i),vi(t.wbrels,-1,"vbaProject.bin",$r.VBA)),i="xl/metadata."+n,Or(o,i,Q1e(i)),a.metadata.push(i),vi(t.wbrels,-1,"metadata."+n,$r.XLMETA),Or(o,"[Content_Types].xml",CL(a,t)),Or(o,"_rels/.rels",F0(t.rels)),Or(o,"xl/_rels/workbook."+n+".rels",F0(t.wbrels)),delete t.revssf,delete t.ssf,o}function Gye(e,t){L0=1024,e&&!e.SSF&&(e.SSF=xs(aa)),e&&e.SSF&&(rb(),nb(e.SSF),t.revssf=ib(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Kg?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=aR.indexOf(t.bookType)>-1,a=SL();kA(t=t||{});var o=rA(),i="",u=0;if(t.cellXfs=[],Uf(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),i="docProps/core.xml",Or(o,i,kL(e.Props,t)),a.coreprops.push(i),vi(t.rels,2,i,$r.CORE_PROPS),i="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],s=0;s<e.SheetNames.length;++s)(e.Workbook.Sheets[s]||{}).Hidden!=2&&l.push(e.SheetNames[s]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,Or(o,i,OL(e.Props)),a.extprops.push(i),vi(t.rels,3,i,$r.EXT_PROPS),e.Custprops!==e.Props&&oo(e.Custprops||{}).length>0&&(i="docProps/custom.xml",Or(o,i,IL(e.Custprops)),a.custprops.push(i),vi(t.rels,4,i,$r.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,u=1;u<=e.SheetNames.length;++u){var f={"!id":{}},p=e.Sheets[e.SheetNames[u-1]],d=(p||{})["!type"]||"sheet";switch(d){case"chart":default:i="xl/worksheets/sheet"+u+"."+n,Or(o,i,gR(u-1,t,e,f)),a.sheets.push(i),vi(t.wbrels,-1,"worksheets/sheet"+u+"."+n,$r.WS[0])}if(p){var m=p["!comments"],v=!1,h="";if(m&&m.length>0){var g=!1;m.forEach(function(y){y[1].forEach(function(x){x.T==!0&&(g=!0)})}),g&&(h="xl/threadedComments/threadedComment"+u+"."+n,Or(o,h,wme(m,c,t)),a.threadedcomments.push(h),vi(f,-1,"../threadedComments/threadedComment"+u+"."+n,$r.TCMNT)),h="xl/comments"+u+"."+n,Or(o,h,iR(m)),a.comments.push(h),vi(f,-1,"../comments"+u+"."+n,$r.CMNT),v=!0}p["!legacy"]&&v&&Or(o,"xl/drawings/vmlDrawing"+u+".vml",rR(u,p["!comments"])),delete p["!comments"],delete p["!legacy"]}f["!id"].rId1&&Or(o,AL(i),F0(f))}return t.Strings!=null&&t.Strings.length>0&&(i="xl/sharedStrings."+n,Or(o,i,XL(t.Strings,t)),a.strs.push(i),vi(t.wbrels,-1,"sharedStrings."+n,$r.SST)),i="xl/workbook."+n,Or(o,i,_R(e)),a.workbooks.push(i),vi(t.rels,1,i,$r.WB),i="xl/theme/theme1.xml",Or(o,i,tR(e.Themes,t)),a.themes.push(i),vi(t.wbrels,-1,"theme/theme1.xml",$r.THEME),i="xl/styles."+n,Or(o,i,qL(e,t)),a.styles.push(i),vi(t.wbrels,-1,"styles."+n,$r.STY),e.vbaraw&&r&&(i="xl/vbaProject.bin",Or(o,i,e.vbaraw),a.vba.push(i),vi(t.wbrels,-1,"vbaProject.bin",$r.VBA)),i="xl/metadata."+n,Or(o,i,nR()),a.metadata.push(i),vi(t.wbrels,-1,"metadata."+n,$r.XLMETA),c.length>1&&(i="xl/persons/person.xml",Or(o,i,Eme(c)),a.people.push(i),vi(t.wbrels,-1,"persons/person.xml",$r.PEOPLE)),Or(o,"[Content_Types].xml",CL(a,t)),Or(o,"_rels/.rels",F0(t.rels)),Or(o,"xl/_rels/workbook."+n+".rels",F0(t.wbrels)),delete t.revssf,delete t.ssf,o}function Kye(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=Mc(e.slice(0,12));break;case"binary":n=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function kR(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Ng(t.file,_i.write(e,{type:si?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return _i.write(e,t)}function Xye(e,t){var n=xs(t||{}),r=Hye(e,n);return Yye(r,n)}function Yye(e,t){var n={},r=si?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var a=e.FullPaths?_i.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if(typeof Deno<"u"&&typeof a=="string"){if(t.type=="binary"||t.type=="base64")return a;a=new Uint8Array(Z2(a))}return t.password&&typeof encrypt_agile<"u"?kR(encrypt_agile(a,t.password),t):t.type==="file"?Ng(t.file,a):t.type=="string"?Mg(a):a}function Jye(e,t){var n=t||{},r=fye(e,n);return kR(r,n)}function Xu(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return Og(Vc(r));case"binary":return Vc(r);case"string":return e;case"file":return Ng(t.file,r,"utf8");case"buffer":return si?Lc(r,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(r):Xu(r,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Zye(e,t){switch(t.type){case"base64":return Og(e);case"binary":return e;case"string":return e;case"file":return Ng(t.file,e,"binary");case"buffer":return si?Lc(e,"binary"):e.split("").map(function(n){return n.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function wb(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",r=0;r<e.length;++r)n+=String.fromCharCode(e[r]);return t.type=="base64"?Og(n):t.type=="string"?Mg(n):n;case"file":return Ng(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function PR(e,t){Ehe(),F1e(e);var n=xs(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),n.type=="array"){n.type="binary";var r=PR(e,n);return n.type="array",Z2(r)}var a=0;if(n.sheet&&(typeof n.sheet=="number"?a=n.sheet:a=e.SheetNames.indexOf(n.sheet),!e.SheetNames[a]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return Xu(uye(e,n),n);case"slk":case"sylk":return Xu(I0e.from_sheet(e.Sheets[e.SheetNames[a]],n),n);case"htm":case"html":return Xu(ER(e.Sheets[e.SheetNames[a]],n),n);case"txt":return Zye(IR(e.Sheets[e.SheetNames[a]],n),n);case"csv":return Xu(PA(e.Sheets[e.SheetNames[a]],n),n,"\uFEFF");case"dif":return Xu(B0e.from_sheet(e.Sheets[e.SheetNames[a]],n),n);case"dbf":return wb(O0e.from_sheet(e.Sheets[e.SheetNames[a]],n),n);case"prn":return Xu(N0e.from_sheet(e.Sheets[e.SheetNames[a]],n),n);case"rtf":return Xu(z0e.from_sheet(e.Sheets[e.SheetNames[a]],n),n);case"eth":return Xu(GL.from_sheet(e.Sheets[e.SheetNames[a]],n),n);case"fods":return Xu(DR(e,n),n);case"wk1":return wb(KL.sheet_to_wk1(e.Sheets[e.SheetNames[a]],n),n);case"wk3":return wb(KL.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),wb(wR(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),Jye(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return Xye(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function Qye(e,t,n,r,a,o,i,u){var l=lo(n),s=u.defval,c=u.raw||!Object.prototype.hasOwnProperty.call(u,"raw"),f=!0,p=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(p,"__rowNum__",{value:n,enumerable:!1})}catch{p.__rowNum__=n}else p.__rowNum__=n;if(!i||e[n])for(var d=t.s.c;d<=t.e.c;++d){var m=i?e[n][d]:e[r[d]+l];if(m===void 0||m.t===void 0){if(s===void 0)continue;o[d]!=null&&(p[o[d]]=s);continue}var v=m.v;switch(m.t){case"z":if(v==null)break;continue;case"e":v=v==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(o[d]!=null){if(v==null)if(m.t=="e"&&v===null)p[o[d]]=null;else if(s!==void 0)p[o[d]]=s;else if(c&&v===null)p[o[d]]=null;else continue;else p[o[d]]=c&&(m.t!=="n"||m.t==="n"&&u.rawNumbers!==!1)?v:zc(m,v,u);v!=null&&(f=!1)}}return{row:p,isempty:f}}function Eb(e,t){if(e==null||e["!ref"]==null)return[];var n={t:"n",v:0},r=0,a=1,o=[],i=0,u="",l={s:{r:0,c:0},e:{r:0,c:0}},s=t||{},c=s.range!=null?s.range:e["!ref"];switch(s.header===1?r=1:s.header==="A"?r=2:Array.isArray(s.header)?r=3:s.header==null&&(r=0),typeof c){case"string":l=Bi(c);break;case"number":l=Bi(e["!ref"]),l.s.r=c;break;default:l=c}r>0&&(a=0);var f=lo(l.s.r),p=[],d=[],m=0,v=0,h=Array.isArray(e),g=l.s.r,y=0,x={};h&&!e[g]&&(e[g]=[]);var _=s.skipHidden&&e["!cols"]||[],w=s.skipHidden&&e["!rows"]||[];for(y=l.s.c;y<=l.e.c;++y)if(!(_[y]||{}).hidden)switch(p[y]=Io(y),n=h?e[g][y]:e[p[y]+f],r){case 1:o[y]=y-l.s.c;break;case 2:o[y]=p[y];break;case 3:o[y]=s.header[y-l.s.c];break;default:if(n==null&&(n={w:"__EMPTY",t:"s"}),u=i=zc(n,null,s),v=x[i]||0,!v)x[i]=1;else{do u=i+"_"+v++;while(x[u]);x[i]=v,x[u]=1}o[y]=u}for(g=l.s.r+a;g<=l.e.r;++g)if(!(w[g]||{}).hidden){var E=Qye(e,l,g,p,r,o,h,s);(E.isempty===!1||(r===1?s.blankrows!==!1:s.blankrows))&&(d[m++]=E.row)}return d.length=m,d}var OR=/"/g;function qye(e,t,n,r,a,o,i,u){for(var l=!0,s=[],c="",f=lo(n),p=t.s.c;p<=t.e.c;++p)if(r[p]){var d=u.dense?(e[n]||[])[p]:e[r[p]+f];if(d==null)c="";else if(d.v!=null){l=!1,c=""+(u.rawNumbers&&d.t=="n"?d.v:zc(d,null,u));for(var m=0,v=0;m!==c.length;++m)if((v=c.charCodeAt(m))===a||v===o||v===34||u.forceQuotes){c='"'+c.replace(OR,'""')+'"';break}c=="ID"&&(c='"ID"')}else d.f!=null&&!d.F?(l=!1,c="="+d.f,c.indexOf(",")>=0&&(c='"'+c.replace(OR,'""')+'"')):c="";s.push(c)}return u.blankrows===!1&&l?null:s.join(i)}function PA(e,t){var n=[],r=t??{};if(e==null||e["!ref"]==null)return"";var a=Bi(e["!ref"]),o=r.FS!==void 0?r.FS:",",i=o.charCodeAt(0),u=r.RS!==void 0?r.RS:`
167
167
  `,l=u.charCodeAt(0),s=new RegExp((o=="|"?"\\|":o)+"+$"),c="",f=[];r.dense=Array.isArray(e);for(var p=r.skipHidden&&e["!cols"]||[],d=r.skipHidden&&e["!rows"]||[],m=a.s.c;m<=a.e.c;++m)(p[m]||{}).hidden||(f[m]=Io(m));for(var v=0,h=a.s.r;h<=a.e.r;++h)(d[h]||{}).hidden||(c=qye(e,a,h,f,i,l,o,r),c!=null&&(r.strip&&(c=c.replace(s,"")),(c||r.blankrows!==!1)&&n.push((v++?u:"")+c)));return delete r.dense,n.join("")}function IR(e,t){t||(t={}),t.FS=" ",t.RS=`
168
168
  `;var n=PA(e,t);return n}function $ye(e){var t="",n,r="";if(e==null||e["!ref"]==null)return[];var a=Bi(e["!ref"]),o="",i=[],u,l=[],s=Array.isArray(e);for(u=a.s.c;u<=a.e.c;++u)i[u]=Io(u);for(var c=a.s.r;c<=a.e.r;++c)for(o=lo(c),u=a.s.c;u<=a.e.c;++u)if(t=i[u]+o,n=s?(e[c]||[])[u]:e[t],r="",n!==void 0){if(n.F!=null){if(t=n.F,!n.f)continue;r=n.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(n.f!=null)r=n.f;else{if(n.t=="z")continue;if(n.t=="n"&&n.v!=null)r=""+n.v;else if(n.t=="b")r=n.v?"TRUE":"FALSE";else if(n.w!==void 0)r="'"+n.w;else{if(n.v===void 0)continue;n.t=="s"?r="'"+n.v:r=""+n.v}}l[l.length]=t+"="+r}return l}function BR(e,t,n){var r=n||{},a=+!r.skipHeader,o=e||{},i=0,u=0;if(o&&r.origin!=null)if(typeof r.origin=="number")i=r.origin;else{var l=typeof r.origin=="string"?Ga(r.origin):r.origin;i=l.r,u=l.c}var s,c={s:{c:0,r:0},e:{c:u,r:i+t.length-1+a}};if(o["!ref"]){var f=Bi(o["!ref"]);c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),i==-1&&(i=f.e.r+1,c.e.r=i+t.length-1+a)}else i==-1&&(i=0,c.e.r=t.length-1+a);var p=r.header||[],d=0;t.forEach(function(v,h){oo(v).forEach(function(g){(d=p.indexOf(g))==-1&&(p[d=p.length]=g);var y=v[g],x="z",_="",w=mi({c:u+d,r:i+h+a});s=Jg(o,w),y&&typeof y=="object"&&!(y instanceof Date)?o[w]=y:(typeof y=="number"?x="n":typeof y=="boolean"?x="b":typeof y=="string"?x="s":y instanceof Date?(x="d",r.cellDates||(x="n",y=ys(y)),_=r.dateNF||aa[14]):y===null&&r.nullError&&(x="e",y=0),s?(s.t=x,s.v=y,delete s.w,delete s.R,_&&(s.z=_)):o[w]=s={t:x,v:y},_&&(s.z=_))})}),c.e.c=Math.max(c.e.c,u+p.length-1);var m=lo(i);if(a)for(d=0;d<p.length;++d)o[Io(d+u)+m]={t:"s",v:p[d]};return o["!ref"]=Aa(c),o}function exe(e,t){return BR(null,e,t)}function Jg(e,t,n){if(typeof t=="string"){if(Array.isArray(e)){var r=Ga(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?Jg(e,mi(t)):Jg(e,mi({r:t,c:n||0}))}function txe(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function nxe(){return{SheetNames:[],Sheets:{}}}function rxe(e,t,n,r){var a=1;if(!n)for(;a<=65535&&e.SheetNames.indexOf(n="Sheet"+a)!=-1;++a,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var o=n.match(/(^.*?)(\d+)$/);a=o&&+o[2]||0;var i=o&&o[1]||n;for(++a;a<=65535&&e.SheetNames.indexOf(n=i+a)!=-1;++a);}if(xR(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function ixe(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=txe(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n}function axe(e,t){return e.z=t,e}function NR(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}function oxe(e,t,n){return NR(e,"#"+t,n)}function sxe(e,t,n){e.c||(e.c=[]),e.c.push({t,a:n||"SheetJS"})}function lxe(e,t,n,r){for(var a=typeof t!="string"?t:Bi(t),o=typeof t=="string"?t:Aa(t),i=a.s.r;i<=a.e.r;++i)for(var u=a.s.c;u<=a.e.c;++u){var l=Jg(e,i,u);l.t="n",l.F=o,delete l.v,i==a.s.r&&u==a.s.c&&(l.f=n,r&&(l.D=!0))}return e}var Sb={encode_col:Io,encode_row:lo,encode_cell:mi,encode_range:Aa,decode_col:pA,decode_row:fA,split_cell:Sde,decode_cell:Ga,decode_range:js,format_cell:zc,sheet_add_aoa:vL,sheet_add_json:BR,sheet_add_dom:SR,aoa_to_sheet:I0,json_to_sheet:exe,table_to_sheet:CR,table_to_book:Bye,sheet_to_csv:PA,sheet_to_txt:IR,sheet_to_json:Eb,sheet_to_html:ER,sheet_to_formulae:$ye,sheet_to_row_object_array:Eb,sheet_get_cell:Jg,book_new:nxe,book_append_sheet:rxe,book_set_sheet_visibility:ixe,cell_set_number_format:axe,cell_set_hyperlink:NR,cell_set_internal_link:oxe,cell_add_comment:sxe,sheet_set_array_formula:lxe,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}},OA={},uxe={get exports(){return OA},set exports(e){OA=e}};(function(e,t){(function(n,r){r()})(rr,function(){function n(s,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function r(s,c,f){var p=new XMLHttpRequest;p.open("GET",s),p.responseType="blob",p.onload=function(){l(p.response,c,f)},p.onerror=function(){console.error("could not download file")},p.send()}function a(s){var c=new XMLHttpRequest;c.open("HEAD",s,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function o(s){try{s.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),s.dispatchEvent(c)}}var i=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof rr=="object"&&rr.global===rr?rr:void 0,u=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=i.saveAs||(typeof window!="object"||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(s,c,f){var p=i.URL||i.webkitURL,d=document.createElement("a");c=c||s.name||"download",d.download=c,d.rel="noopener",typeof s=="string"?(d.href=s,d.origin===location.origin?o(d):a(d.href)?r(s,c,f):o(d,d.target="_blank")):(d.href=p.createObjectURL(s),setTimeout(function(){p.revokeObjectURL(d.href)},4e4),setTimeout(function(){o(d)},0))}:"msSaveOrOpenBlob"in navigator?function(s,c,f){if(c=c||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(n(s,f),c);else if(a(s))r(s,c,f);else{var p=document.createElement("a");p.href=s,p.target="_blank",setTimeout(function(){o(p)})}}:function(s,c,f,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof s=="string")return r(s,c,f);var d=s.type==="application/octet-stream",m=/constructor/i.test(i.HTMLElement)||i.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||d&&m||u)&&typeof FileReader<"u"){var h=new FileReader;h.onloadend=function(){var x=h.result;x=v?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=x:location=x,p=null},h.readAsDataURL(s)}else{var g=i.URL||i.webkitURL,y=g.createObjectURL(s);p?p.location=y:location.href=y,p=null,setTimeout(function(){g.revokeObjectURL(y)},4e4)}});i.saveAs=l.saveAs=l,e.exports=l})})(uxe);class IA{static export(t,n,r={}){try{const a=Sb.book_new(),o=r.sheetName||"Sheet1",i=n&&(n==null?void 0:n.length)>0?n:IA.buildColumns(t),u=this.buildExportData(t,i),l=Sb.aoa_to_sheet(u.data);return r.autoWidth!==!1&&(l["!cols"]=this.calculateColumnWidths(n,u.data)),l["!merges"]=u.merges,this.applyStyles(l,u.data,r),Sb.book_append_sheet(a,l,o),this.downloadWorkbook(a,r.filename||"export"),{success:!0,message:"",filename:r.filename||"export"}}catch(a){return Vi.error("Export failed:",a),{success:!1,message:a instanceof Error?a.message:"Export error"}}}static buildColumns(t){var r;if(!t||(t==null?void 0:t.length)<=0)return[];const n=t[0];return(r=Rr(n))==null?void 0:r.map(a=>({label:a,prop:a}))}static buildExportData(t,n){const r=this.buildHeaderStructure(n),a=this.buildHeaderData(r),o=this.buildBodyData(t,r.leafColumns),i=this.calculateMerges(r,a.length);return{data:[...a,...o],merges:i,leafColumns:r.leafColumns}}static buildHeaderStructure(t){const n=[],r=[],a=(o,i=0,u=0)=>{n[i]||(n[i]=[]);let l=0;return o.forEach(s=>{if(n[i].length,s.children&&s.children.length>0){const c=a(s.children,i+1,u);n[i].push({value:s.label,rowspan:1,colspan:c.colspan,depth:i,isLeaf:!1}),l+=c.colspan}else n[i].push({value:s.label,rowspan:n.length-i,colspan:1,depth:i,isLeaf:!0,prop:s.prop}),r.push(s),l+=1}),{rowspan:n.length-i,colspan:l}};a(t);for(let o=0;o<n.length;o++){const i=n[o],u=r.length;for(;i.length<u;)i.push({value:"",rowspan:1,colspan:1,depth:o,isLeaf:!1})}return{headers:n,leafColumns:r,maxDepth:n.length}}static buildHeaderData(t){const n=[];return t.headers.forEach((r,a)=>{const o=[];r.forEach(i=>{o.push(i.value);for(let u=1;u<i.colspan;u++)o.push("")}),n.push(o)}),n}static buildBodyData(t,n){return t.map((r,a)=>n.map(o=>{let i=r[o.prop];return o.formatter&&typeof o.formatter=="function"&&(i=o.formatter(r,o,i,a)),i??""}))}static calculateMerges(t,n){const r=[];let a=0;return((i,u=0)=>{i[0].forEach(l=>{(l.rowspan>1||l.colspan>1)&&r.push({s:{r:u,c:a},e:{r:u+l.rowspan-1,c:a+l.colspan-1}}),a+=l.colspan})})(t.headers),r}static calculateColumnWidths(t,n){const r=this.getLeafColumns(t),a=[];return r.forEach((o,i)=>{let u=o.width?o.width/7:15;const l=o.label.length*2;u=Math.max(u,l),n.forEach(s=>{if(s[i]!==void 0){const c=String(s[i]).length*1.5;u=Math.max(u,c)}}),a.push({width:Math.min(u,50)})}),a}static getLeafColumns(t){const n=[],r=a=>{a.forEach(o=>{o.children&&o.children.length>0?r(o.children):n.push(o)})};return r(t),n}static applyStyles(t,n,r){!r.headerStyle&&!r.dataStyle||Object.keys(t).forEach(a=>{if(a.startsWith("!"))return;const o=t[a];o.s||(o.s={});const i=Sb.decode_cell(a);i.r<n.length&&n[i.r]!==void 0&&(i.r<this.getHeaderRowCount(n)?Object.assign(o.s,r.headerStyle):Object.assign(o.s,r.dataStyle))})}static getHeaderRowCount(t){for(let n=0;n<t.length;n++)if(t[n].every(r=>!r||r===""))return n;return 1}static downloadWorkbook(t,n){const r=PR(t,{bookType:"xlsx",type:"array",cellStyles:!0}),a=new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),o=new Date().getTime();OA.saveAs(a,`${n}_${o}.xlsx`)}}function FR(){const e=b.ref(!1);return{exporting:e,exportExcel:async(n,r,a={})=>{e.value=!0;try{const o=IA.export(n,r,a);return o.success?oi.success(ie.i18nt("designer.hint.exportSuccess")):oi.error(o.message),o}catch{const i={success:!1,message:ie.i18nt("designer.hint.exportFail")};return oi.error(i.message),i}finally{e.value=!1}}}}const{openWindow:cxe}=xC(),{sendToIframe:fxe,sendToParent:pxe,receive:hxe,sendToIframeByName:dxe,send:mxe}=q9(),{exportExcel:vxe,exporting:gxe}=FR();function Gf(e){return{instance:e==null?void 0:e.instance,compParams:e==null?void 0:e.compParams,util:{url:Wu,cookie:m9,localStorage:ih,service:Oue,excel:{exporting:gxe,exportExcel:vxe},sysFunc:{...MR,idCardInfo:Ic,uniqueBy:aoe,sortBy:ioe,groupBy:lN,pageBy:uN},window:{openWindow:cxe,findUp:Bs.findUp,findDown:Bs.findDown,find:Bs.find,findByIframeId:Bs.findByIframeId,findTop:Bs.findTop},message:{send:mxe,sendToIframe:fxe,sendToParent:pxe,sendToIframeByName:dxe,receive:hxe},tip:{ElMessage:ta.ElMessage,ElMessageBox:ta.ElMessageBox,ElNotification:ta.ElNotification},json:{fromJson:ui,toJson:Ti},security:{CryptoJS:ml,SM:{SMWithTraceKey:Kue,SM2:sg,SM4:bC,SecInner:z_},AES:{CBC_Pkcs7:xhe,ECB_Pkcs7:_he}}}}}const MR=spe();pi.rowScope+"",ie.i18nt("designer.var.rowScope");const BA=function(e){return{[Ur.number]:/^[-+]?(\d+\.\d+|\d+|\.\d+)$/,[Ur.letter]:/^[A-Za-z]+$/,[Ur.letterAndNumber]:/^[A-Za-z0-9]+$/,[Ur.letterStartNumberIncluded]:/^[A-Za-z]+[A-Za-z\d]*$/,[Ur.mobilePhone]:/^[1][3-9][0-9]{9}$/,[Ur.email]:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,[Ur.url]:/^(https?|ftp):\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/,[Ur.noBlankStart]:/^[^\s].*$/,[Ur.noBlankEnd]:/^.*[^\s]$/,[Ur.noBlankStartEnd]:/^[^\s].*[^\s]$/,[Ur.weakPassword]:/^[A-Za-z\d]{6,}$/,[Ur.mediumPassword]:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/,[Ur.strongPassword]:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*]).{10,}$/,[Ur.noChinese]:/^[^\u4e00-\u9fa5]+$/,[Ur.chinese]:/^[\u4e00-\u9fa5]+$/,[Ur.chinaIdcard]:Ic.isValid,[Ur.required]:n=>n!=null&&n!==""&&(!Array.isArray(n)||n.length>0)}[e]},yxe=(e,t,n)=>{var r=new Error(t);return r.rule=e,r.force=n,r},LR=(e,t,n,r,a)=>{e?n():n(yxe(t,r,a))},Cb=function(e,t,n,r,a,o){if(N3(e)){r();return}let i=a,u=!0;Jae(e)?u=e==null?void 0:e(n):u=new RegExp(e).test(n),LR(u,t,r,i,o)},No=function(e,t,n,r,a,o){if(br(n)){r();return}if(Array.isArray(n)&&n.length<=0){r();return}Cb(BA(e),t,n,r,a,o)},U0={number(e,t,n,r){No(Ur.number,e,t,n,ie.i18nt("render.hint.numberFailed"),r)},letter(e,t,n,r){No(Ur.letter,e,t,n,ie.i18nt("render.hint.letterFailed"),r)},letterAndNumber(e,t,n,r){No(Ur.letterAndNumber,e,t,n,ie.i18nt("render.hint.letterAndNumberFailed"),r)},mobilePhone(e,t,n,r){No(Ur.mobilePhone,e,t,n,ie.i18nt("render.hint.mobilePhoneFailed"),r)},noBlankStart(e,t,n,r){No(Ur.noBlankStart,e,t,n,ie.i18nt("render.hint.noBlankStartFailed"),r)},noBlankEnd(e,t,n,r){No(Ur.noBlankEnd,e,t,n,ie.i18nt("render.hint.noBlankEndFailed"),r)},noBlankStartEnd(e,t,n,r){No(Ur.noBlankStartEnd,e,t,n,ie.i18nt("render.hint.noBlankStartEndFailed"),r)},letterStartNumberIncluded(e,t,n,r){No(Ur.letterStartNumberIncluded,e,t,n,ie.i18nt("render.hint.letterStartNumberIncludedFailed"),r)},noChinese(e,t,n,r){No(Ur.noChinese,e,t,n,ie.i18nt("render.hint.noChineseFailed"),r)},chinese(e,t,n,r){No(Ur.chinese,e,t,n,ie.i18nt("render.hint.chineseFailed"),r)},email(e,t,n,r){No(Ur.email,e,t,n,ie.i18nt("render.hint.emailFailed"),r)},url(e,t,n,r){No(Ur.url,e,t,n,ie.i18nt("render.hint.urlFailed"),r)},chinaIdcard(e,t,n,r){No(Ur.chinaIdcard,e,t,n,ie.i18nt("render.hint.chinaIdcardFailed"),r)},weakPassword(e,t,n,r){No(Ur.weakPassword,e,t,n,ie.i18nt("render.hint.weakPasswordFailed"),r)},mediumPassword(e,t,n,r){No(Ur.mediumPassword,e,t,n,ie.i18nt("render.hint.mediumPasswordFailed"),r)},strongPassword(e,t,n,r){No(Ur.strongPassword,e,t,n,ie.i18nt("render.hint.strongPasswordFailed"),r)},required(e,t,n,r,a){let o=a||ie.i18nt("render.hint.fieldRequired");Cb(BA(Ur.required),e,t,n,o,r)},regExp(e,t,n,r,a,o){return Cb(o,e,t,n,a||"invalid value",r)},range(e,t,n,r,a,o){return Cb(o,e,t,n,a||"invalid value",r)}};function zs(e,t,n,r){const a=t==null?void 0:t.designState,o=t,i=J=>e?gt.getOptions(e,J,!0)!=null:!1,u=(J,te=!1)=>e?gt.getOptions(e,J,te,!a,o):null,l=(J,te)=>{if(e)return gt.setOptions(e,J,te)},s=(J,te)=>{Ua(e==null?void 0:e.options,J)&&l(J,te)},c=J=>{const te=gt.getOrgOption(e,J);return v(te)},f=(J,te,fe=!1)=>{var Fe;const Ae=(Fe=e==null?void 0:e.options)==null?void 0:Fe[J];var Pe=fe?_e.getValue(Ae,!1,!a,{...o,schemaParams:te}):c(J);return Pe},p=(J,te,fe,Ae)=>{if(!te)return;fe==null||fe();const Pe=Rr(w.value).includes(te)?w:Rr(S.value).includes(te)?S:null;if(J&&Pe)b.watch(()=>{var Fe;return(Fe=Pe==null?void 0:Pe.value)==null?void 0:Fe[te]},(Fe,Me)=>{Ae==null||Ae(Fe,Me)},{immediate:!0});else{const Fe=u(te);b.isRef(Fe)?b.watch(Fe,(Me,We)=>{Ae==null||Ae(Me,We)},{immediate:!0}):Ae==null||Ae(Fe,null)}},d=(J,te)=>{e&&gt.setEnable(e,J,te)},m=(J,te,fe)=>Due(J,te,fe,t),v=J=>{var te=_e.getType(J),fe=_e.getValue(J,!1,!a,o);switch(te){case be.dataObject:{const Ae=gt.getOptions(J,"type");if(na(fe)&&Ae){if([Xe.array,Xe.object].includes(Ae))return fe==null||fe===""?null:ui(String(fe||""));if([Xe.bigint,Xe.number].includes(Ae))return Af(fe)}return fe}case be.slot:return G9(fe);case be.icon:{const{instance:Ae}=Xo(r);return Ae?PF(fe,Ae):fe}case be.event:case be.placerHook:case be.hook:{if(br(fe)||fe===""||a)break;return(...Pe)=>{let Fe={};var Me=1;Pe==null||Pe.map(ft=>Fe["args"+Me++]=ft);const{instance:We}=Xo(r||(o==null?void 0:o.instance)),Ue=Gf({instance:We,compParams:o==null?void 0:o.globalConfig});Fe[Dn.externalArgs]=Ue;const Je=fe;return Je!=null&&Je.type?m(Je,Fe,We):Vu(fe,Fe)}}default:return fe}},h=(J,te,fe)=>{var Ae=_e.getOptions(J),Pe={};return Pe.slotName=(Ae==null?void 0:Ae.slotName)||te,(J==null?void 0:J.widgetList)===void 0?Pe.widgetList=[]:Pe.widgetList=J==null?void 0:J.widgetList,Pe.default=fe?b.shallowRef(fe):null,Object.assign(J,Pe)},g=(J,te=!1,fe)=>{var Pe;var Ae={};return!e||!e.options||(Pe=Object.entries(e==null?void 0:e.options))==null||Pe.forEach(([Fe,Me])=>{if(!(fe&&!(fe!=null&&fe(Fe)))){var We=_e.getOrgType(Me);if(J.includes(We)){var Ue=te?_e.getValue(Me,!1,!a,o):c(Fe);We===be.slot?Ae[Fe]=h(Me,Fe,Ue):Ia(Ue)||(Ae[Fe]=Ue)}else We||[be.prop].some(Je=>J.includes(Je))&&(Ae[Fe]=Me)}}),Ae},y=J=>{const te=J==null?void 0:J.type;var fe=[];return te&&(fe=[],J.formItemFlag&&(fe=fe.concat(["name","defaultValue"]))),fe},x=J=>{const te=u(qt.state);te!=null&&b.isRef(te)&&(J.readonly=b.computed(()=>Cc(te)===Tc.readonly),J.disabled=b.computed(()=>{var fe=!i(Tc.readonly),Ae=Cc(te)===Tc.disabled,Pe=Cc(te)===Tc.readonly;return fe?Ae:Ae||Pe}),J.hidden=b.computed(()=>Cc(te)===Tc.hidden),J.custom=b.computed(()=>Cc(te)===Tc.custom))},_=()=>{var J=y(e)||[],te=g([be.icon,be.hook,be.variable,be.prop,be.dataObject],!1,fe=>{var Ae=!(n!=null&&n.fn_attr)||(n==null?void 0:n.fn_attr(fe)),Pe=!J.includes(fe);return Pe&&Ae});return x(te),b.reactive(te)},w=n!=null&&n.s_attr?b.computed(()=>_()):b.ref(),E=()=>{var J=g([be.placer,be.placerHook]);return b.reactive(J)},S=n!=null&&n.s_extendAttr?b.computed(()=>E()):b.ref(),C=n!=null&&n.s_events?b.computed(()=>g([be.event])):b.ref(),T=n!=null&&n.s_fieldName?b.computed({get:()=>u(qt.name),set:J=>{l(qt.name,J)}}):b.ref(),A=(J=!1)=>{var te=u(Dn.defaultValue,!0);return Ua(e==null?void 0:e.options,Dn.defaultValue)&&(!J||te!=null)},D=()=>{const J=()=>{let Me=u(Dn.defaultValue),We=u(Dn.defaultTime);return new Promise(Ue=>{Po(Me).then(Je=>{Po(We).then(ft=>{if(!Je)Ue(null);else{var jt=Eue(Kt(Je),Kt(ft));Ue(jt==null?void 0:jt.map(Ot=>cu(Ot)))}})})})},te=()=>{let Me=u(Dn.defaultValue),We=u(Dn.defaultTime);return new Promise(Ue=>{Po(Me).then(Je=>{Po(We).then(ft=>{if(!Je)Ue(null);else{var jt=CF(Kt(Je),Kt(ft));Ue(cu(jt))}})})})},fe=()=>{let Me=u(Dn.defaultValue);return new Promise(We=>{Po(Me).then(Ue=>{if(!Ue)We(null);else{var Je=S0(Ue);if(!Je){We(null);return}We(cu(Je))}})})},Ae=()=>{let Me=u(Dn.defaultValue);return new Promise(We=>{Po(Me).then(Ue=>{if(!Ue)We(null);else{var Je=cg(Kt(Ue));if(!Je){We(null);return}var ft=Je==null?void 0:Je.map(jt=>cu(jt));We(ft)}})})},Pe=(Me,We,Ue,Je="isdefault",ft="value")=>{var jt,Ot,Wt;return(We||Array.isArray(Ue))&&((jt=Kt(Ue))==null?void 0:jt.length)<=0?(Ot=Me==null?void 0:Me.filter(It=>It==null?void 0:It[Je]))==null?void 0:Ot.map(It=>It==null?void 0:It[ft]):(We===!1||br(We)||!Array.isArray(Ue))&&br(Ue)?(Wt=Me==null?void 0:Me.find(It=>It==null?void 0:It[Je]))==null?void 0:Wt[ft]:Ue};return{datePickerRangeDefaultValue:J,datePickerDefaultValue:te,timePickerDefaultValue:fe,timeRangePickerDefaultValue:Ae,optionWidgetDefaultValue:()=>new Promise(Me=>{let We=u(Dn.defaultValue);Po(We).then(Ue=>{const Je=u(Dn.multiple);Po(Je).then(ft=>{const jt=u(Dn.valueKey);Po(jt).then(Ot=>{const Wt=u(Dn.isdefaultKey);Po(Wt).then(It=>{Po(V).then(Vt=>{const bt=Pe(Vt,ft,Ue,It,Ot);Me(bt)})})})})})})}},P=()=>{if(!A())return;const J=D();return(e==null?void 0:e.type)===lt.datePickerRange?J.datePickerRangeDefaultValue():(e==null?void 0:e.type)===lt.datePicker?J.datePickerDefaultValue():(e==null?void 0:e.type)===lt.timePicker?J.timePickerDefaultValue():(e==null?void 0:e.type)===lt.timePickerRange?J.timeRangePickerDefaultValue():Ua(e==null?void 0:e.options,qt.optionItems)?J.optionWidgetDefaultValue():u(Dn.defaultValue)},O=n!=null&&n.s_slots?b.computed(()=>{var J=g([be.slot]);return Object.values(J)}):b.ref(),I=n!=null&&n.s_slots?b.computed(()=>{var J=g([be.slot],!0);return Object.values(J)}):b.ref(),N=J=>{var te=qt.optionItems;const fe=gt.getOrgOption(e,te);_e.isComplexValue(fe)||l(te,cN(J))},F=J=>{if(Ua(w.value,J)){var te=w.value[J];return b.isRef(te)?te:b.computed(()=>j(w.value[J]))}else if(Ua(S.value,J)){var fe=S.value[J];return b.isRef(fe)?fe:b.computed(()=>j(S.value[J]))}else{var Ae=u(J);return b.isRef(Ae)?Ae:b.computed(()=>j(u(J)))}},j=J=>{if(J==null)return J;if(b.isRef(J))return Cc(J);var te=or(J);return R3(te,(fe,Ae,Pe)=>{_e.needCalcValue(Pe)&&(fe[Ae]=_e.getValue(Pe,!0,!a,o))}),te===void 0?null:b.reactive(te)},L=()=>!!Ua(e==null?void 0:e.options,qt.optionItems);let V=null;n!=null&&n.s_optionItems&&L()&&(V=F(qt.optionItems));const X=J=>!!J.isdefault,R=J=>M(J,V==null?void 0:V.value),M=(J,te)=>{if(!Array.isArray(te))return;let fe=[];return oN(te,"children",Ae=>J(Ae),Ae=>{fe.push(Ae)}),fe},K=n!=null&&n.s_optionItems?b.computed(()=>R(X)):b.ref(),G=n!=null&&n.s_optionItems?b.computed(()=>{var J,te;if(Array.isArray(V==null?void 0:V.value)){const fe=(J=K==null?void 0:K.value)==null?void 0:J.length;return fe?(te=K==null?void 0:K.value)==null?void 0:te[fe-1]:void 0}}):b.ref(),W=n!=null&&n.s_optionItems?b.computed(()=>{var J;if(Array.isArray(V==null?void 0:V.value)){const te=(J=V==null?void 0:V.value)==null?void 0:J.findIndex(fe=>X(fe));return!isNaN(te)&&te>-1?te:0}return 0}):b.ref(0),Z=(J,te)=>{const fe=Cc(u(Dn.valueKey,!1));return M(Ae=>{var Pe=hi(J,!0);return Pe==null?void 0:Pe.includes(Ae==null?void 0:Ae[fe])},te||(V==null?void 0:V.value))},le=J=>u(Dn.multiple,!1)||J,oe=(J,te)=>{var Pe;const fe=Cc(u(Dn.labelKey,!1)),Ae=(Pe=Z(J))==null?void 0:Pe.map(Fe=>Fe==null?void 0:Fe[fe]);return le(te)?Ae:Ae==null?void 0:Ae[0]},re=(J,te)=>{var Pe;const fe=Cc(u(Dn.valueKey,!1)),Ae=(Pe=Z(J))==null?void 0:Pe.map(Fe=>Fe==null?void 0:Fe[fe]);return le(te)?Ae:Ae==null?void 0:Ae[0]},ne=(J,te)=>{var fe;return(fe=hi(oe(J,te),!0))==null?void 0:fe.join(",")},ve=[],Y=()=>{e!=null&&e.formItemFlag&&ve.splice(0,ve.length)},Q=J=>{var te=u("required",!0);const fe=Kt(te==null?void 0:te.options);if(fe!=null&&fe.enable)return{name:"required",label:J,required:!0,validator:(Ae,Pe,Fe)=>{var Me=zu(fe==null?void 0:fe.errorMsg,{...fe,label:J});U0[Ur.required](Ae,Pe,Fe,fe==null?void 0:fe.forceMatch,Me)}}},ae=J=>{var te=u("rangeValidate",!0);const fe=Kt(te==null?void 0:te.options);if(!(fe!=null&&fe.enable))return;let{minValue:Ae,maxValue:Pe,includeMaxValue:Fe,includeMinValue:Me}=fe,We="range";var Ue=ft=>{if(br(ft))return!0;const jt=parseFloat(ft),Ot=parseFloat(Ae),Wt=parseFloat(Pe),It=()=>isNaN(Ot)||br(Ae)||(Me?jt>=Ot:jt>Ot),Vt=()=>isNaN(Wt)||br(Pe)||(Fe?jt<=Wt:jt<Wt);return isNaN(jt)||It()&&Vt()};const Je=(ft,jt,Ot,Wt)=>{var It="";const Vt=!br(ft)&&(ft+"").trim()!="",bt=!br(Ot)&&(Ot+"").trim()!="",Ln="值",pt=(Ne,Oe,Le,Ye)=>{const xt="<",Nt=">",Gt="=";return Ye?Le?`${Nt}${Ne?Gt:""} ${Oe}`:`${xt}${Ne?Gt:""} ${Oe}`:Le?`${Oe} ${Nt}${Ne?Gt:""}`:`${Oe} ${xt}${Ne?Gt:""}`};if(Vt&&bt){var vt=pt(jt,ft,!1,!1),se=pt(Wt,Ot,!1,!0);It=`${vt} ${Ln} ${se}`}else Vt&&!bt?It=`${Ln} ${pt(jt,ft,!0,!0)}`:!Vt&&bt&&(It=`${Ln} ${pt(jt,Ot,!1,!0)}`);return It};return{name:We,label:J,trigger:[],validator:(ft,jt,Ot)=>{var Wt=zu(fe==null?void 0:fe.errorMsg,{...fe,label:J});U0[We](ft,jt,Ot,fe==null?void 0:fe.forceMatch,Wt||Je(Ae,Me,Pe,Fe),Ue)}}},he=J=>{var te=u("expValidate",!0);const fe=Kt(te==null?void 0:te.options);if(!(fe!=null&&fe.enable))return;let Ae=fe==null?void 0:fe.expression,Pe=Ae;if(Pe){var Fe=U0[Pe],Me=!!Fe;return Me||(Pe="regExp"),{name:Pe,label:J,trigger:[],validator:(We,Ue,Je)=>{var ft=zu(fe==null?void 0:fe.errorMsg,{...fe,label:J});Me?U0[Pe](We,Ue,Je,fe==null?void 0:fe.forceMatch,ft):U0[Pe](We,Ue,Je,fe==null?void 0:fe.forceMatch,ft,Ae)}}}},me=J=>{var te=u("fnValidate",!0);const fe=Kt(te==null?void 0:te.options);if(!(fe!=null&&fe.enable)||!fe.func)return;const{instance:Ae}=Xo(r),Pe=fe==null?void 0:fe.errorMsg;return{name:"userDefine",label:J,trigger:[],validator:(Fe,Me,We)=>{Vu(fe.func,{rule:Fe,value:Me,callback:Ue=>{LR(!Ue,Fe,We,Pe,fe==null?void 0:fe.forceMatch)},errorMsg:Pe,ctx:Ae})}}},xe=()=>{if(e!=null&&e.formItemFlag&&!u("hidden")){Y();var J=u("label"),te=[Q(J),he(J),me(J),ae(J)];return te==null||te.forEach(fe=>{fe&&ve.push(fe)}),ye(),ve}},pe=()=>{ve&&ve.forEach(J=>{Se(J)})},ye=()=>{ve&&ve.forEach(J=>{we(J)})},Se=J=>{J.trigger&&J.trigger.splice(0,J.trigger.length)},we=J=>{J.trigger&&(J.trigger.push("blur"),J.name!=="required"&&J.trigger.push("change"))};return{attrs:w,extendAttrs:S,events:C,slots:O,originSlots:I,computedDefaultValue:P,fieldName:T,hasDefaultValue:A,isOptionWidget:L,optionItems:V,activeOptionItems:K,activeOptionItem:G,activeOptionItemIndex:W,filterOptionItems:R,getCheckedOptionLabels:oe,getCheckedOptionValues:re,getCheckedOptionItems:Z,getCheckedOptionText:ne,setOptionItems:N,setFieldEnable:d,setWidgetOption:s,getWidgetOption:c,getWidgetOptionByPropValue:v,hasFieldOptions:i,getFieldOptions:u,setFieldOptions:l,rules:ve,buildRules:xe,clearRules:Y,disableChangeRule:Se,disableChangeValidate:pe,enableChangeRule:we,enableChangeValidate:ye,addCssClass:J=>{var te=u("customClass");te?te.push(J):te=[J],l("customClass",te)},removeCssClass:J=>{var te=u("customClass");if(!te)return;let fe=-1;te.map((Ae,Pe)=>{Ae===J&&(fe=Pe)}),fe>-1&&(te.splice(fe,1),l("customClass",te))},singleOption:f,watchOption:p}}function xxe(e,t){const{getWidgetOptionByPropValue:n}=zs({name:e.name,options:e},t),r=(v,h)=>{var g=ui(zu(Ti(v),h));if(g)return lle(g)},a=v=>r(e.headers,v),o=v=>r(e.params,v),i=v=>zu(e.url,v),u=()=>({timeout:e.timeout,withCredentials:e.withCredentials,maxBodyLength:e.maxBodyLength,maxContentLength:e.maxContentLength,responseType:e.responseType,responseEncoding:e.responseEncoding,method:e.method}),l=(v,h)=>{v&&v.interceptors.request.use(function(g){var y=g,x=m(e.willFetch,h,[g]);return x.result&&(y=x.data),y},function(g){return Promise.reject(g)})},s=(v,h)=>{v&&v.interceptors.response.use(function(g){var y=g,x=m(e.fitFetch,h,[g]);return x.result&&(y=x.data),y},function(g){var y=g,x=m(e.errorFetch,h,[g]);return x.result&&(y=x.data),Promise.reject(y)})},c=v=>{var h=zu(e.shouldFetch,v);return Os(e.shouldFetch)||h+""=="true"||h+""=="1"},f=v=>{if(e.data==null||e.data===void 0)return"";var h=ul(e.data);return h?ui(zu(Ti(e.data),v)):zu(e.data+"",v)},p=v=>{if(!c(v))return;const h=dC.create(u());return l(h,v),s(h,v),new Promise((g,y)=>{const x=i(v),_=f(v),w=a(v),E=o(v);if(!x)return;const S={url:x,data:_,headers:w,params:E};h.request(S).then(C=>{let T=C;var A=m(e.didFetch,v,[C]);A.result&&(T=A.data),g(T)}).catch(C=>{Vi.error("request",C,S),y(C)})})},d=v=>!!_e.getValue(v),m=(v,h,g)=>{let y={result:!1,data:null};if(d(v)){y.result=!0;const x=n(v);y.data=x({data:h},...g)}return y};return{req:p}}function Ab(e){const t=e==null?void 0:e.pageConfig,n=()=>{var d;return Kt((d=t==null?void 0:t.schema)==null?void 0:d.value)},r=(d,m,v)=>{var h=_e.getEnable(v==null?void 0:v[d]),g=_e.getEnable(m==null?void 0:m[d]);return!g&&h&&m&&(m[d]=v==null?void 0:v[d]),m},a=(d,m)=>{let v=or(d);["didFetch","willFetch","errorFetch","fitFetch"].forEach(g=>{v=r(g,v,t)});const{req:h}=xxe(v,e);return h(m)},o=()=>{let d={};const m=z_.decryptFromUrl(window.location.href);d=Object.assign(d,{[pi.urlParams]:m});const v=e==null?void 0:e.globalConfig;return d=Object.assign(d,{[pi.compParams]:v}),d},i=d=>{var h,g;let m={};m=Object.assign(m,{schemaParams:d}),Object.assign(m,o()),m=Object.assign(m,{cookies:m9.getAll()});var v={};return(g=(h=n==null?void 0:n())==null?void 0:h.filter(y=>y.protocal===oh.VALUE))==null||g.forEach(y=>{v=Object.assign(v,{[y.name]:zu(String(y==null?void 0:y.initialData),m)})}),m=Object.assign(m,{vars:v}),m},u=d=>{var m;return(m=n==null?void 0:n())==null?void 0:m.find(v=>v.name===d)},l=(d,m)=>{var v={};return d==null||d.forEach(h=>{h&&(v[h]=s(h,m))}),v},s=(d,m)=>{if(!d)return;const v=o(),h=v[pi.urlParams],g=v[pi.compParams];if(d==pi.urlParams)return h;if(d==pi.compParams)return g;const y=u(d),x=y==null?void 0:y.protocal,_=i(m);let w=null;switch(x){case oh.VALUE:w=zu(String(y==null?void 0:y.initialData),_),poe(w)&&(w=ui(w));break;case oh.REMOTE:w=y?a(y,_):null;break}return w},c=(d,m)=>{var v=s(d,m);return L3(v)?v:new Promise((h,g)=>{h(v)})},f=(d,m,v)=>new Promise((h,g)=>{const y=d==null?void 0:d.length;let x=0;var _=d==null?void 0:d.map(E=>c(E,m));let w=0;Promise.all(_.map(E=>E.then(S=>{var D;x++;var C=Math.round(x/y*100);const T=d[w++],A=(D=u(T))==null?void 0:D.description;return v==null||v(C,S,w,T,A),S}))).then(E=>{v==null||v(100,E,w,"completedAll","completedAll"),h(E)})});return{loadSchemaData:n,remoteReadSchemaData:l,readSchemaData:s,findSchema:u,getSchemaDataObject:(d,m,v)=>new Promise((h,g)=>{f(d,m,v).then(y=>{var x={};y.forEach(_=>{x=mr(x,_,!0)}),h(x)})}),getOneSchemaData:c,getSchemaDatas:f}}const Tb=(e,t=!1,n=" ")=>e==null?void 0:e.map(r=>Zg(r,t)).join(n),RR=(e,t)=>t?`(FROMJSON '${e}')`:e,Zg=(e,t=!1)=>{var n;return(e==null?void 0:e.type)===ra.Syntax.Literal?e.raw:(e==null?void 0:e.type)===ra.Syntax.Identifier?e.name:e.type===ra.Syntax.ExpressionStatement?Zg(e.expression,void 0):(e==null?void 0:e.type)===ra.Syntax.CallExpression?`(${(n=e.callee)==null?void 0:n.name} ${Tb(e.arguments,!0)})`:(e==null?void 0:e.type)===ra.Syntax.UnaryExpression?`${e.operator}${Zg(e==null?void 0:e.argument)}`:(e==null?void 0:e.type)===ra.Syntax.ObjectExpression?RR(`{${Tb(e==null?void 0:e.properties,t,",")}}`,t):(e==null?void 0:e.type)===ra.Syntax.ArrayExpression?RR(`[${Tb(e.elements,t,",")}]`,t):(e==null?void 0:e.type)===ra.Syntax.Property?`${Zg(e==null?void 0:e.key)}:${Zg(e==null?void 0:e.value)}`:""};function NA(){var e=["GETCHECKEDNAMES","GETCHECKEDNAME"];return{specialFuncNames:e,matchSpecialNode:r=>e.some(a=>r==null?void 0:r.includes(a)),specialNode:(r,a)=>{var o,i,u,l,s,c,f,p;if(r.type===ra.Syntax.CallExpression){let d=or(r.arguments);if(e.includes((o=r.callee)==null?void 0:o.name)){const m=(i=r.arguments)==null?void 0:i[0];(a==null?void 0:a[`${m.name}${ll.checkedOptions}`])!=null&&(d[0].name=`${m.name}${ll.checkedOptions}`)}if(e.includes((l=(u=r.callee)==null?void 0:u.property)==null?void 0:l.name)){const m=(s=r.arguments)==null?void 0:s[0];let v=`${(c=m==null?void 0:m.property)==null?void 0:c.name}${ll.checkedOptions}`,h=(f=m==null?void 0:m.object)==null?void 0:f.name;h?((p=a==null?void 0:a[h])==null?void 0:p[v])!=null&&(d[0].property.name=v):(a==null?void 0:a[v])!=null&&(d[0].property.name=v)}r.arguments=d}return r}}}const _xe=e=>{var t=f9(e),n=Tb(t.body);n.startsWith("(")&&(n=n.substring(1)),n.endsWith(")")&&(n=n.substring(0,n.length-1));var r=Hoe(t.body);return{expression:n,funcname:r}},bxe=Object.freeze(Object.defineProperty({__proto__:null,getScriptResult:(e,t)=>new Promise((n,r)=>{if(!e||Os(e)){n(null);return}const a=u=>{var l=Goe(u);if(!(l!=null&&l.some(c=>!Ua(t,c)))){l==null||l.forEach(c=>{t[c]===void 0&&(t[c]=null)});var s=_xe(u);return lpe(`{{${s.expression}}}`,t,s.funcname)}},{specialNode:o,matchSpecialNode:i}=NA();if(i(e)){const{init:u,replaceVariableName:l}=h9();u().then(s=>{e=l(s,e,o,t),n(a(e))})}else n(a(e))}),useSpecialNode:NA},Symbol.toStringTag,{value:"Module"})),FA=e=>typeof(e==null?void 0:e.value)=="boolean"?!1:null,MA=(e,t)=>{let n={};if(!ko(e))return n;var r=t==null?void 0:t.instance;return R3(Qv(e),(a,o,i)=>{var s,c,f,p;const u=(c=(s=r==null?void 0:r.exposed)==null?void 0:s.findRefByName)==null?void 0:c.call(s,o);if(!u)return;const l=(p=(f=u==null?void 0:u.exposed)==null?void 0:f.getField)==null?void 0:p.call(f);l&&l.id&&(n[l.id]=o)}),n},LA=e=>{var a,o,i,u,l;var t=e==null?void 0:e.instance,n=((o=(a=t==null?void 0:t.exposed)==null?void 0:a.getRowScope)==null?void 0:o.call(a))||((i=t==null?void 0:t.provides)==null?void 0:i.rowScope);const r=Object.assign({},(l=(u=t==null?void 0:t.exposed)==null?void 0:u.getFormData)==null?void 0:l.call(u),e==null?void 0:e.formData);return{[va.sysVar]:{[pi.rowScope]:n},[va.sysData]:r}},wxe=(e,t,n)=>{const{remoteReadSchemaData:r}=Ab(n);var a=u9(e),o=p9(a),i=o.filter(c=>[va.schema.toString()].includes(c.root)),u=i==null?void 0:i.map(c=>{var f,p;return(p=(f=c==null?void 0:c.properties)==null?void 0:f[0])==null?void 0:p.toString()});let l=null;t&&(l=ui(t));var s=r(u,l||{});return s},RA=(e,t,n,r)=>{var l;if(!e)return"";let a=e;const{updateFomula:o}=kf(),{variableWithNameExp:i}=boe();if(r){var u=t==null?void 0:t[va.sysData];u&&(a=o(a,n||{},(s,c)=>Ia(c)?null:`${(u==null?void 0:u[c])||""}`)),(l=Rr(t==null?void 0:t[va.sysVar]))==null||l.forEach(s=>{var c;u=(c=t==null?void 0:t[va.sysVar])==null?void 0:c[s],u&&(a=o(a,u,(f,p)=>Ia(p)?null:p,i("sysVar."+s)))})}else return a=o(a,n||{},(s,c)=>c?`${va.sysData}.${c}`:(t||(t={}),t[va.sysData]||(t[va.sysData]={}),t[va.sysData][s]===void 0&&(t[va.sysData][s]=null),`${va.sysData}.${s}`)),a;return a},Exe=(e,t)=>{if(_e.isFormula(e)){const{transFormula:i}=kf(),l=LA(t)[va.sysData];let s=MA(l,t);var n=Kt(e),r=Kt(n==null?void 0:n.value),a=i(r==null?void 0:r.complexValue,s),o=Cxe(a,l);return Kt(o)}},jR=(e,t)=>{const n=LA(t);let r=MA(n[va.sysData],t);var a=RA(e==null?void 0:e.expr,n,r,!1),o=RA(e==null?void 0:e.params,n,r,!0);const i=wxe(a,o,t);var u={[va.sysFunc]:MR,[va.schema]:i,...n};const l=[va.schema];var s=Kt(Sxe(a,u,l));return s},Sxe=(e,t,n)=>{if(Os(e))return;const{state:r}=Z3(async()=>{var v;var{specialNode:a,matchSpecialNode:o}=NA(),{init:i,replaceVariableName:u}=h9(),l=e;if(o(e)){var s=await i();l=Voe(e,h=>u(s,h,a,t))}if(t&&n&&((n==null?void 0:n.length)||0)>0)for(var c=0;c<n.length;c++){var f=n==null?void 0:n[c],p=t==null?void 0:t[f];if(ko(p)){var d=(v=Rr(p))==null?void 0:v.some(h=>L3(p[h]));if(d){var m=await j3(p);t[f]=m}}}return eC(l,t)},null);return r},Cxe=(e,t)=>{const{state:n}=Z3(async()=>{const r=await Promise.resolve().then(()=>bxe);var a=await(r==null?void 0:r.getScriptResult(e,t||{}));return a},null,{immediate:!0});return n},Axe=(e,t)=>{if(_e.isVariable(e)){var n=_e.getVariable(e);return jR(n,t)}},Txe=(e,t)=>{if(_e.isSchemaData(e)){var n=_e.getSchemaData(e);return jR(n,t)}},Dxe=(e,t=!1,n)=>{var r=Kt(e),a=r==null?void 0:r.value,o=Kt(a);return _e.isVariable(e)&&!(o!=null&&o.complexType)?t?Axe(e,n):e==null?void 0:e.value:_e.isFormula(e)?t?Exe(e,n):FA():_e.isSchemaData(e)?t?Txe(e,n):FA():Kt(a)},kxe=(e,t=!1,n=!1,r)=>{if(!_e.isComplex(e))return e;if(!t&&!_e.getEnable(e))return FA();var a=Kt(e),o=a==null?void 0:a.value;return!_e.isVariable(e)&&o===null?null:Kt(Dxe(e,n,r))},Pxe=(e,t)=>{const n=LA(t);let r=MA(n[va.sysData],t);return RA(e,n,r,!0)};class _e{constructor(t,n,r,a,o){U(this,"type",be.prop);U(this,"propType");U(this,"value","");U(this,"variable");U(this,"options");this.type=t,n!==void 0&&(this.value=n),r!==void 0&&(this.options=r),a!==void 0&&(this.variable=a),o!==void 0&&mr(this,o)}static get(t,n){if(n)return t==null?void 0:t[n]}static set(t,n,r){n&&t&&(t[n]=r)}static isComplex(t){const n=this.getType(t);return J3(be).includes(n);//!!hasConfig(prop, 'type');
169
- }static hasComplexValue(t){return!!Ua(t,"value")}static isComplexValue(t){var n;return _e.hasComplexValue(t)&&!!((n=Kt(t==null?void 0:t.value))!=null&&n.complexType)}static buildVariablePropValue(t,n){return{type:be.variable,variable:{expr:"${"+t+"}",params:n}}}static getOrgType(t){var r;var n=(r=this.getOptions(t))==null?void 0:r.origin;return n?this.getType(n):this.getType(t)}static getType(t){var n;return(n=Kt(t))==null?void 0:n.type}static getOptions(t){var n;return(n=Kt(t))==null?void 0:n.options}static needCalcValue(t){return this.isFormula(t)||this.isVariable(t)||this.isSchemaData(t)}static isComplexType(t,n){return this.isComplex(t)&&this.getType(t)===n}static isSchemaData(t){var n;return this.hasComplexValue(t)&&((n=Kt(t==null?void 0:t.value))==null?void 0:n.complexType)===be.schemaData}static clearSchemaData(t){var r;var n=or(t);return this.isComplex(t)?(r=Kt(n))==null?void 0:r.value:n}static setSchemaData(t,n){var r=or(t),a=new n9(be.schemaData,n);return this.isComplex(r)?r=a:r=new _e(be.prop,a),r}static getSchemaData(t){var r;var n=Kt(t);return(r=Kt(n==null?void 0:n.value))==null?void 0:r.complexValue}static isFormula(t){var n;return this.hasComplexValue(t)&&((n=Kt(t==null?void 0:t.value))==null?void 0:n.complexType)===be.formula}static setFormula(t,n){var r=or(t),a=new n9(be.formula,n);return this.isComplex(r)?r=a:r=new _e(be.prop,a),r}static getFormula(t){var n;return(n=Kt(t==null?void 0:t.value))==null?void 0:n.complexValue}static getFormulaRelatedField(t){const{getFormulaFields:n}=kf();return n(Ti(Kt(t)))}static isVariable(t){var n;return this.isComplex(t)&&((n=Kt(t))==null?void 0:n.type)===be.variable}static clearVariable(t){var r;var n=or(t);if(this.isComplex(t)){const a=Kt(n),o=(r=a.options)==null?void 0:r.origin;return this.isComplex(o)?(Kt(o).value=a==null?void 0:a.value,o):a==null?void 0:a.value}return n}static setVariable(t,n){var r=or(t);if(this.isComplex(r)){let a=r==null?void 0:r.options;return r.type!==be.variable&&(a=Object.assign(a||{},{origin:or(r)})),new _e(be.variable,r==null?void 0:r.value,a,n)}else return new _e(be.variable,r||null,r==null?void 0:r.options,n)}static getVariable(t){var n;return(n=Kt(t))==null?void 0:n.variable}static getValue(t,n=!1,r=!1,a){return kxe(t,n,r,a)}static setValue(t,n,r){if(!t||!n)return!1;var a=this.get(t,n);const o=this.getType(a);if(!this.isComplex(a))this.set(t,n,r);else{let i=r;o===be.dataObject&&na(i)&&(i=ui(r)),Kt(a).value=i}return!0}static getEnable(t){var r;if(!this.isComplex(t))return!1;var n=this.getOptions(t);return Ua(n,"enable")?(r=Kt(n))==null?void 0:r.enable:!0}static setEnable(t,n,r){var a=this.get(t,n);if(this.isComplex(a)){var o=Kt(a);return o.options===void 0&&(o.options={}),o.options.enable=r,!0}return!1}}class Qg{static getKeys(){var t=new this;return Rr(t)}}class Db extends Qg{constructor(){super(...arguments);U(this,"name","")}}class jA extends Qg{constructor(){super(...arguments);U(this,"isdefault",!1)}}class kb extends Db{constructor(){super(...arguments);U(this,"ctrlWidth",new _e(be.placer,"auto"));U(this,"ctrlHeight",new _e(be.placer,"auto"));U(this,"customClass",new _e(be.placer,[]));U(this,"componentRootClass",new _e(be.placer,[]));U(this,"displayLayout",new _e(be.placer,ou.block));U(this,"css",new _e(be.placer,""));U(this,"created",new _e(be.event,void 0,new ht));U(this,"mounted",new _e(be.event,void 0,new ht))}}class ya extends kb{constructor(){super(...arguments);U(this,"hidden",new _e(be.placer,!1))}}class H0 extends ya{constructor(){super(...arguments);U(this,"content",new _e(be.placer,""))}}class yu extends H0{constructor(){super(...arguments);U(this,"slotable",new _e(be.placer,!1));U(this,"default",new _e(be.slot,void 0,new er))}}class Oxe extends ya{constructor(){super(...arguments);U(this,"slotable",new _e(be.placer,!1));U(this,"default",new _e(be.slot,void 0,new er))}}class Pb extends ht{constructor(n){super(n);U(this,"forceMatch",!0);U(this,"errorMsg","");mr(this,n)}}class Ixe extends Pb{constructor(n){super(n);U(this,"expression","");mr(this,n)}}class Bxe extends Pb{constructor(n){super(n);U(this,"func","");mr(this,n)}}class Nxe extends Pb{constructor(n){super(n);U(this,"minValue",null);U(this,"includeMinValue",!1);U(this,"maxValue",null);U(this,"includeMaxValue",!1);mr(this,n)}}class er extends ht{constructor(n){super(n);U(this,"allowDrag",!1);U(this,"slotName");mr(this,n)}}class ir{constructor(){U(this,"widgetList",[])}}class W0 extends ya{constructor(){super(...arguments);U(this,"label",new _e(be.placer,""));U(this,"defaultValue",null);U(this,"state",new _e(be.placer,Tc.custom));U(this,"readonly",!1);U(this,"disabled",!1);U(this,"size","");U(this,"tabindex","");U(this,"labelHidden",new _e(be.placer,!1));U(this,"labelAlign",new _e(be.placer,""));U(this,"labelWidth",new _e(be.placer,""));U(this,"labelIconClass",new _e(be.icon));U(this,"labelIconPosition",new _e(be.placer,ah.rear));U(this,"labelTooltip",new _e(be.placer,""));U(this,"change",new _e(be.event,void 0,new ht));U(this,"focus",new _e(be.event,void 0,new ht));U(this,"blur",new _e(be.event,void 0,new ht));U(this,"click",new _e(be.event,void 0,new ht));U(this,"validateEvent",!0);U(this,"required",new _e(be.placer,!0,new Pb));U(this,"expValidate",new _e(be.placer,void 0,new Ixe));U(this,"rangeValidate",new _e(be.placer,void 0,new Nxe));U(this,"fnValidate",new _e(be.placer,void 0,new Bxe))}}class xl extends W0{constructor(){super(...arguments);U(this,"placeholder","")}}class Us extends jA{constructor(){super(...arguments);U(this,"label","");U(this,"value","")}}class VA extends Us{constructor(){super(...arguments);U(this,"children",[])}}class VR extends VA{constructor(){super(...arguments);U(this,"isopen",!1)}}const s_=class{constructor(){U(this,"type",lt.none);U(this,"icon","");U(this,"id","");U(this,"options",{});U(this,"category",Tf.normal);U(this,"init",(t=!0)=>{var n,r;this.id||(this.id=zA.newId((n=this.type)==null?void 0:n.toString())),this.icon||(this.icon=zA.getIcon((r=this.type)==null?void 0:r.toString(),t&&this.category!=Tf.container))})}static newId(t){return((t==null?void 0:t.replace(/-/g,""))||"")+fu()}static getIcon(t,n=!0){return"@widget-"+(t||"")+(n?"-field":"")}};let gt=s_;U(gt,"isContainer",t=>t.category===Tf.container),U(gt,"getWidgetTypeName",t=>t?ie.i18n2t(`designer.widgetLabel.${t}`,`extension.widgetLabel.${t}`):""),U(gt,"getWidgetName",t=>{var n;return t.type?((n=t.type)==null?void 0:n.trim())+"-widget":""}),U(gt,"getName",t=>s_.getOrgOption(t,qt.name)),U(gt,"setName",(t,n)=>{s_.setOptions(t,qt.name,n)}),U(gt,"getOrgOption",(t,n)=>{var r;return(r=t==null?void 0:t.options)==null?void 0:r[n]}),U(gt,"setOrgOption",(t,n,r)=>{!t||!t.options||(t.options[n]=r)}),U(gt,"getOptions",(t,n,r=!1,a=!1,o)=>{var i=s_.getOrgOption(t,n);if(r)return i;var u=_e.getValue(i,!1,a,o);if(u!==null)return u}),U(gt,"setOptions",(t,n,r)=>{_e.setValue(t==null?void 0:t.options,n,r)}),U(gt,"setEnable",(t,n,r)=>{_e.setEnable(t==null?void 0:t.options,n,r)});class zA extends gt{constructor(){super();U(this,"dynamicItemFlag",!1);U(this,"formItemFlag",!1);U(this,"options",{});this.formItemFlag=!0}}class Gn extends zA{constructor(t,n,r=!1,a){super(),a!=null&&a.autoWidth&&Ua(n,qt.ctrlWidth)&&(n.ctrlWidth=new _e(be.placer,$v.auto)),a!=null&&a.inlineLayout&&Ua(n,qt.displayLayout)&&(n.displayLayout=new _e(be.placer,ou.inline)),Ia(a==null?void 0:a.dynamicItemFlag)||(this.dynamicItemFlag=a==null?void 0:a.dynamicItemFlag),this.formItemFlag=r,this.type=t,this.options=n,Object.entries(n).map(([o,i])=>{var u;_e.getType(i)===be.slot&&((u=_e.getOptions(i))!=null&&u.allowDrag)&&(i.widgetList=[])}),this.init(r)}}function Fxe(){let e=new Map;const t=r=>{var a=gt.getWidgetName(r),o=null;return a&&(gt.isContainer(r)?o=b.defineAsyncComponent(()=>dN(Object.assign({"./container-widget/cont-cell-widget.vue":()=>Promise.resolve().then(()=>zj),"./container-widget/cont-widget.vue":()=>Promise.resolve().then(()=>Uj),"./container-widget/form-widget.vue":()=>Promise.resolve().then(()=>Hj),"./container-widget/grid-col-widget.vue":()=>Promise.resolve().then(()=>Gj),"./container-widget/grid-widget.vue":()=>Promise.resolve().then(()=>Kj),"./container-widget/ltable-col-widget.vue":()=>Promise.resolve().then(()=>Yj),"./container-widget/ltable-widget.vue":()=>Promise.resolve().then(()=>Jj),"./container-widget/tab-pane-widget.vue":()=>Promise.resolve().then(()=>Qj),"./container-widget/tabs-widget.vue":()=>Promise.resolve().then(()=>qj),"./container-widget/wrapper-widget.vue":()=>Promise.resolve().then(()=>$j)}),`./container-widget/${a}.vue`)):o=b.defineAsyncComponent(()=>dN(Object.assign({"./field-widget/affix-widget.vue":()=>Promise.resolve().then(()=>Yke),"./field-widget/alert-widget.vue":()=>Promise.resolve().then(()=>Qke),"./field-widget/anchor-link-widget.vue":()=>Promise.resolve().then(()=>qke),"./field-widget/anchor-widget.vue":()=>Promise.resolve().then(()=>t5e),"./field-widget/auto-complete-widget.vue":()=>Promise.resolve().then(()=>u5e),"./field-widget/avatar-widget.vue":()=>Promise.resolve().then(()=>p5e),"./field-widget/backtop-widget.vue":()=>Promise.resolve().then(()=>m5e),"./field-widget/badge-widget.vue":()=>Promise.resolve().then(()=>y5e),"./field-widget/barcode-widget.vue":()=>Promise.resolve().then(()=>E9e),"./field-widget/breadcrumb-widget.vue":()=>Promise.resolve().then(()=>T9e),"./field-widget/button-widget.vue":()=>Promise.resolve().then(()=>P9e),"./field-widget/cache-widget.vue":()=>Promise.resolve().then(()=>B9e),"./field-widget/card-widget.vue":()=>Promise.resolve().then(()=>M9e),"./field-widget/carousel-widget.vue":()=>Promise.resolve().then(()=>j9e),"./field-widget/cascader-widget.vue":()=>Promise.resolve().then(()=>U9e),"./field-widget/chart-widget.vue":()=>Promise.resolve().then(()=>G9e),"./field-widget/checkbox-widget.vue":()=>Promise.resolve().then(()=>Y9e),"./field-widget/collapse-widget.vue":()=>Promise.resolve().then(()=>Q9e),"./field-widget/color-picker-widget.vue":()=>Promise.resolve().then(()=>eFe),"./field-widget/content-wrapper.vue":()=>Promise.resolve().then(()=>Hke),"./field-widget/date-picker-range-widget.vue":()=>Promise.resolve().then(()=>rFe),"./field-widget/date-picker-widget.vue":()=>Promise.resolve().then(()=>oFe),"./field-widget/default-slot-widget.vue":()=>Promise.resolve().then(()=>Gke),"./field-widget/descriptions-widget.vue":()=>Promise.resolve().then(()=>cFe),"./field-widget/dialog-widget.vue":()=>Promise.resolve().then(()=>dFe),"./field-widget/divider-widget.vue":()=>Promise.resolve().then(()=>gFe),"./field-widget/drawer-widget.vue":()=>Promise.resolve().then(()=>xFe),"./field-widget/dropdown-widget.vue":()=>Promise.resolve().then(()=>EFe),"./field-widget/empty-widget.vue":()=>Promise.resolve().then(()=>AFe),"./field-widget/feedback-widget.vue":()=>Promise.resolve().then(()=>pFe),"./field-widget/file-upload-widget.vue":()=>Promise.resolve().then(()=>JFe),"./field-widget/form-item-wrapper.vue":()=>Promise.resolve().then(()=>o5e),"./field-widget/html-text-widget.vue":()=>Promise.resolve().then(()=>qFe),"./field-widget/icon-widget.vue":()=>Promise.resolve().then(()=>tMe),"./field-widget/iframe-widget.vue":()=>Promise.resolve().then(()=>oMe),"./field-widget/image-widget.vue":()=>Promise.resolve().then(()=>uMe),"./field-widget/input-number-widget.vue":()=>Promise.resolve().then(()=>dMe),"./field-widget/input-widget.vue":()=>Promise.resolve().then(()=>gMe),"./field-widget/label-wrapper.vue":()=>Promise.resolve().then(()=>r5e),"./field-widget/link-widget.vue":()=>Promise.resolve().then(()=>_Me),"./field-widget/menu-widget.vue":()=>Promise.resolve().then(()=>SMe),"./field-widget/model-widget.vue":()=>Promise.resolve().then(()=>DMe),"./field-widget/multirow-widget.vue":()=>Promise.resolve().then(()=>QMe),"./field-widget/pagination-widget.vue":()=>Promise.resolve().then(()=>e7e),"./field-widget/picture-upload-widget.vue":()=>Promise.resolve().then(()=>c7e),"./field-widget/progress-widget.vue":()=>Promise.resolve().then(()=>v7e),"./field-widget/qrcode-widget.vue":()=>Promise.resolve().then(()=>uLe),"./field-widget/radio-widget.vue":()=>Promise.resolve().then(()=>pLe),"./field-widget/range-widget.vue":()=>Promise.resolve().then(()=>xLe),"./field-widget/rate-widget.vue":()=>Promise.resolve().then(()=>wLe),"./field-widget/result-widget.vue":()=>Promise.resolve().then(()=>CLe),"./field-widget/rich-editor-widget.vue":()=>Promise.resolve().then(()=>DLe),"./field-widget/router-widget.vue":()=>Promise.resolve().then(()=>ILe),"./field-widget/select-widget.vue":()=>Promise.resolve().then(()=>MLe),"./field-widget/slider-widget.vue":()=>Promise.resolve().then(()=>jLe),"./field-widget/static-text-widget.vue":()=>Promise.resolve().then(()=>ULe),"./field-widget/steps-widget.vue":()=>Promise.resolve().then(()=>XLe),"./field-widget/subMenu-widget.vue":()=>Promise.resolve().then(()=>bMe),"./field-widget/switch-widget.vue":()=>Promise.resolve().then(()=>ZLe),"./field-widget/table-col-widget.vue":()=>Promise.resolve().then(()=>QLe),"./field-widget/table-widget.vue":()=>Promise.resolve().then(()=>nRe),"./field-widget/tag-widget.vue":()=>Promise.resolve().then(()=>aRe),"./field-widget/text-widget.vue":()=>Promise.resolve().then(()=>lRe),"./field-widget/textarea-widget.vue":()=>Promise.resolve().then(()=>fRe),"./field-widget/time-picker-range-widget.vue":()=>Promise.resolve().then(()=>dRe),"./field-widget/time-picker-widget.vue":()=>Promise.resolve().then(()=>gRe),"./field-widget/time-select-widget.vue":()=>Promise.resolve().then(()=>_Re),"./field-widget/tmpl-widget.vue":()=>Promise.resolve().then(()=>ERe),"./field-widget/tree-select-widget.vue":()=>Promise.resolve().then(()=>ARe),"./field-widget/tree-widget.vue":()=>Promise.resolve().then(()=>kRe),"./field-widget/verifycode-widget.vue":()=>Promise.resolve().then(()=>LRe),"./field-widget/vertical-progress-widget.vue":()=>Promise.resolve().then(()=>h7e)}),`./field-widget/${a}.vue`))),o};return{components:r=>{var a=gt.getWidgetName(r);if(e.has(a))return e.get(a);var o=t(r);return e.set(a,o),o}}}function Mxe(e){return e=e||Object.create(null),{on:function(n,r){(e[n]||(e[n]=[])).push(r)},off:function(n,r){e[n]&&e[n].splice(e[n].indexOf(r)>>>0,1)},emit:function(n,r){(e[n]||[]).map(function(a){a(r)}),(e["*"]||[]).map(function(a){a(n,r)})}}}const UA=new Mxe,zR={$on:UA.on,$off:UA.off,$emit:UA.emit};function UR(e){var t={index:-1,maxStep:20,steps:[]};e&&!(e!=null&&e.historyData)&&(e.historyData=t);const n=b.reactive((e==null?void 0:e.historyData)||t),r=`widget__list__backup__${e==null?void 0:e.key}`,a=`form__config__backup__${e==null?void 0:e.key}`,o=b.computed({get:()=>(n.index<0&&(n.index=0),n.steps[n.index]),set:y=>{n.index<0&&(n.index=0),n.steps[n.index]=y}}),i=()=>{const y=o==null?void 0:o.value;e.version=TF(),e.widgetList=or(y==null?void 0:y.widgetList),e.pageConfig=or(y==null?void 0:y.pageConfig)},u=y=>{const x=o;x.value=or({detail:y,widgetList:e.widgetList,pageConfig:e.pageConfig})},l=()=>{g(),n.index=n.index+1,u("initHistory")},s=()=>{e.historyData=t},c=y=>{var x;n.index==n.maxStep-1?(x=n.steps)==null||x.shift():n.index=n.index+1,f(y),n.index<n.steps.length-1&&(n.steps=n.steps.slice(0,n.index+1))},f=y=>{u(y),h()},p=()=>{n.index!==0&&n.index--,i()},d=()=>{var y;n.index!==((y=n.steps)==null?void 0:y.length)-1&&n.index++,i()},m=()=>{var y;return n.index>0&&((y=n.steps)==null?void 0:y.length)>0},v=()=>{var y;return n.index<((y=n.steps)==null?void 0:y.length)-1},h=()=>{ih.set(r,e.widgetList),ih.set(a,e.pageConfig)},g=()=>{let y=ih.get(r);y&&mr(e.widgetList,ui(y));let x=ih.get(a);x&&mr(e.pageConfig,ui(x))};return{clearHistoryData:s,initHistoryData:l,emitHistoryChange:c,saveCurrentHistoryStep:f,undoHistoryStep:p,redoHistoryStep:d,undoEnabled:m,redoEnabled:v,saveFormContentToStorage:h,loadFormContentFromStorage:g}}class Lxe extends ya{constructor(){super(...arguments);U(this,"labelHidden",new _e(be.placer,!1));U(this,"label",new _e(be.placer,""));U(this,"defaultValue",null);U(this,"state",new _e(be.placer,Tc.custom));U(this,"readonly",!1);U(this,"disabled",!1);U(this,"change",new _e(be.event,void 0,new ht))}}class Rxe extends xl{constructor(){super(...arguments);U(this,"type",SN.text);U(this,"minlength",0);U(this,"maxlength",1e4);U(this,"prefixIcon",new _e(be.icon));U(this,"suffixIcon",new _e(be.icon));U(this,"clearable",!0);U(this,"showPassword",!1);U(this,"showWordLimit",!1);U(this,"formatter",new _e(be.hook,void 0,new ht));U(this,"parser",new _e(be.hook,void 0,new ht));U(this,"input",new _e(be.event,void 0,new ht));U(this,"clear",new _e(be.event,void 0,new ht));U(this,"keydown",new _e(be.event,void 0,new ht));U(this,"keyup",new _e(be.event,void 0,new ht));U(this,"slotable",new _e(be.placer,!1));U(this,"prepend",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"append",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir))}}class jxe extends xl{constructor(){super(...arguments);U(this,"resize",wN.none);U(this,"rows",3);U(this,"minlength",0);U(this,"maxlength",1e4);U(this,"showWordLimit",!1);U(this,"autosize",!1);U(this,"input",new _e(be.event,void 0,new ht))}}class Vxe extends xl{constructor(){super(...arguments);U(this,"defaultValue",null);U(this,"min",0);U(this,"max",1e4);U(this,"precision",0);U(this,"step",1);U(this,"stepStrictly",!1);U(this,"controls",!0);U(this,"controlsPosition",AN.none);U(this,"valueOnClear",EN.min);U(this,"unitText",new _e(be.placer,""));U(this,"input",new _e(be.event,void 0,new ht))}}class zxe extends xl{constructor(){super(...arguments);U(this,"clearable",!0);U(this,"select",new _e(be.event,void 0,new ht));U(this,"fetchSuggestions",new _e(be.hook,void 0,new ht));U(this,"default",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"valueKey","value");U(this,"debounce",300);U(this,"placement",d0.bottomStart);U(this,"triggerOnFocus",!1);U(this,"selectWhenUnmatched",!1);U(this,"hideLoading",!1);U(this,"popperClass","");U(this,"popperAppendToBody",!1);U(this,"teleported",!1);U(this,"highlightFirstItem",!1);U(this,"fitInputWidth",!1);U(this,"slotable",new _e(be.placer,!1));U(this,"prefix",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"suffix",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"prepend",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"append",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir))}}class Uxe extends W0{constructor(){super(...arguments);U(this,"displayStyle",new _e(be.placer,ou.inline));U(this,"buttonStyle",!1);U(this,"textColor","");U(this,"fill","");U(this,"border",!1);U(this,"valueKey",new _e(be.placer,"value"));U(this,"labelKey",new _e(be.placer,"label"));U(this,"isDefaultKey",new _e(be.placer,"isdefault"));U(this,"withAttachData",new _e(be.placer,!0));U(this,"textName",new _e(be.placer,""));U(this,"optionName",new _e(be.placer,""));U(this,"labelName",new _e(be.placer,""));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})));U(this,"relate",new _e(be.placer,void 0))}}class HR extends Us{constructor(){super(...arguments);U(this,"border",!1);U(this,"disabled",!1)}}class Hxe extends W0{constructor(){super(...arguments);U(this,"defaultValue",[]);U(this,"min",0);U(this,"max",1e3);U(this,"displayStyle",new _e(be.placer,ou.inline));U(this,"buttonStyle",!1);U(this,"border",!1);U(this,"textColor","#ffffff");U(this,"fill","#409EFF");U(this,"tag","div");U(this,"valueKey",new _e(be.placer,"value"));U(this,"labelKey",new _e(be.placer,"label"));U(this,"isDefaultKey",new _e(be.placer,"isdefault"));U(this,"withAttachData",new _e(be.placer,!0));U(this,"textName",new _e(be.placer,""));U(this,"optionName",new _e(be.placer,""));U(this,"labelName",new _e(be.placer,""));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})));U(this,"relate",new _e(be.placer,[]))}}class WR extends Us{constructor(){super(...arguments);U(this,"border",!1);U(this,"disabled",!1)}}class GR extends xl{constructor(){super(...arguments);U(this,"defaultFirstOption",!1);U(this,"noDataText","");U(this,"allowCreate",!1);U(this,"automaticDropdown",!1);U(this,"showGroup",new _e(be.placer,!1));U(this,"teleported",!0);U(this,"persistent",!0);U(this,"fitInputWidth",!1);U(this,"clearable",!0);U(this,"clearIcon",new _e(be.icon,"CircleClose"));U(this,"suffixTransition",!0);U(this,"suffixIcon",new _e(be.icon,"ArrowDown"));U(this,"tagType",U3.info);U(this,"placement",d0.bottomStart);U(this,"effect",h0.light);U(this,"multiple",!1);U(this,"multipleLimit",0);U(this,"collapseTags",!1);U(this,"collapseTagsTooltip",!1);U(this,"maxCollapseTags",1);U(this,"selectOnlyOneGroup",new _e(be.placer,!1));U(this,"filterable",!1);U(this,"reserveKeyword",!0);U(this,"remote",!1);U(this,"remoteShowSuffix",!1);U(this,"loadingText","");U(this,"noMatchText","");U(this,"filterMethod",new _e(be.hook,void 0,new ht));U(this,"remoteMethod",new _e(be.hook,void 0,new ht));U(this,"popperClass","");U(this,"popperOptions",{});U(this,"slotable",new _e(be.placer,!1));U(this,"visibleChange",new _e(be.event,void 0,new ht));U(this,"removeTag",new _e(be.event,void 0,new ht));U(this,"clear",new _e(be.event,void 0,new ht));U(this,"optionDefault",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"prefix",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})));U(this,"relate",new _e(be.placer,void 0));U(this,"valueKey",new _e(be.placer,"value"));U(this,"labelKey",new _e(be.placer,"label"));U(this,"isDefaultKey",new _e(be.placer,"isdefault"));U(this,"allItemAsValue",new _e(be.placer,!1));U(this,"withAttachData",new _e(be.placer,!0));U(this,"textName",new _e(be.placer,""));U(this,"optionName",new _e(be.placer,""));U(this,"labelName",new _e(be.placer,""))}}class KR extends xl{constructor(){super(...arguments);U(this,"format",GN.time1);U(this,"prefixIcon",new _e(be.icon,"Clock"));U(this,"clearIcon",new _e(be.icon,"CircleClose"));U(this,"clearable",!0);U(this,"editable",!1);U(this,"isRange",!1);U(this,"arrowControl",!1);U(this,"popperClass","");U(this,"teleported",!0);U(this,"disabledHours",new _e(be.hook,void 0,new ht));U(this,"disabledMinutes",new _e(be.hook,void 0,new ht));U(this,"disabledSeconds",new _e(be.hook,void 0,new ht));U(this,"visibleChange",new _e(be.event,void 0,new ht))}}class Wxe extends KR{constructor(){super(...arguments);U(this,"placeholder","")}}class Gxe extends KR{constructor(){super(...arguments);U(this,"rangeSeparator","-");U(this,"startPlaceholder","");U(this,"endPlaceholder","");U(this,"isRange",!0)}}class XR extends xl{constructor(){super(...arguments);U(this,"editable",!0);U(this,"clearable",!0);U(this,"defaultValue",null);U(this,"defaultTime",null);U(this,"format",Y3.date1);U(this,"valueFormat",Y3.date1);U(this,"prefixIcon",new _e(be.icon));U(this,"clearIcon",new _e(be.icon));U(this,"disabledDate",new _e(be.hook,void 0,new ht));U(this,"shortcuts",new _e(be.hook));U(this,"cellClassName",new _e(be.hook,void 0,new ht));U(this,"teleported",!0);U(this,"popperClass","");U(this,"popperOptions",{});U(this,"default",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"visibleChange",new _e(be.event,void 0,new ht));U(this,"panelChange",new _e(be.event,void 0,new ht));U(this,"calendarChange",new _e(be.event,void 0,new ht))}}class Kxe extends XR{constructor(){super(...arguments);U(this,"placeholder","");U(this,"type",K3.date)}}class Xxe extends XR{constructor(){super(...arguments);U(this,"type",NN.daterange);U(this,"defaultValue",null);U(this,"defaultTime",null);U(this,"unlinkPanels",!1);U(this,"startPlaceholder","");U(this,"endPlaceholder","");U(this,"rangeSeparator","-")}}class Yxe extends xl{constructor(){super(...arguments);U(this,"clearable",!0);U(this,"effect",h0.light);U(this,"prefixIcon",new _e(be.icon,"Clock"));U(this,"clearIcon",new _e(be.icon,"CircleClose"));U(this,"start","09:00");U(this,"end","18:00");U(this,"step","00:30");U(this,"minTime","");U(this,"maxTime","");U(this,"format","HH:mm");U(this,"emptyValues",new _e(be.dataObject,null,new Hr({type:Xe.array,enable:!0})));U(this,"valueOnClear",new _e(be.hook,void 0,new ht));U(this,"clear",new _e(be.event,void 0,new ht))}}class Jxe extends xl{constructor(){super(...arguments);U(this,"width","40px");U(this,"inlinePrompt",!1);U(this,"activeIcon",new _e(be.icon));U(this,"inactiveIcon",new _e(be.icon));U(this,"activeActionIcon",new _e(be.icon));U(this,"inactiveActionIcon",new _e(be.icon));U(this,"activeText","");U(this,"inactiveText","");U(this,"valueType",new _e(be.placer,Xe.boolean));U(this,"activeValue",!0);U(this,"inactiveValue",!1);U(this,"beforeChange",new _e(be.hook,void 0,new ht))}}class Zxe extends W0{constructor(){super(...arguments);U(this,"max",5);U(this,"lowThreshold",2);U(this,"highThreshold",4);U(this,"allowHalf",!0);U(this,"showText",!0);U(this,"showScore",!0)}}class Qxe extends Oxe{constructor(){super(...arguments);U(this,"percentage",0);U(this,"duration",3);U(this,"width",126);U(this,"strokeWidth",6);U(this,"type",qv.line);U(this,"status",vN.none);U(this,"strokeLinecap",gN.round);U(this,"color",new _e(be.hook,void 0,new ht));U(this,"trackColor",new _e(be.hook,void 0,new ht));U(this,"format",new _e(be.hook,void 0,new ht));U(this,"textInside",!1);U(this,"indeterminate",!1);U(this,"showText",!0);U(this,"striped",!1);U(this,"stripedFlow",!1);U(this,"direction",new _e(be.placer,su.horizontal));U(this,"completeSec",new _e(be.placer,0));U(this,"completed",new _e(be.placerHook,void 0,new ht))}}class qxe extends W0{constructor(){super(...arguments);U(this,"colorFormat",KN.rgb);U(this,"showAlpha",!1);U(this,"popperClass","");U(this,"predefine",new _e(be.dataObject,[],new Hr({type:Xe.array,enable:!0})))}}class $xe extends xl{constructor(){super(...arguments);U(this,"min",0);U(this,"max",100);U(this,"step",10);U(this,"debounce",0);U(this,"showStops",!0);U(this,"vertical",!1);U(this,"height","");U(this,"range",!1);U(this,"marks",new _e(be.dataObject,{},new Hr({type:Xe.object,enable:!0})));U(this,"showInput",!1);U(this,"showInputControls",!0);U(this,"inputSize",Is.default);U(this,"showTooltip",!0);U(this,"placement",d0.top);U(this,"formatTooltip",new _e(be.hook,void 0,new ht));U(this,"tooltipClass","")}}class YR extends W0{constructor(){super(...arguments);U(this,"fileList",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})));U(this,"accept",new _e(be.placer,[],new Hr({type:Xe.array,enable:!0})));U(this,"listType",m0.text);U(this,"limit",3);U(this,"fileMaxSize",new _e(be.placer,5));U(this,"multiple",!1);U(this,"showFileList",!0);U(this,"autoUpload",!0);U(this,"drag",!1);U(this,"action","");U(this,"dataName",new _e(be.placer,"file"));U(this,"method",JN.post);U(this,"uploadTip",new _e(be.placer,""));U(this,"uploadTriggerTip",new _e(be.placer,""));U(this,"submitUploadTip",new _e(be.placer,""));U(this,"getHeader",new _e(be.placerHook,void 0,new ht));U(this,"getData",new _e(be.placerHook,void 0,new ht));U(this,"withCredentials",!1);U(this,"httpRequest",new _e(be.hook,void 0,new ht));U(this,"beforeUpload",new _e(be.hook,void 0,new ht));U(this,"beforeRemove",new _e(be.hook,void 0,new ht));U(this,"onChange",new _e(be.hook,void 0,new ht));U(this,"onExceed",new _e(be.hook,void 0,new ht));U(this,"onProgress",new _e(be.hook,void 0,new ht));U(this,"onPreview",new _e(be.hook,void 0,new ht));U(this,"onSuccess",new _e(be.hook,void 0,new ht));U(this,"onError",new _e(be.hook,void 0,new ht));U(this,"onRemove",new _e(be.hook,void 0,new ht));U(this,"isUploadSuccess",new _e(be.placerHook,void 0,new ht));U(this,"onBuildUrl",new _e(be.placerHook,void 0,new ht));U(this,"allowPreview",new _e(be.placerHook,void 0,new ht));U(this,"allowDownload",new _e(be.placerHook,void 0,new ht));U(this,"onDownload",new _e(be.placerHook,void 0,new ht));U(this,"allowDelete",new _e(be.placerHook,void 0,new ht));U(this,"slotable",new _e(be.placer,!1));U(this,"trigger",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!1}),void 0,new ir));U(this,"default",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!1}),void 0,new ir));U(this,"tip",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!1}),void 0,new ir));U(this,"file",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!1}),void 0,new ir))}}class e_e{constructor(){let t=new YR;_e.setValue(t,"accept",J3(YN)),_e.setValue(t,"listType",m0.pictureCard);const n=["file","drag"];return n==null||n.forEach(r=>delete t[r]),t}}class t_e{constructor(){let t=new YR;return _e.setValue(t,"accept",J3(XN)),t}}class n_e extends xl{}class r_e extends xl{constructor(){super(...arguments);U(this,"clearable",!0);U(this,"checkStrictly",new _e(be.placer,!1));U(this,"showAllLevels",!0);U(this,"emitPath",new _e(be.placer,!0));U(this,"separator"," / ");U(this,"debounce",300);U(this,"hoverThreshold",new _e(be.placer,500));U(this,"expandTrigger",new _e(be.placer,m_.click));U(this,"tagType",U3.info);U(this,"tagEffect",z3.light);U(this,"lazy",new _e(be.placer,!1));U(this,"lazyLoad",new _e(be.placerHook,void 0,new ht));U(this,"filterable",!1);U(this,"filterMethod",new _e(be.hook,void 0,new ht));U(this,"beforeFilter",new _e(be.hook,void 0,new ht));U(this,"multiple",new _e(be.placer,!1));U(this,"collapseTags",!1);U(this,"collapseTagsTooltip",!1);U(this,"maxCollapseTags",1);U(this,"emptyValues",new _e(be.dataObject,null,new Hr({type:Xe.array,enable:!0})));U(this,"valueOnClear",new _e(be.hook,void 0,new ht));U(this,"popperClass","");U(this,"teleported",!0);U(this,"persistent",!0);U(this,"valueProp",new _e(be.placer,"value"));U(this,"labelProp",new _e(be.placer,"label"));U(this,"childrenProp",new _e(be.placer,"children"));U(this,"disabledProp",new _e(be.placer,"disabled"));U(this,"leafProp",new _e(be.placer,"leaf"));U(this,"withAttachData",new _e(be.placer,!0));U(this,"textName",new _e(be.placer,""));U(this,"optionName",new _e(be.placer,""));U(this,"labelName",new _e(be.placer,""));U(this,"visibleChange",new _e(be.event,void 0,new ht));U(this,"removeTag",new _e(be.event,void 0,new ht));U(this,"expandChange",new _e(be.event,void 0,new ht));U(this,"clear",new _e(be.event,void 0,new ht));U(this,"empty",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"optionDefault",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})));U(this,"relate",new _e(be.placer,void 0))}}class JR extends ya{constructor(){super(...arguments);U(this,"renderAfterExpand",!0);U(this,"highlightCurrent",!1);U(this,"defaultExpandAll",!1);U(this,"expandOnClickNode",!0);U(this,"checkOnClickNode",!1);U(this,"autoExpandParent",!0);U(this,"showCheckbox",!1);U(this,"checkStrictly",!1);U(this,"accordion",!1);U(this,"draggable",!1);U(this,"lazy",!1);U(this,"load",new _e(be.hook,void 0,new ht));U(this,"filterNodeMethod",new _e(be.hook,void 0,new ht));U(this,"renderContent",new _e(be.hook,void 0,new ht));U(this,"allowDrag",new _e(be.hook,void 0,new ht));U(this,"allowDrop",new _e(be.hook,void 0,new ht));U(this,"empty",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"optionDefault",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"nodeClick",new _e(be.event,void 0,new ht));U(this,"nodeContextmenu",new _e(be.event,void 0,new ht));U(this,"checkChange",new _e(be.event,void 0,new ht));U(this,"check",new _e(be.event,void 0,new ht));U(this,"currentChange",new _e(be.event,void 0,new ht));U(this,"nodeExpand",new _e(be.event,void 0,new ht));U(this,"nodeCollapse",new _e(be.event,void 0,new ht));U(this,"nodeDragStart",new _e(be.event,void 0,new ht));U(this,"nodeDragEnter",new _e(be.event,void 0,new ht));U(this,"nodeDragLeave",new _e(be.event,void 0,new ht));U(this,"nodeDragOver",new _e(be.event,void 0,new ht));U(this,"nodeDragEnd",new _e(be.event,void 0,new ht));U(this,"nodeDrop",new _e(be.event,void 0,new ht));U(this,"indent",18);U(this,"icon",new _e(be.icon,""));U(this,"emptyText","");U(this,"labelProp",new _e(be.placerHook,void 0,new ht));U(this,"childrenProp",new _e(be.placerHook,void 0,new ht));U(this,"disabledProp",new _e(be.placerHook,void 0,new ht));U(this,"isLeafProp",new _e(be.placerHook,void 0,new ht));U(this,"classProp",new _e(be.placer,void 0,new ht));U(this,"nodeKey","value");U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class i_e extends H0{}class a_e extends H0{}class o_e extends yu{constructor(){super(...arguments);U(this,"label",new _e(be.placer,""));U(this,"type",H3.default);U(this,"size",Is.default);U(this,"tag","span");U(this,"truncated",!1)}}class s_e extends yu{constructor(){super(...arguments);U(this,"type",Is.default);U(this,"underline",!0);U(this,"disabled",!1);U(this,"href","");U(this,"target",HN.blank);U(this,"prefixIcon",new _e(be.placer,""));U(this,"suffixIcon",new _e(be.placer,""));U(this,"default",new _e(be.slot,void 0,new er,void 0,new ir))}}class l_e extends yu{constructor(){super(...arguments);U(this,"type",h_.primary);U(this,"size",Is.default);U(this,"effect",z3.light);U(this,"color","");U(this,"round",!1);U(this,"closable",!1);U(this,"disableTransitions",!1);U(this,"hit",!1);U(this,"click",new _e(be.event,void 0,new ht));U(this,"close",new _e(be.event,void 0,new ht))}}class u_e extends yu{constructor(){super(...arguments);U(this,"size",Is.default);U(this,"disabled",!1);U(this,"type",H3.default);U(this,"buttonType",kN.default);U(this,"text",!1);U(this,"plain",!1);U(this,"round",!1);U(this,"circle",!1);U(this,"link",!1);U(this,"icon",new _e(be.icon));U(this,"bg",!1);U(this,"loading",!1);U(this,"loadingIcon",new _e(be.icon,"Loading"));U(this,"autofocus",!1);U(this,"autoInsertSpace",!1);U(this,"color","");U(this,"dark",!1);U(this,"tag","button");U(this,"click",new _e(be.event,new Soe,new ht));U(this,"default",new _e(be.slot,void 0,new er,void 0,new ir))}}class c_e extends yu{constructor(){super(...arguments);U(this,"direction",su.horizontal);U(this,"contentPosition",Df.center);U(this,"borderStyle",zN.solid)}}class f_e extends ya{constructor(){super(...arguments);U(this,"chartOption",new _e(be.hook,void 0,new ht));U(this,"dataSource",new _e(be.dataObject,null,new Hr({type:Xe.array,enable:!0})))}}class p_e extends yu{constructor(){super(...arguments);U(this,"target","");U(this,"offset",0);U(this,"position",xN.top);U(this,"zIndex",100);U(this,"change",new _e(be.event,void 0,new ht));U(this,"scroll",new _e(be.event,void 0,new ht))}}class h_e extends H0{constructor(){super(...arguments);U(this,"ctrlWidth",new _e(be.placer,"200px"));U(this,"displayLayout",new _e(be.placer,ou.inline));U(this,"format",new _e(be.placer,QN.CODE128));U(this,"lineWidth",new _e(be.placer,2));U(this,"lineHeight",new _e(be.placer,100));U(this,"lineColor",new _e(be.placer,"black"));U(this,"displayValue",new _e(be.placer,!0))}}class d_e extends H0{constructor(){super(...arguments);U(this,"ctrlWidth",new _e(be.placer,"200px"))}}class m_e extends H0{constructor(){super(...arguments);U(this,"displayLayout",new _e(be.placer,ou.inline));U(this,"identifyCodeLen",new _e(be.placer,4));U(this,"content",new _e(be.placer,"1234567890abcdefjhijklinopqrsduvwxyz"));U(this,"fontSizeMin",25);U(this,"fontSizeMax",35);U(this,"backgroundColorMin",255);U(this,"backgroundColorMax",255);U(this,"colorMin",0);U(this,"colorMax",160);U(this,"lineColorMin",40);U(this,"lineColorMax",180);U(this,"dotColorMin",0);U(this,"dotColorMax",255);U(this,"contentWidth",112);U(this,"contentHeight",40)}}class v_e extends ya{constructor(){super(...arguments);U(this,"sizeDef",new _e(be.placer,""));U(this,"color","");U(this,"size",0);U(this,"icon",new _e(be.icon,"Apple"))}}class g_e extends yu{constructor(){super(...arguments);U(this,"image","");U(this,"imageSize");U(this,"description","")}}class y_e extends yu{constructor(){super(...arguments);U(this,"value","");U(this,"max",99);U(this,"isDot",!1);U(this,"hidden",new _e(be.placer,!1));U(this,"type",h_.danger)}}class x_e extends yu{constructor(){super(...arguments);U(this,"type",h_.primary);U(this,"size",Is.default);U(this,"maxHeight");U(this,"showTimeout",250);U(this,"hideTimeout",150);U(this,"placement",d0.bottom);U(this,"trigger",VN.hover);U(this,"splitButton",!1);U(this,"disabled",!1);U(this,"hideOnClick",!0);U(this,"tabindex",0);U(this,"slotable",new _e(be.placer,!1));U(this,"popperClass","menu");U(this,"popperOptions",{});U(this,"teleported",!0);U(this,"click",new _e(be.event,void 0,new ht));U(this,"command",new _e(be.event,void 0,new ht));U(this,"visibleChange",new _e(be.event,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class ZR extends Us{constructor(){super(...arguments);U(this,"command","");U(this,"icon",new _e(be.icon));U(this,"disabled",!1);U(this,"divided",!1)}}class __e extends yu{constructor(){super(...arguments);U(this,"size",Is.default);U(this,"shape",bN.circle);U(this,"src","");U(this,"fit",X3.cover);U(this,"icon",new _e(be.icon));U(this,"error",new _e(be.event,void 0,new ht))}}class b_e extends ya{constructor(){super(...arguments);U(this,"icon",mN.info);U(this,"title",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"subTitle",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"extra",new _e(be.slot,void 0,new er,void 0,new ir))}}class w_e extends yu{constructor(){super(...arguments);U(this,"target","");U(this,"visibilityHeight",200);U(this,"right",40);U(this,"bottom",40);U(this,"click",new _e(be.event,void 0,new ht))}}class E_e extends ya{constructor(){super(...arguments);U(this,"container","");U(this,"offset",0);U(this,"bound",15);U(this,"duration",300);U(this,"type",UN.default);U(this,"direction",su.vertical);U(this,"marker",!0);U(this,"change",new _e(be.event,void 0,new ht));U(this,"click",new _e(be.event,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class QR extends jA{constructor(){super(...arguments);U(this,"title","");U(this,"href","");U(this,"children")}}class S_e extends ya{constructor(){super(...arguments);U(this,"height","");U(this,"initialIndex",0);U(this,"indicatorPosition",FN.none);U(this,"trigger",m_.hover);U(this,"arrow",MN.hover);U(this,"type",LN.none);U(this,"direction",su.horizontal);U(this,"loop",!0);U(this,"autoplay",!0);U(this,"pauseOnHover",!0);U(this,"interval",3e3);U(this,"change",new _e(be.event,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class qR extends Us{constructor(){super(...arguments);U(this,"slotContent",new _e(be.slot,void 0,new er({slotName:"content"}),void 0,new ir))}}class C_e extends ya{constructor(){super(...arguments);U(this,"accordion",!1);U(this,"change",new _e(be.event,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class $R extends jA{constructor(){super(...arguments);U(this,"title","");U(this,"content","");U(this,"slotTitle",new _e(be.slot,void 0,new er({slotName:"title"}),void 0,new ir));U(this,"slotContent",new _e(be.slot,void 0,new er({slotName:"content"}),void 0,new ir));U(this,"disabled",!1)}}class A_e extends ya{constructor(){super(...arguments);U(this,"border",!1);U(this,"column",3);U(this,"direction",su.horizontal);U(this,"size",Is.default);U(this,"title","");U(this,"extra","");U(this,"slotable",new _e(be.placer,!1));U(this,"slotTitle",new _e(be.slot,void 0,new er({allowDrag:!0,slotName:"title"}),void 0,new ir));U(this,"slotExtra",new _e(be.slot,void 0,new er({allowDrag:!0,slotName:"extra"}),void 0,new ir));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class ej extends Us{constructor(){super(...arguments);U(this,"content",new _e(be.placer,""));U(this,"span",1);U(this,"width","");U(this,"minWidth","");U(this,"align",Df.left);U(this,"labelAlign",Df.left);U(this,"className","");U(this,"labelClassName","")}}class T_e extends ya{constructor(){super(...arguments);U(this,"width",new _e(be.placer,""));U(this,"height",new _e(be.placer,""));U(this,"src","");U(this,"fit",X3.empty);U(this,"loading",RN.eager);U(this,"hideOnClickModal",!1);U(this,"lazy",!1);U(this,"closeOnPressEscape",!0);U(this,"previewTeleported",!1);U(this,"infinite",!0);U(this,"scrollContainer","");U(this,"referrerpolicy","");U(this,"previewSrcList",new _e(be.dataObject,[],new Hr({type:Xe.array,enable:!0})));U(this,"zIndex",999999);U(this,"initialIndex",0);U(this,"zoomRate",1.2);U(this,"placeholder",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"slotError",new _e(be.slot,void 0,new er({slotName:"error"}),void 0,new ir));U(this,"viewer",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"load",new _e(be.event,void 0,new ht));U(this,"error",new _e(be.event,void 0,new ht));U(this,"switch",new _e(be.event,void 0,new ht));U(this,"close",new _e(be.event,void 0,new ht));U(this,"show",new _e(be.event,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class D_e extends ya{constructor(){super(...arguments);U(this,"separator","");U(this,"separatorIcon",new _e(be.icon));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class tj extends Us{constructor(){super(...arguments);U(this,"to","");U(this,"replace",!1);U(this,"useRouter",!1)}}class k_e extends ya{constructor(){super(...arguments);U(this,"uniqueOpened",!1);U(this,"router",!1);U(this,"collapseTransition",!0);U(this,"collapse",!1);U(this,"ellipsis",!1);U(this,"ellipsisIcon","");U(this,"backgroundColor","#ffffff");U(this,"textColor","#303133");U(this,"activeTextColor","#409EFF");U(this,"mode",su.vertical);U(this,"menuTrigger",m_.hover);U(this,"popperEffect",h0.dark);U(this,"closeOnClickOutside",!1);U(this,"popperClass","");U(this,"showTimeout",0);U(this,"hideTimeout",0);U(this,"openAll",new _e(be.placer,!0));U(this,"isActiveItem",new _e(be.hook,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class nj extends Us{constructor(){super(...arguments);U(this,"hidden",!1);U(this,"disabled",!1);U(this,"attachUrlParams",!1);U(this,"icon","");U(this,"route","");U(this,"click",new _e(be.event,void 0,new ht));U(this,"menuItemType",Dc.None);U(this,"showTimeout",0);U(this,"hideTimeout",0);U(this,"popperOffset",0);U(this,"expandCloseIcon","");U(this,"expandOpenIcon","");U(this,"collapseCloseIcon","");U(this,"collapseOpenIcon","");U(this,"popperClass","");U(this,"teleported",!0);U(this,"children")}}class P_e extends ya{constructor(){super(...arguments);U(this,"label");U(this,"displayLayout",new _e(be.placer,ou.inline))}}class O_e extends ya{constructor(){super(...arguments);U(this,"direction",su.horizontal);U(this,"space","");U(this,"processStatus",W3.process);U(this,"finishStatus",W3.finish);U(this,"alignCenter",!1);U(this,"simple",!1);U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class rj extends Us{constructor(){super(...arguments);U(this,"description","");U(this,"icon","");U(this,"status","")}}class I_e extends ya{constructor(){super(...arguments);U(this,"ctrlWidth",new _e(be.placer,"100%"));U(this,"data",new _e(be.singleOption,null));U(this,"height","200px");U(this,"maxHeight","200px");U(this,"emptyText","");U(this,"size",Is.default);U(this,"defaultSort",new _e(be.dataObject,{},new Hr({type:Xe.array,enable:!1})));U(this,"tableLayout",TN.fixed);U(this,"stripe",!1);U(this,"border",!1);U(this,"fit",!0);U(this,"showHeader",!0);U(this,"scrollbarAlwaysOn",!1);U(this,"flexible",!1);U(this,"beforeTableRender",new _e(be.placerHook,void 0,new ht));U(this,"highlightCurrentRow",!1);U(this,"currentRowKey","");U(this,"rowClassName",new _e(be.hook,void 0,new ht));U(this,"rowStyle",new _e(be.hook,void 0,new ht));U(this,"headerRowClassName",new _e(be.hook,void 0,new ht));U(this,"headerRowStyle",new _e(be.hook,void 0,new ht));U(this,"rowKey",new _e(be.hook,void 0,new ht));U(this,"expandRowKeys",new _e(be.dataObject,[],new Hr({type:Xe.array,enable:!1})));U(this,"cellClassName",new _e(be.hook,void 0,new ht));U(this,"cellStyle",new _e(be.hook,void 0,new ht));U(this,"headerCellClassName",new _e(be.hook,void 0,new ht));U(this,"headerCellStyle",new _e(be.hook,void 0,new ht));U(this,"defaultExpandAll",!1);U(this,"showSummary",!1);U(this,"selectOnIndeterminate",!0);U(this,"sumText","Sum");U(this,"summaryMethod",new _e(be.hook,void 0,new ht));U(this,"spanMethod",new _e(be.hook,void 0,new ht));U(this,"treeProps",new _e(be.dataObject,{},new Hr({type:Xe.object,enable:!1})));U(this,"indent",16);U(this,"lazy",!1);U(this,"load",new _e(be.hook,void 0,new ht));U(this,"showOverflowTooltip",!1);U(this,"tooltipEffect",h0.dark);U(this,"tooltipOptions",null);U(this,"allowPage",new _e(be.placer,!1));U(this,"pageSize",new _e(be.placer,10));U(this,"pageSizes",new _e(be.placer,[10,20,30,40,50,100]));U(this,"hideOnSinglePage",new _e(be.placer,!1));U(this,"layout",new _e(be.placer,["prev","pager","next","jumper","->","total"]));U(this,"enableExport",new _e(be.placer,!1));U(this,"exportFileName",new _e(be.placer,"exportFile"));U(this,"exportSheetName",new _e(be.placer,"Sheet1"));U(this,"exportAutoWidth",new _e(be.placer,!1));U(this,"select",new _e(be.event,void 0,new ht));U(this,"selectAll",new _e(be.event,void 0,new ht));U(this,"selectionChange",new _e(be.event,void 0,new ht));U(this,"cellMouseEnter",new _e(be.event,void 0,new ht));U(this,"cellMouseLeave",new _e(be.event,void 0,new ht));U(this,"cellClick",new _e(be.event,void 0,new ht));U(this,"cellDblclick",new _e(be.event,void 0,new ht));U(this,"cellContextmenu",new _e(be.event,void 0,new ht));U(this,"rowClick",new _e(be.event,void 0,new ht));U(this,"rowContextmenu",new _e(be.event,void 0,new ht));U(this,"rowDblclick",new _e(be.event,void 0,new ht));U(this,"headerClick",new _e(be.event,void 0,new ht));U(this,"headerContextmenu",new _e(be.event,void 0,new ht));U(this,"sortChange",new _e(be.event,void 0,new ht));U(this,"filterChange",new _e(be.event,void 0,new ht));U(this,"currentChange",new _e(be.event,void 0,new ht));U(this,"headerDragend",new _e(be.event,void 0,new ht));U(this,"expandChange",new _e(be.event,void 0,new ht));U(this,"default",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"append",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"empty",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class ij extends Qg{constructor(){super(...arguments);U(this,"type",PN.default);U(this,"index",new _e(be.hook,void 0,new ht));U(this,"label","");U(this,"prop","");U(this,"width","");U(this,"minWidth","");U(this,"fixed",!1);U(this,"resizable",!0);U(this,"showOverflowTooltip",!1);U(this,"reserveSelection",!1);U(this,"renderHeader",new _e(be.hook,void 0,new ht));U(this,"formatter",new _e(be.hook,void 0,new ht));U(this,"selectable",new _e(be.hook,void 0,new ht));U(this,"align",Df.left);U(this,"headerAlign",Df.left);U(this,"className","");U(this,"labelClassName","");U(this,"sortable",!1);U(this,"sortOrders",new _e(be.dataObject,["ascending","descending",null],new Hr({type:Xe.array})));U(this,"sortMethod",new _e(be.hook,void 0,new ht));U(this,"sortBy",new _e(be.hook,void 0,new ht));U(this,"filters",new _e(be.dataObject,void 0,new Hr({type:Xe.object})));U(this,"filteredValue",new _e(be.dataObject,void 0,new Hr({type:Xe.array,enable:!0})));U(this,"filterMethod",new _e(be.hook,void 0,new ht));U(this,"filterMultiple",!0);U(this,"filterPlacement",d0.top);U(this,"filterClassName","");U(this,"columnKey","");U(this,"exportable",new _e(be.placer,!0));U(this,"header",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"default",{widgetList:[],...new _e(be.slot,void 0,new er({allowDrag:!0,enable:!0}),void 0,new ir)});U(this,"slotable",new _e(be.placer,!1));U(this,"uuid",new _e(be.placer,fu()))}}class qg extends Db{constructor(){super(...arguments);U(this,"customClass",new _e(be.placer,[]));U(this,"componentRootClass",new _e(be.placer,[]));U(this,"displayLayout",new _e(be.placer,ou.block))}}class Kf extends qg{constructor(){super(...arguments);U(this,"componentWrapperClass",new _e(be.placer,[]))}}class B_e extends qg{constructor(){super(...arguments);U(this,"hidden",!1);U(this,"colHeight",new _e(be.placer,""));U(this,"gutter",0);U(this,"justify",IN.start);U(this,"align",BN.middle);U(this,"tag","div");U(this,"cols",new _e(be.placer,[]))}}class aj extends Kf{constructor(){super(...arguments);U(this,"hidden",!1);U(this,"responsive",!1);U(this,"span",12);U(this,"xs",12);U(this,"sm",12);U(this,"md",12);U(this,"lg",12);U(this,"xl",12);U(this,"offset",0);U(this,"push",0);U(this,"pull",0);U(this,"tag","div");U(this,"horizontalAlign",new _e(be.placer,""))}}class N_e extends qg{constructor(){super(...arguments);U(this,"hidden",!1)}}class F_e extends Kf{constructor(){super(...arguments);U(this,"cellWidth","");U(this,"cellHeight","");U(this,"colspan",0);U(this,"rowspan",0)}}class M_e extends Kf{constructor(){super(...arguments);U(this,"label","");U(this,"title","");U(this,"defaultValue",!1);U(this,"width","50%");U(this,"fullscreen",!1);U(this,"top","");U(this,"modal",!0);U(this,"modalClass","");U(this,"lockScroll",!0);U(this,"draggable",!1);U(this,"overflow",!1);U(this,"center",!1);U(this,"alignCenter",!1);U(this,"closeOnClickModal",!0);U(this,"closeOnPressEscape",!0);U(this,"showClose",!0);U(this,"destroyOnClose",!1);U(this,"openDelay",0);U(this,"closeDelay",0);U(this,"closeIcon",new _e(be.icon,"Close"));U(this,"beforeClose",new _e(be.hook,void 0,new ht));U(this,"appendToBody",!1);U(this,"appendTo","body");U(this,"zIndex",1e4);U(this,"header",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"default",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"footer",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"open",new _e(be.event,void 0,new ht));U(this,"opened",new _e(be.event,void 0,new ht));U(this,"close",new _e(be.event,void 0,new ht));U(this,"closed",new _e(be.event,void 0,new ht));U(this,"openAutoFocus",new _e(be.event,void 0,new ht));U(this,"closeAutoFocus",new _e(be.event,void 0,new ht))}}class L_e extends Kf{constructor(){super(...arguments);U(this,"ctrlWidth",new _e(be.placer,"100%"));U(this,"title","title");U(this,"type",jN.info);U(this,"description","description");U(this,"closable",!0);U(this,"center",!1);U(this,"closeText","");U(this,"showIcon",!1);U(this,"slotable",new _e(be.placer,!1));U(this,"effect",h0.light);U(this,"default",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"titleSlot",new _e(be.slot,void 0,new er({allowDrag:!0,slotName:"title"}),void 0,new ir));U(this,"close",new _e(be.event,void 0,new ht))}}class R_e extends Kf{constructor(){super(...arguments);U(this,"label","");U(this,"title","");U(this,"defaultValue",!1);U(this,"size","30%");U(this,"modal",!0);U(this,"modalClass","");U(this,"appendToBody",!1);U(this,"lockScroll",!0);U(this,"withHeader",!0);U(this,"showClose",!0);U(this,"closeOnClickModal",!0);U(this,"closeOnPressEscape",!0);U(this,"destroyOnClose",!1);U(this,"beforeClose",new _e(be.hook,void 0,new ht));U(this,"direction",ON.rtl);U(this,"openDelay",0);U(this,"closeDelay",0);U(this,"zIndex",1e4);U(this,"header",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"default",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"footer",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"open",new _e(be.event,void 0,new ht));U(this,"opened",new _e(be.event,void 0,new ht));U(this,"close",new _e(be.event,void 0,new ht));U(this,"closed",new _e(be.event,void 0,new ht));U(this,"openAutoFocus",new _e(be.event,void 0,new ht));U(this,"closeAutoFocus",new _e(be.event,void 0,new ht))}}class j_e extends ya{constructor(){super(...arguments);U(this,"background",!1);U(this,"hideOnSinglePage",!1);U(this,"size",Is.default);U(this,"defaultPageSize",10);U(this,"pagerCount",7);U(this,"defaultCurrentPage",1);U(this,"layout",new _e(be.dataObject,["prev","pager","next","jumper","->","total"]));U(this,"pageSizes",new _e(be.dataObject,[10,20,30,40,50,100],new Hr({type:Xe.array,enable:!0})));U(this,"popperClass","");U(this,"prevText","");U(this,"nextText","");U(this,"prevIcon",new _e(be.icon,"ArrowLeft"));U(this,"nextIcon",new _e(be.icon,"ArrowRight"));U(this,"disabled",!1);U(this,"teleported",!0);U(this,"default",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"sizeChange",new _e(be.event,void 0,new ht));U(this,"currentChange",new _e(be.event,void 0,new ht));U(this,"change",new _e(be.event,void 0,new ht));U(this,"prevClick",new _e(be.event,void 0,new ht));U(this,"nextClick",new _e(be.event,void 0,new ht))}}class V_e extends Kf{constructor(){super(...arguments);U(this,"newDataSource",new _e(be.singleOption,null,new Hr({type:Xe.object,enable:!0})));U(this,"editDataSource",new _e(be.singleOption,null,new Hr({type:Xe.object,enable:!0})));U(this,"loadDataWhenInit",new _e(be.placer,!1));U(this,"showLoading",new _e(be.placer,!1));U(this,"loadingText",new _e(be.placer,""));U(this,"inline",!1);U(this,"disabled",!1);U(this,"labelAlign",new _e(be.placer,""));U(this,"labelPosition",DN.right);U(this,"labelWidth","");U(this,"labelSuffix","");U(this,"statusIcon",!1);U(this,"hideRequiredAsterisk",!1);U(this,"requireAsteriskPosition",yN.left);U(this,"showMessage",!0);U(this,"inlineMessage",!1);U(this,"validateOnRuleChange",!0);U(this,"scrollToError",!1);U(this,"scrollIntoViewOptions",new _e(be.dataObject,void 0,new Hr({type:Xe.object,enable:!0})));U(this,"size",Is.default);U(this,"customClass",new _e(be.placer,[]));U(this,"validate",new _e(be.event,void 0,new ht));U(this,"default",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"modelName",new _e(be.placer,"formData"));U(this,"refName",new _e(be.placer,"vForm"));U(this,"rulesName",new _e(be.placer,"rules"));U(this,"formCreated",new _e(be.event,void 0,new ht));U(this,"formMounted",new _e(be.event,void 0,new ht));U(this,"formDataChange",new _e(be.event,void 0,new ht));U(this,"formDataLoaded",new _e(be.placerHook,void 0,new ht));U(this,"needFormAdd",new _e(be.placerHook,void 0,new ht))}}class z_e extends qg{constructor(){super(...arguments);U(this,"cols",new _e(be.placer,[]))}}class U_e extends qg{constructor(){super(...arguments);U(this,"hidden",!1);U(this,"closable",!1);U(this,"addable",!1);U(this,"editable",!1);U(this,"stretch",!1);U(this,"showLoading",new _e(be.placer,!1));U(this,"loadingText",new _e(be.placer,""));U(this,"type",G3.borderCard);U(this,"tabPosition",_N.top);U(this,"beforeLeave",new _e(be.hook,void 0,new ht));U(this,"tabs",new _e(be.placer,void 0,new ht));U(this,"tabChange",new _e(be.event,void 0,new ht));U(this,"tabClick",new _e(be.event,void 0,new ht));U(this,"tabAdd",new _e(be.event,void 0,new ht));U(this,"edit",new _e(be.event,void 0,new ht));U(this,"tabRemove",new _e(be.event,void 0,new ht));U(this,"created",new _e(be.event,void 0,new ht));U(this,"mounted",new _e(be.event,void 0,new ht))}}class HA extends Kf{constructor(){super(...arguments);U(this,"hidden",!1);U(this,"label","");U(this,"disabled",!1);U(this,"lazy",!1);U(this,"isdefault",!1)}}class H_e extends Kf{constructor(){super(...arguments);U(this,"ctrlWidth",new _e(be.placer,"100%"));U(this,"hidden",!1);U(this,"slotable",new _e(be.placer,!1));U(this,"label",new _e(be.placer,"card"));U(this,"folded",new _e(be.placer,!1));U(this,"showFold",new _e(be.placer,!1));U(this,"shadow",CN.always);U(this,"bodyStyle",new _e(be.placer,void 0,new ht));U(this,"header",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"default",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir))}}class W_e extends kb{constructor(){super(...arguments);U(this,"label",new _e(be.placer,""));U(this,"hidden",!1);U(this,"minRowNum",1);U(this,"maxRowNum",50);U(this,"showMode",d_.line);U(this,"addRecordText","");U(this,"deleteRecordText","");U(this,"sortUpText","");U(this,"sortDownText","");U(this,"showHeader",!0);U(this,"showDetail",!1);U(this,"onlyOneAddButton",!1);U(this,"showBorder",!0);U(this,"showLimit",!1);U(this,"sortable",!1);U(this,"allowAdd",!0);U(this,"allowDelete",!0);U(this,"allowDefaultAdd",!1);U(this,"row",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!0}),void 0,new ir));U(this,"detail",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!0}),void 0,new ir));U(this,"addRow",new _e(be.event,void 0,new ht));U(this,"deleteRow",new _e(be.event,void 0,new ht));U(this,"change",new _e(be.event,void 0,new ht));U(this,"click",new _e(be.event,void 0,new ht));U(this,"dataFormat",new _e(be.hook,void 0,new ht));U(this,"rowDataFormat",new _e(be.hook,void 0,new ht))}}class G_e extends kb{constructor(){super(...arguments);U(this,"label",new _e(be.placer,""));U(this,"data",new _e(be.singleOption,null));U(this,"alwaysShow",!1);U(this,"hidden",!1);U(this,"showLoading",!1);U(this,"loadingText","");U(this,"loadDataWhenInit",new _e(be.placer,!1));U(this,"noData","");U(this,"completed",new _e(be.event,void 0,new ht));U(this,"row",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!0}),void 0,new ir));U(this,"click",new _e(be.event,void 0,new ht))}}class K_e extends Db{constructor(){super(...arguments);U(this,"label","");U(this,"compName",lt.tag);U(this,"appendOnClick",!0);U(this,"showSaveButton",!0);U(this,"showAddButton",!0);U(this,"labelKey","label");U(this,"contentKey","value");U(this,"relatedIds",new _e(be.dataObject,[],new Hr({type:Xe.array,enable:!0})));U(this,"addButtonText","");U(this,"saveButtonText","");U(this,"operateData",new _e(be.dataObject,{},new Hr({type:Xe.object,enable:!0})));U(this,"hidden",!1);U(this,"click",new _e(be.event,void 0,new ht));U(this,"save",new _e(be.event,void 0,new ht));U(this,"add",new _e(be.event,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class oj extends Db{constructor(){super(...arguments);U(this,"label");U(this,"value")}}class X_e extends ya{constructor(){super(...arguments);U(this,"src","");U(this,"withQuery",new _e(be.placer,!1));U(this,"hashRouter",new _e(be.placer,!1));U(this,"onLoaded",new _e(be.event,void 0,new ht))}}const Fo={autoWidth:!0,inlineLayout:!0},sj=[new Gn(lt.text,new o_e,!1,Fo),new Gn(lt.link,new s_e,!1,Fo),new Gn(lt.button,new u_e,!1,Fo),new Gn(lt.tag,new l_e,!1,Fo),new Gn(lt.icon,new v_e,!1,Fo)];class Dh extends gt{constructor(){super(),this.category=Tf.container}}class WA extends gt{constructor(){super();U(this,"widgetList",[]);this.category=Tf.container}}class Y_e extends Dh{constructor(){super();U(this,"cols",[]);this.type=lt.cont,this.options=new z_e,this.init(!1)}}class GA extends Qg{constructor(){super(...arguments);U(this,"direction",su.vertical);U(this,"partName",new _e(be.placer,kc.container));U(this,"cellWidth",new _e(be.placer,""));U(this,"cellHeight",new _e(be.placer,""));U(this,"customClass",new _e(be.placer,[]));U(this,"componentWrapperClass",new _e(be.placer,[]));U(this,"children",[]);U(this,"widgetList",[])}}class J_e extends Dh{constructor(){super();U(this,"cols",[]);this.type=lt.grid,this.options=new B_e,this.init(!1)}}class Z_e extends WA{constructor(){super();U(this,"internal",!0);this.type=lt.gridCol,this.options=new aj,this.init(!1)}}class Q_e extends Dh{constructor(){super();U(this,"rows",[]);this.type=lt.table,this.options=new N_e,this.init(!1)}}class q_e extends Dh{constructor(){super();U(this,"internal",!0);U(this,"cols",[]);this.type=lt.tableRow,this.init(!1)}}class $_e extends WA{constructor(){super();U(this,"internal",!0);U(this,"merged",!1);this.type=lt.tableCol,this.options=new F_e,this.init(!1)}}class e2e extends Dh{constructor(){super();U(this,"displayType",G3.borderCard);U(this,"tabs",[]);this.type=lt.tabs,this.options=new U_e,this.init(!1)}}class t2e extends WA{constructor(){super();U(this,"internal",!0);this.type=lt.tabPane,this.options=new HA,this.init(!1)}}class n2e extends Dh{constructor(){super();U(this,"slots",[]);U(this,"widgetList",[]);this.type=lt.form,this.options=new V_e,this.init(!1)}}class r2e extends Dh{constructor(){super();U(this,"widgetList",[]);this.type=lt.wrapper,this.options=new i2e,this.init(!1)}}class i2e extends kb{constructor(){super(...arguments);U(this,"hidden",!1);U(this,"disabled",!1);U(this,"lazy",!1);U(this,"showLoading",new _e(be.placer,!1));U(this,"loadingText",new _e(be.placer,""));U(this,"componentWrapperClass",new _e(be.placer,[]))}}class a2e extends ya{constructor(){super(...arguments);U(this,"label","");U(this,"labelHidden",new _e(be.placer,!1));U(this,"labelAlign",new _e(be.placer,""));U(this,"labelWidth",new _e(be.placer,""));U(this,"labelIconClass",new _e(be.icon));U(this,"labelIconPosition",new _e(be.placer,ah.rear));U(this,"labelTooltip",new _e(be.placer,""))}}class o2e extends a2e{constructor(){super(...arguments);U(this,"splitText","-");U(this,"unitText","");U(this,"left",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"right",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir))}}const lj=[new J_e,new Z_e,new Q_e,new q_e,new $_e,new Y_e,new r2e],uj=[new n2e,new Gn(lt.input,new Rxe,!0),new Gn(lt.textarea,new jxe,!0),new Gn(lt.number,new Vxe,!0),new Gn(lt.radio,new Uxe,!0),new Gn(lt.checkbox,new Hxe,!0),new Gn(lt.autoComplete,new zxe,!0),new Gn(lt.select,new GR,!0),new Gn(lt.cascader,new r_e,!0),new Gn(lt.treeSelect,{treeDivider:"",...new JR,selectDivider:"",...new GR},!0),new Gn(lt.switch,new Jxe,!0),new Gn(lt.timeSelect,new Yxe,!0),new Gn(lt.timePicker,new Wxe,!0),new Gn(lt.timePickerRange,new Gxe,!0),new Gn(lt.datePicker,new Kxe,!0),new Gn(lt.datePickerRange,new Xxe,!0),new Gn(lt.pictureUpload,new e_e,!0),new Gn(lt.fileUpload,new t_e,!0),new Gn(lt.rate,new Zxe,!0),new Gn(lt.colorPicker,new qxe,!0),new Gn(lt.slider,new $xe,!0),new Gn(lt.richEditor,new n_e,!0),new Gn(lt.cache,new Lxe,!0)],cj=[new Gn(lt.multirow,new W_e,!0,{dynamicItemFlag:!0}),new Gn(lt.tmpl,new G_e,!1,{dynamicItemFlag:!0}),new Gn(lt.model,new K_e,!1),new Gn(lt.range,new o2e,!1)],fj=[],pj=[new Gn(lt.avatar,new __e,!1,Fo),new Gn(lt.badge,new y_e,!1,Fo),new Gn(lt.empty,new g_e,!1),new Gn(lt.result,new b_e,!1),new Gn(lt.card,new H_e,!1),new Gn(lt.collapse,new C_e,!1),new Gn(lt.descriptions,new A_e,!1),new Gn(lt.carousel,new S_e,!1),new Gn(lt.image,new T_e,!1,Fo),new Gn(lt.eltable,new I_e,!1),new Gn(lt.pagination,new j_e,!1),new Gn(lt.progress,new Qxe,!1,Fo),new Gn(lt.tree,new JR,!1),new Gn(lt.barcode,new h_e,!1),new Gn(lt.qrcode,new d_e,!1),new Gn(lt.verifycode,new m_e,!1)],hj=[new Gn(lt.router,new P_e,!1,Fo),new e2e,new t2e,new Gn(lt.steps,new O_e,!1),new Gn(lt.dropdown,new x_e,!1,Fo),new Gn(lt.menu,new k_e,!1),new Gn(lt.breadcrumb,new D_e,!1),new Gn(lt.affix,new p_e,!1,Fo),new Gn(lt.backtop,new w_e,!1,Fo),new Gn(lt.anchor,new E_e,!1,Fo)],dj=[new Gn(lt.dialog,new M_e,!1),new Gn(lt.drawer,new R_e,!1),new Gn(lt.alert,new L_e,!1)],mj=[new Gn(lt.staticText,new i_e,!1,Fo),new Gn(lt.htmlText,new a_e,!1,Fo),new Gn(lt.divider,new c_e,!1),new Gn(lt.chart,new f_e,!1),new Gn(lt.iframe,new X_e,!1)],s2e=[...lj,...sj,...uj,...fj,...cj,...pj,...dj,...hj,...mj],l2e={containers:lj,basicFields:sj,formFields:uj,systemFields:fj,advancedFields:cj,dataFields:pj,navFields:hj,feedBackFields:dj,otherFields:mj,allWidgets:s2e},kh=(e,t)=>{var r;if(!e||!t)return!1;let n=Xf(e==null?void 0:e.type);return!n||!(n!=null&&n.options)?!1:((r=Rr(n==null?void 0:n.options))==null?void 0:r.indexOf(t))>-1},Xf=e=>{var t;return(t=l2e.allWidgets)==null?void 0:t.find(n=>n.type===e)},u2e=e=>{const t=e.id;if(!t)return null;const n=gt.getName(e);return{id:t,name:n}},_l=(e,t,n)=>{if(!e)return Kt(e);var r=e==null?void 0:e.id,a=e.type+fu(),o=a;n&&(o=n(r,a));const i=u2e(e);return c2e(e,o,t),i&&(t!=null&&t.recordSource)&&mr(e,{_source:i}),Kt(e)},c2e=(e,t,n)=>(Ua(e,qt.id)&&(e.id=t),e.options=f2e(e.options,t,n),e),f2e=(e,t,n)=>(Ua(e,qt.name)&&(n==null?void 0:n.newName)!=!1&&(e.name=Pc(t,"-","")),Ua(e,qt.label)&&!(e!=null&&e.label)&&(n==null?void 0:n.newLabel)!=!1&&(e.label=Pc(t,"-","")),e),p2e=e=>{const t="id@";return{idClass:`${t}${e==null?void 0:e.id}`,getIdByIdClass:o=>o==null?void 0:o.substring(t.length),isIdClass:o=>o==null?void 0:o.startsWith(t)}};var vj={},h2e={get exports(){return vj},set exports(e){vj=e}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,a,o){function i(s,c){if(!a[s]){if(!r[s]){var f=typeof kg=="function"&&kg;if(!c&&f)return f(s,!0);if(u)return u(s,!0);var p=new Error("Cannot find module '"+s+"'");throw p.code="MODULE_NOT_FOUND",p}var d=a[s]={exports:{}};r[s][0].call(d.exports,function(m){var v=r[s][1][m];return i(v||m)},d,d.exports,n,r,a,o)}return a[s].exports}for(var u=typeof kg=="function"&&kg,l=0;l<o.length;l++)i(o[l]);return i}({"./aesprim":[function(n,r,a){(function(o,i){i(typeof a<"u"?a:o.esprima={})})(this,function(o){var i,u,l,s,c,f,p,d,m,v,h,g,y,x,_,w,E,S;i={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},u={},u[i.BooleanLiteral]="Boolean",u[i.EOF]="<end>",u[i.Identifier]="Identifier",u[i.Keyword]="Keyword",u[i.NullLiteral]="Null",u[i.NumericLiteral]="Numeric",u[i.Punctuator]="Punctuator",u[i.StringLiteral]="String",u[i.RegularExpression]="RegularExpression",l=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],s={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},c={Data:1,Get:2,Set:4},f={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},p={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function C(ce,de){if(!ce)throw new Error("ASSERT: "+de)}function T(ce){return ce>=48&&ce<=57}function A(ce){return"0123456789abcdefABCDEF".indexOf(ce)>=0}function D(ce){return"01234567".indexOf(ce)>=0}function P(ce){return ce===32||ce===9||ce===11||ce===12||ce===160||ce>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(ce)>=0}function O(ce){return ce===10||ce===13||ce===8232||ce===8233}function I(ce){return ce==64||ce===36||ce===95||ce>=65&&ce<=90||ce>=97&&ce<=122||ce===92||ce>=128&&p.NonAsciiIdentifierStart.test(String.fromCharCode(ce))}function N(ce){return ce===36||ce===95||ce>=65&&ce<=90||ce>=97&&ce<=122||ce>=48&&ce<=57||ce===92||ce>=128&&p.NonAsciiIdentifierPart.test(String.fromCharCode(ce))}function F(ce){switch(ce){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function j(ce){switch(ce){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function L(ce){return ce==="eval"||ce==="arguments"}function V(ce){if(v&&j(ce))return!0;switch(ce.length){case 2:return ce==="if"||ce==="in"||ce==="do";case 3:return ce==="var"||ce==="for"||ce==="new"||ce==="try"||ce==="let";case 4:return ce==="this"||ce==="else"||ce==="case"||ce==="void"||ce==="with"||ce==="enum";case 5:return ce==="while"||ce==="break"||ce==="catch"||ce==="throw"||ce==="const"||ce==="yield"||ce==="class"||ce==="super";case 6:return ce==="return"||ce==="typeof"||ce==="delete"||ce==="switch"||ce==="export"||ce==="import";case 7:return ce==="default"||ce==="finally"||ce==="extends";case 8:return ce==="function"||ce==="continue"||ce==="debugger";case 10:return ce==="instanceof";default:return!1}}function X(ce,de,Ve,$e,yt){var Bt;C(typeof Ve=="number","Comment must have valid position"),!(E.lastCommentStart>=Ve)&&(E.lastCommentStart=Ve,Bt={type:ce,value:de},S.range&&(Bt.range=[Ve,$e]),S.loc&&(Bt.loc=yt),S.comments.push(Bt),S.attachComment&&(S.leadingComments.push(Bt),S.trailingComments.push(Bt)))}function R(ce){var de,Ve,$e,yt;for(de=h-ce,Ve={start:{line:g,column:h-y-ce}};h<x;)if($e=m.charCodeAt(h),++h,O($e)){S.comments&&(yt=m.slice(de+ce,h-1),Ve.end={line:g,column:h-y-1},X("Line",yt,de,h-1,Ve)),$e===13&&m.charCodeAt(h)===10&&++h,++g,y=h;return}S.comments&&(yt=m.slice(de+ce,h),Ve.end={line:g,column:h-y},X("Line",yt,de,h,Ve))}function M(){var ce,de,Ve,$e;for(S.comments&&(ce=h-2,de={start:{line:g,column:h-y-2}});h<x;)if(Ve=m.charCodeAt(h),O(Ve))Ve===13&&m.charCodeAt(h+1)===10&&++h,++g,++h,y=h,h>=x&&Ae({},f.UnexpectedToken,"ILLEGAL");else if(Ve===42){if(m.charCodeAt(h+1)===47){++h,++h,S.comments&&($e=m.slice(ce+2,h-2),de.end={line:g,column:h-y},X("Block",$e,ce,h,de));return}++h}else++h;Ae({},f.UnexpectedToken,"ILLEGAL")}function K(){var ce,de;for(de=h===0;h<x;)if(ce=m.charCodeAt(h),P(ce))++h;else if(O(ce))++h,ce===13&&m.charCodeAt(h)===10&&++h,++g,y=h,de=!0;else if(ce===47)if(ce=m.charCodeAt(h+1),ce===47)++h,++h,R(2),de=!0;else if(ce===42)++h,++h,M();else break;else if(de&&ce===45)if(m.charCodeAt(h+1)===45&&m.charCodeAt(h+2)===62)h+=3,R(3);else break;else if(ce===60)if(m.slice(h+1,h+4)==="!--")++h,++h,++h,++h,R(4);else break;else break}function G(ce){var de,Ve,$e,yt=0;for(Ve=ce==="u"?4:2,de=0;de<Ve;++de)if(h<x&&A(m[h]))$e=m[h++],yt=yt*16+"0123456789abcdef".indexOf($e.toLowerCase());else return"";return String.fromCharCode(yt)}function W(){var ce,de;for(ce=m.charCodeAt(h++),de=String.fromCharCode(ce),ce===92&&(m.charCodeAt(h)!==117&&Ae({},f.UnexpectedToken,"ILLEGAL"),++h,ce=G("u"),(!ce||ce==="\\"||!I(ce.charCodeAt(0)))&&Ae({},f.UnexpectedToken,"ILLEGAL"),de=ce);h<x&&(ce=m.charCodeAt(h),!!N(ce));)++h,de+=String.fromCharCode(ce),ce===92&&(de=de.substr(0,de.length-1),m.charCodeAt(h)!==117&&Ae({},f.UnexpectedToken,"ILLEGAL"),++h,ce=G("u"),(!ce||ce==="\\"||!N(ce.charCodeAt(0)))&&Ae({},f.UnexpectedToken,"ILLEGAL"),de+=ce);return de}function Z(){var ce,de;for(ce=h++;h<x;){if(de=m.charCodeAt(h),de===92)return h=ce,W();if(N(de))++h;else break}return m.slice(ce,h)}function le(){var ce,de,Ve;return ce=h,de=m.charCodeAt(h)===92?W():Z(),de.length===1?Ve=i.Identifier:V(de)?Ve=i.Keyword:de==="null"?Ve=i.NullLiteral:de==="true"||de==="false"?Ve=i.BooleanLiteral:Ve=i.Identifier,{type:Ve,value:de,lineNumber:g,lineStart:y,start:ce,end:h}}function oe(){var ce=h,de=m.charCodeAt(h),Ve,$e=m[h],yt,Bt,Ce;switch(de){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++h,S.tokenize&&(de===40?S.openParenToken=S.tokens.length:de===123&&(S.openCurlyToken=S.tokens.length)),{type:i.Punctuator,value:String.fromCharCode(de),lineNumber:g,lineStart:y,start:ce,end:h};default:if(Ve=m.charCodeAt(h+1),Ve===61)switch(de){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return h+=2,{type:i.Punctuator,value:String.fromCharCode(de)+String.fromCharCode(Ve),lineNumber:g,lineStart:y,start:ce,end:h};case 33:case 61:return h+=2,m.charCodeAt(h)===61&&++h,{type:i.Punctuator,value:m.slice(ce,h),lineNumber:g,lineStart:y,start:ce,end:h}}}if(Ce=m.substr(h,4),Ce===">>>=")return h+=4,{type:i.Punctuator,value:Ce,lineNumber:g,lineStart:y,start:ce,end:h};if(Bt=Ce.substr(0,3),Bt===">>>"||Bt==="<<="||Bt===">>=")return h+=3,{type:i.Punctuator,value:Bt,lineNumber:g,lineStart:y,start:ce,end:h};if(yt=Bt.substr(0,2),$e===yt[1]&&"+-<>&|".indexOf($e)>=0||yt==="=>")return h+=2,{type:i.Punctuator,value:yt,lineNumber:g,lineStart:y,start:ce,end:h};if("<>=!+-*%&|^/".indexOf($e)>=0)return++h,{type:i.Punctuator,value:$e,lineNumber:g,lineStart:y,start:ce,end:h};Ae({},f.UnexpectedToken,"ILLEGAL")}function re(ce){for(var de="";h<x&&A(m[h]);)de+=m[h++];return de.length===0&&Ae({},f.UnexpectedToken,"ILLEGAL"),I(m.charCodeAt(h))&&Ae({},f.UnexpectedToken,"ILLEGAL"),{type:i.NumericLiteral,value:parseInt("0x"+de,16),lineNumber:g,lineStart:y,start:ce,end:h}}function ne(ce){for(var de="0"+m[h++];h<x&&D(m[h]);)de+=m[h++];return(I(m.charCodeAt(h))||T(m.charCodeAt(h)))&&Ae({},f.UnexpectedToken,"ILLEGAL"),{type:i.NumericLiteral,value:parseInt(de,8),octal:!0,lineNumber:g,lineStart:y,start:ce,end:h}}function ve(){var ce,de,Ve;if(Ve=m[h],C(T(Ve.charCodeAt(0))||Ve===".","Numeric literal must start with a decimal digit or a decimal point"),de=h,ce="",Ve!=="."){if(ce=m[h++],Ve=m[h],ce==="0"){if(Ve==="x"||Ve==="X")return++h,re(de);if(D(Ve))return ne(de);Ve&&T(Ve.charCodeAt(0))&&Ae({},f.UnexpectedToken,"ILLEGAL")}for(;T(m.charCodeAt(h));)ce+=m[h++];Ve=m[h]}if(Ve==="."){for(ce+=m[h++];T(m.charCodeAt(h));)ce+=m[h++];Ve=m[h]}if(Ve==="e"||Ve==="E")if(ce+=m[h++],Ve=m[h],(Ve==="+"||Ve==="-")&&(ce+=m[h++]),T(m.charCodeAt(h)))for(;T(m.charCodeAt(h));)ce+=m[h++];else Ae({},f.UnexpectedToken,"ILLEGAL");return I(m.charCodeAt(h))&&Ae({},f.UnexpectedToken,"ILLEGAL"),{type:i.NumericLiteral,value:parseFloat(ce),lineNumber:g,lineStart:y,start:de,end:h}}function Y(){var ce="",de,Ve,$e,yt,Bt,Ce,Ie=!1,He,ct;for(He=g,ct=y,de=m[h],C(de==="'"||de==='"',"String literal must starts with a quote"),Ve=h,++h;h<x;)if($e=m[h++],$e===de){de="";break}else if($e==="\\")if($e=m[h++],!$e||!O($e.charCodeAt(0)))switch($e){case"u":case"x":Ce=h,Bt=G($e),Bt?ce+=Bt:(h=Ce,ce+=$e);break;case"n":ce+=`
169
+ }static hasComplexValue(t){return!!Ua(t,"value")}static isComplexValue(t){var n;return _e.hasComplexValue(t)&&!!((n=Kt(t==null?void 0:t.value))!=null&&n.complexType)}static buildVariablePropValue(t,n){return{type:be.variable,variable:{expr:"${"+t+"}",params:n}}}static getOrgType(t){var r;var n=(r=this.getOptions(t))==null?void 0:r.origin;return n?this.getType(n):this.getType(t)}static getType(t){var n;return(n=Kt(t))==null?void 0:n.type}static getOptions(t){var n;return(n=Kt(t))==null?void 0:n.options}static needCalcValue(t){return this.isFormula(t)||this.isVariable(t)||this.isSchemaData(t)}static isComplexType(t,n){return this.isComplex(t)&&this.getType(t)===n}static isSchemaData(t){var n;return this.hasComplexValue(t)&&((n=Kt(t==null?void 0:t.value))==null?void 0:n.complexType)===be.schemaData}static clearSchemaData(t){var r;var n=or(t);return this.isComplex(t)?(r=Kt(n))==null?void 0:r.value:n}static setSchemaData(t,n){var r=or(t),a=new n9(be.schemaData,n);return this.isComplex(r)?r=a:r=new _e(be.prop,a),r}static getSchemaData(t){var r;var n=Kt(t);return(r=Kt(n==null?void 0:n.value))==null?void 0:r.complexValue}static isFormula(t){var n;return this.hasComplexValue(t)&&((n=Kt(t==null?void 0:t.value))==null?void 0:n.complexType)===be.formula}static setFormula(t,n){var r=or(t),a=new n9(be.formula,n);return this.isComplex(r)?r=a:r=new _e(be.prop,a),r}static getFormula(t){var n;return(n=Kt(t==null?void 0:t.value))==null?void 0:n.complexValue}static getFormulaRelatedField(t){const{getFormulaFields:n}=kf();return n(Ti(Kt(t)))}static isVariable(t){var n;return this.isComplex(t)&&((n=Kt(t))==null?void 0:n.type)===be.variable}static clearVariable(t){var r;var n=or(t);if(this.isComplex(t)){const a=Kt(n),o=(r=a.options)==null?void 0:r.origin;return this.isComplex(o)?(Kt(o).value=a==null?void 0:a.value,o):a==null?void 0:a.value}return n}static setVariable(t,n){var r=or(t);if(this.isComplex(r)){let a=r==null?void 0:r.options;return r.type!==be.variable&&(a=Object.assign(a||{},{origin:or(r)})),new _e(be.variable,r==null?void 0:r.value,a,n)}else return new _e(be.variable,r||null,r==null?void 0:r.options,n)}static getVariable(t){var n;return(n=Kt(t))==null?void 0:n.variable}static getValue(t,n=!1,r=!1,a){return kxe(t,n,r,a)}static setValue(t,n,r){if(!t||!n)return!1;var a=this.get(t,n);const o=this.getType(a);if(!this.isComplex(a))this.set(t,n,r);else{let i=r;o===be.dataObject&&na(i)&&(i=ui(r)),Kt(a).value=i}return!0}static getEnable(t){var r;if(!this.isComplex(t))return!1;var n=this.getOptions(t);return Ua(n,"enable")?(r=Kt(n))==null?void 0:r.enable:!0}static setEnable(t,n,r){var a=this.get(t,n);if(this.isComplex(a)){var o=Kt(a);return o.options===void 0&&(o.options={}),o.options.enable=r,!0}return!1}}class Qg{static getKeys(){var t=new this;return Rr(t)}}class Db extends Qg{constructor(){super(...arguments);U(this,"name","")}}class jA extends Qg{constructor(){super(...arguments);U(this,"isdefault",!1)}}class kb extends Db{constructor(){super(...arguments);U(this,"ctrlWidth",new _e(be.placer,"auto"));U(this,"ctrlHeight",new _e(be.placer,"auto"));U(this,"customClass",new _e(be.placer,[]));U(this,"componentRootClass",new _e(be.placer,[]));U(this,"displayLayout",new _e(be.placer,ou.block));U(this,"css",new _e(be.placer,""));U(this,"created",new _e(be.event,void 0,new ht));U(this,"mounted",new _e(be.event,void 0,new ht))}}class ya extends kb{constructor(){super(...arguments);U(this,"hidden",new _e(be.placer,!1))}}class H0 extends ya{constructor(){super(...arguments);U(this,"content",new _e(be.placer,""))}}class yu extends H0{constructor(){super(...arguments);U(this,"slotable",new _e(be.placer,!1));U(this,"default",new _e(be.slot,void 0,new er))}}class Oxe extends ya{constructor(){super(...arguments);U(this,"slotable",new _e(be.placer,!1));U(this,"default",new _e(be.slot,void 0,new er))}}class Pb extends ht{constructor(n){super(n);U(this,"forceMatch",!0);U(this,"errorMsg","");mr(this,n)}}class Ixe extends Pb{constructor(n){super(n);U(this,"expression","");mr(this,n)}}class Bxe extends Pb{constructor(n){super(n);U(this,"func","");mr(this,n)}}class Nxe extends Pb{constructor(n){super(n);U(this,"minValue",null);U(this,"includeMinValue",!1);U(this,"maxValue",null);U(this,"includeMaxValue",!1);mr(this,n)}}class er extends ht{constructor(n){super(n);U(this,"allowDrag",!1);U(this,"slotName");mr(this,n)}}class ir{constructor(){U(this,"widgetList",[])}}class W0 extends ya{constructor(){super(...arguments);U(this,"label",new _e(be.placer,""));U(this,"defaultValue",null);U(this,"state",new _e(be.placer,Tc.custom));U(this,"readonly",!1);U(this,"disabled",!1);U(this,"size","");U(this,"tabindex","");U(this,"labelHidden",new _e(be.placer,!1));U(this,"labelAlign",new _e(be.placer,""));U(this,"labelWidth",new _e(be.placer,""));U(this,"labelIconClass",new _e(be.icon));U(this,"labelIconPosition",new _e(be.placer,ah.rear));U(this,"labelTooltip",new _e(be.placer,""));U(this,"change",new _e(be.event,void 0,new ht));U(this,"focus",new _e(be.event,void 0,new ht));U(this,"blur",new _e(be.event,void 0,new ht));U(this,"click",new _e(be.event,void 0,new ht));U(this,"validateEvent",!0);U(this,"required",new _e(be.placer,!0,new Pb));U(this,"expValidate",new _e(be.placer,void 0,new Ixe));U(this,"rangeValidate",new _e(be.placer,void 0,new Nxe));U(this,"fnValidate",new _e(be.placer,void 0,new Bxe))}}class xl extends W0{constructor(){super(...arguments);U(this,"placeholder","")}}class Us extends jA{constructor(){super(...arguments);U(this,"label","");U(this,"value","")}}class VA extends Us{constructor(){super(...arguments);U(this,"children",[])}}class VR extends VA{constructor(){super(...arguments);U(this,"isopen",!1)}}const s_=class{constructor(){U(this,"type",lt.none);U(this,"icon","");U(this,"id","");U(this,"options",{});U(this,"category",Tf.normal);U(this,"init",(t=!0)=>{var n,r;this.id||(this.id=zA.newId((n=this.type)==null?void 0:n.toString())),this.icon||(this.icon=zA.getIcon((r=this.type)==null?void 0:r.toString(),t&&this.category!=Tf.container))})}static newId(t){return((t==null?void 0:t.replace(/-/g,""))||"")+fu()}static getIcon(t,n=!0){return"@widget-"+(t||"")+(n?"-field":"")}};let gt=s_;U(gt,"isContainer",t=>t.category===Tf.container),U(gt,"getWidgetTypeName",t=>t?ie.i18n2t(`designer.widgetLabel.${t}`,`extension.widgetLabel.${t}`):""),U(gt,"getWidgetName",t=>{var n;return t.type?((n=t.type)==null?void 0:n.trim())+"-widget":""}),U(gt,"getName",t=>s_.getOrgOption(t,qt.name)),U(gt,"setName",(t,n)=>{s_.setOptions(t,qt.name,n)}),U(gt,"getOrgOption",(t,n)=>{var r;return(r=t==null?void 0:t.options)==null?void 0:r[n]}),U(gt,"setOrgOption",(t,n,r)=>{!t||!t.options||(t.options[n]=r)}),U(gt,"getOptions",(t,n,r=!1,a=!1,o)=>{var i=s_.getOrgOption(t,n);if(r)return i;var u=_e.getValue(i,!1,a,o);if(u!==null)return u}),U(gt,"setOptions",(t,n,r)=>{_e.setValue(t==null?void 0:t.options,n,r)}),U(gt,"setEnable",(t,n,r)=>{_e.setEnable(t==null?void 0:t.options,n,r)});class zA extends gt{constructor(){super();U(this,"dynamicItemFlag",!1);U(this,"formItemFlag",!1);U(this,"options",{});this.formItemFlag=!0}}class Gn extends zA{constructor(t,n,r=!1,a){super(),a!=null&&a.autoWidth&&Ua(n,qt.ctrlWidth)&&(n.ctrlWidth=new _e(be.placer,$v.auto)),a!=null&&a.inlineLayout&&Ua(n,qt.displayLayout)&&(n.displayLayout=new _e(be.placer,ou.inline)),Ia(a==null?void 0:a.dynamicItemFlag)||(this.dynamicItemFlag=a==null?void 0:a.dynamicItemFlag),this.formItemFlag=r,this.type=t,this.options=n,Object.entries(n).map(([o,i])=>{var u;_e.getType(i)===be.slot&&((u=_e.getOptions(i))!=null&&u.allowDrag)&&(i.widgetList=[])}),this.init(r)}}function Fxe(){let e=new Map;const t=r=>{var a=gt.getWidgetName(r),o=null;return a&&(gt.isContainer(r)?o=b.defineAsyncComponent(()=>dN(Object.assign({"./container-widget/cont-cell-widget.vue":()=>Promise.resolve().then(()=>zj),"./container-widget/cont-widget.vue":()=>Promise.resolve().then(()=>Uj),"./container-widget/form-widget.vue":()=>Promise.resolve().then(()=>Hj),"./container-widget/grid-col-widget.vue":()=>Promise.resolve().then(()=>Gj),"./container-widget/grid-widget.vue":()=>Promise.resolve().then(()=>Kj),"./container-widget/ltable-col-widget.vue":()=>Promise.resolve().then(()=>Yj),"./container-widget/ltable-widget.vue":()=>Promise.resolve().then(()=>Jj),"./container-widget/tab-pane-widget.vue":()=>Promise.resolve().then(()=>Qj),"./container-widget/tabs-widget.vue":()=>Promise.resolve().then(()=>qj),"./container-widget/wrapper-widget.vue":()=>Promise.resolve().then(()=>$j)}),`./container-widget/${a}.vue`)):o=b.defineAsyncComponent(()=>dN(Object.assign({"./field-widget/affix-widget.vue":()=>Promise.resolve().then(()=>Yke),"./field-widget/alert-widget.vue":()=>Promise.resolve().then(()=>Qke),"./field-widget/anchor-link-widget.vue":()=>Promise.resolve().then(()=>qke),"./field-widget/anchor-widget.vue":()=>Promise.resolve().then(()=>t5e),"./field-widget/auto-complete-widget.vue":()=>Promise.resolve().then(()=>u5e),"./field-widget/avatar-widget.vue":()=>Promise.resolve().then(()=>p5e),"./field-widget/backtop-widget.vue":()=>Promise.resolve().then(()=>m5e),"./field-widget/badge-widget.vue":()=>Promise.resolve().then(()=>y5e),"./field-widget/barcode-widget.vue":()=>Promise.resolve().then(()=>E9e),"./field-widget/breadcrumb-widget.vue":()=>Promise.resolve().then(()=>T9e),"./field-widget/button-widget.vue":()=>Promise.resolve().then(()=>P9e),"./field-widget/cache-widget.vue":()=>Promise.resolve().then(()=>B9e),"./field-widget/card-widget.vue":()=>Promise.resolve().then(()=>M9e),"./field-widget/carousel-widget.vue":()=>Promise.resolve().then(()=>j9e),"./field-widget/cascader-widget.vue":()=>Promise.resolve().then(()=>U9e),"./field-widget/chart-widget.vue":()=>Promise.resolve().then(()=>G9e),"./field-widget/checkbox-widget.vue":()=>Promise.resolve().then(()=>Y9e),"./field-widget/collapse-widget.vue":()=>Promise.resolve().then(()=>Q9e),"./field-widget/color-picker-widget.vue":()=>Promise.resolve().then(()=>eFe),"./field-widget/content-wrapper.vue":()=>Promise.resolve().then(()=>Hke),"./field-widget/date-picker-range-widget.vue":()=>Promise.resolve().then(()=>rFe),"./field-widget/date-picker-widget.vue":()=>Promise.resolve().then(()=>oFe),"./field-widget/default-slot-widget.vue":()=>Promise.resolve().then(()=>Gke),"./field-widget/descriptions-widget.vue":()=>Promise.resolve().then(()=>cFe),"./field-widget/dialog-widget.vue":()=>Promise.resolve().then(()=>dFe),"./field-widget/divider-widget.vue":()=>Promise.resolve().then(()=>gFe),"./field-widget/drawer-widget.vue":()=>Promise.resolve().then(()=>xFe),"./field-widget/dropdown-widget.vue":()=>Promise.resolve().then(()=>EFe),"./field-widget/empty-widget.vue":()=>Promise.resolve().then(()=>AFe),"./field-widget/feedback-widget.vue":()=>Promise.resolve().then(()=>pFe),"./field-widget/file-upload-widget.vue":()=>Promise.resolve().then(()=>JFe),"./field-widget/form-item-wrapper.vue":()=>Promise.resolve().then(()=>o5e),"./field-widget/html-text-widget.vue":()=>Promise.resolve().then(()=>qFe),"./field-widget/icon-widget.vue":()=>Promise.resolve().then(()=>tMe),"./field-widget/iframe-widget.vue":()=>Promise.resolve().then(()=>oMe),"./field-widget/image-widget.vue":()=>Promise.resolve().then(()=>uMe),"./field-widget/input-number-widget.vue":()=>Promise.resolve().then(()=>dMe),"./field-widget/input-widget.vue":()=>Promise.resolve().then(()=>gMe),"./field-widget/label-wrapper.vue":()=>Promise.resolve().then(()=>r5e),"./field-widget/link-widget.vue":()=>Promise.resolve().then(()=>_Me),"./field-widget/menu-widget.vue":()=>Promise.resolve().then(()=>SMe),"./field-widget/model-widget.vue":()=>Promise.resolve().then(()=>DMe),"./field-widget/multirow-widget.vue":()=>Promise.resolve().then(()=>QMe),"./field-widget/pagination-widget.vue":()=>Promise.resolve().then(()=>e7e),"./field-widget/picture-upload-widget.vue":()=>Promise.resolve().then(()=>c7e),"./field-widget/progress-widget.vue":()=>Promise.resolve().then(()=>v7e),"./field-widget/qrcode-widget.vue":()=>Promise.resolve().then(()=>uLe),"./field-widget/radio-widget.vue":()=>Promise.resolve().then(()=>pLe),"./field-widget/range-widget.vue":()=>Promise.resolve().then(()=>xLe),"./field-widget/rate-widget.vue":()=>Promise.resolve().then(()=>wLe),"./field-widget/result-widget.vue":()=>Promise.resolve().then(()=>CLe),"./field-widget/rich-editor-widget.vue":()=>Promise.resolve().then(()=>DLe),"./field-widget/router-widget.vue":()=>Promise.resolve().then(()=>ILe),"./field-widget/select-widget.vue":()=>Promise.resolve().then(()=>MLe),"./field-widget/slider-widget.vue":()=>Promise.resolve().then(()=>jLe),"./field-widget/static-text-widget.vue":()=>Promise.resolve().then(()=>ULe),"./field-widget/steps-widget.vue":()=>Promise.resolve().then(()=>XLe),"./field-widget/subMenu-widget.vue":()=>Promise.resolve().then(()=>bMe),"./field-widget/switch-widget.vue":()=>Promise.resolve().then(()=>ZLe),"./field-widget/table-col-widget.vue":()=>Promise.resolve().then(()=>QLe),"./field-widget/table-widget.vue":()=>Promise.resolve().then(()=>nRe),"./field-widget/tag-widget.vue":()=>Promise.resolve().then(()=>aRe),"./field-widget/text-widget.vue":()=>Promise.resolve().then(()=>lRe),"./field-widget/textarea-widget.vue":()=>Promise.resolve().then(()=>fRe),"./field-widget/time-picker-range-widget.vue":()=>Promise.resolve().then(()=>dRe),"./field-widget/time-picker-widget.vue":()=>Promise.resolve().then(()=>gRe),"./field-widget/time-select-widget.vue":()=>Promise.resolve().then(()=>_Re),"./field-widget/tmpl-widget.vue":()=>Promise.resolve().then(()=>ERe),"./field-widget/tree-select-widget.vue":()=>Promise.resolve().then(()=>ARe),"./field-widget/tree-widget.vue":()=>Promise.resolve().then(()=>kRe),"./field-widget/verifycode-widget.vue":()=>Promise.resolve().then(()=>LRe),"./field-widget/vertical-progress-widget.vue":()=>Promise.resolve().then(()=>h7e)}),`./field-widget/${a}.vue`))),o};return{components:r=>{var a=gt.getWidgetName(r);if(e.has(a))return e.get(a);var o=t(r);return e.set(a,o),o}}}function Mxe(e){return e=e||Object.create(null),{on:function(n,r){(e[n]||(e[n]=[])).push(r)},off:function(n,r){e[n]&&e[n].splice(e[n].indexOf(r)>>>0,1)},emit:function(n,r){(e[n]||[]).map(function(a){a(r)}),(e["*"]||[]).map(function(a){a(n,r)})}}}const UA=new Mxe,zR={$on:UA.on,$off:UA.off,$emit:UA.emit};function UR(e){var t={index:-1,maxStep:20,steps:[]};e&&!(e!=null&&e.historyData)&&(e.historyData=t);const n=b.reactive((e==null?void 0:e.historyData)||t),r=`widget__list__backup__${e==null?void 0:e.key}`,a=`form__config__backup__${e==null?void 0:e.key}`,o=b.computed({get:()=>(n.index<0&&(n.index=0),n.steps[n.index]),set:y=>{n.index<0&&(n.index=0),n.steps[n.index]=y}}),i=()=>{const y=o==null?void 0:o.value;e.version=TF(),e.widgetList=or(y==null?void 0:y.widgetList),e.pageConfig=or(y==null?void 0:y.pageConfig)},u=y=>{const x=o;x.value=or({detail:y,widgetList:e.widgetList,pageConfig:e.pageConfig})},l=()=>{g(),n.index=n.index+1,u("initHistory")},s=()=>{e.historyData=t},c=y=>{var x;n.index==n.maxStep-1?(x=n.steps)==null||x.shift():n.index=n.index+1,f(y),n.index<n.steps.length-1&&(n.steps=n.steps.slice(0,n.index+1))},f=y=>{u(y),h()},p=()=>{n.index!==0&&n.index--,i()},d=()=>{var y;n.index!==((y=n.steps)==null?void 0:y.length)-1&&n.index++,i()},m=()=>{var y;return n.index>0&&((y=n.steps)==null?void 0:y.length)>0},v=()=>{var y;return n.index<((y=n.steps)==null?void 0:y.length)-1},h=()=>{ih.set(r,e.widgetList),ih.set(a,e.pageConfig)},g=()=>{let y=ih.get(r);y&&mr(e.widgetList,ui(y));let x=ih.get(a);x&&mr(e.pageConfig,ui(x))};return{clearHistoryData:s,initHistoryData:l,emitHistoryChange:c,saveCurrentHistoryStep:f,undoHistoryStep:p,redoHistoryStep:d,undoEnabled:m,redoEnabled:v,saveFormContentToStorage:h,loadFormContentFromStorage:g}}class Lxe extends ya{constructor(){super(...arguments);U(this,"labelHidden",new _e(be.placer,!1));U(this,"label",new _e(be.placer,""));U(this,"defaultValue",null);U(this,"state",new _e(be.placer,Tc.custom));U(this,"readonly",!1);U(this,"disabled",!1);U(this,"change",new _e(be.event,void 0,new ht))}}class Rxe extends xl{constructor(){super(...arguments);U(this,"type",SN.text);U(this,"minlength",0);U(this,"maxlength",1e4);U(this,"prefixIcon",new _e(be.icon));U(this,"suffixIcon",new _e(be.icon));U(this,"clearable",!0);U(this,"showPassword",!1);U(this,"showWordLimit",!1);U(this,"formatter",new _e(be.hook,void 0,new ht));U(this,"parser",new _e(be.hook,void 0,new ht));U(this,"input",new _e(be.event,void 0,new ht));U(this,"clear",new _e(be.event,void 0,new ht));U(this,"keydown",new _e(be.event,void 0,new ht));U(this,"keyup",new _e(be.event,void 0,new ht));U(this,"slotable",new _e(be.placer,!1));U(this,"prepend",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"append",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir))}}class jxe extends xl{constructor(){super(...arguments);U(this,"resize",wN.none);U(this,"rows",3);U(this,"minlength",0);U(this,"maxlength",1e4);U(this,"showWordLimit",!1);U(this,"autosize",!1);U(this,"input",new _e(be.event,void 0,new ht))}}class Vxe extends xl{constructor(){super(...arguments);U(this,"defaultValue",null);U(this,"min",0);U(this,"max",1e4);U(this,"precision",0);U(this,"step",1);U(this,"stepStrictly",!1);U(this,"controls",!0);U(this,"controlsPosition",AN.none);U(this,"valueOnClear",EN.min);U(this,"unitText",new _e(be.placer,""));U(this,"input",new _e(be.event,void 0,new ht))}}class zxe extends xl{constructor(){super(...arguments);U(this,"clearable",!0);U(this,"select",new _e(be.event,void 0,new ht));U(this,"fetchSuggestions",new _e(be.hook,void 0,new ht));U(this,"default",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"valueKey","value");U(this,"debounce",300);U(this,"placement",d0.bottomStart);U(this,"triggerOnFocus",!1);U(this,"selectWhenUnmatched",!1);U(this,"hideLoading",!1);U(this,"popperClass","");U(this,"popperAppendToBody",!1);U(this,"teleported",!1);U(this,"highlightFirstItem",!1);U(this,"fitInputWidth",!1);U(this,"slotable",new _e(be.placer,!1));U(this,"prefix",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"suffix",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"prepend",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"append",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir))}}class Uxe extends W0{constructor(){super(...arguments);U(this,"displayStyle",new _e(be.placer,ou.inline));U(this,"buttonStyle",!1);U(this,"textColor","");U(this,"fill","");U(this,"border",!1);U(this,"valueKey",new _e(be.placer,"value"));U(this,"labelKey",new _e(be.placer,"label"));U(this,"isDefaultKey",new _e(be.placer,"isdefault"));U(this,"withAttachData",new _e(be.placer,!0));U(this,"textName",new _e(be.placer,""));U(this,"optionName",new _e(be.placer,""));U(this,"labelName",new _e(be.placer,""));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})));U(this,"relate",new _e(be.placer,void 0))}}class HR extends Us{constructor(){super(...arguments);U(this,"border",!1);U(this,"disabled",!1)}}class Hxe extends W0{constructor(){super(...arguments);U(this,"defaultValue",[]);U(this,"min",0);U(this,"max",1e3);U(this,"displayStyle",new _e(be.placer,ou.inline));U(this,"buttonStyle",!1);U(this,"border",!1);U(this,"textColor","#ffffff");U(this,"fill","#409EFF");U(this,"tag","div");U(this,"valueKey",new _e(be.placer,"value"));U(this,"labelKey",new _e(be.placer,"label"));U(this,"isDefaultKey",new _e(be.placer,"isdefault"));U(this,"withAttachData",new _e(be.placer,!0));U(this,"textName",new _e(be.placer,""));U(this,"optionName",new _e(be.placer,""));U(this,"labelName",new _e(be.placer,""));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})));U(this,"relate",new _e(be.placer,[]))}}class WR extends Us{constructor(){super(...arguments);U(this,"border",!1);U(this,"disabled",!1)}}class GR extends xl{constructor(){super(...arguments);U(this,"defaultFirstOption",!1);U(this,"noDataText","");U(this,"allowCreate",!1);U(this,"automaticDropdown",!1);U(this,"showGroup",new _e(be.placer,!1));U(this,"teleported",!0);U(this,"persistent",!0);U(this,"fitInputWidth",!1);U(this,"clearable",!0);U(this,"clearIcon",new _e(be.icon,"CircleClose"));U(this,"suffixTransition",!0);U(this,"suffixIcon",new _e(be.icon,"ArrowDown"));U(this,"tagType",U3.info);U(this,"placement",d0.bottomStart);U(this,"effect",h0.light);U(this,"multiple",!1);U(this,"multipleLimit",0);U(this,"collapseTags",!1);U(this,"collapseTagsTooltip",!1);U(this,"maxCollapseTags",1);U(this,"selectOnlyOneGroup",new _e(be.placer,!1));U(this,"filterable",!1);U(this,"reserveKeyword",!0);U(this,"remote",!1);U(this,"remoteShowSuffix",!1);U(this,"loadingText","");U(this,"noMatchText","");U(this,"filterMethod",new _e(be.hook,void 0,new ht));U(this,"remoteMethod",new _e(be.hook,void 0,new ht));U(this,"popperClass","");U(this,"popperOptions",{});U(this,"slotable",new _e(be.placer,!1));U(this,"visibleChange",new _e(be.event,void 0,new ht));U(this,"removeTag",new _e(be.event,void 0,new ht));U(this,"clear",new _e(be.event,void 0,new ht));U(this,"optionDefault",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"prefix",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})));U(this,"relate",new _e(be.placer,void 0));U(this,"valueKey",new _e(be.placer,"value"));U(this,"labelKey",new _e(be.placer,"label"));U(this,"isDefaultKey",new _e(be.placer,"isdefault"));U(this,"allItemAsValue",new _e(be.placer,!1));U(this,"withAttachData",new _e(be.placer,!0));U(this,"textName",new _e(be.placer,""));U(this,"optionName",new _e(be.placer,""));U(this,"labelName",new _e(be.placer,""))}}class KR extends xl{constructor(){super(...arguments);U(this,"format",GN.time1);U(this,"prefixIcon",new _e(be.icon,"Clock"));U(this,"clearIcon",new _e(be.icon,"CircleClose"));U(this,"clearable",!0);U(this,"editable",!1);U(this,"isRange",!1);U(this,"arrowControl",!1);U(this,"popperClass","");U(this,"teleported",!0);U(this,"disabledHours",new _e(be.hook,void 0,new ht));U(this,"disabledMinutes",new _e(be.hook,void 0,new ht));U(this,"disabledSeconds",new _e(be.hook,void 0,new ht));U(this,"visibleChange",new _e(be.event,void 0,new ht))}}class Wxe extends KR{constructor(){super(...arguments);U(this,"placeholder","")}}class Gxe extends KR{constructor(){super(...arguments);U(this,"rangeSeparator","-");U(this,"startPlaceholder","");U(this,"endPlaceholder","");U(this,"isRange",!0)}}class XR extends xl{constructor(){super(...arguments);U(this,"editable",!0);U(this,"clearable",!0);U(this,"defaultValue",null);U(this,"defaultTime",null);U(this,"format",Y3.date1);U(this,"valueFormat",Y3.date1);U(this,"prefixIcon",new _e(be.icon));U(this,"clearIcon",new _e(be.icon));U(this,"disabledDate",new _e(be.hook,void 0,new ht));U(this,"shortcuts",new _e(be.hook));U(this,"cellClassName",new _e(be.hook,void 0,new ht));U(this,"teleported",!0);U(this,"popperClass","");U(this,"popperOptions",{});U(this,"default",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"visibleChange",new _e(be.event,void 0,new ht));U(this,"panelChange",new _e(be.event,void 0,new ht));U(this,"calendarChange",new _e(be.event,void 0,new ht))}}class Kxe extends XR{constructor(){super(...arguments);U(this,"placeholder","");U(this,"type",K3.date)}}class Xxe extends XR{constructor(){super(...arguments);U(this,"type",NN.daterange);U(this,"defaultValue",null);U(this,"defaultTime",null);U(this,"unlinkPanels",!1);U(this,"startPlaceholder","");U(this,"endPlaceholder","");U(this,"rangeSeparator","-")}}class Yxe extends xl{constructor(){super(...arguments);U(this,"clearable",!0);U(this,"effect",h0.light);U(this,"prefixIcon",new _e(be.icon,"Clock"));U(this,"clearIcon",new _e(be.icon,"CircleClose"));U(this,"start","09:00");U(this,"end","18:00");U(this,"step","00:30");U(this,"minTime","");U(this,"maxTime","");U(this,"format","HH:mm");U(this,"emptyValues",new _e(be.dataObject,null,new Hr({type:Xe.array,enable:!0})));U(this,"valueOnClear",new _e(be.hook,void 0,new ht));U(this,"clear",new _e(be.event,void 0,new ht))}}class Jxe extends xl{constructor(){super(...arguments);U(this,"width","40px");U(this,"inlinePrompt",!1);U(this,"activeIcon",new _e(be.icon));U(this,"inactiveIcon",new _e(be.icon));U(this,"activeActionIcon",new _e(be.icon));U(this,"inactiveActionIcon",new _e(be.icon));U(this,"activeText","");U(this,"inactiveText","");U(this,"valueType",new _e(be.placer,Xe.boolean));U(this,"activeValue",!0);U(this,"inactiveValue",!1);U(this,"beforeChange",new _e(be.hook,void 0,new ht))}}class Zxe extends W0{constructor(){super(...arguments);U(this,"max",5);U(this,"lowThreshold",2);U(this,"highThreshold",4);U(this,"allowHalf",!0);U(this,"showText",!0);U(this,"showScore",!0)}}class Qxe extends Oxe{constructor(){super(...arguments);U(this,"percentage",0);U(this,"duration",3);U(this,"width",126);U(this,"strokeWidth",6);U(this,"type",qv.line);U(this,"status",vN.none);U(this,"strokeLinecap",gN.round);U(this,"color",new _e(be.hook,void 0,new ht));U(this,"trackColor",new _e(be.hook,void 0,new ht));U(this,"format",new _e(be.hook,void 0,new ht));U(this,"textInside",!1);U(this,"indeterminate",!1);U(this,"showText",!0);U(this,"striped",!1);U(this,"stripedFlow",!1);U(this,"direction",new _e(be.placer,su.horizontal));U(this,"completeSec",new _e(be.placer,0));U(this,"completed",new _e(be.placerHook,void 0,new ht))}}class qxe extends W0{constructor(){super(...arguments);U(this,"colorFormat",KN.rgb);U(this,"showAlpha",!1);U(this,"popperClass","");U(this,"predefine",new _e(be.dataObject,[],new Hr({type:Xe.array,enable:!0})))}}class $xe extends xl{constructor(){super(...arguments);U(this,"min",0);U(this,"max",100);U(this,"step",10);U(this,"debounce",0);U(this,"showStops",!0);U(this,"vertical",!1);U(this,"height","");U(this,"range",!1);U(this,"marks",new _e(be.dataObject,{},new Hr({type:Xe.object,enable:!0})));U(this,"showInput",!1);U(this,"showInputControls",!0);U(this,"inputSize",Is.default);U(this,"showTooltip",!0);U(this,"placement",d0.top);U(this,"formatTooltip",new _e(be.hook,void 0,new ht));U(this,"tooltipClass","")}}class YR extends W0{constructor(){super(...arguments);U(this,"fileList",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})));U(this,"accept",new _e(be.placer,[],new Hr({type:Xe.array,enable:!0})));U(this,"listType",m0.text);U(this,"limit",3);U(this,"fileMaxSize",new _e(be.placer,5));U(this,"multiple",!1);U(this,"showFileList",!0);U(this,"autoUpload",!0);U(this,"drag",!1);U(this,"action","");U(this,"dataName",new _e(be.placer,"file"));U(this,"method",JN.post);U(this,"uploadTip",new _e(be.placer,""));U(this,"uploadTriggerTip",new _e(be.placer,""));U(this,"submitUploadTip",new _e(be.placer,""));U(this,"getHeader",new _e(be.placerHook,void 0,new ht));U(this,"getData",new _e(be.placerHook,void 0,new ht));U(this,"withCredentials",!1);U(this,"httpRequest",new _e(be.hook,void 0,new ht));U(this,"beforeUpload",new _e(be.hook,void 0,new ht));U(this,"beforeRemove",new _e(be.hook,void 0,new ht));U(this,"onChange",new _e(be.hook,void 0,new ht));U(this,"onExceed",new _e(be.hook,void 0,new ht));U(this,"onProgress",new _e(be.hook,void 0,new ht));U(this,"onPreview",new _e(be.hook,void 0,new ht));U(this,"onSuccess",new _e(be.hook,void 0,new ht));U(this,"onError",new _e(be.hook,void 0,new ht));U(this,"onRemove",new _e(be.hook,void 0,new ht));U(this,"isUploadSuccess",new _e(be.placerHook,void 0,new ht));U(this,"onBuildUrl",new _e(be.placerHook,void 0,new ht));U(this,"allowPreview",new _e(be.placerHook,void 0,new ht));U(this,"allowDownload",new _e(be.placerHook,void 0,new ht));U(this,"onDownload",new _e(be.placerHook,void 0,new ht));U(this,"allowDelete",new _e(be.placerHook,void 0,new ht));U(this,"slotable",new _e(be.placer,!1));U(this,"trigger",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!1}),void 0,new ir));U(this,"default",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!1}),void 0,new ir));U(this,"tip",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!1}),void 0,new ir));U(this,"file",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!1}),void 0,new ir))}}class e_e{constructor(){let t=new YR;_e.setValue(t,"accept",J3(YN)),_e.setValue(t,"listType",m0.pictureCard);const n=["file","drag"];return n==null||n.forEach(r=>delete t[r]),t}}class t_e{constructor(){let t=new YR;return _e.setValue(t,"accept",J3(XN)),t}}class n_e extends xl{}class r_e extends xl{constructor(){super(...arguments);U(this,"clearable",!0);U(this,"checkStrictly",new _e(be.placer,!1));U(this,"showAllLevels",!0);U(this,"emitPath",new _e(be.placer,!0));U(this,"separator"," / ");U(this,"debounce",300);U(this,"hoverThreshold",new _e(be.placer,500));U(this,"expandTrigger",new _e(be.placer,m_.click));U(this,"tagType",U3.info);U(this,"tagEffect",z3.light);U(this,"lazy",new _e(be.placer,!1));U(this,"lazyLoad",new _e(be.placerHook,void 0,new ht));U(this,"filterable",!1);U(this,"filterMethod",new _e(be.hook,void 0,new ht));U(this,"beforeFilter",new _e(be.hook,void 0,new ht));U(this,"multiple",new _e(be.placer,!1));U(this,"collapseTags",!1);U(this,"collapseTagsTooltip",!1);U(this,"maxCollapseTags",1);U(this,"emptyValues",new _e(be.dataObject,null,new Hr({type:Xe.array,enable:!0})));U(this,"valueOnClear",new _e(be.hook,void 0,new ht));U(this,"popperClass","");U(this,"teleported",!0);U(this,"persistent",!0);U(this,"valueProp",new _e(be.placer,"value"));U(this,"labelProp",new _e(be.placer,"label"));U(this,"childrenProp",new _e(be.placer,"children"));U(this,"disabledProp",new _e(be.placer,"disabled"));U(this,"leafProp",new _e(be.placer,"leaf"));U(this,"withAttachData",new _e(be.placer,!0));U(this,"textName",new _e(be.placer,""));U(this,"optionName",new _e(be.placer,""));U(this,"labelName",new _e(be.placer,""));U(this,"visibleChange",new _e(be.event,void 0,new ht));U(this,"removeTag",new _e(be.event,void 0,new ht));U(this,"expandChange",new _e(be.event,void 0,new ht));U(this,"clear",new _e(be.event,void 0,new ht));U(this,"empty",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"optionDefault",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})));U(this,"relate",new _e(be.placer,void 0))}}class JR extends ya{constructor(){super(...arguments);U(this,"renderAfterExpand",!0);U(this,"highlightCurrent",!1);U(this,"defaultExpandAll",!1);U(this,"expandOnClickNode",!0);U(this,"checkOnClickNode",!1);U(this,"autoExpandParent",!0);U(this,"showCheckbox",!1);U(this,"checkStrictly",!1);U(this,"accordion",!1);U(this,"draggable",!1);U(this,"lazy",!1);U(this,"load",new _e(be.hook,void 0,new ht));U(this,"filterNodeMethod",new _e(be.hook,void 0,new ht));U(this,"renderContent",new _e(be.hook,void 0,new ht));U(this,"allowDrag",new _e(be.hook,void 0,new ht));U(this,"allowDrop",new _e(be.hook,void 0,new ht));U(this,"empty",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"optionDefault",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"nodeClick",new _e(be.event,void 0,new ht));U(this,"nodeContextmenu",new _e(be.event,void 0,new ht));U(this,"checkChange",new _e(be.event,void 0,new ht));U(this,"check",new _e(be.event,void 0,new ht));U(this,"currentChange",new _e(be.event,void 0,new ht));U(this,"nodeExpand",new _e(be.event,void 0,new ht));U(this,"nodeCollapse",new _e(be.event,void 0,new ht));U(this,"nodeDragStart",new _e(be.event,void 0,new ht));U(this,"nodeDragEnter",new _e(be.event,void 0,new ht));U(this,"nodeDragLeave",new _e(be.event,void 0,new ht));U(this,"nodeDragOver",new _e(be.event,void 0,new ht));U(this,"nodeDragEnd",new _e(be.event,void 0,new ht));U(this,"nodeDrop",new _e(be.event,void 0,new ht));U(this,"indent",18);U(this,"icon",new _e(be.icon,""));U(this,"emptyText","");U(this,"labelProp",new _e(be.placerHook,void 0,new ht));U(this,"childrenProp",new _e(be.placerHook,void 0,new ht));U(this,"disabledProp",new _e(be.placerHook,void 0,new ht));U(this,"isLeafProp",new _e(be.placerHook,void 0,new ht));U(this,"classProp",new _e(be.placer,void 0,new ht));U(this,"nodeKey","value");U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class i_e extends H0{}class a_e extends H0{}class o_e extends yu{constructor(){super(...arguments);U(this,"label",new _e(be.placer,""));U(this,"type",H3.default);U(this,"size",Is.default);U(this,"tag","span");U(this,"truncated",!1)}}class s_e extends yu{constructor(){super(...arguments);U(this,"type",Is.default);U(this,"underline",!0);U(this,"disabled",!1);U(this,"href","");U(this,"target",HN.blank);U(this,"prefixIcon",new _e(be.placer,""));U(this,"suffixIcon",new _e(be.placer,""));U(this,"default",new _e(be.slot,void 0,new er,void 0,new ir))}}class l_e extends yu{constructor(){super(...arguments);U(this,"type",h_.primary);U(this,"size",Is.default);U(this,"effect",z3.light);U(this,"color","");U(this,"round",!1);U(this,"closable",!1);U(this,"disableTransitions",!1);U(this,"hit",!1);U(this,"click",new _e(be.event,void 0,new ht));U(this,"close",new _e(be.event,void 0,new ht))}}class u_e extends yu{constructor(){super(...arguments);U(this,"size",Is.default);U(this,"disabled",!1);U(this,"type",H3.default);U(this,"buttonType",kN.default);U(this,"text",!1);U(this,"plain",!1);U(this,"round",!1);U(this,"circle",!1);U(this,"link",!1);U(this,"icon",new _e(be.icon));U(this,"bg",!1);U(this,"loading",!1);U(this,"loadingIcon",new _e(be.icon,"Loading"));U(this,"autofocus",!1);U(this,"autoInsertSpace",!1);U(this,"color","");U(this,"dark",!1);U(this,"tag","button");U(this,"click",new _e(be.event,new Soe,new ht));U(this,"default",new _e(be.slot,void 0,new er,void 0,new ir))}}class c_e extends yu{constructor(){super(...arguments);U(this,"direction",su.horizontal);U(this,"contentPosition",Df.center);U(this,"borderStyle",zN.solid)}}class f_e extends ya{constructor(){super(...arguments);U(this,"chartOption",new _e(be.hook,void 0,new ht));U(this,"dataSource",new _e(be.dataObject,null,new Hr({type:Xe.array,enable:!0})))}}class p_e extends yu{constructor(){super(...arguments);U(this,"target","");U(this,"offset",0);U(this,"position",xN.top);U(this,"zIndex",100);U(this,"change",new _e(be.event,void 0,new ht));U(this,"scroll",new _e(be.event,void 0,new ht))}}class h_e extends H0{constructor(){super(...arguments);U(this,"ctrlWidth",new _e(be.placer,"200px"));U(this,"displayLayout",new _e(be.placer,ou.inline));U(this,"format",new _e(be.placer,QN.CODE128));U(this,"lineWidth",new _e(be.placer,2));U(this,"lineHeight",new _e(be.placer,100));U(this,"lineColor",new _e(be.placer,"black"));U(this,"displayValue",new _e(be.placer,!0))}}class d_e extends H0{constructor(){super(...arguments);U(this,"ctrlWidth",new _e(be.placer,"200px"))}}class m_e extends H0{constructor(){super(...arguments);U(this,"displayLayout",new _e(be.placer,ou.inline));U(this,"identifyCodeLen",new _e(be.placer,4));U(this,"content",new _e(be.placer,"1234567890abcdefjhijklinopqrsduvwxyz"));U(this,"fontSizeMin",25);U(this,"fontSizeMax",35);U(this,"backgroundColorMin",255);U(this,"backgroundColorMax",255);U(this,"colorMin",0);U(this,"colorMax",160);U(this,"lineColorMin",40);U(this,"lineColorMax",180);U(this,"dotColorMin",0);U(this,"dotColorMax",255);U(this,"contentWidth",112);U(this,"contentHeight",40)}}class v_e extends ya{constructor(){super(...arguments);U(this,"sizeDef",new _e(be.placer,""));U(this,"color","");U(this,"size",0);U(this,"icon",new _e(be.icon,"Apple"))}}class g_e extends yu{constructor(){super(...arguments);U(this,"image","");U(this,"imageSize");U(this,"description","")}}class y_e extends yu{constructor(){super(...arguments);U(this,"value","");U(this,"max",99);U(this,"isDot",!1);U(this,"hidden",new _e(be.placer,!1));U(this,"type",h_.danger)}}class x_e extends yu{constructor(){super(...arguments);U(this,"type",h_.primary);U(this,"size",Is.default);U(this,"maxHeight");U(this,"showTimeout",250);U(this,"hideTimeout",150);U(this,"placement",d0.bottom);U(this,"trigger",VN.hover);U(this,"splitButton",!1);U(this,"disabled",!1);U(this,"hideOnClick",!0);U(this,"tabindex",0);U(this,"slotable",new _e(be.placer,!1));U(this,"popperClass","menu");U(this,"popperOptions",{});U(this,"teleported",!0);U(this,"click",new _e(be.event,void 0,new ht));U(this,"command",new _e(be.event,void 0,new ht));U(this,"visibleChange",new _e(be.event,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class ZR extends Us{constructor(){super(...arguments);U(this,"command","");U(this,"icon",new _e(be.icon));U(this,"disabled",!1);U(this,"divided",!1)}}class __e extends yu{constructor(){super(...arguments);U(this,"size",Is.default);U(this,"shape",bN.circle);U(this,"src","");U(this,"fit",X3.cover);U(this,"icon",new _e(be.icon));U(this,"error",new _e(be.event,void 0,new ht))}}class b_e extends ya{constructor(){super(...arguments);U(this,"icon",mN.info);U(this,"title",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"subTitle",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"extra",new _e(be.slot,void 0,new er,void 0,new ir))}}class w_e extends yu{constructor(){super(...arguments);U(this,"target","");U(this,"visibilityHeight",200);U(this,"right",40);U(this,"bottom",40);U(this,"click",new _e(be.event,void 0,new ht))}}class E_e extends ya{constructor(){super(...arguments);U(this,"container","");U(this,"offset",0);U(this,"bound",15);U(this,"duration",300);U(this,"type",UN.default);U(this,"direction",su.vertical);U(this,"marker",!0);U(this,"change",new _e(be.event,void 0,new ht));U(this,"click",new _e(be.event,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class QR extends jA{constructor(){super(...arguments);U(this,"title","");U(this,"href","");U(this,"children")}}class S_e extends ya{constructor(){super(...arguments);U(this,"height","");U(this,"initialIndex",0);U(this,"indicatorPosition",FN.none);U(this,"trigger",m_.hover);U(this,"arrow",MN.hover);U(this,"type",LN.none);U(this,"direction",su.horizontal);U(this,"loop",!0);U(this,"autoplay",!0);U(this,"pauseOnHover",!0);U(this,"interval",3e3);U(this,"change",new _e(be.event,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class qR extends Us{constructor(){super(...arguments);U(this,"slotContent",new _e(be.slot,void 0,new er({slotName:"content"}),void 0,new ir))}}class C_e extends ya{constructor(){super(...arguments);U(this,"accordion",!1);U(this,"change",new _e(be.event,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class $R extends jA{constructor(){super(...arguments);U(this,"title","");U(this,"content","");U(this,"slotTitle",new _e(be.slot,void 0,new er({slotName:"title"}),void 0,new ir));U(this,"slotContent",new _e(be.slot,void 0,new er({slotName:"content"}),void 0,new ir));U(this,"disabled",!1)}}class A_e extends ya{constructor(){super(...arguments);U(this,"border",!1);U(this,"column",3);U(this,"direction",su.horizontal);U(this,"size",Is.default);U(this,"title","");U(this,"extra","");U(this,"slotable",new _e(be.placer,!1));U(this,"slotTitle",new _e(be.slot,void 0,new er({allowDrag:!0,slotName:"title"}),void 0,new ir));U(this,"slotExtra",new _e(be.slot,void 0,new er({allowDrag:!0,slotName:"extra"}),void 0,new ir));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class ej extends Us{constructor(){super(...arguments);U(this,"content",new _e(be.placer,""));U(this,"span",1);U(this,"width","");U(this,"minWidth","");U(this,"align",Df.left);U(this,"labelAlign",Df.left);U(this,"className","");U(this,"labelClassName","")}}class T_e extends ya{constructor(){super(...arguments);U(this,"width",new _e(be.placer,""));U(this,"height",new _e(be.placer,""));U(this,"src","");U(this,"fit",X3.empty);U(this,"loading",RN.eager);U(this,"hideOnClickModal",!1);U(this,"lazy",!1);U(this,"closeOnPressEscape",!0);U(this,"previewTeleported",!1);U(this,"infinite",!0);U(this,"scrollContainer","");U(this,"referrerpolicy","");U(this,"previewSrcList",new _e(be.dataObject,[],new Hr({type:Xe.array,enable:!0})));U(this,"zIndex",999999);U(this,"initialIndex",0);U(this,"zoomRate",1.2);U(this,"placeholder",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"slotError",new _e(be.slot,void 0,new er({slotName:"error"}),void 0,new ir));U(this,"viewer",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"load",new _e(be.event,void 0,new ht));U(this,"error",new _e(be.event,void 0,new ht));U(this,"switch",new _e(be.event,void 0,new ht));U(this,"close",new _e(be.event,void 0,new ht));U(this,"show",new _e(be.event,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class D_e extends ya{constructor(){super(...arguments);U(this,"separator","");U(this,"separatorIcon",new _e(be.icon));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class tj extends Us{constructor(){super(...arguments);U(this,"to","");U(this,"replace",!1);U(this,"useRouter",!1)}}class k_e extends ya{constructor(){super(...arguments);U(this,"uniqueOpened",!1);U(this,"router",!1);U(this,"collapseTransition",!0);U(this,"collapse",!1);U(this,"ellipsis",!1);U(this,"ellipsisIcon","");U(this,"backgroundColor","#ffffff");U(this,"textColor","#303133");U(this,"activeTextColor","#409EFF");U(this,"mode",su.vertical);U(this,"menuTrigger",m_.hover);U(this,"popperEffect",h0.dark);U(this,"closeOnClickOutside",!1);U(this,"popperClass","");U(this,"showTimeout",0);U(this,"hideTimeout",0);U(this,"openAll",new _e(be.placer,!0));U(this,"isActiveItem",new _e(be.hook,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class nj extends Us{constructor(){super(...arguments);U(this,"hidden",!1);U(this,"disabled",!1);U(this,"attachUrlParams",!1);U(this,"icon","");U(this,"route","");U(this,"click",new _e(be.event,void 0,new ht));U(this,"menuItemType",Dc.None);U(this,"showTimeout",0);U(this,"hideTimeout",0);U(this,"popperOffset",0);U(this,"expandCloseIcon","");U(this,"expandOpenIcon","");U(this,"collapseCloseIcon","");U(this,"collapseOpenIcon","");U(this,"popperClass","");U(this,"teleported",!0);U(this,"children")}}class P_e extends ya{constructor(){super(...arguments);U(this,"label");U(this,"displayLayout",new _e(be.placer,ou.inline))}}class O_e extends ya{constructor(){super(...arguments);U(this,"direction",su.horizontal);U(this,"space","");U(this,"processStatus",W3.process);U(this,"finishStatus",W3.finish);U(this,"alignCenter",!1);U(this,"simple",!1);U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class rj extends Us{constructor(){super(...arguments);U(this,"description","");U(this,"icon","");U(this,"status","")}}class I_e extends ya{constructor(){super(...arguments);U(this,"ctrlWidth",new _e(be.placer,"100%"));U(this,"data",new _e(be.singleOption,null));U(this,"height","200px");U(this,"maxHeight","200px");U(this,"emptyText","");U(this,"size",Is.default);U(this,"defaultSort",new _e(be.dataObject,{},new Hr({type:Xe.array,enable:!1})));U(this,"tableLayout",TN.fixed);U(this,"stripe",!1);U(this,"border",!1);U(this,"fit",!0);U(this,"showHeader",!0);U(this,"scrollbarAlwaysOn",!1);U(this,"flexible",!1);U(this,"beforeTableRender",new _e(be.placerHook,void 0,new ht));U(this,"highlightCurrentRow",!1);U(this,"currentRowKey","");U(this,"rowClassName",new _e(be.hook,void 0,new ht));U(this,"rowStyle",new _e(be.hook,void 0,new ht));U(this,"headerRowClassName",new _e(be.hook,void 0,new ht));U(this,"headerRowStyle",new _e(be.hook,void 0,new ht));U(this,"rowKey",new _e(be.hook,void 0,new ht));U(this,"expandRowKeys",new _e(be.dataObject,[],new Hr({type:Xe.array,enable:!1})));U(this,"cellClassName",new _e(be.hook,void 0,new ht));U(this,"cellStyle",new _e(be.hook,void 0,new ht));U(this,"headerCellClassName",new _e(be.hook,void 0,new ht));U(this,"headerCellStyle",new _e(be.hook,void 0,new ht));U(this,"defaultExpandAll",!1);U(this,"showSummary",!1);U(this,"selectOnIndeterminate",!0);U(this,"sumText","Sum");U(this,"summaryMethod",new _e(be.hook,void 0,new ht));U(this,"spanMethod",new _e(be.hook,void 0,new ht));U(this,"treeProps",new _e(be.dataObject,{},new Hr({type:Xe.object,enable:!1})));U(this,"indent",16);U(this,"lazy",!1);U(this,"load",new _e(be.hook,void 0,new ht));U(this,"showOverflowTooltip",!1);U(this,"tooltipEffect",h0.dark);U(this,"tooltipOptions",null);U(this,"allowPage",new _e(be.placer,!1));U(this,"pageSize",new _e(be.placer,10));U(this,"pageSizes",new _e(be.placer,[10,20,30,40,50,100]));U(this,"hideOnSinglePage",new _e(be.placer,!1));U(this,"layout",new _e(be.placer,["prev","pager","next","jumper","->","total"]));U(this,"enableExport",new _e(be.placer,!1));U(this,"exportFileName",new _e(be.placer,"exportFile"));U(this,"exportSheetName",new _e(be.placer,"Sheet1"));U(this,"exportAutoWidth",new _e(be.placer,!1));U(this,"select",new _e(be.event,void 0,new ht));U(this,"selectAll",new _e(be.event,void 0,new ht));U(this,"selectionChange",new _e(be.event,void 0,new ht));U(this,"cellMouseEnter",new _e(be.event,void 0,new ht));U(this,"cellMouseLeave",new _e(be.event,void 0,new ht));U(this,"cellClick",new _e(be.event,void 0,new ht));U(this,"cellDblclick",new _e(be.event,void 0,new ht));U(this,"cellContextmenu",new _e(be.event,void 0,new ht));U(this,"rowClick",new _e(be.event,void 0,new ht));U(this,"rowContextmenu",new _e(be.event,void 0,new ht));U(this,"rowDblclick",new _e(be.event,void 0,new ht));U(this,"headerClick",new _e(be.event,void 0,new ht));U(this,"headerContextmenu",new _e(be.event,void 0,new ht));U(this,"sortChange",new _e(be.event,void 0,new ht));U(this,"filterChange",new _e(be.event,void 0,new ht));U(this,"currentChange",new _e(be.event,void 0,new ht));U(this,"headerDragend",new _e(be.event,void 0,new ht));U(this,"expandChange",new _e(be.event,void 0,new ht));U(this,"default",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"append",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"empty",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class ij extends Qg{constructor(){super(...arguments);U(this,"type",PN.default);U(this,"index",new _e(be.hook,void 0,new ht));U(this,"label","");U(this,"prop","");U(this,"width","");U(this,"minWidth","");U(this,"fixed",!1);U(this,"resizable",!0);U(this,"showOverflowTooltip",!1);U(this,"reserveSelection",!1);U(this,"exportable",new _e(be.placer,!0));U(this,"renderHeader",new _e(be.hook,void 0,new ht));U(this,"formatter",new _e(be.hook,void 0,new ht));U(this,"selectable",new _e(be.hook,void 0,new ht));U(this,"align",Df.left);U(this,"headerAlign",Df.left);U(this,"className","");U(this,"labelClassName","");U(this,"sortable",!1);U(this,"sortOrders",new _e(be.dataObject,["ascending","descending",null],new Hr({type:Xe.array})));U(this,"sortMethod",new _e(be.hook,void 0,new ht));U(this,"sortBy",new _e(be.hook,void 0,new ht));U(this,"filters",new _e(be.dataObject,void 0,new Hr({type:Xe.object})));U(this,"filteredValue",new _e(be.dataObject,void 0,new Hr({type:Xe.array,enable:!0})));U(this,"filterMethod",new _e(be.hook,void 0,new ht));U(this,"filterMultiple",!0);U(this,"filterPlacement",d0.top);U(this,"filterClassName","");U(this,"columnKey","");U(this,"header",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"default",{widgetList:[],...new _e(be.slot,void 0,new er({allowDrag:!0,enable:!0}),void 0,new ir)});U(this,"slotable",new _e(be.placer,!1));U(this,"uuid",new _e(be.placer,fu()))}}class qg extends Db{constructor(){super(...arguments);U(this,"customClass",new _e(be.placer,[]));U(this,"componentRootClass",new _e(be.placer,[]));U(this,"displayLayout",new _e(be.placer,ou.block))}}class Kf extends qg{constructor(){super(...arguments);U(this,"componentWrapperClass",new _e(be.placer,[]))}}class B_e extends qg{constructor(){super(...arguments);U(this,"hidden",!1);U(this,"colHeight",new _e(be.placer,""));U(this,"gutter",0);U(this,"justify",IN.start);U(this,"align",BN.middle);U(this,"tag","div");U(this,"cols",new _e(be.placer,[]))}}class aj extends Kf{constructor(){super(...arguments);U(this,"hidden",!1);U(this,"responsive",!1);U(this,"span",12);U(this,"xs",12);U(this,"sm",12);U(this,"md",12);U(this,"lg",12);U(this,"xl",12);U(this,"offset",0);U(this,"push",0);U(this,"pull",0);U(this,"tag","div");U(this,"horizontalAlign",new _e(be.placer,""))}}class N_e extends qg{constructor(){super(...arguments);U(this,"hidden",!1)}}class F_e extends Kf{constructor(){super(...arguments);U(this,"cellWidth","");U(this,"cellHeight","");U(this,"colspan",0);U(this,"rowspan",0)}}class M_e extends Kf{constructor(){super(...arguments);U(this,"label","");U(this,"title","");U(this,"defaultValue",!1);U(this,"width","50%");U(this,"fullscreen",!1);U(this,"top","");U(this,"modal",!0);U(this,"modalClass","");U(this,"lockScroll",!0);U(this,"draggable",!1);U(this,"overflow",!1);U(this,"center",!1);U(this,"alignCenter",!1);U(this,"closeOnClickModal",!0);U(this,"closeOnPressEscape",!0);U(this,"showClose",!0);U(this,"destroyOnClose",!1);U(this,"openDelay",0);U(this,"closeDelay",0);U(this,"closeIcon",new _e(be.icon,"Close"));U(this,"beforeClose",new _e(be.hook,void 0,new ht));U(this,"appendToBody",!1);U(this,"appendTo","body");U(this,"zIndex",1e4);U(this,"header",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"default",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"footer",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"open",new _e(be.event,void 0,new ht));U(this,"opened",new _e(be.event,void 0,new ht));U(this,"close",new _e(be.event,void 0,new ht));U(this,"closed",new _e(be.event,void 0,new ht));U(this,"openAutoFocus",new _e(be.event,void 0,new ht));U(this,"closeAutoFocus",new _e(be.event,void 0,new ht))}}class L_e extends Kf{constructor(){super(...arguments);U(this,"ctrlWidth",new _e(be.placer,"100%"));U(this,"title","title");U(this,"type",jN.info);U(this,"description","description");U(this,"closable",!0);U(this,"center",!1);U(this,"closeText","");U(this,"showIcon",!1);U(this,"slotable",new _e(be.placer,!1));U(this,"effect",h0.light);U(this,"default",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"titleSlot",new _e(be.slot,void 0,new er({allowDrag:!0,slotName:"title"}),void 0,new ir));U(this,"close",new _e(be.event,void 0,new ht))}}class R_e extends Kf{constructor(){super(...arguments);U(this,"label","");U(this,"title","");U(this,"defaultValue",!1);U(this,"size","30%");U(this,"modal",!0);U(this,"modalClass","");U(this,"appendToBody",!1);U(this,"lockScroll",!0);U(this,"withHeader",!0);U(this,"showClose",!0);U(this,"closeOnClickModal",!0);U(this,"closeOnPressEscape",!0);U(this,"destroyOnClose",!1);U(this,"beforeClose",new _e(be.hook,void 0,new ht));U(this,"direction",ON.rtl);U(this,"openDelay",0);U(this,"closeDelay",0);U(this,"zIndex",1e4);U(this,"header",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"default",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"footer",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"open",new _e(be.event,void 0,new ht));U(this,"opened",new _e(be.event,void 0,new ht));U(this,"close",new _e(be.event,void 0,new ht));U(this,"closed",new _e(be.event,void 0,new ht));U(this,"openAutoFocus",new _e(be.event,void 0,new ht));U(this,"closeAutoFocus",new _e(be.event,void 0,new ht))}}class j_e extends ya{constructor(){super(...arguments);U(this,"background",!1);U(this,"hideOnSinglePage",!1);U(this,"size",Is.default);U(this,"defaultPageSize",10);U(this,"pagerCount",7);U(this,"defaultCurrentPage",1);U(this,"layout",new _e(be.dataObject,["prev","pager","next","jumper","->","total"]));U(this,"pageSizes",new _e(be.dataObject,[10,20,30,40,50,100],new Hr({type:Xe.array,enable:!0})));U(this,"popperClass","");U(this,"prevText","");U(this,"nextText","");U(this,"prevIcon",new _e(be.icon,"ArrowLeft"));U(this,"nextIcon",new _e(be.icon,"ArrowRight"));U(this,"disabled",!1);U(this,"teleported",!0);U(this,"default",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"sizeChange",new _e(be.event,void 0,new ht));U(this,"currentChange",new _e(be.event,void 0,new ht));U(this,"change",new _e(be.event,void 0,new ht));U(this,"prevClick",new _e(be.event,void 0,new ht));U(this,"nextClick",new _e(be.event,void 0,new ht))}}class V_e extends Kf{constructor(){super(...arguments);U(this,"newDataSource",new _e(be.singleOption,null,new Hr({type:Xe.object,enable:!0})));U(this,"editDataSource",new _e(be.singleOption,null,new Hr({type:Xe.object,enable:!0})));U(this,"loadDataWhenInit",new _e(be.placer,!1));U(this,"showLoading",new _e(be.placer,!1));U(this,"loadingText",new _e(be.placer,""));U(this,"inline",!1);U(this,"disabled",!1);U(this,"labelAlign",new _e(be.placer,""));U(this,"labelPosition",DN.right);U(this,"labelWidth","");U(this,"labelSuffix","");U(this,"statusIcon",!1);U(this,"hideRequiredAsterisk",!1);U(this,"requireAsteriskPosition",yN.left);U(this,"showMessage",!0);U(this,"inlineMessage",!1);U(this,"validateOnRuleChange",!0);U(this,"scrollToError",!1);U(this,"scrollIntoViewOptions",new _e(be.dataObject,void 0,new Hr({type:Xe.object,enable:!0})));U(this,"size",Is.default);U(this,"customClass",new _e(be.placer,[]));U(this,"validate",new _e(be.event,void 0,new ht));U(this,"default",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"modelName",new _e(be.placer,"formData"));U(this,"refName",new _e(be.placer,"vForm"));U(this,"rulesName",new _e(be.placer,"rules"));U(this,"formCreated",new _e(be.event,void 0,new ht));U(this,"formMounted",new _e(be.event,void 0,new ht));U(this,"formDataChange",new _e(be.event,void 0,new ht));U(this,"formDataLoaded",new _e(be.placerHook,void 0,new ht));U(this,"needFormAdd",new _e(be.placerHook,void 0,new ht))}}class z_e extends qg{constructor(){super(...arguments);U(this,"cols",new _e(be.placer,[]))}}class U_e extends qg{constructor(){super(...arguments);U(this,"hidden",!1);U(this,"closable",!1);U(this,"addable",!1);U(this,"editable",!1);U(this,"stretch",!1);U(this,"showLoading",new _e(be.placer,!1));U(this,"loadingText",new _e(be.placer,""));U(this,"type",G3.borderCard);U(this,"tabPosition",_N.top);U(this,"beforeLeave",new _e(be.hook,void 0,new ht));U(this,"tabs",new _e(be.placer,void 0,new ht));U(this,"tabChange",new _e(be.event,void 0,new ht));U(this,"tabClick",new _e(be.event,void 0,new ht));U(this,"tabAdd",new _e(be.event,void 0,new ht));U(this,"edit",new _e(be.event,void 0,new ht));U(this,"tabRemove",new _e(be.event,void 0,new ht));U(this,"created",new _e(be.event,void 0,new ht));U(this,"mounted",new _e(be.event,void 0,new ht))}}class HA extends Kf{constructor(){super(...arguments);U(this,"hidden",!1);U(this,"label","");U(this,"disabled",!1);U(this,"lazy",!1);U(this,"isdefault",!1)}}class H_e extends Kf{constructor(){super(...arguments);U(this,"ctrlWidth",new _e(be.placer,"100%"));U(this,"hidden",!1);U(this,"slotable",new _e(be.placer,!1));U(this,"label",new _e(be.placer,"card"));U(this,"folded",new _e(be.placer,!1));U(this,"showFold",new _e(be.placer,!1));U(this,"shadow",CN.always);U(this,"bodyStyle",new _e(be.placer,void 0,new ht));U(this,"header",new _e(be.slot,void 0,new er,void 0,new ir));U(this,"default",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir))}}class W_e extends kb{constructor(){super(...arguments);U(this,"label",new _e(be.placer,""));U(this,"hidden",!1);U(this,"minRowNum",1);U(this,"maxRowNum",50);U(this,"showMode",d_.line);U(this,"addRecordText","");U(this,"deleteRecordText","");U(this,"sortUpText","");U(this,"sortDownText","");U(this,"showHeader",!0);U(this,"showDetail",!1);U(this,"onlyOneAddButton",!1);U(this,"showBorder",!0);U(this,"showLimit",!1);U(this,"sortable",!1);U(this,"allowAdd",!0);U(this,"allowDelete",!0);U(this,"allowDefaultAdd",!1);U(this,"row",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!0}),void 0,new ir));U(this,"detail",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!0}),void 0,new ir));U(this,"addRow",new _e(be.event,void 0,new ht));U(this,"deleteRow",new _e(be.event,void 0,new ht));U(this,"change",new _e(be.event,void 0,new ht));U(this,"click",new _e(be.event,void 0,new ht));U(this,"dataFormat",new _e(be.hook,void 0,new ht));U(this,"rowDataFormat",new _e(be.hook,void 0,new ht))}}class G_e extends kb{constructor(){super(...arguments);U(this,"label",new _e(be.placer,""));U(this,"data",new _e(be.singleOption,null));U(this,"alwaysShow",!1);U(this,"hidden",!1);U(this,"showLoading",!1);U(this,"loadingText","");U(this,"loadDataWhenInit",new _e(be.placer,!1));U(this,"noData","");U(this,"completed",new _e(be.event,void 0,new ht));U(this,"row",new _e(be.slot,void 0,new er({allowDrag:!0,enable:!0}),void 0,new ir));U(this,"click",new _e(be.event,void 0,new ht))}}class K_e extends Db{constructor(){super(...arguments);U(this,"label","");U(this,"compName",lt.tag);U(this,"appendOnClick",!0);U(this,"showSaveButton",!0);U(this,"showAddButton",!0);U(this,"labelKey","label");U(this,"contentKey","value");U(this,"relatedIds",new _e(be.dataObject,[],new Hr({type:Xe.array,enable:!0})));U(this,"addButtonText","");U(this,"saveButtonText","");U(this,"operateData",new _e(be.dataObject,{},new Hr({type:Xe.object,enable:!0})));U(this,"hidden",!1);U(this,"click",new _e(be.event,void 0,new ht));U(this,"save",new _e(be.event,void 0,new ht));U(this,"add",new _e(be.event,void 0,new ht));U(this,"optionItems",new _e(be.singleOption,[],new Hr({type:Xe.array,enable:!0})))}}class oj extends Db{constructor(){super(...arguments);U(this,"label");U(this,"value")}}class X_e extends ya{constructor(){super(...arguments);U(this,"src","");U(this,"withQuery",new _e(be.placer,!1));U(this,"hashRouter",new _e(be.placer,!1));U(this,"onLoaded",new _e(be.event,void 0,new ht))}}const Fo={autoWidth:!0,inlineLayout:!0},sj=[new Gn(lt.text,new o_e,!1,Fo),new Gn(lt.link,new s_e,!1,Fo),new Gn(lt.button,new u_e,!1,Fo),new Gn(lt.tag,new l_e,!1,Fo),new Gn(lt.icon,new v_e,!1,Fo)];class Dh extends gt{constructor(){super(),this.category=Tf.container}}class WA extends gt{constructor(){super();U(this,"widgetList",[]);this.category=Tf.container}}class Y_e extends Dh{constructor(){super();U(this,"cols",[]);this.type=lt.cont,this.options=new z_e,this.init(!1)}}class GA extends Qg{constructor(){super(...arguments);U(this,"direction",su.vertical);U(this,"partName",new _e(be.placer,kc.container));U(this,"cellWidth",new _e(be.placer,""));U(this,"cellHeight",new _e(be.placer,""));U(this,"customClass",new _e(be.placer,[]));U(this,"componentWrapperClass",new _e(be.placer,[]));U(this,"children",[]);U(this,"widgetList",[])}}class J_e extends Dh{constructor(){super();U(this,"cols",[]);this.type=lt.grid,this.options=new B_e,this.init(!1)}}class Z_e extends WA{constructor(){super();U(this,"internal",!0);this.type=lt.gridCol,this.options=new aj,this.init(!1)}}class Q_e extends Dh{constructor(){super();U(this,"rows",[]);this.type=lt.table,this.options=new N_e,this.init(!1)}}class q_e extends Dh{constructor(){super();U(this,"internal",!0);U(this,"cols",[]);this.type=lt.tableRow,this.init(!1)}}class $_e extends WA{constructor(){super();U(this,"internal",!0);U(this,"merged",!1);this.type=lt.tableCol,this.options=new F_e,this.init(!1)}}class e2e extends Dh{constructor(){super();U(this,"displayType",G3.borderCard);U(this,"tabs",[]);this.type=lt.tabs,this.options=new U_e,this.init(!1)}}class t2e extends WA{constructor(){super();U(this,"internal",!0);this.type=lt.tabPane,this.options=new HA,this.init(!1)}}class n2e extends Dh{constructor(){super();U(this,"slots",[]);U(this,"widgetList",[]);this.type=lt.form,this.options=new V_e,this.init(!1)}}class r2e extends Dh{constructor(){super();U(this,"widgetList",[]);this.type=lt.wrapper,this.options=new i2e,this.init(!1)}}class i2e extends kb{constructor(){super(...arguments);U(this,"hidden",!1);U(this,"disabled",!1);U(this,"lazy",!1);U(this,"showLoading",new _e(be.placer,!1));U(this,"loadingText",new _e(be.placer,""));U(this,"componentWrapperClass",new _e(be.placer,[]))}}class a2e extends ya{constructor(){super(...arguments);U(this,"label","");U(this,"labelHidden",new _e(be.placer,!1));U(this,"labelAlign",new _e(be.placer,""));U(this,"labelWidth",new _e(be.placer,""));U(this,"labelIconClass",new _e(be.icon));U(this,"labelIconPosition",new _e(be.placer,ah.rear));U(this,"labelTooltip",new _e(be.placer,""))}}class o2e extends a2e{constructor(){super(...arguments);U(this,"splitText","-");U(this,"unitText","");U(this,"left",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir));U(this,"right",new _e(be.slot,void 0,new er({allowDrag:!0}),void 0,new ir))}}const lj=[new J_e,new Z_e,new Q_e,new q_e,new $_e,new Y_e,new r2e],uj=[new n2e,new Gn(lt.input,new Rxe,!0),new Gn(lt.textarea,new jxe,!0),new Gn(lt.number,new Vxe,!0),new Gn(lt.radio,new Uxe,!0),new Gn(lt.checkbox,new Hxe,!0),new Gn(lt.autoComplete,new zxe,!0),new Gn(lt.select,new GR,!0),new Gn(lt.cascader,new r_e,!0),new Gn(lt.treeSelect,{treeDivider:"",...new JR,selectDivider:"",...new GR},!0),new Gn(lt.switch,new Jxe,!0),new Gn(lt.timeSelect,new Yxe,!0),new Gn(lt.timePicker,new Wxe,!0),new Gn(lt.timePickerRange,new Gxe,!0),new Gn(lt.datePicker,new Kxe,!0),new Gn(lt.datePickerRange,new Xxe,!0),new Gn(lt.pictureUpload,new e_e,!0),new Gn(lt.fileUpload,new t_e,!0),new Gn(lt.rate,new Zxe,!0),new Gn(lt.colorPicker,new qxe,!0),new Gn(lt.slider,new $xe,!0),new Gn(lt.richEditor,new n_e,!0),new Gn(lt.cache,new Lxe,!0)],cj=[new Gn(lt.multirow,new W_e,!0,{dynamicItemFlag:!0}),new Gn(lt.tmpl,new G_e,!1,{dynamicItemFlag:!0}),new Gn(lt.model,new K_e,!1),new Gn(lt.range,new o2e,!1)],fj=[],pj=[new Gn(lt.avatar,new __e,!1,Fo),new Gn(lt.badge,new y_e,!1,Fo),new Gn(lt.empty,new g_e,!1),new Gn(lt.result,new b_e,!1),new Gn(lt.card,new H_e,!1),new Gn(lt.collapse,new C_e,!1),new Gn(lt.descriptions,new A_e,!1),new Gn(lt.carousel,new S_e,!1),new Gn(lt.image,new T_e,!1,Fo),new Gn(lt.eltable,new I_e,!1),new Gn(lt.pagination,new j_e,!1),new Gn(lt.progress,new Qxe,!1,Fo),new Gn(lt.tree,new JR,!1),new Gn(lt.barcode,new h_e,!1),new Gn(lt.qrcode,new d_e,!1),new Gn(lt.verifycode,new m_e,!1)],hj=[new Gn(lt.router,new P_e,!1,Fo),new e2e,new t2e,new Gn(lt.steps,new O_e,!1),new Gn(lt.dropdown,new x_e,!1,Fo),new Gn(lt.menu,new k_e,!1),new Gn(lt.breadcrumb,new D_e,!1),new Gn(lt.affix,new p_e,!1,Fo),new Gn(lt.backtop,new w_e,!1,Fo),new Gn(lt.anchor,new E_e,!1,Fo)],dj=[new Gn(lt.dialog,new M_e,!1),new Gn(lt.drawer,new R_e,!1),new Gn(lt.alert,new L_e,!1)],mj=[new Gn(lt.staticText,new i_e,!1,Fo),new Gn(lt.htmlText,new a_e,!1,Fo),new Gn(lt.divider,new c_e,!1),new Gn(lt.chart,new f_e,!1),new Gn(lt.iframe,new X_e,!1)],s2e=[...lj,...sj,...uj,...fj,...cj,...pj,...dj,...hj,...mj],l2e={containers:lj,basicFields:sj,formFields:uj,systemFields:fj,advancedFields:cj,dataFields:pj,navFields:hj,feedBackFields:dj,otherFields:mj,allWidgets:s2e},kh=(e,t)=>{var r;if(!e||!t)return!1;let n=Xf(e==null?void 0:e.type);return!n||!(n!=null&&n.options)?!1:((r=Rr(n==null?void 0:n.options))==null?void 0:r.indexOf(t))>-1},Xf=e=>{var t;return(t=l2e.allWidgets)==null?void 0:t.find(n=>n.type===e)},u2e=e=>{const t=e.id;if(!t)return null;const n=gt.getName(e);return{id:t,name:n}},_l=(e,t,n)=>{if(!e)return Kt(e);var r=e==null?void 0:e.id,a=e.type+fu(),o=a;n&&(o=n(r,a));const i=u2e(e);return c2e(e,o,t),i&&(t!=null&&t.recordSource)&&mr(e,{_source:i}),Kt(e)},c2e=(e,t,n)=>(Ua(e,qt.id)&&(e.id=t),e.options=f2e(e.options,t,n),e),f2e=(e,t,n)=>(Ua(e,qt.name)&&(n==null?void 0:n.newName)!=!1&&(e.name=Pc(t,"-","")),Ua(e,qt.label)&&!(e!=null&&e.label)&&(n==null?void 0:n.newLabel)!=!1&&(e.label=Pc(t,"-","")),e),p2e=e=>{const t="id@";return{idClass:`${t}${e==null?void 0:e.id}`,getIdByIdClass:o=>o==null?void 0:o.substring(t.length),isIdClass:o=>o==null?void 0:o.startsWith(t)}};var vj={},h2e={get exports(){return vj},set exports(e){vj=e}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,a,o){function i(s,c){if(!a[s]){if(!r[s]){var f=typeof kg=="function"&&kg;if(!c&&f)return f(s,!0);if(u)return u(s,!0);var p=new Error("Cannot find module '"+s+"'");throw p.code="MODULE_NOT_FOUND",p}var d=a[s]={exports:{}};r[s][0].call(d.exports,function(m){var v=r[s][1][m];return i(v||m)},d,d.exports,n,r,a,o)}return a[s].exports}for(var u=typeof kg=="function"&&kg,l=0;l<o.length;l++)i(o[l]);return i}({"./aesprim":[function(n,r,a){(function(o,i){i(typeof a<"u"?a:o.esprima={})})(this,function(o){var i,u,l,s,c,f,p,d,m,v,h,g,y,x,_,w,E,S;i={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},u={},u[i.BooleanLiteral]="Boolean",u[i.EOF]="<end>",u[i.Identifier]="Identifier",u[i.Keyword]="Keyword",u[i.NullLiteral]="Null",u[i.NumericLiteral]="Numeric",u[i.Punctuator]="Punctuator",u[i.StringLiteral]="String",u[i.RegularExpression]="RegularExpression",l=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],s={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},c={Data:1,Get:2,Set:4},f={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},p={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function C(ce,de){if(!ce)throw new Error("ASSERT: "+de)}function T(ce){return ce>=48&&ce<=57}function A(ce){return"0123456789abcdefABCDEF".indexOf(ce)>=0}function D(ce){return"01234567".indexOf(ce)>=0}function P(ce){return ce===32||ce===9||ce===11||ce===12||ce===160||ce>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(ce)>=0}function O(ce){return ce===10||ce===13||ce===8232||ce===8233}function I(ce){return ce==64||ce===36||ce===95||ce>=65&&ce<=90||ce>=97&&ce<=122||ce===92||ce>=128&&p.NonAsciiIdentifierStart.test(String.fromCharCode(ce))}function N(ce){return ce===36||ce===95||ce>=65&&ce<=90||ce>=97&&ce<=122||ce>=48&&ce<=57||ce===92||ce>=128&&p.NonAsciiIdentifierPart.test(String.fromCharCode(ce))}function F(ce){switch(ce){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function j(ce){switch(ce){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function L(ce){return ce==="eval"||ce==="arguments"}function V(ce){if(v&&j(ce))return!0;switch(ce.length){case 2:return ce==="if"||ce==="in"||ce==="do";case 3:return ce==="var"||ce==="for"||ce==="new"||ce==="try"||ce==="let";case 4:return ce==="this"||ce==="else"||ce==="case"||ce==="void"||ce==="with"||ce==="enum";case 5:return ce==="while"||ce==="break"||ce==="catch"||ce==="throw"||ce==="const"||ce==="yield"||ce==="class"||ce==="super";case 6:return ce==="return"||ce==="typeof"||ce==="delete"||ce==="switch"||ce==="export"||ce==="import";case 7:return ce==="default"||ce==="finally"||ce==="extends";case 8:return ce==="function"||ce==="continue"||ce==="debugger";case 10:return ce==="instanceof";default:return!1}}function X(ce,de,Ve,$e,yt){var Bt;C(typeof Ve=="number","Comment must have valid position"),!(E.lastCommentStart>=Ve)&&(E.lastCommentStart=Ve,Bt={type:ce,value:de},S.range&&(Bt.range=[Ve,$e]),S.loc&&(Bt.loc=yt),S.comments.push(Bt),S.attachComment&&(S.leadingComments.push(Bt),S.trailingComments.push(Bt)))}function R(ce){var de,Ve,$e,yt;for(de=h-ce,Ve={start:{line:g,column:h-y-ce}};h<x;)if($e=m.charCodeAt(h),++h,O($e)){S.comments&&(yt=m.slice(de+ce,h-1),Ve.end={line:g,column:h-y-1},X("Line",yt,de,h-1,Ve)),$e===13&&m.charCodeAt(h)===10&&++h,++g,y=h;return}S.comments&&(yt=m.slice(de+ce,h),Ve.end={line:g,column:h-y},X("Line",yt,de,h,Ve))}function M(){var ce,de,Ve,$e;for(S.comments&&(ce=h-2,de={start:{line:g,column:h-y-2}});h<x;)if(Ve=m.charCodeAt(h),O(Ve))Ve===13&&m.charCodeAt(h+1)===10&&++h,++g,++h,y=h,h>=x&&Ae({},f.UnexpectedToken,"ILLEGAL");else if(Ve===42){if(m.charCodeAt(h+1)===47){++h,++h,S.comments&&($e=m.slice(ce+2,h-2),de.end={line:g,column:h-y},X("Block",$e,ce,h,de));return}++h}else++h;Ae({},f.UnexpectedToken,"ILLEGAL")}function K(){var ce,de;for(de=h===0;h<x;)if(ce=m.charCodeAt(h),P(ce))++h;else if(O(ce))++h,ce===13&&m.charCodeAt(h)===10&&++h,++g,y=h,de=!0;else if(ce===47)if(ce=m.charCodeAt(h+1),ce===47)++h,++h,R(2),de=!0;else if(ce===42)++h,++h,M();else break;else if(de&&ce===45)if(m.charCodeAt(h+1)===45&&m.charCodeAt(h+2)===62)h+=3,R(3);else break;else if(ce===60)if(m.slice(h+1,h+4)==="!--")++h,++h,++h,++h,R(4);else break;else break}function G(ce){var de,Ve,$e,yt=0;for(Ve=ce==="u"?4:2,de=0;de<Ve;++de)if(h<x&&A(m[h]))$e=m[h++],yt=yt*16+"0123456789abcdef".indexOf($e.toLowerCase());else return"";return String.fromCharCode(yt)}function W(){var ce,de;for(ce=m.charCodeAt(h++),de=String.fromCharCode(ce),ce===92&&(m.charCodeAt(h)!==117&&Ae({},f.UnexpectedToken,"ILLEGAL"),++h,ce=G("u"),(!ce||ce==="\\"||!I(ce.charCodeAt(0)))&&Ae({},f.UnexpectedToken,"ILLEGAL"),de=ce);h<x&&(ce=m.charCodeAt(h),!!N(ce));)++h,de+=String.fromCharCode(ce),ce===92&&(de=de.substr(0,de.length-1),m.charCodeAt(h)!==117&&Ae({},f.UnexpectedToken,"ILLEGAL"),++h,ce=G("u"),(!ce||ce==="\\"||!N(ce.charCodeAt(0)))&&Ae({},f.UnexpectedToken,"ILLEGAL"),de+=ce);return de}function Z(){var ce,de;for(ce=h++;h<x;){if(de=m.charCodeAt(h),de===92)return h=ce,W();if(N(de))++h;else break}return m.slice(ce,h)}function le(){var ce,de,Ve;return ce=h,de=m.charCodeAt(h)===92?W():Z(),de.length===1?Ve=i.Identifier:V(de)?Ve=i.Keyword:de==="null"?Ve=i.NullLiteral:de==="true"||de==="false"?Ve=i.BooleanLiteral:Ve=i.Identifier,{type:Ve,value:de,lineNumber:g,lineStart:y,start:ce,end:h}}function oe(){var ce=h,de=m.charCodeAt(h),Ve,$e=m[h],yt,Bt,Ce;switch(de){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++h,S.tokenize&&(de===40?S.openParenToken=S.tokens.length:de===123&&(S.openCurlyToken=S.tokens.length)),{type:i.Punctuator,value:String.fromCharCode(de),lineNumber:g,lineStart:y,start:ce,end:h};default:if(Ve=m.charCodeAt(h+1),Ve===61)switch(de){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return h+=2,{type:i.Punctuator,value:String.fromCharCode(de)+String.fromCharCode(Ve),lineNumber:g,lineStart:y,start:ce,end:h};case 33:case 61:return h+=2,m.charCodeAt(h)===61&&++h,{type:i.Punctuator,value:m.slice(ce,h),lineNumber:g,lineStart:y,start:ce,end:h}}}if(Ce=m.substr(h,4),Ce===">>>=")return h+=4,{type:i.Punctuator,value:Ce,lineNumber:g,lineStart:y,start:ce,end:h};if(Bt=Ce.substr(0,3),Bt===">>>"||Bt==="<<="||Bt===">>=")return h+=3,{type:i.Punctuator,value:Bt,lineNumber:g,lineStart:y,start:ce,end:h};if(yt=Bt.substr(0,2),$e===yt[1]&&"+-<>&|".indexOf($e)>=0||yt==="=>")return h+=2,{type:i.Punctuator,value:yt,lineNumber:g,lineStart:y,start:ce,end:h};if("<>=!+-*%&|^/".indexOf($e)>=0)return++h,{type:i.Punctuator,value:$e,lineNumber:g,lineStart:y,start:ce,end:h};Ae({},f.UnexpectedToken,"ILLEGAL")}function re(ce){for(var de="";h<x&&A(m[h]);)de+=m[h++];return de.length===0&&Ae({},f.UnexpectedToken,"ILLEGAL"),I(m.charCodeAt(h))&&Ae({},f.UnexpectedToken,"ILLEGAL"),{type:i.NumericLiteral,value:parseInt("0x"+de,16),lineNumber:g,lineStart:y,start:ce,end:h}}function ne(ce){for(var de="0"+m[h++];h<x&&D(m[h]);)de+=m[h++];return(I(m.charCodeAt(h))||T(m.charCodeAt(h)))&&Ae({},f.UnexpectedToken,"ILLEGAL"),{type:i.NumericLiteral,value:parseInt(de,8),octal:!0,lineNumber:g,lineStart:y,start:ce,end:h}}function ve(){var ce,de,Ve;if(Ve=m[h],C(T(Ve.charCodeAt(0))||Ve===".","Numeric literal must start with a decimal digit or a decimal point"),de=h,ce="",Ve!=="."){if(ce=m[h++],Ve=m[h],ce==="0"){if(Ve==="x"||Ve==="X")return++h,re(de);if(D(Ve))return ne(de);Ve&&T(Ve.charCodeAt(0))&&Ae({},f.UnexpectedToken,"ILLEGAL")}for(;T(m.charCodeAt(h));)ce+=m[h++];Ve=m[h]}if(Ve==="."){for(ce+=m[h++];T(m.charCodeAt(h));)ce+=m[h++];Ve=m[h]}if(Ve==="e"||Ve==="E")if(ce+=m[h++],Ve=m[h],(Ve==="+"||Ve==="-")&&(ce+=m[h++]),T(m.charCodeAt(h)))for(;T(m.charCodeAt(h));)ce+=m[h++];else Ae({},f.UnexpectedToken,"ILLEGAL");return I(m.charCodeAt(h))&&Ae({},f.UnexpectedToken,"ILLEGAL"),{type:i.NumericLiteral,value:parseFloat(ce),lineNumber:g,lineStart:y,start:de,end:h}}function Y(){var ce="",de,Ve,$e,yt,Bt,Ce,Ie=!1,He,ct;for(He=g,ct=y,de=m[h],C(de==="'"||de==='"',"String literal must starts with a quote"),Ve=h,++h;h<x;)if($e=m[h++],$e===de){de="";break}else if($e==="\\")if($e=m[h++],!$e||!O($e.charCodeAt(0)))switch($e){case"u":case"x":Ce=h,Bt=G($e),Bt?ce+=Bt:(h=Ce,ce+=$e);break;case"n":ce+=`
170
170
  `;break;case"r":ce+="\r";break;case"t":ce+=" ";break;case"b":ce+="\b";break;case"f":ce+="\f";break;case"v":ce+="\v";break;default:D($e)?(yt="01234567".indexOf($e),yt!==0&&(Ie=!0),h<x&&D(m[h])&&(Ie=!0,yt=yt*8+"01234567".indexOf(m[h++]),"0123".indexOf($e)>=0&&h<x&&D(m[h])&&(yt=yt*8+"01234567".indexOf(m[h++]))),ce+=String.fromCharCode(yt)):ce+=$e;break}else++g,$e==="\r"&&m[h]===`
171
171
  `&&++h,y=h;else{if(O($e.charCodeAt(0)))break;ce+=$e}return de!==""&&Ae({},f.UnexpectedToken,"ILLEGAL"),{type:i.StringLiteral,value:ce,octal:Ie,startLineNumber:He,startLineStart:ct,lineNumber:g,lineStart:y,start:Ve,end:h}}function Q(ce,de){var Ve;try{Ve=new RegExp(ce,de)}catch{Ae({},f.InvalidRegExp)}return Ve}function ae(){var ce,de,Ve,$e,yt;for(ce=m[h],C(ce==="/","Regular expression literal must start with a slash"),de=m[h++],Ve=!1,$e=!1;h<x;)if(ce=m[h++],de+=ce,ce==="\\")ce=m[h++],O(ce.charCodeAt(0))&&Ae({},f.UnterminatedRegExp),de+=ce;else if(O(ce.charCodeAt(0)))Ae({},f.UnterminatedRegExp);else if(Ve)ce==="]"&&(Ve=!1);else if(ce==="/"){$e=!0;break}else ce==="["&&(Ve=!0);return $e||Ae({},f.UnterminatedRegExp),yt=de.substr(1,de.length-2),{value:yt,literal:de}}function he(){var ce,de,Ve,$e;for(de="",Ve="";h<x&&(ce=m[h],!!N(ce.charCodeAt(0)));)if(++h,ce==="\\"&&h<x)if(ce=m[h],ce==="u"){if(++h,$e=h,ce=G("u"),ce)for(Ve+=ce,de+="\\u";$e<h;++$e)de+=m[$e];else h=$e,Ve+="u",de+="\\u";Pe({},f.UnexpectedToken,"ILLEGAL")}else de+="\\",Pe({},f.UnexpectedToken,"ILLEGAL");else Ve+=ce,de+=ce;return{value:Ve,literal:de}}function me(){var ce,de,Ve,$e;return w=null,K(),ce=h,de=ae(),Ve=he(),$e=Q(de.value,Ve.value),S.tokenize?{type:i.RegularExpression,value:$e,lineNumber:g,lineStart:y,start:ce,end:h}:{literal:de.literal+Ve.literal,value:$e,start:ce,end:h}}function xe(){var ce,de,Ve,$e;return K(),ce=h,de={start:{line:g,column:h-y}},Ve=me(),de.end={line:g,column:h-y},S.tokenize||(S.tokens.length>0&&($e=S.tokens[S.tokens.length-1],$e.range[0]===ce&&$e.type==="Punctuator"&&($e.value==="/"||$e.value==="/=")&&S.tokens.pop()),S.tokens.push({type:"RegularExpression",value:Ve.literal,range:[ce,h],loc:de})),Ve}function pe(ce){return ce.type===i.Identifier||ce.type===i.Keyword||ce.type===i.BooleanLiteral||ce.type===i.NullLiteral}function ye(){var ce,de;if(ce=S.tokens[S.tokens.length-1],!ce)return xe();if(ce.type==="Punctuator"){if(ce.value==="]")return oe();if(ce.value===")")return de=S.tokens[S.openParenToken-1],de&&de.type==="Keyword"&&(de.value==="if"||de.value==="while"||de.value==="for"||de.value==="with")?xe():oe();if(ce.value==="}"){if(S.tokens[S.openCurlyToken-3]&&S.tokens[S.openCurlyToken-3].type==="Keyword"){if(de=S.tokens[S.openCurlyToken-4],!de)return oe()}else if(S.tokens[S.openCurlyToken-4]&&S.tokens[S.openCurlyToken-4].type==="Keyword"){if(de=S.tokens[S.openCurlyToken-5],!de)return xe()}else return oe();return l.indexOf(de.value)>=0?oe():xe()}return xe()}return ce.type==="Keyword"?xe():oe()}function Se(){var ce;return K(),h>=x?{type:i.EOF,lineNumber:g,lineStart:y,start:h,end:h}:(ce=m.charCodeAt(h),I(ce)?le():ce===40||ce===41||ce===59?oe():ce===39||ce===34?Y():ce===46?T(m.charCodeAt(h+1))?ve():oe():T(ce)?ve():S.tokenize&&ce===47?ye():oe())}function we(){var ce,de,Ve;return K(),ce={start:{line:g,column:h-y}},de=Se(),ce.end={line:g,column:h-y},de.type!==i.EOF&&(Ve=m.slice(de.start,de.end),S.tokens.push({type:u[de.type],value:Ve,range:[de.start,de.end],loc:ce})),de}function ke(){var ce;return ce=w,h=ce.end,g=ce.lineNumber,y=ce.lineStart,w=typeof S.tokens<"u"?we():Se(),h=ce.end,g=ce.lineNumber,y=ce.lineStart,ce}function ee(){var ce,de,Ve;ce=h,de=g,Ve=y,w=typeof S.tokens<"u"?we():Se(),h=ce,g=de,y=Ve}function J(ce,de){this.line=ce,this.column=de}function te(ce,de,Ve,$e){this.start=new J(ce,de),this.end=new J(Ve,$e)}d={name:"SyntaxTree",processComment:function(ce){var de,Ve;if(!(ce.type===s.Program&&ce.body.length>0)){for(S.trailingComments.length>0?S.trailingComments[0].range[0]>=ce.range[1]?(Ve=S.trailingComments,S.trailingComments=[]):S.trailingComments.length=0:S.bottomRightStack.length>0&&S.bottomRightStack[S.bottomRightStack.length-1].trailingComments&&S.bottomRightStack[S.bottomRightStack.length-1].trailingComments[0].range[0]>=ce.range[1]&&(Ve=S.bottomRightStack[S.bottomRightStack.length-1].trailingComments,delete S.bottomRightStack[S.bottomRightStack.length-1].trailingComments);S.bottomRightStack.length>0&&S.bottomRightStack[S.bottomRightStack.length-1].range[0]>=ce.range[0];)de=S.bottomRightStack.pop();de?de.leadingComments&&de.leadingComments[de.leadingComments.length-1].range[1]<=ce.range[0]&&(ce.leadingComments=de.leadingComments,delete de.leadingComments):S.leadingComments.length>0&&S.leadingComments[S.leadingComments.length-1].range[1]<=ce.range[0]&&(ce.leadingComments=S.leadingComments,S.leadingComments=[]),Ve&&(ce.trailingComments=Ve),S.bottomRightStack.push(ce)}},markEnd:function(ce,de){return S.range&&(ce.range=[de.start,h]),S.loc&&(ce.loc=new te(de.startLineNumber===void 0?de.lineNumber:de.startLineNumber,de.start-(de.startLineStart===void 0?de.lineStart:de.startLineStart),g,h-y),this.postProcess(ce)),S.attachComment&&this.processComment(ce),ce},postProcess:function(ce){return S.source&&(ce.loc.source=S.source),ce},createArrayExpression:function(ce){return{type:s.ArrayExpression,elements:ce}},createAssignmentExpression:function(ce,de,Ve){return{type:s.AssignmentExpression,operator:ce,left:de,right:Ve}},createBinaryExpression:function(ce,de,Ve){var $e=ce==="||"||ce==="&&"?s.LogicalExpression:s.BinaryExpression;return{type:$e,operator:ce,left:de,right:Ve}},createBlockStatement:function(ce){return{type:s.BlockStatement,body:ce}},createBreakStatement:function(ce){return{type:s.BreakStatement,label:ce}},createCallExpression:function(ce,de){return{type:s.CallExpression,callee:ce,arguments:de}},createCatchClause:function(ce,de){return{type:s.CatchClause,param:ce,body:de}},createConditionalExpression:function(ce,de,Ve){return{type:s.ConditionalExpression,test:ce,consequent:de,alternate:Ve}},createContinueStatement:function(ce){return{type:s.ContinueStatement,label:ce}},createDebuggerStatement:function(){return{type:s.DebuggerStatement}},createDoWhileStatement:function(ce,de){return{type:s.DoWhileStatement,body:ce,test:de}},createEmptyStatement:function(){return{type:s.EmptyStatement}},createExpressionStatement:function(ce){return{type:s.ExpressionStatement,expression:ce}},createForStatement:function(ce,de,Ve,$e){return{type:s.ForStatement,init:ce,test:de,update:Ve,body:$e}},createForInStatement:function(ce,de,Ve){return{type:s.ForInStatement,left:ce,right:de,body:Ve,each:!1}},createFunctionDeclaration:function(ce,de,Ve,$e){return{type:s.FunctionDeclaration,id:ce,params:de,defaults:Ve,body:$e,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(ce,de,Ve,$e){return{type:s.FunctionExpression,id:ce,params:de,defaults:Ve,body:$e,rest:null,generator:!1,expression:!1}},createIdentifier:function(ce){return{type:s.Identifier,name:ce}},createIfStatement:function(ce,de,Ve){return{type:s.IfStatement,test:ce,consequent:de,alternate:Ve}},createLabeledStatement:function(ce,de){return{type:s.LabeledStatement,label:ce,body:de}},createLiteral:function(ce){return{type:s.Literal,value:ce.value,raw:m.slice(ce.start,ce.end)}},createMemberExpression:function(ce,de,Ve){return{type:s.MemberExpression,computed:ce==="[",object:de,property:Ve}},createNewExpression:function(ce,de){return{type:s.NewExpression,callee:ce,arguments:de}},createObjectExpression:function(ce){return{type:s.ObjectExpression,properties:ce}},createPostfixExpression:function(ce,de){return{type:s.UpdateExpression,operator:ce,argument:de,prefix:!1}},createProgram:function(ce){return{type:s.Program,body:ce}},createProperty:function(ce,de,Ve){return{type:s.Property,key:de,value:Ve,kind:ce}},createReturnStatement:function(ce){return{type:s.ReturnStatement,argument:ce}},createSequenceExpression:function(ce){return{type:s.SequenceExpression,expressions:ce}},createSwitchCase:function(ce,de){return{type:s.SwitchCase,test:ce,consequent:de}},createSwitchStatement:function(ce,de){return{type:s.SwitchStatement,discriminant:ce,cases:de}},createThisExpression:function(){return{type:s.ThisExpression}},createThrowStatement:function(ce){return{type:s.ThrowStatement,argument:ce}},createTryStatement:function(ce,de,Ve,$e){return{type:s.TryStatement,block:ce,guardedHandlers:de,handlers:Ve,finalizer:$e}},createUnaryExpression:function(ce,de){return ce==="++"||ce==="--"?{type:s.UpdateExpression,operator:ce,argument:de,prefix:!0}:{type:s.UnaryExpression,operator:ce,argument:de,prefix:!0}},createVariableDeclaration:function(ce,de){return{type:s.VariableDeclaration,declarations:ce,kind:de}},createVariableDeclarator:function(ce,de){return{type:s.VariableDeclarator,id:ce,init:de}},createWhileStatement:function(ce,de){return{type:s.WhileStatement,test:ce,body:de}},createWithStatement:function(ce,de){return{type:s.WithStatement,object:ce,body:de}}};function fe(){var ce,de,Ve,$e;return ce=h,de=g,Ve=y,K(),$e=g!==de,h=ce,g=de,y=Ve,$e}function Ae(ce,de){var Ve,$e=Array.prototype.slice.call(arguments,2),yt=de.replace(/%(\d)/g,function(Bt,Ce){return C(Ce<$e.length,"Message reference must be in range"),$e[Ce]});throw typeof ce.lineNumber=="number"?(Ve=new Error("Line "+ce.lineNumber+": "+yt),Ve.index=ce.start,Ve.lineNumber=ce.lineNumber,Ve.column=ce.start-y+1):(Ve=new Error("Line "+g+": "+yt),Ve.index=h,Ve.lineNumber=g,Ve.column=h-y+1),Ve.description=yt,Ve}function Pe(){try{Ae.apply(null,arguments)}catch(ce){if(S.errors)S.errors.push(ce);else throw ce}}function Fe(ce){if(ce.type===i.EOF&&Ae(ce,f.UnexpectedEOS),ce.type===i.NumericLiteral&&Ae(ce,f.UnexpectedNumber),ce.type===i.StringLiteral&&Ae(ce,f.UnexpectedString),ce.type===i.Identifier&&Ae(ce,f.UnexpectedIdentifier),ce.type===i.Keyword){if(F(ce.value))Ae(ce,f.UnexpectedReserved);else if(v&&j(ce.value)){Pe(ce,f.StrictReservedWord);return}Ae(ce,f.UnexpectedToken,ce.value)}Ae(ce,f.UnexpectedToken,ce.value)}function Me(ce){var de=ke();(de.type!==i.Punctuator||de.value!==ce)&&Fe(de)}function We(ce){var de=ke();(de.type!==i.Keyword||de.value!==ce)&&Fe(de)}function Ue(ce){return w.type===i.Punctuator&&w.value===ce}function Je(ce){return w.type===i.Keyword&&w.value===ce}function ft(){var ce;return w.type!==i.Punctuator?!1:(ce=w.value,ce==="="||ce==="*="||ce==="/="||ce==="%="||ce==="+="||ce==="-="||ce==="<<="||ce===">>="||ce===">>>="||ce==="&="||ce==="^="||ce==="|=")}function jt(){var ce;if(m.charCodeAt(h)===59||Ue(";")){ke();return}ce=g,K(),g===ce&&w.type!==i.EOF&&!Ue("}")&&Fe(w)}function Ot(ce){return ce.type===s.Identifier||ce.type===s.MemberExpression}function Wt(){var ce=[],de;for(de=w,Me("[");!Ue("]");)Ue(",")?(ke(),ce.push(null)):(ce.push(Re()),Ue("]")||Me(","));return ke(),_.markEnd(_.createArrayExpression(ce),de)}function It(ce,de){var Ve,$e,yt;return Ve=v,yt=w,$e=sn(),de&&v&&L(ce[0].name)&&Pe(de,f.StrictParamName),v=Ve,_.markEnd(_.createFunctionExpression(null,ce,[],$e),yt)}function Vt(){var ce,de;return de=w,ce=ke(),ce.type===i.StringLiteral||ce.type===i.NumericLiteral?(v&&ce.octal&&Pe(ce,f.StrictOctalLiteral),_.markEnd(_.createLiteral(ce),de)):_.markEnd(_.createIdentifier(ce.value),de)}function bt(){var ce,de,Ve,$e,yt,Bt;if(ce=w,Bt=w,ce.type===i.Identifier)return Ve=Vt(),ce.value==="get"&&!Ue(":")?(de=Vt(),Me("("),Me(")"),$e=It([]),_.markEnd(_.createProperty("get",de,$e),Bt)):ce.value==="set"&&!Ue(":")?(de=Vt(),Me("("),ce=w,ce.type!==i.Identifier?(Me(")"),Pe(ce,f.UnexpectedToken,ce.value),$e=It([])):(yt=[et()],Me(")"),$e=It(yt,ce)),_.markEnd(_.createProperty("set",de,$e),Bt)):(Me(":"),$e=Re(),_.markEnd(_.createProperty("init",Ve,$e),Bt));if(ce.type===i.EOF||ce.type===i.Punctuator)Fe(ce);else return de=Vt(),Me(":"),$e=Re(),_.markEnd(_.createProperty("init",de,$e),Bt)}function Ln(){var ce=[],de,Ve,$e,yt,Bt={},Ce=String,Ie;for(Ie=w,Me("{");!Ue("}");)de=bt(),de.key.type===s.Identifier?Ve=de.key.name:Ve=Ce(de.key.value),yt=de.kind==="init"?c.Data:de.kind==="get"?c.Get:c.Set,$e="$"+Ve,Object.prototype.hasOwnProperty.call(Bt,$e)?(Bt[$e]===c.Data?v&&yt===c.Data?Pe({},f.StrictDuplicateProperty):yt!==c.Data&&Pe({},f.AccessorDataProperty):yt===c.Data?Pe({},f.AccessorDataProperty):Bt[$e]&yt&&Pe({},f.AccessorGetSet),Bt[$e]|=yt):Bt[$e]=yt,ce.push(de),Ue("}")||Me(",");return Me("}"),_.markEnd(_.createObjectExpression(ce),Ie)}function pt(){var ce;return Me("("),ce=Ze(),Me(")"),ce}function vt(){var ce,de,Ve,$e;if(Ue("("))return pt();if(Ue("["))return Wt();if(Ue("{"))return Ln();if(ce=w.type,$e=w,ce===i.Identifier)Ve=_.createIdentifier(ke().value);else if(ce===i.StringLiteral||ce===i.NumericLiteral)v&&w.octal&&Pe(w,f.StrictOctalLiteral),Ve=_.createLiteral(ke());else if(ce===i.Keyword){if(Je("function"))return sr();Je("this")?(ke(),Ve=_.createThisExpression()):Fe(ke())}else ce===i.BooleanLiteral?(de=ke(),de.value=de.value==="true",Ve=_.createLiteral(de)):ce===i.NullLiteral?(de=ke(),de.value=null,Ve=_.createLiteral(de)):Ue("/")||Ue("/=")?(typeof S.tokens<"u"?Ve=_.createLiteral(xe()):Ve=_.createLiteral(me()),ee()):Fe(ke());return _.markEnd(Ve,$e)}function se(){var ce=[];if(Me("("),!Ue(")"))for(;h<x&&(ce.push(Re()),!Ue(")"));)Me(",");return Me(")"),ce}function Ne(){var ce,de;return de=w,ce=ke(),pe(ce)||Fe(ce),_.markEnd(_.createIdentifier(ce.value),de)}function Oe(){return Me("."),Ne()}function Le(){var ce;return Me("["),ce=Ze(),Me("]"),ce}function Ye(){var ce,de,Ve;return Ve=w,We("new"),ce=Nt(),de=Ue("(")?se():[],_.markEnd(_.createNewExpression(ce,de),Ve)}function xt(){var ce,de,Ve,$e,yt;for(yt=w,ce=E.allowIn,E.allowIn=!0,de=Je("new")?Ye():vt(),E.allowIn=ce;;){if(Ue("."))$e=Oe(),de=_.createMemberExpression(".",de,$e);else if(Ue("("))Ve=se(),de=_.createCallExpression(de,Ve);else if(Ue("["))$e=Le(),de=_.createMemberExpression("[",de,$e);else break;_.markEnd(de,yt)}return de}function Nt(){var ce,de,Ve,$e;for($e=w,ce=E.allowIn,de=Je("new")?Ye():vt(),E.allowIn=ce;Ue(".")||Ue("[");)Ue("[")?(Ve=Le(),de=_.createMemberExpression("[",de,Ve)):(Ve=Oe(),de=_.createMemberExpression(".",de,Ve)),_.markEnd(de,$e);return de}function Gt(){var ce,de,Ve=w;return ce=xt(),w.type===i.Punctuator&&(Ue("++")||Ue("--"))&&!fe()&&(v&&ce.type===s.Identifier&&L(ce.name)&&Pe({},f.StrictLHSPostfix),Ot(ce)||Pe({},f.InvalidLHSInAssignment),de=ke(),ce=_.markEnd(_.createPostfixExpression(de.value,ce),Ve)),ce}function rn(){var ce,de,Ve;return w.type!==i.Punctuator&&w.type!==i.Keyword?de=Gt():Ue("++")||Ue("--")?(Ve=w,ce=ke(),de=rn(),v&&de.type===s.Identifier&&L(de.name)&&Pe({},f.StrictLHSPrefix),Ot(de)||Pe({},f.InvalidLHSInAssignment),de=_.createUnaryExpression(ce.value,de),de=_.markEnd(de,Ve)):Ue("+")||Ue("-")||Ue("~")||Ue("!")?(Ve=w,ce=ke(),de=rn(),de=_.createUnaryExpression(ce.value,de),de=_.markEnd(de,Ve)):Je("delete")||Je("void")||Je("typeof")?(Ve=w,ce=ke(),de=rn(),de=_.createUnaryExpression(ce.value,de),de=_.markEnd(de,Ve),v&&de.operator==="delete"&&de.argument.type===s.Identifier&&Pe({},f.StrictDelete)):de=Gt(),de}function Rn(ce,de){var Ve=0;if(ce.type!==i.Punctuator&&ce.type!==i.Keyword)return 0;switch(ce.value){case"||":Ve=1;break;case"&&":Ve=2;break;case"|":Ve=3;break;case"^":Ve=4;break;case"&":Ve=5;break;case"==":case"!=":case"===":case"!==":Ve=6;break;case"<":case">":case"<=":case">=":case"instanceof":Ve=7;break;case"in":Ve=de?7:0;break;case"<<":case">>":case">>>":Ve=8;break;case"+":case"-":Ve=9;break;case"*":case"/":case"%":Ve=11;break}return Ve}function Br(){var ce,de,Ve,$e,yt,Bt,Ce,Ie,He,ct;if(ce=w,He=rn(),$e=w,yt=Rn($e,E.allowIn),yt===0)return He;for($e.prec=yt,ke(),de=[ce,w],Ce=rn(),Bt=[He,$e,Ce];(yt=Rn(w,E.allowIn))>0;){for(;Bt.length>2&&yt<=Bt[Bt.length-2].prec;)Ce=Bt.pop(),Ie=Bt.pop().value,He=Bt.pop(),Ve=_.createBinaryExpression(Ie,He,Ce),de.pop(),ce=de[de.length-1],_.markEnd(Ve,ce),Bt.push(Ve);$e=ke(),$e.prec=yt,Bt.push($e),de.push(w),Ve=rn(),Bt.push(Ve)}for(ct=Bt.length-1,Ve=Bt[ct],de.pop();ct>1;)Ve=_.createBinaryExpression(Bt[ct-1].value,Bt[ct-2],Ve),ct-=2,ce=de.pop(),_.markEnd(Ve,ce);return Ve}function Ei(){var ce,de,Ve,$e,yt;return yt=w,ce=Br(),Ue("?")&&(ke(),de=E.allowIn,E.allowIn=!0,Ve=Re(),E.allowIn=de,Me(":"),$e=Re(),ce=_.createConditionalExpression(ce,Ve,$e),_.markEnd(ce,yt)),ce}function Re(){var ce,de,Ve,$e,yt;return ce=w,yt=w,$e=de=Ei(),ft()&&(Ot(de)||Pe({},f.InvalidLHSInAssignment),v&&de.type===s.Identifier&&L(de.name)&&Pe(ce,f.StrictLHSAssignment),ce=ke(),Ve=Re(),$e=_.markEnd(_.createAssignmentExpression(ce.value,de,Ve),yt)),$e}function Ze(){var ce,de=w;if(ce=Re(),Ue(",")){for(ce=_.createSequenceExpression([ce]);h<x&&Ue(",");)ke(),ce.expressions.push(Re());_.markEnd(ce,de)}return ce}function Ke(){for(var ce=[],de;h<x&&!(Ue("}")||(de=Vr(),typeof de>"u"));)ce.push(de);return ce}function Ge(){var ce,de;return de=w,Me("{"),ce=Ke(),Me("}"),_.markEnd(_.createBlockStatement(ce),de)}function et(){var ce,de;return de=w,ce=ke(),ce.type!==i.Identifier&&Fe(ce),_.markEnd(_.createIdentifier(ce.value),de)}function rt(ce){var de=null,Ve,$e;return $e=w,Ve=et(),v&&L(Ve.name)&&Pe({},f.StrictVarName),ce==="const"?(Me("="),de=Re()):Ue("=")&&(ke(),de=Re()),_.markEnd(_.createVariableDeclarator(Ve,de),$e)}function _t(ce){var de=[];do{if(de.push(rt(ce)),!Ue(","))break;ke()}while(h<x);return de}function Mt(){var ce;return We("var"),ce=_t(),jt(),_.createVariableDeclaration(ce,"var")}function Et(ce){var de,Ve;return Ve=w,We(ce),de=_t(ce),jt(),_.markEnd(_.createVariableDeclaration(de,ce),Ve)}function St(){return Me(";"),_.createEmptyStatement()}function Dt(){var ce=Ze();return jt(),_.createExpressionStatement(ce)}function it(){var ce,de,Ve;return We("if"),Me("("),ce=Ze(),Me(")"),de=On(),Je("else")?(ke(),Ve=On()):Ve=null,_.createIfStatement(ce,de,Ve)}function k(){var ce,de,Ve;return We("do"),Ve=E.inIteration,E.inIteration=!0,ce=On(),E.inIteration=Ve,We("while"),Me("("),de=Ze(),Me(")"),Ue(";")&&ke(),_.createDoWhileStatement(ce,de)}function B(){var ce,de,Ve;return We("while"),Me("("),ce=Ze(),Me(")"),Ve=E.inIteration,E.inIteration=!0,de=On(),E.inIteration=Ve,_.createWhileStatement(ce,de)}function z(){var ce,de,Ve;return Ve=w,ce=ke(),de=_t(),_.markEnd(_.createVariableDeclaration(de,ce.value),Ve)}function H(){var ce,de,Ve,$e,yt,Bt,Ce;return ce=de=Ve=null,We("for"),Me("("),Ue(";")?ke():(Je("var")||Je("let")?(E.allowIn=!1,ce=z(),E.allowIn=!0,ce.declarations.length===1&&Je("in")&&(ke(),$e=ce,yt=Ze(),ce=null)):(E.allowIn=!1,ce=Ze(),E.allowIn=!0,Je("in")&&(Ot(ce)||Pe({},f.InvalidLHSInForIn),ke(),$e=ce,yt=Ze(),ce=null)),typeof $e>"u"&&Me(";")),typeof $e>"u"&&(Ue(";")||(de=Ze()),Me(";"),Ue(")")||(Ve=Ze())),Me(")"),Ce=E.inIteration,E.inIteration=!0,Bt=On(),E.inIteration=Ce,typeof $e>"u"?_.createForStatement(ce,de,Ve,Bt):_.createForInStatement($e,yt,Bt)}function q(){var ce=null,de;return We("continue"),m.charCodeAt(h)===59?(ke(),E.inIteration||Ae({},f.IllegalContinue),_.createContinueStatement(null)):fe()?(E.inIteration||Ae({},f.IllegalContinue),_.createContinueStatement(null)):(w.type===i.Identifier&&(ce=et(),de="$"+ce.name,Object.prototype.hasOwnProperty.call(E.labelSet,de)||Ae({},f.UnknownLabel,ce.name)),jt(),ce===null&&!E.inIteration&&Ae({},f.IllegalContinue),_.createContinueStatement(ce))}function ge(){var ce=null,de;return We("break"),m.charCodeAt(h)===59?(ke(),E.inIteration||E.inSwitch||Ae({},f.IllegalBreak),_.createBreakStatement(null)):fe()?(E.inIteration||E.inSwitch||Ae({},f.IllegalBreak),_.createBreakStatement(null)):(w.type===i.Identifier&&(ce=et(),de="$"+ce.name,Object.prototype.hasOwnProperty.call(E.labelSet,de)||Ae({},f.UnknownLabel,ce.name)),jt(),ce===null&&!(E.inIteration||E.inSwitch)&&Ae({},f.IllegalBreak),_.createBreakStatement(ce))}function Te(){var ce=null;return We("return"),E.inFunctionBody||Pe({},f.IllegalReturn),m.charCodeAt(h)===32&&I(m.charCodeAt(h+1))?(ce=Ze(),jt(),_.createReturnStatement(ce)):fe()?_.createReturnStatement(null):(Ue(";")||!Ue("}")&&w.type!==i.EOF&&(ce=Ze()),jt(),_.createReturnStatement(ce))}function je(){var ce,de;return v&&(K(),Pe({},f.StrictModeWith)),We("with"),Me("("),ce=Ze(),Me(")"),de=On(),_.createWithStatement(ce,de)}function at(){var ce,de=[],Ve,$e;for($e=w,Je("default")?(ke(),ce=null):(We("case"),ce=Ze()),Me(":");h<x&&!(Ue("}")||Je("default")||Je("case"));)Ve=On(),de.push(Ve);return _.markEnd(_.createSwitchCase(ce,de),$e)}function ut(){var ce,de,Ve,$e,yt;if(We("switch"),Me("("),ce=Ze(),Me(")"),Me("{"),de=[],Ue("}"))return ke(),_.createSwitchStatement(ce,de);for($e=E.inSwitch,E.inSwitch=!0,yt=!1;h<x&&!Ue("}");)Ve=at(),Ve.test===null&&(yt&&Ae({},f.MultipleDefaultsInSwitch),yt=!0),de.push(Ve);return E.inSwitch=$e,Me("}"),_.createSwitchStatement(ce,de)}function Ct(){var ce;return We("throw"),fe()&&Ae({},f.NewlineAfterThrow),ce=Ze(),jt(),_.createThrowStatement(ce)}function wt(){var ce,de,Ve;return Ve=w,We("catch"),Me("("),Ue(")")&&Fe(w),ce=et(),v&&L(ce.name)&&Pe({},f.StrictCatchVariable),Me(")"),de=Ge(),_.markEnd(_.createCatchClause(ce,de),Ve)}function Lt(){var ce,de=[],Ve=null;return We("try"),ce=Ge(),Je("catch")&&de.push(wt()),Je("finally")&&(ke(),Ve=Ge()),de.length===0&&!Ve&&Ae({},f.NoCatchOrFinally),_.createTryStatement(ce,[],de,Ve)}function cn(){return We("debugger"),jt(),_.createDebuggerStatement()}function On(){var ce=w.type,de,Ve,$e,yt;if(ce===i.EOF&&Fe(w),ce===i.Punctuator&&w.value==="{")return Ge();if(yt=w,ce===i.Punctuator)switch(w.value){case";":return _.markEnd(St(),yt);case"(":return _.markEnd(Dt(),yt)}if(ce===i.Keyword)switch(w.value){case"break":return _.markEnd(ge(),yt);case"continue":return _.markEnd(q(),yt);case"debugger":return _.markEnd(cn(),yt);case"do":return _.markEnd(k(),yt);case"for":return _.markEnd(H(),yt);case"function":return _.markEnd(Fn(),yt);case"if":return _.markEnd(it(),yt);case"return":return _.markEnd(Te(),yt);case"switch":return _.markEnd(ut(),yt);case"throw":return _.markEnd(Ct(),yt);case"try":return _.markEnd(Lt(),yt);case"var":return _.markEnd(Mt(),yt);case"while":return _.markEnd(B(),yt);case"with":return _.markEnd(je(),yt)}return de=Ze(),de.type===s.Identifier&&Ue(":")?(ke(),$e="$"+de.name,Object.prototype.hasOwnProperty.call(E.labelSet,$e)&&Ae({},f.Redeclaration,"Label",de.name),E.labelSet[$e]=!0,Ve=On(),delete E.labelSet[$e],_.markEnd(_.createLabeledStatement(de,Ve),yt)):(jt(),_.markEnd(_.createExpressionStatement(de),yt))}function sn(){var ce,de=[],Ve,$e,yt,Bt,Ce,Ie,He,ct;for(ct=w,Me("{");h<x&&!(w.type!==i.StringLiteral||(Ve=w,ce=Vr(),de.push(ce),ce.expression.type!==s.Literal));)$e=m.slice(Ve.start+1,Ve.end-1),$e==="use strict"?(v=!0,yt&&Pe(yt,f.StrictOctalLiteral)):!yt&&Ve.octal&&(yt=Ve);for(Bt=E.labelSet,Ce=E.inIteration,Ie=E.inSwitch,He=E.inFunctionBody,E.labelSet={},E.inIteration=!1,E.inSwitch=!1,E.inFunctionBody=!0;h<x&&!(Ue("}")||(ce=Vr(),typeof ce>"u"));)de.push(ce);return Me("}"),E.labelSet=Bt,E.inIteration=Ce,E.inSwitch=Ie,E.inFunctionBody=He,_.markEnd(_.createBlockStatement(de),ct)}function ln(ce){var de,Ve=[],$e,yt,Bt,Ce,Ie;if(Me("("),!Ue(")"))for(Bt={};h<x&&($e=w,de=et(),Ce="$"+$e.value,v?(L($e.value)&&(yt=$e,Ie=f.StrictParamName),Object.prototype.hasOwnProperty.call(Bt,Ce)&&(yt=$e,Ie=f.StrictParamDupe)):ce||(L($e.value)?(ce=$e,Ie=f.StrictParamName):j($e.value)?(ce=$e,Ie=f.StrictReservedWord):Object.prototype.hasOwnProperty.call(Bt,Ce)&&(ce=$e,Ie=f.StrictParamDupe)),Ve.push(de),Bt[Ce]=!0,!Ue(")"));)Me(",");return Me(")"),{params:Ve,stricted:yt,firstRestricted:ce,message:Ie}}function Fn(){var ce,de=[],Ve,$e,yt,Bt,Ce,Ie,He,ct;return ct=w,We("function"),$e=w,ce=et(),v?L($e.value)&&Pe($e,f.StrictFunctionName):L($e.value)?(Ce=$e,Ie=f.StrictFunctionName):j($e.value)&&(Ce=$e,Ie=f.StrictReservedWord),Bt=ln(Ce),de=Bt.params,yt=Bt.stricted,Ce=Bt.firstRestricted,Bt.message&&(Ie=Bt.message),He=v,Ve=sn(),v&&Ce&&Ae(Ce,Ie),v&&yt&&Pe(yt,Ie),v=He,_.markEnd(_.createFunctionDeclaration(ce,de,[],Ve),ct)}function sr(){var ce,de=null,Ve,$e,yt,Bt,Ce=[],Ie,He,ct;return ct=w,We("function"),Ue("(")||(ce=w,de=et(),v?L(ce.value)&&Pe(ce,f.StrictFunctionName):L(ce.value)?($e=ce,yt=f.StrictFunctionName):j(ce.value)&&($e=ce,yt=f.StrictReservedWord)),Bt=ln($e),Ce=Bt.params,Ve=Bt.stricted,$e=Bt.firstRestricted,Bt.message&&(yt=Bt.message),He=v,Ie=sn(),v&&$e&&Ae($e,yt),v&&Ve&&Pe(Ve,yt),v=He,_.markEnd(_.createFunctionExpression(de,Ce,[],Ie),ct)}function Vr(){if(w.type===i.Keyword)switch(w.value){case"const":case"let":return Et(w.value);case"function":return Fn();default:return On()}if(w.type!==i.EOF)return On()}function Lr(){for(var ce,de=[],Ve,$e,yt;h<x&&(Ve=w,!(Ve.type!==i.StringLiteral||(ce=Vr(),de.push(ce),ce.expression.type!==s.Literal)));)$e=m.slice(Ve.start+1,Ve.end-1),$e==="use strict"?(v=!0,yt&&Pe(yt,f.StrictOctalLiteral)):!yt&&Ve.octal&&(yt=Ve);for(;h<x&&(ce=Vr(),!(typeof ce>"u"));)de.push(ce);return de}function Ii(){var ce,de;return K(),ee(),de=w,v=!1,ce=Lr(),_.markEnd(_.createProgram(ce),de)}function Li(){var ce,de,Ve,$e=[];for(ce=0;ce<S.tokens.length;++ce)de=S.tokens[ce],Ve={type:de.type,value:de.value},S.range&&(Ve.range=de.range),S.loc&&(Ve.loc=de.loc),$e.push(Ve);S.tokens=$e}function eo(ce,de){var Ve,$e,yt;Ve=String,typeof ce!="string"&&!(ce instanceof String)&&(ce=Ve(ce)),_=d,m=ce,h=0,g=m.length>0?1:0,y=0,x=m.length,w=null,E={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},S={},de=de||{},de.tokens=!0,S.tokens=[],S.tokenize=!0,S.openParenToken=-1,S.openCurlyToken=-1,S.range=typeof de.range=="boolean"&&de.range,S.loc=typeof de.loc=="boolean"&&de.loc,typeof de.comment=="boolean"&&de.comment&&(S.comments=[]),typeof de.tolerant=="boolean"&&de.tolerant&&(S.errors=[]);try{if(ee(),w.type===i.EOF)return S.tokens;for($e=ke();w.type!==i.EOF;)try{$e=ke()}catch(Bt){if($e=w,S.errors){S.errors.push(Bt);break}else throw Bt}Li(),yt=S.tokens,typeof S.comments<"u"&&(yt.comments=S.comments),typeof S.errors<"u"&&(yt.errors=S.errors)}catch(Bt){throw Bt}finally{S={}}return yt}function Ri(ce,de){var Ve,$e;$e=String,typeof ce!="string"&&!(ce instanceof String)&&(ce=$e(ce)),_=d,m=ce,h=0,g=m.length>0?1:0,y=0,x=m.length,w=null,E={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},S={},typeof de<"u"&&(S.range=typeof de.range=="boolean"&&de.range,S.loc=typeof de.loc=="boolean"&&de.loc,S.attachComment=typeof de.attachComment=="boolean"&&de.attachComment,S.loc&&de.source!==null&&de.source!==void 0&&(S.source=$e(de.source)),typeof de.tokens=="boolean"&&de.tokens&&(S.tokens=[]),typeof de.comment=="boolean"&&de.comment&&(S.comments=[]),typeof de.tolerant=="boolean"&&de.tolerant&&(S.errors=[]),S.attachComment&&(S.range=!0,S.comments=[],S.bottomRightStack=[],S.trailingComments=[],S.leadingComments=[]));try{Ve=Ii(),typeof S.comments<"u"&&(Ve.comments=S.comments),typeof S.tokens<"u"&&(Li(),Ve.tokens=S.tokens),typeof S.errors<"u"&&(Ve.errors=S.errors)}catch(yt){throw yt}finally{S={}}return Ve}o.version="1.2.2",o.tokenize=eo,o.parse=Ri,o.Syntax=function(){var ce,de={};typeof Object.create=="function"&&(de=Object.create(null));for(ce in s)s.hasOwnProperty(ce)&&(de[ce]=s[ce]);return typeof Object.freeze=="function"&&Object.freeze(de),de}()})},{}],1:[function(n,r,a){(function(o){var i=function(){var u={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(p,d,m,v,h,g,y){v.ast||(v.ast=l,l.initialize());var x=g.length-1;switch(h){case 1:return v.ast.set({expression:{type:"root",value:g[x]}}),v.ast.unshift(),v.ast.yield();case 2:return v.ast.set({expression:{type:"root",value:g[x-1]}}),v.ast.unshift(),v.ast.yield();case 3:return v.ast.unshift(),v.ast.yield();case 4:return v.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:g[x-1]}}),v.ast.unshift(),v.ast.yield();case 5:break;case 6:break;case 7:v.ast.set({operation:"member"}),v.ast.push();break;case 8:v.ast.set({operation:"subscript"}),v.ast.push();break;case 9:v.ast.set({scope:"child"});break;case 10:v.ast.set({scope:"descendant"});break;case 11:break;case 12:v.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:v.ast.set({expression:{type:"wildcard",value:g[x]}});break;case 15:v.ast.set({expression:{type:"identifier",value:g[x]}});break;case 16:v.ast.set({expression:{type:"script_expression",value:g[x]}});break;case 17:v.ast.set({expression:{type:"numeric_literal",value:parseInt(g[x])}});break;case 18:break;case 19:v.ast.set({scope:"child"});break;case 20:v.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:g[x].length>1?v.ast.set({expression:{type:"union",value:g[x]}}):this.$=g[x];break;case 25:this.$=[g[x]];break;case 26:this.$=g[x-2].concat(g[x]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(g[x])}},v.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:g[x]}},v.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:g[x]}},v.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:g[x]}},v.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:g[x]}},v.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:g[x]}},v.ast.set(this.$);break;case 33:this.$=g[x];break;case 34:this.$=g[x];break}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(p,d){if(d.recoverable)this.trace(p);else throw new Error(p)},parse:function(p){var d=this,m=[0],v=[null],h=[],g=this.table,y="",x=0,_=0,w=2,E=1,S=h.slice.call(arguments,1);this.lexer.setInput(p),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var C=this.lexer.yylloc;h.push(C);var T=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function A(){var R;return R=d.lexer.lex()||E,typeof R!="number"&&(R=d.symbols_[R]||R),R}for(var D,P,O,I,N={},F,j,L,V;;){if(P=m[m.length-1],this.defaultActions[P]?O=this.defaultActions[P]:((D===null||typeof D>"u")&&(D=A()),O=g[P]&&g[P][D]),typeof O>"u"||!O.length||!O[0]){var X="";V=[];for(F in g[P])this.terminals_[F]&&F>w&&V.push("'"+this.terminals_[F]+"'");this.lexer.showPosition?X="Parse error on line "+(x+1)+`:
172
172
  `+this.lexer.showPosition()+`
@@ -189,7 +189,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
189
189
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,u;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return o=l.done,l},e:function(l){i=!0,u=l},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(i)throw u}}}}var A2e=function(){function e(){G0(this,e)}return K0(e,[{key:"add",value:function(n,r,a){if(typeof arguments[0]!="string")for(var o in arguments[0])this.add(o,arguments[0][o],arguments[1]);else(Array.isArray(n)?n:[n]).forEach(function(i){this[i]=this[i]||[],r&&this[i][a?"unshift":"push"](r)},this)}},{key:"run",value:function(n,r){this[n]=this[n]||[],this[n].forEach(function(a){a.call(r&&r.context?r.context:r,r)})}}])}(),T2e=function(){function e(t){G0(this,e),this.jsep=t,this.registered={}}return K0(e,[{key:"register",value:function(){for(var n=this,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];a.forEach(function(i){if(bl(i)!=="object"||!i.name||!i.init)throw new Error("Invalid JSEP plugin format");n.registered[i.name]||(i.init(n.jsep),n.registered[i.name]=i)})}}])}(),wl=function(){function e(t){G0(this,e),this.expr=t,this.index=0}return K0(e,[{key:"char",get:function(){return this.expr.charAt(this.index)}},{key:"code",get:function(){return this.expr.charCodeAt(this.index)}},{key:"throwError",value:function(n){var r=new Error(n+" at character "+this.index);throw r.index=this.index,r.description=n,r}},{key:"runHook",value:function(n,r){if(e.hooks[n]){var a={context:this,node:r};return e.hooks.run(n,a),a.node}return r}},{key:"searchHook",value:function(n){if(e.hooks[n]){var r={context:this};return e.hooks[n].find(function(a){return a.call(r.context,r),r.node}),r.node}}},{key:"gobbleSpaces",value:function(){for(var n=this.code;n===e.SPACE_CODE||n===e.TAB_CODE||n===e.LF_CODE||n===e.CR_CODE;)n=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}},{key:"parse",value:function(){this.runHook("before-all");var n=this.gobbleExpressions(),r=n.length===1?n[0]:{type:e.COMPOUND,body:n};return this.runHook("after-all",r)}},{key:"gobbleExpressions",value:function(n){for(var r=[],a,o;this.index<this.expr.length;)if(a=this.code,a===e.SEMCOL_CODE||a===e.COMMA_CODE)this.index++;else if(o=this.gobbleExpression())r.push(o);else if(this.index<this.expr.length){if(a===n)break;this.throwError('Unexpected "'+this.char+'"')}return r}},{key:"gobbleExpression",value:function(){var n=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",n)}},{key:"gobbleBinaryOp",value:function(){this.gobbleSpaces();for(var n=this.expr.substr(this.index,e.max_binop_len),r=n.length;r>0;){if(e.binary_ops.hasOwnProperty(n)&&(!e.isIdentifierStart(this.code)||this.index+n.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+n.length))))return this.index+=r,n;n=n.substr(0,--r)}return!1}},{key:"gobbleBinaryExpression",value:function(){var n,r,a,o,i,u,l,s,c;if(u=this.gobbleToken(),!u||(r=this.gobbleBinaryOp(),!r))return u;for(i={value:r,prec:e.binaryPrecedence(r),right_a:e.right_associative.has(r)},l=this.gobbleToken(),l||this.throwError("Expected expression after "+r),o=[u,i,l];r=this.gobbleBinaryOp();){if(a=e.binaryPrecedence(r),a===0){this.index-=r.length;break}i={value:r,prec:a,right_a:e.right_associative.has(r)},c=r;for(var f=function(d){return i.right_a&&d.right_a?a>d.prec:a<=d.prec};o.length>2&&f(o[o.length-2]);)l=o.pop(),r=o.pop().value,u=o.pop(),n={type:e.BINARY_EXP,operator:r,left:u,right:l},o.push(n);n=this.gobbleToken(),n||this.throwError("Expected expression after "+c),o.push(i,n)}for(s=o.length-1,n=o[s];s>1;)n={type:e.BINARY_EXP,operator:o[s-1].value,left:o[s-2],right:n},s-=2;return n}},{key:"gobbleToken",value:function(){var n,r,a,o;if(this.gobbleSpaces(),o=this.searchHook("gobble-token"),o)return this.runHook("after-token",o);if(n=this.code,e.isDecimalDigit(n)||n===e.PERIOD_CODE)return this.gobbleNumericLiteral();if(n===e.SQUOTE_CODE||n===e.DQUOTE_CODE)o=this.gobbleStringLiteral();else if(n===e.OBRACK_CODE)o=this.gobbleArray();else{for(r=this.expr.substr(this.index,e.max_unop_len),a=r.length;a>0;){if(e.unary_ops.hasOwnProperty(r)&&(!e.isIdentifierStart(this.code)||this.index+r.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+r.length)))){this.index+=a;var i=this.gobbleToken();return i||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:e.UNARY_EXP,operator:r,argument:i,prefix:!0})}r=r.substr(0,--a)}e.isIdentifierStart(n)?(o=this.gobbleIdentifier(),e.literals.hasOwnProperty(o.name)?o={type:e.LITERAL,value:e.literals[o.name],raw:o.name}:o.name===e.this_str&&(o={type:e.THIS_EXP})):n===e.OPAREN_CODE&&(o=this.gobbleGroup())}return o?(o=this.gobbleTokenProperty(o),this.runHook("after-token",o)):this.runHook("after-token",!1)}},{key:"gobbleTokenProperty",value:function(n){this.gobbleSpaces();for(var r=this.code;r===e.PERIOD_CODE||r===e.OBRACK_CODE||r===e.OPAREN_CODE||r===e.QUMARK_CODE;){var a=void 0;if(r===e.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==e.PERIOD_CODE)break;a=!0,this.index+=2,this.gobbleSpaces(),r=this.code}this.index++,r===e.OBRACK_CODE?(n={type:e.MEMBER_EXP,computed:!0,object:n,property:this.gobbleExpression()},this.gobbleSpaces(),r=this.code,r!==e.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):r===e.OPAREN_CODE?n={type:e.CALL_EXP,arguments:this.gobbleArguments(e.CPAREN_CODE),callee:n}:(r===e.PERIOD_CODE||a)&&(a&&this.index--,this.gobbleSpaces(),n={type:e.MEMBER_EXP,computed:!1,object:n,property:this.gobbleIdentifier()}),a&&(n.optional=!0),this.gobbleSpaces(),r=this.code}return n}},{key:"gobbleNumericLiteral",value:function(){for(var n="",r,a;e.isDecimalDigit(this.code);)n+=this.expr.charAt(this.index++);if(this.code===e.PERIOD_CODE)for(n+=this.expr.charAt(this.index++);e.isDecimalDigit(this.code);)n+=this.expr.charAt(this.index++);if(r=this.char,r==="e"||r==="E"){for(n+=this.expr.charAt(this.index++),r=this.char,(r==="+"||r==="-")&&(n+=this.expr.charAt(this.index++));e.isDecimalDigit(this.code);)n+=this.expr.charAt(this.index++);e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+n+this.char+")")}return a=this.code,e.isIdentifierStart(a)?this.throwError("Variable names cannot start with a number ("+n+this.char+")"):(a===e.PERIOD_CODE||n.length===1&&n.charCodeAt(0)===e.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:e.LITERAL,value:parseFloat(n),raw:n}}},{key:"gobbleStringLiteral",value:function(){for(var n="",r=this.index,a=this.expr.charAt(this.index++),o=!1;this.index<this.expr.length;){var i=this.expr.charAt(this.index++);if(i===a){o=!0;break}else if(i==="\\")switch(i=this.expr.charAt(this.index++),i){case"n":n+=`
190
190
  `;break;case"r":n+="\r";break;case"t":n+=" ";break;case"b":n+="\b";break;case"f":n+="\f";break;case"v":n+="\v";break;default:n+=i}else n+=i}return o||this.throwError('Unclosed quote after "'+n+'"'),{type:e.LITERAL,value:n,raw:this.expr.substring(r,this.index)}}},{key:"gobbleIdentifier",value:function(){var n=this.code,r=this.index;for(e.isIdentifierStart(n)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(n=this.code,e.isIdentifierPart(n));)this.index++;return{type:e.IDENTIFIER,name:this.expr.slice(r,this.index)}}},{key:"gobbleArguments",value:function(n){for(var r=[],a=!1,o=0;this.index<this.expr.length;){this.gobbleSpaces();var i=this.code;if(i===n){a=!0,this.index++,n===e.CPAREN_CODE&&o&&o>=r.length&&this.throwError("Unexpected token "+String.fromCharCode(n));break}else if(i===e.COMMA_CODE){if(this.index++,o++,o!==r.length){if(n===e.CPAREN_CODE)this.throwError("Unexpected token ,");else if(n===e.CBRACK_CODE)for(var u=r.length;u<o;u++)r.push(null)}}else if(r.length!==o&&o!==0)this.throwError("Expected comma");else{var l=this.gobbleExpression();(!l||l.type===e.COMPOUND)&&this.throwError("Expected comma"),r.push(l)}}return a||this.throwError("Expected "+String.fromCharCode(n)),r}},{key:"gobbleGroup",value:function(){this.index++;var n=this.gobbleExpressions(e.CPAREN_CODE);if(this.code===e.CPAREN_CODE)return this.index++,n.length===1?n[0]:n.length?{type:e.SEQUENCE_EXP,expressions:n}:!1;this.throwError("Unclosed (")}},{key:"gobbleArray",value:function(){return this.index++,{type:e.ARRAY_EXP,elements:this.gobbleArguments(e.CBRACK_CODE)}}}],[{key:"version",get:function(){return"1.3.8"}},{key:"toString",value:function(){return"JavaScript Expression Parser (JSEP) v"+e.version}},{key:"addUnaryOp",value:function(n){return e.max_unop_len=Math.max(n.length,e.max_unop_len),e.unary_ops[n]=1,e}},{key:"addBinaryOp",value:function(n,r,a){return e.max_binop_len=Math.max(n.length,e.max_binop_len),e.binary_ops[n]=r,a?e.right_associative.add(n):e.right_associative.delete(n),e}},{key:"addIdentifierChar",value:function(n){return e.additional_identifier_chars.add(n),e}},{key:"addLiteral",value:function(n,r){return e.literals[n]=r,e}},{key:"removeUnaryOp",value:function(n){return delete e.unary_ops[n],n.length===e.max_unop_len&&(e.max_unop_len=e.getMaxKeyLen(e.unary_ops)),e}},{key:"removeAllUnaryOps",value:function(){return e.unary_ops={},e.max_unop_len=0,e}},{key:"removeIdentifierChar",value:function(n){return e.additional_identifier_chars.delete(n),e}},{key:"removeBinaryOp",value:function(n){return delete e.binary_ops[n],n.length===e.max_binop_len&&(e.max_binop_len=e.getMaxKeyLen(e.binary_ops)),e.right_associative.delete(n),e}},{key:"removeAllBinaryOps",value:function(){return e.binary_ops={},e.max_binop_len=0,e}},{key:"removeLiteral",value:function(n){return delete e.literals[n],e}},{key:"removeAllLiterals",value:function(){return e.literals={},e}},{key:"parse",value:function(n){return new e(n).parse()}},{key:"getMaxKeyLen",value:function(n){return Math.max.apply(Math,[0].concat(YA(Object.keys(n).map(function(r){return r.length}))))}},{key:"isDecimalDigit",value:function(n){return n>=48&&n<=57}},{key:"binaryPrecedence",value:function(n){return e.binary_ops[n]||0}},{key:"isIdentifierStart",value:function(n){return n>=65&&n<=90||n>=97&&n<=122||n>=128&&!e.binary_ops[String.fromCharCode(n)]||e.additional_identifier_chars.has(String.fromCharCode(n))}},{key:"isIdentifierPart",value:function(n){return e.isIdentifierStart(n)||e.isDecimalDigit(n)}}])}(),D2e=new A2e;Object.assign(wl,{hooks:D2e,plugins:new T2e(wl),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},right_associative:new Set,additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),wl.max_unop_len=wl.getMaxKeyLen(wl.unary_ops),wl.max_binop_len=wl.getMaxKeyLen(wl.binary_ops);var X0=function(t){return new wl(t).parse()},k2e=Object.getOwnPropertyNames(wl);k2e.forEach(function(e){X0[e]===void 0&&e!=="prototype"&&(X0[e]=wl[e])}),X0.Jsep=wl;var P2e="ConditionalExpression",O2e={name:"ternary",init:function(t){t.hooks.add("after-expression",function(r){if(r.node&&this.code===t.QUMARK_CODE){this.index++;var a=r.node,o=this.gobbleExpression();if(o||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===t.COLON_CODE){this.index++;var i=this.gobbleExpression();if(i||this.throwError("Expected expression"),r.node={type:P2e,test:a,consequent:o,alternate:i},a.operator&&t.binary_ops[a.operator]<=.9){for(var u=a;u.right.operator&&t.binary_ops[u.right.operator]<=.9;)u=u.right;r.node.test=u.right,u.right=r.node,r.node=a}}else this.throwError("Expected :")}})}};X0.plugins.register(O2e);var wj=47,I2e=92,B2e={name:"regex",init:function(t){t.hooks.add("gobble-token",function(r){if(this.code===wj){for(var a=++this.index,o=!1;this.index<this.expr.length;){if(this.code===wj&&!o){for(var i=this.expr.slice(a,this.index),u="";++this.index<this.expr.length;){var l=this.code;if(l>=97&&l<=122||l>=65&&l<=90||l>=48&&l<=57)u+=this.char;else break}var s=void 0;try{s=new RegExp(i,u)}catch(c){this.throwError(c.message)}return r.node={type:t.LITERAL,value:s,raw:this.expr.slice(a-1,this.index)},r.node=this.gobbleTokenProperty(r.node),r.node}this.code===t.OBRACK_CODE?o=!0:o&&this.code===t.CBRACK_CODE&&(o=!1),this.index+=this.code===I2e?2:1}this.throwError("Unclosed Regex")}})}},ZA=43,N2e=45,Y0={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|="]),updateOperators:[ZA,N2e],assignmentPrecedence:.9,init:function(t){var n=[t.IDENTIFIER,t.MEMBER_EXP];Y0.assignmentOperators.forEach(function(a){return t.addBinaryOp(a,Y0.assignmentPrecedence,!0)}),t.hooks.add("gobble-token",function(o){var i=this,u=this.code;Y0.updateOperators.some(function(l){return l===u&&l===i.expr.charCodeAt(i.index+1)})&&(this.index+=2,o.node={type:"UpdateExpression",operator:u===ZA?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},(!o.node.argument||!n.includes(o.node.argument.type))&&this.throwError("Unexpected ".concat(o.node.operator)))}),t.hooks.add("after-token",function(o){var i=this;if(o.node){var u=this.code;Y0.updateOperators.some(function(l){return l===u&&l===i.expr.charCodeAt(i.index+1)})&&(n.includes(o.node.type)||this.throwError("Unexpected ".concat(o.node.operator)),this.index+=2,o.node={type:"UpdateExpression",operator:u===ZA?"++":"--",argument:o.node,prefix:!1})}}),t.hooks.add("after-expression",function(o){o.node&&r(o.node)});function r(a){Y0.assignmentOperators.has(a.operator)?(a.type="AssignmentExpression",r(a.left),r(a.right)):a.operator||Object.values(a).forEach(function(o){o&&bl(o)==="object"&&r(o)})}}},$o=Object.prototype.hasOwnProperty;function Yf(e,t){return e=e.slice(),e.push(t),e}function QA(e,t){return t=t.slice(),t.unshift(e),t}var F2e=function(e){function t(n){var r;return G0(this,t),r=d2e(this,t,['JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)']),r.avoidNew=!0,r.value=n,r.name="NewError",r}return y2e(t,e),K0(t)}(XA(Error));function ei(e,t,n,r,a){if(!(this instanceof ei))try{return new ei(e,t,n,r,a)}catch(l){if(!l.avoidNew)throw l;return l.value}typeof e=="string"&&(a=r,r=n,n=t,t=e,e=null);var o=e&&bl(e)==="object";if(e=e||{},this.json=e.json||n,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=$o.call(e,"wrap")?e.wrap:!0,this.sandbox=e.sandbox||{},this.eval=e.eval===void 0?"safe":e.eval,this.ignoreEvalErrors=typeof e.ignoreEvalErrors>"u"?!1:e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||r||null,this.otherTypeCallback=e.otherTypeCallback||a||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},e.autostart!==!1){var i={path:o?e.path:t};o?"json"in e&&(i.json=e.json):i.json=n;var u=this.evaluate(i);if(!u||bl(u)!=="object")throw new F2e(u);return u}}ei.prototype.evaluate=function(e,t,n,r){var a=this,o=this.parent,i=this.parentProperty,u=this.flatten,l=this.wrap;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=r||this.otherTypeCallback,t=t||this.json,e=e||this.path,e&&bl(e)==="object"&&!Array.isArray(e)){if(!e.path&&e.path!=="")throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!$o.call(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');var s=e;t=s.json,u=$o.call(e,"flatten")?e.flatten:u,this.currResultType=$o.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=$o.call(e,"sandbox")?e.sandbox:this.currSandbox,l=$o.call(e,"wrap")?e.wrap:l,this.currEval=$o.call(e,"eval")?e.eval:this.currEval,n=$o.call(e,"callback")?e.callback:n,this.currOtherTypeCallback=$o.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,o=$o.call(e,"parent")?e.parent:o,i=$o.call(e,"parentProperty")?e.parentProperty:i,e=e.path}if(o=o||null,i=i||null,Array.isArray(e)&&(e=ei.toPathString(e)),!(!e&&e!==""||!t)){var c=ei.toPathArray(e);c[0]==="$"&&c.length>1&&c.shift(),this._hasParentSelector=null;var f=this._trace(c,t,["$"],o,i,n).filter(function(p){return p&&!p.isParentSelector});return f.length?!l&&f.length===1&&!f[0].hasArrExpr?this._getPreferredOutput(f[0]):f.reduce(function(p,d){var m=a._getPreferredOutput(d);return u&&Array.isArray(m)?p=p.concat(m):p.push(m),p},[]):l?[]:void 0}},ei.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":{var n=Array.isArray(e.path)?e.path:ei.toPathArray(e.path);return e.pointer=ei.toPointer(n),e.path=typeof e.path=="string"?e.path:ei.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return ei.toPathString(e[t]);case"pointer":return ei.toPointer(e.path);default:throw new TypeError("Unknown result type")}},ei.prototype._handleCallback=function(e,t,n){if(t){var r=this._getPreferredOutput(e);e.path=typeof e.path=="string"?e.path:ei.toPathString(e.path),t(r,n,e)}},ei.prototype._trace=function(e,t,n,r,a,o,i,u){var l=this,s;if(!e.length)return s={path:n,value:t,parent:r,parentProperty:a,hasArrExpr:i},this._handleCallback(s,o,"value"),s;var c=e[0],f=e.slice(1),p=[];function d(P){Array.isArray(P)?P.forEach(function(O){p.push(O)}):p.push(P)}if((typeof c!="string"||u)&&t&&$o.call(t,c))d(this._trace(f,t[c],Yf(n,c),t,c,o,i));else if(c==="*")this._walk(t,function(P){d(l._trace(f,t[P],Yf(n,P),t,P,o,!0,!0))});else if(c==="..")d(this._trace(f,t,n,r,a,o,i)),this._walk(t,function(P){bl(t[P])==="object"&&d(l._trace(e.slice(),t[P],Yf(n,P),t,P,o,!0))});else{if(c==="^")return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:f,isParentSelector:!0};if(c==="~")return s={path:Yf(n,c),value:a,parent:r,parentProperty:null},this._handleCallback(s,o,"property"),s;if(c==="$")d(this._trace(f,t,n,null,null,o,i));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(c))d(this._slice(c,f,t,n,r,a,o));else if(c.indexOf("?(")===0){if(this.currEval===!1)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");var m=c.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1"),v=/@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])?((?:[\0->@-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))(?!(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])\)\])['\]]/g.exec(m);v?this._walk(t,function(P){var O=[v[2]],I=v[1]?t[P][v[1]]:t[P],N=l._trace(O,I,n,r,a,o,!0);N.length>0&&d(l._trace(f,t[P],Yf(n,P),t,P,o,!0))}):this._walk(t,function(P){l._eval(m,t[P],P,n,r,a)&&d(l._trace(f,t[P],Yf(n,P),t,P,o,!0))})}else if(c[0]==="("){if(this.currEval===!1)throw new Error("Eval [(expr)] prevented in JSONPath expression.");d(this._trace(QA(this._eval(c,t,n[n.length-1],n.slice(0,-1),r,a),f),t,n,r,a,o,i))}else if(c[0]==="@"){var h=!1,g=c.slice(1,-2);switch(g){case"scalar":(!t||!["object","function"].includes(bl(t)))&&(h=!0);break;case"boolean":case"string":case"undefined":case"function":bl(t)===g&&(h=!0);break;case"integer":Number.isFinite(t)&&!(t%1)&&(h=!0);break;case"number":Number.isFinite(t)&&(h=!0);break;case"nonFinite":typeof t=="number"&&!Number.isFinite(t)&&(h=!0);break;case"object":t&&bl(t)===g&&(h=!0);break;case"array":Array.isArray(t)&&(h=!0);break;case"other":h=this.currOtherTypeCallback(t,n,r,a);break;case"null":t===null&&(h=!0);break;default:throw new TypeError("Unknown value type "+g)}if(h)return s={path:n,value:t,parent:r,parentProperty:a},this._handleCallback(s,o,"value"),s}else if(c[0]==="`"&&t&&$o.call(t,c.slice(1))){var y=c.slice(1);d(this._trace(f,t[y],Yf(n,y),t,y,o,i,!0))}else if(c.includes(",")){var x=c.split(","),_=C2e(x),w;try{for(_.s();!(w=_.n()).done;){var E=w.value;d(this._trace(QA(E,f),t,n,r,a,o,!0))}}catch(P){_.e(P)}finally{_.f()}}else!u&&t&&$o.call(t,c)&&d(this._trace(f,t[c],Yf(n,c),t,c,o,i,!0))}if(this._hasParentSelector)for(var S=0;S<p.length;S++){var C=p[S];if(C&&C.isParentSelector){var T=this._trace(C.expr,t,C.path,r,a,o,i);if(Array.isArray(T)){p[S]=T[0];for(var A=T.length,D=1;D<A;D++)S++,p.splice(S,0,T[D])}else p[S]=T}}return p},ei.prototype._walk=function(e,t){if(Array.isArray(e))for(var n=e.length,r=0;r<n;r++)t(r);else e&&bl(e)==="object"&&Object.keys(e).forEach(function(a){t(a)})},ei.prototype._slice=function(e,t,n,r,a,o,i){if(Array.isArray(n)){var u=n.length,l=e.split(":"),s=l[2]&&Number.parseInt(l[2])||1,c=l[0]&&Number.parseInt(l[0])||0,f=l[1]&&Number.parseInt(l[1])||u;c=c<0?Math.max(0,c+u):Math.min(u,c),f=f<0?Math.max(0,f+u):Math.min(u,f);for(var p=[],d=c;d<f;d+=s){var m=this._trace(QA(d,t),n,r,a,o,i,!0);m.forEach(function(v){p.push(v)})}return p}},ei.prototype._eval=function(e,t,n,r,a,o){var i=this;this.currSandbox._$_parentProperty=o,this.currSandbox._$_parent=a,this.currSandbox._$_property=n,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;var u=e.includes("@path");u&&(this.currSandbox._$_path=ei.toPathString(r.concat([n])));var l=this.currEval+"Script:"+e;if(!ei.cache[l]){var s=e.replace(/@parentProperty/g,"_$_parentProperty").replace(/@parent/g,"_$_parent").replace(/@property/g,"_$_property").replace(/@root/g,"_$_root").replace(/@([\t-\r \)\.\[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])/g,"_$_v$1");if(u&&(s=s.replace(/@path/g,"_$_path")),this.currEval==="safe"||this.currEval===!0||this.currEval===void 0)ei.cache[l]=new this.safeVm.Script(s);else if(this.currEval==="native")ei.cache[l]=new this.vm.Script(s);else if(typeof this.currEval=="function"&&this.currEval.prototype&&$o.call(this.currEval.prototype,"runInNewContext")){var c=this.currEval;ei.cache[l]=new c(s)}else if(typeof this.currEval=="function")ei.cache[l]={runInNewContext:function(p){return i.currEval(s,p)}};else throw new TypeError('Unknown "eval" property "'.concat(this.currEval,'"'))}try{return ei.cache[l].runInNewContext(this.currSandbox)}catch(f){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+f.message+": "+e)}},ei.cache={},ei.toPathString=function(e){for(var t=e,n=t.length,r="$",a=1;a<n;a++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(t[a])||(r+=/^[\*0-9]+$/.test(t[a])?"["+t[a]+"]":"['"+t[a]+"']");return r},ei.toPointer=function(e){for(var t=e,n=t.length,r="",a=1;a<n;a++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(t[a])||(r+="/"+t[a].toString().replace(/~/g,"~0").replace(/\//g,"~1"));return r},ei.toPathArray=function(e){var t=ei.cache;if(t[e])return t[e].concat();var n=[],r=e.replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/g,";$&;").replace(/['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))['\]](?!(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])\])/g,function(o,i){return"[#"+(n.push(i)-1)+"]"}).replace(/\[["']((?:[\0-&\(-\\\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)["']\]/g,function(o,i){return"['"+i.replace(/\./g,"%@%").replace(/~/g,"%%@@%%")+"']"}).replace(/~/g,";~;").replace(/["']?\.["']?(?!(?:[\0-Z\\-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*\])|\[["']?/g,";").replace(/%@%/g,".").replace(/%%@@%%/g,"~").replace(/(?:;)?(\^+)(?:;)?/g,function(o,i){return";"+i.split("").join(";")+";"}).replace(/;;;|;;/g,";..;").replace(/;$|'?\]|'$/g,""),a=r.split(";").map(function(o){var i=o.match(/#([0-9]+)/);return!i||!i[1]?o:n[i[1]]});return t[e]=a,t[e].concat()};var M2e=function(t,n,r){for(var a=t.length,o=0;o<a;o++){var i=t[o];r(i)&&n.push(t.splice(o--,1)[0])}};X0.plugins.register(B2e,Y0);var Si={evalAst:function(t,n){switch(t.type){case"BinaryExpression":case"LogicalExpression":return Si.evalBinaryExpression(t,n);case"Compound":return Si.evalCompound(t,n);case"ConditionalExpression":return Si.evalConditionalExpression(t,n);case"Identifier":return Si.evalIdentifier(t,n);case"Literal":return Si.evalLiteral(t,n);case"MemberExpression":return Si.evalMemberExpression(t,n);case"UnaryExpression":return Si.evalUnaryExpression(t,n);case"ArrayExpression":return Si.evalArrayExpression(t,n);case"CallExpression":return Si.evalCallExpression(t,n);case"AssignmentExpression":return Si.evalAssignmentExpression(t,n);default:throw SyntaxError("Unexpected expression",t)}},evalBinaryExpression:function(t,n){var r={"||":function(o,i){return o||i()},"&&":function(o,i){return o&&i()},"|":function(o,i){return o|i()},"^":function(o,i){return o^i()},"&":function(o,i){return o&i()},"==":function(o,i){return o==i()},"!=":function(o,i){return o!=i()},"===":function(o,i){return o===i()},"!==":function(o,i){return o!==i()},"<":function(o,i){return o<i()},">":function(o,i){return o>i()},"<=":function(o,i){return o<=i()},">=":function(o,i){return o>=i()},"<<":function(o,i){return o<<i()},">>":function(o,i){return o>>i()},">>>":function(o,i){return o>>>i()},"+":function(o,i){return o+i()},"-":function(o,i){return o-i()},"*":function(o,i){return o*i()},"/":function(o,i){return o/i()},"%":function(o,i){return o%i()}}[t.operator](Si.evalAst(t.left,n),function(){return Si.evalAst(t.right,n)});return r},evalCompound:function(t,n){for(var r,a=0;a<t.body.length;a++){t.body[a].type==="Identifier"&&["var","let","const"].includes(t.body[a].name)&&t.body[a+1]&&t.body[a+1].type==="AssignmentExpression"&&(a+=1);var o=t.body[a];r=Si.evalAst(o,n)}return r},evalConditionalExpression:function(t,n){return Si.evalAst(t.test,n)?Si.evalAst(t.consequent,n):Si.evalAst(t.alternate,n)},evalIdentifier:function(t,n){if(t.name in n)return n[t.name];throw ReferenceError("".concat(t.name," is not defined"))},evalLiteral:function(t){return t.value},evalMemberExpression:function(t,n){var r=t.computed?Si.evalAst(t.property):t.property.name,a=Si.evalAst(t.object,n),o=a[r];return typeof o=="function"?o.bind(a):o},evalUnaryExpression:function(t,n){var r={"-":function(o){return-Si.evalAst(o,n)},"!":function(o){return!Si.evalAst(o,n)},"~":function(o){return~Si.evalAst(o,n)},"+":function(o){return+Si.evalAst(o,n)}}[t.operator](t.argument);return r},evalArrayExpression:function(t,n){return t.elements.map(function(r){return Si.evalAst(r,n)})},evalCallExpression:function(t,n){var r=t.arguments.map(function(o){return Si.evalAst(o,n)}),a=Si.evalAst(t.callee,n);return a.apply(void 0,YA(r))},evalAssignmentExpression:function(t,n){if(t.left.type!=="Identifier")throw SyntaxError("Invalid left-hand side in assignment");var r=t.left.name,a=Si.evalAst(t.right,n);return n[r]=a,n[r]}},L2e=function(){function e(t){G0(this,e),this.code=t,this.ast=X0(this.code)}return K0(e,[{key:"runInNewContext",value:function(n){var r=m2e({},n);return Si.evalAst(this.ast,r)}}])}(),R2e=function(){function e(t){G0(this,e),this.code=t}return K0(e,[{key:"runInNewContext",value:function(n){var r=this.code,a=Object.keys(n),o=[];M2e(a,o,function(c){return typeof n[c]=="function"});var i=a.map(function(c){return n[c]}),u=o.reduce(function(c,f){var p=n[f].toString();return/function/.test(p)||(p="function "+p),"var "+f+"="+p+";"+c},"");r=u+r,!/(["'])use strict\1/.test(r)&&!a.includes("arguments")&&(r="var arguments = undefined;"+r),r=r.replace(/;[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/,"");var l=r.lastIndexOf(";"),s=l>-1?r.slice(0,l+1)+" return "+r.slice(l+1):" return "+r;return gj(Function,a.concat([s])).apply(void 0,YA(i))}}])}();ei.prototype.vm={Script:R2e},ei.prototype.safeVm={Script:L2e};const t1=(e,t)=>{if(!t||!e)return null;var n=ei({json:t,path:e});return n},Ej=e=>{var t=[];if(!e)return t;var n=t1("$..widgetList[*]",e);return e.type==lt.tabs?(t=e.tabs,t=[...n,...t]):e.type==lt.grid&&(t=t1("$..cols[*]",e),t=[...n,...t]),t=[...n],t==null?void 0:t.filter(r=>!!(r!=null&&r.type))},Jf=(e,t,n,r)=>{e==null||e.forEach(a=>{a&&(t==null||t.push(a),!(r!=null&&r(a))&&Sj(a,t,n,r))})},Sj=(e,t,n,r)=>{var a,o,i,u,l,s,c;if(e.type===lt.tabs)(a=e.tabs)==null||a.forEach(f=>{t==null||t.push(f),Jf(f.widgetList,t,n,r)});else if(e.type===lt.table)(o=e.rows)==null||o.forEach(f=>{var p;t==null||t.push(f),(p=f==null?void 0:f.cols)==null||p.forEach(d=>{t==null||t.push(d),Jf(d.widgetList,t,n,r)})});else if(e.type===lt.grid)(i=e.cols)==null||i.forEach(f=>{t==null||t.push(f),Jf(f.widgetList,t,n,r)});else if(e.type===lt.cont){const f=p=>{var d;Jf(p.widgetList,t,n,r),(d=p==null?void 0:p.children)==null||d.map(m=>{f(m)})};(u=e.cols)==null||u.forEach(p=>{f(p)})}else if(((l=e.widgetList)==null?void 0:l.length)>0&&Jf(e.widgetList,t,n,r),!n){const f=(c=(s=Rr(e.options))==null?void 0:s.filter(p=>{var d;return((d=e.options[p])==null?void 0:d.type)===be.slot}))==null?void 0:c.map(p=>e.options[p]);f==null||f.forEach(p=>{Jf(p==null?void 0:p.widgetList,t,n,r)})}},J0=(e,t,n)=>{let r=[];return Ob(e,o=>{r.push(o)},t,n),r},Ob=(e,t,n,r)=>{if(!e)return;const a=[];Jf(e,a,r),a==null||a.forEach(o=>{n?n(o)&&t(o):t(o)})},j2e=(e,t)=>{if(!e)return;const n=J0(e,r=>!!(r!=null&&r.formItemFlag),!0);return n==null||n.forEach(r=>t==null?void 0:t(r)),n},V2e=(e,t)=>{if(!t||(e==null?void 0:e.length)<=0)return;const n=J0(e,a=>(a==null?void 0:a.id)===t);return n==null?void 0:n[0]},Cj=(e,t)=>J0(e,n=>(n==null?void 0:n.type)===t),z2e=(e,t)=>{var a;if(!e)return[];let n=[],r=o=>{o&&(n.find(i=>(i==null?void 0:i.name)===gt.getName(o))||n.push({type:o.type,name:gt.getName(o),field:o}))};return t?(a=t1("$..*[?(@property === 'formItemFlag' && @ === true)]^",e))==null||a.forEach(o=>{r(o)}):j2e(e,r),n},Hc=(e,t,n,r=!1,a)=>{var s,c,f,p,d,m,v,h,g;if(!e)return;let o={id:e.id,type:e.type,label:gt.getOptions(e,"label")||gt.getOptions(e,"name")||e.type,widget:r?e:null,parent:t,children:[],matched:!a||(a==null?void 0:a(e))};if(n==null||n.push(o),e.category===void 0)return;if(o.children=[],e.type===lt.grid)(s=e==null?void 0:e.cols)==null||s.map(y=>{var _,w;let x={id:y.id,type:y.type,label:gt.getOptions(y,"name")||y.id||y.type,children:[],parent:o,widget:r?y:null};(_=o.children)==null||_.push(x),(w=y.widgetList)==null||w.map(E=>{Hc(E,x,x.children,r,a)})});else if(e.type===lt.cont){const y=x=>{var _,w;(_=x.widgetList)==null||_.map(E=>{Hc(E,o,o.children,r,a)}),(w=x==null?void 0:x.children)==null||w.map(E=>y(E))};(c=e==null?void 0:e.cols)==null||c.map(x=>{y(x)})}else if(e.type===lt.table)(f=e==null?void 0:e.rows)==null||f.map(y=>{var _,w;let x={id:y.id,type:lt.tableRow,label:lt.tableRow,selectable:!1,children:[],parent:o,widget:r?y:null};(_=y==null?void 0:y.cols)==null||_.map(E=>{var T;if(E.merged)return;let S=x.children,C={id:E.id,type:lt.tableCol,label:lt.tableCol,children:[],parent:x,widget:r?E:null};(T=E.widgetList)==null||T.map(A=>{Hc(A,C,C.children,r,a)}),S==null||S.push(C)}),(w=o.children)==null||w.push(x)});else if(e.type===lt.tabs)(p=e==null?void 0:e.tabs)==null||p.map(y=>{var _,w;let x={id:y.id,type:y.type,label:gt.getOptions(y,"label")||y.type,children:[],parent:o,widget:r?y:null};(_=o.children)==null||_.push(x),(w=y==null?void 0:y.widgetList)==null||w.map(E=>{Hc(E,x,x.children,r,a)})});else if(e.type===lt.eltable){var i=t1("$..widgetList[*]",(d=e.options)==null?void 0:d.optionItems.value);(i==null?void 0:i.length)>0&&(i==null||i.map(y=>{Hc(y,o,o.children,r,a)}))}else e.category===Tf.container&&((m=e==null?void 0:e.widgetList)==null?void 0:m.length)>0&&((v=e==null?void 0:e.widgetList)==null||v.map(y=>{Hc(y,o,o.children,r,a)}));const u=gt.getOptions(e,qt.widgetList);u&&(u==null||u.map(y=>{Hc(y,o,o.children,r,a)}));const l=(g=(h=Rr(e.options))==null?void 0:h.filter(y=>{var x;return((x=e.options[y])==null?void 0:x.type)===be.slot}))==null?void 0:g.map(y=>e.options[y]);l==null||l.forEach(y=>{var x,_,w;if(((x=y==null?void 0:y.widgetList)==null?void 0:x.length)>0){let E={id:y.slotName+fu(),type:y.type,label:y.slotName||y.type,children:[],parent:o,widget:r?y:null,selectable:!1};(_=o.children)==null||_.push(E),(w=y==null?void 0:y.widgetList)==null||w.map(S=>{Hc(S,E,E.children,r,a)})}})},Aj=(e,t=!1,n)=>{const r=[];let a={label:lt.page,id:lt.page,type:lt.page};return e==null||e.forEach(o=>{Hc(o,a,r,t,n)}),mr(a,{children:r}),[a]},Tj=(e,t,n)=>{!e||e.length<=0||e.forEach(r=>{r.id===t?n==null||n(r):Tj(r==null?void 0:r.children,t,n)})},Dj=(e,t)=>{let n=null;return Tj(e,t,r=>{n=r}),n},qA=(e,t)=>{const n=Dj(e,t);let r=[];const a=o=>{o&&(r.push(o),o!=null&&o.parent&&a(o==null?void 0:o.parent))};return a(n),r},Z0=(e,t,n)=>{const r=or(e);return _l(r,t,n),Ob([r],a=>{_l(a,t,n)}),r},Q0=(e,t,n,r=!1,a)=>{if(!t||(t==null?void 0:t.length)<=0||!n||!e)return;let o=null;for(var i=0;i<(t==null?void 0:t.length);i++){const u=t==null?void 0:t[i];if(u.id&&(o=gt.getOptions(u.widget,n,r,!(a!=null&&a.designState)),o))break}return o},U2e=(e,t,n,r)=>{var u;const a=t1("$..widgetList[?(@.id==='"+e+"')]^",or(n)),o=(u=a==null?void 0:a[0])==null?void 0:u.find(l=>{var s;return((s=l==null?void 0:l._source)==null?void 0:s.name)===t}),i=o==null?void 0:o.id;return r==null?void 0:r(i)};function kj(){const e=O=>gt.getOptions(O,"rowspan")||1,t=O=>gt.getOptions(O,"colspan")||1,n=(O,I)=>{gt.setOptions(O,"rowspan",I)},r=(O,I)=>{gt.setOptions(O,"colspan",I)},a=(O,I,N)=>{let F=or(O.rows[I]);return C(F),O.rows.splice(N,0,F),!0},o=(O,I)=>(O.rows.forEach(N=>{let F=T();N.cols.splice(I,0,F)}),!0),i=O=>{let I=O.rows.length;return a(O,I-1,I),!0},u=O=>{let I=O.rows[0].cols.length;return o(O,I),!0},l=(O,I,N,F,j)=>{let L=j?I:I+1;if(!j){let X=L,R=!1;for(;X<O.rows.length;)if(O.rows[X].cols[F].merged)X++;else{L=X,R=!0;break}R&&(L=O.rows.length)}a(O,N,L);let V=0;for(;L<O.rows.length-1&&V<O.rows[0].cols.length;){const X=O.rows[L+1].cols[V];if(X.merged){let M=O.rows,K={},G=0;for(let W=L;W>=0;W--)if(!M[W].cols[V].merged&&e(M[W].cols[V])>1){G=W,K=M[W].cols[V];break}if(K.options){let W=e(K)+1;f(O.rows,G,V,t(K),W),V+=t(K)}else V+=1}else V+=t(X)}return!0},s=(O,I,N,F)=>{let j=F?I:I+1;if(!F){let V=j,X=!1;for(;V<O.rows[N].cols.length;){if(O.rows[N].cols[V].merged)V++;else{j=V,X=!0;break}X||(j=O.rows[N].cols.length)}}o(O,j);let L=0;for(;j<O.rows[0].cols.length-1&&L<O.rows.length;){const V=O.rows[L].cols[j+1];if(V.merged){let R=O.rows[L].cols,M={},K=null;for(let G=j;G>=0;G--)if(!R[G].merged&&t(R[G])>1){K=G,M=R[G];break}if(M.options){let G=t(M)+1;c(O.rows,L,K,G,e(M)),L+=e(M)}else L+=1}else L+=e(V)}return!0},c=(O,I,N,F,j)=>{for(let L=I;L<I+j;L++)for(let V=N;V<N+F;V++){if(L===I&&V===N){r(O[L].cols[V],F);continue}O[L].cols[V].merged=!0,r(O[L].cols[V],F),O[L].cols[V].widgetList=[]}},f=(O,I,N,F,j)=>{for(let L=I;L<I+j;L++)for(let V=N;V<N+F;V++){if(L===I&&V===N){n(O[L].cols[V],j);continue}O[L].cols[V].merged=!0,n(O[L].cols[V],j),O[L].cols[V].widgetList=[]}},p=(O,I,N,F,j)=>{for(let L=I;L<I+j;L++)for(let V=N;V<N+F;V++)O[L].cols[V].merged=!1,n(O[L].cols[V],1),r(O[L].cols[V],1)},d=(O,I,N,F,j)=>{for(let L=I;L<I+j;L++)for(let V=N;V<N+F;V++)O[L].cols[V].merged=!1,n(O[L].cols[V],1),r(O[L].cols[V],1)},m=(O,I,N,F)=>{let j=gt.getOptions(O[N].cols[0],"rowspan"),L=!1;for(let X=1;X<O[N].cols.length;X++)if(e(O[N].cols[X])!==j){L=!0;break}if(L)return oi.info(ie.i18nt("designer.hint.rowspanNotConsistentForMergeEntireRow")),!1;let V=I.filter(X=>!X.merged&&!!X.widgetList&&X.widgetList.length>0);return V&&V.length>0&&V[0].id!==I[0].id&&(!I[0].widgetList||I[0].widgetList.length<=0)&&(I[0].widgetList=or(V[0].widgetList)),c(O,N,0,I.length,e(I[F])),!0},v=(O,I,N,F,j)=>{let L=F?I:I+e(j),V=F?I-1:I;if(F){let R=V;for(;R>=0;)if(O[R].cols[N].merged)R--;else{V=R;break}}O[L].cols[N].widgetList&&O[L].cols[N].widgetList.length>0&&(!O[V].cols[N].widgetList||O[V].cols[N].widgetList.length===0)&&(O[V].cols[N].widgetList=or(O[L].cols[N].widgetList));let X=e(O[L].cols[N])*1+e(O[V].cols[N])*1;return f(O,V,N,t(j),X),!0},h=(O,I,N,F)=>{let j=gt.getOptions(O[0].cols[F],"colspan"),L=!1;for(let R=1;R<O.length;R++)if(t(O[R].cols[F])!==j){L=!0;break}if(L)return oi.info(ie.i18nt("designer.hint.colspanNotConsistentForMergeEntireColumn")),!1;let V=[];O.forEach(R=>{let M=R.cols[F];!M.merged&&M.widgetList&&M.widgetList.length>0&&V.push(M)});let X=O[0].cols[F];return V&&V.length>0&&V[0].id!==X.id&&(!X.widgetList||X.widgetList.length<=0)&&(X.widgetList=or(V[0].widgetList)),f(O,0,F,t(X),O.length),!0},g=(O,I,N,F,j,L)=>{let V=j?F:F+(gt.getOptions(I[F],"colspan")||1),X=j?F-1:F;if(j){let M=X;for(;M>=0;)if(O[N].cols[M].merged)M--;else{X=M;break}}I[V].widgetList&&I[V].widgetList.length>0&&(!I[X].widgetList||I[X].widgetList.length===0)&&(I[X].widgetList=or(I[V].widgetList));let R=t(I[V])*1+t(I[X])*1;return c(O,N,X,R,e(L)),!0},y=(O,I,N,F,j)=>(p(O,I,N,F,j),!0),x=(O,I,N,F,j)=>(d(O,I,N,F,j),!0),_=(O,I)=>{let N=!0;if(O.forEach(L=>{t(L.cols[0])!==O[0].cols.length&&(N=!1)}),N)return oi.info(ie.i18nt("designer.hint.lastColCannotBeDeleted")),!1;let F=t(O[0].cols[I]),j=!1;for(let L=1;L<O.length;L++)if(t(O[L].cols[I])!==F){j=!0;break}return j?(oi.info(ie.i18nt("designer.hint.colspanNotConsistentForDeleteEntireColumn")),!1):(O.forEach(L=>{L.cols.splice(I,F)}),!0)},w=(O,I)=>{let N=!0;if(O[0].cols.forEach(L=>{e(L)!==O.length&&(N=!1)}),N)return oi.info(ie.i18nt("designer.hint.lastRowCannotBeDeleted")),!1;let F=e(O[I].cols[0]),j=!1;for(let L=1;L<O[I].cols.length;L++)if(e(O[I].cols[L])!==F){j=!0;break}return j?(oi.info(ie.i18nt("designer.hint.rowspanNotConsistentForDeleteEntireRow")),!1):(O.splice(I,F),!0)},E=(O,I)=>{var V;let N=e(O[I].cols[0]),F=!1;for(let X=1;X<O[I].cols.length;X++)if(e(O[I].cols[X])!==N){F=!0;break}if(F)return oi.info(ie.i18nt("designer.hint.rowspanNotConsistentForDeleteEntireRow")),!1;let j=or(O[I]);var L=(V=j==null?void 0:j.cols)==null?void 0:V.map(X=>Z0(X,{recordSource:!1}));return j.cols=L,O.splice(I+1,0,j),!0},S=(O,I)=>{let N=t(O[0].cols[I]),F=!1;for(let j=1;j<O.length;j++)if(t(O[j].cols[I])!==N){F=!0;break}return F?(oi.info(ie.i18nt("designer.hint.colspanNotConsistentForDeleteEntireColumn")),!1):(O.forEach(j=>{let L=or(j.cols[I]);L=Z0(L,{recordSource:!1}),j.cols.splice(I+1,0,L)}),!0)},C=O=>{let I=O||{cols:[]};return I=_l({...I,type:lt.tableRow,id:""}),I.merged=!1,O?I.cols.forEach(N=>{T(N)}):I.cols.push(T()),I},T=O=>{let I=O||or(Xf(lt.tableCol));return _l(I),I.merged=!1,r(I,1),n(I,1),I.widgetList.length=0,I},A=O=>{let I=O||or(Xf(lt.table));return _l(I),I};return{appendTableRow:i,appendTableCol:u,insertTableRow:l,insertTableCol:s,mergeTableWholeRow:m,mergeTableRow:v,mergeTableCol:g,mergeTableWholeCol:h,undoMergeTableCol:y,undoMergeTableRow:x,deleteTableWholeCol:_,deleteTableWholeRow:w,copyTableWholeRow:E,copyTableWholeCol:S,initTableRow:C,initTable:A,initCloneTable:O=>{let I=A();return Kt(O).rows.forEach(N=>{let F=Kt(or(N));_l(F),F.cols.forEach(j=>{_l(j),j.widgetList=[]}),Kt(I).rows.push(F)}),I},isTable:O=>(O==null?void 0:O.type)===lt.table}}function Pj(){const e=()=>{let s=Kt(or(Xf(lt.tabs)));return s=_l(s),s},t=(s,c)=>{let f=Kt(or(Xf(lt.tabPane)));var p=_l(f);return s&&gt.setOptions(p,qt.label,s),c!==void 0&&gt.setOptions(p,qt.isdefault,c),p},n=s=>{var f;let c=e();return(f=Kt(s).tabs)==null||f.forEach(p=>{var m;let d=r(p);(m=Kt(c).tabs)==null||m.push(d)}),c},r=s=>{var c=or(s);return _l(c),gt.setOptions(c,qt.isdefault,!1),c.widgetList=[],c};return{initTab:e,initCloneTab:n,initTabPane:t,initCloneTabPane:r,addTabPaneOfTabs:(s,c)=>{let f=s==null?void 0:s.tabs;return f||(f=[]),c=c||t(),c&&f.push(c),!0},deleteTabPaneOfTabs:(s,c)=>{var f;if(((f=s.tabs)==null?void 0:f.length)===1){oi.info(ie.i18nt("designer.hint.lastPaneCannotBeDeleted"));return}return s.tabs.splice(c,1),!0},findTabPaneOfTabs:(s,c)=>{var f;return(f=s.tabs)==null?void 0:f.findIndex(p=>gt.getName(p)===c)},getActiveTab:s=>{var f,p;let c=(f=s==null?void 0:s.tabs)==null?void 0:f[0];return(p=s==null?void 0:s.tabs)==null||p.forEach(d=>{gt.getOptions(d,qt.isdefault)&&(c=d)}),c},isTabs:s=>(s==null?void 0:s.type)===lt.tabs}}function H2e(){const e=()=>{let u=Kt(or(Xf(lt.grid)));return u=_l(u),u},t=()=>{let u=Kt(or(Xf(lt.gridCol)));return u=_l(u),u},n=u=>{let l=or(u);return Z0(l)};return{initGrid:e,initCloneGrid:u=>{var s;let l=e();return(s=Kt(u).cols)==null||s.forEach(c=>{let f=n(c);Kt(l).cols.push(f)}),l},initGridCol:t,initCloneGridCol:n,deleteColOfGrid:(u,l)=>(u&&u.cols&&u.cols.splice(l,1),!0),addNewColOfGrid:u=>{const l=u.cols;let s=t();if(l&&l.length>0){let c=0;l.forEach(f=>{c+=gt.getOptions(f,"span")||0}),c>=24||gt.setOptions(s,"span",24-c>12?12:24-c),u.cols.push(s)}else u.cols=[s];return!0},isGrid:u=>(u==null?void 0:u.type)===lt.grid}}function W2e(){return{initCloneContCell:a=>{let o=or(a);return Z0(o)},initContCell:(a=kc.main,o)=>{let i=new GA;return mr(i,o),i.partName=new _e(be.placer,a),i},initCont:()=>{let a=or(Xf(lt.cont));return a.id=a.type+fu(),gt.setName(a,a.id),a},isCont:a=>(a==null?void 0:a.type)===lt.cont}}class G2e{constructor(){U(this,"size",Is.default);U(this,"layoutType",WN.PC);U(this,"jsonVersion",c_.pageJsonVersion);U(this,"customClass",new _e(be.placer,[]));U(this,"componentWrapperClass",new _e(be.placer,[]));U(this,"pageCreated",new _e(be.event,void 0,new ht));U(this,"pageMounted",new _e(be.event,void 0,new ht));U(this,"cssCode",new _e(be.placer,void 0,new ht));U(this,"functions",new _e(be.placer,void 0,new ht));U(this,"willFetch",new _e(be.hook,void 0,new ht));U(this,"fitFetch",new _e(be.hook,void 0,new ht));U(this,"errorFetch",new _e(be.hook,void 0,new ht));U(this,"didFetch",new _e(be.hook,void 0,new ht));U(this,"schema",new _e(be.dataObject,[{protocal:oh.URI,name:pi.urlParams,description:ie.i18nt("designer.hint.varibaleURL"),isReadonly:!0},{protocal:oh.CONFIG,name:pi.compParams,description:ie.i18nt("designer.hint.varibaleConfig"),isReadonly:!0}]))}}class Pyt extends Qg{constructor(){super(...arguments);U(this,"protocal",oh.VALUE);U(this,"name","");U(this,"description","");U(this,"isReadonly",!1)}}const K2e=e=>{if(!e)return null;switch(e){case lt.anchor:return QR.getKeys();case lt.breadcrumb:return tj.getKeys();case lt.radio:return HR.getKeys();case lt.select:return Us.getKeys();case lt.checkbox:return WR.getKeys();case lt.image:return Us.getKeys();case lt.steps:return rj.getKeys();case lt.carousel:return qR.getKeys();case lt.collapse:return $R.getKeys();case lt.descriptions:return ej.getKeys();case lt.dropdown:return ZR.getKeys();case lt.cascader:return VA.getKeys();case lt.tree:case lt.treeSelect:return VR.getKeys();case lt.menu:return nj.getKeys();case lt.tabs:return HA.getKeys();case lt.grid:return aj.getKeys();case lt.cont:return GA.getKeys();case lt.eltable:return ij.getKeys();case lt.model:return oj.getKeys();default:return null}},X2e=e=>{if(!e)return null;var t=null;switch(e){case lt.anchor:t=new QR,t.title="title";break;case lt.breadcrumb:t=new tj;break;case lt.radio:t=new HR;break;case lt.select:t=new Us;break;case lt.checkbox:t=new WR;break;case lt.image:t=new Us;break;case lt.steps:t=new rj;break;case lt.carousel:t=new qR;break;case lt.collapse:t=new $R;break;case lt.descriptions:t=new ej;break;case lt.dropdown:t=new ZR;break;case lt.tree:case lt.treeSelect:t=new VR;break;case lt.cascader:t=new VA;break;case lt.menu:t=new nj;break;case lt.cont:t=new GA;break;case lt.tabs:t=new HA;break;case lt.eltable:t=new ij;break;case lt.model:t=new oj;break;default:t=null}return t},Y2e=e=>{if(!e)return null;var t=K2e(e);return t?J2e(t,1,e):null},J2e=(e,t,n)=>{var r={};if(!e||(e==null?void 0:e.length)<=0)return r;if(n){var a=X2e(n);if(a)r=a;else return r}else e==null||e.forEach(o=>{r[o]||(r[o]=null)});return e!=null&&e.includes(qt.value)&&(r[qt.value]=String(t)),e!=null&&e.includes(qt.label)&&(r[qt.label]=qt.option+" "+t),e!=null&&e.includes(qt.children)&&(r[qt.children]=[]),e!=null&&e.includes(qt.name)&&(r[qt.name]=qt.option+t),r};function $A(e,t){return{widgetTree:b.computed(()=>b.reactive(Aj(e,t)))}}function e8(e,t){const n=b.computed(()=>{var u;const i=qA(e,t==null?void 0:t.id);return(i==null?void 0:i.length)<=0&&(t!=null&&t._source)?qA(e,(u=t==null?void 0:t._source)==null?void 0:u.id):i}),r=b.computed(()=>{var i;return(i=n.value)==null?void 0:i.map(u=>({id:u==null?void 0:u.id,selectable:u.selectable,label:gt.getWidgetTypeName(Kt(u.type))})).filter(u=>u.id!==(t==null?void 0:t.id))}),{parentForm:a,parentFormId:o}=Oj(n.value);return{widgetTree:e,parentForm:a,parentFormId:o,parentTree:r,pathNodes:n}}const Oj=e=>{const t=b.computed(()=>{var r;return(r=e==null?void 0:e.find(a=>a.type===lt.form))==null?void 0:r.widget}),n=b.computed(()=>{var r;return(r=t==null?void 0:t.value)==null?void 0:r.id});return{parentForm:t,parentFormId:n}};function Z2e(e,t){const{widget:n}=e,{parentFormId:r}=Oj(t),a=b.computed(()=>{var f,p,d;return Kt(Q0((f=e.designer)==null?void 0:f.widgetList,t,qt.size,!1,e)||((d=(p=e==null?void 0:e.designer)==null?void 0:p.pageConfig)==null?void 0:d.size))}),o=b.computed(()=>{var f;return Kt(Q0((f=e.designer)==null?void 0:f.widgetList,t,qt.displayLayout,!1,e))}),i=b.computed(()=>{var f;return Kt(Q0((f=e.designer)==null?void 0:f.widgetList,t,qt.labelAlign,!1,e))}),u=b.computed(()=>{var f;return Kt(Q0((f=e.designer)==null?void 0:f.widgetList,t,qt.labelWidth,!1,e))}),l=b.computed(()=>{var f;return Kt(Q0((f=e.designer)==null?void 0:f.widgetList,t,qt.labelHidden,!1,e))}),s=b.computed(()=>{var f;return Kt(Q0((f=e.designer)==null?void 0:f.widgetList,t,qt.labelSuffix,!1,e))}),c=b.computed(()=>(n==null?void 0:n.formItemFlag)&&!!r.value);return{displayLayout:o,size:a,labelWidth:u,labelAlign:i,labelSuffix:s,labelHidden:l,formItemFlag:c}}function Ib(e){const t=UR(e),{initHistoryData:n,clearHistoryData:r,emitHistoryChange:a,saveCurrentHistoryStep:o,saveFormContentToStorage:i}=t,{initGridCol:u,isGrid:l}=H2e(),{initContCell:s,isCont:c}=W2e(),{initTabPane:f,getActiveTab:p,isTabs:d}=Pj(),{initTableRow:m,isTable:v}=kj(),h=new G2e,g=(we=!0)=>{e.widgetList=[],e.pageConfig=or(h),we||n()},y=we=>{var ee,J;let ke=e.widgetList.length===0;(J=e.widgetList)==null||J.splice(0,(ee=e.widgetList)==null?void 0:ee.length),e.pageConfig=h,L(),r(),we||(ke?o("clearDesigner"):a("clearDesigner"))},x=we=>{e.pageWidget=we},_=we=>V2e(e.widgetList,we),w=(we,ke)=>{we&&a(ke)},E=()=>({widgetList:[],pageConfig:Qv(h)}),S=()=>({widgetList:Qv(e.widgetList),pageConfig:Qv(e.pageConfig)}),C=we=>{let ke=!1;return y(),we&&we.widgetList&&(e.widgetList=we.widgetList,ke=!0),we&&we.pageConfig&&(mr(e.pageConfig,we.pageConfig),ke=!0),ke&&I(c_.pageJsonImported,[]),ke},T=we=>{e&&(e.cssClassList=we)},A=()=>e==null?void 0:e.cssClassList,D=we=>{_e.getValue(e.pageConfig.cssCode)===""&&we&&_e.setValue(e.pageConfig,"cssCode",we)},P=(we=!1,ke)=>Aj(e.widgetList,we,ke),O=()=>{var we=P(!1,te=>!!(te!=null&&te.formItemFlag));const ke=(te,fe)=>{[lt.page,lt.form,be.slot,lt.grid,lt.gridCol,lt.table,lt.tableRow,lt.tableCol,lt.card,lt.wrapper,lt.cont,lt.contCell].includes(fe==null?void 0:fe.type)||fe!=null&&fe.label&&(te==null||te.push((fe==null?void 0:fe.label)||"")),fe!=null&&fe.parent&&ke(te,fe.parent)};let ee=[];const J=te=>{te==null||te.forEach(fe=>{if(fe.matched){const Ae=[];ke(Ae,fe),fe.label=Ae.reverse().join(".");const Pe=Object.assign({},fe);delete Pe.children,delete Pe.parent,ee.push(Pe)}J(fe.children)})};return J(we),ee},I=(we,ke)=>{zR.$emit(we,ke)},N=(we,ke)=>{zR.$on(we,ee=>ke(ee))},F=(we,ke,ee)=>{we&&(ee&&Ua(we.options,"label")?gt.setOptions(we,"label",ee):ee&&Ua(we.options,"content")&&gt.setOptions(we,"content",ee))},j=we=>{if(!we){L();return}e.selectedWidget=we},L=()=>{e.selectedWidget=void 0},V=(we,ke,ee)=>{const J=we==null?void 0:we.newIndex,te=ke==null?void 0:ke[J];te&&j(te),a(`drag add ${te==null?void 0:te.id}`),ee==null||ee(ke)},X=(we,ke)=>{},R=(we,ke,ee)=>{a("drag update"),ee==null||ee(ke)},M=(we,ke,ee)=>{a("drag remove"),ee==null||ee(ke)},K=we=>!0,G=we=>{var J,te;let ke=Kt(or(we));if(!ke)return null;if(ke.id=gt.newId(ke.type),kh(ke,qt.name)&&gt.setOptions(ke,qt.name,ke.id),kh(ke,qt.label)&&gt.setOptions(ke,qt.label,gt.getOptions(ke,"label")||((J=ke.type)==null?void 0:J.toLowerCase())),kh(ke,qt.content)&&gt.setOptions(ke,qt.content,gt.getOptions(ke,"content")||((te=ke.type)==null?void 0:te.toLowerCase())),kh(ke,qt.optionItems)&&(ke==null?void 0:ke.type)!==lt.image){var ee=_e.getValue(gt.getOrgOption(ke,qt.optionItems));ee==null||ee.splice(1,0,Y2e(ke.type)),_e.setValue(ke==null?void 0:ke.options,qt.optionItems,ee)}return ke},W=we=>{var J,te,fe;let ke=G(we);if(!ke)return;let ee=e.widgetList;e.selectedWidget&&(d(e.selectedWidget)?ee=(J=p(Kt(e.selectedWidget)))==null?void 0:J.widgetList:(te=Kt(e.selectedWidget))!=null&&te.widgetList&&(ee=(fe=e.selectedWidget)==null?void 0:fe.widgetList)),ee==null||ee.push(ke),j(ke),a(`addFieldByDbClick ${we==null?void 0:we.id}`)},Z=(we,ke)=>{var ee=Y(we,ke);if(we){if(ee===0){oi.info(ie.i18nt("designer.hint.moveUpFirstChildHint"));return}let J=we[ee];we.splice(ee,1),we.splice(ee-1,0,J)}a(`moveUpWidget ${ke==null?void 0:ke.id}`)},le=(we,ke)=>{var ee=Y(we,ke);if(we){if(ee===we.length-1){oi.info(ie.i18nt("designer.hint.moveDownLastChildHint"));return}let J=we[ee];we.splice(ee,1),we.splice(ee+1,0,J)}a(`moveDownWidget ${ke==null?void 0:ke.id}`)},oe=we=>{var J,te,fe,Ae,Pe,Fe,Me,We,Ue,Je;let ke=null,ee=or(we);if(l(we))ke=Kt(ee),(J=ke.cols)==null||J.push(u()),(te=ke.cols)==null||te.push(u());else if(c(we)){ke=Kt(ee);const ft=s(kc.container);(fe=ft.children)==null||fe.push(s(kc.header));let jt=s(kc.container,{direction:su.horizontal});(Ae=jt.children)==null||Ae.push(s(kc.aside,{cellWidth:new _e(be.placer,"20%")})),(Pe=jt.children)==null||Pe.push(s(kc.main,{cellWidth:new _e(be.placer,"80%")})),(Fe=ft.children)==null||Fe.push(jt),(Me=ft.children)==null||Me.push(s(kc.footer)),(We=ke.cols)==null||We.push(ft)}else v(we)?(ke=Kt(ee),(Ue=ke.rows)==null||Ue.push(m())):d(we)?(ke=Kt(ee),(Je=ke.tabs)==null||Je.push(f(void 0,!0))):ke=Kt(ee);return ke.id=gt.newId(ke.type),gt.setName(ke,ke.id),ke},re=we=>{let ke=oe(we);e.widgetList.push(ke),j(ke),a(`addContainerByDbClick ${we==null?void 0:we.id}`)},ne=(we,ke)=>{var ee=null;if(we){ee=Z0(we,{recordSource:!1});var J=Y(ke,we);return ke==null||ke.splice(J+1,0,ee),j(ee),a(`cloneWidget ${we==null?void 0:we.id}`),ee}},ve=(we,ke,ee)=>{var J=Y(ee,we);if(ee){let te=null;ee.length===1?ke&&(te=ke):ee.length===1+J?te=ee[J-1]:te=ee[J+1],b.nextTick(()=>{ee.splice(J,1),j(te),a(`removeWidget ${we==null?void 0:we.id}`)})}},Y=(we,ke)=>!ke||!we?-1:we==null?void 0:we.indexOf(ke),Q=(we,ke,ee)=>{e&&(j(we),I(Dn.fieldSelected,ke))},ae=we=>{we?j(we):L()},he=we=>{var te;const{widgetTree:ke}=$A(e.widgetList,!0),{pathNodes:ee}=e8(ke.value,we);return(te=ee.value)==null?void 0:te[1].widget},me=we=>{var te,fe,Ae;const{widgetTree:ke}=$A(e.widgetList,!0),{pathNodes:ee}=e8(ke.value,we);return((Ae=(fe=(te=ee.value)==null?void 0:te[1])==null?void 0:fe.widget)==null?void 0:Ae.widgetList)||e.widgetList};return{...t,initDesigner:g,clearDesigner:y,registerPageWidget:x,setSelected:j,clearSelected:L,updateSelectedWidgetLabel:F,copyNewFieldWidget:G,copyNewContainerWidget:oe,addContainerByDbClick:re,addFieldByDbClick:W,selectWidget:Q,removeSelectedWidget:()=>{const we=e.selectedWidget;if(!we)return!1;if(we!=null&&we.internal)return oi.info(ie.i18nt("designer.hint.currentNodeCannotBeSelected")),!1;const ke=he(we),ee=me(we);return ve(we,ke,ee),!0},cloneSelectedWidget:()=>{var we;if((we=e.selectedWidget)!=null&&we.internal){oi.info(ie.i18nt("designer.hint.currentNodeCannotBeSelected"));return}return e.selectedWidget},pasteSelectedWidget:we=>{const ke=e.selectedWidget,ee=me(ke);return ne(we,ee),!0},selectParentWidget:ae,moveUpWidget:Z,moveDownWidget:le,cloneWidget:ne,removeWidget:ve,checkWidgetMove:K,onWidgetDragAdd:V,onWidgetDragEnd:X,onWidgetDragUpdate:R,onWidgetDragRemove:M,setCssClassList:T,getCssClassList:A,getImportTemplate:E,emitEvent:I,handleEvent:N,loadPageJson:C,getPageJson:S,loadPresetCssCode:D,getNodeTree:P,findTreeNode:Dj,findWidgetById:_,findToRootFromNode:qA,buildFormItemList:O,emitHistoryChangeAfter:w,watchPropAndSaveHistory:we=>{we&&b.watch(()=>{var ke;return(ke=e==null?void 0:e.selectedWidget)==null?void 0:ke[we]},ke=>{i()},{deep:!0})}}}class Yu{constructor(){U(this,"formRefList",{});U(this,"globalRefList",{});U(this,"globalDataModel",{});U(this,"globalFormName","");U(this,"rowScope",{});U(this,"globalConfig",{})}static globalInject(){const t=new Yu;return t.formRefList=b.inject(pi.refList,{}),t.globalRefList=b.inject(pi.allRefList,{}),t.globalDataModel=b.inject(pi.globalModel,{}),t.rowScope=b.inject(pi.rowScope,{}),t.globalFormName=b.inject(pi.globalForm,""),t.globalConfig=b.inject(pi.globalConfig,{}),t}static globalProvide(t){if((t==null?void 0:t.globalDataModel)!==void 0){const n=(t==null?void 0:t.globalDataModel)||{};b.provide(pi.globalModel,n)}if((t==null?void 0:t.rowScope)!==void 0){const n=(t==null?void 0:t.rowScope)||{};b.provide(pi.rowScope,n)}if((t==null?void 0:t.globalRefList)!==void 0){const n=(t==null?void 0:t.globalRefList)||{};b.provide(pi.allRefList,n)}if((t==null?void 0:t.formRefList)!==void 0){const n=(t==null?void 0:t.formRefList)||{};b.provide(pi.refList,n)}if((t==null?void 0:t.globalFormName)!==void 0){const n=(t==null?void 0:t.globalFormName)||"";b.provide(pi.globalForm,n)}if((t==null?void 0:t.globalConfig)!==void 0){const n=(t==null?void 0:t.globalConfig)||"";b.provide(pi.globalConfig,n)}}}function Ju(e){const t=(x,_=!1)=>gt.getOptions(e==null?void 0:e.widget,x,_,!(e!=null&&e.designState)),n=b.computed(()=>t(qt.ctrlWidth)||"auto"),r=b.computed(()=>t(qt.ctrlHeight)||"auto"),a=b.computed(()=>t(qt.displayLayout)),o=b.computed(()=>{var x=t(qt.customClass);return Array.isArray(x)?x==null?void 0:x.join(" "):x}),i=b.computed(()=>{var x=t(qt.componentWrapperClass);return Array.isArray(x)?x==null?void 0:x.join(" "):x}),u=b.computed(()=>t(qt.css)),l=b.computed(()=>{var x=t(qt.componentRootClass);return Array.isArray(x)?x==null?void 0:x.join(" "):x}),s=b.computed(()=>{var x,_;return(_=Kt((x=t(qt.required,!0))==null?void 0:x.options))==null?void 0:_.enable}),c=b.computed(()=>t(qt.hidden)),f=b.computed(()=>t(qt.labelTooltip)),p=b.computed(()=>t(qt.labelIconClass)),d=b.computed(()=>t(qt.labelIconPosition)),m=b.computed(()=>t(qt.labelHidden)),v=b.computed(()=>t(qt.label)),h=b.computed(()=>t(qt.labelWidth)),g=b.computed(()=>t(qt.labelAlign));return{attrs:b.computed(()=>({required:s.value,label:v.value,labelHidden:m.value,labelAlign:g.value,labelIconClass:p.value,labelIconPosition:d.value,labelTooltip:f.value,labelWidth:h.value,ctrlWidth:n.value})),labelAlign:g,labelHidden:m,labelIconClass:p,labelIconPosition:d,labelTooltip:f,labelWidth:h,label:v,displayLayout:a,hidden:c,ctrlWidth:n,ctrlHeight:r,customClass:o,componentWrapperClass:i,componentRootClass:l,css:u}}const Ij=(e="")=>new Promise(t=>{Promise.resolve().then(()=>BW).then(n=>{const r=n.parse(e,{positions:!0,parseValue:!1}),a=[];n.walk(r,{visit:"Rule",enter(o){const i=n.generate(o.prelude),u={};n.walk(o,{visit:"Declaration",enter(l){l.property&&(u[l.property]=n.generate(l.value))}}),a.push({selector:i,declarations:u})}}),t(a)})}),Bj=e=>new Promise(t=>{Promise.resolve().then(()=>BW).then(n=>{const r=Q2e(e),a=n.parse(r,{context:"stylesheet"});t(n.generate(a))})});function Q2e(e){return e.map(n=>{var a,o,i;const r=(i=(o=(a=Object.entries(n.declarations))==null?void 0:a.filter(([u,l])=>!br(l)&&l!==""))==null?void 0:o.sort(([u],[l])=>u>l?1:-1))==null?void 0:i.map(([u,l])=>`${u}: ${l};`);return`${n.selector} { ${r.join(" ")} }`}).join(`
191
191
  `)}const Nj=["width","height","display","margin","margin-left","margin-right","margin-top","margin-bottom"],q2e=(e,t,n)=>{const r={};return t.forEach(a=>{var o=e[a];Os(o)||(r[a]=n?n(a,o):o)}),r},$2e=(e,t,n)=>{var a;const r={};return(a=Rr(e))==null||a.forEach(o=>{var i=e[o];t!=null&&t.includes(o)||(r[o]=n?n(o,i):i)}),r},Fj=(e,t)=>["width","height","display"].includes(e)?Os(t)||t=="auto"?t:`${t} !important`:t,ebe=e=>new Promise(t=>{Ij(e).then(n=>{var r=n==null?void 0:n.map(a=>({selector:a.selector,declarations:q2e(a.declarations,Nj,Fj)}));Bj(r).then(a=>{t(a)})})}),tbe=e=>new Promise(t=>{Ij(e).then(n=>{var r=n==null?void 0:n.map(a=>({selector:a.selector,declarations:$2e(a.declarations,Nj,Fj)}));Bj(r).then(a=>{t(a)})})}),Mj=(e,t)=>{if(!t||!e)return;const n=Pc(e,":root",`.${t}`);kM(n,void 0,t)},nbe=b.defineComponent({__name:"comp-wrapper",props:{...ma,componentName:{type:String,default:"div"},componentClass:{type:String,default:""},componentAttrs:{type:Object,default:null}},setup(e){const t=e;b.useCssVars(c=>({"6228d629":b.unref(a),"6dba15b8":b.unref(o),"55f480cc":b.unref(i)}));const n=b.computed(()=>{var c;return"node_"+((c=t.widget)==null?void 0:c.id)}),r=b.computed(()=>["comp__1",t.componentClass,u.value,n.value]),{ctrlWidth:a,ctrlHeight:o,displayLayout:i,componentRootClass:u,css:l}=Ju(t),s=(c="")=>{ebe(c).then(f=>{Mj(f,n.value)})};return b.watch(()=>l.value,c=>{s(c)}),b.onMounted(()=>{s(l.value)}),(c,f)=>e.componentName?(b.openBlock(),b.createBlock(b.resolveDynamicComponent(e.componentName),b.mergeProps({key:0,class:b.unref(r)},e.componentAttrs),{default:b.withCtx(()=>[b.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},16,["class"])):b.renderSlot(c.$slots,"default",b.mergeProps({key:1,class:b.unref(r)},e.componentAttrs),void 0,!0)}}),Oyt="",Xa=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Lj=Xa(nbe,[["__scopeId","data-v-0f5501af"]]),rbe={key:0,class:"tipBase tipTopLeft"},ibe={key:1,class:"tipBase tipContent"},abe=b.defineComponent({__name:"drag-wrapper",props:{...ma,widgetList:{type:Array,default:[]},dragClass:{type:String,default:""},propName:{type:String,default:qt.widgetList},title:{type:String,default:""},model:{type:Object,default:null},provideModel:{type:Boolean,default:!1},refList:{type:Object,default:null},widgetTree:{type:Object,default:null},dragTip:{type:String,default:ie.i18nt("designer.hint.draggableArea")},dragTag:{type:String,default:"div"},componentName:{type:String,default:"div"},componentClass:{type:String,default:""},componentAttrs:{type:Object,default:null},componentStyle:{type:Object,default:null},rowScope:{type:Object,default:null}},emits:["update"],setup(e,{emit:t}){const n=e,{components:r}=Fxe(),{checkWidgetMove:a,onWidgetDragAdd:o,onWidgetDragUpdate:i,onWidgetDragEnd:u,onWidgetDragRemove:l}=Ib(n.designer),s=f=>{t("update",f)},c=b.computed({get:()=>n.widget?M3(n.widget,n.propName):n.widgetList,set:f=>{n.widget?cl(n.widget,n.propName,f):t("update",f)}});return(ko(n.model)||n.provideModel)&&Yu.globalProvide({globalDataModel:n==null?void 0:n.model}),n.refList&&Yu.globalProvide({formRefList:n.refList}),ko(n.rowScope)&&ko(n.rowScope)&&Yu.globalProvide({rowScope:n.rowScope}),(f,p)=>{const d=b.resolveComponent("draggable");return f.designState===!0?(b.openBlock(),b.createBlock(d,b.mergeProps({key:0,list:b.unref(c),"item-key":"id",group:"dragGroup",class:[e.dragClass,"containerDraggable full-height"],tag:e.dragTag},{chosenClass:"chosen",ghostClass:"ghost",animation:200},{"component-data":{name:"fade"},handle:".drag-handler",onEnd:p[0]||(p[0]=m=>b.unref(u)(m,b.unref(c))),onRemove:p[1]||(p[1]=m=>b.unref(l)(m,b.unref(c),s)),onAdd:p[2]||(p[2]=m=>b.unref(o)(m,b.unref(c),s)),onUpdate:p[3]||(p[3]=m=>b.unref(i)(m,b.unref(c),s)),move:b.unref(a)}),{header:b.withCtx(()=>[b.renderSlot(f.$slots,"header",{},void 0,!0)]),item:b.withCtx(({element:m,index:v})=>[b.createVNode(Lj,b.mergeProps({widget:m,designer:f.designer,"design-state":f.designState,"parent-list":b.unref(c),"parent-widget":f.widget,"component-class":e.componentClass},e.componentAttrs,{style:e.componentStyle,componentName:e.componentName}),{default:b.withCtx(()=>[(b.openBlock(),b.createBlock(b.resolveDynamicComponent(b.unref(r)(m)),{designer:f.designer,widget:m,key:m.id,"design-state":f.designState,"parent-list":b.unref(c),"parent-widget":f.widget},null,8,["designer","widget","design-state","parent-list","parent-widget"]))]),_:2},1040,["widget","designer","design-state","parent-list","parent-widget","component-class","style","componentName"])]),footer:b.withCtx(()=>[b.renderSlot(f.$slots,"footer",{},void 0,!0),b.renderSlot(f.$slots,"tip",{},()=>{var m,v;return[((m=b.unref(c))==null?void 0:m.length)<=0&&e.title?(b.openBlock(),b.createElementBlock("div",rbe,b.toDisplayString(e.title),1)):b.createCommentVNode("",!0),((v=b.unref(c))==null?void 0:v.length)<=0&&e.dragTip?(b.openBlock(),b.createElementBlock("div",ibe,b.toDisplayString(e.dragTip),1)):b.createCommentVNode("",!0)]},!0)]),_:3},16,["list","class","tag","move"])):(b.openBlock(!0),b.createElementBlock(b.Fragment,{key:1},b.renderList(b.unref(c),(m,v)=>(b.openBlock(),b.createBlock(Lj,b.mergeProps({key:m.id,widget:m,designer:f.designer,"design-state":f.designState,"parent-list":b.unref(c),"parent-widget":f.widget,componentName:e.componentName,"component-class":e.componentClass},e.componentAttrs,{style:e.componentStyle}),{default:b.withCtx(()=>[(b.openBlock(),b.createBlock(b.resolveDynamicComponent(b.unref(r)(m)),{designer:f.designer,widget:m,"design-state":f.designState,"parent-list":b.unref(c),"parent-widget":f.widget},null,8,["designer","widget","design-state","parent-list","parent-widget"]))]),_:2},1040,["widget","designer","design-state","parent-list","parent-widget","componentName","component-class","style"]))),128))}}}),Iyt="",Jr=Xa(abe,[["__scopeId","data-v-49442c96"]]);function Bb(){const e={},t=(a,o)=>{var i,u,l,s;return a?!!((i=a==null?void 0:a.proxy)!=null&&i.$options&&((l=(u=a==null?void 0:a.proxy)==null?void 0:u.$options)==null?void 0:l.componentName)===o||a!=null&&a.exposed&&((s=a==null?void 0:a.exposed)==null?void 0:s.componentName)===o):!1},n=(a,o,i)=>{a&&Rr(a).forEach(u=>{t(a[u],o)&&(i==null||i(a[u]))})},r=(a,o,i)=>{a&&(t(a,o)?i==null||i(a):r(a.parent,o,i))};return{emit$(a,o){e[a]&&e[a].forEach(i=>{i(o)})},on$(a,o){e[a]=e[a]||[],e[a].push(o)},off$(a,o){if(e[a]){if(br(o)){e[a].length=0;return}for(let i=0;i<e[a].length;i++)if(e[a][i]===o){e[a].splice(i,1);break}}},dispatch(a,o,i,u){if(!a)return;let l=u.parent||u.root;r(l,a,s=>{var c;s&&(s.exposed.emit$&&s.exposed.emit$(o,i),s!=null&&s.proxy&&((c=s==null?void 0:s.proxy)==null||c.$emit(o,i)))})},broadcast(a,o,i,u,l=[]){l==null||l.forEach(s=>{n(u[s],a,c=>{c.emit$&&c.emit$.call(c,o,i)})})}}}function obe(){return{onMountedOrActivated:n=>{let r=!1;b.onMounted(()=>{n(),b.nextTick(()=>{r=!0})}),b.onActivated(()=>{r&&n()})},onCompErrorCaptured:()=>{b.onErrorCaptured(n=>(Vi.error("onCompErrorCaptured",n),!1))}}}function t8(e,t){const{getWidgetOption:n,getWidgetOptionByPropValue:r}=zs(e,t),a=i=>n(i);return{existFunc:a,handleFunc:(i,u)=>{if(na(i)){var l=a(String(i));return lh(l,u)}else{var l=r(Kt(i));return lh(l,u)}}}}class n1{constructor(t){U(this,"refList",{});t&&(this.refList=t)}initRefList(){this.refList||(this.refList={})}getWidgetRef(t){if(t)return this.initRefList(),this.refList[t]}setWidgetRef(t,n){t&&(this.initRefList(),this.refList[t]=n)}removeWidgetRef(t){t&&this.refList&&delete this.refList[t.toString()]}}const n8="",r8="_",Rj=(e,t)=>br(t)?e||"":`${n8}${e}${r8}${t}`,Zf=e=>{if(e!=null&&e.includes(r8)){var t=e.split(r8);const n=t==null?void 0:t[0].substring(n8.length),r=e.substring(n8.length+n.length+1);return{id:n,groupName:r}}return{id:e}};var r1=(e=>(e[e.None=0]="None",e[e.Inner2Inner=1]="Inner2Inner",e[e.Inner2Outer=2]="Inner2Outer",e[e.Outer2Inner=3]="Outer2Inner",e[e.Outer2Outer=4]="Outer2Outer",e[e.DiffInner=5]="DiffInner",e))(r1||{});const sbe=(e,t)=>{const n=Zf(e),r=n==null?void 0:n.groupName,a=Zf(t),o=a==null?void 0:a.groupName;return!r&&!o?4:r&&!o?2:r&&o?r!==o?5:1:!r&&o?3:0};function Qf(e){e||(e={});const t=new n1(e),{instance:n}=Xo(),r=d=>t.getWidgetRef(d==null?void 0:d.toString()),a=(d,m,v)=>{var h=[],g=[];let y=r(d);return y&&h.push(y),h==null||h.forEach(x=>{var _=i(x,m,v);_&&g.push(_)}),g},o=(d,m)=>{var v;return(v=d==null?void 0:d.exposed)==null?void 0:v[m.toString()]},i=(d,m,v)=>{var h=o(d,m);if(h){var g=[];return v&&(g=Object.values(v)),h(...g)}},u=(d,m,v)=>{var h=[];if(d){var g=Kt(hi(d,!0));g==null||g.forEach(y=>{var x=a(y,m,v);br(x)||h.push(x)})}return Array.isArray(d)?h:h==null?void 0:h[0]},l=(d,m)=>{let v=Rr(e);u(v,d,m)},s=(d,m)=>{var _,w,E;const v=(w=(_=m||n)==null?void 0:_.exposed)==null?void 0:w.getField();var h=Zf(v==null?void 0:v.id);const g=S=>(S==null?void 0:S.id)===d,y=S=>{var T;var C=Zf(S==null?void 0:S.id);return(h==null?void 0:h.groupName)===(C==null?void 0:C.groupName)&&((C==null?void 0:C.id)===d||((T=S==null?void 0:S._source)==null?void 0:T.id)===d)},x=(E=Rr(t.refList))==null?void 0:E.find(S=>{var T,A;try{const D=(A=(T=t.refList[S])==null?void 0:T.exposed)==null?void 0:A.getField();var C=g(D);return!C&&(h!=null&&h.groupName)&&(C=y(D)),C}catch{return!1}});if(x)return r(x)},c=d=>{if(d){let m=d;t==null||t.setWidgetRef(m,n)}},f=d=>{if(d){let m=d;t==null||t.removeWidgetRef(m)}};return{findWidgetAndCall:a,getWidgetRef:r,callWidgetsExposed:u,callRefFunc:i,existRefFunc:o,setAllRefList:l,findRefById:s,findRefByName:r,changeRegisterToRefList:(d,m)=>{d&&(c(d),f(m))},registerToRefList:c,unregisterFromRefList:f}}const Ya=(e,t=!0,n)=>{if(n!=null&&n===!1)return[];const r=i8(e);return t||(e==null?void 0:e.length)<=0?r:r==null?void 0:r.filter(a=>{var o;return!!(a!=null&&a.widgetList)&&((o=a==null?void 0:a.widgetList)==null?void 0:o.length)>0||!!a.default||(a==null?void 0:a.slotName)===sl.default})},fo=(e,t)=>e==null?void 0:e.find(n=>(n==null?void 0:n.slotName)===t),i8=e=>Kt(e);function a8(e,t){const n=t==null?void 0:t.pageConfig,r=t==null?void 0:t.formData,a=b.reactive({});mr(a,r);var{instance:o}=Xo();const i=()=>{var c=z2e(e);c==null||c.forEach(f=>{const{computedDefaultValue:p,fieldName:d,hasDefaultValue:m}=zs(f.field,t,{s_fieldName:!0},o);d.value&&m()&&Po(p()).then(v=>{mr(a,{[d.value]:v})})})},u=()=>{f_(a)};return{formModel:a,pageConfig:n,widgetList:e,initData:i,setData:(c,f=!0)=>{f&&u(),mr(a,c)},getData:()=>cN(a),clearData:u}}function Nb(){const e=(o,i)=>Z0(o,{newName:!0,recordSource:!0},(u,l)=>Rj(u||l,i)),t=(o,i,u)=>{var p,d;Ia(u)&&(u=`${(p=fg())==null?void 0:p.substring(0,5)}_${!Ia(i==null?void 0:i.$index)&&(i==null?void 0:i.$index)>=0?i==null?void 0:i.$index:""}`);var l=Ya(o,!0);let s=l==null?void 0:l.map(m=>e(m,u));const c=a(s),{updateFomulaName:f}=kf();return(d=Rr(c))==null||d.forEach(m=>{const v=c[m],h=v==null?void 0:v.name;s=f(s,h,m)}),{widget:s,id:u,key:fu(),data:i}},n=(o,i)=>{if(o||(o=[]),i&&(o==null?void 0:o.length)<i){const s=i-(o==null?void 0:o.length);for(var u=0;u<s;u++){var l={};o==null||o.push(l)}}return o},r=(o,i,u,l)=>{if(Array.isArray(i))return i=n(i,u),i==null?void 0:i.map((s,c)=>{const f=l?l(s,c):s;return t(o,f,c+"")})},a=(o,i)=>{let u={};return o&&Ob(o,l=>{const s=gt.getName(l),c=()=>{s&&(u[s]=l==null?void 0:l._source)};i?i(l)&&c():c()}),u};return{newSlot:t,reflectTargetWithSourceOne:a,getSlotFromData:r,getMinRowData:n,parseGroupId:Zf,formatGroupId:Rj}}function o8(e){const t=e==null?void 0:e.fieldName,n=e==null?void 0:e.setValue,r=b.reactive({}),a=b.reactive([]),{newSlot:o,reflectTargetWithSourceOne:i,getSlotFromData:u,getMinRowData:l}=Nb(),s=(E,S)=>{var A;let C={};const T=i(S);return(A=Rr(E))==null||A.map(D=>{var O,I,N;const P=(O=T==null?void 0:T[D])==null?void 0:O.name;P&&(C[P]=E==null?void 0:E[D],(N=(I=Rr(E))==null?void 0:I.filter(F=>F.startsWith(D+"_")))==null||N.forEach(F=>{C[F==null?void 0:F.replace(D,P)]=E==null?void 0:E[F]}))}),C},c=(E,S)=>{var A,D;let C={};if(ko(E)){const P=i(S,O=>!!(O!=null&&O.formItemFlag));(A=Rr(P))==null||A.map(O=>{var I;O&&(C[O]=E==null?void 0:E[(I=P==null?void 0:P[O])==null?void 0:I.name])})}else{var T={pageConfig:(D=e==null?void 0:e.designer)==null?void 0:D.pageConfig,formData:C,designState:e==null?void 0:e.designState};const{formModel:P,initData:O}=a8(S,T);O(),mr(C,P)}return C},f=(E,S)=>{const C=c(S,E.widget);return mr(r,C),C},p=E=>{var S;(S=Rr(r))==null||S.forEach(C=>{const T=Zf(C);(T==null?void 0:T.groupName)==E.id&&delete r[C]})},d=()=>a==null?void 0:a.map(S=>s(r,S==null?void 0:S.widget)),m=(E,S)=>{f_(r);const C=S(E);return C==null||C.forEach(T=>{const A=c(T==null?void 0:T.data,T==null?void 0:T.widget);mr(r,A)}),a.splice(0,a.length),C&&C.length>0&&a.push(...C),a},v=E=>{var C;var S=Ju({...e,widget:E});return(C=S.attrs)==null?void 0:C.value},h=(E,S,C)=>U2e(E,S,a,C),{off$:g,on$:y,emit$:x}=Bb(),_=()=>{g(Dn.fieldChange),y(Dn.fieldChange,E=>{var S;n==null||n(d()),(S=e==null?void 0:e.fieldChanged)==null||S.call(e)})};return(()=>{const E=t;Yu.globalProvide({globalFormName:E,globalDataModel:r}),_()})(),{getSlotFromData:u,getMinRowData:l,fromModel:c,toModel:s,newSlot:o,getWidgetOption:v,newFieldModelFromSlot:f,removeFieldModelFromSlot:p,getValue:d,setValue:m,findWidgetByNameWithSibId:h,emit$:x,formModel:r,rowsData:a}}const lbe=(e,t,n,r)=>{const a=new n1(e),{callRefFunc:o}=Qf(e),{parseGroupId:i}=Nb();if(!e||e.length<=0||!t)return;const u=()=>{var y,x;return(x=(y=Rr(e))==null?void 0:y.map(_=>o(e==null?void 0:e[_],ga.getField)))==null?void 0:x.filter(_=>!!_)},l=y=>{var E;const x=(E=u())==null?void 0:E.find(S=>(S==null?void 0:S.id)===y);if(!x)return;const _=gt.getName(x),w=a.getWidgetRef(_);if(w)return{ref:w,name:_,id:x==null?void 0:x.id}},s=(y,x)=>{if(!ko(x))return;const _=gt.getName(y),w=a.getWidgetRef(_);if(w){const E=gt.getOptions(y,Dn.defaultValue,!1,!(n!=null&&n.designState),{...n,formData:x});if(ko(E))if(b.isRef(E)){let S=b.watch(()=>E.value,C=>{S==null||S(),o(w,ga.setValue,{newValue:C})})}else o(w,ga.setValue,{newValue:E})}},c=(y,x)=>{const _=l(y);if(!_)return;const w=_.name,E=o(_.ref,ga.getValue),S=o(_.ref,ga.getCheckedItems),C={};return C[w]=E,E!==void 0&&!Ia(S)&&!x&&(C[`${w}${ll.checkedOptions}`]=S),C},f=(y,x)=>{var w;var _=[];if((w=u())==null||w.forEach(E=>{if(!E)return;const S=E==null?void 0:E.id;var C=S===y;const T=i(S),A=(T==null?void 0:T.id)===y,D=(T==null?void 0:T.groupName)===x;return C||A&&(D||!x)?(_.push(E),!0):!1}),!(!_||_.length<=0))return _==null?void 0:_.map(E=>{var S;return{id:E==null?void 0:E.id,name:(S=E==null?void 0:E._source)==null?void 0:S.name,source:E==null?void 0:E._source}})},p=(y,x)=>{var _=[];if(!y||(y==null?void 0:y.length)<=0)return _;const w=i(t),E=w==null?void 0:w.groupName;return x===r1.Inner2Outer?y==null||y.forEach(S=>{var C=f(S);C&&(C==null?void 0:C.length)>0&&_.push(...C)}):y==null||y.forEach(S=>{var C=f(S,E);C&&(C==null?void 0:C.length)>0&&_.push(...C)}),_},d=(y,x)=>{let _={};if(!y||y.length<=0)return _;if(x===r1.Inner2Outer){var w=lN(y,E=>{var S;return(S=E.source)==null?void 0:S.id});w==null||w.forEach(E=>{var T;const S=E.group[0],C=[];(T=E==null?void 0:E.children)==null||T.forEach(A=>{const D=c(A==null?void 0:A.id,!0);if(ko(D)){var P=Object.values(Kt(D));C.push(...P)}}),S&&(_=Object.assign(_,{[S]:C}))})}else y.forEach(E=>{const S=c(E==null?void 0:E.id);ko(S)&&(_=Object.assign(_,S))});return _},m=y=>{var x={};return y==null||y.forEach(_=>{var w;_!=null&&_.source&&(_!=null&&_.id)&&(x[(w=_==null?void 0:_.source)==null?void 0:w.id]=_==null?void 0:_.id)}),x},v=(y,x,_)=>{if(_===r1.Inner2Inner){const C=Qv(x),{updateFomula:T}=kf(),{buildVariable:A}=e9();var w=m(y);if(ko(w)){var E=gt.getOrgOption(x,Dn.defaultValue),S=T(Ti(E),w,(D,P)=>{var O=w[D];return br(O)?A(D):A(O)});return gt.setOrgOption(C,Dn.defaultValue,ui(S)),C}}return x},h=y=>{const x=y==null?void 0:y.id;var _=gt.getOrgOption(y,Dn.defaultValue);if(_==null)return;const w=sbe(t,x);if(w===r1.DiffInner)return;var E=_e.getFormulaRelatedField(_);if(!E||E.length<=0)return;var S=p(E,w);if(!(S!=null&&S.some(T=>T.id===t)))return;const C=d(S,w);s(v(S,y,w),C)};(()=>{var y;(y=u())==null||y.forEach(x=>{h(x)})})()},ube=(e,t,n,r,a)=>{var p;if(a||!ko(n))return;const{parseGroupId:o}=Nb();var i=o(t),u=i==null?void 0:i.groupName;const{callRefFunc:l}=Qf(e),s=(d,m)=>{var _,w,E;const v=(w=(_=Rr(e))==null?void 0:_.map(S=>l(e==null?void 0:e[S],ga.getField)))==null?void 0:w.filter(S=>!!S),h=(E=J0(v,S=>{var C=o(S==null?void 0:S.id);return(!u||(C==null?void 0:C.groupName)===u)&&(C==null?void 0:C.id)===d}))==null?void 0:E[0];if(!h)return;const g=gt.getName(h),x=new n1(e).getWidgetRef(g);x&&(m==null||m(x))},c=hi(r==null?void 0:r.newValue,!0),f=(p=Rr(n))==null?void 0:p.filter(d=>c==null?void 0:c.includes(d));!f||f.length<=0||f==null||f.forEach(d=>{var v,h;const m=(v=n==null?void 0:n[d])==null?void 0:v.result;(h=Rr(m))==null||h.forEach(g=>{var x;const y=m==null?void 0:m[g];(x=y==null?void 0:y.ids)==null||x.forEach(_=>{s(_,w=>{l(w,y==null?void 0:y.event,y==null?void 0:y.args)})})})})};function jj(e,t){var n;return(n=e==null?void 0:e.classList)!=null&&n.contains(t)?e:e!=null&&e.parentElement?jj(e==null?void 0:e.parentElement,t):null}function cbe(){const e=s=>{if(s)return s!=null&&s.ref?s==null?void 0:s.ref:s},t=s=>{var c,f;try{(f=(c=e(s))==null?void 0:c.focus)==null||f.call(c)}catch(p){Vi.error("focus",p,s)}},n=s=>{var c,f;try{(f=(c=e(s))==null?void 0:c.blur)==null||f.call(c)}catch(p){Vi.error("blur",p,s)}},r=s=>{var c;return(c=e(s))==null?void 0:c.selectionStart},a=s=>{var c;return(c=e(s))==null?void 0:c.selectionEnd},o=(s,c)=>{var f;return(f=e(s))==null?void 0:f.setSelectionRange(c,c)},i=(s,c)=>{t(s),o(s,c)};return{getSelectionStart:r,getSelectionEnd:a,setSelectionStart:o,blur:n,focus:t,setMousePos:i,getMousePos:s=>r(s),insertOnMousePos:(s,c,f)=>{const p=r(s),d=a(s),m=xoe(f,c,p,d);return b.nextTick(()=>{i(s,p+(c==null?void 0:c.length))}),m}}}const Vj=e=>{var n;const{getFormulaFields:t}=kf();return((n=t(Ti(e)))==null?void 0:n.length)>0},Ph=e=>{const t=e.type;//![WidgetType.fileUpload, WidgetType.pictureUpload].includes(wtype) &&
192
- return e.formItemFlag||[lt.form,lt.dialog].includes(t)},s8=e=>{const t=e.type;return[lt.treeSelect,lt.cascader,lt.select,lt.checkbox,lt.radio].includes(t)};function In(e){const t=e==null?void 0:e.designState,n=(e==null?void 0:e.created)!=!1,r=e==null?void 0:e.exResetField,a=e==null?void 0:e.extInitFieldModel,o=e==null?void 0:e.exposedWholeInstance,i=e==null?void 0:e.widget,u=e==null?void 0:e.designer,l=u==null?void 0:u.pageConfig,{formRefList:s,globalRefList:c,globalConfig:f,globalFormName:p,globalDataModel:d,rowScope:m}=Yu.globalInject();let v=b.reactive(d||{});const h=Qf(c),g=Qf(s),{instance:y}=Xo(),x=()=>or(v),_=()=>m,w=()=>i,E={designState:t,pageConfig:l,formData:!t&&Vj(i)?v:{},globalConfig:f},S={instance:y,...E},C=Ab(S),T={exposed:{getFormData:!t&&Vj(i)?x:null,findRefByName:h.getWidgetRef,fieldEditor:()=>It.value,getField:w,getRowScope:_,getOneSchemaData:C==null?void 0:C.getOneSchemaData,getSchemaDataObject:C==null?void 0:C.getSchemaDataObject,getSchemaDatas:C==null?void 0:C.getSchemaDatas}},A={instance:o?y:T,...E},{on$:D,dispatch:P,emit$:O}=Bb(),{onCompErrorCaptured:I}=obe(),{existFunc:N}=t8({options:i==null?void 0:i.options},A),{isIdClass:F,getIdByIdClass:j}=p2e(i),{getOneSchemaData:L,getSchemaDataObject:V,getSchemaDatas:X}=Ab(A),R=cbe(),M=(e==null?void 0:e.shareProp)||{s_attr:!0,s_extendAttr:!0,s_events:!0,s_slots:!0,s_fieldName:!0,s_optionItems:!0},{attrs:K,extendAttrs:G,events:W,slots:Z,rules:le,fieldName:oe,buildRules:re,clearRules:ne,disableChangeValidate:ve,enableChangeValidate:Y,optionItems:Q,filterOptionItems:ae,getCheckedOptionText:he,getCheckedOptionValues:me,getCheckedOptionLabels:xe,getCheckedOptionItems:pe,activeOptionItems:ye,activeOptionItem:Se,activeOptionItemIndex:we,setOptionItems:ke,isOptionWidget:ee,setWidgetOption:J,getWidgetOption:te,setFieldEnable:fe,hasFieldOptions:Ae,getFieldOptions:Pe,setFieldOptions:Fe,computedDefaultValue:Me,hasDefaultValue:We,singleOption:Ue,watchOption:Je,addCssClass:ft,removeCssClass:jt}=zs(i,A,M,y);let Ot=null,Wt=b.ref();const It=b.ref(),Vt=()=>oe.value,bt=()=>`${i==null?void 0:i.id}-${TF()}`,Ln=b.ref(bt()),pt=()=>{Ln.value=bt()},vt=b.computed({get:()=>{if(na(Wt.value)){var de=Number(Wt.value);return isNaN(de)?void 0:(Wt.value=de,de)}return Wt.value},set:de=>{Wt.value=de}}),se=b.computed({get:()=>{if(na(Wt.value)){var de=ui(Wt.value);ul(de)&&(Wt.value=de)}return Wt.value},set:de=>{Wt.value=de}}),Ne=de=>{var $e,yt;var Ve=(yt=($e=h.getWidgetRef(oe.value))==null?void 0:$e.exposed)==null?void 0:yt.loadOptionItems;if(Ve!==void 0){Ve==null||Ve(de);return}ke(de)},Oe=de=>{var Ve,$e,yt;return(yt=($e=(Ve=h.getWidgetRef(oe.value))==null?void 0:Ve.exposed)==null?void 0:$e.getCheckedItems)==null?void 0:yt.call($e,de)},Le=de=>{var Ve,$e,yt;return(yt=($e=(Ve=h.getWidgetRef(oe.value))==null?void 0:Ve.exposed)==null?void 0:$e.getCheckedLabels)==null?void 0:yt.call($e,de)},Ye=de=>{var Ve,$e,yt;return(yt=($e=(Ve=h.getWidgetRef(oe.value))==null?void 0:Ve.exposed)==null?void 0:$e.getCheckedText)==null?void 0:yt.call($e,de)},xt=()=>{var Ce;if(!ee())return;const de=(Ce=G.value)==null?void 0:Ce.withAttachData;if(!s8(i)||de===!1)return;const Ve=Wt.value,$e=Le(Ve),yt=Ye(Ve);var Bt=or(Oe(Ve));Nt($e,Bt,yt)},Nt=(de,Ve,$e)=>{var yt={};if(de!=null){let Bt=Pe("textName",!1);[`${oe.value}${ll.optionText}`,Bt].forEach(Ce=>{Ce&&yt[Ce]===void 0&&(yt[Ce]=de)})}if(Ve!=null&&Ti(Ve)!==Ti(Wt.value)){let Bt=Pe("optionName",!1);[`${oe.value}${ll.checkedOptions}`,Bt].forEach(Ce=>{Ce&&yt[Ce]===void 0&&(yt[Ce]=Ve)})}if($e!=null){let Bt=Pe("labelName",!1);de!==$e&&[`${oe.value}${ll.optionLabelName}`,Bt].forEach(Ce=>{Ce&&yt[Ce]===void 0&&(yt[Ce]=$e)})}rn(or(yt))},Gt=de=>{if(Ph(i)){var Ve={[oe.value]:de};rn(Ve)}},rn=de=>{mr(v,de)},Rn=de=>{t||Gt(de)},Br=de=>Pe(de,!1),Ei=()=>{var de=b.toRefs(v);Wt=_e.get(de,oe.value)},Re=de=>{Ot=or(de)},Ze=de=>{t||a&&a(de)},Ke=()=>{We()&&Po(Me()).then(de=>{Gt(de),Ei()})},Ge=(de,Ve)=>{if(!Ph(i))return;O(Dn.fieldValueChanged,{newValue:de,oldValue:Ve});const $e={fieldId:i.id,fieldName:oe.value,newValue:de,oldValue:Ve};P(p,Dn.fieldChange,$e,y)},et=de=>N(de),rt=(de,Ve)=>lh(te(de),Ve),_t=de=>{Rn(de),On(),rt(Dn.onInput,{value:de})},Mt=(de,Ve)=>{var $e,yt,Bt;return(Bt=(yt=($e=h.getWidgetRef(oe.value))==null?void 0:$e.exposed)==null?void 0:yt.handleBeforeChange)==null?void 0:Bt.call(yt,de,Ve)},Et=(...de)=>{var Bt,Ce,Ie;let $e=((Bt=de==null?void 0:de[0])==null?void 0:Bt.target)!=null?(Ie=(Ce=de==null?void 0:de[0])==null?void 0:Ce.target)==null?void 0:Ie.value:de==null?void 0:de[0];$e=or($e);var yt=Mt($e,Ot);yt!=null?Rn(yt):Rn($e),Ge($e,Ot),On(),Re($e)},St=(de=!0)=>{J(qt.readonly,de)},Dt=(de=!0)=>{J(qt.disabled,de)},it=(de=!0)=>{J(qt.hidden,de),de?Fn():ln()},k=(de=!0)=>{fe(qt.required,de),ln()},B=de=>{J(qt.label,de)},z=()=>Wt==null?void 0:Wt.value,H=de=>{Wt.value=de},q=de=>{let Ve=or(z());if(H(de),!Ph(i))return;const $e=z();Ve!==$e&&(Rn($e),Ge(de,Ve))},ge=()=>{We()?Po(Me()).then(de=>{Gt(de)}):Gt(null),r==null||r()},Te=de=>{const Ve=z(),$e=R.insertOnMousePos(It.value,de,Ve);q($e)},je=(de,Ve)=>{b.watch(()=>Wt==null?void 0:Wt.value,($e,yt)=>{de==null||de({id:i.id,name:oe.value,newValue:$e,oldValue:yt})},Ve)},at=de=>{var Ce;de.preventDefault();const Ve=Ie=>{var ct;const He=(ct=Array.from(Ie.classList))==null?void 0:ct.find(zt=>F(zt));return He?j(He):""},$e=document.activeElement;if(!$e)return;const yt=document.getElementsByClassName(I3.formItemTarget);for(var Bt=0;Bt<yt.length;Bt++){const Ie=yt[Bt],He=jj($e,I3.formItemTarget);if(!He)continue;const ct=Ve(Ie),zt=Ve(He);if(ct===zt){if(Bt===yt.length-1)return;const $t=yt[Bt+1],xn=Ve($t),Cn=h.findRefById(xn,y);try{(Ce=Cn==null?void 0:Cn.exposed)==null||Ce.focus()}catch(Qr){Vi.error("handleEnter",Qr)}}}};let ut=()=>{var Ie;let de={componentName:oe.value,refList:s,allRefList:c,fieldEditor:()=>It.value,changeRegisterToRefList:(He,ct)=>{h.changeRegisterToRefList(He,ct),g.changeRegisterToRefList(He,ct)},getField:w,getFormData:x,getValue:z,setValue:H,emit$:O,findRefByName:h.getWidgetRef,findRefById:h.findRefById,callRefFunc:h.callRefFunc,getWidgetOption:te,setWidgetOption:J,refreshKey:pt,getRowScope:_,getOneSchemaData:L,getSchemaDatas:X,getSchemaDataObject:V,addCssClass:ft,removeCssClass:jt},Ve={resetField:ge,getValue:z,setValue:q,refreshDefaultValue:Ke,insertOnMousePos:Te,disableChangeValidate:ve,enableChangeValidate:Y,focus:()=>{R.focus(It.value)},blur:()=>{R.blur(It.value)},getMousePos:()=>{R.getMousePos(It.value)},setMousePos:He=>{R.setMousePos(It.value,He)}},$e={loadOptionItems:Ne,getCheckedItems:Oe,getCheckedLabels:Le},yt={[qt.required]:{name:ga.setRequired,fn:k},[qt.label]:{name:ga.setLabel,fn:B},[qt.hidden]:{name:ga.setHidden,fn:it},[qt.disabled]:{name:ga.setDisabled,fn:Dt},[qt.readonly]:{name:ga.setReadonly,fn:St}},Bt={};(Ie=Rr(yt))==null||Ie.forEach(He=>{if(kh(i,He)){const ct=yt[He];Bt[ct.name]=ct.fn}});var Ce=mr(de,Bt);return Ph(i)&&(Ce=mr(Ce,Ve)),s8(i)&&(Ce=mr(Ce,$e)),Ce};const Ct=b.computed(()=>({attrs:K.value,extendAttrs:G.value,events:W.value,slots:Z.value,fieldKey:Ln.value,fieldEditor:It.value,fieldName:oe.value})),wt=de=>{e.designState&&e.designer&&b.watch(()=>{var Ve;return(Ve=e==null?void 0:e.widget)==null?void 0:Ve[de]},(Ve,$e)=>{const{emitHistoryChange:yt}=UR(e.designer);yt(`edit ${oe.value}.${de},newValue:${Ve},oldValue:${$e}`)},{deep:!0})},Lt=(de,Ve,$e)=>{const yt=b.ref(),Bt=Br(de),Ce=Ie=>{Ve&&(yt.value=Ve(Ie||Bt))};return b.isRef(Bt)?b.watch(Bt,Ie=>{Ce(Ie),$e&&$e(Ie)}):Ce(Bt),yt},cn=()=>{!Ph(i)||t||je(de=>{lbe(c,i==null?void 0:i.id,A),ube(c,i==null?void 0:i.id,gt.getOptions(i,qt.relate),de),xt(),setTimeout(()=>{xt(),Ze(de==null?void 0:de.newValue)},1e3)},{immediate:!0})},On=()=>{const de={propName:oe.value};P(p,Dn.fieldValidation,de,y)},sn=()=>{const de={fieldId:i.id,fieldName:oe.value,rules:le};P(p,Dn.fieldRuleChange,de,y)},ln=()=>{if(!Ph(i))return;const de=re();return sn(),de},Fn=()=>{ne(),sn()},sr=()=>{kh(i,"change")&&(W.value.change=Et),kh(i,"input")&&(W.value.input=_t),D(f0.setFormData,de=>{q(de[oe.value])}),D(Dn.fieldValueChanged,de=>{rt(Dn.onChange,{value:de==null?void 0:de.newValue,oldValue:de==null?void 0:de.oldValue})})},Vr=()=>{let de=oe.value;Ph(i)?((!Ua(v,de)||v[de]===void 0)&&(Gt(null),We()&&Po(Me()).then(Ve=>{Ve==null?Gt(null):Gt(Ve)})),Ei()):We()&&Po(Me()).then(Ve=>{q(Ve)}),Re(z())},Lr=()=>{s8(i)&&b.watch(()=>Q==null?void 0:Q.value,(de,Ve)=>{xt()},{immediate:!0})},Ii=()=>{Je(!0,qt.css,void 0,de=>{ce()})},Li=()=>{const de=b.inject(pi.isRenderComplete);if(de!=null&&de.value){Lr(),cn();return}de!=null&&b.watch(()=>de==null?void 0:de.value,Ve=>{Ve&&(Lr(),cn())},{immediate:!0})},eo=()=>{var de,Ve;if(n)try{Vr(),ln(),sr(),h.registerToRefList(oe.value),g.registerToRefList(oe.value),(Ve=(de=W==null?void 0:W.value)==null?void 0:de.created)==null||Ve.call(de),I()}catch($e){Vi.error("create",$e)}},Ri=()=>{n&&(b.onMounted(()=>{var de,Ve;try{ce(),Ii(),Li(),(Ve=(de=W==null?void 0:W.value)==null?void 0:de.mounted)==null||Ve.call(de)}catch($e){console.log("mounted",i,$e)}}),b.onBeforeUnmount(()=>{h.unregisterFromRefList(oe.value),g.unregisterFromRefList(oe.value)}))},ce=()=>{const de=i==null?void 0:i.id,Ve=te(qt.css);Ve&&de&&tbe(Ve).then($e=>{Mj($e,de)})};return eo(),Ri(),{exposed:ut(),fieldModel:Wt,objFieldModel:se,numFieldModel:vt,fieldEditor:It,fieldKey:Ln,field:i,instance:y,attrs:K,extendAttrs:G,slots:Z,events:W,rules:le,fieldObj:Ct,getValue:z,setValue:H,pageConfig:l,formModel:v,fieldName:oe,propResultOpt:A,optionItems:Q,activeOptionItems:ye,activeOptionItem:Se,activeOptionItemIndex:we,refreshOptionField:xt,filterOptionItems:ae,setOptionItems:ke,getCheckedItems:Oe,getCheckedOptionItems:(de,Ve)=>pe(de||Wt.value,Ve),getCheckedOptionLabels:(de,Ve)=>xe(de||Wt.value,Ve),getCheckedOptionValues:(de,Ve)=>me(de||Wt.value,Ve),getCheckedOptionText:(de,Ve)=>he(de||Wt.value,Ve),refreshKey:pt,watchKeyValue:Lt,watchPropAndSaveHistoryStep:wt,existEvent:et,handleEvent:rt,handleEnter:at,getPropName:Vt,emitFieldDataChange:Ge,syncUpdateFormModel:Rn,getWidgetRef:h.getWidgetRef,clearRules:Fn,buildRules:ln,getFieldOptionModel:Br,getFieldOptions:Pe,hasFieldOptions:Ae,setFieldOptions:Fe,getWidgetOption:te,singleOption:Ue,watchOption:Je,mergeOptionToFormModel:Nt}}const fbe=b.defineComponent({componentName:An.ContainerWidget}),l8=b.defineComponent({...fbe,__name:"cont-cell-widget",props:{...ma},setup(e,{expose:t}){const n=e,r=b.computed(()=>{var u;return`el-${_e.getValue((u=n.widget)==null?void 0:u.partName)}`}),{customClass:a,componentWrapperClass:o}=Ju({widget:{options:n.widget}}),{exposed:i}=In(n);return t({...i}),(u,l)=>{var s,c,f;return b.openBlock(),b.createBlock(b.resolveDynamicComponent(b.unref(r)),{class:b.normalizeClass(["content-cell",b.unref(a)]),direction:(s=u.widget)==null?void 0:s.direction,style:b.normalizeStyle({width:b.unref(_e).getValue((c=u.widget)==null?void 0:c.cellWidth),height:b.unref(_e).getValue((f=u.widget)==null?void 0:f.cellHeight),zIndex:1e3})},{default:b.withCtx(()=>[b.renderSlot(u.$slots,"default",{},()=>{var p,d,m,v,h;return[((d=(p=u.widget)==null?void 0:p.children)==null?void 0:d.length)<=0?(b.openBlock(),b.createBlock(Jr,{key:0,widgetList:(m=u.widget)==null?void 0:m.widgetList,designState:u.designState,designer:u.designer,dragClass:"dragSize2",parentWidget:u.widget,parentList:(v=u.widget)==null?void 0:v.widgetList,"component-class":b.unref(o)},null,8,["widgetList","designState","designer","parentWidget","parentList","component-class"])):b.createCommentVNode("",!0),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((h=u.widget)==null?void 0:h.children,(g,y)=>{var x;return b.openBlock(),b.createBlock(l8,{key:g.id,widget:g,designer:u.designer,"design-state":u.designState,"parent-list":(x=u.widget)==null?void 0:x.children,"parent-widget":u.widget},null,8,["widget","designer","design-state","parent-list","parent-widget"])}),128))]})]),_:3},8,["direction","class","style"])}}}),zj=Object.freeze(Object.defineProperty({__proto__:null,default:l8},Symbol.toStringTag,{value:"Module"})),pbe=["width","height","color"],hbe=["xlink:href"],dbe={key:0,slot:"title"},mbe=b.defineComponent({__name:"index",props:{prefix:{default:"icon"},dir:{default:"svg"},name:null,color:null,size:null,width:{default:"16"},height:{default:"16"},className:null,title:{default:""}},setup(e){var f,p;const t=e,n=t.size||t.width,r=t.size||t.height,a=t.size||t.width,o=t.name,i=b.computed(()=>{var d="svg-icon";return t.className?d+" "+t.className:d}),u=b.ref(),l=b.computed(()=>`#${t.prefix}-${t.dir}-${u.value}`);let s=b.shallowRef();const c=na(o)&&((f=String(o))==null?void 0:f.startsWith("@"));return c?u.value=(p=String(o))==null?void 0:p.substring(1):b.watch(()=>t.name,d=>{if(b.isRef(t.name))s.value=d;else{const{instance:m}=Xo();s=PF(d,m)}},{immediate:!0}),(d,m)=>{const v=b.resolveComponent("el-icon");return b.unref(c)?(b.openBlock(),b.createElementBlock("svg",{key:0,class:b.normalizeClass(b.unref(i)),width:b.unref(n),height:b.unref(r),color:t.color},[b.createElementVNode("use",{"xlink:href":b.unref(l)},null,8,hbe),e.title?(b.openBlock(),b.createElementBlock("title",dbe,b.toDisplayString(e.title),1)):b.createCommentVNode("",!0)],10,pbe)):(b.openBlock(),b.createBlock(v,{key:1,size:b.unref(a)},{default:b.withCtx(()=>[(b.openBlock(),b.createBlock(b.resolveDynamicComponent(b.unref(s)),{color:t==null?void 0:t.color,key:e.name},null,8,["color"]))]),_:1},8,["size"]))}}}),Byt="",Zi=Xa(mbe,[["__scopeId","data-v-ca7a7b14"]]),vbe={key:0},gbe={class:"clWhite"},ybe={class:"clWhite"},xbe=["title"],_be=["title"],bbe=["title"],wbe=["title"],Ebe=b.defineComponent({__name:"drag-handler",props:{...ma,parentTree:{type:Object,default:null},hidden:{type:Boolean,default:!1},simple:{type:Boolean}},setup(e){const t=e,{setSelected:n,findWidgetById:r,removeWidget:a,moveDownWidget:o,moveUpWidget:i,cloneWidget:u}=Ib(t.designer),l=s=>{const c=s==null?void 0:s.id;if(s.selectable===!1)oi.info(ie.i18nt("designer.hint.currentNodeCannotBeSelected"));else{const f=r(c);n(f)}};return(s,c)=>{var v,h;const f=b.resolveComponent("el-dropdown-item"),p=b.resolveComponent("el-dropdown-menu"),d=b.resolveComponent("el-dropdown"),m=b.resolveComponent("el-divider");return b.openBlock(),b.createElementBlock(b.Fragment,null,[e.hidden===!0?(b.openBlock(),b.createElementBlock("i",vbe,[b.createVNode(Zi,{name:"@el-hide"})])):b.createCommentVNode("",!0),e.simple?(b.openBlock(),b.createBlock(d,{key:1,onCommand:l},b.createSlots({default:b.withCtx(()=>[b.createElementVNode("span",gbe,[b.createVNode(Zi,{name:"@el-arrow-down"})])]),_:2},[((v=e.parentTree)==null?void 0:v.length)>0?{name:"dropdown",fn:b.withCtx(()=>[b.createVNode(p,null,{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.parentTree,(g,y)=>(b.openBlock(),b.createBlock(f,{command:g},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(g==null?void 0:g.label),1)]),_:2},1032,["command"]))),256)),b.createVNode(f,{divided:"",onClick:c[0]||(c[0]=b.withModifiers(g=>b.unref(u)(s.widget,s.parentList),["stop"]))},{default:b.withCtx(()=>[b.createVNode(Zi,{name:"@el-clone"}),b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.cloneWidget")),1)]),_:1}),b.createVNode(f,{onClick:c[1]||(c[1]=b.withModifiers(g=>b.unref(a)(s.widget,s.parentWidget,s.parentList),["stop"]))},{default:b.withCtx(()=>[b.createVNode(Zi,{name:"@el-delete"}),b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.remove")),1)]),_:1}),s.parentList&&s.parentList.length>1?(b.openBlock(),b.createBlock(f,{key:0,onClick:c[2]||(c[2]=b.withModifiers(g=>b.unref(i)(s.parentList,s.widget),["stop"]))},{default:b.withCtx(()=>[b.createVNode(Zi,{name:"@el-move-up"}),b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.moveUpWidget")),1)]),_:1})):b.createCommentVNode("",!0),s.parentList&&s.parentList.length>1?(b.openBlock(),b.createBlock(f,{key:1,onClick:c[3]||(c[3]=b.withModifiers(g=>b.unref(o)(s.parentList,s.widget),["stop"]))},{default:b.withCtx(()=>[b.createVNode(Zi,{name:"@el-move-down"}),b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.moveDownWidget")),1)]),_:1})):b.createCommentVNode("",!0),s.$slots.default?(b.openBlock(),b.createBlock(f,{key:2,divied:""},{default:b.withCtx(()=>[b.renderSlot(s.$slots,"default")]),_:3})):b.createCommentVNode("",!0)]),_:3})]),key:"0"}:void 0]),1024)):(b.openBlock(),b.createElementBlock(b.Fragment,{key:2},[b.createVNode(d,{onCommand:l},b.createSlots({default:b.withCtx(()=>{var g,y;return[b.createElementVNode("span",ybe,[b.createTextVNode(b.toDisplayString(b.unref(ie).i18n2t(`designer.widgetLabel.${(g=s.widget)==null?void 0:g.type}`,`extension.widgetLabel.${(y=s.widget)==null?void 0:y.type}`))+" ",1),b.createVNode(Zi,{name:"@el-arrow-down",class:"el-icon--right"})])]}),_:2},[((h=e.parentTree)==null?void 0:h.length)>0?{name:"dropdown",fn:b.withCtx(()=>[b.createVNode(p,null,{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.parentTree,(g,y)=>(b.openBlock(),b.createBlock(f,{command:g},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(g==null?void 0:g.label),1)]),_:2},1032,["command"]))),256))]),_:1})]),key:"0"}:void 0]),1024),b.createVNode(m,{direction:"vertical","border-style":"dashed",color:"white"}),b.renderSlot(s.$slots,"default"),s.parentList&&s.parentList.length>1?(b.openBlock(),b.createElementBlock("i",{key:0,title:b.unref(ie).i18nt("designer.hint.moveUpWidget"),onClick:c[4]||(c[4]=b.withModifiers(g=>b.unref(i)(s.parentList,s.widget),["stop"]))},[b.createVNode(Zi,{name:"@el-move-up"})],8,xbe)):b.createCommentVNode("",!0),s.parentList&&s.parentList.length>1?(b.openBlock(),b.createElementBlock("i",{key:1,title:b.unref(ie).i18nt("designer.hint.moveDownWidget"),onClick:c[5]||(c[5]=b.withModifiers(g=>b.unref(o)(s.parentList,s.widget),["stop"]))},[b.createVNode(Zi,{name:"@el-move-down"})],8,_be)):b.createCommentVNode("",!0),b.createElementVNode("i",{title:b.unref(ie).i18nt("designer.hint.cloneWidget"),onClick:c[6]||(c[6]=b.withModifiers(g=>b.unref(u)(s.widget,s.parentList),["stop"]))},[b.createVNode(Zi,{name:"@el-clone"})],8,bbe),b.createElementVNode("i",{title:b.unref(ie).i18nt("designer.hint.remove"),onClick:c[7]||(c[7]=b.withModifiers(g=>b.unref(a)(s.widget,s.parentWidget,s.parentList),["stop"]))},[b.createVNode(Zi,{name:"@el-delete"})],8,wbe)],64))],64)}}}),Nyt="";function Fb(e){return{getAttrProp:n=>{var o,i,u,l,s,c;var r=(u=(i=(o=e==null?void 0:e.propOptions)==null?void 0:o.fieldObj)==null?void 0:i.attrs)==null?void 0:u[n],a=(c=(s=(l=e==null?void 0:e.propOptions)==null?void 0:l.fieldObj)==null?void 0:s.extendAttrs)==null?void 0:c[n];return Ia(r)?a:r}}}const Nr=b.defineComponent({__name:"widget-wrapper",props:{...Wae},setup(e){var T;const t=e,{selectWidget:n}=Ib(t.designer),{widgetTree:r}=$A((T=t.designer)==null?void 0:T.widgetList,!0),{pathNodes:a,parentTree:o}=e8(r.value,t.widget),{size:i,displayLayout:u,labelAlign:l,labelWidth:s,formItemFlag:c,labelSuffix:f,labelHidden:p}=Z2e(t,Kt(a.value)),{getAttrProp:d}=Fb(t),m=b.computed(()=>d==null?void 0:d("hidden")),v=b.computed(()=>d==null?void 0:d("labelWidth")),h=A=>A&&!["div","span"].includes(A),g=b.computed(()=>{var A;return(A=t.widget)==null?void 0:A.id}),y=b.computed(()=>{var A,D;return(A=t.widget)!=null&&A.type?[lt.grid,lt.gridCol,lt.wrapper].includes((D=t.widget)==null?void 0:D.type):!1}),x=b.computed(()=>{const A=d==null?void 0:d(qt.width),D=d==null?void 0:d(qt.ctrlWidth),P=d==null?void 0:d(qt.customClass),O=d==null?void 0:d(qt.componentWrapperClass);let I={};return v.value!=$v.auto&&v.value&&(I.labelWidth=v.value),{size:i.value,labelAlign:l.value,labelWidth:s.value,formItemFlag:c.value,formItemAttr:I,ctrlWidth:D,displayStyle:u.value,labelSuffix:f.value||"",injectStyle:{},injectClass:[A?"":"full-width",p0(P),g.value],componentWrapperClass:p0(O)}}),_=b.computed(()=>[(d==null?void 0:d(qt.width))?"":"full-width"]),w=b.computed(()=>{var A,D,P;return!!t.designer&&((A=t.widget)==null?void 0:A.id)===((P=(D=t.designer)==null?void 0:D.selectedWidget)==null?void 0:P.id)}),E=b.ref(),S=b.ref(),C=b.computed(()=>{var A,D;if(E.value&&S.value&&w.value)return((A=E.value)==null?void 0:A.offsetWidth)>((D=S.value)==null?void 0:D.offsetWidth)});return(A,D)=>{var P,O,I,N,F,j;return A.designState?(b.openBlock(),b.createBlock(b.resolveDynamicComponent(A.componentName),b.mergeProps({key:0,class:["field-wrapper",[b.unref(w)?"selected":""," drag-handler",A.propOptions.class,A.showWrapperComponent?b.unref(_):""]],style:A.propOptions.style,onClick:D[0]||(D[0]=b.withModifiers(L=>b.unref(n)(A.widget,A.parentWidget,A.parentList),["stop"])),ref_key:"wrapperRef",ref:S,tabindex:0},h(A.componentName)?(O=(P=A.propOptions)==null?void 0:P.fieldObj)==null?void 0:O.attrs:{}),{default:b.withCtx(()=>{var L,V,X;return[b.renderSlot(A.$slots,"default",{data:b.unref(x)}),((V=(L=A.designer)==null?void 0:L.selectedWidget)==null?void 0:V.id)===((X=A.widget)==null?void 0:X.id)?(b.openBlock(),b.createElementBlock("div",{key:0,class:"action",ref_key:"dragHandlerRef",ref:E},[b.createVNode(Ebe,{simple:b.unref(C),"design-state":A.designState,designer:A.designer,widget:A.widget,"parent-widget":A.parentWidget,"parent-list":A.parentList,parentTree:b.unref(o),hidden:b.unref(m)},{default:b.withCtx(()=>[b.renderSlot(A.$slots,"drag")]),_:3},8,["simple","design-state","designer","widget","parent-widget","parent-list","parentTree","hidden"])],512)):b.createCommentVNode("",!0)]}),_:3},16,["class","style"])):!b.unref(m)||b.unref(y)?(b.openBlock(),b.createElementBlock(b.Fragment,{key:1},[A.showWrapperComponent?(b.openBlock(),b.createBlock(b.resolveDynamicComponent(A.componentName),b.mergeProps({key:0},h(A.componentName)?(N=(I=A.propOptions)==null?void 0:I.fieldObj)==null?void 0:N.attrs:{},b.toHandlers(h(A.componentName)?(j=(F=A.propOptions)==null?void 0:F.fieldObj)==null?void 0:j.events:{}),{class:[A.propOptions.class,b.unref(_),b.unref(m)&&b.unref(y)?"hlhidden":""],style:{...b.unref(x).injectStyle,...A.propOptions.style}}),{default:b.withCtx(()=>[b.renderSlot(A.$slots,"default",b.mergeProps({data:b.unref(x)},A.$props))]),_:3},16,["class","style"])):b.renderSlot(A.$slots,"default",b.mergeProps({key:1,data:b.unref(x)},A.$props))],64)):b.createCommentVNode("",!0)}}}),Sbe=b.defineComponent({componentName:An.ContainerWidget}),Cbe=b.defineComponent({...Sbe,__name:"cont-widget",props:{...ma},setup(e,{expose:t}){const n=e,{watchPropAndSaveHistoryStep:r,fieldObj:a,exposed:o}=In(n),{customClass:i}=Ju({widget:n.widget});return r(qt.cols),t({...o}),(u,l)=>(b.openBlock(),b.createBlock(Nr,b.mergeProps(u.$props,{showWrapperComponent:!0,"prop-options":{fieldObj:b.unref(a),class:[b.unref(i)]}}),{default:b.withCtx(()=>{var s;return[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((s=u.widget)==null?void 0:s.cols,(c,f)=>{var p;return b.openBlock(),b.createBlock(l8,{key:c.id,widget:c,designer:u.designer,"design-state":u.designState,"parent-list":(p=u.widget)==null?void 0:p.cols,"parent-widget":u.widget},null,8,["widget","designer","design-state","parent-list","parent-widget"])}),128))]}),_:1},16,["prop-options"]))}}),Fyt="",Uj=Object.freeze(Object.defineProperty({__proto__:null,default:Cbe},Symbol.toStringTag,{value:"Module"}));function Abe(e){const t=e.widget,n=e.designer,r=n==null?void 0:n.pageConfig,a=e==null?void 0:e.widgetList,o=b.ref({}),i={},{fieldModel:u,fieldName:l,fieldEditor:s,attrs:c,events:f,hasFieldOptions:p,exposed:d,fieldObj:m,watchOption:v,propResultOpt:h,extendAttrs:g}=In(e),{off$:y,on$:x,emit$:_,broadcast:w}=Bb();var{instance:E}=Xo();const{setAllRefList:S}=Qf(o.value),C={designState:e==null?void 0:e.designState,pageConfig:r,globalConfig:h==null?void 0:h.globalConfig},{formModel:T,setData:A,getData:D,clearData:P}=a8(a,{...C}),{handleFunc:O}=t8({options:r},C),I=b.reactive({}),N=()=>{y(Dn.fieldChange),x(Dn.fieldChange,me=>{W(me==null?void 0:me.fieldName,me==null?void 0:me.newValue,me==null?void 0:me.oldValue),d==null||d.setValue(T),K(me==null?void 0:me.fieldName,me==null?void 0:me.newValue,me==null?void 0:me.oldValue)})},F=()=>{y(Dn.fieldValidation),x(Dn.fieldValidation,me=>{var xe;(xe=s.value)==null||xe.validateField(me==null?void 0:me.propName)})},j=()=>{y(Dn.fieldRuleChange),x(Dn.fieldRuleChange,me=>{var pe;var xe=(pe=me==null?void 0:me.rules)==null?void 0:pe.map(ye=>({required:ye.required,message:ye.message,trigger:ye.trigger,validator:ye.validator}));Object.assign(I,{[me==null?void 0:me.fieldName]:xe}),c.value.rules=I})},L=b.ref(!1),V=b.reactive({}),X=b.reactive({}),R=me=>{f_(X),mr(X,me)},M=()=>({change_info:or(V),before_info:or(X),flag:L.value}),K=(me,xe,pe)=>{L.value=!0,me&&mr(V,{[me]:{oldValue:pe,newValue:xe}})},G=()=>{L.value=!1,f_(V),R(D())},W=(me,xe,pe)=>{O(f.value.formDataChange,{field:{fieldName:me,newValue:xe,oldValue:pe},formModel:T})},Z=()=>{O(f.value.formCreated)},le=()=>{O(f.value.formMounted)},oe=()=>{j(),N(),F(),Z()},re=me=>{var xe;(xe=s.value)==null||xe.clearValidate(me)},ne=()=>{S(ga.resetField),b.nextTick(()=>{re()})},ve=(me,xe)=>{let pe=[];for(let we in me){var ye=me[we],Se=ye==null?void 0:ye.filter(ke=>(ke==null?void 0:ke.force)===xe);Se==null||Se.forEach(ke=>{var J;const ee=(J=ke==null?void 0:ke.rule)==null?void 0:J.label;ke.message&&pe.push(goe(ee?"【"+ee+"】":"",ke.message,":"))})}return aN(pe)},Y=(me,xe)=>{var pe={};return J0(xe,ye=>{var Se=gt.getName(ye),we=Ua(me,Se);return we&&(pe[Se]=me[Se]),we},!1),pe},Q=(me=!0)=>{var Se,we,ke;let xe=D(),pe=function(){},ye=new Promise(function(ee,J){pe=function(te,fe){(fe?J:ee)({data:te,isSuccess:!fe,message:fe})}});return!((Se=s.value)!=null&&Se.validate)||!me?(pe(xe),ye):((ke=(we=s.value)==null?void 0:we.validate)==null||ke.call(we,(ee,J)=>{if(ee)pe(xe);else{var te=ve(J,!0);if(te&&te.length>0){pe(xe,te);return}var fe=ve(J,!1);if(fe&&fe.length>0){fe.push(ie.i18nt("designer.hint.continue")),DF.multiple(fe).then(Ae=>{pe(xe)});return}}}),ye)},ae=(me,xe=!0)=>{if(!t)return;var pe=Y(me,[t]);A(pe,xe);const ye=["refList","widgetRefList"];w(An.ContainerWidget,f0.setFormData,me,E,ye),w(An.FieldWidget,f0.setFormData,me,E,ye)},he=me=>new Promise((xe,pe)=>{const ye=(J,te)=>{var Ae,Pe,Fe;let fe=(Ae=g.value)!=null&&Ae.formDataLoaded?(Fe=(Pe=g.value)==null?void 0:Pe.formDataLoaded)==null?void 0:Fe.call(Pe,D(),J):J;ko(fe)?ae(fe,!te):fe={},R(fe),xe(fe)},Se=()=>{v(me,qt.newDataSource,void 0,(J,te)=>{ye(J,!0)})},we=()=>{v(me,qt.editDataSource,void 0,(J,te)=>{var Ae,Pe;if(((Pe=(Ae=g.value)==null?void 0:Ae.needFormAdd)==null?void 0:Pe.call(Ae,J))&&ee){Se();return}ye(J,!1)})},ke=p(qt.editDataSource),ee=p(qt.newDataSource);ke?we():ee&&Se()});return oe(),b.onMounted(()=>{hN(),le()}),{widgetRefList:o,allWidgetRefList:i,fieldEditor:s,formModel:T,pageConfig:r,widgetList:a,fieldModel:u,fieldName:l,attrs:c,extendAttrs:g,events:f,rules:I,loadData:he,clearData:P,exposed:{...d,setValue:ae,getValue:Q,resetField:ne,clearData:P,loadData:he,getData:D,clearChangeRecord:G,getChangeRecord:M,emit$:_},fieldObj:m}}const Tbe=b.defineComponent({componentName:An.ContainerWidget}),Dbe=b.defineComponent({...Tbe,__name:"form-widget",props:{...ma},setup(e,{expose:t}){var m;const n=e,{exposed:r,formModel:a,fieldEditor:o,attrs:i,events:u,widgetRefList:l,extendAttrs:s,fieldName:c,fieldObj:f,loadData:p}=Abe({...n,widgetList:(m=n==null?void 0:n.widget)==null?void 0:m.widgetList}),d=c.value;return Yu.globalProvide({globalFormName:d,globalDataModel:a}),b.onMounted(()=>{var v;(v=s.value)!=null&&v.loadDataWhenInit&&!n.designState&&p(!0).then(h=>{}).catch(h=>{}).finally(()=>{r.clearChangeRecord()})}),t({...r}),(v,h)=>{const g=b.resolveComponent("el-form"),y=b.resolveDirective("loading");return b.openBlock(),b.createBlock(Nr,b.mergeProps(v.$props,{"prop-options":{fieldObj:b.unref(f)}}),{default:b.withCtx(({data:x})=>{var _,w;return[b.withDirectives((b.openBlock(),b.createBlock(g,b.mergeProps({ref_key:"fieldEditor",ref:o,model:b.unref(a)},b.unref(i),b.toHandlers(b.unref(u)),{class:x.injectClass,key:(_=b.unref(f))==null?void 0:_.fieldKey,"element-loading-text":b.unref(s).loadingText,onSubmit:h[0]||(h[0]=b.withModifiers(()=>{},["prevent"]))}),{default:b.withCtx(()=>[b.createVNode(Jr,b.mergeProps(v.$props,{dragClass:"formDrag",model:b.unref(a),provideModel:!0,"component-class":x.componentWrapperClass,refList:b.unref(l)}),null,16,["model","component-class","refList"])]),_:2},1040,["model","class","element-loading-text"])),[[y,(w=b.unref(s))==null?void 0:w.showLoading]])]}),_:1},16,["prop-options"])}}}),Myt="",Hj=Object.freeze(Object.defineProperty({__proto__:null,default:Xa(Dbe,[["__scopeId","data-v-d2770e0b"]])},Symbol.toStringTag,{value:"Module"})),kbe=b.defineComponent({componentName:An.ContainerWidget}),Wj=b.defineComponent({...kbe,__name:"grid-col-widget",props:{...ma},setup(e,{expose:t}){const n=e,{attrs:r,fieldObj:a,extendAttrs:o,exposed:i}=In(n),u=b.computed(()=>n.propOptions.colHeight?{height:n.propOptions.colHeight}:{}),{componentWrapperClass:l}=Ju({widget:n.widget}),s=b.computed(()=>(Object.keys(r.value).forEach(c=>{var d,m;var f=["xs","sm","md","lg","xl"],p=["span"];!((d=r.value)!=null&&d.responsive)&&f.includes(c)&&delete r.value[c],(m=r.value)!=null&&m.responsive&&p.includes(c)&&delete r.value[c]}),b.reactive(r.value)));return t({...i}),(c,f)=>{var p,d,m;return b.openBlock(),b.createBlock(Nr,b.mergeProps(c.$props,{showWrapperComponent:!0,"component-name":"el-col",key:(p=c.widget)==null?void 0:p.id,"prop-options":{fieldObj:{...b.unref(a),attrs:b.unref(s)},class:["content-cell","nopadding","nomargin",(d=b.unref(o))==null?void 0:d.horizontalAlign,(m=b.unref(o))==null?void 0:m.verticalAlign],style:b.unref(u)}}),{default:b.withCtx(()=>[b.createVNode(Jr,b.mergeProps(c.$props,{dragClass:"dragSize1","component-class":b.unref(l)}),null,16,["component-class"])]),_:1},16,["prop-options"])}}}),Gj=Object.freeze(Object.defineProperty({__proto__:null,default:Wj},Symbol.toStringTag,{value:"Module"})),Pbe=b.defineComponent({componentName:An.ContainerWidget}),Obe=b.defineComponent({...Pbe,__name:"grid-widget",props:{...ma},setup(e,{expose:t}){const n=e,{extendAttrs:r,watchPropAndSaveHistoryStep:a,fieldObj:o,exposed:i}=In(n),{customClass:u}=Ju({widget:n.widget});return a(qt.cols),t({...i}),(l,s)=>{var c;return b.openBlock(),b.createBlock(Nr,b.mergeProps(l.$props,{"component-name":"el-row",key:(c=l.widget)==null?void 0:c.id,showWrapperComponent:!0,"prop-options":{fieldObj:b.unref(o),class:["nopadding","nomargin",b.unref(u)]}}),{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(l.widget.cols,(f,p)=>(b.openBlock(),b.createBlock(Wj,{key:f.id,widget:f,designer:l.designer,"design-state":l.designState,"parent-list":l.widget.cols,"parent-widget":l.widget,"prop-options":{colHeight:b.unref(r).colHeight}},null,8,["widget","designer","design-state","parent-list","parent-widget","prop-options"]))),128))]),_:1},16,["prop-options"])}}}),Kj=Object.freeze(Object.defineProperty({__proto__:null,default:Obe},Symbol.toStringTag,{value:"Module"})),Ibe=["title"],Bbe=b.defineComponent({componentName:An.ContainerWidget}),Xj=b.defineComponent({...Bbe,__name:"ltable-col-widget",props:{...ma},setup(e,{expose:t}){const n=e,{insertTableRow:r,insertTableCol:a,mergeTableWholeRow:o,mergeTableRow:i,mergeTableCol:u,mergeTableWholeCol:l,undoMergeTableCol:s,undoMergeTableRow:c,deleteTableWholeCol:f,deleteTableWholeRow:p,copyTableWholeRow:d,copyTableWholeCol:m}=kj(),{emitHistoryChangeAfter:v}=Ib(n.designer),{attrs:h,fieldObj:g,exposed:y}=In(n),x=b.computed(()=>h.value.rowspan),_=b.computed(()=>h.value.colspan),w=b.computed(()=>h.value.cellWidth),E=b.computed(()=>h.value.cellHeight),S=b.computed(()=>{var Se,we;return((we=(Se=n.propOptions)==null?void 0:Se.colAttrs)==null?void 0:we.colIndex)||0}),C=b.computed(()=>{var Se,we;return((we=(Se=n.propOptions)==null?void 0:Se.colAttrs)==null?void 0:we.colArray)||[]}),T=b.computed(()=>{var Se,we;return((we=(Se=n.propOptions)==null?void 0:Se.colAttrs)==null?void 0:we.rowIndex)||0}),A=b.computed(()=>{var Se,we;return((we=(Se=n.propOptions)==null?void 0:Se.colAttrs)==null?void 0:we.rowArray)||[]}),D=b.computed(()=>{var Se,we;return((we=(Se=n.propOptions)==null?void 0:Se.colAttrs)==null?void 0:we.colLength)||0}),P=b.computed(()=>{var Se,we;return((we=(Se=n.propOptions)==null?void 0:Se.colAttrs)==null?void 0:we.rowLength)||0}),{componentWrapperClass:O}=Ju({widget:n.widget}),I=b.computed(()=>S.value<=0||gt.getOptions(C.value[S.value-1],"rowspan")!=x.value),N=b.computed(()=>{let Se=S.value+(_.value||0);return S.value>=D.value-1||Se>D.value-1||gt.getOptions(C.value[Se],"rowspan")!==x.value}),F=b.computed(()=>D.value<=1||D.value===_.value),j=b.computed(()=>T.value<=0||gt.getOptions(A.value[T.value-1].cols[S.value],"colspan")!==_.value),L=b.computed(()=>{let Se=T.value+(x.value||0);return T.value>=P.value-1||Se>P.value-1||gt.getOptions(A.value[Se].cols[S.value],"colspan")!==_.value}),V=b.computed(()=>P.value<=1||P.value===x.value),X=b.computed(()=>{var Se;return((Se=Kt(n.widget))==null?void 0:Se.merged)||(x.value||1)<=1}),R=b.computed(()=>{var Se;return((Se=Kt(n.widget))==null?void 0:Se.merged)||(x.value||1)<=1}),M=b.computed(()=>D.value===1||_.value===D.value),K=b.computed(()=>P.value===1||x.value===P.value),G=()=>{var Se;v(a(Kt(n.parentWidget),S.value,T.value,!0),`insertLeftCol ${(Se=n.widget)==null?void 0:Se.id}`)},W=()=>{var Se;v(a(Kt(n.parentWidget),S.value,T.value,!1),`insertRightCol ${(Se=n.widget)==null?void 0:Se.id}`)},Z=()=>{var Se;v(r(Kt(n.parentWidget),T.value,T.value,S.value,!0),`insertAboveRow ${(Se=n.widget)==null?void 0:Se.id}`)},le=()=>{var Se;v(r(Kt(n.parentWidget),T.value,T.value,S.value,!1),`insertBelowRow ${(Se=n.widget)==null?void 0:Se.id}`)},oe=()=>{var Se;v(u(A.value,C.value,T.value,S.value,!0,n.widget),`mergeLeftCol ${(Se=n.widget)==null?void 0:Se.id}`)},re=()=>{var Se;v(u(A.value,C.value,T.value,S.value,!1,n.widget),`mergeRightCol ${(Se=n.widget)==null?void 0:Se.id}`)},ne=()=>{var Se;v(o(A.value,C.value,T.value,S.value),`mergeWholeRow ${(Se=n.widget)==null?void 0:Se.id}`)},ve=()=>{var Se;v(i(A.value,T.value,S.value,!0,n.widget),`mergeAboveRow ${(Se=n.widget)==null?void 0:Se.id}`)},Y=()=>{var Se;v(i(A.value,T.value,S.value,!1,n.widget),`mergeBelowRow ${(Se=n.widget)==null?void 0:Se.id}`)},Q=()=>{var Se;v(l(A.value,C.value,T.value,S.value),`mergeWholeCol ${(Se=n.widget)==null?void 0:Se.id}`)},ae=()=>{var Se;v(s(A.value,T.value,S.value,_.value,x.value),`undoMergeCol ${(Se=n.widget)==null?void 0:Se.id}`)},he=()=>{var Se;v(c(A.value,T.value,S.value,_.value,x.value),`undoMergeRow ${(Se=n.widget)==null?void 0:Se.id}`)},me=()=>{var Se;v(f(A.value,S.value),`deleteWholeCol ${(Se=n.widget)==null?void 0:Se.id}`)},xe=()=>{var Se;v(p(A.value,T.value),`deleteWholeRow ${(Se=n.widget)==null?void 0:Se.id}`)},pe=()=>{var Se;v(m(A.value,S.value),`copyWholeCol ${(Se=n.widget)==null?void 0:Se.id}`)},ye=()=>{var Se;v(d(A.value,T.value),`copyWholeRow ${(Se=n.widget)==null?void 0:Se.id}`)};return t({...y}),(Se,we)=>{const ke=b.resolveComponent("el-dropdown-item"),ee=b.resolveComponent("el-dropdown-menu"),J=b.resolveComponent("el-dropdown");return b.openBlock(),b.createBlock(Nr,b.mergeProps(Se.$props,{"show-wrapper-component":!0,"component-name":"td","prop-options":{class:"table-cell",style:{width:b.unref(w)+"!important"||"",height:b.unref(E)+"!important"||""},fieldObj:{...b.unref(g),colspan:b.unref(_).value||1,rowspan:b.unref(x).value||1}}}),{drag:b.withCtx(()=>[b.createVNode(J,{trigger:"click",size:"small"},{dropdown:b.withCtx(()=>[b.createVNode(ee,null,{default:b.withCtx(()=>[b.createVNode(ke,{onClick:we[0]||(we[0]=te=>G())},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.insertColumnToLeft")),1)]),_:1}),b.createVNode(ke,{onClick:we[1]||(we[1]=te=>W())},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.insertColumnToRight")),1)]),_:1}),b.createVNode(ke,{onClick:we[2]||(we[2]=te=>Z())},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.insertRowAbove")),1)]),_:1}),b.createVNode(ke,{onClick:we[3]||(we[3]=te=>le())},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.insertRowBelow")),1)]),_:1}),b.createVNode(ke,{onClick:we[4]||(we[4]=te=>oe()),disabled:b.unref(I),divided:""},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.mergeLeftColumn")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[5]||(we[5]=te=>re()),disabled:b.unref(N)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.mergeRightColumn")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[6]||(we[6]=te=>ne()),disabled:b.unref(F)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.mergeEntireRow")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[7]||(we[7]=te=>ve()),disabled:b.unref(j),divided:""},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.mergeRowAbove")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[8]||(we[8]=te=>Y()),disabled:b.unref(L)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.mergeRowBelow")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[9]||(we[9]=te=>Q()),disabled:b.unref(V)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.mergeEntireColumn")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[10]||(we[10]=te=>he()),disabled:b.unref(R),divided:""},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.undoMergeRow")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[11]||(we[11]=te=>ae()),disabled:b.unref(X)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.undoMergeCol")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[12]||(we[12]=te=>me()),disabled:b.unref(M),divided:""},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.deleteEntireCol")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[13]||(we[13]=te=>xe()),disabled:b.unref(K)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.deleteEntireRow")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[14]||(we[14]=te=>pe()),divided:""},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.copyEntireCol")),1)]),_:1}),b.createVNode(ke,{onClick:we[15]||(we[15]=te=>ye())},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.copyEntireRow")),1)]),_:1})]),_:1})]),default:b.withCtx(()=>[b.createElementVNode("i",{title:b.unref(ie).i18nt("designer.hint.cellSetting")},[b.createVNode(Zi,{name:"@el-menu"})],8,Ibe)]),_:1})]),default:b.withCtx(()=>[b.createVNode(Jr,b.mergeProps(Se.$props,{"component-class":b.unref(O)}),null,16,["component-class"])]),_:1},16,["prop-options"])}}}),Yj=Object.freeze(Object.defineProperty({__proto__:null,default:Xj},Symbol.toStringTag,{value:"Module"})),Nbe=["element-loading-text"],Fbe=b.defineComponent({componentName:An.ContainerWidget}),Mbe=b.defineComponent({...Fbe,__name:"ltable-widget",props:{...ma},setup(e,{expose:t}){const n=e,{extendAttrs:r,fieldObj:a,exposed:o}=In(n),{customClass:i}=Ju({widget:n.widget});return t({...o}),(u,l)=>{const s=b.resolveDirective("loading");return b.openBlock(),b.createBlock(Nr,b.mergeProps(u.$props,{"prop-options":{fieldObj:b.unref(a)}}),{default:b.withCtx(()=>{var c,f,p;return[(b.openBlock(),b.createElementBlock("div",{key:(c=u.widget)==null?void 0:c.id,class:b.normalizeClass(["table-container",b.unref(i)])},[b.withDirectives((b.openBlock(),b.createElementBlock("table",{class:"table-layout","element-loading-text":b.unref(r).loadingText},[b.createElementVNode("tbody",null,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((f=u.widget)==null?void 0:f.rows,(d,m)=>(b.openBlock(),b.createElementBlock("tr",{key:d.id},[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(d.cols,(v,h)=>{var g,y;return b.openBlock(),b.createElementBlock(b.Fragment,null,[v.merged?b.createCommentVNode("",!0):(b.openBlock(),b.createBlock(Xj,{widget:v,designer:u.designer,"design-state":u.designState,key:v.id,"parent-list":d.cols,"parent-widget":u.widget,"prop-options":{colAttrs:{rowIndex:m,rowLength:(g=u.widget)==null?void 0:g.rows.length,rowArray:(y=u.widget)==null?void 0:y.rows,colIndex:h,colLength:d.cols.length,colArray:d.cols}}},null,8,["widget","designer","design-state","parent-list","parent-widget","prop-options"]))],64)}),256))]))),128))])],8,Nbe)),[[s,(p=b.unref(r))==null?void 0:p.showLoading]])],2))]}),_:1},16,["prop-options"])}}}),Ryt="",Jj=Object.freeze(Object.defineProperty({__proto__:null,default:Xa(Mbe,[["__scopeId","data-v-b4d3bf11"]])},Symbol.toStringTag,{value:"Module"})),Lbe=b.defineComponent({componentName:An.ContainerWidget}),Zj=b.defineComponent({...Lbe,__name:"tab-pane-widget",props:{...ma},setup(e,{expose:t}){const n=e,{attrs:r,exposed:a,fieldObj:o}=In(n),{componentWrapperClass:i,customClass:u}=Ju({widget:n.widget});return t({...a}),(l,s)=>{var c;return b.openBlock(),b.createBlock(Nr,b.mergeProps(l.$props,{"show-wrapper-component":!0,"component-name":"el-tab-pane",key:(c=l.widget)==null?void 0:c.id,"prop-options":{fieldObj:b.unref(o),class:["content-cell",b.unref(u)]}}),{default:b.withCtx(()=>[b.createVNode(Jr,b.mergeProps(l.$props,{dragClass:"dragSize","component-class":b.unref(i)}),null,16,["component-class"])]),_:1},16,["prop-options"])}}}),Qj=Object.freeze(Object.defineProperty({__proto__:null,default:Zj},Symbol.toStringTag,{value:"Module"})),Rbe=b.defineComponent({componentName:An.ContainerWidget}),jbe=b.defineComponent({...Rbe,__name:"tabs-widget",props:{...ma},setup(e,{expose:t}){const n=e,{fieldKey:r,fieldObj:a,attrs:o,extendAttrs:i,events:u,exposed:l,watchPropAndSaveHistoryStep:s}=In(n),{addTabPaneOfTabs:c,initTabPane:f,getActiveTab:p,deleteTabPaneOfTabs:d,findTabPaneOfTabs:m}=Pj(),v=b.computed(()=>{const S=p(Kt(n.widget));if(S)return gt.getName(S)}),h=b.ref(),g=b.computed({get:()=>h.value||v.value,set:S=>{h.value=S}}),y=()=>g.value,x=S=>{g.value=S},_=S=>{var C=m(Kt(n.widget),S);Ia(C)||d(Kt(n.widget),C)},w=S=>{c(Kt(n.widget),f(S))},E=()=>{g.value=Kt(v.value),l.refreshKey()};return s(qt.tabs),t({...l,tabAdd:w,tabRemove:_,getValue:y,setValue:x,refresh:E}),(S,C)=>{const T=b.resolveComponent("el-tabs"),A=b.resolveDirective("loading");return b.openBlock(),b.createBlock(Nr,b.mergeProps(S.$props,{"prop-options":{fieldObj:b.unref(a)}}),{default:b.withCtx(({data:D})=>{var P;return[b.withDirectives((b.openBlock(),b.createBlock(T,b.mergeProps({key:b.unref(r)},b.unref(o),b.toHandlers(b.unref(u)),{modelValue:b.unref(g),"onUpdate:modelValue":C[0]||(C[0]=O=>b.isRef(g)?g.value=O:null),class:D.injectClass,style:{...D.injectStyle,width:D.ctrlWidth},"element-loading-text":b.unref(i).loadingText}),{default:b.withCtx(()=>{var O;return[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((O=S.widget)==null?void 0:O.tabs,(I,N)=>{var F;return b.openBlock(),b.createBlock(Zj,{key:b.unref(gt).getName(I),widget:I,designer:S.designer,"design-state":S.designState,"parent-list":(F=S.widget)==null?void 0:F.tabs,"parent-widget":S.widget},null,8,["widget","designer","design-state","parent-list","parent-widget"])}),128))]}),_:2},1040,["modelValue","class","style","element-loading-text"])),[[A,(P=b.unref(i))==null?void 0:P.showLoading]])]}),_:1},16,["prop-options"])}}}),qj=Object.freeze(Object.defineProperty({__proto__:null,default:jbe},Symbol.toStringTag,{value:"Module"}));function Vbe(e){const t=b.ref({}),{componentWrapperClass:n,customClass:r}=Ju({widget:e.widget}),{exposed:a,attrs:o,extendAttrs:i,fieldKey:u,fieldObj:l}=In(e),{setAllRefList:s}=Qf(t.value),c=(m=!1)=>{s(ga.setDisabled,{flag:m})},f=(m=!1)=>{var v;(v=a==null?void 0:a.setHidden)==null||v.call(a,m)},p=()=>{s(ga.resetField)};return(m=>{b.watch(()=>{var v;return(v=o.value)==null?void 0:v[m]},v=>{v!=null&&m==="disabled"&&c(v)},{immediate:!0})})("disabled"),{extendAttrs:i,attrs:o,exposed:{...a,setDisabled:c,setHidden:f,resetField:p},componentWrapperClass:n,customClass:r,fieldKey:u,fieldObj:l,widgetRefList:t}}const zbe=["element-loading-text"],Ube=b.defineComponent({componentName:An.ContainerWidget}),Hbe=b.defineComponent({...Ube,__name:"wrapper-widget",props:{...ma},setup(e,{expose:t}){const n=e,{attrs:r,extendAttrs:a,exposed:o,customClass:i,componentWrapperClass:u,fieldObj:l,fieldKey:s,widgetRefList:c}=Vbe(n);return t({...o}),(f,p)=>{const d=b.resolveDirective("loading");return b.openBlock(),b.createBlock(Nr,b.mergeProps(f.$props,{"prop-options":{fieldObj:b.unref(l)},"component-name":"div","show-wrapper-component":!0}),{default:b.withCtx(({data:m})=>{var v,h,g;return[f.designState||!((v=b.unref(r))!=null&&v.hidden)||!((h=b.unref(r))!=null&&h.lazy)?b.withDirectives((b.openBlock(),b.createElementBlock("div",{ref:"fieldEditor",class:b.normalizeClass(m.injectClass),key:b.unref(s),"element-loading-text":b.unref(a).loadingText},[b.createVNode(Jr,b.mergeProps(f.$props,{dragClass:"dragSize","component-class":m.componentWrapperClass,refList:b.unref(c)}),null,16,["component-class","refList"])],10,zbe)),[[d,(g=b.unref(a))==null?void 0:g.showLoading]]):b.createCommentVNode("",!0)]}),_:1},16,["prop-options"])}}}),$j=Object.freeze(Object.defineProperty({__proto__:null,default:Hbe},Symbol.toStringTag,{value:"Module"}));function eV(e){let t=new Map;for(const n in e){let r=e==null?void 0:e[n],a=r==null?void 0:r.default,o=(a==null?void 0:a.name)||(a==null?void 0:a.__name);t[o]=a}return t}function tV(){return eV(Object.assign({"../cont-cell-widget.vue":zj,"../cont-widget.vue":Uj,"../form-widget.vue":Hj,"../grid-col-widget.vue":Gj,"../grid-widget.vue":Kj,"../ltable-col-widget.vue":Yj,"../ltable-widget.vue":Jj,"../tab-pane-widget.vue":Qj,"../tabs-widget.vue":qj,"../wrapper-widget.vue":$j}))}const Wbe={install:(e,t)=>{const n=tV();for(const r in Object.keys(n))e.component(r,n[r])}},Gbe={install:(e,t)=>{const n=tV();for(const r in Object.keys(n))e.component(r,n[r])}},Kbe={style:{width:"99%",height:"99%",margin:"0 auto"}},Xbe=["src","id"],Ybe={class:"dialog-footer"},Jbe=b.defineComponent({__name:"index",props:{...wle},emits:["ok","cancel","close"],setup(e,{emit:t}){const n=b.ref(!0),r=b.ref(),a=b.ref(!0),o=()=>{a.value=!1};return(i,u)=>{const l=b.resolveComponent("el-button"),s=b.resolveComponent("el-dialog"),c=b.resolveDirective("loading");return b.openBlock(),b.createBlock(s,{modelValue:n.value,"onUpdate:modelValue":u[3]||(u[3]=f=>n.value=f),class:"--hl-dialog1",fullscreen:i.fullscreen,title:i.title,width:i.width,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!0,top:"15vh",style:b.normalizeStyle({height:i.height})},{footer:b.withCtx(()=>{var f,p,d;return[b.createElementVNode("span",Ybe,[(f=i.dialogType)!=null&&f.includes(b.unref(y_).close)?(b.openBlock(),b.createBlock(l,{key:0,onClick:u[0]||(u[0]=m=>{t("close",{})}),size:"large"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.close")),1)]),_:1})):b.createCommentVNode("",!0),(p=i.dialogType)!=null&&p.includes(b.unref(y_).cancel)?(b.openBlock(),b.createBlock(l,{key:1,onClick:u[1]||(u[1]=m=>{t("cancel",{iframeRef:r.value})}),size:"large"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.close")),1)]),_:1})):b.createCommentVNode("",!0),(d=i.dialogType)!=null&&d.includes(b.unref(y_).save)?(b.openBlock(),b.createBlock(l,{key:2,type:"primary",onClick:u[2]||(u[2]=m=>{t("ok",{iframeRef:r.value})}),size:"large"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.confirm")),1)]),_:1})):b.createCommentVNode("",!0)])]}),default:b.withCtx(()=>[b.withDirectives((b.openBlock(),b.createElementBlock("div",Kbe,[b.createElementVNode("iframe",{frameborder:"0",ref_key:"iframeRef",ref:r,style:{width:"100%",height:"100%"},src:i.url,onLoad:o,id:b.unref(fg)()},null,40,Xbe)])),[[c,a.value]])]),_:1},8,["modelValue","fullscreen","title","width","style"])}}}),Uyt="",nV=Object.freeze(Object.defineProperty({__proto__:null,default:Jbe},Symbol.toStringTag,{value:"Module"}));function Zbe(){return eV(Object.assign({"./index.vue":nV}))}const Qbe={install:(e,t)=>{const n=Zbe();e.use(xle);for(const r in Object.keys(n))e.component(r,n[r])}};function qbe(e,t,n,r){const a={r:255,g:255,b:255};return{r:Math.round(e*(1-r)+a.r*r),g:Math.round(t*(1-r)+a.g*r),b:Math.round(n*(1-r)+a.b*r)}}function $be(e,t,n,r=!1,a=5){const o=[];for(let i=0;i<a;i++){const u=qbe(e,t,n,i*.1);o.push(u)}return o}function ewe(e,t=!1,n=5){const r=nwe(e),a=$be(r.r,r.g,r.b,t,n);return a==null?void 0:a.map(o=>twe(o.r,o.g,o.b))}function twe(e,t,n){const r=a=>{const o=a.toString(16);return o.length===1?"0"+o:o};return`#${r(e)}${r(t)}${r(n)}`}function nwe(e){e=e.replace(/^#/,""),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:t&255}}function rwe(e,t){return{cssWithPrimaryColor:b.computed(()=>{var o,i;const r=(t==null?void 0:t.themeColor)||rN.color1;var a={themeColor:r};return(o=ewe(r,!1,10))==null||o.forEach((u,l)=>{a["themeColor-"+l]=u}),!br(e)&&na(e)&&((i=Rr(a))==null||i.forEach(u=>{var l=`var\\(--${u}\\)`;e=Pc(e,l,a[u])})),e})}}function iwe(e){var{addWindowName:t,addWindowHook:n}=xC();t(),n("openModalAsync",r=>{Q9(e==null?void 0:e.instance,r)}),n("ElMessage",ta.ElMessage),n("ElMessageBox",ta.ElMessageBox),n("ElNotification",ta.ElNotification)}function awe(e){const t=e.designer,n=t==null?void 0:t.pageConfig,r=b.ref(t==null?void 0:t.widgetList),a=e==null?void 0:e.designState,o=e==null?void 0:e.pageData,i=e==null?void 0:e.renderConfig,u={},l={},{off$:s,on$:c,emit$:f}=Bb();var{instance:p,proxy:d}=Xo();const m={instance:p,designState:a,formData:o,pageConfig:n,globalConfig:i},{handleFunc:v}=t8({options:n},m),{callWidgetsExposed:h}=Qf(l),{formModel:g,setData:y,getData:x,clearData:_}=a8(r.value,m),w=new n1(u),E=new n1(l),{findRefByName:S}=Qf(l),{getOneSchemaData:C,getSchemaDataObject:T,getSchemaDatas:A}=Ab(m);let P=(()=>"vfRender"+fu())();const O=()=>{v(n==null?void 0:n.pageCreated)},I=()=>{v(n==null?void 0:n.pageMounted)},N=()=>{if(!n)return;const re=_e.getValue(n.cssCode,!1,!0);if(re){const{cssWithPrimaryColor:ve}=rwe(re,{themeColor:(i==null?void 0:i.themeColor)||""});kM(ve.value,a?"":P)}const ne=_e.getValue(n.functions,!1,!0);ne&&rpe(ne,a?P:"")},F=(re=!0)=>{re&&N(),L(),O(),le(),oe()},j=c_.page,L=()=>{w.setWidgetRef(j,p),E.setWidgetRef(j,p)},V=re=>h(re,ga.getValue),X=(re,ne)=>h(re,ga.setValue,ne),R=(re,ne=!0)=>{h(re,ga.setDisabled,{flag:ne})},M=re=>{R(re,!1)},K=(re,ne=!0)=>{h(re,ga.setHidden,{flag:ne})},G=re=>{K(re,!1)},W=re=>{if(re){var ne=ui(re);if(ne){if(!ne.pageConfig||!ne.widgetList)return"Invalid pageat of page json.";mr(e.pageConfig,ne),N(),b.nextTick(()=>{F(!1),I()})}else return"Set page json failed."}},Z=(re,ne,ve)=>{d==null||d.$emit(f0.formChange,re,ne,ve,g)},le=()=>{s(Dn.fieldChange),c(Dn.fieldChange,re=>{Z(re==null?void 0:re.fieldName,re==null?void 0:re.newValue,re==null?void 0:re.oldValue)})},oe=()=>{s(Dn.fieldValidation),c(Dn.fieldValidation,re=>{})};return F(),b.onMounted(()=>{_(),hN(),I(),iwe({instance:p})}),b.onUnmounted(()=>{_()}),{formModel:g,pageConfig:n,widgetList:r,widgetRefList:u,allWidgetRefList:l,exposed:{findRefByName:S,setPageJson:W,hideWidgets:K,showWidgets:G,disableWidgets:R,enableWidgets:M,getFieldValue:V,setFieldValue:X,setData:y,getData:x,clearData:_,getOneSchemaData:C,getSchemaDataObject:T,getSchemaDatas:A,emit$:f}}}function owe(){const e={},t=(a,o,i)=>{e[a]={opt:o,doEvent:i}},n=(a,o)=>{var u,l;const i=e==null?void 0:e[a==null?void 0:a.toLocaleLowerCase()];if(((u=i==null?void 0:i.opt)==null?void 0:u.ctrlKey)===(o==null?void 0:o.ctrlKey))return(l=i==null?void 0:i.doEvent)==null?void 0:l.call(i)};return{bindKey:t,runEvent:a=>{const o=a.ctrlKey||a.metaKey,i=a.key;n(i,{ctrlKey:o})}}}function swe(e){const{bindKey:t,runEvent:n}=owe(),r=()=>{t("enter",{ctrlKey:!1},u),t("arrowleft",{ctrlKey:!0},l)},a=s=>(r(),n(s)),o="input,select,textarea",i=["textarea"],u=()=>{var d,m;var s=e.querySelectorAll(o);const c=document.activeElement,f=(d=c==null?void 0:c.nodeName)==null?void 0:d.toLocaleLowerCase();if(!f||i.includes(f))return!1;for(var p=0;p<s.length;p++){const v=s[p];if(v==c)return p==s.length-1?!1:((m=s[p+1])==null||m.focus(),!0);v==null||v.blur()}return!1},l=s=>{var d,m;var c=e.querySelectorAll(o);const f=document.activeElement;(d=f==null?void 0:f.nodeName)==null||d.toLocaleLowerCase();for(var p=0;p<c.length;p++){const v=c[p];if(v==f)return p==0?!1:((m=c[p-1])==null||m.focus(),!0);v==null||v.blur()}return!1};return{addKeyBoardEvent:a}}const lwe=["element-loading-text","onKeyup"],uwe=b.defineComponent({componentName:An.VFormRender,name:An.VFormRender}),cwe=b.defineComponent({...uwe,props:{...ma,pageData:{type:Object},renderConfig:{type:Object}},setup(e,{expose:t,emit:n}){const r=e,{formModel:a,exposed:o,widgetList:i,pageConfig:u,allWidgetRefList:l}=awe(r),s=b.computed(()=>{var g,y;return _e.getValue((y=(g=r.designer)==null?void 0:g.pageConfig)==null?void 0:y.layoutType)}),c=b.computed(()=>Kt(hi(_e.getValue(u==null?void 0:u.customClass),!0))),f=b.computed(()=>{var g;return(g=_e.getValue(u==null?void 0:u.componentWrapperClass))==null?void 0:g.join(" ")}),p=b.ref(!1),d={};Yu.globalProvide({formRefList:d,globalRefList:l,globalDataModel:a,globalFormName:An.VFormRender}),b.provide(pi.globalConfig,r.renderConfig),b.provide(pi.isRenderComplete,p);const m=b.ref(),v=g=>{const{addKeyBoardEvent:y}=swe(m.value);y(g)},h=()=>{p.value=!0,n(f0.renderComplete)};return t({...o,componentName:An.VFormRender}),(g,y)=>{const x=b.resolveDirective("loading");return b.withDirectives((b.openBlock(),b.createElementBlock("div",{"element-loading-text":b.unref(ie).i18nt("designer.hint.loading"),class:b.normalizeClass([...b.unref(c),b.unref(s)+"-layout",{loadingLayout:!p.value}]),tabindex:"0",ref_key:"taregtWrapperRef",ref:m,onKeyup:[b.withKeys(v,["enter"]),b.withKeys(v,["left"])]},[b.renderSlot(g.$slots,"header",{},void 0,!0),b.renderSlot(g.$slots,"default",{},()=>[(b.openBlock(),b.createBlock(b.Suspense,{onResolve:h},{default:b.withCtx(()=>[b.createVNode(Jr,{designer:g.designer,"widget-list":b.unref(i),model:b.unref(a),"design-state":!1,"component-class":b.unref(f)},null,8,["designer","widget-list","model","component-class"])]),_:1}))],!0),b.renderSlot(g.$slots,"footer",{},void 0,!0)],42,lwe)),[[x,!p.value]])}}}),Wyt="",rV=Xa(cwe,[["__scopeId","data-v-527104aa"]]);var u8={},fwe={get exports(){return u8},set exports(e){u8=e}};/**!
192
+ return e.formItemFlag||[lt.form,lt.dialog].includes(t)},s8=e=>{const t=e.type;return[lt.treeSelect,lt.cascader,lt.select,lt.checkbox,lt.radio].includes(t)};function In(e){const t=e==null?void 0:e.designState,n=(e==null?void 0:e.created)!=!1,r=e==null?void 0:e.exResetField,a=e==null?void 0:e.extInitFieldModel,o=e==null?void 0:e.exposedWholeInstance,i=e==null?void 0:e.widget,u=e==null?void 0:e.designer,l=u==null?void 0:u.pageConfig,{formRefList:s,globalRefList:c,globalConfig:f,globalFormName:p,globalDataModel:d,rowScope:m}=Yu.globalInject();let v=b.reactive(d||{});const h=Qf(c),g=Qf(s),{instance:y}=Xo(),x=()=>or(v),_=()=>m,w=()=>i,E={designState:t,pageConfig:l,formData:!t&&Vj(i)?v:{},globalConfig:f},S={instance:y,...E},C=Ab(S),T={exposed:{getFormData:!t&&Vj(i)?x:null,findRefByName:h.getWidgetRef,fieldEditor:()=>It.value,getField:w,getRowScope:_,getOneSchemaData:C==null?void 0:C.getOneSchemaData,getSchemaDataObject:C==null?void 0:C.getSchemaDataObject,getSchemaDatas:C==null?void 0:C.getSchemaDatas}},A={instance:o?y:T,...E},{on$:D,dispatch:P,emit$:O}=Bb(),{onCompErrorCaptured:I}=obe(),{existFunc:N}=t8({options:i==null?void 0:i.options},A),{isIdClass:F,getIdByIdClass:j}=p2e(i),{getOneSchemaData:L,getSchemaDataObject:V,getSchemaDatas:X}=Ab(A),R=cbe(),M=(e==null?void 0:e.shareProp)||{s_attr:!0,s_extendAttr:!0,s_events:!0,s_slots:!0,s_fieldName:!0,s_optionItems:!0},{attrs:K,extendAttrs:G,events:W,slots:Z,rules:le,fieldName:oe,buildRules:re,clearRules:ne,disableChangeValidate:ve,enableChangeValidate:Y,optionItems:Q,filterOptionItems:ae,getCheckedOptionText:he,getCheckedOptionValues:me,getCheckedOptionLabels:xe,getCheckedOptionItems:pe,activeOptionItems:ye,activeOptionItem:Se,activeOptionItemIndex:we,setOptionItems:ke,isOptionWidget:ee,setWidgetOption:J,getWidgetOption:te,setFieldEnable:fe,hasFieldOptions:Ae,getFieldOptions:Pe,setFieldOptions:Fe,computedDefaultValue:Me,hasDefaultValue:We,singleOption:Ue,watchOption:Je,addCssClass:ft,removeCssClass:jt}=zs(i,A,M,y);let Ot=null,Wt=b.ref();const It=b.ref(),Vt=()=>oe.value,bt=()=>`${i==null?void 0:i.id}-${TF()}`,Ln=b.ref(bt()),pt=()=>{Ln.value=bt()},vt=b.computed({get:()=>{if(na(Wt.value)){var de=Number(Wt.value);return isNaN(de)?void 0:(Wt.value=de,de)}return Wt.value},set:de=>{Wt.value=de}}),se=b.computed({get:()=>{if(na(Wt.value)){var de=ui(Wt.value);ul(de)&&(Wt.value=de)}return Wt.value},set:de=>{Wt.value=de}}),Ne=de=>{var $e,yt;var Ve=(yt=($e=h.getWidgetRef(oe.value))==null?void 0:$e.exposed)==null?void 0:yt.loadOptionItems;if(Ve!==void 0){Ve==null||Ve(de);return}ke(de)},Oe=de=>{var Ve,$e,yt;return(yt=($e=(Ve=h.getWidgetRef(oe.value))==null?void 0:Ve.exposed)==null?void 0:$e.getCheckedItems)==null?void 0:yt.call($e,de)},Le=de=>{var Ve,$e,yt;return(yt=($e=(Ve=h.getWidgetRef(oe.value))==null?void 0:Ve.exposed)==null?void 0:$e.getCheckedLabels)==null?void 0:yt.call($e,de)},Ye=de=>{var Ve,$e,yt;return(yt=($e=(Ve=h.getWidgetRef(oe.value))==null?void 0:Ve.exposed)==null?void 0:$e.getCheckedText)==null?void 0:yt.call($e,de)},xt=()=>{var Ce;if(!ee())return;const de=(Ce=G.value)==null?void 0:Ce.withAttachData;if(!s8(i)||de===!1)return;const Ve=Wt.value,$e=Le(Ve),yt=Ye(Ve);var Bt=or(Oe(Ve));Nt($e,Bt,yt)},Nt=(de,Ve,$e)=>{var yt={};if(de!=null){let Bt=Pe("textName",!1);[`${oe.value}${ll.optionText}`,Bt].forEach(Ce=>{Ce&&yt[Ce]===void 0&&(yt[Ce]=de)})}if(Ve!=null&&Ti(Ve)!==Ti(Wt.value)){let Bt=Pe("optionName",!1);[`${oe.value}${ll.checkedOptions}`,Bt].forEach(Ce=>{Ce&&yt[Ce]===void 0&&(yt[Ce]=Ve)})}if($e!=null){let Bt=Pe("labelName",!1);de!==$e&&[`${oe.value}${ll.optionLabelName}`,Bt].forEach(Ce=>{Ce&&yt[Ce]===void 0&&(yt[Ce]=$e)})}rn(or(yt))},Gt=de=>{if(Ph(i)){var Ve={[oe.value]:de};rn(Ve)}},rn=de=>{mr(v,de)},Rn=de=>{t||Gt(de)},Br=de=>Pe(de,!1),Ei=()=>{var de=b.toRefs(v);Wt=_e.get(de,oe.value)},Re=de=>{Ot=or(de)},Ze=de=>{t||a&&a(de)},Ke=()=>{We()&&Po(Me()).then(de=>{Gt(de),Ei()})},Ge=(de,Ve)=>{if(!Ph(i))return;O(Dn.fieldValueChanged,{newValue:de,oldValue:Ve});const $e={fieldId:i.id,fieldName:oe.value,newValue:de,oldValue:Ve};P(p,Dn.fieldChange,$e,y)},et=de=>N(de),rt=(de,Ve)=>lh(te(de),Ve),_t=de=>{Rn(de),On(),rt(Dn.onInput,{value:de})},Mt=(de,Ve)=>{var $e,yt,Bt;return(Bt=(yt=($e=h.getWidgetRef(oe.value))==null?void 0:$e.exposed)==null?void 0:yt.handleBeforeChange)==null?void 0:Bt.call(yt,de,Ve)},Et=(...de)=>{var Bt,Ce,Ie;let $e=((Bt=de==null?void 0:de[0])==null?void 0:Bt.target)!=null?(Ie=(Ce=de==null?void 0:de[0])==null?void 0:Ce.target)==null?void 0:Ie.value:de==null?void 0:de[0];$e=or($e);var yt=Mt($e,Ot);yt!=null?Rn(yt):Rn($e),Ge($e,Ot),On(),Re($e)},St=(de=!0)=>{J(qt.readonly,de)},Dt=(de=!0)=>{J(qt.disabled,de)},it=(de=!0)=>{J(qt.hidden,de),de?Fn():ln()},k=(de=!0)=>{fe(qt.required,de),ln()},B=de=>{J(qt.label,de)},z=()=>Wt==null?void 0:Wt.value,H=de=>{Wt.value=de},q=de=>{let Ve=or(z());if(H(de),!Ph(i))return;const $e=z();Ve!==$e&&(Rn($e),Ge(de,Ve))},ge=()=>{We()?Po(Me()).then(de=>{Gt(de)}):Gt(null),r==null||r()},Te=de=>{const Ve=z(),$e=R.insertOnMousePos(It.value,de,Ve);q($e)},je=(de,Ve)=>{b.watch(()=>Wt==null?void 0:Wt.value,($e,yt)=>{de==null||de({id:i.id,name:oe.value,newValue:$e,oldValue:yt})},Ve)},at=de=>{var Ce;de.preventDefault();const Ve=Ie=>{var ct;const He=(ct=Array.from(Ie.classList))==null?void 0:ct.find(zt=>F(zt));return He?j(He):""},$e=document.activeElement;if(!$e)return;const yt=document.getElementsByClassName(I3.formItemTarget);for(var Bt=0;Bt<yt.length;Bt++){const Ie=yt[Bt],He=jj($e,I3.formItemTarget);if(!He)continue;const ct=Ve(Ie),zt=Ve(He);if(ct===zt){if(Bt===yt.length-1)return;const $t=yt[Bt+1],xn=Ve($t),Cn=h.findRefById(xn,y);try{(Ce=Cn==null?void 0:Cn.exposed)==null||Ce.focus()}catch(Qr){Vi.error("handleEnter",Qr)}}}};let ut=()=>{var Ie;let de={componentName:oe.value,refList:s,allRefList:c,fieldEditor:()=>It.value,changeRegisterToRefList:(He,ct)=>{h.changeRegisterToRefList(He,ct),g.changeRegisterToRefList(He,ct)},getField:w,getFormData:x,getValue:z,setValue:H,emit$:O,findRefByName:h.getWidgetRef,findRefById:h.findRefById,callRefFunc:h.callRefFunc,getWidgetOption:te,setWidgetOption:J,refreshKey:pt,getRowScope:_,getOneSchemaData:L,getSchemaDatas:X,getSchemaDataObject:V,addCssClass:ft,removeCssClass:jt},Ve={resetField:ge,getValue:z,setValue:q,refreshDefaultValue:Ke,insertOnMousePos:Te,disableChangeValidate:ve,enableChangeValidate:Y,focus:()=>{R.focus(It.value)},blur:()=>{R.blur(It.value)},getMousePos:()=>{R.getMousePos(It.value)},setMousePos:He=>{R.setMousePos(It.value,He)}},$e={loadOptionItems:Ne,getCheckedItems:Oe,getCheckedLabels:Le},yt={[qt.required]:{name:ga.setRequired,fn:k},[qt.label]:{name:ga.setLabel,fn:B},[qt.hidden]:{name:ga.setHidden,fn:it},[qt.disabled]:{name:ga.setDisabled,fn:Dt},[qt.readonly]:{name:ga.setReadonly,fn:St}},Bt={};(Ie=Rr(yt))==null||Ie.forEach(He=>{if(kh(i,He)){const ct=yt[He];Bt[ct.name]=ct.fn}});var Ce=mr(de,Bt);return Ph(i)&&(Ce=mr(Ce,Ve)),s8(i)&&(Ce=mr(Ce,$e)),Ce};const Ct=b.computed(()=>({attrs:K.value,extendAttrs:G.value,events:W.value,slots:Z.value,fieldKey:Ln.value,fieldEditor:It.value,fieldName:oe.value})),wt=de=>{e.designState&&e.designer&&b.watch(()=>{var Ve;return(Ve=e==null?void 0:e.widget)==null?void 0:Ve[de]},(Ve,$e)=>{const{emitHistoryChange:yt}=UR(e.designer);yt(`edit ${oe.value}.${de},newValue:${Ve},oldValue:${$e}`)},{deep:!0})},Lt=(de,Ve,$e)=>{const yt=b.ref(),Bt=Br(de),Ce=Ie=>{Ve&&(yt.value=Ve(Ie||Bt))};return b.isRef(Bt)?b.watch(Bt,Ie=>{Ce(Ie),$e&&$e(Ie)}):Ce(Bt),yt},cn=()=>{!Ph(i)||t||je(de=>{lbe(c,i==null?void 0:i.id,A),ube(c,i==null?void 0:i.id,gt.getOptions(i,qt.relate),de),xt(),setTimeout(()=>{xt(),Ze(de==null?void 0:de.newValue)},1e3)},{immediate:!0})},On=()=>{const de={propName:oe.value};P(p,Dn.fieldValidation,de,y)},sn=()=>{const de={fieldId:i.id,fieldName:oe.value,rules:le};P(p,Dn.fieldRuleChange,de,y)},ln=()=>{if(!Ph(i))return;const de=re();return sn(),de},Fn=()=>{ne(),sn()},sr=()=>{kh(i,"change")&&(W.value.change=Et),kh(i,"input")&&(W.value.input=_t),D(f0.setFormData,de=>{q(de[oe.value])}),D(Dn.fieldValueChanged,de=>{rt(Dn.onChange,{value:de==null?void 0:de.newValue,oldValue:de==null?void 0:de.oldValue})})},Vr=()=>{let de=oe.value;Ph(i)?((!Ua(v,de)||v[de]===void 0)&&(Gt(null),We()&&Po(Me()).then(Ve=>{Ve==null?Gt(null):Gt(Ve)})),Ei()):We()&&Po(Me()).then(Ve=>{q(Ve)}),Re(z())},Lr=()=>{s8(i)&&b.watch(()=>Q==null?void 0:Q.value,(de,Ve)=>{xt()},{immediate:!0})},Ii=()=>{Je(!0,qt.css,void 0,de=>{ce()})},Li=()=>{const de=b.inject(pi.isRenderComplete);if(de!=null&&de.value){Lr(),cn();return}de!=null&&b.watch(()=>de==null?void 0:de.value,Ve=>{Ve&&(Lr(),cn())},{immediate:!0})},eo=()=>{var de,Ve;if(n)try{Vr(),ln(),sr(),h.registerToRefList(oe.value),g.registerToRefList(oe.value),(Ve=(de=W==null?void 0:W.value)==null?void 0:de.created)==null||Ve.call(de),I()}catch($e){Vi.error("create",$e)}},Ri=()=>{n&&(b.onMounted(()=>{var de,Ve;try{ce(),Ii(),Li(),(Ve=(de=W==null?void 0:W.value)==null?void 0:de.mounted)==null||Ve.call(de)}catch($e){console.log("mounted",i,$e)}}),b.onBeforeUnmount(()=>{h.unregisterFromRefList(oe.value),g.unregisterFromRefList(oe.value)}))},ce=()=>{const de=i==null?void 0:i.id,Ve=te(qt.css);Ve&&de&&tbe(Ve).then($e=>{Mj($e,de)})};return eo(),Ri(),{exposed:ut(),fieldModel:Wt,objFieldModel:se,numFieldModel:vt,fieldEditor:It,fieldKey:Ln,field:i,instance:y,attrs:K,extendAttrs:G,slots:Z,events:W,rules:le,fieldObj:Ct,getValue:z,setValue:H,pageConfig:l,formModel:v,fieldName:oe,propResultOpt:A,optionItems:Q,activeOptionItems:ye,activeOptionItem:Se,activeOptionItemIndex:we,refreshOptionField:xt,filterOptionItems:ae,setOptionItems:ke,getCheckedItems:Oe,getCheckedOptionItems:(de,Ve)=>pe(de||Wt.value,Ve),getCheckedOptionLabels:(de,Ve)=>xe(de||Wt.value,Ve),getCheckedOptionValues:(de,Ve)=>me(de||Wt.value,Ve),getCheckedOptionText:(de,Ve)=>he(de||Wt.value,Ve),refreshKey:pt,watchKeyValue:Lt,watchPropAndSaveHistoryStep:wt,existEvent:et,handleEvent:rt,handleEnter:at,getPropName:Vt,emitFieldDataChange:Ge,syncUpdateFormModel:Rn,getWidgetRef:h.getWidgetRef,clearRules:Fn,buildRules:ln,getFieldOptionModel:Br,getFieldOptions:Pe,hasFieldOptions:Ae,setFieldOptions:Fe,getWidgetOption:te,singleOption:Ue,watchOption:Je,mergeOptionToFormModel:Nt}}const fbe=b.defineComponent({componentName:An.ContainerWidget}),l8=b.defineComponent({...fbe,__name:"cont-cell-widget",props:{...ma},setup(e,{expose:t}){const n=e,r=b.computed(()=>{var u;return`el-${_e.getValue((u=n.widget)==null?void 0:u.partName)}`}),{customClass:a,componentWrapperClass:o}=Ju({widget:{options:n.widget}}),{exposed:i}=In(n);return t({...i}),(u,l)=>{var s,c,f;return b.openBlock(),b.createBlock(b.resolveDynamicComponent(b.unref(r)),{class:b.normalizeClass(["content-cell",b.unref(a)]),direction:(s=u.widget)==null?void 0:s.direction,style:b.normalizeStyle({width:b.unref(_e).getValue((c=u.widget)==null?void 0:c.cellWidth),height:b.unref(_e).getValue((f=u.widget)==null?void 0:f.cellHeight),zIndex:1e3})},{default:b.withCtx(()=>[b.renderSlot(u.$slots,"default",{},()=>{var p,d,m,v,h;return[((d=(p=u.widget)==null?void 0:p.children)==null?void 0:d.length)<=0?(b.openBlock(),b.createBlock(Jr,{key:0,widgetList:(m=u.widget)==null?void 0:m.widgetList,designState:u.designState,designer:u.designer,dragClass:"dragSize2",parentWidget:u.widget,parentList:(v=u.widget)==null?void 0:v.widgetList,"component-class":b.unref(o)},null,8,["widgetList","designState","designer","parentWidget","parentList","component-class"])):b.createCommentVNode("",!0),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((h=u.widget)==null?void 0:h.children,(g,y)=>{var x;return b.openBlock(),b.createBlock(l8,{key:g.id,widget:g,designer:u.designer,"design-state":u.designState,"parent-list":(x=u.widget)==null?void 0:x.children,"parent-widget":u.widget},null,8,["widget","designer","design-state","parent-list","parent-widget"])}),128))]})]),_:3},8,["direction","class","style"])}}}),zj=Object.freeze(Object.defineProperty({__proto__:null,default:l8},Symbol.toStringTag,{value:"Module"})),pbe=["width","height","color"],hbe=["xlink:href"],dbe={key:0,slot:"title"},mbe=b.defineComponent({__name:"index",props:{prefix:{default:"icon"},dir:{default:"svg"},name:null,color:null,size:null,width:{default:"16"},height:{default:"16"},className:null,title:{default:""}},setup(e){var f,p;const t=e,n=t.size||t.width,r=t.size||t.height,a=t.size||t.width,o=t.name,i=b.computed(()=>{var d="svg-icon";return t.className?d+" "+t.className:d}),u=b.ref(),l=b.computed(()=>`#${t.prefix}-${t.dir}-${u.value}`);let s=b.shallowRef();const c=na(o)&&((f=String(o))==null?void 0:f.startsWith("@"));return c?u.value=(p=String(o))==null?void 0:p.substring(1):b.watch(()=>t.name,d=>{if(b.isRef(t.name))s.value=d;else{const{instance:m}=Xo();s=PF(d,m)}},{immediate:!0}),(d,m)=>{const v=b.resolveComponent("el-icon");return b.unref(c)?(b.openBlock(),b.createElementBlock("svg",{key:0,class:b.normalizeClass(b.unref(i)),width:b.unref(n),height:b.unref(r),color:t.color},[b.createElementVNode("use",{"xlink:href":b.unref(l)},null,8,hbe),e.title?(b.openBlock(),b.createElementBlock("title",dbe,b.toDisplayString(e.title),1)):b.createCommentVNode("",!0)],10,pbe)):(b.openBlock(),b.createBlock(v,{key:1,size:b.unref(a)},{default:b.withCtx(()=>[(b.openBlock(),b.createBlock(b.resolveDynamicComponent(b.unref(s)),{color:t==null?void 0:t.color,key:e.name},null,8,["color"]))]),_:1},8,["size"]))}}}),Byt="",Zi=Xa(mbe,[["__scopeId","data-v-ca7a7b14"]]),vbe={key:0},gbe={class:"clWhite"},ybe={class:"clWhite"},xbe=["title"],_be=["title"],bbe=["title"],wbe=["title"],Ebe=b.defineComponent({__name:"drag-handler",props:{...ma,parentTree:{type:Object,default:null},hidden:{type:Boolean,default:!1},simple:{type:Boolean}},setup(e){const t=e,{setSelected:n,findWidgetById:r,removeWidget:a,moveDownWidget:o,moveUpWidget:i,cloneWidget:u}=Ib(t.designer),l=s=>{const c=s==null?void 0:s.id;if(s.selectable===!1)oi.info(ie.i18nt("designer.hint.currentNodeCannotBeSelected"));else{const f=r(c);n(f)}};return(s,c)=>{var v,h;const f=b.resolveComponent("el-dropdown-item"),p=b.resolveComponent("el-dropdown-menu"),d=b.resolveComponent("el-dropdown"),m=b.resolveComponent("el-divider");return b.openBlock(),b.createElementBlock(b.Fragment,null,[e.hidden===!0?(b.openBlock(),b.createElementBlock("i",vbe,[b.createVNode(Zi,{name:"@el-hide"})])):b.createCommentVNode("",!0),e.simple?(b.openBlock(),b.createBlock(d,{key:1,onCommand:l},b.createSlots({default:b.withCtx(()=>[b.createElementVNode("span",gbe,[b.createVNode(Zi,{name:"@el-arrow-down"})])]),_:2},[((v=e.parentTree)==null?void 0:v.length)>0?{name:"dropdown",fn:b.withCtx(()=>[b.createVNode(p,null,{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.parentTree,(g,y)=>(b.openBlock(),b.createBlock(f,{command:g},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(g==null?void 0:g.label),1)]),_:2},1032,["command"]))),256)),b.createVNode(f,{divided:"",onClick:c[0]||(c[0]=b.withModifiers(g=>b.unref(u)(s.widget,s.parentList),["stop"]))},{default:b.withCtx(()=>[b.createVNode(Zi,{name:"@el-clone"}),b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.cloneWidget")),1)]),_:1}),b.createVNode(f,{onClick:c[1]||(c[1]=b.withModifiers(g=>b.unref(a)(s.widget,s.parentWidget,s.parentList),["stop"]))},{default:b.withCtx(()=>[b.createVNode(Zi,{name:"@el-delete"}),b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.remove")),1)]),_:1}),s.parentList&&s.parentList.length>1?(b.openBlock(),b.createBlock(f,{key:0,onClick:c[2]||(c[2]=b.withModifiers(g=>b.unref(i)(s.parentList,s.widget),["stop"]))},{default:b.withCtx(()=>[b.createVNode(Zi,{name:"@el-move-up"}),b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.moveUpWidget")),1)]),_:1})):b.createCommentVNode("",!0),s.parentList&&s.parentList.length>1?(b.openBlock(),b.createBlock(f,{key:1,onClick:c[3]||(c[3]=b.withModifiers(g=>b.unref(o)(s.parentList,s.widget),["stop"]))},{default:b.withCtx(()=>[b.createVNode(Zi,{name:"@el-move-down"}),b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.moveDownWidget")),1)]),_:1})):b.createCommentVNode("",!0),s.$slots.default?(b.openBlock(),b.createBlock(f,{key:2,divied:""},{default:b.withCtx(()=>[b.renderSlot(s.$slots,"default")]),_:3})):b.createCommentVNode("",!0)]),_:3})]),key:"0"}:void 0]),1024)):(b.openBlock(),b.createElementBlock(b.Fragment,{key:2},[b.createVNode(d,{onCommand:l},b.createSlots({default:b.withCtx(()=>{var g,y;return[b.createElementVNode("span",ybe,[b.createTextVNode(b.toDisplayString(b.unref(ie).i18n2t(`designer.widgetLabel.${(g=s.widget)==null?void 0:g.type}`,`extension.widgetLabel.${(y=s.widget)==null?void 0:y.type}`))+" ",1),b.createVNode(Zi,{name:"@el-arrow-down",class:"el-icon--right"})])]}),_:2},[((h=e.parentTree)==null?void 0:h.length)>0?{name:"dropdown",fn:b.withCtx(()=>[b.createVNode(p,null,{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(e.parentTree,(g,y)=>(b.openBlock(),b.createBlock(f,{command:g},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(g==null?void 0:g.label),1)]),_:2},1032,["command"]))),256))]),_:1})]),key:"0"}:void 0]),1024),b.createVNode(m,{direction:"vertical","border-style":"dashed",color:"white"}),b.renderSlot(s.$slots,"default"),s.parentList&&s.parentList.length>1?(b.openBlock(),b.createElementBlock("i",{key:0,title:b.unref(ie).i18nt("designer.hint.moveUpWidget"),onClick:c[4]||(c[4]=b.withModifiers(g=>b.unref(i)(s.parentList,s.widget),["stop"]))},[b.createVNode(Zi,{name:"@el-move-up"})],8,xbe)):b.createCommentVNode("",!0),s.parentList&&s.parentList.length>1?(b.openBlock(),b.createElementBlock("i",{key:1,title:b.unref(ie).i18nt("designer.hint.moveDownWidget"),onClick:c[5]||(c[5]=b.withModifiers(g=>b.unref(o)(s.parentList,s.widget),["stop"]))},[b.createVNode(Zi,{name:"@el-move-down"})],8,_be)):b.createCommentVNode("",!0),b.createElementVNode("i",{title:b.unref(ie).i18nt("designer.hint.cloneWidget"),onClick:c[6]||(c[6]=b.withModifiers(g=>b.unref(u)(s.widget,s.parentList),["stop"]))},[b.createVNode(Zi,{name:"@el-clone"})],8,bbe),b.createElementVNode("i",{title:b.unref(ie).i18nt("designer.hint.remove"),onClick:c[7]||(c[7]=b.withModifiers(g=>b.unref(a)(s.widget,s.parentWidget,s.parentList),["stop"]))},[b.createVNode(Zi,{name:"@el-delete"})],8,wbe)],64))],64)}}}),Nyt="";function Fb(e){return{getAttrProp:n=>{var o,i,u,l,s,c;var r=(u=(i=(o=e==null?void 0:e.propOptions)==null?void 0:o.fieldObj)==null?void 0:i.attrs)==null?void 0:u[n],a=(c=(s=(l=e==null?void 0:e.propOptions)==null?void 0:l.fieldObj)==null?void 0:s.extendAttrs)==null?void 0:c[n];return Ia(r)?a:r}}}const Nr=b.defineComponent({__name:"widget-wrapper",props:{...Wae},setup(e){var T;const t=e,{selectWidget:n}=Ib(t.designer),{widgetTree:r}=$A((T=t.designer)==null?void 0:T.widgetList,!0),{pathNodes:a,parentTree:o}=e8(r.value,t.widget),{size:i,displayLayout:u,labelAlign:l,labelWidth:s,formItemFlag:c,labelSuffix:f,labelHidden:p}=Z2e(t,Kt(a.value)),{getAttrProp:d}=Fb(t),m=b.computed(()=>d==null?void 0:d("hidden")),v=b.computed(()=>d==null?void 0:d("labelWidth")),h=A=>A&&!["div","span"].includes(A),g=b.computed(()=>{var A;return(A=t.widget)==null?void 0:A.id}),y=b.computed(()=>{var A,D;return(A=t.widget)!=null&&A.type?[lt.grid,lt.gridCol,lt.wrapper].includes((D=t.widget)==null?void 0:D.type):!1}),x=b.computed(()=>{const A=d==null?void 0:d(qt.width),D=d==null?void 0:d(qt.ctrlWidth),P=d==null?void 0:d(qt.customClass),O=d==null?void 0:d(qt.componentWrapperClass);let I={};return v.value!=$v.auto&&v.value&&(I.labelWidth=v.value),{size:i.value,labelAlign:l.value,labelWidth:s.value,formItemFlag:c.value,formItemAttr:I,ctrlWidth:D,displayStyle:u.value,labelSuffix:f.value||"",injectStyle:{},injectClass:[A?"":"full-width",p0(P),g.value],componentWrapperClass:p0(O)}}),_=b.computed(()=>[(d==null?void 0:d(qt.width))?"":"full-width"]),w=b.computed(()=>{var A,D,P;return!!t.designer&&((A=t.widget)==null?void 0:A.id)===((P=(D=t.designer)==null?void 0:D.selectedWidget)==null?void 0:P.id)}),E=b.ref(),S=b.ref(),C=b.computed(()=>{var A,D;if(E.value&&S.value&&w.value)return((A=E.value)==null?void 0:A.offsetWidth)>((D=S.value)==null?void 0:D.offsetWidth)});return(A,D)=>{var P,O,I,N,F,j;return A.designState?(b.openBlock(),b.createBlock(b.resolveDynamicComponent(A.componentName),b.mergeProps({key:0,class:["field-wrapper",[b.unref(w)?"selected":""," drag-handler",A.propOptions.class,A.showWrapperComponent?b.unref(_):""]],style:A.propOptions.style,onClick:D[0]||(D[0]=b.withModifiers(L=>b.unref(n)(A.widget,A.parentWidget,A.parentList),["stop"])),ref_key:"wrapperRef",ref:S,tabindex:0},h(A.componentName)?(O=(P=A.propOptions)==null?void 0:P.fieldObj)==null?void 0:O.attrs:{}),{default:b.withCtx(()=>{var L,V,X;return[b.renderSlot(A.$slots,"default",{data:b.unref(x)}),((V=(L=A.designer)==null?void 0:L.selectedWidget)==null?void 0:V.id)===((X=A.widget)==null?void 0:X.id)?(b.openBlock(),b.createElementBlock("div",{key:0,class:"action",ref_key:"dragHandlerRef",ref:E},[b.createVNode(Ebe,{simple:b.unref(C),"design-state":A.designState,designer:A.designer,widget:A.widget,"parent-widget":A.parentWidget,"parent-list":A.parentList,parentTree:b.unref(o),hidden:b.unref(m)},{default:b.withCtx(()=>[b.renderSlot(A.$slots,"drag")]),_:3},8,["simple","design-state","designer","widget","parent-widget","parent-list","parentTree","hidden"])],512)):b.createCommentVNode("",!0)]}),_:3},16,["class","style"])):!b.unref(m)||b.unref(y)?(b.openBlock(),b.createElementBlock(b.Fragment,{key:1},[A.showWrapperComponent?(b.openBlock(),b.createBlock(b.resolveDynamicComponent(A.componentName),b.mergeProps({key:0},h(A.componentName)?(N=(I=A.propOptions)==null?void 0:I.fieldObj)==null?void 0:N.attrs:{},b.toHandlers(h(A.componentName)?(j=(F=A.propOptions)==null?void 0:F.fieldObj)==null?void 0:j.events:{}),{class:[A.propOptions.class,b.unref(_),b.unref(m)&&b.unref(y)?"hlhidden":""],style:{...b.unref(x).injectStyle,...A.propOptions.style}}),{default:b.withCtx(()=>[b.renderSlot(A.$slots,"default",b.mergeProps({data:b.unref(x)},A.$props))]),_:3},16,["class","style"])):b.renderSlot(A.$slots,"default",b.mergeProps({key:1,data:b.unref(x)},A.$props))],64)):b.createCommentVNode("",!0)}}}),Sbe=b.defineComponent({componentName:An.ContainerWidget}),Cbe=b.defineComponent({...Sbe,__name:"cont-widget",props:{...ma},setup(e,{expose:t}){const n=e,{watchPropAndSaveHistoryStep:r,fieldObj:a,exposed:o}=In(n),{customClass:i}=Ju({widget:n.widget});return r(qt.cols),t({...o}),(u,l)=>(b.openBlock(),b.createBlock(Nr,b.mergeProps(u.$props,{showWrapperComponent:!0,"prop-options":{fieldObj:b.unref(a),class:[b.unref(i)]}}),{default:b.withCtx(()=>{var s;return[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((s=u.widget)==null?void 0:s.cols,(c,f)=>{var p;return b.openBlock(),b.createBlock(l8,{key:c.id,widget:c,designer:u.designer,"design-state":u.designState,"parent-list":(p=u.widget)==null?void 0:p.cols,"parent-widget":u.widget},null,8,["widget","designer","design-state","parent-list","parent-widget"])}),128))]}),_:1},16,["prop-options"]))}}),Fyt="",Uj=Object.freeze(Object.defineProperty({__proto__:null,default:Cbe},Symbol.toStringTag,{value:"Module"}));function Abe(e){const t=e.widget,n=e.designer,r=n==null?void 0:n.pageConfig,a=e==null?void 0:e.widgetList,o=b.ref({}),i={},{fieldModel:u,fieldName:l,fieldEditor:s,attrs:c,events:f,hasFieldOptions:p,exposed:d,fieldObj:m,watchOption:v,propResultOpt:h,extendAttrs:g}=In(e),{off$:y,on$:x,emit$:_,broadcast:w}=Bb();var{instance:E}=Xo();const{setAllRefList:S}=Qf(o.value),C={designState:e==null?void 0:e.designState,pageConfig:r,globalConfig:h==null?void 0:h.globalConfig},{formModel:T,setData:A,getData:D,clearData:P}=a8(a,{...C}),{handleFunc:O}=t8({options:r},C),I=b.reactive({}),N=()=>{y(Dn.fieldChange),x(Dn.fieldChange,me=>{W(me==null?void 0:me.fieldName,me==null?void 0:me.newValue,me==null?void 0:me.oldValue),d==null||d.setValue(T),K(me==null?void 0:me.fieldName,me==null?void 0:me.newValue,me==null?void 0:me.oldValue)})},F=()=>{y(Dn.fieldValidation),x(Dn.fieldValidation,me=>{var xe;(xe=s.value)==null||xe.validateField(me==null?void 0:me.propName)})},j=()=>{y(Dn.fieldRuleChange),x(Dn.fieldRuleChange,me=>{var pe;var xe=(pe=me==null?void 0:me.rules)==null?void 0:pe.map(ye=>({required:ye.required,message:ye.message,trigger:ye.trigger,validator:ye.validator}));Object.assign(I,{[me==null?void 0:me.fieldName]:xe}),c.value.rules=I})},L=b.ref(!1),V=b.reactive({}),X=b.reactive({}),R=me=>{f_(X),mr(X,me)},M=()=>({change_info:or(V),before_info:or(X),flag:L.value}),K=(me,xe,pe)=>{L.value=!0,me&&mr(V,{[me]:{oldValue:pe,newValue:xe}})},G=()=>{L.value=!1,f_(V),R(D())},W=(me,xe,pe)=>{O(f.value.formDataChange,{field:{fieldName:me,newValue:xe,oldValue:pe},formModel:T})},Z=()=>{O(f.value.formCreated)},le=()=>{O(f.value.formMounted)},oe=()=>{j(),N(),F(),Z()},re=me=>{var xe;(xe=s.value)==null||xe.clearValidate(me)},ne=()=>{S(ga.resetField),b.nextTick(()=>{re()})},ve=(me,xe)=>{let pe=[];for(let we in me){var ye=me[we],Se=ye==null?void 0:ye.filter(ke=>(ke==null?void 0:ke.force)===xe);Se==null||Se.forEach(ke=>{var J;const ee=(J=ke==null?void 0:ke.rule)==null?void 0:J.label;ke.message&&pe.push(goe(ee?"【"+ee+"】":"",ke.message,":"))})}return aN(pe)},Y=(me,xe)=>{var pe={};return J0(xe,ye=>{var Se=gt.getName(ye),we=Ua(me,Se);return we&&(pe[Se]=me[Se]),we},!1),pe},Q=(me=!0)=>{var Se,we,ke;let xe=D(),pe=function(){},ye=new Promise(function(ee,J){pe=function(te,fe){(fe?J:ee)({data:te,isSuccess:!fe,message:fe})}});return!((Se=s.value)!=null&&Se.validate)||!me?(pe(xe),ye):((ke=(we=s.value)==null?void 0:we.validate)==null||ke.call(we,(ee,J)=>{if(ee)pe(xe);else{var te=ve(J,!0);if(te&&te.length>0){pe(xe,te);return}var fe=ve(J,!1);if(fe&&fe.length>0){fe.push(ie.i18nt("designer.hint.continue")),DF.multiple(fe).then(Ae=>{pe(xe)});return}}}),ye)},ae=(me,xe=!0)=>{if(!t)return;var pe=Y(me,[t]);A(pe,xe);const ye=["refList","widgetRefList"];w(An.ContainerWidget,f0.setFormData,me,E,ye),w(An.FieldWidget,f0.setFormData,me,E,ye)},he=me=>new Promise((xe,pe)=>{const ye=(J,te)=>{var Ae,Pe,Fe;let fe=(Ae=g.value)!=null&&Ae.formDataLoaded?(Fe=(Pe=g.value)==null?void 0:Pe.formDataLoaded)==null?void 0:Fe.call(Pe,D(),J):J;ko(fe)?ae(fe,!te):fe={},R(fe),xe(fe)},Se=()=>{v(me,qt.newDataSource,void 0,(J,te)=>{ye(J,!0)})},we=()=>{v(me,qt.editDataSource,void 0,(J,te)=>{var Ae,Pe;if(((Pe=(Ae=g.value)==null?void 0:Ae.needFormAdd)==null?void 0:Pe.call(Ae,J))&&ee){Se();return}ye(J,!1)})},ke=p(qt.editDataSource),ee=p(qt.newDataSource);ke?we():ee&&Se()});return oe(),b.onMounted(()=>{hN(),le()}),{widgetRefList:o,allWidgetRefList:i,fieldEditor:s,formModel:T,pageConfig:r,widgetList:a,fieldModel:u,fieldName:l,attrs:c,extendAttrs:g,events:f,rules:I,loadData:he,clearData:P,exposed:{...d,setValue:ae,getValue:Q,resetField:ne,clearData:P,loadData:he,getData:D,clearChangeRecord:G,getChangeRecord:M,emit$:_},fieldObj:m}}const Tbe=b.defineComponent({componentName:An.ContainerWidget}),Dbe=b.defineComponent({...Tbe,__name:"form-widget",props:{...ma},setup(e,{expose:t}){var m;const n=e,{exposed:r,formModel:a,fieldEditor:o,attrs:i,events:u,widgetRefList:l,extendAttrs:s,fieldName:c,fieldObj:f,loadData:p}=Abe({...n,widgetList:(m=n==null?void 0:n.widget)==null?void 0:m.widgetList}),d=c.value;return Yu.globalProvide({globalFormName:d,globalDataModel:a}),b.onMounted(()=>{var v;(v=s.value)!=null&&v.loadDataWhenInit&&!n.designState&&p(!0).then(h=>{}).catch(h=>{}).finally(()=>{r.clearChangeRecord()})}),t({...r}),(v,h)=>{const g=b.resolveComponent("el-form"),y=b.resolveDirective("loading");return b.openBlock(),b.createBlock(Nr,b.mergeProps(v.$props,{"prop-options":{fieldObj:b.unref(f)}}),{default:b.withCtx(({data:x})=>{var _,w;return[b.withDirectives((b.openBlock(),b.createBlock(g,b.mergeProps({ref_key:"fieldEditor",ref:o,model:b.unref(a)},b.unref(i),b.toHandlers(b.unref(u)),{class:x.injectClass,key:(_=b.unref(f))==null?void 0:_.fieldKey,"element-loading-text":b.unref(s).loadingText,onSubmit:h[0]||(h[0]=b.withModifiers(()=>{},["prevent"]))}),{default:b.withCtx(()=>[b.createVNode(Jr,b.mergeProps(v.$props,{dragClass:"formDrag",model:b.unref(a),provideModel:!0,"component-class":x.componentWrapperClass,refList:b.unref(l)}),null,16,["model","component-class","refList"])]),_:2},1040,["model","class","element-loading-text"])),[[y,(w=b.unref(s))==null?void 0:w.showLoading]])]}),_:1},16,["prop-options"])}}}),Myt="",Hj=Object.freeze(Object.defineProperty({__proto__:null,default:Xa(Dbe,[["__scopeId","data-v-d2770e0b"]])},Symbol.toStringTag,{value:"Module"})),kbe=b.defineComponent({componentName:An.ContainerWidget}),Wj=b.defineComponent({...kbe,__name:"grid-col-widget",props:{...ma},setup(e,{expose:t}){const n=e,{attrs:r,fieldObj:a,extendAttrs:o,exposed:i}=In(n),u=b.computed(()=>n.propOptions.colHeight?{height:n.propOptions.colHeight}:{}),{customClass:l,componentWrapperClass:s}=Ju({widget:n.widget}),c=b.computed(()=>(Object.keys(r.value).forEach(f=>{var m,v;var p=["xs","sm","md","lg","xl"],d=["span"];!((m=r.value)!=null&&m.responsive)&&p.includes(f)&&delete r.value[f],(v=r.value)!=null&&v.responsive&&d.includes(f)&&delete r.value[f]}),b.reactive(r.value)));return t({...i}),(f,p)=>{var d,m,v;return b.openBlock(),b.createBlock(Nr,b.mergeProps(f.$props,{showWrapperComponent:!0,"component-name":"el-col",key:(d=f.widget)==null?void 0:d.id,"prop-options":{fieldObj:{...b.unref(a),attrs:b.unref(c)},class:["content-cell","nopadding","nomargin",(m=b.unref(o))==null?void 0:m.horizontalAlign,(v=b.unref(o))==null?void 0:v.verticalAlign,b.unref(l)],style:b.unref(u)}}),{default:b.withCtx(()=>[b.createVNode(Jr,b.mergeProps(f.$props,{dragClass:"dragSize1","component-class":b.unref(s)}),null,16,["component-class"])]),_:1},16,["prop-options"])}}}),Gj=Object.freeze(Object.defineProperty({__proto__:null,default:Wj},Symbol.toStringTag,{value:"Module"})),Pbe=b.defineComponent({componentName:An.ContainerWidget}),Obe=b.defineComponent({...Pbe,__name:"grid-widget",props:{...ma},setup(e,{expose:t}){const n=e,{extendAttrs:r,watchPropAndSaveHistoryStep:a,fieldObj:o,exposed:i}=In(n),{customClass:u}=Ju({widget:n.widget});return a(qt.cols),t({...i}),(l,s)=>{var c;return b.openBlock(),b.createBlock(Nr,b.mergeProps(l.$props,{"component-name":"el-row",key:(c=l.widget)==null?void 0:c.id,showWrapperComponent:!0,"prop-options":{fieldObj:b.unref(o),class:["nopadding","nomargin",b.unref(u)]}}),{default:b.withCtx(()=>[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(l.widget.cols,(f,p)=>(b.openBlock(),b.createBlock(Wj,{key:f.id,widget:f,designer:l.designer,"design-state":l.designState,"parent-list":l.widget.cols,"parent-widget":l.widget,"prop-options":{colHeight:b.unref(r).colHeight}},null,8,["widget","designer","design-state","parent-list","parent-widget","prop-options"]))),128))]),_:1},16,["prop-options"])}}}),Kj=Object.freeze(Object.defineProperty({__proto__:null,default:Obe},Symbol.toStringTag,{value:"Module"})),Ibe=["title"],Bbe=b.defineComponent({componentName:An.ContainerWidget}),Xj=b.defineComponent({...Bbe,__name:"ltable-col-widget",props:{...ma},setup(e,{expose:t}){const n=e,{insertTableRow:r,insertTableCol:a,mergeTableWholeRow:o,mergeTableRow:i,mergeTableCol:u,mergeTableWholeCol:l,undoMergeTableCol:s,undoMergeTableRow:c,deleteTableWholeCol:f,deleteTableWholeRow:p,copyTableWholeRow:d,copyTableWholeCol:m}=kj(),{emitHistoryChangeAfter:v}=Ib(n.designer),{attrs:h,fieldObj:g,exposed:y}=In(n),x=b.computed(()=>h.value.rowspan),_=b.computed(()=>h.value.colspan),w=b.computed(()=>h.value.cellWidth),E=b.computed(()=>h.value.cellHeight),S=b.computed(()=>{var Se,we;return((we=(Se=n.propOptions)==null?void 0:Se.colAttrs)==null?void 0:we.colIndex)||0}),C=b.computed(()=>{var Se,we;return((we=(Se=n.propOptions)==null?void 0:Se.colAttrs)==null?void 0:we.colArray)||[]}),T=b.computed(()=>{var Se,we;return((we=(Se=n.propOptions)==null?void 0:Se.colAttrs)==null?void 0:we.rowIndex)||0}),A=b.computed(()=>{var Se,we;return((we=(Se=n.propOptions)==null?void 0:Se.colAttrs)==null?void 0:we.rowArray)||[]}),D=b.computed(()=>{var Se,we;return((we=(Se=n.propOptions)==null?void 0:Se.colAttrs)==null?void 0:we.colLength)||0}),P=b.computed(()=>{var Se,we;return((we=(Se=n.propOptions)==null?void 0:Se.colAttrs)==null?void 0:we.rowLength)||0}),{componentWrapperClass:O}=Ju({widget:n.widget}),I=b.computed(()=>S.value<=0||gt.getOptions(C.value[S.value-1],"rowspan")!=x.value),N=b.computed(()=>{let Se=S.value+(_.value||0);return S.value>=D.value-1||Se>D.value-1||gt.getOptions(C.value[Se],"rowspan")!==x.value}),F=b.computed(()=>D.value<=1||D.value===_.value),j=b.computed(()=>T.value<=0||gt.getOptions(A.value[T.value-1].cols[S.value],"colspan")!==_.value),L=b.computed(()=>{let Se=T.value+(x.value||0);return T.value>=P.value-1||Se>P.value-1||gt.getOptions(A.value[Se].cols[S.value],"colspan")!==_.value}),V=b.computed(()=>P.value<=1||P.value===x.value),X=b.computed(()=>{var Se;return((Se=Kt(n.widget))==null?void 0:Se.merged)||(x.value||1)<=1}),R=b.computed(()=>{var Se;return((Se=Kt(n.widget))==null?void 0:Se.merged)||(x.value||1)<=1}),M=b.computed(()=>D.value===1||_.value===D.value),K=b.computed(()=>P.value===1||x.value===P.value),G=()=>{var Se;v(a(Kt(n.parentWidget),S.value,T.value,!0),`insertLeftCol ${(Se=n.widget)==null?void 0:Se.id}`)},W=()=>{var Se;v(a(Kt(n.parentWidget),S.value,T.value,!1),`insertRightCol ${(Se=n.widget)==null?void 0:Se.id}`)},Z=()=>{var Se;v(r(Kt(n.parentWidget),T.value,T.value,S.value,!0),`insertAboveRow ${(Se=n.widget)==null?void 0:Se.id}`)},le=()=>{var Se;v(r(Kt(n.parentWidget),T.value,T.value,S.value,!1),`insertBelowRow ${(Se=n.widget)==null?void 0:Se.id}`)},oe=()=>{var Se;v(u(A.value,C.value,T.value,S.value,!0,n.widget),`mergeLeftCol ${(Se=n.widget)==null?void 0:Se.id}`)},re=()=>{var Se;v(u(A.value,C.value,T.value,S.value,!1,n.widget),`mergeRightCol ${(Se=n.widget)==null?void 0:Se.id}`)},ne=()=>{var Se;v(o(A.value,C.value,T.value,S.value),`mergeWholeRow ${(Se=n.widget)==null?void 0:Se.id}`)},ve=()=>{var Se;v(i(A.value,T.value,S.value,!0,n.widget),`mergeAboveRow ${(Se=n.widget)==null?void 0:Se.id}`)},Y=()=>{var Se;v(i(A.value,T.value,S.value,!1,n.widget),`mergeBelowRow ${(Se=n.widget)==null?void 0:Se.id}`)},Q=()=>{var Se;v(l(A.value,C.value,T.value,S.value),`mergeWholeCol ${(Se=n.widget)==null?void 0:Se.id}`)},ae=()=>{var Se;v(s(A.value,T.value,S.value,_.value,x.value),`undoMergeCol ${(Se=n.widget)==null?void 0:Se.id}`)},he=()=>{var Se;v(c(A.value,T.value,S.value,_.value,x.value),`undoMergeRow ${(Se=n.widget)==null?void 0:Se.id}`)},me=()=>{var Se;v(f(A.value,S.value),`deleteWholeCol ${(Se=n.widget)==null?void 0:Se.id}`)},xe=()=>{var Se;v(p(A.value,T.value),`deleteWholeRow ${(Se=n.widget)==null?void 0:Se.id}`)},pe=()=>{var Se;v(m(A.value,S.value),`copyWholeCol ${(Se=n.widget)==null?void 0:Se.id}`)},ye=()=>{var Se;v(d(A.value,T.value),`copyWholeRow ${(Se=n.widget)==null?void 0:Se.id}`)};return t({...y}),(Se,we)=>{const ke=b.resolveComponent("el-dropdown-item"),ee=b.resolveComponent("el-dropdown-menu"),J=b.resolveComponent("el-dropdown");return b.openBlock(),b.createBlock(Nr,b.mergeProps(Se.$props,{"show-wrapper-component":!0,"component-name":"td","prop-options":{class:"table-cell",style:{width:b.unref(w)+"!important"||"",height:b.unref(E)+"!important"||""},fieldObj:{...b.unref(g),colspan:b.unref(_).value||1,rowspan:b.unref(x).value||1}}}),{drag:b.withCtx(()=>[b.createVNode(J,{trigger:"click",size:"small"},{dropdown:b.withCtx(()=>[b.createVNode(ee,null,{default:b.withCtx(()=>[b.createVNode(ke,{onClick:we[0]||(we[0]=te=>G())},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.insertColumnToLeft")),1)]),_:1}),b.createVNode(ke,{onClick:we[1]||(we[1]=te=>W())},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.insertColumnToRight")),1)]),_:1}),b.createVNode(ke,{onClick:we[2]||(we[2]=te=>Z())},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.insertRowAbove")),1)]),_:1}),b.createVNode(ke,{onClick:we[3]||(we[3]=te=>le())},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.insertRowBelow")),1)]),_:1}),b.createVNode(ke,{onClick:we[4]||(we[4]=te=>oe()),disabled:b.unref(I),divided:""},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.mergeLeftColumn")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[5]||(we[5]=te=>re()),disabled:b.unref(N)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.mergeRightColumn")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[6]||(we[6]=te=>ne()),disabled:b.unref(F)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.mergeEntireRow")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[7]||(we[7]=te=>ve()),disabled:b.unref(j),divided:""},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.mergeRowAbove")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[8]||(we[8]=te=>Y()),disabled:b.unref(L)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.mergeRowBelow")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[9]||(we[9]=te=>Q()),disabled:b.unref(V)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.mergeEntireColumn")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[10]||(we[10]=te=>he()),disabled:b.unref(R),divided:""},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.undoMergeRow")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[11]||(we[11]=te=>ae()),disabled:b.unref(X)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.undoMergeCol")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[12]||(we[12]=te=>me()),disabled:b.unref(M),divided:""},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.deleteEntireCol")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[13]||(we[13]=te=>xe()),disabled:b.unref(K)},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.deleteEntireRow")),1)]),_:1},8,["disabled"]),b.createVNode(ke,{onClick:we[14]||(we[14]=te=>pe()),divided:""},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.copyEntireCol")),1)]),_:1}),b.createVNode(ke,{onClick:we[15]||(we[15]=te=>ye())},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.setting.copyEntireRow")),1)]),_:1})]),_:1})]),default:b.withCtx(()=>[b.createElementVNode("i",{title:b.unref(ie).i18nt("designer.hint.cellSetting")},[b.createVNode(Zi,{name:"@el-menu"})],8,Ibe)]),_:1})]),default:b.withCtx(()=>[b.createVNode(Jr,b.mergeProps(Se.$props,{"component-class":b.unref(O)}),null,16,["component-class"])]),_:1},16,["prop-options"])}}}),Yj=Object.freeze(Object.defineProperty({__proto__:null,default:Xj},Symbol.toStringTag,{value:"Module"})),Nbe=["element-loading-text"],Fbe=b.defineComponent({componentName:An.ContainerWidget}),Mbe=b.defineComponent({...Fbe,__name:"ltable-widget",props:{...ma},setup(e,{expose:t}){const n=e,{extendAttrs:r,fieldObj:a,exposed:o}=In(n),{customClass:i}=Ju({widget:n.widget});return t({...o}),(u,l)=>{const s=b.resolveDirective("loading");return b.openBlock(),b.createBlock(Nr,b.mergeProps(u.$props,{"prop-options":{fieldObj:b.unref(a)}}),{default:b.withCtx(()=>{var c,f,p;return[(b.openBlock(),b.createElementBlock("div",{key:(c=u.widget)==null?void 0:c.id,class:b.normalizeClass(["table-container",b.unref(i)])},[b.withDirectives((b.openBlock(),b.createElementBlock("table",{class:"table-layout","element-loading-text":b.unref(r).loadingText},[b.createElementVNode("tbody",null,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((f=u.widget)==null?void 0:f.rows,(d,m)=>(b.openBlock(),b.createElementBlock("tr",{key:d.id},[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(d.cols,(v,h)=>{var g,y;return b.openBlock(),b.createElementBlock(b.Fragment,null,[v.merged?b.createCommentVNode("",!0):(b.openBlock(),b.createBlock(Xj,{widget:v,designer:u.designer,"design-state":u.designState,key:v.id,"parent-list":d.cols,"parent-widget":u.widget,"prop-options":{colAttrs:{rowIndex:m,rowLength:(g=u.widget)==null?void 0:g.rows.length,rowArray:(y=u.widget)==null?void 0:y.rows,colIndex:h,colLength:d.cols.length,colArray:d.cols}}},null,8,["widget","designer","design-state","parent-list","parent-widget","prop-options"]))],64)}),256))]))),128))])],8,Nbe)),[[s,(p=b.unref(r))==null?void 0:p.showLoading]])],2))]}),_:1},16,["prop-options"])}}}),Ryt="",Jj=Object.freeze(Object.defineProperty({__proto__:null,default:Xa(Mbe,[["__scopeId","data-v-b4d3bf11"]])},Symbol.toStringTag,{value:"Module"})),Lbe=b.defineComponent({componentName:An.ContainerWidget}),Zj=b.defineComponent({...Lbe,__name:"tab-pane-widget",props:{...ma},setup(e,{expose:t}){const n=e,{exposed:r,fieldObj:a}=In(n),{componentWrapperClass:o,customClass:i}=Ju({widget:n.widget});return t({...r}),(u,l)=>{var s;return b.openBlock(),b.createBlock(Nr,b.mergeProps(u.$props,{"show-wrapper-component":!0,"component-name":"el-tab-pane",key:(s=u.widget)==null?void 0:s.id,"prop-options":{fieldObj:b.unref(a),class:["content-cell",b.unref(i)]}}),{default:b.withCtx(()=>[b.createVNode(Jr,b.mergeProps(u.$props,{dragClass:"dragSize","component-class":b.unref(o)}),null,16,["component-class"])]),_:1},16,["prop-options"])}}}),Qj=Object.freeze(Object.defineProperty({__proto__:null,default:Zj},Symbol.toStringTag,{value:"Module"})),Rbe=b.defineComponent({componentName:An.ContainerWidget}),jbe=b.defineComponent({...Rbe,__name:"tabs-widget",props:{...ma},setup(e,{expose:t}){const n=e,{fieldKey:r,fieldObj:a,attrs:o,extendAttrs:i,events:u,exposed:l,watchPropAndSaveHistoryStep:s}=In(n),{addTabPaneOfTabs:c,initTabPane:f,getActiveTab:p,deleteTabPaneOfTabs:d,findTabPaneOfTabs:m}=Pj(),v=b.computed(()=>{const S=p(Kt(n.widget));if(S)return gt.getName(S)}),h=b.ref(),g=b.computed({get:()=>h.value||v.value,set:S=>{h.value=S}}),y=()=>g.value,x=S=>{g.value=S},_=S=>{var C=m(Kt(n.widget),S);Ia(C)||d(Kt(n.widget),C)},w=S=>{c(Kt(n.widget),f(S))},E=()=>{g.value=Kt(v.value),l.refreshKey()};return s(qt.tabs),t({...l,tabAdd:w,tabRemove:_,getValue:y,setValue:x,refresh:E}),(S,C)=>{const T=b.resolveComponent("el-tabs"),A=b.resolveDirective("loading");return b.openBlock(),b.createBlock(Nr,b.mergeProps(S.$props,{"prop-options":{fieldObj:b.unref(a)}}),{default:b.withCtx(({data:D})=>{var P;return[b.withDirectives((b.openBlock(),b.createBlock(T,b.mergeProps({key:b.unref(r)},b.unref(o),b.toHandlers(b.unref(u)),{modelValue:b.unref(g),"onUpdate:modelValue":C[0]||(C[0]=O=>b.isRef(g)?g.value=O:null),class:D.injectClass,style:{...D.injectStyle,width:D.ctrlWidth},"element-loading-text":b.unref(i).loadingText}),{default:b.withCtx(()=>{var O;return[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((O=S.widget)==null?void 0:O.tabs,(I,N)=>{var F;return b.openBlock(),b.createBlock(Zj,{key:b.unref(gt).getName(I),widget:I,designer:S.designer,"design-state":S.designState,"parent-list":(F=S.widget)==null?void 0:F.tabs,"parent-widget":S.widget},null,8,["widget","designer","design-state","parent-list","parent-widget"])}),128))]}),_:2},1040,["modelValue","class","style","element-loading-text"])),[[A,(P=b.unref(i))==null?void 0:P.showLoading]])]}),_:1},16,["prop-options"])}}}),qj=Object.freeze(Object.defineProperty({__proto__:null,default:jbe},Symbol.toStringTag,{value:"Module"}));function Vbe(e){const t=b.ref({}),{componentWrapperClass:n,customClass:r}=Ju({widget:e.widget}),{exposed:a,attrs:o,extendAttrs:i,fieldKey:u,fieldObj:l}=In(e),{setAllRefList:s}=Qf(t.value),c=(m=!1)=>{s(ga.setDisabled,{flag:m})},f=(m=!1)=>{var v;(v=a==null?void 0:a.setHidden)==null||v.call(a,m)},p=()=>{s(ga.resetField)};return(m=>{b.watch(()=>{var v;return(v=o.value)==null?void 0:v[m]},v=>{v!=null&&m==="disabled"&&c(v)},{immediate:!0})})("disabled"),{extendAttrs:i,attrs:o,exposed:{...a,setDisabled:c,setHidden:f,resetField:p},componentWrapperClass:n,customClass:r,fieldKey:u,fieldObj:l,widgetRefList:t}}const zbe=["element-loading-text"],Ube=b.defineComponent({componentName:An.ContainerWidget}),Hbe=b.defineComponent({...Ube,__name:"wrapper-widget",props:{...ma},setup(e,{expose:t}){const n=e,{attrs:r,extendAttrs:a,exposed:o,customClass:i,componentWrapperClass:u,fieldObj:l,fieldKey:s,widgetRefList:c}=Vbe(n);return t({...o}),(f,p)=>{const d=b.resolveDirective("loading");return b.openBlock(),b.createBlock(Nr,b.mergeProps(f.$props,{"prop-options":{fieldObj:b.unref(l)},"component-name":"div","show-wrapper-component":!0}),{default:b.withCtx(({data:m})=>{var v,h,g;return[f.designState||!((v=b.unref(r))!=null&&v.hidden)||!((h=b.unref(r))!=null&&h.lazy)?b.withDirectives((b.openBlock(),b.createElementBlock("div",{ref:"fieldEditor",class:b.normalizeClass(m.injectClass),key:b.unref(s),"element-loading-text":b.unref(a).loadingText},[b.createVNode(Jr,b.mergeProps(f.$props,{dragClass:"dragSize","component-class":m.componentWrapperClass,refList:b.unref(c)}),null,16,["component-class","refList"])],10,zbe)),[[d,(g=b.unref(a))==null?void 0:g.showLoading]]):b.createCommentVNode("",!0)]}),_:1},16,["prop-options"])}}}),$j=Object.freeze(Object.defineProperty({__proto__:null,default:Hbe},Symbol.toStringTag,{value:"Module"}));function eV(e){let t=new Map;for(const n in e){let r=e==null?void 0:e[n],a=r==null?void 0:r.default,o=(a==null?void 0:a.name)||(a==null?void 0:a.__name);t[o]=a}return t}function tV(){return eV(Object.assign({"../cont-cell-widget.vue":zj,"../cont-widget.vue":Uj,"../form-widget.vue":Hj,"../grid-col-widget.vue":Gj,"../grid-widget.vue":Kj,"../ltable-col-widget.vue":Yj,"../ltable-widget.vue":Jj,"../tab-pane-widget.vue":Qj,"../tabs-widget.vue":qj,"../wrapper-widget.vue":$j}))}const Wbe={install:(e,t)=>{const n=tV();for(const r in Object.keys(n))e.component(r,n[r])}},Gbe={install:(e,t)=>{const n=tV();for(const r in Object.keys(n))e.component(r,n[r])}},Kbe={style:{width:"99%",height:"99%",margin:"0 auto"}},Xbe=["src","id"],Ybe={class:"dialog-footer"},Jbe=b.defineComponent({__name:"index",props:{...wle},emits:["ok","cancel","close"],setup(e,{emit:t}){const n=b.ref(!0),r=b.ref(),a=b.ref(!0),o=()=>{a.value=!1};return(i,u)=>{const l=b.resolveComponent("el-button"),s=b.resolveComponent("el-dialog"),c=b.resolveDirective("loading");return b.openBlock(),b.createBlock(s,{modelValue:n.value,"onUpdate:modelValue":u[3]||(u[3]=f=>n.value=f),class:"--hl-dialog1",fullscreen:i.fullscreen,title:i.title,width:i.width,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!0,top:"15vh",style:b.normalizeStyle({height:i.height})},{footer:b.withCtx(()=>{var f,p,d;return[b.createElementVNode("span",Ybe,[(f=i.dialogType)!=null&&f.includes(b.unref(y_).close)?(b.openBlock(),b.createBlock(l,{key:0,onClick:u[0]||(u[0]=m=>{t("close",{})}),size:"large"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.close")),1)]),_:1})):b.createCommentVNode("",!0),(p=i.dialogType)!=null&&p.includes(b.unref(y_).cancel)?(b.openBlock(),b.createBlock(l,{key:1,onClick:u[1]||(u[1]=m=>{t("cancel",{iframeRef:r.value})}),size:"large"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.close")),1)]),_:1})):b.createCommentVNode("",!0),(d=i.dialogType)!=null&&d.includes(b.unref(y_).save)?(b.openBlock(),b.createBlock(l,{key:2,type:"primary",onClick:u[2]||(u[2]=m=>{t("ok",{iframeRef:r.value})}),size:"large"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(b.unref(ie).i18nt("designer.hint.confirm")),1)]),_:1})):b.createCommentVNode("",!0)])]}),default:b.withCtx(()=>[b.withDirectives((b.openBlock(),b.createElementBlock("div",Kbe,[b.createElementVNode("iframe",{frameborder:"0",ref_key:"iframeRef",ref:r,style:{width:"100%",height:"100%"},src:i.url,onLoad:o,id:b.unref(fg)()},null,40,Xbe)])),[[c,a.value]])]),_:1},8,["modelValue","fullscreen","title","width","style"])}}}),Uyt="",nV=Object.freeze(Object.defineProperty({__proto__:null,default:Jbe},Symbol.toStringTag,{value:"Module"}));function Zbe(){return eV(Object.assign({"./index.vue":nV}))}const Qbe={install:(e,t)=>{const n=Zbe();e.use(xle);for(const r in Object.keys(n))e.component(r,n[r])}};function qbe(e,t,n,r){const a={r:255,g:255,b:255};return{r:Math.round(e*(1-r)+a.r*r),g:Math.round(t*(1-r)+a.g*r),b:Math.round(n*(1-r)+a.b*r)}}function $be(e,t,n,r=!1,a=5){const o=[];for(let i=0;i<a;i++){const u=qbe(e,t,n,i*.1);o.push(u)}return o}function ewe(e,t=!1,n=5){const r=nwe(e),a=$be(r.r,r.g,r.b,t,n);return a==null?void 0:a.map(o=>twe(o.r,o.g,o.b))}function twe(e,t,n){const r=a=>{const o=a.toString(16);return o.length===1?"0"+o:o};return`#${r(e)}${r(t)}${r(n)}`}function nwe(e){e=e.replace(/^#/,""),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:t&255}}function rwe(e,t){return{cssWithPrimaryColor:b.computed(()=>{var o,i;const r=(t==null?void 0:t.themeColor)||rN.color1;var a={themeColor:r};return(o=ewe(r,!1,10))==null||o.forEach((u,l)=>{a["themeColor-"+l]=u}),!br(e)&&na(e)&&((i=Rr(a))==null||i.forEach(u=>{var l=`var\\(--${u}\\)`;e=Pc(e,l,a[u])})),e})}}function iwe(e){var{addWindowName:t,addWindowHook:n}=xC();t(),n("openModalAsync",r=>{Q9(e==null?void 0:e.instance,r)}),n("ElMessage",ta.ElMessage),n("ElMessageBox",ta.ElMessageBox),n("ElNotification",ta.ElNotification)}function awe(e){const t=e.designer,n=t==null?void 0:t.pageConfig,r=b.ref(t==null?void 0:t.widgetList),a=e==null?void 0:e.designState,o=e==null?void 0:e.pageData,i=e==null?void 0:e.renderConfig,u={},l={},{off$:s,on$:c,emit$:f}=Bb();var{instance:p,proxy:d}=Xo();const m={instance:p,designState:a,formData:o,pageConfig:n,globalConfig:i},{handleFunc:v}=t8({options:n},m),{callWidgetsExposed:h}=Qf(l),{formModel:g,setData:y,getData:x,clearData:_}=a8(r.value,m),w=new n1(u),E=new n1(l),{findRefByName:S}=Qf(l),{getOneSchemaData:C,getSchemaDataObject:T,getSchemaDatas:A}=Ab(m);let P=(()=>"vfRender"+fu())();const O=()=>{v(n==null?void 0:n.pageCreated)},I=()=>{v(n==null?void 0:n.pageMounted)},N=()=>{if(!n)return;const re=_e.getValue(n.cssCode,!1,!0);if(re){const{cssWithPrimaryColor:ve}=rwe(re,{themeColor:(i==null?void 0:i.themeColor)||""});kM(ve.value,a?"":P)}const ne=_e.getValue(n.functions,!1,!0);ne&&rpe(ne,a?P:"")},F=(re=!0)=>{re&&N(),L(),O(),le(),oe()},j=c_.page,L=()=>{w.setWidgetRef(j,p),E.setWidgetRef(j,p)},V=re=>h(re,ga.getValue),X=(re,ne)=>h(re,ga.setValue,ne),R=(re,ne=!0)=>{h(re,ga.setDisabled,{flag:ne})},M=re=>{R(re,!1)},K=(re,ne=!0)=>{h(re,ga.setHidden,{flag:ne})},G=re=>{K(re,!1)},W=re=>{if(re){var ne=ui(re);if(ne){if(!ne.pageConfig||!ne.widgetList)return"Invalid pageat of page json.";mr(e.pageConfig,ne),N(),b.nextTick(()=>{F(!1),I()})}else return"Set page json failed."}},Z=(re,ne,ve)=>{d==null||d.$emit(f0.formChange,re,ne,ve,g)},le=()=>{s(Dn.fieldChange),c(Dn.fieldChange,re=>{Z(re==null?void 0:re.fieldName,re==null?void 0:re.newValue,re==null?void 0:re.oldValue)})},oe=()=>{s(Dn.fieldValidation),c(Dn.fieldValidation,re=>{})};return F(),b.onMounted(()=>{_(),hN(),I(),iwe({instance:p})}),b.onUnmounted(()=>{_()}),{formModel:g,pageConfig:n,widgetList:r,widgetRefList:u,allWidgetRefList:l,exposed:{findRefByName:S,setPageJson:W,hideWidgets:K,showWidgets:G,disableWidgets:R,enableWidgets:M,getFieldValue:V,setFieldValue:X,setData:y,getData:x,clearData:_,getOneSchemaData:C,getSchemaDataObject:T,getSchemaDatas:A,emit$:f}}}function owe(){const e={},t=(a,o,i)=>{e[a]={opt:o,doEvent:i}},n=(a,o)=>{var u,l;const i=e==null?void 0:e[a==null?void 0:a.toLocaleLowerCase()];if(((u=i==null?void 0:i.opt)==null?void 0:u.ctrlKey)===(o==null?void 0:o.ctrlKey))return(l=i==null?void 0:i.doEvent)==null?void 0:l.call(i)};return{bindKey:t,runEvent:a=>{const o=a.ctrlKey||a.metaKey,i=a.key;n(i,{ctrlKey:o})}}}function swe(e){const{bindKey:t,runEvent:n}=owe(),r=()=>{t("enter",{ctrlKey:!1},u),t("arrowleft",{ctrlKey:!0},l)},a=s=>(r(),n(s)),o="input,select,textarea",i=["textarea"],u=()=>{var d,m;var s=e.querySelectorAll(o);const c=document.activeElement,f=(d=c==null?void 0:c.nodeName)==null?void 0:d.toLocaleLowerCase();if(!f||i.includes(f))return!1;for(var p=0;p<s.length;p++){const v=s[p];if(v==c)return p==s.length-1?!1:((m=s[p+1])==null||m.focus(),!0);v==null||v.blur()}return!1},l=s=>{var d,m;var c=e.querySelectorAll(o);const f=document.activeElement;(d=f==null?void 0:f.nodeName)==null||d.toLocaleLowerCase();for(var p=0;p<c.length;p++){const v=c[p];if(v==f)return p==0?!1:((m=c[p-1])==null||m.focus(),!0);v==null||v.blur()}return!1};return{addKeyBoardEvent:a}}const lwe=["element-loading-text","onKeyup"],uwe=b.defineComponent({componentName:An.VFormRender,name:An.VFormRender}),cwe=b.defineComponent({...uwe,props:{...ma,pageData:{type:Object},renderConfig:{type:Object}},setup(e,{expose:t,emit:n}){const r=e,{formModel:a,exposed:o,widgetList:i,pageConfig:u,allWidgetRefList:l}=awe(r),s=b.computed(()=>{var g,y;return _e.getValue((y=(g=r.designer)==null?void 0:g.pageConfig)==null?void 0:y.layoutType)}),c=b.computed(()=>Kt(hi(_e.getValue(u==null?void 0:u.customClass),!0))),f=b.computed(()=>{var g;return(g=_e.getValue(u==null?void 0:u.componentWrapperClass))==null?void 0:g.join(" ")}),p=b.ref(!1),d={};Yu.globalProvide({formRefList:d,globalRefList:l,globalDataModel:a,globalFormName:An.VFormRender}),b.provide(pi.globalConfig,r.renderConfig),b.provide(pi.isRenderComplete,p);const m=b.ref(),v=g=>{const{addKeyBoardEvent:y}=swe(m.value);y(g)},h=()=>{p.value=!0,n(f0.renderComplete)};return t({...o,componentName:An.VFormRender}),(g,y)=>{const x=b.resolveDirective("loading");return b.withDirectives((b.openBlock(),b.createElementBlock("div",{"element-loading-text":b.unref(ie).i18nt("designer.hint.loading"),class:b.normalizeClass([...b.unref(c),b.unref(s)+"-layout",{loadingLayout:!p.value}]),tabindex:"0",ref_key:"taregtWrapperRef",ref:m,onKeyup:[b.withKeys(v,["enter"]),b.withKeys(v,["left"])]},[b.renderSlot(g.$slots,"header",{},void 0,!0),b.renderSlot(g.$slots,"default",{},()=>[(b.openBlock(),b.createBlock(b.Suspense,{onResolve:h},{default:b.withCtx(()=>[b.createVNode(Jr,{designer:g.designer,"widget-list":b.unref(i),model:b.unref(a),"design-state":!1,"component-class":b.unref(f)},null,8,["designer","widget-list","model","component-class"])]),_:1}))],!0),b.renderSlot(g.$slots,"footer",{},void 0,!0)],42,lwe)),[[x,!p.value]])}}}),Wyt="",rV=Xa(cwe,[["__scopeId","data-v-527104aa"]]);var u8={},fwe={get exports(){return u8},set exports(e){u8=e}};/**!
193
193
  * Sortable 1.14.0
194
194
  * @author RubaXa <trash@rubaxa.org>
195
195
  * @author owenm <owen23355@gmail.com>