holyes-table 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -47,15 +47,24 @@
|
|
|
47
47
|
|
|
48
48
|
2. 引入样式
|
|
49
49
|
|
|
50
|
-
```
|
|
50
|
+
```typescript
|
|
51
|
+
// main.ts
|
|
51
52
|
import 'holyes-table/style.css'
|
|
52
53
|
```
|
|
53
54
|
|
|
54
55
|
3. 引入组件
|
|
55
56
|
|
|
56
|
-
```
|
|
57
|
+
```typescript
|
|
58
|
+
// 组件中引入
|
|
59
|
+
// xxx.vue
|
|
60
|
+
import HolyesTable from "holyes-table"
|
|
61
|
+
|
|
62
|
+
// 或者全局安装,后续就不用引入了
|
|
57
63
|
// main.ts
|
|
64
|
+
import { createApp } from 'vue'
|
|
65
|
+
import app from './app.vue'
|
|
58
66
|
import HolyesTable from "holyes-table"
|
|
67
|
+
createApp(app).use(HolyesTable).mount('#app')
|
|
59
68
|
```
|
|
60
69
|
|
|
61
70
|
### 简单示例
|
package/dist/index.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, onActivated as d, onDeactivated as f, onMounted as p, onUnmounted as m, openBlock as h, ref as g, renderList as _, renderSlot as v, shallowRef as y, toDisplayString as b, toRaw as x, unref as S, vShow as C, watch as w, withCtx as T, withDirectives as E, withKeys as D, withModifiers as O } from "vue";
|
|
2
|
-
import { VxeButton as k, VxeCheckbox as ee, VxeCheckboxGroup as te, VxeIcon as A, VxeInput as
|
|
3
|
-
import
|
|
2
|
+
import { VxeButton as k, VxeCheckbox as ee, VxeCheckboxGroup as te, VxeIcon as A, VxeInput as ne, VxeLoading as re, VxeNumberInput as ie, VxeRadioGroup as j, VxeSwitch as ae, VxeTag as oe } from "vxe-pc-ui";
|
|
3
|
+
import M, { debounce as se, isNaN as N, orderBy as ce, toArrayTree as le } from "xe-utils";
|
|
4
4
|
//#region lib/pretextTable/worker/pretextTableGetItemHeight.ts?worker&inline
|
|
5
|
-
var le = "(function(){let e=`BN.BN.BN.BN.BN.BN.BN.BN.BN.S.B.S.WS.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.B.B.B.S.WS.ON.ON.ET.ET.ET.ON.ON.ON.ON.ON.ES.CS.ES.CS.CS.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.CS.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.BN.BN.BN.BN.BN.BN.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.CS.ON.ET.ET.ET.ET.ON.ON.ON.ON.L.ON.ON.BN.ON.ON.ET.ET.EN.EN.ON.L.ON.ON.ON.EN.L.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L`.split(`.`),t=[[697,698,`ON`],[706,719,`ON`],[722,735,`ON`],[741,749,`ON`],[751,767,`ON`],[768,879,`NSM`],[884,885,`ON`],[894,894,`ON`],[900,901,`ON`],[903,903,`ON`],[1014,1014,`ON`],[1155,1161,`NSM`],[1418,1418,`ON`],[1421,1422,`ON`],[1423,1423,`ET`],[1424,1424,`R`],[1425,1469,`NSM`],[1470,1470,`R`],[1471,1471,`NSM`],[1472,1472,`R`],[1473,1474,`NSM`],[1475,1475,`R`],[1476,1477,`NSM`],[1478,1478,`R`],[1479,1479,`NSM`],[1480,1535,`R`],[1536,1541,`AN`],[1542,1543,`ON`],[1544,1544,`AL`],[1545,1546,`ET`],[1547,1547,`AL`],[1548,1548,`CS`],[1549,1549,`AL`],[1550,1551,`ON`],[1552,1562,`NSM`],[1563,1610,`AL`],[1611,1631,`NSM`],[1632,1641,`AN`],[1642,1642,`ET`],[1643,1644,`AN`],[1645,1647,`AL`],[1648,1648,`NSM`],[1649,1749,`AL`],[1750,1756,`NSM`],[1757,1757,`AN`],[1758,1758,`ON`],[1759,1764,`NSM`],[1765,1766,`AL`],[1767,1768,`NSM`],[1769,1769,`ON`],[1770,1773,`NSM`],[1774,1775,`AL`],[1776,1785,`EN`],[1786,1808,`AL`],[1809,1809,`NSM`],[1810,1839,`AL`],[1840,1866,`NSM`],[1867,1957,`AL`],[1958,1968,`NSM`],[1969,1983,`AL`],[1984,2026,`R`],[2027,2035,`NSM`],[2036,2037,`R`],[2038,2041,`ON`],[2042,2044,`R`],[2045,2045,`NSM`],[2046,2069,`R`],[2070,2073,`NSM`],[2074,2074,`R`],[2075,2083,`NSM`],[2084,2084,`R`],[2085,2087,`NSM`],[2088,2088,`R`],[2089,2093,`NSM`],[2094,2136,`R`],[2137,2139,`NSM`],[2140,2143,`R`],[2144,2191,`AL`],[2192,2193,`AN`],[2194,2198,`AL`],[2199,2207,`NSM`],[2208,2249,`AL`],[2250,2273,`NSM`],[2274,2274,`AN`],[2275,2306,`NSM`],[2362,2362,`NSM`],[2364,2364,`NSM`],[2369,2376,`NSM`],[2381,2381,`NSM`],[2385,2391,`NSM`],[2402,2403,`NSM`],[2433,2433,`NSM`],[2492,2492,`NSM`],[2497,2500,`NSM`],[2509,2509,`NSM`],[2530,2531,`NSM`],[2546,2547,`ET`],[2555,2555,`ET`],[2558,2558,`NSM`],[2561,2562,`NSM`],[2620,2620,`NSM`],[2625,2626,`NSM`],[2631,2632,`NSM`],[2635,2637,`NSM`],[2641,2641,`NSM`],[2672,2673,`NSM`],[2677,2677,`NSM`],[2689,2690,`NSM`],[2748,2748,`NSM`],[2753,2757,`NSM`],[2759,2760,`NSM`],[2765,2765,`NSM`],[2786,2787,`NSM`],[2801,2801,`ET`],[2810,2815,`NSM`],[2817,2817,`NSM`],[2876,2876,`NSM`],[2879,2879,`NSM`],[2881,2884,`NSM`],[2893,2893,`NSM`],[2901,2902,`NSM`],[2914,2915,`NSM`],[2946,2946,`NSM`],[3008,3008,`NSM`],[3021,3021,`NSM`],[3059,3064,`ON`],[3065,3065,`ET`],[3066,3066,`ON`],[3072,3072,`NSM`],[3076,3076,`NSM`],[3132,3132,`NSM`],[3134,3136,`NSM`],[3142,3144,`NSM`],[3146,3149,`NSM`],[3157,3158,`NSM`],[3170,3171,`NSM`],[3192,3198,`ON`],[3201,3201,`NSM`],[3260,3260,`NSM`],[3276,3277,`NSM`],[3298,3299,`NSM`],[3328,3329,`NSM`],[3387,3388,`NSM`],[3393,3396,`NSM`],[3405,3405,`NSM`],[3426,3427,`NSM`],[3457,3457,`NSM`],[3530,3530,`NSM`],[3538,3540,`NSM`],[3542,3542,`NSM`],[3633,3633,`NSM`],[3636,3642,`NSM`],[3647,3647,`ET`],[3655,3662,`NSM`],[3761,3761,`NSM`],[3764,3772,`NSM`],[3784,3790,`NSM`],[3864,3865,`NSM`],[3893,3893,`NSM`],[3895,3895,`NSM`],[3897,3897,`NSM`],[3898,3901,`ON`],[3953,3966,`NSM`],[3968,3972,`NSM`],[3974,3975,`NSM`],[3981,3991,`NSM`],[3993,4028,`NSM`],[4038,4038,`NSM`],[4141,4144,`NSM`],[4146,4151,`NSM`],[4153,4154,`NSM`],[4157,4158,`NSM`],[4184,4185,`NSM`],[4190,4192,`NSM`],[4209,4212,`NSM`],[4226,4226,`NSM`],[4229,4230,`NSM`],[4237,4237,`NSM`],[4253,4253,`NSM`],[4957,4959,`NSM`],[5008,5017,`ON`],[5120,5120,`ON`],[5760,5760,`WS`],[5787,5788,`ON`],[5906,5908,`NSM`],[5938,5939,`NSM`],[5970,5971,`NSM`],[6002,6003,`NSM`],[6068,6069,`NSM`],[6071,6077,`NSM`],[6086,6086,`NSM`],[6089,6099,`NSM`],[6107,6107,`ET`],[6109,6109,`NSM`],[6128,6137,`ON`],[6144,6154,`ON`],[6155,6157,`NSM`],[6158,6158,`BN`],[6159,6159,`NSM`],[6277,6278,`NSM`],[6313,6313,`NSM`],[6432,6434,`NSM`],[6439,6440,`NSM`],[6450,6450,`NSM`],[6457,6459,`NSM`],[6464,6464,`ON`],[6468,6469,`ON`],[6622,6655,`ON`],[6679,6680,`NSM`],[6683,6683,`NSM`],[6742,6742,`NSM`],[6744,6750,`NSM`],[6752,6752,`NSM`],[6754,6754,`NSM`],[6757,6764,`NSM`],[6771,6780,`NSM`],[6783,6783,`NSM`],[6832,6877,`NSM`],[6880,6891,`NSM`],[6912,6915,`NSM`],[6964,6964,`NSM`],[6966,6970,`NSM`],[6972,6972,`NSM`],[6978,6978,`NSM`],[7019,7027,`NSM`],[7040,7041,`NSM`],[7074,7077,`NSM`],[7080,7081,`NSM`],[7083,7085,`NSM`],[7142,7142,`NSM`],[7144,7145,`NSM`],[7149,7149,`NSM`],[7151,7153,`NSM`],[7212,7219,`NSM`],[7222,7223,`NSM`],[7376,7378,`NSM`],[7380,7392,`NSM`],[7394,7400,`NSM`],[7405,7405,`NSM`],[7412,7412,`NSM`],[7416,7417,`NSM`],[7616,7679,`NSM`],[8125,8125,`ON`],[8127,8129,`ON`],[8141,8143,`ON`],[8157,8159,`ON`],[8173,8175,`ON`],[8189,8190,`ON`],[8192,8202,`WS`],[8203,8205,`BN`],[8207,8207,`R`],[8208,8231,`ON`],[8232,8232,`WS`],[8233,8233,`B`],[8234,8238,`BN`],[8239,8239,`CS`],[8240,8244,`ET`],[8245,8259,`ON`],[8260,8260,`CS`],[8261,8286,`ON`],[8287,8287,`WS`],[8288,8303,`BN`],[8304,8304,`EN`],[8308,8313,`EN`],[8314,8315,`ES`],[8316,8318,`ON`],[8320,8329,`EN`],[8330,8331,`ES`],[8332,8334,`ON`],[8352,8399,`ET`],[8400,8432,`NSM`],[8448,8449,`ON`],[8451,8454,`ON`],[8456,8457,`ON`],[8468,8468,`ON`],[8470,8472,`ON`],[8478,8483,`ON`],[8485,8485,`ON`],[8487,8487,`ON`],[8489,8489,`ON`],[8494,8494,`ET`],[8506,8507,`ON`],[8512,8516,`ON`],[8522,8525,`ON`],[8528,8543,`ON`],[8585,8587,`ON`],[8592,8721,`ON`],[8722,8722,`ES`],[8723,8723,`ET`],[8724,9013,`ON`],[9083,9108,`ON`],[9110,9257,`ON`],[9280,9290,`ON`],[9312,9351,`ON`],[9352,9371,`EN`],[9450,9899,`ON`],[9901,10239,`ON`],[10496,11123,`ON`],[11126,11263,`ON`],[11493,11498,`ON`],[11503,11505,`NSM`],[11513,11519,`ON`],[11647,11647,`NSM`],[11744,11775,`NSM`],[11776,11869,`ON`],[11904,11929,`ON`],[11931,12019,`ON`],[12032,12245,`ON`],[12272,12287,`ON`],[12288,12288,`WS`],[12289,12292,`ON`],[12296,12320,`ON`],[12330,12333,`NSM`],[12336,12336,`ON`],[12342,12343,`ON`],[12349,12351,`ON`],[12441,12442,`NSM`],[12443,12444,`ON`],[12448,12448,`ON`],[12539,12539,`ON`],[12736,12773,`ON`],[12783,12783,`ON`],[12829,12830,`ON`],[12880,12895,`ON`],[12924,12926,`ON`],[12977,12991,`ON`],[13004,13007,`ON`],[13175,13178,`ON`],[13278,13279,`ON`],[13311,13311,`ON`],[19904,19967,`ON`],[42128,42182,`ON`],[42509,42511,`ON`],[42607,42610,`NSM`],[42611,42611,`ON`],[42612,42621,`NSM`],[42622,42623,`ON`],[42654,42655,`NSM`],[42736,42737,`NSM`],[42752,42785,`ON`],[42888,42888,`ON`],[43010,43010,`NSM`],[43014,43014,`NSM`],[43019,43019,`NSM`],[43045,43046,`NSM`],[43048,43051,`ON`],[43052,43052,`NSM`],[43064,43065,`ET`],[43124,43127,`ON`],[43204,43205,`NSM`],[43232,43249,`NSM`],[43263,43263,`NSM`],[43302,43309,`NSM`],[43335,43345,`NSM`],[43392,43394,`NSM`],[43443,43443,`NSM`],[43446,43449,`NSM`],[43452,43453,`NSM`],[43493,43493,`NSM`],[43561,43566,`NSM`],[43569,43570,`NSM`],[43573,43574,`NSM`],[43587,43587,`NSM`],[43596,43596,`NSM`],[43644,43644,`NSM`],[43696,43696,`NSM`],[43698,43700,`NSM`],[43703,43704,`NSM`],[43710,43711,`NSM`],[43713,43713,`NSM`],[43756,43757,`NSM`],[43766,43766,`NSM`],[43882,43883,`ON`],[44005,44005,`NSM`],[44008,44008,`NSM`],[44013,44013,`NSM`],[64285,64285,`R`],[64286,64286,`NSM`],[64287,64296,`R`],[64297,64297,`ES`],[64298,64335,`R`],[64336,64450,`AL`],[64451,64466,`ON`],[64467,64829,`AL`],[64830,64847,`ON`],[64848,64911,`AL`],[64912,64913,`ON`],[64914,64967,`AL`],[64968,64975,`ON`],[64976,65007,`BN`],[65008,65020,`AL`],[65021,65023,`ON`],[65024,65039,`NSM`],[65040,65049,`ON`],[65056,65071,`NSM`],[65072,65103,`ON`],[65104,65104,`CS`],[65105,65105,`ON`],[65106,65106,`CS`],[65108,65108,`ON`],[65109,65109,`CS`],[65110,65118,`ON`],[65119,65119,`ET`],[65120,65121,`ON`],[65122,65123,`ES`],[65124,65126,`ON`],[65128,65128,`ON`],[65129,65130,`ET`],[65131,65131,`ON`],[65136,65278,`AL`],[65279,65279,`BN`],[65281,65282,`ON`],[65283,65285,`ET`],[65286,65290,`ON`],[65291,65291,`ES`],[65292,65292,`CS`],[65293,65293,`ES`],[65294,65295,`CS`],[65296,65305,`EN`],[65306,65306,`CS`],[65307,65312,`ON`],[65339,65344,`ON`],[65371,65381,`ON`],[65504,65505,`ET`],[65506,65508,`ON`],[65509,65510,`ET`],[65512,65518,`ON`],[65520,65528,`BN`],[65529,65533,`ON`],[65534,65535,`BN`],[65793,65793,`ON`],[65856,65932,`ON`],[65936,65948,`ON`],[65952,65952,`ON`],[66045,66045,`NSM`],[66272,66272,`NSM`],[66273,66299,`EN`],[66422,66426,`NSM`],[67584,67870,`R`],[67871,67871,`ON`],[67872,68096,`R`],[68097,68099,`NSM`],[68100,68100,`R`],[68101,68102,`NSM`],[68103,68107,`R`],[68108,68111,`NSM`],[68112,68151,`R`],[68152,68154,`NSM`],[68155,68158,`R`],[68159,68159,`NSM`],[68160,68324,`R`],[68325,68326,`NSM`],[68327,68408,`R`],[68409,68415,`ON`],[68416,68863,`R`],[68864,68899,`AL`],[68900,68903,`NSM`],[68904,68911,`AL`],[68912,68921,`AN`],[68922,68927,`AL`],[68928,68937,`AN`],[68938,68968,`R`],[68969,68973,`NSM`],[68974,68974,`ON`],[68975,69215,`R`],[69216,69246,`AN`],[69247,69290,`R`],[69291,69292,`NSM`],[69293,69311,`R`],[69312,69327,`AL`],[69328,69336,`ON`],[69337,69369,`AL`],[69370,69375,`NSM`],[69376,69423,`R`],[69424,69445,`AL`],[69446,69456,`NSM`],[69457,69487,`AL`],[69488,69505,`R`],[69506,69509,`NSM`],[69510,69631,`R`],[69633,69633,`NSM`],[69688,69702,`NSM`],[69714,69733,`ON`],[69744,69744,`NSM`],[69747,69748,`NSM`],[69759,69761,`NSM`],[69811,69814,`NSM`],[69817,69818,`NSM`],[69826,69826,`NSM`],[69888,69890,`NSM`],[69927,69931,`NSM`],[69933,69940,`NSM`],[70003,70003,`NSM`],[70016,70017,`NSM`],[70070,70078,`NSM`],[70089,70092,`NSM`],[70095,70095,`NSM`],[70191,70193,`NSM`],[70196,70196,`NSM`],[70198,70199,`NSM`],[70206,70206,`NSM`],[70209,70209,`NSM`],[70367,70367,`NSM`],[70371,70378,`NSM`],[70400,70401,`NSM`],[70459,70460,`NSM`],[70464,70464,`NSM`],[70502,70508,`NSM`],[70512,70516,`NSM`],[70587,70592,`NSM`],[70606,70606,`NSM`],[70608,70608,`NSM`],[70610,70610,`NSM`],[70625,70626,`NSM`],[70712,70719,`NSM`],[70722,70724,`NSM`],[70726,70726,`NSM`],[70750,70750,`NSM`],[70835,70840,`NSM`],[70842,70842,`NSM`],[70847,70848,`NSM`],[70850,70851,`NSM`],[71090,71093,`NSM`],[71100,71101,`NSM`],[71103,71104,`NSM`],[71132,71133,`NSM`],[71219,71226,`NSM`],[71229,71229,`NSM`],[71231,71232,`NSM`],[71264,71276,`ON`],[71339,71339,`NSM`],[71341,71341,`NSM`],[71344,71349,`NSM`],[71351,71351,`NSM`],[71453,71453,`NSM`],[71455,71455,`NSM`],[71458,71461,`NSM`],[71463,71467,`NSM`],[71727,71735,`NSM`],[71737,71738,`NSM`],[71995,71996,`NSM`],[71998,71998,`NSM`],[72003,72003,`NSM`],[72148,72151,`NSM`],[72154,72155,`NSM`],[72160,72160,`NSM`],[72193,72198,`NSM`],[72201,72202,`NSM`],[72243,72248,`NSM`],[72251,72254,`NSM`],[72263,72263,`NSM`],[72273,72278,`NSM`],[72281,72283,`NSM`],[72330,72342,`NSM`],[72344,72345,`NSM`],[72544,72544,`NSM`],[72546,72548,`NSM`],[72550,72550,`NSM`],[72752,72758,`NSM`],[72760,72765,`NSM`],[72850,72871,`NSM`],[72874,72880,`NSM`],[72882,72883,`NSM`],[72885,72886,`NSM`],[73009,73014,`NSM`],[73018,73018,`NSM`],[73020,73021,`NSM`],[73023,73029,`NSM`],[73031,73031,`NSM`],[73104,73105,`NSM`],[73109,73109,`NSM`],[73111,73111,`NSM`],[73459,73460,`NSM`],[73472,73473,`NSM`],[73526,73530,`NSM`],[73536,73536,`NSM`],[73538,73538,`NSM`],[73562,73562,`NSM`],[73685,73692,`ON`],[73693,73696,`ET`],[73697,73713,`ON`],[78912,78912,`NSM`],[78919,78933,`NSM`],[90398,90409,`NSM`],[90413,90415,`NSM`],[92912,92916,`NSM`],[92976,92982,`NSM`],[94031,94031,`NSM`],[94095,94098,`NSM`],[94178,94178,`ON`],[94180,94180,`NSM`],[113821,113822,`NSM`],[113824,113827,`BN`],[117760,117973,`ON`],[118e3,118009,`EN`],[118010,118012,`ON`],[118016,118451,`ON`],[118458,118480,`ON`],[118496,118512,`ON`],[118528,118573,`NSM`],[118576,118598,`NSM`],[119143,119145,`NSM`],[119155,119162,`BN`],[119163,119170,`NSM`],[119173,119179,`NSM`],[119210,119213,`NSM`],[119273,119274,`ON`],[119296,119361,`ON`],[119362,119364,`NSM`],[119365,119365,`ON`],[119552,119638,`ON`],[120513,120513,`ON`],[120539,120539,`ON`],[120571,120571,`ON`],[120597,120597,`ON`],[120629,120629,`ON`],[120655,120655,`ON`],[120687,120687,`ON`],[120713,120713,`ON`],[120745,120745,`ON`],[120771,120771,`ON`],[120782,120831,`EN`],[121344,121398,`NSM`],[121403,121452,`NSM`],[121461,121461,`NSM`],[121476,121476,`NSM`],[121499,121503,`NSM`],[121505,121519,`NSM`],[122880,122886,`NSM`],[122888,122904,`NSM`],[122907,122913,`NSM`],[122915,122916,`NSM`],[122918,122922,`NSM`],[123023,123023,`NSM`],[123184,123190,`NSM`],[123566,123566,`NSM`],[123628,123631,`NSM`],[123647,123647,`ET`],[124140,124143,`NSM`],[124398,124399,`NSM`],[124643,124643,`NSM`],[124646,124646,`NSM`],[124654,124655,`NSM`],[124661,124661,`NSM`],[124928,125135,`R`],[125136,125142,`NSM`],[125143,125251,`R`],[125252,125258,`NSM`],[125259,126063,`R`],[126064,126143,`AL`],[126144,126207,`R`],[126208,126287,`AL`],[126288,126463,`R`],[126464,126703,`AL`],[126704,126705,`ON`],[126706,126719,`AL`],[126720,126975,`R`],[126976,127019,`ON`],[127024,127123,`ON`],[127136,127150,`ON`],[127153,127167,`ON`],[127169,127183,`ON`],[127185,127221,`ON`],[127232,127242,`EN`],[127243,127247,`ON`],[127279,127279,`ON`],[127338,127343,`ON`],[127405,127405,`ON`],[127584,127589,`ON`],[127744,128728,`ON`],[128732,128748,`ON`],[128752,128764,`ON`],[128768,128985,`ON`],[128992,129003,`ON`],[129008,129008,`ON`],[129024,129035,`ON`],[129040,129095,`ON`],[129104,129113,`ON`],[129120,129159,`ON`],[129168,129197,`ON`],[129200,129211,`ON`],[129216,129217,`ON`],[129232,129240,`ON`],[129280,129623,`ON`],[129632,129645,`ON`],[129648,129660,`ON`],[129664,129674,`ON`],[129678,129734,`ON`],[129736,129736,`ON`],[129741,129756,`ON`],[129759,129770,`ON`],[129775,129784,`ON`],[129792,129938,`ON`],[129940,130031,`ON`],[130032,130041,`EN`],[130042,130042,`ON`],[131070,131071,`BN`],[196606,196607,`BN`],[262142,262143,`BN`],[327678,327679,`BN`],[393214,393215,`BN`],[458750,458751,`BN`],[524286,524287,`BN`],[589822,589823,`BN`],[655358,655359,`BN`],[720894,720895,`BN`],[786430,786431,`BN`],[851966,851967,`BN`],[917502,917759,`BN`],[917760,917999,`NSM`],[918e3,921599,`BN`],[983038,983039,`BN`],[1048574,1048575,`BN`],[1114110,1114111,`BN`]];function n(n){if(n<=255)return e[n];let r=0,i=t.length-1;for(;r<=i;){let e=r+i>>1,a=t[e];if(n<a[0]){i=e-1;continue}if(n>a[1]){r=e+1;continue}return a[2]}return`L`}function r(e){let t=e.length;if(t===0)return null;let r=Array(t),i=!1;for(let a=0;a<t;){let o=e.charCodeAt(a),s=o,c=1;if(o>=55296&&o<=56319&&a+1<t){let t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(s=(o-55296<<10)+(t-56320)+65536,c=2)}let l=n(s);(l===`R`||l===`AL`||l===`AN`)&&(i=!0);for(let e=0;e<c;e++)r[a+e]=l;a+=c}if(!i)return null;let a=0;for(let e=0;e<t;e++){let t=r[e];if(t===`L`){a=0;break}if(t===`R`||t===`AL`){a=1;break}}let o=new Int8Array(t);for(let e=0;e<t;e++)o[e]=a;let s=a&1?`R`:`L`,c=s,l=c;for(let e=0;e<t;e++)r[e]===`NSM`?r[e]=l:l=r[e];l=c;for(let e=0;e<t;e++){let t=r[e];t===`EN`?r[e]=l===`AL`?`AN`:`EN`:(t===`R`||t===`L`||t===`AL`)&&(l=t)}for(let e=0;e<t;e++)r[e]===`AL`&&(r[e]=`R`);for(let e=1;e<t-1;e++)r[e]===`ES`&&r[e-1]===`EN`&&r[e+1]===`EN`&&(r[e]=`EN`),r[e]===`CS`&&(r[e-1]===`EN`||r[e-1]===`AN`)&&r[e+1]===r[e-1]&&(r[e]=r[e-1]);for(let e=0;e<t;e++){if(r[e]!==`EN`)continue;let n;for(n=e-1;n>=0&&r[n]===`ET`;n--)r[n]=`EN`;for(n=e+1;n<t&&r[n]===`ET`;n++)r[n]=`EN`}for(let e=0;e<t;e++){let t=r[e];(t===`WS`||t===`ES`||t===`ET`||t===`CS`)&&(r[e]=`ON`)}l=c;for(let e=0;e<t;e++){let t=r[e];t===`EN`?r[e]=l===`L`?`L`:`EN`:(t===`R`||t===`L`)&&(l=t)}for(let e=0;e<t;e++){if(r[e]!==`ON`)continue;let n=e+1;for(;n<t&&r[n]===`ON`;)n++;let i=e>0?r[e-1]:c,a=n<t?r[n]:c,o=i===`L`?`L`:`R`;if(o===(a===`L`?`L`:`R`))for(let t=e;t<n;t++)r[t]=o;e=n-1}for(let e=0;e<t;e++)r[e]===`ON`&&(r[e]=s);for(let e=0;e<t;e++){let t=r[e];o[e]&1?(t===`L`||t===`AN`||t===`EN`)&&o[e]++:t===`R`?o[e]++:(t===`AN`||t===`EN`)&&(o[e]+=2)}return o}function i(e,t){let n=r(e);if(n===null)return null;let i=new Int8Array(t.length);for(let e=0;e<t.length;e++)i[e]=n[t[e]];return i}let a=/[ \\t\\n\\r\\f]+/g,o=/[\\t\\n\\r\\f]| {2,}|^ | $/;function s(e){let t=e??`normal`;return t===`pre-wrap`?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function c(e){if(!o.test(e))return e;let t=e.replace(a,` `);return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function l(e){return/[\\r\\f]/.test(e)?e.replace(/\\r\\n/g,`\n`).replace(/[\\r\\f]/g,`\n`):e}let u=null;function d(){return u===null&&(u=new Intl.Segmenter(void 0,{granularity:`word`})),u}let f=/\\p{Script=Arabic}/u,p=/\\p{M}/u,m=/\\p{Nd}/u;function h(e){return f.test(e)}function g(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function _(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){if(g((n-55296<<10)+(r-56320)+65536))return!0;t++;continue}}if(g(n))return!0}}return!1}function v(e){let t=M(e);return t!==null&&(w.has(t)||D.has(t))}let y=new Set([`\\xA0`,` `,``,``]),b=new Set([`-`,`‐`,`–`,`—`]);function x(e){let t=M(e);return t!==null&&y.has(t)}function S(e){let t=M(e);return t!==null&&b.has(t)}function C(e,t){return x(e)?!1:t?!(v(e)||S(e)):!0}let w=new Set(`,...!.:.;.?.、.。.・.).〕.〉.》.」.』.】.〗.〙.〛.ー.々.〻.ゝ.ゞ.ヽ.ヾ`.split(`.`)),T=new Set([`\"`,`(`,`[`,`{`,`¡`,`¿`,`“`,`‘`,`‚`,`„`,`«`,`‹`,`⸘`,`(`,`〔`,`〈`,`《`,`「`,`『`,`【`,`〖`,`〘`,`〚`]),E=new Set([`'`,`’`]),D=new Set(`.(,(!(?(:(;(،(؛(؟(।(॥(၊(။(၌(၍(၏()(](}(%(\"(”(’(»(›(…`.split(`(`)),O=new Set([`:`,`.`,`،`,`؛`]),k=new Set([`၏`]),ee=new Set([`”`,`’`,`»`,`›`,`」`,`』`,`】`,`》`,`〉`,`〕`,`)`]);function te(e){if(A(e))return!0;let t=!1;for(let n of e){if(D.has(n)||N(n)){t=!0;continue}if(!(t&&p.test(n)))return!1}return t}function ne(e){for(let t of e)if(!w.has(t)&&!D.has(t))return!1;return e.length>0}function re(e){if(A(e))return!0;for(let t of e)if(!T.has(t)&&!E.has(t)&&!p.test(t)&&!N(t))return!1;return e.length>0}function A(e){let t=!1;for(let n of e)if(!(n===`\\\\`||p.test(n))){if(T.has(n)||D.has(n)||E.has(n)){t=!0;continue}return!1}return t}function j(e,t){let n=t-1;if(n<=0)return Math.max(n,0);let r=e.charCodeAt(n);if(r<56320||r>57343)return n;let i=n-1;if(i<0)return n;let a=e.charCodeAt(i);return a>=55296&&a<=56319?i:n}function M(e){if(e.length===0)return null;let t=j(e,e.length);return e.slice(t)}function ie(e){for(let t of e)if(!p.test(t))return t;return null}function ae(e){for(let t=e.length;t>0;){let n=j(e,t),r=e.slice(n,t);if(!p.test(r))return r;t=n}return null}let oe=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function se(e,t){for(let n=0;n<t.length;n+=2)if(e>=t[n]&&e<=t[n+1])return!0;return!1}function N(e){let t=e.codePointAt(0);return t!==void 0&&se(t,oe)}function ce(e){let t=ae(e);return t!==null&&N(t)}function le(e){let t=ie(e);return t!==null&&m.test(t)}function ue(e){let t=Array.from(e),n=t.length;for(;n>0;){let e=t[n-1];if(p.test(e)){n--;continue}if(T.has(e)||E.has(e)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(``),tail:t.slice(n).join(``)}}function de(e,t,n){return n===`text`&&!t&&e.length===1&&e!==`-`&&e!==`—`?e:null}function fe(e,t,n,r){let i=t[r],a=e[r];if(i==null)return a;let o=n[r];if(a.length===o)return a;let s=i.repeat(o);return e[r]=s,s}function P(e,t){return e&&t!==null&&O.has(t)}function pe(e){let t=M(e);return t!==null&&k.has(t)}function me(e){if(e.length<2||e[0]!==` `)return null;let t=e.slice(1);return/^\\p{M}+$/u.test(t)?{space:` `,marks:t}:null}function F(e){let t=e.length;for(;t>0;){let n=j(e,t),r=e.slice(n,t);if(ee.has(r))return!0;if(!D.has(r))return!1;t=n}return!1}function he(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===` `)return`preserved-space`;if(e===` `)return`tab`;if(t.preserveHardBreaks&&e===`\n`)return`hard-break`}return e===` `?`space`:e===`\\xA0`||e===` `||e===``||e===``?`glue`:e===``?`zero-width-break`:e===``?`soft-hyphen`:`text`}let ge=/[\\x20\\t\\n\\xA0\\xAD\\u200B\\u202F\\u2060\\uFEFF]/;function I(e){return e.length===1?e[0]:e.join(``)}function _e(e,t){let n=[];for(let t=e.length-1;t>=0;t--)n.push(e[t]);return n.push(t),I(n)}function ve(e,t,n,r){if(!ge.test(e))return[{text:e,isWordLike:t,kind:`text`,start:n}];let i=[],a=null,o=[],s=n,c=!1,l=0;for(let u of e){let e=he(u,r),d=e===`text`&&t;if(a!==null&&e===a&&d===c){o.push(u),l+=u.length;continue}a!==null&&i.push({text:I(o),isWordLike:c,kind:a,start:s}),a=e,o=[u],s=n+l,c=d,l+=u.length}return a!==null&&i.push({text:I(o),isWordLike:c,kind:a,start:s}),i}function L(e){return e===`space`||e===`preserved-space`||e===`zero-width-break`||e===`hard-break`}let ye=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function be(e,t){let n=e.texts[t];return n.startsWith(`www.`)?!0:ye.test(n)&&t+1<e.len&&e.kinds[t+1]===`text`&&e.texts[t+1]===`//`}function xe(e){return e.includes(`?`)&&(e.includes(`://`)||e.startsWith(`www.`))}function Se(e){let t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),i=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!==`text`||!be(e,i))continue;let a=[t[i]],o=i+1;for(;o<e.len&&!L(r[o]);){a.push(t[o]),n[i]=!0;let e=t[o].includes(`?`);if(r[o]=`text`,t[o]=``,o++,e)break}t[i]=I(a)}let a=0;for(let e=0;e<t.length;e++){let o=t[e];o.length!==0&&(a!==e&&(t[a]=o,n[a]=n[e],r[a]=r[e],i[a]=i[e]),a++)}return t.length=a,n.length=a,r.length=a,i.length=a,{len:a,texts:t,isWordLike:n,kinds:r,starts:i}}function Ce(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a];if(t.push(o),n.push(e.isWordLike[a]),r.push(e.kinds[a]),i.push(e.starts[a]),!xe(o))continue;let s=a+1;if(s>=e.len||L(e.kinds[s]))continue;let c=[],l=e.starts[s],u=s;for(;u<e.len&&!L(e.kinds[u]);)c.push(e.texts[u]),u++;c.length>0&&(t.push(I(c)),n.push(!0),r.push(`text`),i.push(l),a=u-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}let we=new Set([`:`,`-`,`/`,`×`,`,`,`.`,`+`,`–`,`—`]),Te=new Set([`.`,`,`,`:`,`;`]);function R(e){for(let t=e.length;t>0;){let n=j(e,t),r=e.slice(n,t);if(p.test(r)){t=n;continue}return Te.has(r)||N(r)}return!1}function Ee(e,t){return t&&!_(e)}function z(e){for(let t of e)if(m.test(t))return!0;return!1}function B(e){if(e.length===0)return!1;for(let t of e)if(!(m.test(t)||we.has(t)))return!1;return!0}function De(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a],s=e.kinds[a];if(s===`text`&&B(o)&&z(o)){let s=[o],c=a+1;for(;c<e.len&&e.kinds[c]===`text`&&B(e.texts[c]);)s.push(e.texts[c]),c++;t.push(I(s)),n.push(!0),r.push(`text`),i.push(e.starts[a]),a=c-1;continue}t.push(o),n.push(e.isWordLike[a]),r.push(s),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function Oe(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a],s=e.kinds[a],c=e.isWordLike[a];if(s===`text`&&R(o)&&(c||ce(o))&&!_(o)){let s=[o],c=!0,l=a+1;for(;c&&l<e.len&&e.kinds[l]===`text`&&Ee(e.texts[l],e.isWordLike[l]);){let t=e.texts[l];s.push(t),c=R(t),l++}t.push(I(s)),n.push(!0),r.push(`text`),i.push(e.starts[a]),a=l-1;continue}t.push(o),n.push(c),r.push(s),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function ke(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a];if(e.kinds[a]===`text`&&o.includes(`-`)){let s=o.split(`-`),c=s.length>1;for(let e=0;e<s.length;e++){let t=s[e];if(!c)break;(t.length===0||!z(t)||!B(t))&&(c=!1)}if(c){let o=0;for(let c=0;c<s.length;c++){let l=s[c],u=c<s.length-1?`${l}-`:l;t.push(u),n.push(!0),r.push(`text`),i.push(e.starts[a]+o),o+=u.length}continue}}t.push(o),n.push(e.isWordLike[a]),r.push(e.kinds[a]),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function Ae(e){let t=[],n=[],r=[],i=[],a=0;for(;a<e.len;){let o=[e.texts[a]],s=e.isWordLike[a],c=e.kinds[a],l=e.starts[a];if(c===`glue`){let u=[o[0]],d=l;for(a++;a<e.len&&e.kinds[a]===`glue`;)u.push(e.texts[a]),a++;let f=I(u);if(a<e.len&&e.kinds[a]===`text`)o[0]=f,o.push(e.texts[a]),s=e.isWordLike[a],c=`text`,l=d,a++;else{t.push(f),n.push(!1),r.push(`glue`),i.push(d);continue}}else a++;if(c===`text`)for(;a<e.len&&e.kinds[a]===`glue`;){let t=[];for(;a<e.len&&e.kinds[a]===`glue`;)t.push(e.texts[a]),a++;let n=I(t);if(a<e.len&&e.kinds[a]===`text`){o.push(n,e.texts[a]),s||=e.isWordLike[a],a++;continue}o.push(n)}t.push(I(o)),n.push(s),r.push(c),i.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function je(e){let t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),i=e.starts.slice();for(let e=0;e<t.length-1;e++){if(r[e]!==`text`||r[e+1]!==`text`||!_(t[e])||!_(t[e+1]))continue;let n=ue(t[e]);n!==null&&(t[e]=n.head,t[e+1]=n.tail+t[e+1],i[e+1]=i[e]+n.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function Me(e,t,n){let r=d(),i=0,a=[],o=[],s=[],c=[],l=[],u=[],f=[],p=[],m=[],g=[],v=[],y=[];for(let d of r.segment(e))for(let e of ve(d.segment,d.isWordLike??!1,d.index,n)){let n=e.kind===`text`,r=de(e.text,e.isWordLike,e.kind),d=_(e.text),x=h(e.text),S=M(e.text),C=F(e.text),w=pe(e.text),T=i-1;function b(){u[T]!==null&&(o[T]=[fe(a,u,f,T)],u[T]=null),o[T].push(e.text),s[T]=s[T]||e.isWordLike,p[T]=p[T]||d,m[T]=m[T]||x,g[T]=C,v[T]=w,y[T]=P(m[T],S)}t.carryCJKAfterClosingQuote&&n&&i>0&&c[T]===`text`&&d&&p[T]&&g[T]||n&&i>0&&c[T]===`text`&&ne(e.text)&&p[T]||n&&i>0&&c[T]===`text`&&v[T]?b():n&&i>0&&c[T]===`text`&&e.isWordLike&&x&&y[T]?(b(),s[T]=!0):r!==null&&i>0&&c[T]===`text`&&u[T]===r?f[T]=(f[T]??1)+1:n&&!e.isWordLike&&i>0&&c[T]===`text`&&!p[T]&&(te(e.text)||e.text===`-`&&s[T])?b():(a[i]=e.text,o[i]=[e.text],s[i]=e.isWordLike,c[i]=e.kind,l[i]=e.start,u[i]=r,f[i]=r===null?0:1,p[i]=d,m[i]=x,g[i]=C,v[i]=w,y[i]=P(x,S),i++)}for(let e=0;e<i;e++){if(u[e]!==null){a[e]=fe(a,u,f,e);continue}a[e]=I(o[e])}for(let e=1;e<i;e++)c[e]===`text`&&!s[e]&&A(a[e])&&c[e-1]===`text`&&!p[e-1]&&(a[e-1]+=a[e],s[e-1]=s[e-1]||s[e],a[e]=``);let x=Array.from({length:i},()=>null),S=-1;for(let e=i-1;e>=0;e--){let t=a[e];if(t.length!==0){if(c[e]===`text`&&!s[e]&&S>=0&&c[S]===`text`&&(re(t)||t===`-`&&le(a[S]))){let n=x[S]??[];n.push(t),x[S]=n,l[S]=l[e],a[e]=``;continue}S=e}}for(let e=0;e<i;e++){let t=x[e];t!=null&&(a[e]=_e(t,a[e]))}let C=0;for(let e=0;e<i;e++){let t=a[e];t.length!==0&&(C!==e&&(a[C]=t,s[C]=s[e],c[C]=c[e],l[C]=l[e]),C++)}a.length=C,s.length=C,c.length=C,l.length=C;let w=je(Oe(ke(De(Ce(Se(Ae({len:C,texts:a,isWordLike:s,kinds:c,starts:l})))))));for(let e=0;e<w.len-1;e++){let t=me(w.texts[e]);t!==null&&(w.kinds[e]!==`space`&&w.kinds[e]!==`preserved-space`||w.kinds[e+1]!==`text`||!h(w.texts[e+1])||(w.texts[e]=t.space,w.isWordLike[e]=!1,w.kinds[e]=w.kinds[e]===`preserved-space`?`preserved-space`:`space`,w.texts[e+1]=t.marks+w.texts[e+1],w.starts[e+1]=w.starts[e]+t.space.length))}return w}function Ne(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];let n=[],r=0;for(let t=0;t<e.len;t++)e.kinds[t]===`hard-break`&&(n.push({startSegmentIndex:r,endSegmentIndex:t,consumedEndSegmentIndex:t+1}),r=t+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function Pe(e,t,n){if(t.len<=1)return t;let r=[],i=[],a=[],o=[],s=-1,c=!1;function l(e){r.push(t.texts[e]),i.push(t.isWordLike[e]),a.push(`text`),o.push(t.starts[e])}function u(n,s){let c=!1;for(let e=n;e<s;e++)c||=t.isWordLike[e];let l=t.starts[n],u=s<t.len?t.starts[s]:e.length;r.push(e.slice(l,u)),i.push(c),a.push(`text`),o.push(l)}function d(e){if(!(s<0)){if(c)s+1===e?l(s):u(s,e);else for(let t=s;t<e;t++)l(t);s=-1,c=!1}}for(let e=0;e<t.len;e++){let l=t.texts[e],u=t.kinds[e];if(u===`text`){s>=0&&!C(t.texts[e-1],n)&&d(e),s<0&&(s=e),c||=_(l);continue}d(e),r.push(l),i.push(t.isWordLike[e]),a.push(u),o.push(t.starts[e])}return d(t.len),{len:r.length,texts:r,isWordLike:i,kinds:a,starts:o}}function Fe(e,t,n=`normal`,r=`normal`){let i=s(n),a=i.mode===`pre-wrap`?l(e):c(e);if(a.length===0)return{normalized:a,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let o=Me(a,t,i),u=r===`keep-all`?Pe(a,o,t.breakKeepAllAfterPunctuation):o;return{normalized:a,chunks:Ne(u,i),...u}}let V=null,H=new Map,U=null,Ie=/\\p{Emoji_Presentation}/u,Le=/[\\p{Emoji_Presentation}\\p{Extended_Pictographic}\\p{Regional_Indicator}\\uFE0F\\u20E3]/u,W=null,G=new Map;function K(){if(V!==null)return V;if(typeof OffscreenCanvas<`u`)return V=new OffscreenCanvas(1,1).getContext(`2d`),V;if(typeof document<`u`)return V=document.createElement(`canvas`).getContext(`2d`),V;throw Error(`Text measurement requires OffscreenCanvas or a DOM canvas context.`)}function Re(e){let t=H.get(e);return t||(t=new Map,H.set(e,t)),t}function q(e,t){let n=t.get(e);return n===void 0&&(n={width:K().measureText(e).width,containsCJK:_(e)},t.set(e,n)),n}function J(){if(U!==null)return U;if(typeof navigator>`u`)return U={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},U;let e=navigator.userAgent,t=navigator.vendor===`Apple Computer, Inc.`&&e.includes(`Safari/`)&&!e.includes(`Chrome/`)&&!e.includes(`Chromium/`)&&!e.includes(`CriOS/`)&&!e.includes(`FxiOS/`)&&!e.includes(`EdgiOS/`),n=e.includes(`Chrome/`)||e.includes(`Chromium/`)||e.includes(`CriOS/`)||e.includes(`Edg/`);return U={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!t,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},U}function ze(e){let t=e.match(/(\\d+(?:\\.\\d+)?)\\s*px/);return t?parseFloat(t[1]):16}function Y(){return W===null&&(W=new Intl.Segmenter(void 0,{granularity:`grapheme`})),W}function Be(e){return Ie.test(e)||e.includes(`️`)}function Ve(e){return Le.test(e)}function He(e,t){let n=G.get(e);if(n!==void 0)return n;let r=K();r.font=e;let i=r.measureText(`😀`).width;if(n=0,i>t+.5&&typeof document<`u`&&document.body!==null){let t=document.createElement(`span`);t.style.font=e,t.style.display=`inline-block`,t.style.visibility=`hidden`,t.style.position=`absolute`,t.textContent=`😀`,document.body.appendChild(t);let r=t.getBoundingClientRect().width;document.body.removeChild(t),i-r>.5&&(n=i-r)}return G.set(e,n),n}function Ue(e){let t=0,n=Y();for(let r of n.segment(e))Be(r.segment)&&t++;return t}function We(e,t){return t.emojiCount===void 0&&(t.emojiCount=Ue(e)),t.emojiCount}function X(e,t,n){return n===0?t.width:t.width-We(e,t)*n}function Ge(e,t,n,r,i){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===i)return t.breakableFitAdvances;t.breakableFitMode=i;let a=Y(),o=[];for(let t of a.segment(e))o.push(t.segment);if(o.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(i===`sum-graphemes`){let e=[];for(let t of o){let i=q(t,n);e.push(X(t,i,r))}return t.breakableFitAdvances=e,t.breakableFitAdvances}if(i===`pair-context`||o.length>96){let e=[],i=null,a=0;for(let t of o){let o=X(t,q(t,n),r);if(i===null)e.push(o);else{let o=i+t,s=q(o,n);e.push(X(o,s,r)-a)}i=t,a=o}return t.breakableFitAdvances=e,t.breakableFitAdvances}let s=[],c=``,l=0;for(let e of o){c+=e;let t=q(c,n),i=X(c,t,r);s.push(i-l),l=i}return t.breakableFitAdvances=s,t.breakableFitAdvances}function Ke(e,t){let n=K();n.font=e;let r=Re(e),i=ze(e);return{cache:r,fontSize:i,emojiCorrection:t?He(e,i):0}}function qe(e){return e===`space`||e===`zero-width-break`||e===`soft-hyphen`}function Je(e){return e===`space`||e===`preserved-space`||e===`tab`||e===`zero-width-break`||e===`soft-hyphen`}function Ye(e,t,n=e.widths.length){for(;t<n;){let n=e.kinds[t];if(!qe(n))break;t++}return t}function Xe(e,t){if(t<=0)return 0;let n=e%t;return Math.abs(n)<=1e-6?t:t-n}function Ze(e,t,n){return e.letterSpacing!==0&&t&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}function Z(e,t){return t===0?0:e+t}function Qe(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function $e(e,t,n,r,i){return Z(r,t===`tab`?i+Qe(e,n):e.lineEndFitAdvances[n])}function et(e,t,n,r){return Z(r,t===`tab`?0:e.lineEndFitAdvances[n])}function tt(e,t,n,r,i){return Z(r,t===`tab`?i:e.lineEndPaintAdvances[n])}function nt(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function rt(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function it(e,t,n,r,i){if(e.letterSpacing===0)return 0;if(i>0)return e.spacingGraphemeCounts[r]>0?e.letterSpacing:0;for(let i=r-1;i>=t;i--){let a=e.kinds[i];if(!(a===`space`||a===`zero-width-break`||a===`hard-break`)){if(a===`soft-hyphen`){if(i===r-1)return 0;continue}return i===t&&n>0||e.spacingGraphemeCounts[i]>0?e.letterSpacing:0}}return 0}function at(e,t,n,r,i,a){return t+it(e,n,r,i,a)}function ot(e,t){return ct(e,t)}function st(e,t,n){let{widths:r,kinds:i,breakableFitAdvances:a}=e;if(r.length===0)return 0;let o=t+J().lineFitEpsilon,s=0,c=0,l=!1,u=0,d=0,f=0,p=0,m=-1,h=0;function g(){m=-1,h=0}function _(e=f,t=p,r=c){s++,n?.(r,u,d,e,t),c=0,l=!1,g()}function v(e,t){l=!0,u=e,d=0,f=e+1,p=0,c=t}function y(e,t,n){l=!0,u=e,d=t,f=e,p=t+1,c=n}function b(e,t){if(!l){v(e,t);return}c+=t,f=e+1,p=0}function x(e,t){let n=a[e];for(let r=t;r<n.length;r++){let t=n[r];l?c+t>o?(_(),y(e,r,t)):(c+=t,f=e,p=r+1):y(e,r,t)}l&&f===e&&p===n.length&&(f=e+1,p=0)}let S=0;for(;S<r.length&&!(!l&&(S=Ye(e,S),S>=r.length));){let e=r[S],t=i[S],n=Je(t);if(!l){e>o&&a[S]!==null?x(S,0):v(S,e),n&&(m=S+1,h=c-e),S++;continue}if(c+e>o){if(n){b(S,e),_(S+1,0,c-e),S++;continue}if(m>=0){if(f>m||f===m&&p>0){_();continue}_(m,0,h);continue}if(e>o&&a[S]!==null){_(),x(S,0),S++;continue}_();continue}b(S,e),n&&(m=S+1,h=c-e),S++}return l&&_(),s}function ct(e,t,n){if(e.simpleLineWalkFastPath)return st(e,t,n);let{widths:r,kinds:i,breakableFitAdvances:a,discretionaryHyphenWidth:o,chunks:s}=e;if(r.length===0||s.length===0)return 0;let c=J(),l=t+c.lineFitEpsilon,u=0,d=0,f=!1,p=0,m=0,h=0,g=0,_=-1,v=0,y=0,b=null;function x(){_=-1,v=0,y=0,b=null}function S(){return b===`soft-hyphen`&&_===h&&g===0?y:d}function C(t=h,r=g,i){u++,n!==void 0&&n(at(e,i??S(),p,m,t,r),p,m,t,r),d=0,f=!1,x()}function w(e,t){f=!0,p=e,m=0,h=e+1,g=0,d=t}function T(e,t,n){f=!0,p=e,m=t,h=e,g=t+1,d=n}function E(e,t){if(!f){w(e,t);return}d+=t,h=e+1,g=0}function D(t,n,r,i,a,o){if(!n)return;let s=et(e,t,r,a),c=tt(e,t,r,a,i);_=r+1,v=d-o+s,y=d-o+c,b=t}function O(t,n){let r=a[t];for(let i=n;i<r.length;i++){let n=r[i];if(!f)T(t,i,n);else{let r=nt(e,!0,n),a=d+r;rt(e,a)>l?(C(),T(t,i,n)):(d=a,h=t,g=i+1)}}f&&h===t&&g===r.length&&(h=t+1,g=0)}function k(e){u++,n?.(0,e.startSegmentIndex,0,e.consumedEndSegmentIndex,0),x()}for(let t=0;t<s.length;t++){let n=s[t];if(n.startSegmentIndex===n.endSegmentIndex){k(n);continue}f=!1,d=0,p=n.startSegmentIndex,m=0,h=n.startSegmentIndex,g=0,x();let u=n.startSegmentIndex;for(;u<n.endSegmentIndex&&!(!f&&(u=Ye(e,u,n.endSegmentIndex),u>=n.endSegmentIndex));){let t=i[u],n=Je(t),s=Ze(e,f,u),p=t===`tab`?Xe(d+s,e.tabStopAdvance):r[u],m=s+p,x=$e(e,t,u,s,p);if(t===`soft-hyphen`){f&&(h=u+1,g=0,_=u+1,v=d+o,y=d+o,b=t),u++;continue}if(!f){x>l&&a[u]!==null?O(u,0):w(u,p),D(t,n,u,p,s,m),u++;continue}if(d+x>l){let r=d+et(e,t,u,s),i=d+tt(e,t,u,s,p);if(b===`soft-hyphen`&&c.preferEarlySoftHyphenBreak&&v<=l){C(_,0,y);continue}if(n&&r<=l){E(u,m),C(u+1,0,i),u++;continue}if(_>=0&&v<=l){if(h>_||h===_&&g>0){C();continue}let e=_;C(e,0,y),u=e;continue}if(x>l&&a[u]!==null){C(),O(u,0),u++;continue}C();continue}E(u,m),D(t,n,u,p,s,m),u++}if(f){let e=_===n.consumedEndSegmentIndex?y:d;C(n.consumedEndSegmentIndex,0,e)}}return u}let Q=null;function lt(){return Q===null&&(Q=new Intl.Segmenter(void 0,{granularity:`grapheme`})),Q}function ut(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function dt(e,t){let n=[],r=[],i=0,a=!1,o=!1,s=!1;function c(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(``),start:i}),r=[],a=!1,o=!1,s=!1)}function l(e,t,n){r=[e],i=t,a=n,o=F(e),s=T.has(e)}function u(e,t){r.push(e),a||=t;let n=F(e);e.length===1&&D.has(e)?o||=n:o=n,s=!1}for(let n of lt().segment(e)){let e=n.segment,i=_(e);if(r.length===0){l(e,n.index,i);continue}if(s||w.has(e)||D.has(e)||t.carryCJKAfterClosingQuote&&i&&o){u(e,i);continue}if(!a&&!i){u(e,i);continue}c(),l(e,n.index,i)}return c(),n}function ft(e,t,n){if(t.length<=1)return t;let r=[],i=-1,a=!1;function o(n,i){let a=t[n].start,o=i<t.length?t[i].start:e.length;r.push({text:e.slice(a,o),start:a})}function s(e){if(!(i<0)){if(a)i+1===e?r.push(t[i]):o(i,e);else for(let n=i;n<e;n++)r.push(t[n]);i=-1,a=!1}}for(let e=0;e<t.length;e++){let r=t[e];i>=0&&!C(t[e-1].text,n)&&s(e),i<0&&(i=e),a||=_(r.text)}return s(t.length),r}function $(e,t){if(t===`zero-width-break`||t===`soft-hyphen`||t===`hard-break`)return 0;if(t===`tab`)return 1;let n=0,r=lt();for(let t of r.segment(e))n++;return n}function pt(e,t,n){return t>1?e+(t-1)*n:e}function mt(e,t,n,r,a){let o=J(),{cache:s,emojiCorrection:c}=Ke(t,Ve(e.normalized)),l=X(`-`,q(`-`,s),c)+(a===0?0:a*2),u=X(` `,q(` `,s),c)*8,d=a!==0;if(e.len===0)return ut(n);let f=[],p=[],m=[],h=[],g=e.chunks.length<=1&&!d,v=n?[]:null,y=[],b=[],x=n?[]:null,S=Array.from({length:e.len});function C(e,t,n,r,i,a,o,s){i!==`text`&&i!==`space`&&i!==`zero-width-break`&&(g=!1),f.push(t),p.push(n),m.push(r),h.push(i),v?.push(a),y.push(o),d&&b.push(s),x!==null&&x.push(e)}function w(e,t,n,r,i){let l=q(e,s),u=d?$(e,t):0,f=pt(X(e,l,c),u,a),p=t===`space`||t===`preserved-space`||t===`zero-width-break`?0:f,m=p===0?0:p+(u>0?a:0),h=t===`space`||t===`zero-width-break`?0:f;if(i&&r&&e.length>1){let r=`sum-graphemes`;a===0?B(e)?r=`pair-context`:o.preferPrefixWidthsForBreakableRuns&&(r=`segment-prefixes`):r=`segment-prefixes`,C(e,f,m,h,t,n,Ge(e,l,s,c,r),u);return}C(e,f,m,h,t,n,null,u)}for(let t=0;t<e.len;t++){S[t]=f.length;let n=e.texts[t],i=e.isWordLike[t],a=e.kinds[t],c=e.starts[t];if(a===`soft-hyphen`){C(n,0,l,l,a,c,null,0);continue}if(a===`hard-break`){C(n,0,0,0,a,c,null,0);continue}if(a===`tab`){C(n,0,0,0,a,c,null,d?$(n,a):0);continue}let u=q(n,s);if(a===`text`&&u.containsCJK){let e=dt(n,o),t=r===`keep-all`?ft(n,e,o.breakKeepAllAfterPunctuation):e;for(let e=0;e<t.length;e++){let n=t[e];w(n.text,`text`,c+n.start,i,r===`keep-all`||!_(n.text))}continue}w(n,a,c,i,!0)}let T=ht(e.chunks,S,f.length),E=v===null?null:i(e.normalized,v);return x===null?{widths:f,lineEndFitAdvances:p,lineEndPaintAdvances:m,kinds:h,simpleLineWalkFastPath:g,segLevels:E,breakableFitAdvances:y,letterSpacing:a,spacingGraphemeCounts:b,discretionaryHyphenWidth:l,tabStopAdvance:u,chunks:T}:{widths:f,lineEndFitAdvances:p,lineEndPaintAdvances:m,kinds:h,simpleLineWalkFastPath:g,segLevels:E,breakableFitAdvances:y,letterSpacing:a,spacingGraphemeCounts:b,discretionaryHyphenWidth:l,tabStopAdvance:u,chunks:T,segments:x}}function ht(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a.startSegmentIndex<t.length?t[a.startSegmentIndex]:n,s=a.endSegmentIndex<t.length?t[a.endSegmentIndex]:n,c=a.consumedEndSegmentIndex<t.length?t[a.consumedEndSegmentIndex]:n;r.push({startSegmentIndex:o,endSegmentIndex:s,consumedEndSegmentIndex:c})}return r}function gt(e,t,n,r){let i=r?.wordBreak??`normal`,a=r?.letterSpacing??0;return mt(Fe(e,J(),r?.whiteSpace,i),t,n,i,a)}function _t(e,t,n){return gt(e,t,!1,n)}function vt(e){return e}function yt(e,t,n){let r=ot(vt(e),t);return{lineCount:r,height:r*n}}let bt=e=>{let t=0;switch(!0){case!e:case typeof e!=`string`:return t;default:break}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r>=19968&&r<=40959||r>=12352&&r<=12543||r>=44032&&r<=55215?t+=2:t+=1}return t};self.onmessage=e=>{let{tempData:t,commonStyles:n,itemStyles:r,divLineHeight:i,cellMinHeight:a,keyNames:o,isNoAutoWrap:s,columns:c,treeConfig:l,defaultTreeConfig:u}=e.data,d=0;performance.mark(`start`);let f=[],p=new Map,m=e=>{e.slots?.default&&!e.slots?.defaultHeight&&(p.has(e.field)||(console.error(`表格设置了插槽,插槽高度defaultHeight不能为空,否则会导致高度计算错误`,e.field),p.set(e.field,1))),(e.slots.defaultType==`tag`||e.slots.defaultType==`buttons`)&&(e.slots.defaultHeight||(e.slots.defaultHeight=30))},h=l?.childrenField||u.childrenField,g=(e,t)=>{e[h]?.length&&e[h].forEach(e=>{g(e,t+1)});let p=a,_=[],v=0;if(s)for(let e of c)m(e),v=Math.max(v,e.slots?.defaultHeight||0),p=Math.max(p,i);else{for(let n of c){(n.slots?.default||n.slots?.defaultType)&&(m(n),v=Math.max(v,n.slots?.defaultHeight||0));let r=Math.max(n.minWidth||30,n.width||0),i=e[n.field]||``;n.treeNode&&l?.isOpenTree&&(l?.showIcon&&(i+=`图`),l?.indent&&(r-=(l?.indent||u.indent||20)*t));let a=bt(i)/r;testLength:for(let e=0;e<3;e++)if((_[e]?.density||0)<a){_[e]={field:n.field,tempWidth:r,density:a,tempText:i};break testLength}}for(let e of _){let t=e.tempWidth,{height:a}=yt(_t(e.tempText,`${r.fontWeight} ${r.fontSize} ${n}`),t,i);p=Math.max(p,a)}}f.push({pretextHeight:Math.max(p,v)+1,id:e[o.id]}),t==0&&(d+=Math.max(p,v)+1)};for(let e of t)g(e,0);performance.mark(`end`),self.postMessage({tempItemHeights:d,heightDatas:f}),self.close()}})();", ue = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", le], { type: "text/javascript;charset=utf-8" });
|
|
6
|
-
function
|
|
5
|
+
var ue = "(function(){let e=`BN.BN.BN.BN.BN.BN.BN.BN.BN.S.B.S.WS.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.B.B.B.S.WS.ON.ON.ET.ET.ET.ON.ON.ON.ON.ON.ES.CS.ES.CS.CS.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.CS.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.BN.BN.BN.BN.BN.BN.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.CS.ON.ET.ET.ET.ET.ON.ON.ON.ON.L.ON.ON.BN.ON.ON.ET.ET.EN.EN.ON.L.ON.ON.ON.EN.L.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L`.split(`.`),t=[[697,698,`ON`],[706,719,`ON`],[722,735,`ON`],[741,749,`ON`],[751,767,`ON`],[768,879,`NSM`],[884,885,`ON`],[894,894,`ON`],[900,901,`ON`],[903,903,`ON`],[1014,1014,`ON`],[1155,1161,`NSM`],[1418,1418,`ON`],[1421,1422,`ON`],[1423,1423,`ET`],[1424,1424,`R`],[1425,1469,`NSM`],[1470,1470,`R`],[1471,1471,`NSM`],[1472,1472,`R`],[1473,1474,`NSM`],[1475,1475,`R`],[1476,1477,`NSM`],[1478,1478,`R`],[1479,1479,`NSM`],[1480,1535,`R`],[1536,1541,`AN`],[1542,1543,`ON`],[1544,1544,`AL`],[1545,1546,`ET`],[1547,1547,`AL`],[1548,1548,`CS`],[1549,1549,`AL`],[1550,1551,`ON`],[1552,1562,`NSM`],[1563,1610,`AL`],[1611,1631,`NSM`],[1632,1641,`AN`],[1642,1642,`ET`],[1643,1644,`AN`],[1645,1647,`AL`],[1648,1648,`NSM`],[1649,1749,`AL`],[1750,1756,`NSM`],[1757,1757,`AN`],[1758,1758,`ON`],[1759,1764,`NSM`],[1765,1766,`AL`],[1767,1768,`NSM`],[1769,1769,`ON`],[1770,1773,`NSM`],[1774,1775,`AL`],[1776,1785,`EN`],[1786,1808,`AL`],[1809,1809,`NSM`],[1810,1839,`AL`],[1840,1866,`NSM`],[1867,1957,`AL`],[1958,1968,`NSM`],[1969,1983,`AL`],[1984,2026,`R`],[2027,2035,`NSM`],[2036,2037,`R`],[2038,2041,`ON`],[2042,2044,`R`],[2045,2045,`NSM`],[2046,2069,`R`],[2070,2073,`NSM`],[2074,2074,`R`],[2075,2083,`NSM`],[2084,2084,`R`],[2085,2087,`NSM`],[2088,2088,`R`],[2089,2093,`NSM`],[2094,2136,`R`],[2137,2139,`NSM`],[2140,2143,`R`],[2144,2191,`AL`],[2192,2193,`AN`],[2194,2198,`AL`],[2199,2207,`NSM`],[2208,2249,`AL`],[2250,2273,`NSM`],[2274,2274,`AN`],[2275,2306,`NSM`],[2362,2362,`NSM`],[2364,2364,`NSM`],[2369,2376,`NSM`],[2381,2381,`NSM`],[2385,2391,`NSM`],[2402,2403,`NSM`],[2433,2433,`NSM`],[2492,2492,`NSM`],[2497,2500,`NSM`],[2509,2509,`NSM`],[2530,2531,`NSM`],[2546,2547,`ET`],[2555,2555,`ET`],[2558,2558,`NSM`],[2561,2562,`NSM`],[2620,2620,`NSM`],[2625,2626,`NSM`],[2631,2632,`NSM`],[2635,2637,`NSM`],[2641,2641,`NSM`],[2672,2673,`NSM`],[2677,2677,`NSM`],[2689,2690,`NSM`],[2748,2748,`NSM`],[2753,2757,`NSM`],[2759,2760,`NSM`],[2765,2765,`NSM`],[2786,2787,`NSM`],[2801,2801,`ET`],[2810,2815,`NSM`],[2817,2817,`NSM`],[2876,2876,`NSM`],[2879,2879,`NSM`],[2881,2884,`NSM`],[2893,2893,`NSM`],[2901,2902,`NSM`],[2914,2915,`NSM`],[2946,2946,`NSM`],[3008,3008,`NSM`],[3021,3021,`NSM`],[3059,3064,`ON`],[3065,3065,`ET`],[3066,3066,`ON`],[3072,3072,`NSM`],[3076,3076,`NSM`],[3132,3132,`NSM`],[3134,3136,`NSM`],[3142,3144,`NSM`],[3146,3149,`NSM`],[3157,3158,`NSM`],[3170,3171,`NSM`],[3192,3198,`ON`],[3201,3201,`NSM`],[3260,3260,`NSM`],[3276,3277,`NSM`],[3298,3299,`NSM`],[3328,3329,`NSM`],[3387,3388,`NSM`],[3393,3396,`NSM`],[3405,3405,`NSM`],[3426,3427,`NSM`],[3457,3457,`NSM`],[3530,3530,`NSM`],[3538,3540,`NSM`],[3542,3542,`NSM`],[3633,3633,`NSM`],[3636,3642,`NSM`],[3647,3647,`ET`],[3655,3662,`NSM`],[3761,3761,`NSM`],[3764,3772,`NSM`],[3784,3790,`NSM`],[3864,3865,`NSM`],[3893,3893,`NSM`],[3895,3895,`NSM`],[3897,3897,`NSM`],[3898,3901,`ON`],[3953,3966,`NSM`],[3968,3972,`NSM`],[3974,3975,`NSM`],[3981,3991,`NSM`],[3993,4028,`NSM`],[4038,4038,`NSM`],[4141,4144,`NSM`],[4146,4151,`NSM`],[4153,4154,`NSM`],[4157,4158,`NSM`],[4184,4185,`NSM`],[4190,4192,`NSM`],[4209,4212,`NSM`],[4226,4226,`NSM`],[4229,4230,`NSM`],[4237,4237,`NSM`],[4253,4253,`NSM`],[4957,4959,`NSM`],[5008,5017,`ON`],[5120,5120,`ON`],[5760,5760,`WS`],[5787,5788,`ON`],[5906,5908,`NSM`],[5938,5939,`NSM`],[5970,5971,`NSM`],[6002,6003,`NSM`],[6068,6069,`NSM`],[6071,6077,`NSM`],[6086,6086,`NSM`],[6089,6099,`NSM`],[6107,6107,`ET`],[6109,6109,`NSM`],[6128,6137,`ON`],[6144,6154,`ON`],[6155,6157,`NSM`],[6158,6158,`BN`],[6159,6159,`NSM`],[6277,6278,`NSM`],[6313,6313,`NSM`],[6432,6434,`NSM`],[6439,6440,`NSM`],[6450,6450,`NSM`],[6457,6459,`NSM`],[6464,6464,`ON`],[6468,6469,`ON`],[6622,6655,`ON`],[6679,6680,`NSM`],[6683,6683,`NSM`],[6742,6742,`NSM`],[6744,6750,`NSM`],[6752,6752,`NSM`],[6754,6754,`NSM`],[6757,6764,`NSM`],[6771,6780,`NSM`],[6783,6783,`NSM`],[6832,6877,`NSM`],[6880,6891,`NSM`],[6912,6915,`NSM`],[6964,6964,`NSM`],[6966,6970,`NSM`],[6972,6972,`NSM`],[6978,6978,`NSM`],[7019,7027,`NSM`],[7040,7041,`NSM`],[7074,7077,`NSM`],[7080,7081,`NSM`],[7083,7085,`NSM`],[7142,7142,`NSM`],[7144,7145,`NSM`],[7149,7149,`NSM`],[7151,7153,`NSM`],[7212,7219,`NSM`],[7222,7223,`NSM`],[7376,7378,`NSM`],[7380,7392,`NSM`],[7394,7400,`NSM`],[7405,7405,`NSM`],[7412,7412,`NSM`],[7416,7417,`NSM`],[7616,7679,`NSM`],[8125,8125,`ON`],[8127,8129,`ON`],[8141,8143,`ON`],[8157,8159,`ON`],[8173,8175,`ON`],[8189,8190,`ON`],[8192,8202,`WS`],[8203,8205,`BN`],[8207,8207,`R`],[8208,8231,`ON`],[8232,8232,`WS`],[8233,8233,`B`],[8234,8238,`BN`],[8239,8239,`CS`],[8240,8244,`ET`],[8245,8259,`ON`],[8260,8260,`CS`],[8261,8286,`ON`],[8287,8287,`WS`],[8288,8303,`BN`],[8304,8304,`EN`],[8308,8313,`EN`],[8314,8315,`ES`],[8316,8318,`ON`],[8320,8329,`EN`],[8330,8331,`ES`],[8332,8334,`ON`],[8352,8399,`ET`],[8400,8432,`NSM`],[8448,8449,`ON`],[8451,8454,`ON`],[8456,8457,`ON`],[8468,8468,`ON`],[8470,8472,`ON`],[8478,8483,`ON`],[8485,8485,`ON`],[8487,8487,`ON`],[8489,8489,`ON`],[8494,8494,`ET`],[8506,8507,`ON`],[8512,8516,`ON`],[8522,8525,`ON`],[8528,8543,`ON`],[8585,8587,`ON`],[8592,8721,`ON`],[8722,8722,`ES`],[8723,8723,`ET`],[8724,9013,`ON`],[9083,9108,`ON`],[9110,9257,`ON`],[9280,9290,`ON`],[9312,9351,`ON`],[9352,9371,`EN`],[9450,9899,`ON`],[9901,10239,`ON`],[10496,11123,`ON`],[11126,11263,`ON`],[11493,11498,`ON`],[11503,11505,`NSM`],[11513,11519,`ON`],[11647,11647,`NSM`],[11744,11775,`NSM`],[11776,11869,`ON`],[11904,11929,`ON`],[11931,12019,`ON`],[12032,12245,`ON`],[12272,12287,`ON`],[12288,12288,`WS`],[12289,12292,`ON`],[12296,12320,`ON`],[12330,12333,`NSM`],[12336,12336,`ON`],[12342,12343,`ON`],[12349,12351,`ON`],[12441,12442,`NSM`],[12443,12444,`ON`],[12448,12448,`ON`],[12539,12539,`ON`],[12736,12773,`ON`],[12783,12783,`ON`],[12829,12830,`ON`],[12880,12895,`ON`],[12924,12926,`ON`],[12977,12991,`ON`],[13004,13007,`ON`],[13175,13178,`ON`],[13278,13279,`ON`],[13311,13311,`ON`],[19904,19967,`ON`],[42128,42182,`ON`],[42509,42511,`ON`],[42607,42610,`NSM`],[42611,42611,`ON`],[42612,42621,`NSM`],[42622,42623,`ON`],[42654,42655,`NSM`],[42736,42737,`NSM`],[42752,42785,`ON`],[42888,42888,`ON`],[43010,43010,`NSM`],[43014,43014,`NSM`],[43019,43019,`NSM`],[43045,43046,`NSM`],[43048,43051,`ON`],[43052,43052,`NSM`],[43064,43065,`ET`],[43124,43127,`ON`],[43204,43205,`NSM`],[43232,43249,`NSM`],[43263,43263,`NSM`],[43302,43309,`NSM`],[43335,43345,`NSM`],[43392,43394,`NSM`],[43443,43443,`NSM`],[43446,43449,`NSM`],[43452,43453,`NSM`],[43493,43493,`NSM`],[43561,43566,`NSM`],[43569,43570,`NSM`],[43573,43574,`NSM`],[43587,43587,`NSM`],[43596,43596,`NSM`],[43644,43644,`NSM`],[43696,43696,`NSM`],[43698,43700,`NSM`],[43703,43704,`NSM`],[43710,43711,`NSM`],[43713,43713,`NSM`],[43756,43757,`NSM`],[43766,43766,`NSM`],[43882,43883,`ON`],[44005,44005,`NSM`],[44008,44008,`NSM`],[44013,44013,`NSM`],[64285,64285,`R`],[64286,64286,`NSM`],[64287,64296,`R`],[64297,64297,`ES`],[64298,64335,`R`],[64336,64450,`AL`],[64451,64466,`ON`],[64467,64829,`AL`],[64830,64847,`ON`],[64848,64911,`AL`],[64912,64913,`ON`],[64914,64967,`AL`],[64968,64975,`ON`],[64976,65007,`BN`],[65008,65020,`AL`],[65021,65023,`ON`],[65024,65039,`NSM`],[65040,65049,`ON`],[65056,65071,`NSM`],[65072,65103,`ON`],[65104,65104,`CS`],[65105,65105,`ON`],[65106,65106,`CS`],[65108,65108,`ON`],[65109,65109,`CS`],[65110,65118,`ON`],[65119,65119,`ET`],[65120,65121,`ON`],[65122,65123,`ES`],[65124,65126,`ON`],[65128,65128,`ON`],[65129,65130,`ET`],[65131,65131,`ON`],[65136,65278,`AL`],[65279,65279,`BN`],[65281,65282,`ON`],[65283,65285,`ET`],[65286,65290,`ON`],[65291,65291,`ES`],[65292,65292,`CS`],[65293,65293,`ES`],[65294,65295,`CS`],[65296,65305,`EN`],[65306,65306,`CS`],[65307,65312,`ON`],[65339,65344,`ON`],[65371,65381,`ON`],[65504,65505,`ET`],[65506,65508,`ON`],[65509,65510,`ET`],[65512,65518,`ON`],[65520,65528,`BN`],[65529,65533,`ON`],[65534,65535,`BN`],[65793,65793,`ON`],[65856,65932,`ON`],[65936,65948,`ON`],[65952,65952,`ON`],[66045,66045,`NSM`],[66272,66272,`NSM`],[66273,66299,`EN`],[66422,66426,`NSM`],[67584,67870,`R`],[67871,67871,`ON`],[67872,68096,`R`],[68097,68099,`NSM`],[68100,68100,`R`],[68101,68102,`NSM`],[68103,68107,`R`],[68108,68111,`NSM`],[68112,68151,`R`],[68152,68154,`NSM`],[68155,68158,`R`],[68159,68159,`NSM`],[68160,68324,`R`],[68325,68326,`NSM`],[68327,68408,`R`],[68409,68415,`ON`],[68416,68863,`R`],[68864,68899,`AL`],[68900,68903,`NSM`],[68904,68911,`AL`],[68912,68921,`AN`],[68922,68927,`AL`],[68928,68937,`AN`],[68938,68968,`R`],[68969,68973,`NSM`],[68974,68974,`ON`],[68975,69215,`R`],[69216,69246,`AN`],[69247,69290,`R`],[69291,69292,`NSM`],[69293,69311,`R`],[69312,69327,`AL`],[69328,69336,`ON`],[69337,69369,`AL`],[69370,69375,`NSM`],[69376,69423,`R`],[69424,69445,`AL`],[69446,69456,`NSM`],[69457,69487,`AL`],[69488,69505,`R`],[69506,69509,`NSM`],[69510,69631,`R`],[69633,69633,`NSM`],[69688,69702,`NSM`],[69714,69733,`ON`],[69744,69744,`NSM`],[69747,69748,`NSM`],[69759,69761,`NSM`],[69811,69814,`NSM`],[69817,69818,`NSM`],[69826,69826,`NSM`],[69888,69890,`NSM`],[69927,69931,`NSM`],[69933,69940,`NSM`],[70003,70003,`NSM`],[70016,70017,`NSM`],[70070,70078,`NSM`],[70089,70092,`NSM`],[70095,70095,`NSM`],[70191,70193,`NSM`],[70196,70196,`NSM`],[70198,70199,`NSM`],[70206,70206,`NSM`],[70209,70209,`NSM`],[70367,70367,`NSM`],[70371,70378,`NSM`],[70400,70401,`NSM`],[70459,70460,`NSM`],[70464,70464,`NSM`],[70502,70508,`NSM`],[70512,70516,`NSM`],[70587,70592,`NSM`],[70606,70606,`NSM`],[70608,70608,`NSM`],[70610,70610,`NSM`],[70625,70626,`NSM`],[70712,70719,`NSM`],[70722,70724,`NSM`],[70726,70726,`NSM`],[70750,70750,`NSM`],[70835,70840,`NSM`],[70842,70842,`NSM`],[70847,70848,`NSM`],[70850,70851,`NSM`],[71090,71093,`NSM`],[71100,71101,`NSM`],[71103,71104,`NSM`],[71132,71133,`NSM`],[71219,71226,`NSM`],[71229,71229,`NSM`],[71231,71232,`NSM`],[71264,71276,`ON`],[71339,71339,`NSM`],[71341,71341,`NSM`],[71344,71349,`NSM`],[71351,71351,`NSM`],[71453,71453,`NSM`],[71455,71455,`NSM`],[71458,71461,`NSM`],[71463,71467,`NSM`],[71727,71735,`NSM`],[71737,71738,`NSM`],[71995,71996,`NSM`],[71998,71998,`NSM`],[72003,72003,`NSM`],[72148,72151,`NSM`],[72154,72155,`NSM`],[72160,72160,`NSM`],[72193,72198,`NSM`],[72201,72202,`NSM`],[72243,72248,`NSM`],[72251,72254,`NSM`],[72263,72263,`NSM`],[72273,72278,`NSM`],[72281,72283,`NSM`],[72330,72342,`NSM`],[72344,72345,`NSM`],[72544,72544,`NSM`],[72546,72548,`NSM`],[72550,72550,`NSM`],[72752,72758,`NSM`],[72760,72765,`NSM`],[72850,72871,`NSM`],[72874,72880,`NSM`],[72882,72883,`NSM`],[72885,72886,`NSM`],[73009,73014,`NSM`],[73018,73018,`NSM`],[73020,73021,`NSM`],[73023,73029,`NSM`],[73031,73031,`NSM`],[73104,73105,`NSM`],[73109,73109,`NSM`],[73111,73111,`NSM`],[73459,73460,`NSM`],[73472,73473,`NSM`],[73526,73530,`NSM`],[73536,73536,`NSM`],[73538,73538,`NSM`],[73562,73562,`NSM`],[73685,73692,`ON`],[73693,73696,`ET`],[73697,73713,`ON`],[78912,78912,`NSM`],[78919,78933,`NSM`],[90398,90409,`NSM`],[90413,90415,`NSM`],[92912,92916,`NSM`],[92976,92982,`NSM`],[94031,94031,`NSM`],[94095,94098,`NSM`],[94178,94178,`ON`],[94180,94180,`NSM`],[113821,113822,`NSM`],[113824,113827,`BN`],[117760,117973,`ON`],[118e3,118009,`EN`],[118010,118012,`ON`],[118016,118451,`ON`],[118458,118480,`ON`],[118496,118512,`ON`],[118528,118573,`NSM`],[118576,118598,`NSM`],[119143,119145,`NSM`],[119155,119162,`BN`],[119163,119170,`NSM`],[119173,119179,`NSM`],[119210,119213,`NSM`],[119273,119274,`ON`],[119296,119361,`ON`],[119362,119364,`NSM`],[119365,119365,`ON`],[119552,119638,`ON`],[120513,120513,`ON`],[120539,120539,`ON`],[120571,120571,`ON`],[120597,120597,`ON`],[120629,120629,`ON`],[120655,120655,`ON`],[120687,120687,`ON`],[120713,120713,`ON`],[120745,120745,`ON`],[120771,120771,`ON`],[120782,120831,`EN`],[121344,121398,`NSM`],[121403,121452,`NSM`],[121461,121461,`NSM`],[121476,121476,`NSM`],[121499,121503,`NSM`],[121505,121519,`NSM`],[122880,122886,`NSM`],[122888,122904,`NSM`],[122907,122913,`NSM`],[122915,122916,`NSM`],[122918,122922,`NSM`],[123023,123023,`NSM`],[123184,123190,`NSM`],[123566,123566,`NSM`],[123628,123631,`NSM`],[123647,123647,`ET`],[124140,124143,`NSM`],[124398,124399,`NSM`],[124643,124643,`NSM`],[124646,124646,`NSM`],[124654,124655,`NSM`],[124661,124661,`NSM`],[124928,125135,`R`],[125136,125142,`NSM`],[125143,125251,`R`],[125252,125258,`NSM`],[125259,126063,`R`],[126064,126143,`AL`],[126144,126207,`R`],[126208,126287,`AL`],[126288,126463,`R`],[126464,126703,`AL`],[126704,126705,`ON`],[126706,126719,`AL`],[126720,126975,`R`],[126976,127019,`ON`],[127024,127123,`ON`],[127136,127150,`ON`],[127153,127167,`ON`],[127169,127183,`ON`],[127185,127221,`ON`],[127232,127242,`EN`],[127243,127247,`ON`],[127279,127279,`ON`],[127338,127343,`ON`],[127405,127405,`ON`],[127584,127589,`ON`],[127744,128728,`ON`],[128732,128748,`ON`],[128752,128764,`ON`],[128768,128985,`ON`],[128992,129003,`ON`],[129008,129008,`ON`],[129024,129035,`ON`],[129040,129095,`ON`],[129104,129113,`ON`],[129120,129159,`ON`],[129168,129197,`ON`],[129200,129211,`ON`],[129216,129217,`ON`],[129232,129240,`ON`],[129280,129623,`ON`],[129632,129645,`ON`],[129648,129660,`ON`],[129664,129674,`ON`],[129678,129734,`ON`],[129736,129736,`ON`],[129741,129756,`ON`],[129759,129770,`ON`],[129775,129784,`ON`],[129792,129938,`ON`],[129940,130031,`ON`],[130032,130041,`EN`],[130042,130042,`ON`],[131070,131071,`BN`],[196606,196607,`BN`],[262142,262143,`BN`],[327678,327679,`BN`],[393214,393215,`BN`],[458750,458751,`BN`],[524286,524287,`BN`],[589822,589823,`BN`],[655358,655359,`BN`],[720894,720895,`BN`],[786430,786431,`BN`],[851966,851967,`BN`],[917502,917759,`BN`],[917760,917999,`NSM`],[918e3,921599,`BN`],[983038,983039,`BN`],[1048574,1048575,`BN`],[1114110,1114111,`BN`]];function n(n){if(n<=255)return e[n];let r=0,i=t.length-1;for(;r<=i;){let e=r+i>>1,a=t[e];if(n<a[0]){i=e-1;continue}if(n>a[1]){r=e+1;continue}return a[2]}return`L`}function r(e){let t=e.length;if(t===0)return null;let r=Array(t),i=!1;for(let a=0;a<t;){let o=e.charCodeAt(a),s=o,c=1;if(o>=55296&&o<=56319&&a+1<t){let t=e.charCodeAt(a+1);t>=56320&&t<=57343&&(s=(o-55296<<10)+(t-56320)+65536,c=2)}let l=n(s);(l===`R`||l===`AL`||l===`AN`)&&(i=!0);for(let e=0;e<c;e++)r[a+e]=l;a+=c}if(!i)return null;let a=0;for(let e=0;e<t;e++){let t=r[e];if(t===`L`){a=0;break}if(t===`R`||t===`AL`){a=1;break}}let o=new Int8Array(t);for(let e=0;e<t;e++)o[e]=a;let s=a&1?`R`:`L`,c=s,l=c;for(let e=0;e<t;e++)r[e]===`NSM`?r[e]=l:l=r[e];l=c;for(let e=0;e<t;e++){let t=r[e];t===`EN`?r[e]=l===`AL`?`AN`:`EN`:(t===`R`||t===`L`||t===`AL`)&&(l=t)}for(let e=0;e<t;e++)r[e]===`AL`&&(r[e]=`R`);for(let e=1;e<t-1;e++)r[e]===`ES`&&r[e-1]===`EN`&&r[e+1]===`EN`&&(r[e]=`EN`),r[e]===`CS`&&(r[e-1]===`EN`||r[e-1]===`AN`)&&r[e+1]===r[e-1]&&(r[e]=r[e-1]);for(let e=0;e<t;e++){if(r[e]!==`EN`)continue;let n;for(n=e-1;n>=0&&r[n]===`ET`;n--)r[n]=`EN`;for(n=e+1;n<t&&r[n]===`ET`;n++)r[n]=`EN`}for(let e=0;e<t;e++){let t=r[e];(t===`WS`||t===`ES`||t===`ET`||t===`CS`)&&(r[e]=`ON`)}l=c;for(let e=0;e<t;e++){let t=r[e];t===`EN`?r[e]=l===`L`?`L`:`EN`:(t===`R`||t===`L`)&&(l=t)}for(let e=0;e<t;e++){if(r[e]!==`ON`)continue;let n=e+1;for(;n<t&&r[n]===`ON`;)n++;let i=e>0?r[e-1]:c,a=n<t?r[n]:c,o=i===`L`?`L`:`R`;if(o===(a===`L`?`L`:`R`))for(let t=e;t<n;t++)r[t]=o;e=n-1}for(let e=0;e<t;e++)r[e]===`ON`&&(r[e]=s);for(let e=0;e<t;e++){let t=r[e];o[e]&1?(t===`L`||t===`AN`||t===`EN`)&&o[e]++:t===`R`?o[e]++:(t===`AN`||t===`EN`)&&(o[e]+=2)}return o}function i(e,t){let n=r(e);if(n===null)return null;let i=new Int8Array(t.length);for(let e=0;e<t.length;e++)i[e]=n[t[e]];return i}let a=/[ \\t\\n\\r\\f]+/g,o=/[\\t\\n\\r\\f]| {2,}|^ | $/;function s(e){let t=e??`normal`;return t===`pre-wrap`?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function c(e){if(!o.test(e))return e;let t=e.replace(a,` `);return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function l(e){return/[\\r\\f]/.test(e)?e.replace(/\\r\\n/g,`\n`).replace(/[\\r\\f]/g,`\n`):e}let u=null;function d(){return u===null&&(u=new Intl.Segmenter(void 0,{granularity:`word`})),u}let f=/\\p{Script=Arabic}/u,p=/\\p{M}/u,m=/\\p{Nd}/u;function h(e){return f.test(e)}function g(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function _(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){if(g((n-55296<<10)+(r-56320)+65536))return!0;t++;continue}}if(g(n))return!0}}return!1}function v(e){let t=M(e);return t!==null&&(w.has(t)||D.has(t))}let y=new Set([`\\xA0`,` `,``,``]),b=new Set([`-`,`‐`,`–`,`—`]);function x(e){let t=M(e);return t!==null&&y.has(t)}function S(e){let t=M(e);return t!==null&&b.has(t)}function C(e,t){return x(e)?!1:t?!(v(e)||S(e)):!0}let w=new Set(`,...!.:.;.?.、.。.・.).〕.〉.》.」.』.】.〗.〙.〛.ー.々.〻.ゝ.ゞ.ヽ.ヾ`.split(`.`)),T=new Set([`\"`,`(`,`[`,`{`,`¡`,`¿`,`“`,`‘`,`‚`,`„`,`«`,`‹`,`⸘`,`(`,`〔`,`〈`,`《`,`「`,`『`,`【`,`〖`,`〘`,`〚`]),E=new Set([`'`,`’`]),D=new Set(`.(,(!(?(:(;(،(؛(؟(।(॥(၊(။(၌(၍(၏()(](}(%(\"(”(’(»(›(…`.split(`(`)),O=new Set([`:`,`.`,`،`,`؛`]),k=new Set([`၏`]),ee=new Set([`”`,`’`,`»`,`›`,`」`,`』`,`】`,`》`,`〉`,`〕`,`)`]);function te(e){if(A(e))return!0;let t=!1;for(let n of e){if(D.has(n)||N(n)){t=!0;continue}if(!(t&&p.test(n)))return!1}return t}function ne(e){for(let t of e)if(!w.has(t)&&!D.has(t))return!1;return e.length>0}function re(e){if(A(e))return!0;for(let t of e)if(!T.has(t)&&!E.has(t)&&!p.test(t)&&!N(t))return!1;return e.length>0}function A(e){let t=!1;for(let n of e)if(!(n===`\\\\`||p.test(n))){if(T.has(n)||D.has(n)||E.has(n)){t=!0;continue}return!1}return t}function j(e,t){let n=t-1;if(n<=0)return Math.max(n,0);let r=e.charCodeAt(n);if(r<56320||r>57343)return n;let i=n-1;if(i<0)return n;let a=e.charCodeAt(i);return a>=55296&&a<=56319?i:n}function M(e){if(e.length===0)return null;let t=j(e,e.length);return e.slice(t)}function ie(e){for(let t of e)if(!p.test(t))return t;return null}function ae(e){for(let t=e.length;t>0;){let n=j(e,t),r=e.slice(n,t);if(!p.test(r))return r;t=n}return null}let oe=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function se(e,t){for(let n=0;n<t.length;n+=2)if(e>=t[n]&&e<=t[n+1])return!0;return!1}function N(e){let t=e.codePointAt(0);return t!==void 0&&se(t,oe)}function ce(e){let t=ae(e);return t!==null&&N(t)}function le(e){let t=ie(e);return t!==null&&m.test(t)}function ue(e){let t=Array.from(e),n=t.length;for(;n>0;){let e=t[n-1];if(p.test(e)){n--;continue}if(T.has(e)||E.has(e)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(``),tail:t.slice(n).join(``)}}function de(e,t,n){return n===`text`&&!t&&e.length===1&&e!==`-`&&e!==`—`?e:null}function fe(e,t,n,r){let i=t[r],a=e[r];if(i==null)return a;let o=n[r];if(a.length===o)return a;let s=i.repeat(o);return e[r]=s,s}function P(e,t){return e&&t!==null&&O.has(t)}function pe(e){let t=M(e);return t!==null&&k.has(t)}function me(e){if(e.length<2||e[0]!==` `)return null;let t=e.slice(1);return/^\\p{M}+$/u.test(t)?{space:` `,marks:t}:null}function F(e){let t=e.length;for(;t>0;){let n=j(e,t),r=e.slice(n,t);if(ee.has(r))return!0;if(!D.has(r))return!1;t=n}return!1}function he(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===` `)return`preserved-space`;if(e===` `)return`tab`;if(t.preserveHardBreaks&&e===`\n`)return`hard-break`}return e===` `?`space`:e===`\\xA0`||e===` `||e===``||e===``?`glue`:e===``?`zero-width-break`:e===``?`soft-hyphen`:`text`}let ge=/[\\x20\\t\\n\\xA0\\xAD\\u200B\\u202F\\u2060\\uFEFF]/;function I(e){return e.length===1?e[0]:e.join(``)}function _e(e,t){let n=[];for(let t=e.length-1;t>=0;t--)n.push(e[t]);return n.push(t),I(n)}function ve(e,t,n,r){if(!ge.test(e))return[{text:e,isWordLike:t,kind:`text`,start:n}];let i=[],a=null,o=[],s=n,c=!1,l=0;for(let u of e){let e=he(u,r),d=e===`text`&&t;if(a!==null&&e===a&&d===c){o.push(u),l+=u.length;continue}a!==null&&i.push({text:I(o),isWordLike:c,kind:a,start:s}),a=e,o=[u],s=n+l,c=d,l+=u.length}return a!==null&&i.push({text:I(o),isWordLike:c,kind:a,start:s}),i}function L(e){return e===`space`||e===`preserved-space`||e===`zero-width-break`||e===`hard-break`}let ye=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function be(e,t){let n=e.texts[t];return n.startsWith(`www.`)?!0:ye.test(n)&&t+1<e.len&&e.kinds[t+1]===`text`&&e.texts[t+1]===`//`}function xe(e){return e.includes(`?`)&&(e.includes(`://`)||e.startsWith(`www.`))}function Se(e){let t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),i=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!==`text`||!be(e,i))continue;let a=[t[i]],o=i+1;for(;o<e.len&&!L(r[o]);){a.push(t[o]),n[i]=!0;let e=t[o].includes(`?`);if(r[o]=`text`,t[o]=``,o++,e)break}t[i]=I(a)}let a=0;for(let e=0;e<t.length;e++){let o=t[e];o.length!==0&&(a!==e&&(t[a]=o,n[a]=n[e],r[a]=r[e],i[a]=i[e]),a++)}return t.length=a,n.length=a,r.length=a,i.length=a,{len:a,texts:t,isWordLike:n,kinds:r,starts:i}}function Ce(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a];if(t.push(o),n.push(e.isWordLike[a]),r.push(e.kinds[a]),i.push(e.starts[a]),!xe(o))continue;let s=a+1;if(s>=e.len||L(e.kinds[s]))continue;let c=[],l=e.starts[s],u=s;for(;u<e.len&&!L(e.kinds[u]);)c.push(e.texts[u]),u++;c.length>0&&(t.push(I(c)),n.push(!0),r.push(`text`),i.push(l),a=u-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}let we=new Set([`:`,`-`,`/`,`×`,`,`,`.`,`+`,`–`,`—`]),Te=new Set([`.`,`,`,`:`,`;`]);function R(e){for(let t=e.length;t>0;){let n=j(e,t),r=e.slice(n,t);if(p.test(r)){t=n;continue}return Te.has(r)||N(r)}return!1}function Ee(e,t){return t&&!_(e)}function z(e){for(let t of e)if(m.test(t))return!0;return!1}function B(e){if(e.length===0)return!1;for(let t of e)if(!(m.test(t)||we.has(t)))return!1;return!0}function De(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a],s=e.kinds[a];if(s===`text`&&B(o)&&z(o)){let s=[o],c=a+1;for(;c<e.len&&e.kinds[c]===`text`&&B(e.texts[c]);)s.push(e.texts[c]),c++;t.push(I(s)),n.push(!0),r.push(`text`),i.push(e.starts[a]),a=c-1;continue}t.push(o),n.push(e.isWordLike[a]),r.push(s),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function Oe(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a],s=e.kinds[a],c=e.isWordLike[a];if(s===`text`&&R(o)&&(c||ce(o))&&!_(o)){let s=[o],c=!0,l=a+1;for(;c&&l<e.len&&e.kinds[l]===`text`&&Ee(e.texts[l],e.isWordLike[l]);){let t=e.texts[l];s.push(t),c=R(t),l++}t.push(I(s)),n.push(!0),r.push(`text`),i.push(e.starts[a]),a=l-1;continue}t.push(o),n.push(c),r.push(s),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function ke(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a];if(e.kinds[a]===`text`&&o.includes(`-`)){let s=o.split(`-`),c=s.length>1;for(let e=0;e<s.length;e++){let t=s[e];if(!c)break;(t.length===0||!z(t)||!B(t))&&(c=!1)}if(c){let o=0;for(let c=0;c<s.length;c++){let l=s[c],u=c<s.length-1?`${l}-`:l;t.push(u),n.push(!0),r.push(`text`),i.push(e.starts[a]+o),o+=u.length}continue}}t.push(o),n.push(e.isWordLike[a]),r.push(e.kinds[a]),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function Ae(e){let t=[],n=[],r=[],i=[],a=0;for(;a<e.len;){let o=[e.texts[a]],s=e.isWordLike[a],c=e.kinds[a],l=e.starts[a];if(c===`glue`){let u=[o[0]],d=l;for(a++;a<e.len&&e.kinds[a]===`glue`;)u.push(e.texts[a]),a++;let f=I(u);if(a<e.len&&e.kinds[a]===`text`)o[0]=f,o.push(e.texts[a]),s=e.isWordLike[a],c=`text`,l=d,a++;else{t.push(f),n.push(!1),r.push(`glue`),i.push(d);continue}}else a++;if(c===`text`)for(;a<e.len&&e.kinds[a]===`glue`;){let t=[];for(;a<e.len&&e.kinds[a]===`glue`;)t.push(e.texts[a]),a++;let n=I(t);if(a<e.len&&e.kinds[a]===`text`){o.push(n,e.texts[a]),s||=e.isWordLike[a],a++;continue}o.push(n)}t.push(I(o)),n.push(s),r.push(c),i.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function je(e){let t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),i=e.starts.slice();for(let e=0;e<t.length-1;e++){if(r[e]!==`text`||r[e+1]!==`text`||!_(t[e])||!_(t[e+1]))continue;let n=ue(t[e]);n!==null&&(t[e]=n.head,t[e+1]=n.tail+t[e+1],i[e+1]=i[e]+n.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function Me(e,t,n){let r=d(),i=0,a=[],o=[],s=[],c=[],l=[],u=[],f=[],p=[],m=[],g=[],v=[],y=[];for(let d of r.segment(e))for(let e of ve(d.segment,d.isWordLike??!1,d.index,n)){let n=e.kind===`text`,r=de(e.text,e.isWordLike,e.kind),d=_(e.text),x=h(e.text),S=M(e.text),C=F(e.text),w=pe(e.text),T=i-1;function b(){u[T]!==null&&(o[T]=[fe(a,u,f,T)],u[T]=null),o[T].push(e.text),s[T]=s[T]||e.isWordLike,p[T]=p[T]||d,m[T]=m[T]||x,g[T]=C,v[T]=w,y[T]=P(m[T],S)}t.carryCJKAfterClosingQuote&&n&&i>0&&c[T]===`text`&&d&&p[T]&&g[T]||n&&i>0&&c[T]===`text`&&ne(e.text)&&p[T]||n&&i>0&&c[T]===`text`&&v[T]?b():n&&i>0&&c[T]===`text`&&e.isWordLike&&x&&y[T]?(b(),s[T]=!0):r!==null&&i>0&&c[T]===`text`&&u[T]===r?f[T]=(f[T]??1)+1:n&&!e.isWordLike&&i>0&&c[T]===`text`&&!p[T]&&(te(e.text)||e.text===`-`&&s[T])?b():(a[i]=e.text,o[i]=[e.text],s[i]=e.isWordLike,c[i]=e.kind,l[i]=e.start,u[i]=r,f[i]=r===null?0:1,p[i]=d,m[i]=x,g[i]=C,v[i]=w,y[i]=P(x,S),i++)}for(let e=0;e<i;e++){if(u[e]!==null){a[e]=fe(a,u,f,e);continue}a[e]=I(o[e])}for(let e=1;e<i;e++)c[e]===`text`&&!s[e]&&A(a[e])&&c[e-1]===`text`&&!p[e-1]&&(a[e-1]+=a[e],s[e-1]=s[e-1]||s[e],a[e]=``);let x=Array.from({length:i},()=>null),S=-1;for(let e=i-1;e>=0;e--){let t=a[e];if(t.length!==0){if(c[e]===`text`&&!s[e]&&S>=0&&c[S]===`text`&&(re(t)||t===`-`&&le(a[S]))){let n=x[S]??[];n.push(t),x[S]=n,l[S]=l[e],a[e]=``;continue}S=e}}for(let e=0;e<i;e++){let t=x[e];t!=null&&(a[e]=_e(t,a[e]))}let C=0;for(let e=0;e<i;e++){let t=a[e];t.length!==0&&(C!==e&&(a[C]=t,s[C]=s[e],c[C]=c[e],l[C]=l[e]),C++)}a.length=C,s.length=C,c.length=C,l.length=C;let w=je(Oe(ke(De(Ce(Se(Ae({len:C,texts:a,isWordLike:s,kinds:c,starts:l})))))));for(let e=0;e<w.len-1;e++){let t=me(w.texts[e]);t!==null&&(w.kinds[e]!==`space`&&w.kinds[e]!==`preserved-space`||w.kinds[e+1]!==`text`||!h(w.texts[e+1])||(w.texts[e]=t.space,w.isWordLike[e]=!1,w.kinds[e]=w.kinds[e]===`preserved-space`?`preserved-space`:`space`,w.texts[e+1]=t.marks+w.texts[e+1],w.starts[e+1]=w.starts[e]+t.space.length))}return w}function Ne(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];let n=[],r=0;for(let t=0;t<e.len;t++)e.kinds[t]===`hard-break`&&(n.push({startSegmentIndex:r,endSegmentIndex:t,consumedEndSegmentIndex:t+1}),r=t+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function Pe(e,t,n){if(t.len<=1)return t;let r=[],i=[],a=[],o=[],s=-1,c=!1;function l(e){r.push(t.texts[e]),i.push(t.isWordLike[e]),a.push(`text`),o.push(t.starts[e])}function u(n,s){let c=!1;for(let e=n;e<s;e++)c||=t.isWordLike[e];let l=t.starts[n],u=s<t.len?t.starts[s]:e.length;r.push(e.slice(l,u)),i.push(c),a.push(`text`),o.push(l)}function d(e){if(!(s<0)){if(c)s+1===e?l(s):u(s,e);else for(let t=s;t<e;t++)l(t);s=-1,c=!1}}for(let e=0;e<t.len;e++){let l=t.texts[e],u=t.kinds[e];if(u===`text`){s>=0&&!C(t.texts[e-1],n)&&d(e),s<0&&(s=e),c||=_(l);continue}d(e),r.push(l),i.push(t.isWordLike[e]),a.push(u),o.push(t.starts[e])}return d(t.len),{len:r.length,texts:r,isWordLike:i,kinds:a,starts:o}}function Fe(e,t,n=`normal`,r=`normal`){let i=s(n),a=i.mode===`pre-wrap`?l(e):c(e);if(a.length===0)return{normalized:a,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let o=Me(a,t,i),u=r===`keep-all`?Pe(a,o,t.breakKeepAllAfterPunctuation):o;return{normalized:a,chunks:Ne(u,i),...u}}let V=null,H=new Map,U=null,Ie=/\\p{Emoji_Presentation}/u,Le=/[\\p{Emoji_Presentation}\\p{Extended_Pictographic}\\p{Regional_Indicator}\\uFE0F\\u20E3]/u,W=null,G=new Map;function K(){if(V!==null)return V;if(typeof OffscreenCanvas<`u`)return V=new OffscreenCanvas(1,1).getContext(`2d`),V;if(typeof document<`u`)return V=document.createElement(`canvas`).getContext(`2d`),V;throw Error(`Text measurement requires OffscreenCanvas or a DOM canvas context.`)}function Re(e){let t=H.get(e);return t||(t=new Map,H.set(e,t)),t}function q(e,t){let n=t.get(e);return n===void 0&&(n={width:K().measureText(e).width,containsCJK:_(e)},t.set(e,n)),n}function J(){if(U!==null)return U;if(typeof navigator>`u`)return U={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},U;let e=navigator.userAgent,t=navigator.vendor===`Apple Computer, Inc.`&&e.includes(`Safari/`)&&!e.includes(`Chrome/`)&&!e.includes(`Chromium/`)&&!e.includes(`CriOS/`)&&!e.includes(`FxiOS/`)&&!e.includes(`EdgiOS/`),n=e.includes(`Chrome/`)||e.includes(`Chromium/`)||e.includes(`CriOS/`)||e.includes(`Edg/`);return U={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!t,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},U}function ze(e){let t=e.match(/(\\d+(?:\\.\\d+)?)\\s*px/);return t?parseFloat(t[1]):16}function Y(){return W===null&&(W=new Intl.Segmenter(void 0,{granularity:`grapheme`})),W}function Be(e){return Ie.test(e)||e.includes(`️`)}function Ve(e){return Le.test(e)}function He(e,t){let n=G.get(e);if(n!==void 0)return n;let r=K();r.font=e;let i=r.measureText(`😀`).width;if(n=0,i>t+.5&&typeof document<`u`&&document.body!==null){let t=document.createElement(`span`);t.style.font=e,t.style.display=`inline-block`,t.style.visibility=`hidden`,t.style.position=`absolute`,t.textContent=`😀`,document.body.appendChild(t);let r=t.getBoundingClientRect().width;document.body.removeChild(t),i-r>.5&&(n=i-r)}return G.set(e,n),n}function Ue(e){let t=0,n=Y();for(let r of n.segment(e))Be(r.segment)&&t++;return t}function We(e,t){return t.emojiCount===void 0&&(t.emojiCount=Ue(e)),t.emojiCount}function X(e,t,n){return n===0?t.width:t.width-We(e,t)*n}function Ge(e,t,n,r,i){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===i)return t.breakableFitAdvances;t.breakableFitMode=i;let a=Y(),o=[];for(let t of a.segment(e))o.push(t.segment);if(o.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(i===`sum-graphemes`){let e=[];for(let t of o){let i=q(t,n);e.push(X(t,i,r))}return t.breakableFitAdvances=e,t.breakableFitAdvances}if(i===`pair-context`||o.length>96){let e=[],i=null,a=0;for(let t of o){let o=X(t,q(t,n),r);if(i===null)e.push(o);else{let o=i+t,s=q(o,n);e.push(X(o,s,r)-a)}i=t,a=o}return t.breakableFitAdvances=e,t.breakableFitAdvances}let s=[],c=``,l=0;for(let e of o){c+=e;let t=q(c,n),i=X(c,t,r);s.push(i-l),l=i}return t.breakableFitAdvances=s,t.breakableFitAdvances}function Ke(e,t){let n=K();n.font=e;let r=Re(e),i=ze(e);return{cache:r,fontSize:i,emojiCorrection:t?He(e,i):0}}function qe(e){return e===`space`||e===`zero-width-break`||e===`soft-hyphen`}function Je(e){return e===`space`||e===`preserved-space`||e===`tab`||e===`zero-width-break`||e===`soft-hyphen`}function Ye(e,t,n=e.widths.length){for(;t<n;){let n=e.kinds[t];if(!qe(n))break;t++}return t}function Xe(e,t){if(t<=0)return 0;let n=e%t;return Math.abs(n)<=1e-6?t:t-n}function Ze(e,t,n){return e.letterSpacing!==0&&t&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}function Z(e,t){return t===0?0:e+t}function Qe(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function $e(e,t,n,r,i){return Z(r,t===`tab`?i+Qe(e,n):e.lineEndFitAdvances[n])}function et(e,t,n,r){return Z(r,t===`tab`?0:e.lineEndFitAdvances[n])}function tt(e,t,n,r,i){return Z(r,t===`tab`?i:e.lineEndPaintAdvances[n])}function nt(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function rt(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function it(e,t,n,r,i){if(e.letterSpacing===0)return 0;if(i>0)return e.spacingGraphemeCounts[r]>0?e.letterSpacing:0;for(let i=r-1;i>=t;i--){let a=e.kinds[i];if(!(a===`space`||a===`zero-width-break`||a===`hard-break`)){if(a===`soft-hyphen`){if(i===r-1)return 0;continue}return i===t&&n>0||e.spacingGraphemeCounts[i]>0?e.letterSpacing:0}}return 0}function at(e,t,n,r,i,a){return t+it(e,n,r,i,a)}function ot(e,t){return ct(e,t)}function st(e,t,n){let{widths:r,kinds:i,breakableFitAdvances:a}=e;if(r.length===0)return 0;let o=t+J().lineFitEpsilon,s=0,c=0,l=!1,u=0,d=0,f=0,p=0,m=-1,h=0;function g(){m=-1,h=0}function _(e=f,t=p,r=c){s++,n?.(r,u,d,e,t),c=0,l=!1,g()}function v(e,t){l=!0,u=e,d=0,f=e+1,p=0,c=t}function y(e,t,n){l=!0,u=e,d=t,f=e,p=t+1,c=n}function b(e,t){if(!l){v(e,t);return}c+=t,f=e+1,p=0}function x(e,t){let n=a[e];for(let r=t;r<n.length;r++){let t=n[r];l?c+t>o?(_(),y(e,r,t)):(c+=t,f=e,p=r+1):y(e,r,t)}l&&f===e&&p===n.length&&(f=e+1,p=0)}let S=0;for(;S<r.length&&!(!l&&(S=Ye(e,S),S>=r.length));){let e=r[S],t=i[S],n=Je(t);if(!l){e>o&&a[S]!==null?x(S,0):v(S,e),n&&(m=S+1,h=c-e),S++;continue}if(c+e>o){if(n){b(S,e),_(S+1,0,c-e),S++;continue}if(m>=0){if(f>m||f===m&&p>0){_();continue}_(m,0,h);continue}if(e>o&&a[S]!==null){_(),x(S,0),S++;continue}_();continue}b(S,e),n&&(m=S+1,h=c-e),S++}return l&&_(),s}function ct(e,t,n){if(e.simpleLineWalkFastPath)return st(e,t,n);let{widths:r,kinds:i,breakableFitAdvances:a,discretionaryHyphenWidth:o,chunks:s}=e;if(r.length===0||s.length===0)return 0;let c=J(),l=t+c.lineFitEpsilon,u=0,d=0,f=!1,p=0,m=0,h=0,g=0,_=-1,v=0,y=0,b=null;function x(){_=-1,v=0,y=0,b=null}function S(){return b===`soft-hyphen`&&_===h&&g===0?y:d}function C(t=h,r=g,i){u++,n!==void 0&&n(at(e,i??S(),p,m,t,r),p,m,t,r),d=0,f=!1,x()}function w(e,t){f=!0,p=e,m=0,h=e+1,g=0,d=t}function T(e,t,n){f=!0,p=e,m=t,h=e,g=t+1,d=n}function E(e,t){if(!f){w(e,t);return}d+=t,h=e+1,g=0}function D(t,n,r,i,a,o){if(!n)return;let s=et(e,t,r,a),c=tt(e,t,r,a,i);_=r+1,v=d-o+s,y=d-o+c,b=t}function O(t,n){let r=a[t];for(let i=n;i<r.length;i++){let n=r[i];if(!f)T(t,i,n);else{let r=nt(e,!0,n),a=d+r;rt(e,a)>l?(C(),T(t,i,n)):(d=a,h=t,g=i+1)}}f&&h===t&&g===r.length&&(h=t+1,g=0)}function k(e){u++,n?.(0,e.startSegmentIndex,0,e.consumedEndSegmentIndex,0),x()}for(let t=0;t<s.length;t++){let n=s[t];if(n.startSegmentIndex===n.endSegmentIndex){k(n);continue}f=!1,d=0,p=n.startSegmentIndex,m=0,h=n.startSegmentIndex,g=0,x();let u=n.startSegmentIndex;for(;u<n.endSegmentIndex&&!(!f&&(u=Ye(e,u,n.endSegmentIndex),u>=n.endSegmentIndex));){let t=i[u],n=Je(t),s=Ze(e,f,u),p=t===`tab`?Xe(d+s,e.tabStopAdvance):r[u],m=s+p,x=$e(e,t,u,s,p);if(t===`soft-hyphen`){f&&(h=u+1,g=0,_=u+1,v=d+o,y=d+o,b=t),u++;continue}if(!f){x>l&&a[u]!==null?O(u,0):w(u,p),D(t,n,u,p,s,m),u++;continue}if(d+x>l){let r=d+et(e,t,u,s),i=d+tt(e,t,u,s,p);if(b===`soft-hyphen`&&c.preferEarlySoftHyphenBreak&&v<=l){C(_,0,y);continue}if(n&&r<=l){E(u,m),C(u+1,0,i),u++;continue}if(_>=0&&v<=l){if(h>_||h===_&&g>0){C();continue}let e=_;C(e,0,y),u=e;continue}if(x>l&&a[u]!==null){C(),O(u,0),u++;continue}C();continue}E(u,m),D(t,n,u,p,s,m),u++}if(f){let e=_===n.consumedEndSegmentIndex?y:d;C(n.consumedEndSegmentIndex,0,e)}}return u}let Q=null;function lt(){return Q===null&&(Q=new Intl.Segmenter(void 0,{granularity:`grapheme`})),Q}function ut(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function dt(e,t){let n=[],r=[],i=0,a=!1,o=!1,s=!1;function c(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(``),start:i}),r=[],a=!1,o=!1,s=!1)}function l(e,t,n){r=[e],i=t,a=n,o=F(e),s=T.has(e)}function u(e,t){r.push(e),a||=t;let n=F(e);e.length===1&&D.has(e)?o||=n:o=n,s=!1}for(let n of lt().segment(e)){let e=n.segment,i=_(e);if(r.length===0){l(e,n.index,i);continue}if(s||w.has(e)||D.has(e)||t.carryCJKAfterClosingQuote&&i&&o){u(e,i);continue}if(!a&&!i){u(e,i);continue}c(),l(e,n.index,i)}return c(),n}function ft(e,t,n){if(t.length<=1)return t;let r=[],i=-1,a=!1;function o(n,i){let a=t[n].start,o=i<t.length?t[i].start:e.length;r.push({text:e.slice(a,o),start:a})}function s(e){if(!(i<0)){if(a)i+1===e?r.push(t[i]):o(i,e);else for(let n=i;n<e;n++)r.push(t[n]);i=-1,a=!1}}for(let e=0;e<t.length;e++){let r=t[e];i>=0&&!C(t[e-1].text,n)&&s(e),i<0&&(i=e),a||=_(r.text)}return s(t.length),r}function $(e,t){if(t===`zero-width-break`||t===`soft-hyphen`||t===`hard-break`)return 0;if(t===`tab`)return 1;let n=0,r=lt();for(let t of r.segment(e))n++;return n}function pt(e,t,n){return t>1?e+(t-1)*n:e}function mt(e,t,n,r,a){let o=J(),{cache:s,emojiCorrection:c}=Ke(t,Ve(e.normalized)),l=X(`-`,q(`-`,s),c)+(a===0?0:a*2),u=X(` `,q(` `,s),c)*8,d=a!==0;if(e.len===0)return ut(n);let f=[],p=[],m=[],h=[],g=e.chunks.length<=1&&!d,v=n?[]:null,y=[],b=[],x=n?[]:null,S=Array.from({length:e.len});function C(e,t,n,r,i,a,o,s){i!==`text`&&i!==`space`&&i!==`zero-width-break`&&(g=!1),f.push(t),p.push(n),m.push(r),h.push(i),v?.push(a),y.push(o),d&&b.push(s),x!==null&&x.push(e)}function w(e,t,n,r,i){let l=q(e,s),u=d?$(e,t):0,f=pt(X(e,l,c),u,a),p=t===`space`||t===`preserved-space`||t===`zero-width-break`?0:f,m=p===0?0:p+(u>0?a:0),h=t===`space`||t===`zero-width-break`?0:f;if(i&&r&&e.length>1){let r=`sum-graphemes`;a===0?B(e)?r=`pair-context`:o.preferPrefixWidthsForBreakableRuns&&(r=`segment-prefixes`):r=`segment-prefixes`,C(e,f,m,h,t,n,Ge(e,l,s,c,r),u);return}C(e,f,m,h,t,n,null,u)}for(let t=0;t<e.len;t++){S[t]=f.length;let n=e.texts[t],i=e.isWordLike[t],a=e.kinds[t],c=e.starts[t];if(a===`soft-hyphen`){C(n,0,l,l,a,c,null,0);continue}if(a===`hard-break`){C(n,0,0,0,a,c,null,0);continue}if(a===`tab`){C(n,0,0,0,a,c,null,d?$(n,a):0);continue}let u=q(n,s);if(a===`text`&&u.containsCJK){let e=dt(n,o),t=r===`keep-all`?ft(n,e,o.breakKeepAllAfterPunctuation):e;for(let e=0;e<t.length;e++){let n=t[e];w(n.text,`text`,c+n.start,i,r===`keep-all`||!_(n.text))}continue}w(n,a,c,i,!0)}let T=ht(e.chunks,S,f.length),E=v===null?null:i(e.normalized,v);return x===null?{widths:f,lineEndFitAdvances:p,lineEndPaintAdvances:m,kinds:h,simpleLineWalkFastPath:g,segLevels:E,breakableFitAdvances:y,letterSpacing:a,spacingGraphemeCounts:b,discretionaryHyphenWidth:l,tabStopAdvance:u,chunks:T}:{widths:f,lineEndFitAdvances:p,lineEndPaintAdvances:m,kinds:h,simpleLineWalkFastPath:g,segLevels:E,breakableFitAdvances:y,letterSpacing:a,spacingGraphemeCounts:b,discretionaryHyphenWidth:l,tabStopAdvance:u,chunks:T,segments:x}}function ht(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a.startSegmentIndex<t.length?t[a.startSegmentIndex]:n,s=a.endSegmentIndex<t.length?t[a.endSegmentIndex]:n,c=a.consumedEndSegmentIndex<t.length?t[a.consumedEndSegmentIndex]:n;r.push({startSegmentIndex:o,endSegmentIndex:s,consumedEndSegmentIndex:c})}return r}function gt(e,t,n,r){let i=r?.wordBreak??`normal`,a=r?.letterSpacing??0;return mt(Fe(e,J(),r?.whiteSpace,i),t,n,i,a)}function _t(e,t,n){return gt(e,t,!1,n)}function vt(e){return e}function yt(e,t,n){let r=ot(vt(e),t);return{lineCount:r,height:r*n}}let bt=e=>{let t=0;switch(!0){case!e:case typeof e!=`string`:return t;default:break}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r>=19968&&r<=40959||r>=12352&&r<=12543||r>=44032&&r<=55215?t+=2:t+=1}return t};self.onmessage=e=>{let{tempData:t,commonStyles:n,itemStyles:r,divLineHeight:i,cellMinHeight:a,keyNames:o,isNoAutoWrap:s,columns:c,treeConfig:l,defaultTreeConfig:u}=e.data,d=0;performance.mark(`start`);let f=[],p=new Map,m=e=>{e.slots?.default&&!e.slots?.defaultHeight&&(p.has(e.field)||(console.error(`表格设置了插槽,插槽高度defaultHeight不能为空,否则会导致高度计算错误`,e.field),p.set(e.field,1))),(e.slots.defaultType==`tag`||e.slots.defaultType==`buttons`)&&(e.slots.defaultHeight||(e.slots.defaultHeight=30))},h=l?.childrenField||u.childrenField,g=(e,t)=>{e[h]?.length&&e[h].forEach(e=>{g(e,t+1)});let p=a,_=[],v=0;if(s)for(let e of c)m(e),v=Math.max(v,e.slots?.defaultHeight||0),p=Math.max(p,i);else{for(let n of c){(n.slots?.default||n.slots?.defaultType)&&(m(n),v=Math.max(v,n.slots?.defaultHeight||0));let r=Math.max(n.minWidth||30,n.width||0),i=e[n.field]||``;n.treeNode&&l?.isOpenTree&&(l?.showIcon&&(i+=`图`),l?.indent&&(r-=(l?.indent||u.indent||20)*t));let a=bt(i)/r;testLength:for(let e=0;e<3;e++)if((_[e]?.density||0)<a){_[e]={field:n.field,tempWidth:r,density:a,tempText:i};break testLength}}for(let e of _){let t=e.tempWidth,{height:a}=yt(_t(e.tempText,`${r.fontWeight} ${r.fontSize} ${n}`),t,i);p=Math.max(p,a)}}f.push({pretextHeight:Math.max(p,v)+1,id:e[o.id]}),t==0&&(d+=Math.max(p,v)+1)};for(let e of t)g(e,0);performance.mark(`end`),self.postMessage({tempItemHeights:d,heightDatas:f}),self.close()}})();", de = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", ue], { type: "text/javascript;charset=utf-8" });
|
|
6
|
+
function fe(e) {
|
|
7
7
|
let t;
|
|
8
8
|
try {
|
|
9
|
-
if (t =
|
|
9
|
+
if (t = de && (self.URL || self.webkitURL).createObjectURL(de), !t) throw "";
|
|
10
10
|
let n = new Worker(t, { name: e?.name });
|
|
11
11
|
return n.addEventListener("error", () => {
|
|
12
12
|
(self.URL || self.webkitURL).revokeObjectURL(t);
|
|
13
13
|
}), n;
|
|
14
14
|
} catch {
|
|
15
|
-
return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(
|
|
15
|
+
return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(ue), { name: e?.name });
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region lib/pretextTable/hook/useHeader.ts
|
|
20
|
-
function
|
|
20
|
+
function pe(e) {
|
|
21
21
|
let { pretextTableRef: t } = e, n = g(0), r = {
|
|
22
22
|
fontWeight: "600",
|
|
23
23
|
fontSize: "14px"
|
|
@@ -68,7 +68,7 @@ function fe(e) {
|
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region lib/pretextTable/hook/useGridStyles.ts
|
|
71
|
-
var
|
|
71
|
+
var me = (e) => {
|
|
72
72
|
let t = g([]), n = g([]), r = g(-1), i = g(-1), a = g("");
|
|
73
73
|
return {
|
|
74
74
|
fixedColumnsLeft: t,
|
|
@@ -96,7 +96,7 @@ var pe = (e) => {
|
|
|
96
96
|
};
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region lib/pretextTable/hook/useCheckbox.ts
|
|
99
|
-
function
|
|
99
|
+
function P(e) {
|
|
100
100
|
let { columns: t, blurAnyElement: n, nowDataSource: r, baseDataSource: i, emits: a } = e, o = "checkbox", s = () => {
|
|
101
101
|
for (let e of t.value) if (e.type == "checkbox") return o = e.field, o;
|
|
102
102
|
}, c = g(!1), l = g(!1), u = () => {
|
|
@@ -146,107 +146,46 @@ function me(e) {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
//#endregion
|
|
149
|
-
//#region lib/pretextTable/hook/
|
|
150
|
-
|
|
151
|
-
let {
|
|
152
|
-
if (
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
let n = {
|
|
167
|
-
height: t.height || 30,
|
|
168
|
-
field: e.field,
|
|
169
|
-
fixed: e.fixed,
|
|
170
|
-
slot: e.slots?.footer || "",
|
|
171
|
-
data: ""
|
|
172
|
-
}, r = s.get(e.field) || [];
|
|
173
|
-
if (r) {
|
|
174
|
-
let e = r[l];
|
|
175
|
-
if (e) {
|
|
176
|
-
switch (n.type = e.type, !0) {
|
|
177
|
-
case e?.type === "文本":
|
|
178
|
-
n.data = e.text || "";
|
|
179
|
-
break;
|
|
180
|
-
default:
|
|
181
|
-
n.data = "";
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
n.dataType = e.dataType;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
let a = o.get(e.field) || [];
|
|
188
|
-
a && (a[l] = n, o.set(e.field, a)), i.push(n);
|
|
189
|
-
}
|
|
190
|
-
l++, c.push(i);
|
|
149
|
+
//#region lib/pretextTable/hook/useSort.ts
|
|
150
|
+
function he(e) {
|
|
151
|
+
let { keyNames: t, nowDataSource: n, getVisibleData: r, setNowDataSource: i, treeConfig: a, defaultTreeConfig: o } = e, s = g(""), c = g(null), l = (e, t) => {
|
|
152
|
+
if (t === "auto") switch (!0) {
|
|
153
|
+
case e !== s.value:
|
|
154
|
+
case c.value === null:
|
|
155
|
+
c.value = "asc", s.value = e;
|
|
156
|
+
break;
|
|
157
|
+
case c.value === "asc":
|
|
158
|
+
c.value = "desc", s.value = e;
|
|
159
|
+
break;
|
|
160
|
+
case c.value === "desc":
|
|
161
|
+
c.value = null, s.value = "";
|
|
162
|
+
break;
|
|
163
|
+
default:
|
|
164
|
+
c.value = "asc", s.value = e;
|
|
165
|
+
break;
|
|
191
166
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
switch (!0) {
|
|
204
|
-
case i?.type === "合计":
|
|
205
|
-
let n = t[e], r = 0;
|
|
206
|
-
if (o.get(e) || []) {
|
|
207
|
-
switch (r = Number(i.data) + N.toNumber(n), i?.dataType) {
|
|
208
|
-
case "number0":
|
|
209
|
-
r = N.toFixed(r, 0);
|
|
210
|
-
break;
|
|
211
|
-
case "number1":
|
|
212
|
-
r = N.toFixed(r, 1);
|
|
213
|
-
break;
|
|
214
|
-
case "number2":
|
|
215
|
-
r = N.toFixed(r, 2);
|
|
216
|
-
break;
|
|
217
|
-
default: break;
|
|
218
|
-
}
|
|
219
|
-
i.data = r;
|
|
220
|
-
}
|
|
221
|
-
break;
|
|
222
|
-
default: break;
|
|
167
|
+
else t === c.value && e === s.value ? (c.value = null, s.value = "") : (c.value = t, s.value = e);
|
|
168
|
+
d();
|
|
169
|
+
}, u = (e, t, n) => {
|
|
170
|
+
let r = ce(e, [[(e) => N(Number(e[t])) ? e[t] || "" : Number(e[t]), n]]);
|
|
171
|
+
if (a?.isOpenTree) {
|
|
172
|
+
let e = a?.childrenField || o?.childrenField;
|
|
173
|
+
for (let i of r) {
|
|
174
|
+
let r = i[e] || [];
|
|
175
|
+
r?.length && (i[e] = u(r, t, n));
|
|
223
176
|
}
|
|
224
177
|
}
|
|
178
|
+
return r;
|
|
179
|
+
}, d = () => {
|
|
180
|
+
c.value === null ? i(u(n.value, t.index, "asc")) : i(u(n.value, s.value, c.value)), r();
|
|
225
181
|
};
|
|
226
182
|
return {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
if (s.size == 0) return;
|
|
232
|
-
let t = 0;
|
|
233
|
-
if (e) for (let r of n.value) l(e, r, t), t++;
|
|
234
|
-
else for (let e of n.value) s.forEach((n, r) => {
|
|
235
|
-
l(r, e, t);
|
|
236
|
-
}), t++;
|
|
237
|
-
},
|
|
238
|
-
updateFooterCellLabel: (e, t, n) => {
|
|
239
|
-
let r = o.get(e) || [];
|
|
240
|
-
if (r?.length != 0) {
|
|
241
|
-
if (!r[t]) {
|
|
242
|
-
console.error(`表尾行索引${t}的数据不存在`, r);
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
r[t].data = n;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
183
|
+
sortField: s,
|
|
184
|
+
sortOrder: c,
|
|
185
|
+
sort: l,
|
|
186
|
+
handleSort: d
|
|
248
187
|
};
|
|
249
|
-
}
|
|
188
|
+
}
|
|
250
189
|
//#endregion
|
|
251
190
|
//#region lib/pretextTable/hook/useFilter.ts
|
|
252
191
|
function ge(e) {
|
|
@@ -445,8 +384,129 @@ function ge(e) {
|
|
|
445
384
|
};
|
|
446
385
|
}
|
|
447
386
|
//#endregion
|
|
448
|
-
//#region lib/pretextTable/hook/
|
|
449
|
-
var
|
|
387
|
+
//#region lib/pretextTable/hook/useHeaderResize.ts
|
|
388
|
+
var F = (e) => {
|
|
389
|
+
let { pretextTableRef: t, afterResize: n } = e, r = g(!1), i = 0, a = g(0), o = 0, s = 0, c = null, l = (e, n) => {
|
|
390
|
+
e.preventDefault(), e.stopPropagation(), e.target && (c = n, o = t.value?.getBoundingClientRect().left || 0, r.value = !0, i = e.clientX - o - 0, a.value = i, s = e.clientX - o - 0 - (n.width || n.minWidth || 0) + (n.minWidth || 100), document.body.classList.add("pretextTable-resize-dragging"), document.addEventListener("mousemove", d), document.addEventListener("mouseup", f));
|
|
391
|
+
}, u = null, d = (e) => {
|
|
392
|
+
r.value && (u && cancelAnimationFrame(u), u = requestAnimationFrame(() => {
|
|
393
|
+
let t = e.clientX - o - 0;
|
|
394
|
+
if (t < s) {
|
|
395
|
+
a.value = s;
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
a.value = t;
|
|
399
|
+
}));
|
|
400
|
+
}, f = () => {
|
|
401
|
+
if (r.value = !1, document.body.classList.remove("pretextTable-resize-dragging"), document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", f), !c) return;
|
|
402
|
+
let e = a.value - i;
|
|
403
|
+
c.width = (c.width || 0) + e, n({ column: c });
|
|
404
|
+
};
|
|
405
|
+
return {
|
|
406
|
+
isDragging: r,
|
|
407
|
+
dragLineLeft: a,
|
|
408
|
+
startResize: l
|
|
409
|
+
};
|
|
410
|
+
}, _e = (e) => {
|
|
411
|
+
let { showFooter: t, nowDataSource: n, columns: r } = e, i = g(0), a = g([]), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = (e) => {
|
|
412
|
+
if (s.clear(), !t) {
|
|
413
|
+
i.value = 0;
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
let n = 0, c = [], l = 0;
|
|
417
|
+
for (let t of e) {
|
|
418
|
+
n += t.height || 30;
|
|
419
|
+
let e = t.fieldTypes || [];
|
|
420
|
+
for (let t of e) {
|
|
421
|
+
let e = s.get(t.field) || [];
|
|
422
|
+
e.push(t), s.set(t.field, e);
|
|
423
|
+
}
|
|
424
|
+
let i = [];
|
|
425
|
+
for (let e of r.value) {
|
|
426
|
+
let n = {
|
|
427
|
+
height: t.height || 30,
|
|
428
|
+
field: e.field,
|
|
429
|
+
fixed: e.fixed,
|
|
430
|
+
slot: e.slots?.footer || "",
|
|
431
|
+
data: ""
|
|
432
|
+
}, r = s.get(e.field) || [];
|
|
433
|
+
if (r) {
|
|
434
|
+
let e = r[l];
|
|
435
|
+
if (e) {
|
|
436
|
+
switch (n.type = e.type, !0) {
|
|
437
|
+
case e?.type === "文本":
|
|
438
|
+
n.data = e.text || "";
|
|
439
|
+
break;
|
|
440
|
+
default:
|
|
441
|
+
n.data = "";
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
n.dataType = e.dataType;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
let a = o.get(e.field) || [];
|
|
448
|
+
a && (a[l] = n, o.set(e.field, a)), i.push(n);
|
|
449
|
+
}
|
|
450
|
+
l++, c.push(i);
|
|
451
|
+
}
|
|
452
|
+
i.value = n, a.value = c;
|
|
453
|
+
}, l = (e, t, n) => {
|
|
454
|
+
let r = o.get(e) || [];
|
|
455
|
+
if (r?.length == 0) return "";
|
|
456
|
+
for (let i of r) {
|
|
457
|
+
if (n == 0) switch (!0) {
|
|
458
|
+
case i?.type === "文本": break;
|
|
459
|
+
default:
|
|
460
|
+
i.data = "";
|
|
461
|
+
break;
|
|
462
|
+
}
|
|
463
|
+
switch (!0) {
|
|
464
|
+
case i?.type === "合计":
|
|
465
|
+
let n = t[e], r = 0;
|
|
466
|
+
if (o.get(e) || []) {
|
|
467
|
+
switch (r = Number(i.data) + M.toNumber(n), i?.dataType) {
|
|
468
|
+
case "number0":
|
|
469
|
+
r = M.toFixed(r, 0);
|
|
470
|
+
break;
|
|
471
|
+
case "number1":
|
|
472
|
+
r = M.toFixed(r, 1);
|
|
473
|
+
break;
|
|
474
|
+
case "number2":
|
|
475
|
+
r = M.toFixed(r, 2);
|
|
476
|
+
break;
|
|
477
|
+
default: break;
|
|
478
|
+
}
|
|
479
|
+
i.data = r;
|
|
480
|
+
}
|
|
481
|
+
break;
|
|
482
|
+
default: break;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
return {
|
|
487
|
+
footerHeight: i,
|
|
488
|
+
footerColumns: a,
|
|
489
|
+
getFooterHeight: c,
|
|
490
|
+
updateFooter: (e) => {
|
|
491
|
+
if (s.size == 0) return;
|
|
492
|
+
let t = 0;
|
|
493
|
+
if (e) for (let r of n.value) l(e, r, t), t++;
|
|
494
|
+
else for (let e of n.value) s.forEach((n, r) => {
|
|
495
|
+
l(r, e, t);
|
|
496
|
+
}), t++;
|
|
497
|
+
},
|
|
498
|
+
updateFooterCellLabel: (e, t, n) => {
|
|
499
|
+
let r = o.get(e) || [];
|
|
500
|
+
if (r?.length != 0) {
|
|
501
|
+
if (!r[t]) {
|
|
502
|
+
console.error(`表尾行索引${t}的数据不存在`, r);
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
r[t].data = n;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
}, ve = (e) => {
|
|
450
510
|
let { treeConfig: t, keyNames: n, afterTreeExpand: r, insertChild: i } = e, a = {
|
|
451
511
|
isOpenTree: !1,
|
|
452
512
|
transform: !0,
|
|
@@ -470,7 +530,7 @@ var _e = (e) => {
|
|
|
470
530
|
let n = e;
|
|
471
531
|
if (t?.transform) t?.reserve && s(n, !1);
|
|
472
532
|
else return t?.reserve && s(n, !0), n;
|
|
473
|
-
return n =
|
|
533
|
+
return n = le(n, {
|
|
474
534
|
key: t?.idField || "id",
|
|
475
535
|
parentKey: t.parentField || "parentId",
|
|
476
536
|
children: t.childrenField || "children"
|
|
@@ -494,7 +554,10 @@ var _e = (e) => {
|
|
|
494
554
|
r(e, s);
|
|
495
555
|
}
|
|
496
556
|
};
|
|
497
|
-
},
|
|
557
|
+
}, ye = () => {
|
|
558
|
+
let e = document.activeElement;
|
|
559
|
+
e?.blur && e.blur();
|
|
560
|
+
}, be = (e) => {
|
|
498
561
|
let { keyNames: t, expandConfig: n, afterRowExpand: r, insertExpandRow: i } = e, a = {
|
|
499
562
|
transform: !0,
|
|
500
563
|
parentField: "parentId",
|
|
@@ -521,75 +584,6 @@ var _e = (e) => {
|
|
|
521
584
|
r(e, n);
|
|
522
585
|
}
|
|
523
586
|
};
|
|
524
|
-
};
|
|
525
|
-
//#endregion
|
|
526
|
-
//#region lib/pretextTable/hook/useSort.ts
|
|
527
|
-
function ye(e) {
|
|
528
|
-
let { keyNames: t, nowDataSource: n, getVisibleData: r, setNowDataSource: i, treeConfig: a, defaultTreeConfig: o } = e, s = g(""), c = g(null), l = (e, t) => {
|
|
529
|
-
if (t === "auto") switch (!0) {
|
|
530
|
-
case e !== s.value:
|
|
531
|
-
case c.value === null:
|
|
532
|
-
c.value = "asc", s.value = e;
|
|
533
|
-
break;
|
|
534
|
-
case c.value === "asc":
|
|
535
|
-
c.value = "desc", s.value = e;
|
|
536
|
-
break;
|
|
537
|
-
case c.value === "desc":
|
|
538
|
-
c.value = null, s.value = "";
|
|
539
|
-
break;
|
|
540
|
-
default:
|
|
541
|
-
c.value = "asc", s.value = e;
|
|
542
|
-
break;
|
|
543
|
-
}
|
|
544
|
-
else t === c.value && e === s.value ? (c.value = null, s.value = "") : (c.value = t, s.value = e);
|
|
545
|
-
d();
|
|
546
|
-
}, u = (e, t, n) => {
|
|
547
|
-
let r = se(e, [[(e) => P(Number(e[t])) ? e[t] || "" : Number(e[t]), n]]);
|
|
548
|
-
if (a?.isOpenTree) {
|
|
549
|
-
let e = a?.childrenField || o?.childrenField;
|
|
550
|
-
for (let i of r) {
|
|
551
|
-
let r = i[e] || [];
|
|
552
|
-
r?.length && (i[e] = u(r, t, n));
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
return r;
|
|
556
|
-
}, d = () => {
|
|
557
|
-
c.value === null ? i(u(n.value, t.index, "asc")) : i(u(n.value, s.value, c.value)), r();
|
|
558
|
-
};
|
|
559
|
-
return {
|
|
560
|
-
sortField: s,
|
|
561
|
-
sortOrder: c,
|
|
562
|
-
sort: l,
|
|
563
|
-
handleSort: d
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
//#endregion
|
|
567
|
-
//#region lib/pretextTable/hook/useHeaderResize.ts
|
|
568
|
-
var be = (e) => {
|
|
569
|
-
let { pretextTableRef: t, afterResize: n } = e, r = g(!1), i = 0, a = g(0), o = 0, s = 0, c = null, l = (e, n) => {
|
|
570
|
-
e.preventDefault(), e.stopPropagation(), e.target && (c = n, o = t.value?.getBoundingClientRect().left || 0, r.value = !0, i = e.clientX - o - 0, a.value = i, s = e.clientX - o - 0 - (n.width || n.minWidth || 0) + (n.minWidth || 100), document.body.classList.add("pretextTable-resize-dragging"), document.addEventListener("mousemove", d), document.addEventListener("mouseup", f));
|
|
571
|
-
}, u = null, d = (e) => {
|
|
572
|
-
r.value && (u && cancelAnimationFrame(u), u = requestAnimationFrame(() => {
|
|
573
|
-
let t = e.clientX - o - 0;
|
|
574
|
-
if (t < s) {
|
|
575
|
-
a.value = s;
|
|
576
|
-
return;
|
|
577
|
-
}
|
|
578
|
-
a.value = t;
|
|
579
|
-
}));
|
|
580
|
-
}, f = () => {
|
|
581
|
-
if (r.value = !1, document.body.classList.remove("pretextTable-resize-dragging"), document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", f), !c) return;
|
|
582
|
-
let e = a.value - i;
|
|
583
|
-
c.width = (c.width || 0) + e, n({ column: c });
|
|
584
|
-
};
|
|
585
|
-
return {
|
|
586
|
-
isDragging: r,
|
|
587
|
-
dragLineLeft: a,
|
|
588
|
-
startResize: l
|
|
589
|
-
};
|
|
590
|
-
}, F = () => {
|
|
591
|
-
let e = document.activeElement;
|
|
592
|
-
e?.blur && e.blur();
|
|
593
587
|
}, I = (e) => {
|
|
594
588
|
let t = {
|
|
595
589
|
id: "pretextId",
|
|
@@ -615,7 +609,7 @@ var be = (e) => {
|
|
|
615
609
|
}, m = (e) => {
|
|
616
610
|
a.value?.scrollTo(e);
|
|
617
611
|
}, h = y([]), _ = y([]), v = [], b = /* @__PURE__ */ new Map(), S = (n) => {
|
|
618
|
-
b.clear(), _.value = n, v = [],
|
|
612
|
+
b.clear(), _.value = n, v = [], re();
|
|
619
613
|
let r = 1, i = !1, a = 0, o = e.props.treeConfig?.childrenField || K.childrenField, s = (n, r, i) => {
|
|
620
614
|
if (v.push(n), n[t.level] = i, e.props.treeConfig?.isOpenTree) {
|
|
621
615
|
let e = n?.[o] || [];
|
|
@@ -670,32 +664,32 @@ var be = (e) => {
|
|
|
670
664
|
[t.height]: e.props.expandConfig?.height || 0
|
|
671
665
|
};
|
|
672
666
|
Y([i]), r[t.expandChildren] = [i];
|
|
673
|
-
}, { headerHeight: E, headerStyles: D, createHeader: O, headerRef: k, getHeaderRefHeight: ee } =
|
|
667
|
+
}, { headerHeight: E, headerStyles: D, createHeader: O, headerRef: k, getHeaderRefHeight: ee } = pe({ pretextTableRef: i }), { footerHeight: te, footerColumns: A, getFooterHeight: ne, updateFooter: re, updateFooterCellLabel: ie } = _e({
|
|
674
668
|
showFooter: e.props.showFooter,
|
|
675
669
|
nowDataSource: _,
|
|
676
670
|
columns: n
|
|
677
|
-
}),
|
|
678
|
-
e == -1 && (e =
|
|
679
|
-
},
|
|
680
|
-
|
|
681
|
-
},
|
|
671
|
+
}), j = g(0), ae = g(0), oe = (e) => {
|
|
672
|
+
e == -1 && (e = ae.value), j.value = e;
|
|
673
|
+
}, M = (e) => {
|
|
674
|
+
ae.value = e;
|
|
675
|
+
}, N = () => {
|
|
682
676
|
let e = 0;
|
|
683
677
|
for (let n of v) e += n[t.height] || 0;
|
|
684
|
-
|
|
685
|
-
},
|
|
678
|
+
j.value = e;
|
|
679
|
+
}, ce = {
|
|
686
680
|
fontWeight: "400",
|
|
687
681
|
fontSize: "14px"
|
|
688
|
-
},
|
|
689
|
-
let a = new
|
|
682
|
+
}, le = e.props.commonStyles?.scrollbarHeight || 20, ue = !!e.props.showOverflow, de = e.props.cellMinHeight || 22, I = (n) => new Promise((r, i) => {
|
|
683
|
+
let a = new fe(), o = {
|
|
690
684
|
tempData: n.tempData,
|
|
691
685
|
index: n.index,
|
|
692
686
|
columns: n.columns,
|
|
693
687
|
commonStyles: " \"Microsoft YaHei\", \"微软雅黑\", sans-serif",
|
|
694
|
-
itemStyles:
|
|
688
|
+
itemStyles: ce,
|
|
695
689
|
divLineHeight: 22,
|
|
696
690
|
keyNames: t,
|
|
697
|
-
isNoAutoWrap:
|
|
698
|
-
cellMinHeight:
|
|
691
|
+
isNoAutoWrap: ue,
|
|
692
|
+
cellMinHeight: de,
|
|
699
693
|
treeConfig: {
|
|
700
694
|
...e.props.treeConfig,
|
|
701
695
|
loadMethod: void 0
|
|
@@ -725,7 +719,7 @@ var be = (e) => {
|
|
|
725
719
|
}
|
|
726
720
|
let t = 0;
|
|
727
721
|
if (e.length === 0) {
|
|
728
|
-
S(e),
|
|
722
|
+
S(e), N(), ke.value = [];
|
|
729
723
|
return;
|
|
730
724
|
}
|
|
731
725
|
let r = [];
|
|
@@ -753,7 +747,7 @@ var be = (e) => {
|
|
|
753
747
|
index: 0,
|
|
754
748
|
columns: r
|
|
755
749
|
});
|
|
756
|
-
i && (t += i.tempItemHeights, L(i.heightDatas), S(e),
|
|
750
|
+
i && (t += i.tempItemHeights, L(i.heightDatas), S(e), N(), V());
|
|
757
751
|
let a = [], o = Math.ceil((e.length - 100) / n / 2), s = o * 2, c = 0, l = 100;
|
|
758
752
|
for (let t = 1; t <= o; t++) for (let t = 0; t < 2; t++) a[t] || (a[t] = []), a[t].push({
|
|
759
753
|
tempI: l,
|
|
@@ -771,7 +765,7 @@ var be = (e) => {
|
|
|
771
765
|
index: i.tempI,
|
|
772
766
|
columns: r
|
|
773
767
|
});
|
|
774
|
-
n && (t += n.tempItemHeights,
|
|
768
|
+
n && (t += n.tempItemHeights, M(t), oe(t), c++, L(n.heightDatas), c == s && (S(e), N(), R = !1));
|
|
775
769
|
}
|
|
776
770
|
};
|
|
777
771
|
for (let e of a) n(e);
|
|
@@ -783,7 +777,7 @@ var be = (e) => {
|
|
|
783
777
|
index: 0,
|
|
784
778
|
columns: r
|
|
785
779
|
});
|
|
786
|
-
R = !1, t && (L(t.heightDatas), S(e),
|
|
780
|
+
R = !1, t && (L(t.heightDatas), S(e), N(), V());
|
|
787
781
|
}
|
|
788
782
|
}, Ce = 0, we = 1e4, z = 0, Te = 0, Ee = g(0), B = !1, De = (e) => {
|
|
789
783
|
if (Te = a.value?.scrollLeft || 0, z == a.value?.scrollTop) {
|
|
@@ -801,7 +795,7 @@ var be = (e) => {
|
|
|
801
795
|
return;
|
|
802
796
|
}
|
|
803
797
|
e.preventDefault(), e.stopPropagation(), e.deltaY > 0 ? a.value?.scrollBy({ top: 150 }) : a.value?.scrollBy({ top: -150 });
|
|
804
|
-
}, ke = g([]), Ae = g(0), je =
|
|
798
|
+
}, ke = g([]), Ae = g(0), je = se((e, t) => {
|
|
805
799
|
setTimeout(() => {
|
|
806
800
|
Ae.value = t, e.forEach((e) => {
|
|
807
801
|
e.slotShowTimestamp = t;
|
|
@@ -871,7 +865,7 @@ var be = (e) => {
|
|
|
871
865
|
}
|
|
872
866
|
}
|
|
873
867
|
r < i && (Me.value = r, Ne.value = i);
|
|
874
|
-
}, Fe =
|
|
868
|
+
}, Fe = se(V, 200), { fixedColumnsLeft: Ie, fixedColumnsRight: Le, fixedLeftIndex: H, fixedRightIndex: U, reflashGridTemplateColumns: Re, gridTemplateColumns: ze, getGridStyles: W } = me({ columns: n }), G = y({}), Be = (n, r) => {
|
|
875
869
|
if (e.props.rowConfig?.isCurrent && G.value != n && (G.value = n, e.emits("currentChange", {
|
|
876
870
|
newValue: n,
|
|
877
871
|
column: r
|
|
@@ -901,10 +895,10 @@ var be = (e) => {
|
|
|
901
895
|
e.emits && e.emits("headerCellClick", { column: t }), e.props.sortConfig?.trigger == "cell" && t.sortable && pt(t.field, "auto"), e.emits && e.emits("cellClick", { column: t });
|
|
902
896
|
}, He = y({}), Ue = (t) => {
|
|
903
897
|
e.props.rowConfig?.isHover && (He.value = t);
|
|
904
|
-
}, { getCheckField: We, headerChecked: Ge, headerCheckedIndeterminate: Ke, onHeaderChecked: qe, onCellChecked: Je, getCheckboxRecords: Ye, clearCheckboxRowInit: Xe } =
|
|
898
|
+
}, { getCheckField: We, headerChecked: Ge, headerCheckedIndeterminate: Ke, onHeaderChecked: qe, onCellChecked: Je, getCheckboxRecords: Ye, clearCheckboxRowInit: Xe } = P({
|
|
905
899
|
pretextId: t.id,
|
|
906
900
|
columns: n,
|
|
907
|
-
blurAnyElement:
|
|
901
|
+
blurAnyElement: ye,
|
|
908
902
|
nowDataSource: _,
|
|
909
903
|
baseDataSource: h,
|
|
910
904
|
emits: e.emits
|
|
@@ -912,7 +906,7 @@ var be = (e) => {
|
|
|
912
906
|
Xe();
|
|
913
907
|
let e = We();
|
|
914
908
|
if (e) for (let t of _.value) t[e] = !1;
|
|
915
|
-
}, { isDragging: Qe, dragLineLeft: $e, startResize: et } =
|
|
909
|
+
}, { isDragging: Qe, dragLineLeft: $e, startResize: et } = F({
|
|
916
910
|
pretextTableRef: i,
|
|
917
911
|
afterResize: (t) => {
|
|
918
912
|
Re(), e.emits("resizableChange", {
|
|
@@ -921,23 +915,23 @@ var be = (e) => {
|
|
|
921
915
|
});
|
|
922
916
|
}
|
|
923
917
|
}), tt = () => {
|
|
924
|
-
S(_.value),
|
|
918
|
+
S(_.value), N(), V();
|
|
925
919
|
}, nt = (e) => {
|
|
926
920
|
e ? at(_.value, !0) : rt();
|
|
927
921
|
}, rt = () => {
|
|
928
922
|
q.forEach((e) => {
|
|
929
923
|
e[t.isCollapsed] = !1;
|
|
930
|
-
}), q.clear(), S(_.value),
|
|
931
|
-
}, { defaultTreeConfig: K, treeExpandMap: q, handleTree: it, setTreeExpand: at } =
|
|
924
|
+
}), q.clear(), S(_.value), N(), V();
|
|
925
|
+
}, { defaultTreeConfig: K, treeExpandMap: q, handleTree: it, setTreeExpand: at } = ve({
|
|
932
926
|
treeConfig: e.props.treeConfig,
|
|
933
927
|
keyNames: t,
|
|
934
928
|
afterTreeExpand: tt,
|
|
935
929
|
insertChild: C
|
|
936
|
-
}), { handleExpand: ot, setRowExpand: st } =
|
|
930
|
+
}), { handleExpand: ot, setRowExpand: st } = be({
|
|
937
931
|
keyNames: t,
|
|
938
932
|
expandConfig: e.props.expandConfig,
|
|
939
933
|
afterRowExpand: (t, n) => {
|
|
940
|
-
S(_.value),
|
|
934
|
+
S(_.value), N(), V(), e.emits("toggleRowExpand", {
|
|
941
935
|
expanded: n,
|
|
942
936
|
rows: t
|
|
943
937
|
});
|
|
@@ -976,7 +970,7 @@ var be = (e) => {
|
|
|
976
970
|
fullData: h.value,
|
|
977
971
|
visibleData: e
|
|
978
972
|
};
|
|
979
|
-
}, { sortField: Q, sortOrder: ft, sort: pt, handleSort: $ } =
|
|
973
|
+
}, { sortField: Q, sortOrder: ft, sort: pt, handleSort: $ } = he({
|
|
980
974
|
keyNames: t,
|
|
981
975
|
nowDataSource: _,
|
|
982
976
|
getVisibleData: V,
|
|
@@ -991,12 +985,12 @@ var be = (e) => {
|
|
|
991
985
|
scrollTo: m,
|
|
992
986
|
refresh: u,
|
|
993
987
|
afterFilter: () => {
|
|
994
|
-
|
|
988
|
+
N(), $();
|
|
995
989
|
},
|
|
996
990
|
treeConfig: e.props.treeConfig,
|
|
997
991
|
defaultTreeConfig: K
|
|
998
992
|
}), Ct = (e) => {
|
|
999
|
-
|
|
993
|
+
ye(), e.listFilter.selectedValue.length == e.listFilter.listOptions.length ? e.listFilter.selectedValue = [] : e.listFilter.selectedValue = e.listFilter.listOptions.map((e) => e.value);
|
|
1000
994
|
}, wt = (t) => {
|
|
1001
995
|
if (!i.value) {
|
|
1002
996
|
setTimeout(() => {
|
|
@@ -1005,20 +999,20 @@ var be = (e) => {
|
|
|
1005
999
|
return;
|
|
1006
1000
|
}
|
|
1007
1001
|
let a = O(t) || [];
|
|
1008
|
-
a.finalColumns.length == 0 || a.realColumns.length == 0 || (ot(), Ce = a.finalColumns.length,
|
|
1002
|
+
a.finalColumns.length == 0 || a.realColumns.length == 0 || (ot(), Ce = a.finalColumns.length, N(), n.value = a.finalColumns, r.value = a.realColumns, setTimeout(() => {
|
|
1009
1003
|
ee();
|
|
1010
|
-
}, 0),
|
|
1004
|
+
}, 0), ne(e.props.footerProps), We(), W(), yt(), u());
|
|
1011
1005
|
};
|
|
1012
1006
|
w(() => e.props.columns, (e) => {
|
|
1013
1007
|
wt(e);
|
|
1014
1008
|
}, { immediate: !0 }), w(() => e.props.footerProps, (e) => {
|
|
1015
|
-
|
|
1009
|
+
ne(e);
|
|
1016
1010
|
}), w(() => e.props.height, (e) => {
|
|
1017
1011
|
o.value = e, Fe();
|
|
1018
1012
|
}, { immediate: !0 });
|
|
1019
1013
|
let Tt = () => {
|
|
1020
1014
|
i.value && (s.value = i.value.clientWidth);
|
|
1021
|
-
}, Et =
|
|
1015
|
+
}, Et = se(Tt, 100), Dt = () => {
|
|
1022
1016
|
if (!i.value) {
|
|
1023
1017
|
setTimeout(() => {
|
|
1024
1018
|
Dt();
|
|
@@ -1044,28 +1038,28 @@ var be = (e) => {
|
|
|
1044
1038
|
visibleWidthStartColumnIndex: Me,
|
|
1045
1039
|
visibleWidthEndColumnIndex: Ne,
|
|
1046
1040
|
gridTemplateColumns: ze,
|
|
1047
|
-
blurAnyElement:
|
|
1041
|
+
blurAnyElement: ye,
|
|
1048
1042
|
columns: n,
|
|
1049
1043
|
onScroll: De,
|
|
1050
1044
|
onWheel: Oe,
|
|
1051
1045
|
topEmptyHeight: Ee,
|
|
1052
|
-
scrollbarHeight:
|
|
1046
|
+
scrollbarHeight: j,
|
|
1053
1047
|
headerHeight: E,
|
|
1054
1048
|
headerStyles: D,
|
|
1055
1049
|
realColumns: r,
|
|
1056
1050
|
headerRef: k,
|
|
1057
|
-
updateFooter:
|
|
1058
|
-
updateFooterCellLabel:
|
|
1051
|
+
updateFooter: re,
|
|
1052
|
+
updateFooterCellLabel: ie,
|
|
1059
1053
|
footerHeight: te,
|
|
1060
1054
|
footerColumns: A,
|
|
1061
|
-
getFooterHeight:
|
|
1062
|
-
itemStyles:
|
|
1055
|
+
getFooterHeight: ne,
|
|
1056
|
+
itemStyles: ce,
|
|
1063
1057
|
fixedLeftIndex: H,
|
|
1064
1058
|
fixedRightIndex: U,
|
|
1065
1059
|
fixedColumnsLeft: Ie,
|
|
1066
1060
|
fixedColumnsRight: Le,
|
|
1067
1061
|
getGridStyles: W,
|
|
1068
|
-
divLineHeightOffset:
|
|
1062
|
+
divLineHeightOffset: le,
|
|
1069
1063
|
currentRow: G,
|
|
1070
1064
|
cellClick: Be,
|
|
1071
1065
|
headerClick: Ve,
|
|
@@ -1211,7 +1205,7 @@ var be = (e) => {
|
|
|
1211
1205
|
"toggleRowExpand"
|
|
1212
1206
|
],
|
|
1213
1207
|
setup(c, { expose: d, emit: f }) {
|
|
1214
|
-
let p = c, { keyNames: m, pretextTableRef: g, nowDataSource: y, tableRef: x, isLoading: w, headerHeight:
|
|
1208
|
+
let p = c, { keyNames: m, pretextTableRef: g, nowDataSource: y, tableRef: x, isLoading: w, headerHeight: M, topEmptyHeight: se, visibleData: N, visibleWidthStartColumnIndex: ce, visibleWidthEndColumnIndex: le, columns: ue, realColumns: de, headerRef: fe, onScroll: pe, onWheel: me, gridTemplateColumns: P, blurAnyElement: he, scrollbarHeight: ge, headerStyles: F, divLineHeightOffset: _e, updateFooter: ve, updateFooterCellLabel: ye, footerHeight: be, footerColumns: H, getFooterHeight: U, itemStyles: Re, fixedLeftIndex: ze, fixedRightIndex: W, fixedColumnsLeft: G, fixedColumnsRight: Be, currentRow: Ve, cellClick: He, headerClick: Ue, hoverRow: We, cellMousemove: Ge, headerChecked: Ke, headerCheckedIndeterminate: qe, onHeaderChecked: Je, onCellChecked: Ye, getCheckboxRecords: Xe, clearCheckboxRow: Ze, sortField: Qe, sortOrder: $e, sort: et, filterPopupWidth: tt, filterPopupId: nt, inputFilterOptions: rt, numberFilterOptions: K, filterFields: q, getFilterFields: it, filterClick: at, setFilter: ot, clearFilter: st, setListFilterAll: ct, isDragging: lt, dragLineLeft: J, startResize: Y, setTreeExpand: X, setAllTreeExpand: ut, clearTreeExpand: dt, defaultTreeConfig: Z, setRowExpand: Q, slotShowTimestamp: ft, isRefresh: pt, realTableHeight: $, realTableWidth: mt, loadData: ht, reloadData: gt, getTableData: _t } = I({
|
|
1215
1209
|
props: p,
|
|
1216
1210
|
emits: f
|
|
1217
1211
|
});
|
|
@@ -1220,8 +1214,8 @@ var be = (e) => {
|
|
|
1220
1214
|
reloadData: gt,
|
|
1221
1215
|
getCheckboxRecords: Xe,
|
|
1222
1216
|
clearCheckboxRow: Ze,
|
|
1223
|
-
updateFooter:
|
|
1224
|
-
updateFooterCellLabel:
|
|
1217
|
+
updateFooter: ve,
|
|
1218
|
+
updateFooterCellLabel: ye,
|
|
1225
1219
|
getFooterHeight: U,
|
|
1226
1220
|
getTableData: _t,
|
|
1227
1221
|
setTreeExpand: X,
|
|
@@ -1234,7 +1228,7 @@ var be = (e) => {
|
|
|
1234
1228
|
ref_key: "pretextTableRef",
|
|
1235
1229
|
ref: g
|
|
1236
1230
|
}, [
|
|
1237
|
-
s(S(
|
|
1231
|
+
s(S(re), {
|
|
1238
1232
|
modelValue: S(w),
|
|
1239
1233
|
text: p.loadingConfig?.text || "加载中..."
|
|
1240
1234
|
}, null, 8, ["modelValue", "text"]),
|
|
@@ -1248,12 +1242,12 @@ var be = (e) => {
|
|
|
1248
1242
|
}, { height: `${S($)}px` }]),
|
|
1249
1243
|
ref_key: "tableRef",
|
|
1250
1244
|
ref: x,
|
|
1251
|
-
onScroll: d[2] ||= (...e) => S(
|
|
1252
|
-
onWheel: d[3] ||= (...e) => S(
|
|
1245
|
+
onScroll: d[2] ||= (...e) => S(pe) && S(pe)(...e),
|
|
1246
|
+
onWheel: d[3] ||= (...e) => S(me) && S(me)(...e)
|
|
1253
1247
|
}, [
|
|
1254
1248
|
a("div", {
|
|
1255
1249
|
ref_key: "headerRef",
|
|
1256
|
-
ref:
|
|
1250
|
+
ref: fe,
|
|
1257
1251
|
style: u([{
|
|
1258
1252
|
display: "grid",
|
|
1259
1253
|
width: "max-content",
|
|
@@ -1264,13 +1258,13 @@ var be = (e) => {
|
|
|
1264
1258
|
top: "0",
|
|
1265
1259
|
left: "0",
|
|
1266
1260
|
"z-index": "1"
|
|
1267
|
-
}, { gridTemplateColumns: S(
|
|
1268
|
-
}, [(h(!0), i(e, null, _(S(
|
|
1261
|
+
}, { gridTemplateColumns: S(P) }])
|
|
1262
|
+
}, [(h(!0), i(e, null, _(S(de), (f, p) => (h(), i(e, { key: "headerRow_" + p }, [(h(!0), i(e, null, _(f, (f, m) => (h(), i("div", {
|
|
1269
1263
|
key: "header_" + (f?.field || "null") + "_" + m,
|
|
1270
1264
|
class: "pretextTable-grid-header",
|
|
1271
1265
|
style: u(f ? {
|
|
1272
|
-
fontWeight: S(
|
|
1273
|
-
fontSize: S(
|
|
1266
|
+
fontWeight: S(F).fontWeight,
|
|
1267
|
+
fontSize: S(F).fontSize,
|
|
1274
1268
|
gridRow: f?.style?.gridRow || "",
|
|
1275
1269
|
gridColumn: f?.style?.gridColumn || "",
|
|
1276
1270
|
zIndex: m == 0 ? 3 : f.fixed == "left" || f.fixed == "right" ? 2 : 1,
|
|
@@ -1336,7 +1330,7 @@ var be = (e) => {
|
|
|
1336
1330
|
S(q)[m].type == "inputFilter" ? (h(), i("div", {
|
|
1337
1331
|
key: 0,
|
|
1338
1332
|
style: u({ width: S(tt) + "px" })
|
|
1339
|
-
}, [a("div", null, [s(S(
|
|
1333
|
+
}, [a("div", null, [s(S(ne), {
|
|
1340
1334
|
modelValue: S(q)[m].value,
|
|
1341
1335
|
"onUpdate:modelValue": (e) => S(q)[m].value = e,
|
|
1342
1336
|
placeholder: "按回车筛选",
|
|
@@ -1347,7 +1341,7 @@ var be = (e) => {
|
|
|
1347
1341
|
"modelValue",
|
|
1348
1342
|
"onUpdate:modelValue",
|
|
1349
1343
|
"onKeyup"
|
|
1350
|
-
])]), a("div", B, [s(S(
|
|
1344
|
+
])]), a("div", B, [s(S(j), {
|
|
1351
1345
|
modelValue: S(q)[m].inputFilter.type,
|
|
1352
1346
|
"onUpdate:modelValue": (e) => S(q)[m].inputFilter.type = e,
|
|
1353
1347
|
options: S(rt)
|
|
@@ -1359,7 +1353,7 @@ var be = (e) => {
|
|
|
1359
1353
|
S(q)[m].type == "numberFilter" || S(q)[m].type == "numberFilter%" ? (h(), i("div", {
|
|
1360
1354
|
key: 1,
|
|
1361
1355
|
style: u({ width: S(tt) + "px" })
|
|
1362
|
-
}, [a("div", De, [s(S(
|
|
1356
|
+
}, [a("div", De, [s(S(j), {
|
|
1363
1357
|
modelValue: S(q)[m].numberFilter.type,
|
|
1364
1358
|
"onUpdate:modelValue": (e) => S(q)[m].numberFilter.type = e,
|
|
1365
1359
|
options: S(K)
|
|
@@ -1367,7 +1361,7 @@ var be = (e) => {
|
|
|
1367
1361
|
"modelValue",
|
|
1368
1362
|
"onUpdate:modelValue",
|
|
1369
1363
|
"options"
|
|
1370
|
-
])]), a("div", null, [s(S(
|
|
1364
|
+
])]), a("div", null, [s(S(ie), {
|
|
1371
1365
|
modelValue: S(q)[m].value,
|
|
1372
1366
|
"onUpdate:modelValue": (e) => S(q)[m].value = e,
|
|
1373
1367
|
placeholder: "按回车筛选",
|
|
@@ -1447,14 +1441,14 @@ var be = (e) => {
|
|
|
1447
1441
|
},
|
|
1448
1442
|
onMousedown: O((e) => S(Y)(e, f), ["prevent", "stop"])
|
|
1449
1443
|
}, null, 40, Ae)) : r("", !0)], 12, L))), 128))], 64))), 128))], 4),
|
|
1450
|
-
S(
|
|
1444
|
+
S(N).length == 0 ? (h(), i("div", {
|
|
1451
1445
|
key: 0,
|
|
1452
1446
|
style: u([{
|
|
1453
1447
|
display: "flex",
|
|
1454
1448
|
"align-items": "center",
|
|
1455
1449
|
position: "absolute",
|
|
1456
1450
|
left: "calc(50% - 35px)"
|
|
1457
|
-
}, { minHeight: `${S($) - S(
|
|
1451
|
+
}, { minHeight: `${S($) - S(M) - S(be) - 30}px` }])
|
|
1458
1452
|
}, " 暂无数据 ", 4)) : r("", !0),
|
|
1459
1453
|
a("div", {
|
|
1460
1454
|
class: "pretextTable-grid",
|
|
@@ -1465,13 +1459,13 @@ var be = (e) => {
|
|
|
1465
1459
|
contain: "layout paint style",
|
|
1466
1460
|
position: "relative"
|
|
1467
1461
|
}, {
|
|
1468
|
-
minHeight: `${S($) - S(
|
|
1462
|
+
minHeight: `${S($) - S(M) - S(be) - S(_e)}px`,
|
|
1469
1463
|
height: `${S(ge)}px`
|
|
1470
1464
|
}])
|
|
1471
1465
|
}, [a("div", {
|
|
1472
1466
|
class: "pretextTable-grid-empty",
|
|
1473
|
-
style: u({ height: `${S(
|
|
1474
|
-
}, null, 4), (h(!0), i(e, null, _(S(
|
|
1467
|
+
style: u({ height: `${S(se)}px` })
|
|
1468
|
+
}, null, 4), (h(!0), i(e, null, _(S(N), (t, d) => (h(), i(e, { key: t[S(m).id] }, [p.expandConfig?.isExpand && t[S(m).isExpandRow] ? (h(), i("div", {
|
|
1475
1469
|
key: 0,
|
|
1476
1470
|
class: "pretextTable-grid-item",
|
|
1477
1471
|
style: u([{
|
|
@@ -1493,8 +1487,8 @@ var be = (e) => {
|
|
|
1493
1487
|
"min-width": "100%",
|
|
1494
1488
|
"align-content": "start",
|
|
1495
1489
|
contain: "layout style paint"
|
|
1496
|
-
}, { gridTemplateColumns: S(
|
|
1497
|
-
}, [(h(!0), i(e, null, _(S(
|
|
1490
|
+
}, { gridTemplateColumns: S(P) }])
|
|
1491
|
+
}, [(h(!0), i(e, null, _(S(ue), (f, g) => (h(), i("div", {
|
|
1498
1492
|
key: "item_" + f.field,
|
|
1499
1493
|
class: l(["pretextTable-grid-item pretextTable-flex-align-items-center", {
|
|
1500
1494
|
"pretextTable-grid-item-hover": p.rowConfig?.isHover && S(We)[S(m).id] == t[S(m).id],
|
|
@@ -1515,7 +1509,7 @@ var be = (e) => {
|
|
|
1515
1509
|
}),
|
|
1516
1510
|
onClick: (e) => S(He)(t, f),
|
|
1517
1511
|
onMouseenter: (e) => S(Ge)(t)
|
|
1518
|
-
}, [f.fixed == "left" || f.fixed == "right" || g >= S(
|
|
1512
|
+
}, [f.fixed == "left" || f.fixed == "right" || g >= S(ce) && g <= S(le) ? (h(), i(e, { key: 0 }, [p.treeConfig?.isOpenTree && f.treeNode ? (h(), i(e, { key: 0 }, [a("span", { style: u({ marginLeft: (Number(t[S(m).level]) - 1) * (p.treeConfig?.indent || S(Z).indent) + "px" }) }, null, 4), p.treeConfig?.showIcon === !1 ? r("", !0) : (h(), i(e, { key: 0 }, [t[p.treeConfig?.childrenField || S(Z).childrenField]?.length > 0 || p.treeConfig?.lazy && t[p.treeConfig?.hasChildField || S(Z).hasChildField] ? (h(), i(e, { key: 0 }, [
|
|
1519
1513
|
E(s(S(A), {
|
|
1520
1514
|
name: "spinner",
|
|
1521
1515
|
roll: ""
|
|
@@ -1549,7 +1543,7 @@ var be = (e) => {
|
|
|
1549
1543
|
style: {},
|
|
1550
1544
|
class: "pretextTable-icon",
|
|
1551
1545
|
onClick: O((e) => S(Q)([t], !1), ["stop"])
|
|
1552
|
-
}, null, 8, ["onClick"]), [[C, t[S(m).isRowExpanded]]])])) : f.slots?.defaultType == "a" ? (h(), i("a", Me, b(t[f.field] || ""), 1)) : f.slots?.defaultType == "tag" ? (h(), i("span", Ne, [(h(!0), i(e, null, _(f.slots?.defaultProps?.tag?.options || [], (a) => (h(), i(e, null, [a.value == t[f.field] ? (h(), n(S(
|
|
1546
|
+
}, null, 8, ["onClick"]), [[C, t[S(m).isRowExpanded]]])])) : f.slots?.defaultType == "a" ? (h(), i("a", Me, b(t[f.field] || ""), 1)) : f.slots?.defaultType == "tag" ? (h(), i("span", Ne, [(h(!0), i(e, null, _(f.slots?.defaultProps?.tag?.options || [], (a) => (h(), i(e, null, [a.value == t[f.field] ? (h(), n(S(oe), {
|
|
1553
1547
|
key: 0,
|
|
1554
1548
|
size: "mini",
|
|
1555
1549
|
border: !0,
|
|
@@ -1589,7 +1583,7 @@ var be = (e) => {
|
|
|
1589
1583
|
"disabled",
|
|
1590
1584
|
"loading",
|
|
1591
1585
|
"onClick"
|
|
1592
|
-
])], 8, Fe)) : r("", !0)], 64))), 256))]))), 256)) : r("", !0)], 64)) : f.slots?.defaultType == "switch" ? (h(), i(e, { key: 8 }, [!f.slots?.defaultProps?.switch?.showField || t[f.slots?.defaultProps?.switch?.showField] ? (h(), n(S(
|
|
1586
|
+
])], 8, Fe)) : r("", !0)], 64))), 256))]))), 256)) : r("", !0)], 64)) : f.slots?.defaultType == "switch" ? (h(), i(e, { key: 8 }, [!f.slots?.defaultProps?.switch?.showField || t[f.slots?.defaultProps?.switch?.showField] ? (h(), n(S(ae), {
|
|
1593
1587
|
key: 0,
|
|
1594
1588
|
size: "mini",
|
|
1595
1589
|
modelValue: t[f.field],
|
|
@@ -1630,12 +1624,12 @@ var be = (e) => {
|
|
|
1630
1624
|
contain: "layout paint style",
|
|
1631
1625
|
bottom: "0",
|
|
1632
1626
|
"z-index": "1"
|
|
1633
|
-
}, { gridTemplateColumns: S(
|
|
1627
|
+
}, { gridTemplateColumns: S(P) }])
|
|
1634
1628
|
}, [(h(!0), i(e, null, _(S(H), (t) => (h(), i(e, null, [(h(!0), i(e, null, _(t, (e, t) => (h(), i("div", {
|
|
1635
1629
|
key: "footer_" + e.field,
|
|
1636
1630
|
class: "pretextTable-grid-footer",
|
|
1637
1631
|
style: u({
|
|
1638
|
-
fontSize: S(
|
|
1632
|
+
fontSize: S(F).fontSize,
|
|
1639
1633
|
zIndex: t == 0 ? 3 : e.fixed == "left" || e.fixed == "right" ? 2 : 1,
|
|
1640
1634
|
left: e.fixed == "left" ? S(G)[t] : "",
|
|
1641
1635
|
right: e.fixed == "right" ? S(Be)[t] : "",
|
package/dist/lib/main.d.ts
CHANGED
|
@@ -195,9 +195,9 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<import('vu
|
|
|
195
195
|
onResizableChange?: ((...args: any[]) => any) | undefined;
|
|
196
196
|
onToggleRowExpand?: ((...args: any[]) => any) | undefined;
|
|
197
197
|
}>, {
|
|
198
|
-
showFooter: boolean;
|
|
199
198
|
columns: HolyesTableColumnPropsType[];
|
|
200
199
|
treeConfig: HolyesTableTreeConfig;
|
|
200
|
+
showFooter: boolean;
|
|
201
201
|
expandConfig: HolyesTableExpandConfig;
|
|
202
202
|
cellMinHeight: number;
|
|
203
203
|
loading: boolean;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { VxeIconPropTypes } from 'vxe-pc-ui';
|
|
2
|
-
export * from './useHolyesTable';
|
|
3
|
-
export * from './hook/useFooter';
|
|
4
|
-
export * from './hook/useFilter';
|
|
5
|
-
export * from './hook/useTree';
|
|
6
|
-
export * from './hook/useExpand';
|
|
7
2
|
/** 列插槽类型 */
|
|
8
3
|
export type HolyesTableSlotDefaultType = "a" | "tag" | "icon" | "buttons" | "switch";
|
|
9
4
|
/** 表格列属性,额外属性 */
|
|
@@ -103,7 +103,7 @@ export declare const useHolyesTable: (dataObj: {
|
|
|
103
103
|
}[];
|
|
104
104
|
selectedValue: import('./type').HolyesTableFilterlistOptions[];
|
|
105
105
|
} | undefined;
|
|
106
|
-
}[], import('./
|
|
106
|
+
}[], import('./hook/useFilter').FilterFieldsType[] | {
|
|
107
107
|
field: string;
|
|
108
108
|
type: import('./type').HolyesTableFilterType;
|
|
109
109
|
isShow: boolean;
|