wotokol-edm 1.1.35 → 1.1.37

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.
@@ -4,13 +4,13 @@
4
4
  *
5
5
  * Copyright (c) 2014-2017, Jon Schlinkert.
6
6
  * Released under the MIT License.
7
- */var i=n(3798);function r(e){return!0===i(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==r(e)&&(t=e.constructor,"function"===typeof t&&(n=t.prototype,!1!==r(n)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},955:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(754),n(4636),n(9506),n(7165))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.BlockCipher,r=t.algo,o=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[],f=[];(function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,i=0;for(t=0;t<256;t++){var r=i^i<<1^i<<2^i<<3^i<<4;r=r>>>8^255&r^99,o[n]=r,a[r]=n;var m=e[n],g=e[m],v=e[g],y=257*e[r]^16843008*r;s[n]=y<<24|y>>>8,l[n]=y<<16|y>>>16,c[n]=y<<8|y>>>24,u[n]=y;y=16843009*v^65537*g^257*m^16843008*n;d[r]=y<<24|y>>>8,h[r]=y<<16|y>>>16,p[r]=y<<8|y>>>24,f[r]=y,n?(n=m^e[e[e[v^m]]],i^=e[e[i]]):n=i=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=this._nRounds=n+6,r=4*(i+1),a=this._keySchedule=[],s=0;s<r;s++)s<n?a[s]=t[s]:(u=a[s-1],s%n?n>6&&s%n==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=u<<8|u>>>24,u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=m[s/n|0]<<24),a[s]=a[s-n]^u);for(var l=this._invKeySchedule=[],c=0;c<r;c++){s=r-c;if(c%4)var u=a[s];else u=a[s-4];l[c]=c<4||s<=4?u:d[o[u>>>24]]^h[o[u>>>16&255]]^p[o[u>>>8&255]]^f[o[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,l,c,u,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,h,p,f,a);n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,r,o,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f<l;f++){var m=i[c>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&h]^n[p++],g=i[u>>>24]^r[d>>>16&255]^o[h>>>8&255]^a[255&c]^n[p++],v=i[d>>>24]^r[h>>>16&255]^o[c>>>8&255]^a[255&u]^n[p++],y=i[h>>>24]^r[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++];c=m,u=g,d=v,h=y}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],y=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++];e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=i._createHelper(g)}(),e.AES}))},3128:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(754),n(4636),n(9506),n(7165))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.BlockCipher,r=t.algo;const o=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var l={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,i=t>>16&255,r=t>>8&255,o=255&t,a=e.sbox[0][n]+e.sbox[1][i];return a^=e.sbox[2][r],a+=e.sbox[3][o],a}function u(e,t,n){let i,r=t,a=n;for(let s=0;s<o;++s)r^=e.pbox[s],a=c(e,r)^a,i=r,r=a,a=i;return i=r,r=a,a=i,a^=e.pbox[o],r^=e.pbox[o+1],{left:r,right:a}}function d(e,t,n){let i,r=t,a=n;for(let s=o+1;s>1;--s)r^=e.pbox[s],a=c(e,r)^a,i=r,r=a,a=i;return i=r,r=a,a=i,a^=e.pbox[1],r^=e.pbox[0],{left:r,right:a}}function h(e,t,n){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=s[o][t]}let i=0;for(let s=0;s<o+2;s++)e.pbox[s]=a[s]^t[i],i++,i>=n&&(i=0);let r=0,l=0,c=0;for(let a=0;a<o+2;a+=2)c=u(e,r,l),r=c.left,l=c.right,e.pbox[a]=r,e.pbox[a+1]=l;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)c=u(e,r,l),r=c.left,l=c.right,e.sbox[o][t]=r,e.sbox[o][t+1]=l;return!0}var p=r.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;h(l,t,n)}},encryptBlock:function(e,t){var n=u(l,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=d(l,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=i._createHelper(p)}(),e.Blowfish}))},7165:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(9506))})(0,(function(e){e.lib.Cipher||function(t){var n=e,i=n.lib,r=i.Base,o=i.WordArray,a=i.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo,u=c.EvpKDF,d=i.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?x:w}return function(t){return{encrypt:function(n,i,r){return e(i).encrypt(t,n,i,r)},decrypt:function(n,i,r){return e(i).decrypt(t,n,i,r)}}}}()}),h=(i.StreamCipher=d.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),n.mode={}),p=i.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=h.CBC=function(){var e=p.extend();function n(e,n,i){var r,o=this._iv;o?(r=o,this._iv=t):r=this._prevBlock;for(var a=0;a<i;a++)e[n+a]^=r[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize;n.call(this,e,t,r),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),e.Decryptor=e.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize,o=e.slice(t,t+r);i.decryptBlock(e,t),n.call(this,e,t,r),this._prevBlock=o}}),e}(),m=n.pad={},g=m.Pkcs7={pad:function(e,t){for(var n=4*t,i=n-e.sigBytes%n,r=i<<24|i<<16|i<<8|i,a=[],s=0;s<i;s+=4)a.push(r);var l=o.create(a,i);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},v=(i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:f,padding:g}),reset:function(){var e;d.reset.call(this);var t=this.cfg,n=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(i,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),i.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),y=n.format={},b=y.OpenSSL={stringify:function(e){var t,n=e.ciphertext,i=e.salt;return t=i?o.create([1398893684,1701076831]).concat(i).concat(n):n,t.toString(l)},parse:function(e){var t,n=l.parse(e),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=o.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:t})}},w=i.SerializableCipher=r.extend({cfg:r.extend({format:b}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=e.createEncryptor(n,i),o=r.finalize(t),a=r.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var r=e.createDecryptor(n,i).finalize(t.ciphertext);return r},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=n.kdf={},C=_.OpenSSL={execute:function(e,t,n,i,r){if(i||(i=o.random(8)),r)a=u.create({keySize:t+n,hasher:r}).compute(e,i);else var a=u.create({keySize:t+n}).compute(e,i);var s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,v.create({key:a,iv:s,salt:i})}},x=i.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:C}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=i.kdf.execute(n,e.keySize,e.ivSize,i.salt,i.hasher);i.iv=r.iv;var o=w.encrypt.call(this,e,t,r.key,i);return o.mixIn(r),o},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var r=i.kdf.execute(n,e.keySize,e.ivSize,t.salt,i.hasher);i.iv=r.iv;var o=w.decrypt.call(this,e,t,r.key,i);return o}})}()}))},9021:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){var e=e||function(e,t){var i;if("undefined"!==typeof window&&window.crypto&&(i=window.crypto),"undefined"!==typeof self&&self.crypto&&(i=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!==typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!==typeof n.g&&n.g.crypto&&(i=n.g.crypto),!i)try{i=n(477)}catch(g){}var r=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},l=s.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,r=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var s=0;s<r;s+=4)t[i+s>>>2]=n[s>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new c.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new c.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,i=this._data,r=i.words,o=i.sigBytes,a=this.blockSize,s=4*a,l=o/s;l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0);var u=l*a,d=e.min(4*u,o);if(u){for(var h=0;h<u;h+=a)this._doProcessBlock(r,h);n=r.splice(0,u),i.sigBytes-=d}return new c.init(n,d)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(s.Hasher=f.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math);return e}))},754:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=t.enc;r.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var r=[],o=0;o<n;o+=3)for(var a=t[o>>>2]>>>24-o%4*8&255,s=t[o+1>>>2]>>>24-(o+1)%4*8&255,l=t[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|l,u=0;u<4&&o+.75*u<n;u++)r.push(i.charAt(c>>>6*(3-u)&63));var d=i.charAt(64);if(d)while(r.length%4)r.push(d);return r.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;r++)i[n.charCodeAt(r)]=r}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return o(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(e,t,n){for(var r=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,l=n[e.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),e.enc.Base64}))},4725:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=t.enc;r.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,i=e.sigBytes,r=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<i;a+=3)for(var s=n[a>>>2]>>>24-a%4*8&255,l=n[a+1>>>2]>>>24-(a+1)%4*8&255,c=n[a+2>>>2]>>>24-(a+2)%4*8&255,u=s<<16|l<<8|c,d=0;d<4&&a+.75*d<i;d++)o.push(r.charAt(u>>>6*(3-d)&63));var h=r.charAt(64);if(h)while(o.length%4)o.push(h);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,i=t?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<i.length;a++)r[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(n=l)}return o(e,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(e,t,n){for(var r=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,l=n[e.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),e.enc.Base64url}))},5503:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=t.enc;r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r+=2){var o=t[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return i.create(n,2*t)}};function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r+=2){var a=o(t[r>>>2]>>>16-r%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>1]|=o(e.charCodeAt(r)<<16-r%2*16);return i.create(n,2*t)}}}(),e.enc.Utf16}))},9506:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(5471),n(1025))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.Base,r=n.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n,i=this.cfg,o=i.hasher.create(),a=r.create(),s=a.words,l=i.keySize,c=i.iterations;while(s.length<l){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var u=1;u<c;u++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),e.EvpKDF}))},25:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.CipherParams,r=t.enc,o=r.Hex,a=t.format;a.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return i.create({ciphertext:t})}}}(),e.format.Hex}))},1025:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){(function(){var t=e,n=t.lib,i=n.Base,r=t.enc,o=r.Utf8,a=t.algo;a.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),a=this._iKey=t.clone(),s=r.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;r.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);t.reset();var i=t.finalize(this._oKey.clone().concat(n));return i}})})()}))},1396:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(3240),n(6440),n(5503),n(754),n(4725),n(4636),n(5471),n(3009),n(6308),n(1380),n(9557),n(5953),n(8056),n(1025),n(19),n(9506),n(7165),n(2169),n(6939),n(6372),n(3797),n(8454),n(2073),n(4905),n(482),n(2155),n(8124),n(25),n(955),n(7628),n(7193),n(6298),n(2696),n(3128))})(0,(function(e){return e}))},6440:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,n=t.lib,i=n.WordArray,r=i.init,o=i.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)};o.prototype=i}}(),e.lib.WordArray}))},4636:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[];(function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0})();var l=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,r=e[i];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],_=e[t+10],C=e[t+11],x=e[t+12],S=e[t+13],k=e[t+14],E=e[t+15],D=o[0],A=o[1],T=o[2],O=o[3];D=c(D,A,T,O,a,7,s[0]),O=c(O,D,A,T,l,12,s[1]),T=c(T,O,D,A,p,17,s[2]),A=c(A,T,O,D,f,22,s[3]),D=c(D,A,T,O,m,7,s[4]),O=c(O,D,A,T,g,12,s[5]),T=c(T,O,D,A,v,17,s[6]),A=c(A,T,O,D,y,22,s[7]),D=c(D,A,T,O,b,7,s[8]),O=c(O,D,A,T,w,12,s[9]),T=c(T,O,D,A,_,17,s[10]),A=c(A,T,O,D,C,22,s[11]),D=c(D,A,T,O,x,7,s[12]),O=c(O,D,A,T,S,12,s[13]),T=c(T,O,D,A,k,17,s[14]),A=c(A,T,O,D,E,22,s[15]),D=u(D,A,T,O,l,5,s[16]),O=u(O,D,A,T,v,9,s[17]),T=u(T,O,D,A,C,14,s[18]),A=u(A,T,O,D,a,20,s[19]),D=u(D,A,T,O,g,5,s[20]),O=u(O,D,A,T,_,9,s[21]),T=u(T,O,D,A,E,14,s[22]),A=u(A,T,O,D,m,20,s[23]),D=u(D,A,T,O,w,5,s[24]),O=u(O,D,A,T,k,9,s[25]),T=u(T,O,D,A,f,14,s[26]),A=u(A,T,O,D,b,20,s[27]),D=u(D,A,T,O,S,5,s[28]),O=u(O,D,A,T,p,9,s[29]),T=u(T,O,D,A,y,14,s[30]),A=u(A,T,O,D,x,20,s[31]),D=d(D,A,T,O,g,4,s[32]),O=d(O,D,A,T,b,11,s[33]),T=d(T,O,D,A,C,16,s[34]),A=d(A,T,O,D,k,23,s[35]),D=d(D,A,T,O,l,4,s[36]),O=d(O,D,A,T,m,11,s[37]),T=d(T,O,D,A,y,16,s[38]),A=d(A,T,O,D,_,23,s[39]),D=d(D,A,T,O,S,4,s[40]),O=d(O,D,A,T,a,11,s[41]),T=d(T,O,D,A,f,16,s[42]),A=d(A,T,O,D,v,23,s[43]),D=d(D,A,T,O,w,4,s[44]),O=d(O,D,A,T,x,11,s[45]),T=d(T,O,D,A,E,16,s[46]),A=d(A,T,O,D,p,23,s[47]),D=h(D,A,T,O,a,6,s[48]),O=h(O,D,A,T,y,10,s[49]),T=h(T,O,D,A,k,15,s[50]),A=h(A,T,O,D,g,21,s[51]),D=h(D,A,T,O,x,6,s[52]),O=h(O,D,A,T,f,10,s[53]),T=h(T,O,D,A,_,15,s[54]),A=h(A,T,O,D,l,21,s[55]),D=h(D,A,T,O,b,6,s[56]),O=h(O,D,A,T,E,10,s[57]),T=h(T,O,D,A,v,15,s[58]),A=h(A,T,O,D,S,21,s[59]),D=h(D,A,T,O,m,6,s[60]),O=h(O,D,A,T,C,10,s[61]),T=h(T,O,D,A,p,15,s[62]),A=h(A,T,O,D,w,21,s[63]),o[0]=o[0]+D|0,o[1]=o[1]+A|0,o[2]=o[2]+T|0,o[3]=o[3]+O|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;n[r>>>5]|=128<<24-r%32;var o=t.floor(i/4294967296),a=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,r,o,a){var s=e+(t&n|~t&i)+r+a;return(s<<o|s>>>32-o)+t}function u(e,t,n,i,r,o,a){var s=e+(t&i|n&~i)+r+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,i,r,o,a){var s=e+(t^n^i)+r+a;return(s<<o|s>>>32-o)+t}function h(e,t,n,i,r,o,a){var s=e+(n^(t|~i))+r+a;return(s<<o|s>>>32-o)+t}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),e.MD5}))},2169:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,i){var r,o=this._iv;o?(r=o.slice(0),this._iv=void 0):r=this._prevBlock,i.encryptBlock(r,0);for(var a=0;a<n;a++)e[t+a]^=r[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize;n.call(this,e,t,r,i),this._prevBlock=e.slice(t,t+r)}}),t.Decryptor=t.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize,o=e.slice(t,t+r);n.call(this,e,t,r,i),this._prevBlock=o}}),t}(),e.mode.CFB}))},6372:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){
7
+ */var i=n(3798);function r(e){return!0===i(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==r(e)&&(t=e.constructor,"function"===typeof t&&(n=t.prototype,!1!==r(n)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},955:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(754),n(4636),n(9506),n(7165))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.BlockCipher,r=t.algo,o=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[],f=[];(function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,i=0;for(t=0;t<256;t++){var r=i^i<<1^i<<2^i<<3^i<<4;r=r>>>8^255&r^99,o[n]=r,a[r]=n;var m=e[n],g=e[m],v=e[g],y=257*e[r]^16843008*r;s[n]=y<<24|y>>>8,l[n]=y<<16|y>>>16,c[n]=y<<8|y>>>24,u[n]=y;y=16843009*v^65537*g^257*m^16843008*n;d[r]=y<<24|y>>>8,h[r]=y<<16|y>>>16,p[r]=y<<8|y>>>24,f[r]=y,n?(n=m^e[e[e[v^m]]],i^=e[e[i]]):n=i=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=this._nRounds=n+6,r=4*(i+1),a=this._keySchedule=[],s=0;s<r;s++)s<n?a[s]=t[s]:(u=a[s-1],s%n?n>6&&s%n==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=u<<8|u>>>24,u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=m[s/n|0]<<24),a[s]=a[s-n]^u);for(var l=this._invKeySchedule=[],c=0;c<r;c++){s=r-c;if(c%4)var u=a[s];else u=a[s-4];l[c]=c<4||s<=4?u:d[o[u>>>24]]^h[o[u>>>16&255]]^p[o[u>>>8&255]]^f[o[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,l,c,u,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,h,p,f,a);n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,r,o,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f<l;f++){var m=i[c>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&h]^n[p++],g=i[u>>>24]^r[d>>>16&255]^o[h>>>8&255]^a[255&c]^n[p++],v=i[d>>>24]^r[h>>>16&255]^o[c>>>8&255]^a[255&u]^n[p++],y=i[h>>>24]^r[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++];c=m,u=g,d=v,h=y}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],y=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++];e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=i._createHelper(g)}(),e.AES}))},3128:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(754),n(4636),n(9506),n(7165))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.BlockCipher,r=t.algo;const o=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var l={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,i=t>>16&255,r=t>>8&255,o=255&t,a=e.sbox[0][n]+e.sbox[1][i];return a^=e.sbox[2][r],a+=e.sbox[3][o],a}function u(e,t,n){let i,r=t,a=n;for(let s=0;s<o;++s)r^=e.pbox[s],a=c(e,r)^a,i=r,r=a,a=i;return i=r,r=a,a=i,a^=e.pbox[o],r^=e.pbox[o+1],{left:r,right:a}}function d(e,t,n){let i,r=t,a=n;for(let s=o+1;s>1;--s)r^=e.pbox[s],a=c(e,r)^a,i=r,r=a,a=i;return i=r,r=a,a=i,a^=e.pbox[1],r^=e.pbox[0],{left:r,right:a}}function h(e,t,n){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=s[o][t]}let i=0;for(let s=0;s<o+2;s++)e.pbox[s]=a[s]^t[i],i++,i>=n&&(i=0);let r=0,l=0,c=0;for(let a=0;a<o+2;a+=2)c=u(e,r,l),r=c.left,l=c.right,e.pbox[a]=r,e.pbox[a+1]=l;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)c=u(e,r,l),r=c.left,l=c.right,e.sbox[o][t]=r,e.sbox[o][t+1]=l;return!0}var p=r.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;h(l,t,n)}},encryptBlock:function(e,t){var n=u(l,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=d(l,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=i._createHelper(p)}(),e.Blowfish}))},7165:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(9506))})(0,(function(e){e.lib.Cipher||function(t){var n=e,i=n.lib,r=i.Base,o=i.WordArray,a=i.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo,u=c.EvpKDF,d=i.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?x:w}return function(t){return{encrypt:function(n,i,r){return e(i).encrypt(t,n,i,r)},decrypt:function(n,i,r){return e(i).decrypt(t,n,i,r)}}}}()}),h=(i.StreamCipher=d.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),n.mode={}),p=i.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=h.CBC=function(){var e=p.extend();function n(e,n,i){var r,o=this._iv;o?(r=o,this._iv=t):r=this._prevBlock;for(var a=0;a<i;a++)e[n+a]^=r[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize;n.call(this,e,t,r),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),e.Decryptor=e.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize,o=e.slice(t,t+r);i.decryptBlock(e,t),n.call(this,e,t,r),this._prevBlock=o}}),e}(),m=n.pad={},g=m.Pkcs7={pad:function(e,t){for(var n=4*t,i=n-e.sigBytes%n,r=i<<24|i<<16|i<<8|i,a=[],s=0;s<i;s+=4)a.push(r);var l=o.create(a,i);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},v=(i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:f,padding:g}),reset:function(){var e;d.reset.call(this);var t=this.cfg,n=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(i,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),i.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),y=n.format={},b=y.OpenSSL={stringify:function(e){var t,n=e.ciphertext,i=e.salt;return t=i?o.create([1398893684,1701076831]).concat(i).concat(n):n,t.toString(l)},parse:function(e){var t,n=l.parse(e),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=o.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:t})}},w=i.SerializableCipher=r.extend({cfg:r.extend({format:b}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=e.createEncryptor(n,i),o=r.finalize(t),a=r.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var r=e.createDecryptor(n,i).finalize(t.ciphertext);return r},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=n.kdf={},C=_.OpenSSL={execute:function(e,t,n,i,r){if(i||(i=o.random(8)),r)a=u.create({keySize:t+n,hasher:r}).compute(e,i);else var a=u.create({keySize:t+n}).compute(e,i);var s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,v.create({key:a,iv:s,salt:i})}},x=i.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:C}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=i.kdf.execute(n,e.keySize,e.ivSize,i.salt,i.hasher);i.iv=r.iv;var o=w.encrypt.call(this,e,t,r.key,i);return o.mixIn(r),o},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var r=i.kdf.execute(n,e.keySize,e.ivSize,t.salt,i.hasher);i.iv=r.iv;var o=w.decrypt.call(this,e,t,r.key,i);return o}})}()}))},9021:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){var e=e||function(e,t){var i;if("undefined"!==typeof window&&window.crypto&&(i=window.crypto),"undefined"!==typeof self&&self.crypto&&(i=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!==typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!==typeof n.g&&n.g.crypto&&(i=n.g.crypto),!i)try{i=n(477)}catch(g){}var r=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},l=s.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,r=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var s=0;s<r;s+=4)t[i+s>>>2]=n[s>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new c.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new c.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,i=this._data,r=i.words,o=i.sigBytes,a=this.blockSize,s=4*a,l=o/s;l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0);var u=l*a,d=e.min(4*u,o);if(u){for(var h=0;h<u;h+=a)this._doProcessBlock(r,h);n=r.splice(0,u),i.sigBytes-=d}return new c.init(n,d)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(s.Hasher=f.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math);return e}))},754:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=t.enc;r.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var r=[],o=0;o<n;o+=3)for(var a=t[o>>>2]>>>24-o%4*8&255,s=t[o+1>>>2]>>>24-(o+1)%4*8&255,l=t[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|l,u=0;u<4&&o+.75*u<n;u++)r.push(i.charAt(c>>>6*(3-u)&63));var d=i.charAt(64);if(d)while(r.length%4)r.push(d);return r.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;r++)i[n.charCodeAt(r)]=r}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return o(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(e,t,n){for(var r=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,l=n[e.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),e.enc.Base64}))},4725:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=t.enc;r.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,i=e.sigBytes,r=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<i;a+=3)for(var s=n[a>>>2]>>>24-a%4*8&255,l=n[a+1>>>2]>>>24-(a+1)%4*8&255,c=n[a+2>>>2]>>>24-(a+2)%4*8&255,u=s<<16|l<<8|c,d=0;d<4&&a+.75*d<i;d++)o.push(r.charAt(u>>>6*(3-d)&63));var h=r.charAt(64);if(h)while(o.length%4)o.push(h);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,i=t?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<i.length;a++)r[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(n=l)}return o(e,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(e,t,n){for(var r=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,l=n[e.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),e.enc.Base64url}))},5503:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=t.enc;r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r+=2){var o=t[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return i.create(n,2*t)}};function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r+=2){var a=o(t[r>>>2]>>>16-r%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>1]|=o(e.charCodeAt(r)<<16-r%2*16);return i.create(n,2*t)}}}(),e.enc.Utf16}))},9506:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(5471),n(1025))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.Base,r=n.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n,i=this.cfg,o=i.hasher.create(),a=r.create(),s=a.words,l=i.keySize,c=i.iterations;while(s.length<l){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var u=1;u<c;u++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),e.EvpKDF}))},25:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.CipherParams,r=t.enc,o=r.Hex,a=t.format;a.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return i.create({ciphertext:t})}}}(),e.format.Hex}))},1025:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){(function(){var t=e,n=t.lib,i=n.Base,r=t.enc,o=r.Utf8,a=t.algo;a.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),a=this._iKey=t.clone(),s=r.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;r.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);t.reset();var i=t.finalize(this._oKey.clone().concat(n));return i}})})()}))},1396:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(3240),n(6440),n(5503),n(754),n(4725),n(4636),n(5471),n(3009),n(6308),n(1380),n(9557),n(5953),n(8056),n(1025),n(19),n(9506),n(7165),n(2169),n(6939),n(6372),n(3797),n(8454),n(2073),n(4905),n(482),n(2155),n(8124),n(25),n(955),n(7628),n(7193),n(3917),n(2696),n(3128))})(0,(function(e){return e}))},6440:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,n=t.lib,i=n.WordArray,r=i.init,o=i.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)};o.prototype=i}}(),e.lib.WordArray}))},4636:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[];(function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0})();var l=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,r=e[i];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],_=e[t+10],C=e[t+11],x=e[t+12],S=e[t+13],k=e[t+14],E=e[t+15],D=o[0],A=o[1],T=o[2],O=o[3];D=c(D,A,T,O,a,7,s[0]),O=c(O,D,A,T,l,12,s[1]),T=c(T,O,D,A,p,17,s[2]),A=c(A,T,O,D,f,22,s[3]),D=c(D,A,T,O,m,7,s[4]),O=c(O,D,A,T,g,12,s[5]),T=c(T,O,D,A,v,17,s[6]),A=c(A,T,O,D,y,22,s[7]),D=c(D,A,T,O,b,7,s[8]),O=c(O,D,A,T,w,12,s[9]),T=c(T,O,D,A,_,17,s[10]),A=c(A,T,O,D,C,22,s[11]),D=c(D,A,T,O,x,7,s[12]),O=c(O,D,A,T,S,12,s[13]),T=c(T,O,D,A,k,17,s[14]),A=c(A,T,O,D,E,22,s[15]),D=u(D,A,T,O,l,5,s[16]),O=u(O,D,A,T,v,9,s[17]),T=u(T,O,D,A,C,14,s[18]),A=u(A,T,O,D,a,20,s[19]),D=u(D,A,T,O,g,5,s[20]),O=u(O,D,A,T,_,9,s[21]),T=u(T,O,D,A,E,14,s[22]),A=u(A,T,O,D,m,20,s[23]),D=u(D,A,T,O,w,5,s[24]),O=u(O,D,A,T,k,9,s[25]),T=u(T,O,D,A,f,14,s[26]),A=u(A,T,O,D,b,20,s[27]),D=u(D,A,T,O,S,5,s[28]),O=u(O,D,A,T,p,9,s[29]),T=u(T,O,D,A,y,14,s[30]),A=u(A,T,O,D,x,20,s[31]),D=d(D,A,T,O,g,4,s[32]),O=d(O,D,A,T,b,11,s[33]),T=d(T,O,D,A,C,16,s[34]),A=d(A,T,O,D,k,23,s[35]),D=d(D,A,T,O,l,4,s[36]),O=d(O,D,A,T,m,11,s[37]),T=d(T,O,D,A,y,16,s[38]),A=d(A,T,O,D,_,23,s[39]),D=d(D,A,T,O,S,4,s[40]),O=d(O,D,A,T,a,11,s[41]),T=d(T,O,D,A,f,16,s[42]),A=d(A,T,O,D,v,23,s[43]),D=d(D,A,T,O,w,4,s[44]),O=d(O,D,A,T,x,11,s[45]),T=d(T,O,D,A,E,16,s[46]),A=d(A,T,O,D,p,23,s[47]),D=h(D,A,T,O,a,6,s[48]),O=h(O,D,A,T,y,10,s[49]),T=h(T,O,D,A,k,15,s[50]),A=h(A,T,O,D,g,21,s[51]),D=h(D,A,T,O,x,6,s[52]),O=h(O,D,A,T,f,10,s[53]),T=h(T,O,D,A,_,15,s[54]),A=h(A,T,O,D,l,21,s[55]),D=h(D,A,T,O,b,6,s[56]),O=h(O,D,A,T,E,10,s[57]),T=h(T,O,D,A,v,15,s[58]),A=h(A,T,O,D,S,21,s[59]),D=h(D,A,T,O,m,6,s[60]),O=h(O,D,A,T,C,10,s[61]),T=h(T,O,D,A,p,15,s[62]),A=h(A,T,O,D,w,21,s[63]),o[0]=o[0]+D|0,o[1]=o[1]+A|0,o[2]=o[2]+T|0,o[3]=o[3]+O|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;n[r>>>5]|=128<<24-r%32;var o=t.floor(i/4294967296),a=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,r,o,a){var s=e+(t&n|~t&i)+r+a;return(s<<o|s>>>32-o)+t}function u(e,t,n,i,r,o,a){var s=e+(t&i|n&~i)+r+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,i,r,o,a){var s=e+(t^n^i)+r+a;return(s<<o|s>>>32-o)+t}function h(e,t,n,i,r,o,a){var s=e+(n^(t|~i))+r+a;return(s<<o|s>>>32-o)+t}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),e.MD5}))},2169:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,i){var r,o=this._iv;o?(r=o.slice(0),this._iv=void 0):r=this._prevBlock,i.encryptBlock(r,0);for(var a=0;a<n;a++)e[t+a]^=r[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize;n.call(this,e,t,r,i),this._prevBlock=e.slice(t,t+r)}}),t.Decryptor=t.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize,o=e.slice(t,t+r);n.call(this,e,t,r,i),this._prevBlock=o}}),t}(),e.mode.CFB}))},6372:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){
8
8
  /** @preserve
9
9
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
10
10
  * derived from CryptoJS.mode.CTR
11
11
  * Jan Hruby jhruby.web@gmail.com
12
12
  */
13
- return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}function i(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var r=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),i(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<r;l++)e[t+l]^=s[l]}});return t.Decryptor=r,t}(),e.mode.CTRGladman}))},6939:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)e[t+s]^=a[s]}});return t.Decryptor=n,t}(),e.mode.CTR}))},8454:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB}))},3797:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._keystream;r&&(o=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<i;a++)e[t+a]^=o[a]}});return t.Decryptor=n,t}(),e.mode.OFB}))},2073:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,i=4*t,r=i-n%i,o=n+r-1;e.clamp(),e.words[o>>>2]|=r<<24-o%4*8,e.sigBytes+=r},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}))},4905:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.pad.Iso10126={pad:function(t,n){var i=4*n,r=i-t.sigBytes%i;t.concat(e.lib.WordArray.random(r-1)).concat(e.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}))},482:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}))},8124:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}))},2155:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding}))},19:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(3009),n(1025))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.Base,r=n.WordArray,o=t.algo,a=o.SHA256,s=o.HMAC,l=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,i=s.create(n.hasher,e),o=r.create(),a=r.create([1]),l=o.words,c=a.words,u=n.keySize,d=n.iterations;while(l.length<u){var h=i.update(t).finalize(a);i.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=i.finalize(m),i.reset();for(var v=m.words,y=0;y<f;y++)p[y]^=v[y]}o.concat(h),c[0]++}return o.sigBytes=4*u,o}});t.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)}}(),e.PBKDF2}))},2696:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(754),n(4636),n(9506),n(7165))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.StreamCipher,r=t.algo,o=[],a=[],s=[],l=r.RabbitLegacy=i.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=h;for(r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),e[t+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=e[n]+t[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=i._createHelper(l)}(),e.RabbitLegacy}))},6298:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(754),n(4636),n(9506),n(7165))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.StreamCipher,r=t.algo,o=[],a=[],s=[],l=r.Rabbit=i.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=h;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),e[t+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=e[n]+t[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=i._createHelper(l)}(),e.Rabbit}))},7193:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(754),n(4636),n(9506),n(7165))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.StreamCipher,r=t.algo,o=r.RC4=i.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var a=r%n,s=t[a>>>2]>>>24-a%4*8&255;o=(o+i[r]+s)%256;var l=i[r];i[r]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,n=this._j,i=0,r=0;r<4;r++){t=(t+1)%256,n=(n+e[t])%256;var o=e[t];e[t]=e[n],e[n]=o,i|=e[(e[t]+e[n])%256]<<24-8*r}return this._i=t,this._j=n,i}t.RC4=i._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});t.RC4Drop=i._createHelper(s)}(),e.RC4}))},8056:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){
13
+ return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}function i(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var r=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),i(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<r;l++)e[t+l]^=s[l]}});return t.Decryptor=r,t}(),e.mode.CTRGladman}))},6939:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)e[t+s]^=a[s]}});return t.Decryptor=n,t}(),e.mode.CTR}))},8454:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB}))},3797:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._keystream;r&&(o=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<i;a++)e[t+a]^=o[a]}});return t.Decryptor=n,t}(),e.mode.OFB}))},2073:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,i=4*t,r=i-n%i,o=n+r-1;e.clamp(),e.words[o>>>2]|=r<<24-o%4*8,e.sigBytes+=r},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}))},4905:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.pad.Iso10126={pad:function(t,n){var i=4*n,r=i-t.sigBytes%i;t.concat(e.lib.WordArray.random(r-1)).concat(e.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}))},482:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}))},8124:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}))},2155:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(7165))})(0,(function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding}))},19:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(3009),n(1025))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.Base,r=n.WordArray,o=t.algo,a=o.SHA256,s=o.HMAC,l=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,i=s.create(n.hasher,e),o=r.create(),a=r.create([1]),l=o.words,c=a.words,u=n.keySize,d=n.iterations;while(l.length<u){var h=i.update(t).finalize(a);i.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=i.finalize(m),i.reset();for(var v=m.words,y=0;y<f;y++)p[y]^=v[y]}o.concat(h),c[0]++}return o.sigBytes=4*u,o}});t.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)}}(),e.PBKDF2}))},2696:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(754),n(4636),n(9506),n(7165))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.StreamCipher,r=t.algo,o=[],a=[],s=[],l=r.RabbitLegacy=i.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=h;for(r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),e[t+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=e[n]+t[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=i._createHelper(l)}(),e.RabbitLegacy}))},3917:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(754),n(4636),n(9506),n(7165))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.StreamCipher,r=t.algo,o=[],a=[],s=[],l=r.Rabbit=i.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=h;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),e[t+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=e[n]+t[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=i._createHelper(l)}(),e.Rabbit}))},7193:function(e,t,n){(function(t,i){e.exports=i(n(9021),n(754),n(4636),n(9506),n(7165))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.StreamCipher,r=t.algo,o=r.RC4=i.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var a=r%n,s=t[a>>>2]>>>24-a%4*8&255;o=(o+i[r]+s)%256;var l=i[r];i[r]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,n=this._j,i=0,r=0;r<4;r++){t=(t+1)%256,n=(n+e[t])%256;var o=e[t];e[t]=e[n],e[n]=o,i|=e[(e[t]+e[n])%256]<<24-8*r}return this._i=t,this._j=n,i}t.RC4=i._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});t.RC4Drop=i._createHelper(s)}(),e.RC4}))},8056:function(e,t,n){(function(t,i){e.exports=i(n(9021))})(0,(function(e){
14
14
  /** @preserve
15
15
  (c) 2012 by Cédric Mesnil. All rights reserved.
16
16
 
@@ -64,7 +64,7 @@ function o(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;va
64
64
  */
65
65
  function Yn(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var Gn="undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:{},Kn=Gn.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Xn(e){Kn&&(e._devtoolHook=Kn,Kn.emit("vuex:init",e),Kn.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){Kn.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){Kn.emit("vuex:action",e,t)}),{prepend:!0}))}function Zn(e,t){return e.filter(t)[0]}function Jn(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=Zn(t,(function(t){return t.original===e}));if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=Jn(e[n],t)})),i}function Qn(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function ei(e){return null!==e&&"object"===typeof e}function ti(e){return e&&"function"===typeof e.then}function ni(e,t){return function(){return e(t)}}var ii=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},ri={namespaced:{configurable:!0}};ri.namespaced.get=function(){return!!this._rawModule.namespaced},ii.prototype.addChild=function(e,t){this._children[e]=t},ii.prototype.removeChild=function(e){delete this._children[e]},ii.prototype.getChild=function(e){return this._children[e]},ii.prototype.hasChild=function(e){return e in this._children},ii.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},ii.prototype.forEachChild=function(e){Qn(this._children,e)},ii.prototype.forEachGetter=function(e){this._rawModule.getters&&Qn(this._rawModule.getters,e)},ii.prototype.forEachAction=function(e){this._rawModule.actions&&Qn(this._rawModule.actions,e)},ii.prototype.forEachMutation=function(e){this._rawModule.mutations&&Qn(this._rawModule.mutations,e)},Object.defineProperties(ii.prototype,ri);var oi=function(e){this.register([],e,!1)};function ai(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;ai(e.concat(i),t.getChild(i),n.modules[i])}}oi.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},oi.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},oi.prototype.update=function(e){ai([],this.root,e)},oi.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var r=new ii(t,n);if(0===e.length)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}t.modules&&Qn(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},oi.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},oi.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var si;var li=function(e){var t=this;void 0===e&&(e={}),!si&&"undefined"!==typeof window&&window.Vue&&Ci(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new oi(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new si,this._makeLocalGettersCache=Object.create(null);var r=this,o=this,a=o.dispatch,s=o.commit;this.dispatch=function(e,t){return a.call(r,e,t)},this.commit=function(e,t,n){return s.call(r,e,t,n)},this.strict=i;var l=this._modules.root.state;pi(this,l,[],this._modules.root),hi(this,l),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:si.config.devtools;c&&Xn(this)},ci={state:{configurable:!0}};function ui(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function di(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;pi(e,n,[],e._modules.root,!0),hi(e,n,t)}function hi(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};Qn(r,(function(t,n){o[n]=ni(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=si.config.silent;si.config.silent=!0,e._vm=new si({data:{$$state:t},computed:o}),si.config.silent=a,e.strict&&bi(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),si.nextTick((function(){return i.$destroy()})))}function pi(e,t,n,i,r){var o=!n.length,a=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!o&&!r){var s=wi(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){si.set(s,l,i.state)}))}var c=i.context=fi(e,a,n);i.forEachMutation((function(t,n){var i=a+n;gi(e,i,t,c)})),i.forEachAction((function(t,n){var i=t.root?n:a+n,r=t.handler||t;vi(e,i,r,c)})),i.forEachGetter((function(t,n){var i=a+n;yi(e,i,t,c)})),i.forEachChild((function(i,o){pi(e,t,n.concat(o),i,r)}))}function fi(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var o=_i(n,i,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:i?e.commit:function(n,i,r){var o=_i(n,i,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return mi(e,t)}},state:{get:function(){return wi(e.state,n)}}}),r}function mi(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,i)===t){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function gi(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,i.state,t)}))}function vi(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return ti(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function yi(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function bi(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function wi(e,t){return t.reduce((function(e,t){return e[t]}),e)}function _i(e,t,n){return ei(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function Ci(e){si&&e===si||(si=e,Yn(si))}ci.state.get=function(){return this._vm._data.$$state},ci.state.set=function(e){0},li.prototype.commit=function(e,t,n){var i=this,r=_i(e,t,n),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,i.state)})))},li.prototype.dispatch=function(e,t){var n=this,i=_i(e,t),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(Jd){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(Jd){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(Jd){0}t(e)}))}))}},li.prototype.subscribe=function(e,t){return ui(e,this._subscribers,t)},li.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return ui(n,this._actionSubscribers,t)},li.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,n)},li.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},li.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),pi(this,this.state,e,this._modules.get(e),n.preserveState),hi(this,this.state)},li.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=wi(t.state,e.slice(0,-1));si.delete(n,e[e.length-1])})),di(this)},li.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},li.prototype.hotUpdate=function(e){this._modules.update(e),di(this,!0)},li.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(li.prototype,ci);var xi=Oi((function(e,t){var n={};return Ai(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=Ii(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0})),n})),Si=Oi((function(e,t){var n={};return Ai(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var o=Ii(this.$store,"mapMutations",e);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),ki=Oi((function(e,t){var n={};return Ai(t).forEach((function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||Ii(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0})),n})),Ei=Oi((function(e,t){var n={};return Ai(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var o=Ii(this.$store,"mapActions",e);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),Di=function(e){return{mapState:xi.bind(null,e),mapGetters:ki.bind(null,e),mapMutations:Si.bind(null,e),mapActions:Ei.bind(null,e)}};function Ai(e){return Ti(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function Ti(e){return Array.isArray(e)||ei(e)}function Oi(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function Ii(e,t,n){var i=e._modulesNamespaceMap[n];return i}function Pi(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var l=e.logActions;void 0===l&&(l=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var u=Jn(e.state);"undefined"!==typeof c&&(s&&e.subscribe((function(e,o){var a=Jn(o);if(n(e,u,a)){var s=Bi(),l=r(e),d="mutation "+e.type+s;$i(c,d,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",i(u)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",i(a)),Fi(c)}u=a})),l&&e.subscribeAction((function(e,n){if(o(e,n)){var i=Bi(),r=a(e),s="action "+e.type+i;$i(c,s,t),c.log("%c action","color: #03A9F4; font-weight: bold",r),Fi(c)}})))}}function $i(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(Jd){e.log(t)}}function Fi(e){try{e.groupEnd()}catch(Jd){e.log("—— log end ——")}}function Bi(){var e=new Date;return" @ "+Ni(e.getHours(),2)+":"+Ni(e.getMinutes(),2)+":"+Ni(e.getSeconds(),2)+"."+Ni(e.getMilliseconds(),3)}function Mi(e,t){return new Array(t+1).join(e)}function Ni(e,t){return Mi("0",t-e.toString().length)+e}var Ri={Store:li,install:Ci,version:"3.6.2",mapState:xi,mapMutations:Si,mapGetters:ki,mapActions:Ei,createNamespacedHelpers:Di,createLogger:Pi},ji=Ri,Li={namespaced:!0,state:{persistData:{theme:null}},getters:{currentTheme:e=>e.persistData.theme},mutations:{changeTheme(e,t){e.persistData.theme=t}},actions:{changeTheme({commit:e},t){e("changeTheme",t)}}};qn().use(ji);var zi=new ji.Store({state:{theme:"#5E72F4"},getters:{},mutations:{},actions:{},modules:{Theme:Li}});
66
66
  /*! js-cookie v3.0.5 | MIT */
67
- function Vi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var Hi={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ui(e,t){function n(n,i,r){if("undefined"!==typeof document){r=Vi({},t,r),"number"===typeof r.expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in r)r[a]&&(o+="; "+a,!0!==r[a]&&(o+="="+r[a].split(";")[0]));return document.cookie=n+"="+e.write(i,n)+o}}function i(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],i={},r=0;r<n.length;r++){var o=n[r].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(i[s]=e.read(a,s),t===s)break}catch(Jd){}}return t?i[t]:i}}return Object.create({set:n,get:i,remove:function(e,t){n(e,"",Vi({},t,{expires:-1}))},withAttributes:function(e){return Ui(this.converter,Vi({},this.attributes,e))},withConverter:function(e){return Ui(Vi({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Wi=Ui(Hi,{path:"/"});const qi="userToken";function Yi(){return Wi.get(qi)}function Gi(e){return Wi.set(qi,e)}const Ki=Sn.create({baseURL:"https://dss-apis.kuku.info"});Ki.interceptors.request.use((e=>{if(e.data)for(const t in e.data)Zi(e.data[t])&&delete e.data[t];if(e.params)for(const t in e.params)Zi(e.params[t])&&delete e.params[t];return zi.getters.token&&(e.headers["Authorization"]="Bearer "+Yi()),e}),(e=>Promise.reject(e))),Ki.interceptors.response.use((e=>{const t=e.data;return Promise.resolve(t)}),(e=>(100003===e.response.data.code?(0,Un.Message)({message:e.response.data.message,type:"error",duration:5e3}):(0,Un.Message)({message:e.response.data.message?e.response.data.message:"网络错误,请稍后再试~",type:"error",duration:5e3}),Promise.reject(e))));var Xi=Ki;function Zi(e){return"undefined"===typeof e||null===e||""===e}async function Ji(e){let t=await Hn("https://k8s-api.wotohub.com/user/userSystem/loginWithPassword",e);return t.data}function Qi(e){return Xi({url:"https://dss-apis.kuku.info/user/account/password",method:"POST",data:e})}async function er(e){let t=await Hn("https://api.kuku.info/koc/task/search",e);return t.data}async function tr(){let e=await Hn("http://192.168.4.10:9528/writeEmail",{});return e.data}async function nr(e){let t={sourceApp:"hub",bloggerName:"",subject:"",taskName:"",type:"",currentPage:1,pageSize:10},n=await Hn("http://192.168.4.10:8080/edm/mail/selOutbox",t);return n.data}var ir={name:"edm-button",created(){},methods:{test(){let e='<html>\n <head>\n <meta http-equiv="Content-Type" content="text/html; charset=gb2312">\n <style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>\n </head>\n <body dir="ltr">\n <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">\n This is a great project. I like it very much. Can you tell me the specific way of cooperation?\n </div>\n <div id="appendonsend"></div>\n <hr style="display:inline-block;width:98%" tabindex="-1">\n <div id="divRplyFwdMsg" dir="ltr">\n <font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> e9f2b200-3423-11ef-85f0-525400450766@viralpromotors.com &lt;e9f2b200-3423-11ef-85f0-525400450766@viralpromotors.com&gt; 代表 marywrogers@viralpromotors.com &lt;marywrogers@viralpromotors.com&gt;<br><b>发送时间:</b> 2024年6月27日 9:23<br><b>收件人:</b> lectmaha &lt;lectmaha@hotmail.com&gt;<br><b>主题:</b> Business inquiry-Hisense wants collaboration-allhostaria</font>\n <div>\n &nbsp;\n </div>\n </div>\n <div>\n <p style="text-align:left"><span style="font-size:14px">Hi allhostaria,</span></p>\n <p style="text-align:left"><span style="font-size:14px">Hope this email finds you well.</span></p>\n <p style="text-align:left"><span style="font-size:14px">This is Anna from Wotokol, a famous influencer marketing company that connects international influencers and world-famous brands from China.</span></p>\n <p style="text-align:left"><span style="font-size:14px">You do really great content on your channel and here\'s a campaign that I\'d like to invite you to join.</span></p>\n <p style="text-align:left"><br></p>\n <p style="text-align:left"><span style="font-size:14px">Here is the info about this activity:</span></p>\n <p style="text-align:left"><span style="font-size:14px">Brand: Hisense &nbsp;</span><a href="https://sctrack.sendcloud.net/track/click2/eNolj8FuwyAQRP8FpTeC2TWsza39jipCeE1qK8RUAZ-q_ntwoj2sZuZpR_uNoyU7SCGkgAGcsWB6bONB9w7JO2cJ_ThoqwqfQXvnjfZA5rxuU963WZ9S5HoPS_hccttrUpzvQmopllp_y0f_1XU_KU8hqWUtcSvxALoXcQ2pxFZtBjWOClGBoSbrYz_cI2AmRDMb5wA0BeoBeQIOzMhXMm-qcH0Evql2feaU91ltsQr59y_fXzTo8gRda0GI.html" target="_blank"><span style="color:rgb(120,6,80); font-size:14px">https://global.hisense.com/</span></a></p>\n <p style="text-align:left"><span style="font-size:14px">Product models for different countries:</span></p>\n <p style="text-align:left"><span style="font-size:14px"><u>US:</u></span><span style="font-size:14px"> Hisense 100" Class U76 4K Google TV 100U76N Hisense (hisense-usa.com), Hisense 100" L9 Series TriChroma Laser TV (100L9H-DLT100C) (hisense-usa.com)</span></p>\n <p style="text-align:left"><span style="font-size:14px"><u>UK:</u></span><span style="font-size:14px"> Mini-LED Smart TV - 100U7KQTUK - Hisense, 4K Smart Laser TV - 120L9HTUKA - Hisense</span></p>\n <p style="text-align:left"><span style="font-size:14px">Deliverables: one 5-8 mins dedicated YTB video + video commercial usage rights for 3 months</span></p>\n <p style="text-align:left"><span style="font-size:14px">Post time: July 7-July 14, 2024</span></p>\n <p style="text-align:left"><br></p>\n <p style="text-align:left"><span style="font-size:14px">One of the products will be given to you, please let me know your rate for this collab if you\'re interested.</span></p>\n <p style="text-align:left"><span style="font-size:14px">Please feel free to contact me if you have any questions, hope to hear from you soon.</span></p>\n <p style="text-align:left"><br></p>\n <p style="text-align:left"><span style="font-size:14px">Best Regards,</span></p>\n <p style="text-align:left"><span style="font-size:14px">Anna Chen</span></p>\n <div style="display:flex; overflow-x:auto"></div>\n <div>\n <br><img width="1px" height="1px" src="https://pixel.xin/collect.gif?trace_id=pixel_667cbf27e4b0b64ffa8b634c">\n </div>\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tbody>\n <tr>\n <td align="center" style="overflow:hidden; font-size:0; padding:0; margin:0; line-height:0"><img alt="" style="width:0; height:0" src="https://sctrack.sendcloud.net/track/open2/eNolTs0KwyAYexfZ0YpaP39ue48xxH46WuYUqj2NvfssJYeQEJI8pAUNhhJCiTDCKRBqlgNe8NlJ7Z0DLb01HFjDSXDvvOJeaDVtZalHifyWE_ZPWMN9rYO3zLB-COUD5BVyS6NaGWYtk5IJpYfs-3G65-aCBpzEqCAugo9RjDw6GCckaAxXqmHfA75ZSyVirkdkJXVCvz96vRyh5x_lOzaT.gif"></td>\n </tr>\n </tbody>\n </table>\n <center>\n <table width="100%" align="center" style="max-width:900px; margin:0 auto; width:100%">\n <tbody>\n <tr align="center">\n </tr>\n <tr align="center">\n <td width="560" style="border-top:1px #e5e5e5 solid; padding-top:15px; padding-bottom:15px">\n <table border="0" cellspacing="0" cellpadding="0" align="center">\n <tbody>\n <tr>\n <td style="background-color:#ddd; border:1px #ddd solid; border-radius:4px; padding:3px 15px; text-align:center"><a href="https://sctrack.sendcloud.net/track/unsubscribe2.do?p=eNptTssKAjEM_JfisVua9H3zP0RKt63sYt3CPk7ivxv1KjOQZMhMckFvrHGcMc7AQdAGtEJCBKkC2hiCsRi9k0ZseQAZQ9QygtXDvIz9WIo8tZr3R5rSeepU5yZyfzAuCeyW2lYpWjvhvUAUoC2N-3qQOsD37H87UwZzwVB1Skp7byEZGEsoNVGj8JNK3PK-pnwXW11Kbv0oYqk7488X__1PS9c3Zbc_0g%3D%3D" target="_blank" rel="noopener" style="color:#a6a6a6; background:#ddd; font-size:12px; text-decoration:none">点击这里取消订阅<br>\n click to unsubscribe</a></td>\n </tr>\n </tbody>\n </table></td>\n </tr>\n </tbody>\n </table>\n </center>\n </div>\n </body>\n</html>';e=e.replace("https://pixel.xin/emailControl.php?mid=",""),e=e.replace("https://pixel.xin/hub.gif?mid=",""),e=e.replace(new RegExp("unsubscribe","g"),""),e=e.replace(/<head>[\s\S]*?<\/head>/i,""),e=e.replace(/<[^>]+>/g,""),e=e.replace(new RegExp("&nbsp;","g")," "),console.log(e)},getData(){login()},change(){nr();let e={id:"theme-hub"};l(e)},handleTest1(){},change1(){let e={id:"theme-dss"};l(e)},handleLoginHub(){localStorage.setItem("sourceApp","hub"),Ji({mobileOrEmail:"13262005357",password:"123123123"}).then((e=>{e&&(alert("登陆成功"),e.token&&(localStorage.setItem("token",e.token),Gi(e.token)))}))},handleLoginDSS(){localStorage.setItem("sourceApp","dss"),Qi({login_account:"tankangkang0147",password:"123123123"}).then((e=>{0===e.code&&(localStorage.setItem("Authorization","Bearer "+e.data.token),Gi(e.token))}))},handleGetlist(){er({page:1,aa:"1"}).then((e=>{}))},getCros(){alert(1),tr()}}},rr=ir;function or(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var ar=or(rr,o,a,!1,null,"555c635a",null),sr=ar.exports,lr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"inbox-container"},[t("div",{staticClass:"search-box"},[t("el-row",{attrs:{gutter:16}},[t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.bloggerName")))]),t("el-input",{attrs:{placeholder:e.$t("inboxMail.search.default"),clearable:""},model:{value:e.searchForm.bloggerName,callback:function(t){e.$set(e.searchForm,"bloggerName",t)},expression:"searchForm.bloggerName"}})],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.title")))]),t("el-input",{attrs:{placeholder:e.$t("inboxMail.search.default"),clearable:""},model:{value:e.searchForm.subject,callback:function(t){e.$set(e.searchForm,"subject",t)},expression:"searchForm.subject"}})],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.target")))]),t("el-input",{attrs:{placeholder:e.$t("inboxMail.search.default"),clearable:""},model:{value:e.searchForm.popularizePlanName,callback:function(t){e.$set(e.searchForm,"popularizePlanName",t)},expression:"searchForm.popularizePlanName"}})],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.tagName")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",multiple:"","collapse-tags":"",filterable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},on:{change:e.handleTagChange},model:{value:e.searchForm.selectTag,callback:function(t){e.$set(e.searchForm,"selectTag",t)},expression:"searchForm.selectTag"}},e._l(e.tags,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)])],1),t("el-row",{staticClass:"second-row",attrs:{gutter:16}},[t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.isStar")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.isStar,callback:function(t){e.$set(e.searchForm,"isStar",t)},expression:"searchForm.isStar"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.all")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.starred")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.isRead")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.isRead,callback:function(t){e.$set(e.searchForm,"isRead",t)},expression:"searchForm.isRead"}},[t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.unRead")}}),t("el-option",{attrs:{value:2,label:e.$t("inboxMail.search.read")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.isReply")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.isReply,callback:function(t){e.$set(e.searchForm,"isReply",t)},expression:"searchForm.isReply"}},[t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.replyTrue")}}),t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.replyFalse")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.replayTime")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.timeRange,callback:function(t){e.$set(e.searchForm,"timeRange",t)},expression:"searchForm.timeRange"}},[t("el-option",{attrs:{value:"1",label:e.$t("inboxMail.search.time1")}}),t("el-option",{attrs:{value:"2",label:e.$t("inboxMail.search.time2")}}),t("el-option",{attrs:{value:"3",label:e.$t("inboxMail.search.time3")}})],1)],1)])],1),t("el-row",{staticClass:"second-row last-row",attrs:{gutter:16}},[t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.sendEmail")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.sentMail,callback:function(t){e.$set(e.searchForm,"sentMail",t)},expression:"searchForm.sentMail"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.sysEmail")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.businessEmail")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-btn"},[t("el-button",{staticStyle:{width:"80px"},attrs:{size:"small",type:"primary"},on:{click:function(t){e.searchForm.currentPage=1,e.init()}}},[e._v(e._s(e.$t("inboxMail.searchButton.search")))]),t("el-button",{staticStyle:{width:"80px"},attrs:{size:"small"},on:{click:e.reset}},[e._v(e._s(e.$t("inboxMail.search.reset")))])],1)])],1)],1),t("div",{staticClass:"mail-wrap legacy relative"},[t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.init()}}},[t("el-tooltip",{staticClass:"item1",attrs:{"popper-class":"wt-tooltip-mail",content:e.$t("edm5.v1"),placement:"top"}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})])],1),t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.del()}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$t("edm5.v2"),placement:"top"}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})])],1),t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.setUnRead()}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.setUnRead"),placement:"top"}},[t("i",{staticClass:"dss-iconfont relative icon-unread mail-unread mail-status"})])],1),t("div",{staticClass:"tool-item",on:{click:e.multiReply}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.batchReply"),placement:"top"}},[t("i",{staticClass:"dss-iconfont icon-plhf"})])],1)])]),t("div",{ref:"mail",staticClass:"mail-body"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",style:{"min-height":`${e.tableHeight}px`},attrs:{data:e.tableData,"header-cell-class-name":e.headCellClass,"cell-class-name":e.cellClass,"row-class-name":e.rowClass,"row-key":e.getRowKeys},on:{"selection-change":e.switchMail,"row-contextmenu":e.rightClick}},[t("el-table-column",{attrs:{"reserve-selection":!0,type:"selection",align:"center",width:"48"}}),e._e(),t("el-table-column",{attrs:{width:"45"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("span",{on:{click:function(t){return t.stopPropagation(),e.isFavorites(n)}}},[t("i",{class:0===n.isStar?"start-icon pm-iconfont icon-star0":"start-icon pm-iconfont icon-star1 starcolor"})])]}}])}),t("el-table-column",{attrs:{width:"45"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return["1"===n.mailStatus?t("span",[t("i",{staticClass:"dss-iconfont icon-contact2",style:{color:e.primary}})]):e._e(),"2"===n.mailStatus?t("span",{on:{click:function(t){return e.changeRead(n)}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.setUnRead"),placement:"top"}},[t("i",{staticClass:"dss-iconfont relative icon-read-2 mail-read"})])],1):e._e()]}}])}),t("el-table-column",{attrs:{width:"70"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[1===n.isReply?t("span",[e._v(" "+e._s(e.$t("inboxMail.search.replyTrue"))+" ")]):t("span")]}}])}),t("el-table-column",{attrs:{width:"140"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("p",{staticClass:"beyond_eip",class:1===n.isRead?"font-bold .text-gray-700":"",on:{click:function(t){return e.skipDetail(n)}}},[e._v(" "+e._s(n.bloggerName)+" ")])]}}])}),t("el-table-column",{attrs:{width:"140"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-task flex items-center"},[""!==n.popularizePlanName&&null!==n.popularizePlanName?[t("i",{staticClass:"dss-iconfont icon-task",staticStyle:{"font-size":"22px"},style:{color:2===n.isRead?"#999999":"#FF5277"}}),t("span",{staticClass:"beyond_eip",class:1===n.isRead?"font-bold text-gray-700":"",attrs:{title:n.popularizePlanName},on:{click:function(t){return e.skipPlan(n)}}},[e._v(e._s(n.popularizePlanName))])]:t("span",[e._v(e._s(e.$t("inboxMail.search.noTask")))])],2)]}}])}),t("el-table-column",{ref:"a1",scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-main"},[1===n.isAttachment?t("i",{staticClass:"dss-iconfont icon-file-3",staticStyle:{"margin-right":"2px"}}):e._e(),t("span",{staticClass:"mail-subject beyond_eip mr8",class:1===n.isRead?"font-bold text-gray-700":"",on:{click:function(t){return e.skipDetail(n)}}},[e._v(e._s(n.subject))]),t("span",{staticClass:"mail-content beyond_eip ml6 mr16",staticStyle:{color:"#999999"},domProps:{innerHTML:e._s(e.filterHtmlTag(n.content))},on:{click:function(t){return e.skipDetail(n)}}}),t("div",{ref:"mailTagList",staticClass:"mail-tag"},e._l(n.tagList,(function(i,r){return t("div",{key:r,staticClass:"mail-tag-item inbox-item",style:{color:"#fff",background:i.tagColor},attrs:{title:i.tagName},on:{click:function(t){return e.handleBindTag(n,i)}}},[e._v(" "+e._s(i.tagName.length>6?i.tagName.slice(0,6)+" ...":i.tagName)+" "),t("i",{staticClass:"el-icon-close inbox-icon-close"})])})),0),t("div",{staticClass:"add-block"}),t("div",{staticClass:"tag-add"},[t("span",{staticClass:"tag-btn",staticStyle:{"font-size":"12px"},on:{click:function(t){return e.addMailTag(n)}}},[t("span",[e._v("+")]),e._v(" "+e._s(e.$t("inboxTable.addTag")))])])])]}}])}),t("el-table-column",{attrs:{width:"160"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("p",{staticStyle:{color:"#666666"},on:{click:function(t){return e.skipDetail(n)}}},[e._v(" "+e._s(n.createTime)+" ")])]}}])})],1)],1),t("div",{staticClass:"mail-foot mb16"},[e.tableTotal>0?t("el-pagination",{attrs:{"current-page":e.searchForm.currentPage,total:e.tableTotal,"page-size":e.searchForm.pageSize,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"update:currentPage":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:current-page":function(t){return e.$set(e.searchForm,"currentPage",t)},"current-change":e.changePage,"size-change":e.changeSize}}):e._e()],1)]),e.isShowSettag?t("AddTagsDialog",{attrs:{isShowDialog:e.isShowSettag,defaultTag:e.selectedTags},on:{updateTag:e.updateTag,closeAddTagsDialog:function(t){e.isShowSettag=!1}}}):e._e()],1)},cr=[],ur=(i(4520),i(1454),"0123456789abcdefghijklmnopqrstuvwxyz");function dr(e){return ur.charAt(e)}function hr(e,t){return e&t}function pr(e,t){return e|t}function fr(e,t){return e^t}function mr(e,t){return e&~t}function gr(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function vr(e){var t=0;while(0!=e)e&=e-1,++t;return t}var yr,br="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wr="=";function _r(e){var t,n,i="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),i+=br.charAt(n>>6)+br.charAt(63&n);t+1==e.length?(n=parseInt(e.substring(t,t+1),16),i+=br.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),i+=br.charAt(n>>2)+br.charAt((3&n)<<4));while((3&i.length)>0)i+=wr;return i}function Cr(e){var t,n="",i=0,r=0;for(t=0;t<e.length;++t){if(e.charAt(t)==wr)break;var o=br.indexOf(e.charAt(t));o<0||(0==i?(n+=dr(o>>2),r=3&o,i=1):1==i?(n+=dr(r<<2|o>>4),r=15&o,i=2):2==i?(n+=dr(r),n+=dr(o>>2),r=3&o,i=3):(n+=dr(r<<2|o>>4),n+=dr(15&o),i=0))}return 1==i&&(n+=dr(r<<2)),n}var xr,Sr={decode:function(e){var t;if(void 0===yr){var n="0123456789ABCDEF",i=" \f\n\r\t \u2028\u2029";for(yr={},t=0;t<16;++t)yr[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)yr[n.charAt(t)]=t;for(t=0;t<i.length;++t)yr[i.charAt(t)]=-1}var r=[],o=0,a=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(s=yr[s],-1!=s){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++a>=2?(r[r.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},kr={decode:function(e){var t;if(void 0===xr){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="= \f\n\r\t \u2028\u2029";for(xr=Object.create(null),t=0;t<64;++t)xr[n.charAt(t)]=t;for(xr["-"]=62,xr["_"]=63,t=0;t<i.length;++t)xr[i.charAt(t)]=-1}var r=[],o=0,a=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(s=xr[s],-1!=s){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++a>=4?(r[r.length]=o>>16,r[r.length]=o>>8&255,r[r.length]=255&o,o=0,a=0):o<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=o>>10;break;case 3:r[r.length]=o>>16,r[r.length]=o>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=kr.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return kr.decode(e)}},Er=1e13,Dr=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,i,r=this.buf,o=r.length;for(n=0;n<o;++n)i=r[n]*e+t,i<Er?t=0:(t=0|i/Er,i-=t*Er),r[n]=i;t>0&&(r[n]=t)},e.prototype.sub=function(e){var t,n,i=this.buf,r=i.length;for(t=0;t<r;++t)n=i[t]-e,n<0?(n+=Er,e=1):e=0,i[t]=n;while(0===i[i.length-1])i.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),i=t.length-2;i>=0;--i)n+=(Er+t[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*Er+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),Ar="…",Tr=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Or=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Ir(e,t){return e.length>t&&(e=e.substring(0,t)+Ar),e}var Pr,$r=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"===typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var i="",r=e;r<t;++r)if(i+=this.hexByte(this.get(r)),!0!==n)switch(15&r){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}return i},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",i=e;i<t;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",i=e;i<t;){var r=this.get(i++);n+=r<128?String.fromCharCode(r):r>191&&r<224?String.fromCharCode((31&r)<<6|63&this.get(i++)):String.fromCharCode((15&r)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,i,r="",o=e;o<t;)n=this.get(o++),i=this.get(o++),r+=String.fromCharCode(n<<8|i);return r},e.prototype.parseTime=function(e,t,n){var i=this.parseStringISO(e,t),r=(n?Tr:Or).exec(i);return r?(n&&(r[1]=+r[1],r[1]+=+r[1]<70?2e3:1900),i=r[1]+"-"+r[2]+"-"+r[3]+" "+r[4],r[5]&&(i+=":"+r[5],r[6]&&(i+=":"+r[6],r[7]&&(i+="."+r[7]))),r[8]&&(i+=" UTC","Z"!=r[8]&&(i+=r[8],r[9]&&(i+=":"+r[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(e,t){var n,i=this.get(e),r=i>127,o=r?255:0,a="";while(i==o&&++e<t)i=this.get(e);if(n=t-e,0===n)return r?-1:0;if(n>4){a=i,n<<=3;while(0==(128&(+a^o)))a=+a<<1,--n;a="("+n+" bit)\n"}r&&(i-=256);for(var s=new Dr(i),l=e+1;l<t;++l)s.mulAdd(256,this.get(l));return a+s.toString()},e.prototype.parseBitString=function(e,t,n){for(var i=this.get(e),r=(t-e-1<<3)-i,o="("+r+" bit)\n",a="",s=e+1;s<t;++s){for(var l=this.get(s),c=s==t-1?i:0,u=7;u>=c;--u)a+=l>>u&1?"1":"0";if(a.length>n)return o+Ir(a,n)}return o+a},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return Ir(this.parseStringISO(e,t),n);var i=t-e,r="("+i+" byte)\n";n/=2,i>n&&(t=e+n);for(var o=e;o<t;++o)r+=this.hexByte(this.get(o));return i>n&&(r+=Ar),r},e.prototype.parseOID=function(e,t,n){for(var i="",r=new Dr,o=0,a=e;a<t;++a){var s=this.get(a);if(r.mulAdd(128,127&s),o+=7,!(128&s)){if(""===i)if(r=r.simplify(),r instanceof Dr)r.sub(80),i="2."+r.toString();else{var l=r<80?r<40?0:1:2;i=l+"."+(r-40*l)}else i+="."+r.toString();if(i.length>n)return Ir(i,n);r=new Dr,o=0}}return o>0&&(i+=".incomplete"),i},e}(),Fr=function(){function e(e,t,n,i,r){if(!(i instanceof Br))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=i,this.sub=r}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Ir(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return Ir(this.stream.parseStringISO(t,t+n),e);case 30:return Ir(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,i=this.sub.length;n<i;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var i=0;i<n;++i)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof $r?t:new $r(t,0);var i=new $r(n),r=new Br(n),o=e.decodeLength(n),a=n.pos,s=a-i.pos,l=null,c=function(){var t=[];if(null!==o){var i=a+o;while(n.pos<i)t[t.length]=e.decode(n);if(n.pos!=i)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var r=e.decode(n);if(r.tag.isEOC())break;t[t.length]=r}o=a-n.pos}catch(Jd){throw new Error("Exception while decoding undefined length content: "+Jd)}return t};if(r.tagConstructed)l=c();else if(r.isUniversal()&&(3==r.tagNumber||4==r.tagNumber))try{if(3==r.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(Jd){l=null}if(null===l){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new e(i,s,o,r,l)},e}(),Br=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=0!==(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new Dr;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),Mr=0xdeadbeefcafe,Nr=15715070==(16777215&Mr),Rr=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],jr=(1<<26)/Rr[Rr.length-1],Lr=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,i=(1<<t)-1,r=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0){s<this.DB&&(n=this[a]>>s)>0&&(r=!0,o=dr(n));while(a>=0)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&i,s<=0&&(s+=this.DB,--a)),n>0&&(r=!0),r&&(o+=dr(n))}return r?o:"0"},e.prototype.negate=function(){var t=Wr();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+eo(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=Wr();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new Vr(t):new Hr(t),this.exp(e,n)},e.prototype.clone=function(){var e=Wr();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,i=this.DB-e*this.DB%8,r=0;if(e-- >0){i<this.DB&&(n=this[e]>>i)!=(this.s&this.DM)>>i&&(t[r++]=n|this.s<<this.DB-i);while(e>=0)i<8?(n=(this[e]&(1<<i)-1)<<8-i,n|=this[--e]>>(i+=this.DB-8)):(n=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(r>0||n!=this.s)&&(t[r++]=n)}return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=Wr();return this.bitwiseTo(e,hr,t),t},e.prototype.or=function(e){var t=Wr();return this.bitwiseTo(e,pr,t),t},e.prototype.xor=function(e){var t=Wr();return this.bitwiseTo(e,fr,t),t},e.prototype.andNot=function(e){var t=Wr();return this.bitwiseTo(e,mr,t),t},e.prototype.not=function(){for(var e=Wr(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=Wr();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=Wr();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+gr(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=vr(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,pr)},e.prototype.clearBit=function(e){return this.changeBit(e,mr)},e.prototype.flipBit=function(e){return this.changeBit(e,fr)},e.prototype.add=function(e){var t=Wr();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=Wr();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=Wr();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=Wr();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=Wr();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=Wr(),n=Wr();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,i,r=e.bitLength(),o=Qr(1);if(r<=0)return o;n=r<18?1:r<48?3:r<144?4:r<768?5:6,i=r<8?new Vr(t):t.isEven()?new Ur(t):new Hr(t);var a=[],s=3,l=n-1,c=(1<<n)-1;if(a[1]=i.convert(this),n>1){var u=Wr();i.sqrTo(a[1],u);while(s<=c)a[s]=Wr(),i.mulTo(u,a[s-2],a[s]),s+=2}var d,h,p=e.t-1,f=!0,m=Wr();r=eo(e[p])-1;while(p>=0){r>=l?d=e[p]>>r-l&c:(d=(e[p]&(1<<r+1)-1)<<l-r,p>0&&(d|=e[p-1]>>this.DB+r-l)),s=n;while(0==(1&d))d>>=1,--s;if((r-=s)<0&&(r+=this.DB,--p),f)a[d].copyTo(o),f=!1;else{while(s>1)i.sqrTo(o,m),i.sqrTo(m,o),s-=2;s>0?i.sqrTo(o,m):(h=o,o=m,m=h),i.mulTo(m,a[d],o)}while(p>=0&&0==(e[p]&1<<r))i.sqrTo(o,m),h=o,o=m,m=h,--r<0&&(r=this.DB-1,--p)}return i.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;var i=t.clone(),r=this.clone(),o=Qr(1),a=Qr(0),s=Qr(0),l=Qr(1);while(0!=i.signum()){while(i.isEven())i.rShiftTo(1,i),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);while(r.isEven())r.rShiftTo(1,r),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(t,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);i.compareTo(r)>=0?(i.subTo(r,i),n&&o.subTo(s,o),a.subTo(l,a)):(r.subTo(i,r),n&&s.subTo(o,s),l.subTo(a,l))}return 0!=r.compareTo(e.ONE)?e.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},e.prototype.pow=function(e){return this.exp(e,new zr)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var i=t;t=n,n=i}var r=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;r<o&&(o=r),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));while(t.signum()>0)(r=t.getLowestSetBit())>0&&t.rShiftTo(r,t),(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=Rr[Rr.length-1]){for(t=0;t<Rr.length;++t)if(n[0]==Rr[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<Rr.length){var i=Rr[t],r=t+1;while(r<Rr.length&&i<jr)i*=Rr[r++];i=n.modInt(i);while(t<r)if(i%Rr[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var i;if(16==n)i=4;else if(8==n)i=3;else if(256==n)i=8;else if(2==n)i=1;else if(32==n)i=5;else{if(4!=n)return void this.fromRadix(t,n);i=2}this.t=0,this.s=0;var r=t.length,o=!1,a=0;while(--r>=0){var s=8==i?255&+t[r]:Jr(t,r);s<0?"-"==t.charAt(r)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+i>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,a+=i,a>=this.DB&&(a-=this.DB))}8==i&&0!=(128&+t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,i=this.DB-n,r=(1<<i)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>i|a,a=(this[s]&r)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var i=e%this.DB,r=this.DB-i,o=(1<<i)-1;t[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<r,t[a-n]=this[a]>>i;i>0&&(t[this.t-n-1]|=(this.s&o)<<r),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){var n=0,i=0,r=Math.min(e.t,this.t);while(n<r)i+=this[n]-e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){i-=e.s;while(n<this.t)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{i+=this.s;while(n<e.t)i-=e[n],t[n++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:i>0&&(t[n++]=i),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var i=this.abs(),r=t.abs(),o=i.t;n.t=o+r.t;while(--o>=0)n[o]=0;for(o=0;o<r.t;++o)n[o+i.t]=i.am(0,r[o],n,o,0,i.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e[n]=0;for(n=0;n<t.t-1;++n){var i=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,i,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,i){var r=t.abs();if(!(r.t<=0)){var o=this.abs();if(o.t<r.t)return null!=n&&n.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=Wr());var a=Wr(),s=this.s,l=t.s,c=this.DB-eo(r[r.t-1]);c>0?(r.lShiftTo(c,a),o.lShiftTo(c,i)):(r.copyTo(a),o.copyTo(i));var u=a.t,d=a[u-1];if(0!=d){var h=d*(1<<this.F1)+(u>1?a[u-2]>>this.F2:0),p=this.FV/h,f=(1<<this.F1)/h,m=1<<this.F2,g=i.t,v=g-u,y=null==n?Wr():n;a.dlShiftTo(v,y),i.compareTo(y)>=0&&(i[i.t++]=1,i.subTo(y,i)),e.ONE.dlShiftTo(u,y),y.subTo(a,a);while(a.t<u)a[a.t++]=0;while(--v>=0){var b=i[--g]==d?this.DM:Math.floor(i[g]*p+(i[g-1]+m)*f);if((i[g]+=a.am(0,b,i,v,0,u))<b){a.dlShiftTo(v,y),i.subTo(y,i);while(i[g]<--b)i.subTo(y,i)}}null!=n&&(i.drShiftTo(u,n),s!=l&&e.ZERO.subTo(n,n)),i.t=u,i.clamp(),c>0&&i.rShiftTo(c,i),s<0&&e.ZERO.subTo(i,i)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var i=Wr(),r=Wr(),o=n.convert(this),a=eo(t)-1;o.copyTo(i);while(--a>=0)if(n.sqrTo(i,r),(t&1<<a)>0)n.mulTo(r,o,i);else{var s=i;i=r,r=s}return n.revert(i)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=Qr(n),r=Wr(),o=Wr(),a="";this.divRemTo(i,r,o);while(r.signum()>0)a=(n+o.intValue()).toString(e).substr(1)+a,r.divRemTo(i,r,o);return o.intValue().toString(e)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var i=this.chunkSize(n),r=Math.pow(n,i),o=!1,a=0,s=0,l=0;l<t.length;++l){var c=Jr(t,l);c<0?"-"==t.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+c,++a>=i&&(this.dMultiply(r),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,i){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),pr,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(n))this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this)}else{var r=[],o=7&t;r.length=1+(t>>3),n.nextBytes(r),o>0?r[0]&=(1<<o)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(e,t,n){var i,r,o=Math.min(e.t,this.t);for(i=0;i<o;++i)n[i]=t(this[i],e[i]);if(e.t<this.t){for(r=e.s&this.DM,i=o;i<this.t;++i)n[i]=t(this[i],r);n.t=this.t}else{for(r=this.s&this.DM,i=o;i<e.t;++i)n[i]=t(r,e[i]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var i=e.ONE.shiftLeft(t);return this.bitwiseTo(i,n,i),i},e.prototype.addTo=function(e,t){var n=0,i=0,r=Math.min(e.t,this.t);while(n<r)i+=this[n]+e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){i+=e.s;while(n<this.t)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{i+=this.s;while(n<e.t)i+=e[n],t[n++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var i=Math.min(this.t+e.t,t);n.s=0,n.t=i;while(i>0)n[--i]=0;for(var r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var i=n.t=this.t+e.t-t;n.s=0;while(--i>=0)n[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)n[this.t+i-t]=this.am(t-i,e[i],n,0,0,this.t+i-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(t*n+this[i])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),i=n.getLowestSetBit();if(i<=0)return!1;var r=n.shiftRight(i);t=t+1>>1,t>Rr.length&&(t=Rr.length);for(var o=Wr(),a=0;a<t;++a){o.fromInt(Rr[Math.floor(Math.random()*Rr.length)]);var s=o.modPow(r,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(n)){var l=1;while(l++<i&&0!=s.compareTo(n))if(s=s.modPowInt(2,this),0==s.compareTo(e.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=Wr();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(n.compareTo(i)<0){var r=n;n=i,i=r}var o=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0)t(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(s,0):(a>0&&i.lShiftTo(a,i),setTimeout((function(){t(i)}),0))};setTimeout(s,10)}},e.prototype.fromNumberAsync=function(t,n,i,r){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),pr,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout((function(){r()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],l=7&t;s.length=1+(t>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},e}(),zr=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),Vr=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Hr=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=Wr();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Lr.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=Wr();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],i=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e[n]+=this.m.am(0,i,e,t,0,this.m.t);while(e[n]>=e.DV)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Ur=function(){function e(e){this.m=e,this.r2=Wr(),this.q3=Wr(),Lr.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=Wr();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function Wr(){return new Lr(null)}function qr(e,t){return new Lr(e,t)}var Yr="undefined"!==typeof navigator;Yr&&Nr&&"Microsoft Internet Explorer"==navigator.appName?(Lr.prototype.am=function(e,t,n,i,r,o){var a=32767&t,s=t>>15;while(--o>=0){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*a;l=a*l+((32767&u)<<15)+n[i]+(1073741823&r),r=(l>>>30)+(u>>>15)+s*c+(r>>>30),n[i++]=1073741823&l}return r},Pr=30):Yr&&Nr&&"Netscape"!=navigator.appName?(Lr.prototype.am=function(e,t,n,i,r,o){while(--o>=0){var a=t*this[e++]+n[i]+r;r=Math.floor(a/67108864),n[i++]=67108863&a}return r},Pr=26):(Lr.prototype.am=function(e,t,n,i,r,o){var a=16383&t,s=t>>14;while(--o>=0){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*a;l=a*l+((16383&u)<<14)+n[i]+r,r=(l>>28)+(u>>14)+s*c,n[i++]=268435455&l}return r},Pr=28),Lr.prototype.DB=Pr,Lr.prototype.DM=(1<<Pr)-1,Lr.prototype.DV=1<<Pr;var Gr=52;Lr.prototype.FV=Math.pow(2,Gr),Lr.prototype.F1=Gr-Pr,Lr.prototype.F2=2*Pr-Gr;var Kr,Xr,Zr=[];for(Kr="0".charCodeAt(0),Xr=0;Xr<=9;++Xr)Zr[Kr++]=Xr;for(Kr="a".charCodeAt(0),Xr=10;Xr<36;++Xr)Zr[Kr++]=Xr;for(Kr="A".charCodeAt(0),Xr=10;Xr<36;++Xr)Zr[Kr++]=Xr;function Jr(e,t){var n=Zr[e.charCodeAt(t)];return null==n?-1:n}function Qr(e){var t=Wr();return t.fromInt(e),t}function eo(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}Lr.ZERO=Qr(0),Lr.ONE=Qr(1);var to=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,i;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();function no(){return new to}var io,ro,oo=256,ao=null;if(null==ao){ao=[],ro=0;var so=void 0;if("undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues){var lo=new Uint32Array(256);for(window.crypto.getRandomValues(lo),so=0;so<lo.length;++so)ao[ro++]=255&lo[so]}var co=0,uo=function(e){if(co=co||0,co>=256||ro>=oo)window.removeEventListener?window.removeEventListener("mousemove",uo,!1):window.detachEvent&&window.detachEvent("onmousemove",uo);else try{var t=e.x+e.y;ao[ro++]=255&t,co+=1}catch(Jd){}};"undefined"!==typeof window&&(window.addEventListener?window.addEventListener("mousemove",uo,!1):window.attachEvent&&window.attachEvent("onmousemove",uo))}function ho(){if(null==io){io=no();while(ro<oo){var e=Math.floor(65536*Math.random());ao[ro++]=255&e}for(io.init(ao),ro=0;ro<ao.length;++ro)ao[ro]=0;ro=0}return io.next()}var po=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=ho()},e}();function fo(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,i="",r=0;r<n;r+=2)i+="ff";var o="0001"+i+"00"+e;return qr(o,16)}function mo(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;var n=[],i=e.length-1;while(i>=0&&t>0){var r=e.charCodeAt(i--);r<128?n[--t]=r:r>127&&r<2048?(n[--t]=63&r|128,n[--t]=r>>6|192):(n[--t]=63&r|128,n[--t]=r>>6&63|128,n[--t]=r>>12|224)}n[--t]=0;var o=new po,a=[];while(t>2){a[0]=0;while(0==a[0])o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new Lr(n)}var go=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);while(t.compareTo(n)<0)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=qr(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=mo(e,t);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;for(var r=i.toString(16),o=r.length,a=0;a<2*t-o;a++)r="0"+r;return r},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=qr(e,16),this.e=parseInt(t,16),this.d=qr(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,i,r,o,a,s){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=qr(e,16),this.e=parseInt(t,16),this.d=qr(n,16),this.p=qr(i,16),this.q=qr(r,16),this.dmp1=qr(o,16),this.dmq1=qr(a,16),this.coeff=qr(s,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new po,i=e>>1;this.e=parseInt(t,16);for(var r=new Lr(t,16);;){for(;;)if(this.p=new Lr(e-i,1,n),0==this.p.subtract(Lr.ONE).gcd(r).compareTo(Lr.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new Lr(i,1,n),0==this.q.subtract(Lr.ONE).gcd(r).compareTo(Lr.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(Lr.ONE),s=this.q.subtract(Lr.ONE),l=a.multiply(s);if(0==l.gcd(r).compareTo(Lr.ONE)){this.n=this.p.multiply(this.q),this.d=r.modInverse(l),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=qr(e,16),n=this.doPrivate(t);return null==n?null:vo(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var i=new po,r=e>>1;this.e=parseInt(t,16);var o=new Lr(t,16),a=this,s=function(){var t=function(){if(a.p.compareTo(a.q)<=0){var e=a.p;a.p=a.q,a.q=e}var t=a.p.subtract(Lr.ONE),i=a.q.subtract(Lr.ONE),r=t.multiply(i);0==r.gcd(o).compareTo(Lr.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(r),a.dmp1=a.d.mod(t),a.dmq1=a.d.mod(i),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){a.q=Wr(),a.q.fromNumberAsync(r,1,i,(function(){a.q.subtract(Lr.ONE).gcda(o,(function(e){0==e.compareTo(Lr.ONE)&&a.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(l,0)}))}))},c=function(){a.p=Wr(),a.p.fromNumberAsync(e-r,1,i,(function(){a.p.subtract(Lr.ONE).gcda(o,(function(e){0==e.compareTo(Lr.ONE)&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(s,0)},e.prototype.sign=function(e,t,n){var i=bo(n),r=i+t(e).toString(),o=fo(r,this.n.bitLength()/4);if(null==o)return null;var a=this.doPrivate(o);if(null==a)return null;var s=a.toString(16);return 0==(1&s.length)?s:"0"+s},e.prototype.verify=function(e,t,n){var i=qr(t,16),r=this.doPublic(i);if(null==r)return null;var o=r.toString(16).replace(/^1f+00/,""),a=wo(o);return a==n(e).toString()},e}();function vo(e,t){var n=e.toByteArray(),i=0;while(i<n.length&&0==n[i])++i;if(n.length-i!=t-1||2!=n[i])return null;++i;while(0!=n[i])if(++i>=n.length)return null;var r="";while(++i<n.length){var o=255&n[i];o<128?r+=String.fromCharCode(o):o>191&&o<224?(r+=String.fromCharCode((31&o)<<6|63&n[i+1]),++i):(r+=String.fromCharCode((15&o)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return r}var yo={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function bo(e){return yo[e]||""}function wo(e){for(var t in yo)if(yo.hasOwnProperty(t)){var n=yo[t],i=n.length;if(e.substr(0,i)==n)return e.substr(i)}return e}
67
+ function Vi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var Hi={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ui(e,t){function n(n,i,r){if("undefined"!==typeof document){r=Vi({},t,r),"number"===typeof r.expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in r)r[a]&&(o+="; "+a,!0!==r[a]&&(o+="="+r[a].split(";")[0]));return document.cookie=n+"="+e.write(i,n)+o}}function i(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],i={},r=0;r<n.length;r++){var o=n[r].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(i[s]=e.read(a,s),t===s)break}catch(Jd){}}return t?i[t]:i}}return Object.create({set:n,get:i,remove:function(e,t){n(e,"",Vi({},t,{expires:-1}))},withAttributes:function(e){return Ui(this.converter,Vi({},this.attributes,e))},withConverter:function(e){return Ui(Vi({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Wi=Ui(Hi,{path:"/"});const qi="userToken";function Yi(){return Wi.get(qi)}function Gi(e){return Wi.set(qi,e)}const Ki=Sn.create({baseURL:"https://dss-apis.kuku.info"});Ki.interceptors.request.use((e=>{if(e.data)for(const t in e.data)Zi(e.data[t])&&delete e.data[t];if(e.params)for(const t in e.params)Zi(e.params[t])&&delete e.params[t];return zi.getters.token&&(e.headers["Authorization"]="Bearer "+Yi()),e}),(e=>Promise.reject(e))),Ki.interceptors.response.use((e=>{const t=e.data;return Promise.resolve(t)}),(e=>(100003===e.response.data.code?(0,Un.Message)({message:e.response.data.message,type:"error",duration:5e3}):(0,Un.Message)({message:e.response.data.message?e.response.data.message:"网络错误,请稍后再试~",type:"error",duration:5e3}),Promise.reject(e))));var Xi=Ki;function Zi(e){return"undefined"===typeof e||null===e||""===e}async function Ji(e){let t=await Hn("https://k8s-api.wotohub.com/user/userSystem/loginWithPassword",e);return t.data}function Qi(e){return Xi({url:"https://dss-apis.kuku.info/user/account/password",method:"POST",data:e})}async function er(e){let t=await Hn("https://api.kuku.info/koc/task/search",e);return t.data}async function tr(){let e=await Hn("http://192.168.4.10:9528/writeEmail",{});return e.data}async function nr(e){let t={sourceApp:"hub",bloggerName:"",subject:"",taskName:"",type:"",currentPage:1,pageSize:10},n=await Hn("http://192.168.4.10:8080/edm/mail/selOutbox",t);return n.data}var ir={name:"edm-button",created(){},methods:{test(){let e='<html>\n <head>\n <meta http-equiv="Content-Type" content="text/html; charset=gb2312">\n <style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>\n </head>\n <body dir="ltr">\n <div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">\n This is a great project. I like it very much. Can you tell me the specific way of cooperation?\n </div>\n <div id="appendonsend"></div>\n <hr style="display:inline-block;width:98%" tabindex="-1">\n <div id="divRplyFwdMsg" dir="ltr">\n <font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> e9f2b200-3423-11ef-85f0-525400450766@viralpromotors.com &lt;e9f2b200-3423-11ef-85f0-525400450766@viralpromotors.com&gt; 代表 marywrogers@viralpromotors.com &lt;marywrogers@viralpromotors.com&gt;<br><b>发送时间:</b> 2024年6月27日 9:23<br><b>收件人:</b> lectmaha &lt;lectmaha@hotmail.com&gt;<br><b>主题:</b> Business inquiry-Hisense wants collaboration-allhostaria</font>\n <div>\n &nbsp;\n </div>\n </div>\n <div>\n <p style="text-align:left"><span style="font-size:14px">Hi allhostaria,</span></p>\n <p style="text-align:left"><span style="font-size:14px">Hope this email finds you well.</span></p>\n <p style="text-align:left"><span style="font-size:14px">This is Anna from Wotokol, a famous influencer marketing company that connects international influencers and world-famous brands from China.</span></p>\n <p style="text-align:left"><span style="font-size:14px">You do really great content on your channel and here\'s a campaign that I\'d like to invite you to join.</span></p>\n <p style="text-align:left"><br></p>\n <p style="text-align:left"><span style="font-size:14px">Here is the info about this activity:</span></p>\n <p style="text-align:left"><span style="font-size:14px">Brand: Hisense &nbsp;</span><a href="https://sctrack.sendcloud.net/track/click2/eNolj8FuwyAQRP8FpTeC2TWsza39jipCeE1qK8RUAZ-q_ntwoj2sZuZpR_uNoyU7SCGkgAGcsWB6bONB9w7JO2cJ_ThoqwqfQXvnjfZA5rxuU963WZ9S5HoPS_hccttrUpzvQmopllp_y0f_1XU_KU8hqWUtcSvxALoXcQ2pxFZtBjWOClGBoSbrYz_cI2AmRDMb5wA0BeoBeQIOzMhXMm-qcH0Evql2feaU91ltsQr59y_fXzTo8gRda0GI.html" target="_blank"><span style="color:rgb(120,6,80); font-size:14px">https://global.hisense.com/</span></a></p>\n <p style="text-align:left"><span style="font-size:14px">Product models for different countries:</span></p>\n <p style="text-align:left"><span style="font-size:14px"><u>US:</u></span><span style="font-size:14px"> Hisense 100" Class U76 4K Google TV 100U76N Hisense (hisense-usa.com), Hisense 100" L9 Series TriChroma Laser TV (100L9H-DLT100C) (hisense-usa.com)</span></p>\n <p style="text-align:left"><span style="font-size:14px"><u>UK:</u></span><span style="font-size:14px"> Mini-LED Smart TV - 100U7KQTUK - Hisense, 4K Smart Laser TV - 120L9HTUKA - Hisense</span></p>\n <p style="text-align:left"><span style="font-size:14px">Deliverables: one 5-8 mins dedicated YTB video + video commercial usage rights for 3 months</span></p>\n <p style="text-align:left"><span style="font-size:14px">Post time: July 7-July 14, 2024</span></p>\n <p style="text-align:left"><br></p>\n <p style="text-align:left"><span style="font-size:14px">One of the products will be given to you, please let me know your rate for this collab if you\'re interested.</span></p>\n <p style="text-align:left"><span style="font-size:14px">Please feel free to contact me if you have any questions, hope to hear from you soon.</span></p>\n <p style="text-align:left"><br></p>\n <p style="text-align:left"><span style="font-size:14px">Best Regards,</span></p>\n <p style="text-align:left"><span style="font-size:14px">Anna Chen</span></p>\n <div style="display:flex; overflow-x:auto"></div>\n <div>\n <br><img width="1px" height="1px" src="https://pixel.xin/collect.gif?trace_id=pixel_667cbf27e4b0b64ffa8b634c">\n </div>\n <table cellpadding="0" cellspacing="0" border="0" width="100%">\n <tbody>\n <tr>\n <td align="center" style="overflow:hidden; font-size:0; padding:0; margin:0; line-height:0"><img alt="" style="width:0; height:0" src="https://sctrack.sendcloud.net/track/open2/eNolTs0KwyAYexfZ0YpaP39ue48xxH46WuYUqj2NvfssJYeQEJI8pAUNhhJCiTDCKRBqlgNe8NlJ7Z0DLb01HFjDSXDvvOJeaDVtZalHifyWE_ZPWMN9rYO3zLB-COUD5BVyS6NaGWYtk5IJpYfs-3G65-aCBpzEqCAugo9RjDw6GCckaAxXqmHfA75ZSyVirkdkJXVCvz96vRyh5x_lOzaT.gif"></td>\n </tr>\n </tbody>\n </table>\n <center>\n <table width="100%" align="center" style="max-width:900px; margin:0 auto; width:100%">\n <tbody>\n <tr align="center">\n </tr>\n <tr align="center">\n <td width="560" style="border-top:1px #e5e5e5 solid; padding-top:15px; padding-bottom:15px">\n <table border="0" cellspacing="0" cellpadding="0" align="center">\n <tbody>\n <tr>\n <td style="background-color:#ddd; border:1px #ddd solid; border-radius:4px; padding:3px 15px; text-align:center"><a href="https://sctrack.sendcloud.net/track/unsubscribe2.do?p=eNptTssKAjEM_JfisVua9H3zP0RKt63sYt3CPk7ivxv1KjOQZMhMckFvrHGcMc7AQdAGtEJCBKkC2hiCsRi9k0ZseQAZQ9QygtXDvIz9WIo8tZr3R5rSeepU5yZyfzAuCeyW2lYpWjvhvUAUoC2N-3qQOsD37H87UwZzwVB1Skp7byEZGEsoNVGj8JNK3PK-pnwXW11Kbv0oYqk7488X__1PS9c3Zbc_0g%3D%3D" target="_blank" rel="noopener" style="color:#a6a6a6; background:#ddd; font-size:12px; text-decoration:none">点击这里取消订阅<br>\n click to unsubscribe</a></td>\n </tr>\n </tbody>\n </table></td>\n </tr>\n </tbody>\n </table>\n </center>\n </div>\n </body>\n</html>';e=e.replace("https://pixel.xin/emailControl.php?mid=",""),e=e.replace("https://pixel.xin/hub.gif?mid=",""),e=e.replace(new RegExp("unsubscribe","g"),""),e=e.replace(/<head>[\s\S]*?<\/head>/i,""),e=e.replace(/<[^>]+>/g,""),e=e.replace(new RegExp("&nbsp;","g")," "),console.log(e)},getData(){login()},change(){nr();let e={id:"theme-hub"};l(e)},handleTest1(){},change1(){let e={id:"theme-dss"};l(e)},handleLoginHub(){localStorage.setItem("sourceApp","hub"),Ji({mobileOrEmail:"18270829507",password:"tm123456789"}).then((e=>{e&&(alert("登陆成功"),e.token&&(localStorage.setItem("token",e.token),Gi(e.token)))}))},handleLoginDSS(){localStorage.setItem("sourceApp","dss"),Qi({login_account:"tankangkang0147",password:"123123123"}).then((e=>{0===e.code&&(localStorage.setItem("Authorization","Bearer "+e.data.token),Gi(e.token))}))},handleGetlist(){er({page:1,aa:"1"}).then((e=>{}))},getCros(){alert(1),tr()}}},rr=ir;function or(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var ar=or(rr,o,a,!1,null,"64f9b484",null),sr=ar.exports,lr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"inbox-container"},[t("div",{staticClass:"search-box"},[t("el-row",{attrs:{gutter:16}},[t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.bloggerName")))]),t("el-input",{attrs:{placeholder:e.$t("inboxMail.search.default"),clearable:""},model:{value:e.searchForm.bloggerName,callback:function(t){e.$set(e.searchForm,"bloggerName",t)},expression:"searchForm.bloggerName"}})],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.title")))]),t("el-input",{attrs:{placeholder:e.$t("inboxMail.search.default"),clearable:""},model:{value:e.searchForm.subject,callback:function(t){e.$set(e.searchForm,"subject",t)},expression:"searchForm.subject"}})],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.target")))]),t("el-input",{attrs:{placeholder:e.$t("inboxMail.search.default"),clearable:""},model:{value:e.searchForm.popularizePlanName,callback:function(t){e.$set(e.searchForm,"popularizePlanName",t)},expression:"searchForm.popularizePlanName"}})],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.tagName")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",multiple:"","collapse-tags":"",filterable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},on:{change:e.handleTagChange},model:{value:e.searchForm.selectTag,callback:function(t){e.$set(e.searchForm,"selectTag",t)},expression:"searchForm.selectTag"}},e._l(e.tags,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)])],1),t("el-row",{staticClass:"second-row",attrs:{gutter:16}},[t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.isStar")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.isStar,callback:function(t){e.$set(e.searchForm,"isStar",t)},expression:"searchForm.isStar"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.all")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.starred")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.isRead")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.isRead,callback:function(t){e.$set(e.searchForm,"isRead",t)},expression:"searchForm.isRead"}},[t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.unRead")}}),t("el-option",{attrs:{value:2,label:e.$t("inboxMail.search.read")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.isReply")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.isReply,callback:function(t){e.$set(e.searchForm,"isReply",t)},expression:"searchForm.isReply"}},[t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.replyTrue")}}),t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.replyFalse")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.replayTime")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.timeRange,callback:function(t){e.$set(e.searchForm,"timeRange",t)},expression:"searchForm.timeRange"}},[t("el-option",{attrs:{value:"1",label:e.$t("inboxMail.search.time1")}}),t("el-option",{attrs:{value:"2",label:e.$t("inboxMail.search.time2")}}),t("el-option",{attrs:{value:"3",label:e.$t("inboxMail.search.time3")}})],1)],1)])],1),t("el-row",{staticClass:"second-row last-row",attrs:{gutter:16}},[t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-search-item"},[t("span",[e._v(e._s(e.$t("inboxMail.search.sendEmail")))]),t("el-select",{staticClass:"normal-select",attrs:{clearable:"",placeholder:e.$t("inboxMail.search.defaultSelect")},model:{value:e.searchForm.sentMail,callback:function(t){e.$set(e.searchForm,"sentMail",t)},expression:"searchForm.sentMail"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.sysEmail")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.businessEmail")}})],1)],1)]),t("el-col",{attrs:{span:6}},[t("div",{staticClass:"blogger-btn"},[t("el-button",{staticStyle:{width:"80px"},attrs:{size:"small",type:"primary"},on:{click:function(t){e.searchForm.currentPage=1,e.init()}}},[e._v(e._s(e.$t("inboxMail.searchButton.search")))]),t("el-button",{staticStyle:{width:"80px"},attrs:{size:"small"},on:{click:e.reset}},[e._v(e._s(e.$t("inboxMail.search.reset")))])],1)])],1)],1),t("div",{staticClass:"mail-wrap legacy relative"},[t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.init()}}},[t("el-tooltip",{staticClass:"item1",attrs:{"popper-class":"wt-tooltip-mail",content:e.$t("edm5.v1"),placement:"top"}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})])],1),t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.del()}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$t("edm5.v2"),placement:"top"}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})])],1),t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.setUnRead()}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.setUnRead"),placement:"top"}},[t("i",{staticClass:"dss-iconfont relative icon-unread mail-unread mail-status"})])],1),t("div",{staticClass:"tool-item",on:{click:e.multiReply}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.batchReply"),placement:"top"}},[t("i",{staticClass:"dss-iconfont icon-plhf"})])],1)])]),t("div",{ref:"mail",staticClass:"mail-body"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",style:{"min-height":`${e.tableHeight}px`},attrs:{data:e.tableData,"header-cell-class-name":e.headCellClass,"cell-class-name":e.cellClass,"row-class-name":e.rowClass,"row-key":e.getRowKeys},on:{"selection-change":e.switchMail,"row-contextmenu":e.rightClick}},[t("el-table-column",{attrs:{"reserve-selection":!0,type:"selection",align:"center",width:"48"}}),e._e(),t("el-table-column",{attrs:{width:"45"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("span",{on:{click:function(t){return t.stopPropagation(),e.isFavorites(n)}}},[t("i",{class:0===n.isStar?"start-icon pm-iconfont icon-star0":"start-icon pm-iconfont icon-star1 starcolor"})])]}}])}),t("el-table-column",{attrs:{width:"45"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return["1"===n.mailStatus?t("span",[t("i",{staticClass:"dss-iconfont icon-contact2",style:{color:e.primary}})]):e._e(),"2"===n.mailStatus?t("span",{on:{click:function(t){return e.changeRead(n)}}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.$i18n.t("inboxMail.search.setUnRead"),placement:"top"}},[t("i",{staticClass:"dss-iconfont relative icon-read-2 mail-read"})])],1):e._e()]}}])}),t("el-table-column",{attrs:{width:"70"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[1===n.isReply?t("span",[e._v(" "+e._s(e.$t("inboxMail.search.replyTrue"))+" ")]):t("span")]}}])}),t("el-table-column",{attrs:{width:"140"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("p",{staticClass:"beyond_eip",class:1===n.isRead?"font-bold .text-gray-700":"",on:{click:function(t){return e.skipDetail(n)}}},[e._v(" "+e._s(n.bloggerName)+" ")])]}}])}),t("el-table-column",{attrs:{width:"140"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-task flex items-center"},[""!==n.popularizePlanName&&null!==n.popularizePlanName?[t("i",{staticClass:"dss-iconfont icon-task",staticStyle:{"font-size":"22px"},style:{color:2===n.isRead?"#999999":"#FF5277"}}),t("span",{staticClass:"beyond_eip",class:1===n.isRead?"font-bold text-gray-700":"",attrs:{title:n.popularizePlanName},on:{click:function(t){return e.skipPlan(n)}}},[e._v(e._s(n.popularizePlanName))])]:t("span",[e._v(e._s(e.$t("inboxMail.search.noTask")))])],2)]}}])}),t("el-table-column",{ref:"a1",scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-main"},[1===n.isAttachment?t("i",{staticClass:"dss-iconfont icon-file-3",staticStyle:{"margin-right":"2px"}}):e._e(),t("span",{staticClass:"mail-subject beyond_eip mr8",class:1===n.isRead?"font-bold text-gray-700":"",on:{click:function(t){return e.skipDetail(n)}}},[e._v(e._s(n.subject))]),t("span",{staticClass:"mail-content beyond_eip ml6 mr16",staticStyle:{color:"#999999"},domProps:{innerHTML:e._s(e.filterHtmlTag(n.content))},on:{click:function(t){return e.skipDetail(n)}}}),t("div",{ref:"mailTagList",staticClass:"mail-tag"},e._l(n.tagList,(function(i,r){return t("div",{key:r,staticClass:"mail-tag-item inbox-item",style:{color:"#fff",background:i.tagColor},attrs:{title:i.tagName},on:{click:function(t){return e.handleBindTag(n,i)}}},[e._v(" "+e._s(i.tagName.length>6?i.tagName.slice(0,6)+" ...":i.tagName)+" "),t("i",{staticClass:"el-icon-close inbox-icon-close"})])})),0),t("div",{staticClass:"add-block"}),t("div",{staticClass:"tag-add"},[t("span",{staticClass:"tag-btn",staticStyle:{"font-size":"12px"},on:{click:function(t){return e.addMailTag(n)}}},[t("span",[e._v("+")]),e._v(" "+e._s(e.$t("inboxTable.addTag")))])])])]}}])}),t("el-table-column",{attrs:{width:"160"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("p",{staticStyle:{color:"#666666"},on:{click:function(t){return e.skipDetail(n)}}},[e._v(" "+e._s(n.createTime)+" ")])]}}])})],1)],1),t("div",{staticClass:"mail-foot mb16"},[e.tableTotal>0?t("el-pagination",{attrs:{"current-page":e.searchForm.currentPage,total:e.tableTotal,"page-size":e.searchForm.pageSize,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"update:currentPage":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:current-page":function(t){return e.$set(e.searchForm,"currentPage",t)},"current-change":e.changePage,"size-change":e.changeSize}}):e._e()],1)]),e.isShowSettag?t("AddTagsDialog",{attrs:{isShowDialog:e.isShowSettag,defaultTag:e.selectedTags},on:{updateTag:e.updateTag,closeAddTagsDialog:function(t){e.isShowSettag=!1}}}):e._e()],1)},cr=[],ur=(i(4520),i(1454),"0123456789abcdefghijklmnopqrstuvwxyz");function dr(e){return ur.charAt(e)}function hr(e,t){return e&t}function pr(e,t){return e|t}function fr(e,t){return e^t}function mr(e,t){return e&~t}function gr(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function vr(e){var t=0;while(0!=e)e&=e-1,++t;return t}var yr,br="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wr="=";function _r(e){var t,n,i="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),i+=br.charAt(n>>6)+br.charAt(63&n);t+1==e.length?(n=parseInt(e.substring(t,t+1),16),i+=br.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),i+=br.charAt(n>>2)+br.charAt((3&n)<<4));while((3&i.length)>0)i+=wr;return i}function Cr(e){var t,n="",i=0,r=0;for(t=0;t<e.length;++t){if(e.charAt(t)==wr)break;var o=br.indexOf(e.charAt(t));o<0||(0==i?(n+=dr(o>>2),r=3&o,i=1):1==i?(n+=dr(r<<2|o>>4),r=15&o,i=2):2==i?(n+=dr(r),n+=dr(o>>2),r=3&o,i=3):(n+=dr(r<<2|o>>4),n+=dr(15&o),i=0))}return 1==i&&(n+=dr(r<<2)),n}var xr,Sr={decode:function(e){var t;if(void 0===yr){var n="0123456789ABCDEF",i=" \f\n\r\t \u2028\u2029";for(yr={},t=0;t<16;++t)yr[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)yr[n.charAt(t)]=t;for(t=0;t<i.length;++t)yr[i.charAt(t)]=-1}var r=[],o=0,a=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(s=yr[s],-1!=s){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++a>=2?(r[r.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},kr={decode:function(e){var t;if(void 0===xr){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="= \f\n\r\t \u2028\u2029";for(xr=Object.create(null),t=0;t<64;++t)xr[n.charAt(t)]=t;for(xr["-"]=62,xr["_"]=63,t=0;t<i.length;++t)xr[i.charAt(t)]=-1}var r=[],o=0,a=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(s=xr[s],-1!=s){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++a>=4?(r[r.length]=o>>16,r[r.length]=o>>8&255,r[r.length]=255&o,o=0,a=0):o<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=o>>10;break;case 3:r[r.length]=o>>16,r[r.length]=o>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=kr.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return kr.decode(e)}},Er=1e13,Dr=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,i,r=this.buf,o=r.length;for(n=0;n<o;++n)i=r[n]*e+t,i<Er?t=0:(t=0|i/Er,i-=t*Er),r[n]=i;t>0&&(r[n]=t)},e.prototype.sub=function(e){var t,n,i=this.buf,r=i.length;for(t=0;t<r;++t)n=i[t]-e,n<0?(n+=Er,e=1):e=0,i[t]=n;while(0===i[i.length-1])i.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),i=t.length-2;i>=0;--i)n+=(Er+t[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*Er+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),Ar="…",Tr=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Or=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Ir(e,t){return e.length>t&&(e=e.substring(0,t)+Ar),e}var Pr,$r=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"===typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var i="",r=e;r<t;++r)if(i+=this.hexByte(this.get(r)),!0!==n)switch(15&r){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}return i},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",i=e;i<t;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",i=e;i<t;){var r=this.get(i++);n+=r<128?String.fromCharCode(r):r>191&&r<224?String.fromCharCode((31&r)<<6|63&this.get(i++)):String.fromCharCode((15&r)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,i,r="",o=e;o<t;)n=this.get(o++),i=this.get(o++),r+=String.fromCharCode(n<<8|i);return r},e.prototype.parseTime=function(e,t,n){var i=this.parseStringISO(e,t),r=(n?Tr:Or).exec(i);return r?(n&&(r[1]=+r[1],r[1]+=+r[1]<70?2e3:1900),i=r[1]+"-"+r[2]+"-"+r[3]+" "+r[4],r[5]&&(i+=":"+r[5],r[6]&&(i+=":"+r[6],r[7]&&(i+="."+r[7]))),r[8]&&(i+=" UTC","Z"!=r[8]&&(i+=r[8],r[9]&&(i+=":"+r[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(e,t){var n,i=this.get(e),r=i>127,o=r?255:0,a="";while(i==o&&++e<t)i=this.get(e);if(n=t-e,0===n)return r?-1:0;if(n>4){a=i,n<<=3;while(0==(128&(+a^o)))a=+a<<1,--n;a="("+n+" bit)\n"}r&&(i-=256);for(var s=new Dr(i),l=e+1;l<t;++l)s.mulAdd(256,this.get(l));return a+s.toString()},e.prototype.parseBitString=function(e,t,n){for(var i=this.get(e),r=(t-e-1<<3)-i,o="("+r+" bit)\n",a="",s=e+1;s<t;++s){for(var l=this.get(s),c=s==t-1?i:0,u=7;u>=c;--u)a+=l>>u&1?"1":"0";if(a.length>n)return o+Ir(a,n)}return o+a},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return Ir(this.parseStringISO(e,t),n);var i=t-e,r="("+i+" byte)\n";n/=2,i>n&&(t=e+n);for(var o=e;o<t;++o)r+=this.hexByte(this.get(o));return i>n&&(r+=Ar),r},e.prototype.parseOID=function(e,t,n){for(var i="",r=new Dr,o=0,a=e;a<t;++a){var s=this.get(a);if(r.mulAdd(128,127&s),o+=7,!(128&s)){if(""===i)if(r=r.simplify(),r instanceof Dr)r.sub(80),i="2."+r.toString();else{var l=r<80?r<40?0:1:2;i=l+"."+(r-40*l)}else i+="."+r.toString();if(i.length>n)return Ir(i,n);r=new Dr,o=0}}return o>0&&(i+=".incomplete"),i},e}(),Fr=function(){function e(e,t,n,i,r){if(!(i instanceof Br))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=i,this.sub=r}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Ir(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return Ir(this.stream.parseStringISO(t,t+n),e);case 30:return Ir(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,i=this.sub.length;n<i;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var i=0;i<n;++i)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof $r?t:new $r(t,0);var i=new $r(n),r=new Br(n),o=e.decodeLength(n),a=n.pos,s=a-i.pos,l=null,c=function(){var t=[];if(null!==o){var i=a+o;while(n.pos<i)t[t.length]=e.decode(n);if(n.pos!=i)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var r=e.decode(n);if(r.tag.isEOC())break;t[t.length]=r}o=a-n.pos}catch(Jd){throw new Error("Exception while decoding undefined length content: "+Jd)}return t};if(r.tagConstructed)l=c();else if(r.isUniversal()&&(3==r.tagNumber||4==r.tagNumber))try{if(3==r.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(Jd){l=null}if(null===l){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new e(i,s,o,r,l)},e}(),Br=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=0!==(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new Dr;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),Mr=0xdeadbeefcafe,Nr=15715070==(16777215&Mr),Rr=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],jr=(1<<26)/Rr[Rr.length-1],Lr=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,i=(1<<t)-1,r=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0){s<this.DB&&(n=this[a]>>s)>0&&(r=!0,o=dr(n));while(a>=0)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&i,s<=0&&(s+=this.DB,--a)),n>0&&(r=!0),r&&(o+=dr(n))}return r?o:"0"},e.prototype.negate=function(){var t=Wr();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+eo(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=Wr();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new Vr(t):new Hr(t),this.exp(e,n)},e.prototype.clone=function(){var e=Wr();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,i=this.DB-e*this.DB%8,r=0;if(e-- >0){i<this.DB&&(n=this[e]>>i)!=(this.s&this.DM)>>i&&(t[r++]=n|this.s<<this.DB-i);while(e>=0)i<8?(n=(this[e]&(1<<i)-1)<<8-i,n|=this[--e]>>(i+=this.DB-8)):(n=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(r>0||n!=this.s)&&(t[r++]=n)}return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=Wr();return this.bitwiseTo(e,hr,t),t},e.prototype.or=function(e){var t=Wr();return this.bitwiseTo(e,pr,t),t},e.prototype.xor=function(e){var t=Wr();return this.bitwiseTo(e,fr,t),t},e.prototype.andNot=function(e){var t=Wr();return this.bitwiseTo(e,mr,t),t},e.prototype.not=function(){for(var e=Wr(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=Wr();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=Wr();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+gr(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=vr(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,pr)},e.prototype.clearBit=function(e){return this.changeBit(e,mr)},e.prototype.flipBit=function(e){return this.changeBit(e,fr)},e.prototype.add=function(e){var t=Wr();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=Wr();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=Wr();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=Wr();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=Wr();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=Wr(),n=Wr();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,i,r=e.bitLength(),o=Qr(1);if(r<=0)return o;n=r<18?1:r<48?3:r<144?4:r<768?5:6,i=r<8?new Vr(t):t.isEven()?new Ur(t):new Hr(t);var a=[],s=3,l=n-1,c=(1<<n)-1;if(a[1]=i.convert(this),n>1){var u=Wr();i.sqrTo(a[1],u);while(s<=c)a[s]=Wr(),i.mulTo(u,a[s-2],a[s]),s+=2}var d,h,p=e.t-1,f=!0,m=Wr();r=eo(e[p])-1;while(p>=0){r>=l?d=e[p]>>r-l&c:(d=(e[p]&(1<<r+1)-1)<<l-r,p>0&&(d|=e[p-1]>>this.DB+r-l)),s=n;while(0==(1&d))d>>=1,--s;if((r-=s)<0&&(r+=this.DB,--p),f)a[d].copyTo(o),f=!1;else{while(s>1)i.sqrTo(o,m),i.sqrTo(m,o),s-=2;s>0?i.sqrTo(o,m):(h=o,o=m,m=h),i.mulTo(m,a[d],o)}while(p>=0&&0==(e[p]&1<<r))i.sqrTo(o,m),h=o,o=m,m=h,--r<0&&(r=this.DB-1,--p)}return i.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;var i=t.clone(),r=this.clone(),o=Qr(1),a=Qr(0),s=Qr(0),l=Qr(1);while(0!=i.signum()){while(i.isEven())i.rShiftTo(1,i),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);while(r.isEven())r.rShiftTo(1,r),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(t,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);i.compareTo(r)>=0?(i.subTo(r,i),n&&o.subTo(s,o),a.subTo(l,a)):(r.subTo(i,r),n&&s.subTo(o,s),l.subTo(a,l))}return 0!=r.compareTo(e.ONE)?e.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},e.prototype.pow=function(e){return this.exp(e,new zr)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var i=t;t=n,n=i}var r=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;r<o&&(o=r),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));while(t.signum()>0)(r=t.getLowestSetBit())>0&&t.rShiftTo(r,t),(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=Rr[Rr.length-1]){for(t=0;t<Rr.length;++t)if(n[0]==Rr[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<Rr.length){var i=Rr[t],r=t+1;while(r<Rr.length&&i<jr)i*=Rr[r++];i=n.modInt(i);while(t<r)if(i%Rr[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var i;if(16==n)i=4;else if(8==n)i=3;else if(256==n)i=8;else if(2==n)i=1;else if(32==n)i=5;else{if(4!=n)return void this.fromRadix(t,n);i=2}this.t=0,this.s=0;var r=t.length,o=!1,a=0;while(--r>=0){var s=8==i?255&+t[r]:Jr(t,r);s<0?"-"==t.charAt(r)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+i>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,a+=i,a>=this.DB&&(a-=this.DB))}8==i&&0!=(128&+t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,i=this.DB-n,r=(1<<i)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>i|a,a=(this[s]&r)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var i=e%this.DB,r=this.DB-i,o=(1<<i)-1;t[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<r,t[a-n]=this[a]>>i;i>0&&(t[this.t-n-1]|=(this.s&o)<<r),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){var n=0,i=0,r=Math.min(e.t,this.t);while(n<r)i+=this[n]-e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){i-=e.s;while(n<this.t)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{i+=this.s;while(n<e.t)i-=e[n],t[n++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:i>0&&(t[n++]=i),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var i=this.abs(),r=t.abs(),o=i.t;n.t=o+r.t;while(--o>=0)n[o]=0;for(o=0;o<r.t;++o)n[o+i.t]=i.am(0,r[o],n,o,0,i.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e[n]=0;for(n=0;n<t.t-1;++n){var i=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,i,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,i){var r=t.abs();if(!(r.t<=0)){var o=this.abs();if(o.t<r.t)return null!=n&&n.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=Wr());var a=Wr(),s=this.s,l=t.s,c=this.DB-eo(r[r.t-1]);c>0?(r.lShiftTo(c,a),o.lShiftTo(c,i)):(r.copyTo(a),o.copyTo(i));var u=a.t,d=a[u-1];if(0!=d){var h=d*(1<<this.F1)+(u>1?a[u-2]>>this.F2:0),p=this.FV/h,f=(1<<this.F1)/h,m=1<<this.F2,g=i.t,v=g-u,y=null==n?Wr():n;a.dlShiftTo(v,y),i.compareTo(y)>=0&&(i[i.t++]=1,i.subTo(y,i)),e.ONE.dlShiftTo(u,y),y.subTo(a,a);while(a.t<u)a[a.t++]=0;while(--v>=0){var b=i[--g]==d?this.DM:Math.floor(i[g]*p+(i[g-1]+m)*f);if((i[g]+=a.am(0,b,i,v,0,u))<b){a.dlShiftTo(v,y),i.subTo(y,i);while(i[g]<--b)i.subTo(y,i)}}null!=n&&(i.drShiftTo(u,n),s!=l&&e.ZERO.subTo(n,n)),i.t=u,i.clamp(),c>0&&i.rShiftTo(c,i),s<0&&e.ZERO.subTo(i,i)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var i=Wr(),r=Wr(),o=n.convert(this),a=eo(t)-1;o.copyTo(i);while(--a>=0)if(n.sqrTo(i,r),(t&1<<a)>0)n.mulTo(r,o,i);else{var s=i;i=r,r=s}return n.revert(i)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=Qr(n),r=Wr(),o=Wr(),a="";this.divRemTo(i,r,o);while(r.signum()>0)a=(n+o.intValue()).toString(e).substr(1)+a,r.divRemTo(i,r,o);return o.intValue().toString(e)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var i=this.chunkSize(n),r=Math.pow(n,i),o=!1,a=0,s=0,l=0;l<t.length;++l){var c=Jr(t,l);c<0?"-"==t.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+c,++a>=i&&(this.dMultiply(r),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,i){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),pr,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(n))this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this)}else{var r=[],o=7&t;r.length=1+(t>>3),n.nextBytes(r),o>0?r[0]&=(1<<o)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(e,t,n){var i,r,o=Math.min(e.t,this.t);for(i=0;i<o;++i)n[i]=t(this[i],e[i]);if(e.t<this.t){for(r=e.s&this.DM,i=o;i<this.t;++i)n[i]=t(this[i],r);n.t=this.t}else{for(r=this.s&this.DM,i=o;i<e.t;++i)n[i]=t(r,e[i]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var i=e.ONE.shiftLeft(t);return this.bitwiseTo(i,n,i),i},e.prototype.addTo=function(e,t){var n=0,i=0,r=Math.min(e.t,this.t);while(n<r)i+=this[n]+e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){i+=e.s;while(n<this.t)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{i+=this.s;while(n<e.t)i+=e[n],t[n++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var i=Math.min(this.t+e.t,t);n.s=0,n.t=i;while(i>0)n[--i]=0;for(var r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var i=n.t=this.t+e.t-t;n.s=0;while(--i>=0)n[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)n[this.t+i-t]=this.am(t-i,e[i],n,0,0,this.t+i-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(t*n+this[i])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),i=n.getLowestSetBit();if(i<=0)return!1;var r=n.shiftRight(i);t=t+1>>1,t>Rr.length&&(t=Rr.length);for(var o=Wr(),a=0;a<t;++a){o.fromInt(Rr[Math.floor(Math.random()*Rr.length)]);var s=o.modPow(r,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(n)){var l=1;while(l++<i&&0!=s.compareTo(n))if(s=s.modPowInt(2,this),0==s.compareTo(e.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=Wr();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(n.compareTo(i)<0){var r=n;n=i,i=r}var o=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0)t(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(s,0):(a>0&&i.lShiftTo(a,i),setTimeout((function(){t(i)}),0))};setTimeout(s,10)}},e.prototype.fromNumberAsync=function(t,n,i,r){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),pr,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout((function(){r()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],l=7&t;s.length=1+(t>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},e}(),zr=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),Vr=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Hr=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=Wr();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Lr.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=Wr();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],i=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e[n]+=this.m.am(0,i,e,t,0,this.m.t);while(e[n]>=e.DV)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Ur=function(){function e(e){this.m=e,this.r2=Wr(),this.q3=Wr(),Lr.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=Wr();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function Wr(){return new Lr(null)}function qr(e,t){return new Lr(e,t)}var Yr="undefined"!==typeof navigator;Yr&&Nr&&"Microsoft Internet Explorer"==navigator.appName?(Lr.prototype.am=function(e,t,n,i,r,o){var a=32767&t,s=t>>15;while(--o>=0){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*a;l=a*l+((32767&u)<<15)+n[i]+(1073741823&r),r=(l>>>30)+(u>>>15)+s*c+(r>>>30),n[i++]=1073741823&l}return r},Pr=30):Yr&&Nr&&"Netscape"!=navigator.appName?(Lr.prototype.am=function(e,t,n,i,r,o){while(--o>=0){var a=t*this[e++]+n[i]+r;r=Math.floor(a/67108864),n[i++]=67108863&a}return r},Pr=26):(Lr.prototype.am=function(e,t,n,i,r,o){var a=16383&t,s=t>>14;while(--o>=0){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*a;l=a*l+((16383&u)<<14)+n[i]+r,r=(l>>28)+(u>>14)+s*c,n[i++]=268435455&l}return r},Pr=28),Lr.prototype.DB=Pr,Lr.prototype.DM=(1<<Pr)-1,Lr.prototype.DV=1<<Pr;var Gr=52;Lr.prototype.FV=Math.pow(2,Gr),Lr.prototype.F1=Gr-Pr,Lr.prototype.F2=2*Pr-Gr;var Kr,Xr,Zr=[];for(Kr="0".charCodeAt(0),Xr=0;Xr<=9;++Xr)Zr[Kr++]=Xr;for(Kr="a".charCodeAt(0),Xr=10;Xr<36;++Xr)Zr[Kr++]=Xr;for(Kr="A".charCodeAt(0),Xr=10;Xr<36;++Xr)Zr[Kr++]=Xr;function Jr(e,t){var n=Zr[e.charCodeAt(t)];return null==n?-1:n}function Qr(e){var t=Wr();return t.fromInt(e),t}function eo(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}Lr.ZERO=Qr(0),Lr.ONE=Qr(1);var to=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,i;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();function no(){return new to}var io,ro,oo=256,ao=null;if(null==ao){ao=[],ro=0;var so=void 0;if("undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues){var lo=new Uint32Array(256);for(window.crypto.getRandomValues(lo),so=0;so<lo.length;++so)ao[ro++]=255&lo[so]}var co=0,uo=function(e){if(co=co||0,co>=256||ro>=oo)window.removeEventListener?window.removeEventListener("mousemove",uo,!1):window.detachEvent&&window.detachEvent("onmousemove",uo);else try{var t=e.x+e.y;ao[ro++]=255&t,co+=1}catch(Jd){}};"undefined"!==typeof window&&(window.addEventListener?window.addEventListener("mousemove",uo,!1):window.attachEvent&&window.attachEvent("onmousemove",uo))}function ho(){if(null==io){io=no();while(ro<oo){var e=Math.floor(65536*Math.random());ao[ro++]=255&e}for(io.init(ao),ro=0;ro<ao.length;++ro)ao[ro]=0;ro=0}return io.next()}var po=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=ho()},e}();function fo(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,i="",r=0;r<n;r+=2)i+="ff";var o="0001"+i+"00"+e;return qr(o,16)}function mo(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;var n=[],i=e.length-1;while(i>=0&&t>0){var r=e.charCodeAt(i--);r<128?n[--t]=r:r>127&&r<2048?(n[--t]=63&r|128,n[--t]=r>>6|192):(n[--t]=63&r|128,n[--t]=r>>6&63|128,n[--t]=r>>12|224)}n[--t]=0;var o=new po,a=[];while(t>2){a[0]=0;while(0==a[0])o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new Lr(n)}var go=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);while(t.compareTo(n)<0)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=qr(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=mo(e,t);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;for(var r=i.toString(16),o=r.length,a=0;a<2*t-o;a++)r="0"+r;return r},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=qr(e,16),this.e=parseInt(t,16),this.d=qr(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,i,r,o,a,s){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=qr(e,16),this.e=parseInt(t,16),this.d=qr(n,16),this.p=qr(i,16),this.q=qr(r,16),this.dmp1=qr(o,16),this.dmq1=qr(a,16),this.coeff=qr(s,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new po,i=e>>1;this.e=parseInt(t,16);for(var r=new Lr(t,16);;){for(;;)if(this.p=new Lr(e-i,1,n),0==this.p.subtract(Lr.ONE).gcd(r).compareTo(Lr.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new Lr(i,1,n),0==this.q.subtract(Lr.ONE).gcd(r).compareTo(Lr.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(Lr.ONE),s=this.q.subtract(Lr.ONE),l=a.multiply(s);if(0==l.gcd(r).compareTo(Lr.ONE)){this.n=this.p.multiply(this.q),this.d=r.modInverse(l),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=qr(e,16),n=this.doPrivate(t);return null==n?null:vo(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var i=new po,r=e>>1;this.e=parseInt(t,16);var o=new Lr(t,16),a=this,s=function(){var t=function(){if(a.p.compareTo(a.q)<=0){var e=a.p;a.p=a.q,a.q=e}var t=a.p.subtract(Lr.ONE),i=a.q.subtract(Lr.ONE),r=t.multiply(i);0==r.gcd(o).compareTo(Lr.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(r),a.dmp1=a.d.mod(t),a.dmq1=a.d.mod(i),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){a.q=Wr(),a.q.fromNumberAsync(r,1,i,(function(){a.q.subtract(Lr.ONE).gcda(o,(function(e){0==e.compareTo(Lr.ONE)&&a.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(l,0)}))}))},c=function(){a.p=Wr(),a.p.fromNumberAsync(e-r,1,i,(function(){a.p.subtract(Lr.ONE).gcda(o,(function(e){0==e.compareTo(Lr.ONE)&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(s,0)},e.prototype.sign=function(e,t,n){var i=bo(n),r=i+t(e).toString(),o=fo(r,this.n.bitLength()/4);if(null==o)return null;var a=this.doPrivate(o);if(null==a)return null;var s=a.toString(16);return 0==(1&s.length)?s:"0"+s},e.prototype.verify=function(e,t,n){var i=qr(t,16),r=this.doPublic(i);if(null==r)return null;var o=r.toString(16).replace(/^1f+00/,""),a=wo(o);return a==n(e).toString()},e}();function vo(e,t){var n=e.toByteArray(),i=0;while(i<n.length&&0==n[i])++i;if(n.length-i!=t-1||2!=n[i])return null;++i;while(0!=n[i])if(++i>=n.length)return null;var r="";while(++i<n.length){var o=255&n[i];o<128?r+=String.fromCharCode(o):o>191&&o<224?(r+=String.fromCharCode((31&o)<<6|63&n[i+1]),++i):(r+=String.fromCharCode((15&o)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return r}var yo={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function bo(e){return yo[e]||""}function wo(e){for(var t in yo)if(yo.hasOwnProperty(t)){var n=yo[t],i=n.length;if(e.substr(0,i)==n)return e.substr(i)}return e}
68
68
  /*!
69
69
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
70
70
  Code licensed under the BSD License:
@@ -132,7 +132,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
132
132
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
133
133
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
134
134
  PERFORMANCE OF THIS SOFTWARE.
135
- ***************************************************************************** */};function XZ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}KZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ZZ=function(){return ZZ=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ZZ.apply(this,arguments)};function JZ(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function QZ(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function eJ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function tJ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function nJ(e){var t=tJ(kS.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!bS.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==OS.string(n))return!1;var i=n.children,r=void 0===i?[]:i;return!!KS.isText(r[0])&&(pk.setNodes(e,{type:"paragraph"}),!0)}var iJ={renderElems:[nY],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[GZ],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var i=e;return i.deleteBackward=function(e){nJ(i)||t(e)},i.deleteForward=function(e){nJ(i)||n(e)},i}},rJ=/"/g,oJ=CY("".replace),aJ=function(e,t,n,i){var r=oX(OY(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+oJ(oX(i),rJ,"&quot;")+'"'),o+">"+r+"</"+t+">"},sJ=function(e){return cY((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function lJ(e,t){var n=t,i=e,r=i.bold,o=i.italic,a=i.underline;return r&&(n="<strong>"+n+"</strong>"),i.code&&(n="<code>"+n+"</code>"),o&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),i.through&&(n="<s>"+n+"</s>"),i.sub&&(n="<sub>"+n+"</sub>"),i.sup&&(n="<sup>"+n+"</sup>"),n}function cJ(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}OK({target:"String",proto:!0,forced:sJ("bold")},{bold:function(){return aJ(this,"b","","")}}),OK({target:"String",proto:!0,forced:sJ("italics")},{italics:function(){return aJ(this,"i","","")}}),OK({target:"String",proto:!0,forced:sJ("sub")},{sub:function(){return aJ(this,"sub","","")}}),OK({target:"String",proto:!0,forced:sJ("sup")},{sup:function(){return aJ(this,"sup","","")}});var uJ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},dJ=_G("span").classList,hJ=dJ&&dJ.constructor&&dJ.constructor.prototype,pJ=hJ===Object.prototype?void 0:hJ,fJ=function(e,t){var n=[][e];return!!n&&cY((function(){n.call(null,t||function(){throw 1},1)}))},mJ=JK.forEach,gJ=fJ("forEach")?[].forEach:function(e){return mJ(this,e,arguments.length>1?arguments[1]:void 0)},vJ=function(e){if(e&&e.forEach!==gJ)try{IG(e,"forEach",gJ)}catch(In){e.forEach=gJ}};for(var yJ in uJ)uJ[yJ]&&vJ(lY[yJ]&&lY[yJ].prototype);function bJ(e,t){return null==e.selection||!!tJ(kS.nodes(e,{match:function(t){return"pre"===GL.getNodeType(t)||!!kS.isVoid(e,t)},universal:!0}),1)[0]}function wJ(e,t){Object.keys(t).forEach((function(t){"text"!==t&&kS.removeMark(e,t)}))}vJ(pJ),OK({target:"Object",stat:!0,forced:cY((function(){dX(1)}))},{keys:function(e){return dX(rG(e))}});var _J=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=kS.marks(e);return n?n[t]:!!tJ(kS.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return bJ(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,i=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),i&&i.forEach((function(t){return e.removeMark(t)})))},e}(),CJ='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',xJ='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',SJ='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',kJ='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',EJ='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',DJ='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',AJ='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',TJ='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',OJ='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',IJ='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',PJ='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',$J='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',FJ='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',BJ='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',MJ='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',NJ='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',RJ='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',jJ='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',LJ='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',zJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=Bq("textStyle.bold"),t.iconSvg=CJ,t.hotkey="mod+b",t}return XZ(t,e),t}(_J),VJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=Bq("textStyle.code"),t.iconSvg=EJ,t.hotkey="mod+e",t}return XZ(t,e),t}(_J),HJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=Bq("textStyle.italic"),t.iconSvg=SJ,t.hotkey="mod+i",t}return XZ(t,e),t}(_J),UJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=Bq("textStyle.through"),t.iconSvg=kJ,t.hotkey="mod+shift+x",t}return XZ(t,e),t}(_J),WJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=Bq("textStyle.underline"),t.iconSvg=xJ,t.hotkey="mod+u",t}return XZ(t,e),t}(_J),qJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=Bq("textStyle.sub"),t.iconSvg=LJ,t.hotkey="",t}return XZ(t,e),t}(_J),YJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=Bq("textStyle.sup"),t.iconSvg=jJ,t.hotkey="",t}return XZ(t,e),t}(_J),GJ=function(){function e(){this.title=Bq("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return bJ(e)},e.prototype.exec=function(e,t){var n,i,r=kS.nodes(e,{match:function(e){return KS.isText(e)},universal:!0});try{for(var o=eJ(r),a=o.next();!a.done;a=o.next())wJ(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e}(),KJ={renderStyle:function(e,t){var n=e,i=n.bold,r=n.italic,o=n.underline,a=n.code,s=n.through,l=n.sub,c=n.sup,u=t;return i&&(u=AA("strong",null,u)),a&&(u=AA("code",null,u)),r&&(u=AA("em",null,u)),o&&(u=AA("u",null,u)),s&&(u=AA("s",null,u)),l&&(u=AA("sub",null,u)),c&&(u=AA("sup",null,u)),u},menus:[{key:"bold",factory:function(){return new zJ}},{key:"underline",factory:function(){return new WJ}},{key:"italic",factory:function(){return new HJ}},{key:"through",factory:function(){return new UJ}},{key:"code",factory:function(){return new VJ}},{key:"sub",factory:function(){return new qJ}},{key:"sup",factory:function(){return new YJ}},{key:"clearStyle",factory:function(){return new GJ}}],styleToHtml:function(e,t){if(!KS.isText(e))return t;if(UZ(t))return lJ(e,t);var n=FE(t);if("br"===qZ(n))return lJ(e,"<br>");var i=n.html();return i=lJ(e,i),n.html(i),WZ(n)},parseStyleHtml:function(e,t,n){var i=FE(e);if(!KS.isText(t))return t;var r=t;return cJ(i,"b,strong")&&(r.bold=!0),cJ(i,"i,em")&&(r.italic=!0),cJ(i,"u")&&(r.underline=!0),cJ(i,"s,strike")&&(r.through=!0),cJ(i,"sub")&&(r.sub=!0),cJ(i,"sup")&&(r.sup=!0),cJ(i,"code")&&(r.code=!0),r}};function XJ(e){return function(t,n,i){return AA("h"+e,null,n)}}var ZJ={type:"header1",renderElem:XJ(1)},JJ={type:"header2",renderElem:XJ(2)},QJ={type:"header3",renderElem:XJ(3)},eQ={type:"header4",renderElem:XJ(4)},tQ={type:"header5",renderElem:XJ(5)},nQ=QG.PROPER,iQ=RegExp.prototype,rQ=iQ.toString,oQ=CY(aX),aQ=cY((function(){return"/a/b"!=rQ.call({source:"a",flags:"b"})})),sQ=nQ&&"toString"!=rQ.name;(aQ||sQ)&&eK(RegExp.prototype,"toString",(function(){var e=DG(this),t=oX(e.source),n=e.flags;return"/"+t+"/"+oX(void 0===n&&MY(iQ,e)&&!("flags"in iQ)?oQ(e):n)}),{unsafe:!0});var lQ,cQ=lY.TypeError,uQ=function(e){if(CZ(e))throw cQ("The method doesn't accept regular expressions");return e},dQ=mG("match"),hQ=function(e){var t=/./;try{"/./"[e](t)}catch(eh){try{return t[dQ]=!1,"/./"[e](t)}catch(e){}}return!1},pQ=SG.f,fQ=CY("".startsWith),mQ=CY("".slice),gQ=Math.min,vQ=hQ("startsWith");function yQ(e){var t=tJ(kS.nodes(e,{match:function(e){return GL.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var i=tJ(n,1)[0];return GL.getNodeType(i)}function bQ(e){return null==e.selection||!tJ(kS.nodes(e,{match:function(e){var t=GL.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function wQ(e,t){t&&pk.setNodes(e,{type:t})}OK({target:"String",proto:!0,forced:!(!vQ&&(lQ=pQ(String.prototype,"startsWith"),lQ&&!lQ.writable)||vQ)},{startsWith:function(e){var t=oX(OY(this));uQ(e);var n=lK(gQ(arguments.length>1?arguments[1]:void 0,t.length)),i=oX(e);return fQ?fQ(t,i,n):mQ(t,n,n+i.length)===i}});var _Q=function(){function e(){this.title=Bq("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:Bq("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return yQ(e)},e.prototype.isDisabled=function(e){return bQ(e)},e.prototype.exec=function(e,t){wQ(e,t.toString())},e}(),CQ=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return yQ(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return bQ(e)},e.prototype.exec=function(e,t){var n=this.type;wQ(e,t===n?"paragraph":n)},e}(),xQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return XZ(t,e),t}(CQ),SQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return XZ(t,e),t}(CQ),kQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return XZ(t,e),t}(CQ),EQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return XZ(t,e),t}(CQ),DQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return XZ(t,e),t}(CQ),AQ={key:"headerSelect",factory:function(){return new _Q}},TQ={key:"header1",factory:function(){return new xQ}},OQ={key:"header2",factory:function(){return new SQ}},IQ={key:"header3",factory:function(){return new kQ}},PQ={key:"header4",factory:function(){return new EQ}},$Q={key:"header5",factory:function(){return new DQ}};function FQ(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function BQ(e){return function(t,n,i){var r=FE(t);return 0===(n=n.filter((function(e){return!!KS.isText(e)||!!i.isInline(e)}))).length&&(n=[{text:r.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var MQ={renderElems:[ZJ,JJ,QJ,eQ,tQ],elemsToHtml:[{type:"header1",elemToHtml:FQ(1)},{type:"header2",elemToHtml:FQ(2)},{type:"header3",elemToHtml:FQ(3)},{type:"header4",elemToHtml:FQ(4)},{type:"header5",elemToHtml:FQ(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:BQ(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:BQ(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:BQ(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:BQ(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:BQ(5)}],menus:[AQ,TQ,OQ,IQ,PQ,$Q],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var i=tJ(kS.nodes(n,{match:function(e){return GL.getNodeType(e).startsWith("header")},universal:!0}),1)[0];i&&GL.isSelectionAtLineEnd(e,i[1])?pk.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},NQ=Object.assign,RQ=Object.defineProperty,jQ=CY([].concat),LQ=!NQ||cY((function(){if(uY&&1!==NQ({b:1},NQ(RQ({},"a",{enumerable:!0,get:function(){RQ(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=NQ({},e)[n]||dX(NQ({},t)).join("")!=i}))?function(e,t){for(var n=rG(e),i=arguments.length,r=1,o=yK.f,a=gY.f;i>r;)for(var s,l=AY(arguments[r++]),c=o?jQ(dX(l),o(l)):dX(l),u=c.length,d=0;u>d;)s=c[d++],uY&&!hY(a,l,s)||(n[s]=l[s]);return n}:NQ;function zQ(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}OK({target:"Object",stat:!0,forced:Object.assign!==LQ},{assign:LQ});var VQ={selector:"font",preParseHtml:function(e){var t=FE(e);if("font"!==qZ(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},HQ=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=kS.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!tJ(kS.nodes(e,{match:function(t){return"pre"===GL.getNodeType(t)||!!kS.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=FE('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var i=n.target;if(null!=i&&(n.preventDefault(),null!=e.selection)){var r=FE(i).attr("data-value");"0"===r?kS.removeMark(e,t):kS.addMark(e,t,r)}})),this.$content=n}var i=this.$content;if(null==i)return document.createElement("ul");i.empty();var r=this.getValue(e),o=e.getMenuConfig(t).colors;(void 0===o?[]:o).forEach((function(e){var t=FE('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=FE('<li data-value="'+e+'"></li>');r===e&&n.addClass("active"),n.append(t),i.append(n)}));var a="";"color"===t&&(a=Bq("color.default")),"bgColor"===t&&(a=Bq("color.clear"));var s=FE('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return i.prepend(s),i[0]},e}(),UQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("color.color"),t.iconSvg=TJ,t.mark="color",t}return XZ(t,e),t}(HQ),WQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("color.bgColor"),t.iconSvg=OJ,t.mark="bgColor",t}return XZ(t,e),t}(HQ),qQ=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],YQ={renderStyle:function(e,t){var n=e,i=n.color,r=n.bgColor,o=t;return i&&zQ(o,{color:i}),r&&zQ(o,{backgroundColor:r}),o},styleToHtml:function(e,t){if(!KS.isText(e))return t;var n,i=e,r=i.color,o=i.bgColor;return r||o?((UZ(t)||"span"!==qZ(n=FE(t)))&&(n=FE("<span>"+t+"</span>")),r&&n.css("color",r),o&&n.css("background-color",o),WZ(n)):t},preParseHtml:[VQ],parseStyleHtml:function(e,t,n){var i=FE(e);if(!KS.isText(t))return t;var r=t,o=YZ(i,"color");o&&(r.color=o);var a=YZ(i,"background-color");return a||(a=YZ(i,"background")),a&&(r.bgColor=a),r},menus:[{key:"color",factory:function(){return new UQ},config:{colors:qQ}},{key:"bgColor",factory:function(){return new WQ},config:{colors:qQ}}]},GQ=/^(?:\w+:)?\/\/(\S+)$/,KQ=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,XQ=/^[^\s\.]+\.\S{2,}$/,ZQ=dK.includes;function JQ(e){return void 0===e&&(e="r"),e+"-"+$D()}function QQ(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function e0(e,t,n,i){return JZ(this,void 0,void 0,(function(){var r,o;return QZ(this,(function(a){switch(a.label){case 0:return(r=t.getMenuConfig(e).checkLink)?[4,r(n,i)]:[3,2];case 1:if("string"==typeof(o=a.sent()))return t.alert(o,"error"),[2,!1];if(null==o)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function t0(e,t,n){return JZ(this,void 0,void 0,(function(){var i;return QZ(this,(function(r){switch(r.label){case 0:return(i=t.getMenuConfig(e).parseLinkUrl)?[4,i(n)]:[3,2];case 1:return[2,r.sent()];case 2:return[2,n]}}))}))}function n0(e){return null==e.selection||!!GL.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function i0(e,t){return{type:"link",url:QQ(e),children:t?[{text:t}]:[]}}function r0(e,t,n){return JZ(this,void 0,void 0,(function(){var i,r,o;return QZ(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),n0(e)?[2]:[4,e0("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,t0("insertLink",e,n)]:[2];case 2:return i=a.sent(),null==(r=e.selection)||(VS.isCollapsed(r)?(e.insertText(" "),o=i0(i,t),pk.insertNodes(e,o),e.insertFragment([{text:" "}])):kS.string(e,r)!==t?(e.deleteFragment(),o=i0(i,t),pk.insertNodes(e,o)):(o=i0(i),pk.wrapNodes(e,o,{split:!0}),pk.collapse(e,{edge:"end"}))),[2]}}))}))}OK({target:"Array",proto:!0},{includes:function(e){return ZQ(this,e,arguments.length>1?arguments[1]:void 0)}}),yZ("includes");var o0={type:"link",renderElem:function(e,t,n){var i=e,r=i.url,o=i.target;return AA("a",{href:r,target:void 0===o?"_blank":o},t)}},a0={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var i=FE(e);return 0===(t=t.filter((function(e){return!!KS.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:i.text().replace(/\s+/gm," ")}]),{type:"link",url:i.attr("href")||"",target:i.attr("target")||"",children:t}}};function s0(){return JQ("w-e-insert-link")}var l0=function(){function e(){this.title=Bq("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=s0(),this.urlInputId=s0(),this.buttonId=s0()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return n0(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,i=n.textInputId,r=n.urlInputId,o=n.buttonId,a=tJ(yW(Bq("link.text"),i),2),s=a[0],l=FE(a[1]),c=tJ(yW(Bq("link.url"),r),2),u=c[0],d=FE(c[1]),h=tJ(bW(o,Bq("common.ok")),1)[0];if(null==this.$content){var p=FE("<div></div>");p.on("click","#"+o,(function(t){t.preventDefault();var n=p.find("#"+i).val(),o=p.find("#"+r).val();r0(e,n,o),e.hidePanelOrModal()})),this.$content=p}var f=this.$content;if(f.empty(),f.append(s),f.append(u),f.append(h),null==t||VS.isCollapsed(t))l.val("");else{var m=kS.string(e,t);l.val(m)}return d.val(""),setTimeout((function(){l.focus()})),f[0]},e}();function c0(){return JQ("w-e-update-link")}var u0=function(){function e(){this.title=Bq("link.edit"),this.iconSvg=DJ,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=c0(),this.buttonId=c0()}return e.prototype.getSelectedLinkElem=function(e){var t=GL.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return GL.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,i=tJ(yW(Bq("link.url"),t),2),r=i[0],o=FE(i[1]),a=tJ(bW(n,Bq("common.ok")),1)[0];if(null==this.$content){var s=FE("<div></div>");s.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var i=GL.getSelectedNodeByType(e,"link"),r=i?OS.string(i):"",o=s.find("#"+t).val();!function(e,t,n){JZ(this,void 0,void 0,(function(){var i,r;return QZ(this,(function(o){switch(o.label){case 0:return n?[4,e0("editLink",e,t,n)]:[2];case 1:return o.sent()?[4,t0("editLink",e,n)]:[2];case 2:return i=o.sent(),r={url:QQ(i)},pk.setNodes(e,r,{match:function(e){return GL.checkNodeType(e,"link")}}),[2]}}))}))}(e,r,o),e.hidePanelOrModal()})),this.$content=s}var l=this.$content;l.empty(),l.append(r),l.append(a);var c=this.getValue(e);return o.val(c),setTimeout((function(){o.focus()})),l[0]},e}(),d0=function(){function e(){this.title=Bq("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==GL.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||pk.unwrapNodes(e,{match:function(e){return GL.checkNodeType(e,"link")}})},e}(),h0=function(){function e(){this.title=Bq("link.view"),this.iconSvg=AJ,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=GL.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),p0={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},f0={renderElems:[o0],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,i=n.url,r=n.target;return'<a href="'+i+'" target="'+(void 0===r?"_blank":r)+'">'+t+"</a>"}}],parseElemsHtml:[a0],menus:[{key:"insertLink",factory:function(){return new l0},config:p0},{key:"editLink",factory:function(){return new u0},config:p0},{key:"unLink",factory:function(){return new d0}},{key:"viewLink",factory:function(){return new h0}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,i=e.normalizeNode;e.insertNode,e.insertText;var r=e;return r.isInline=function(e){return"link"===e.type||t(e)},r.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(GQ);if(!t)return!1;var n=t[1];return!(!n||!KQ.test(n)&&!XQ.test(n))}(t)){if(!n0(r)){var i=r.selection;if(null!=i){var o=kS.string(r,i);r0(r,o,t)}}}else n(e)},r.normalizeNode=function(e){var t=tJ(e,2),n=t[0],o=t[1];return"link"!==GL.getNodeType(n)?i([n,o]):""===OS.string(n)?pk.removeNodes(r,{at:o}):i([n,o])},r}},m0=CY(1..valueOf),g0=lY.RangeError,v0=lY.RangeError,y0=lY.String,b0=Math.floor,w0=CY((function(e){var t=oX(OY(this)),n="",i=iK(e);if(i<0||i==1/0)throw g0("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n})),_0=CY("".slice),C0=CY(1..toFixed),x0=function(e,t,n){return 0===t?n:t%2==1?x0(e,t-1,n*e):x0(e*e,t/2,n)},S0=function(e,t,n){for(var i=-1,r=n;++i<6;)r+=t*e[i],e[i]=r%1e7,r=b0(r/1e7)},k0=function(e,t){for(var n=6,i=0;--n>=0;)i+=e[n],e[n]=b0(i/t),i=i%t*1e7},E0=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var i=y0(e[t]);n=""===n?i:n+w0("0",7-i.length)+i}return n};function D0(e,t){return"w-e-image-container-"+GL.findKey(e,t).id}OK({target:"Number",proto:!0,forced:cY((function(){return"0.000"!==C0(8e-5,3)||"1"!==C0(.9,0)||"1.25"!==C0(1.255,2)||"1000000000000000128"!==C0(0xde0b6b3a7640080,0)}))||!cY((function(){C0({})}))},{toFixed:function(e){var t,n,i,r,o=m0(this),a=iK(e),s=[0,0,0,0,0,0],l="",c="0";if(a<0||a>20)throw v0("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return y0(o);if(o<0&&(l="-",o=-o),o>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(o*x0(2,69,1))-69)<0?o*x0(2,-t,1):o/x0(2,t,1),n*=4503599627370496,(t=52-t)>0){for(S0(s,0,n),i=a;i>=7;)S0(s,1e7,0),i-=7;for(S0(s,x0(10,i,1),0),i=t-1;i>=23;)k0(s,1<<23),i-=23;k0(s,1<<i),S0(s,1,1),k0(s,2),c=E0(s)}else S0(s,0,n),S0(s,1<<-t,0),c=E0(s)+w0("0",a);return a>0?l+((r=c.length)<=a?"0."+w0("0",a-r)+c:_0(c,0,r-a)+"."+_0(c,r-a)):l+c}});var A0={type:"image",renderElem:function(e,t,n){var i=e,r=i.src,o=i.alt,a=void 0===o?"":o,s=i.href,l=void 0===s?"":s,c=i.style,u=void 0===c?{}:c,d=u.width,h=void 0===d?"":d,p=u.height,f=void 0===p?"":p,m=GL.isNodeSelected(n,e),g={};h&&(g.width="100%"),f&&(g.height="100%");var v=AA("img",{style:g,src:r,alt:a,"data-href":l}),y=n.isDisabled();return m&&!y?function(e,t,n,i){var r=FE("body"),o=D0(e,t),a=i.width,s=i.height,l=0,c=0,u=0,d=!1,h=null;function p(t){h=function(){var e=FE("#"+o);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),l=t;var n=h.find("img");if(0===n.length)throw new Error("Cannot find image elem");c=n.width(),u=n.height(),r.on("mousemove",f),r.on("mouseup",m);var i=GL.getHoverbar(e);i&&i.hideAndClean()}var f=KD((function(e){e.preventDefault();var t=e.clientX,n=c+(d?l-t:t-l),i=u*(n/c);null!=h&&(n<=15||i<=15||(h.css("width",n+"px"),h.css("height",i+"px")))}),100);function m(n){if(r.off("mousemove",f),null!=h){var i=h.width().toFixed(2),o=h.height().toFixed(2),a={style:ZZ(ZZ({},t.style),{width:i+"px",height:o+"px"})};pk.setNodes(e,a,{at:GL.findPath(e,t)}),r.off("mouseup",m)}}var g={};return a&&(g.width=a),s&&(g.height=s),AA("div",{id:o,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=FE(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(d=!0),p(e.clientX))}}},n,AA("div",{className:"w-e-image-dragger left-top"}),AA("div",{className:"w-e-image-dragger right-top"}),AA("div",{className:"w-e-image-dragger left-bottom"}),AA("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,v,{width:h,height:f}):function(e,t,n,i){var r=i.width,o=i.height,a={};return r&&(a.width=r),o&&(a.height=o),AA("div",{id:D0(e,t),style:a,className:"w-e-image-container"},n)}(n,e,v,{width:h,height:f})}},T0={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var i=FE(e),r=i.attr("data-href")||"";return r=decodeURIComponent(r),{type:"image",src:i.attr("src")||"",alt:i.attr("alt")||"",href:r,style:{width:YZ(i,"width"),height:YZ(i,"height")},children:[{text:""}]}}};function O0(e,t,n,i,r){return void 0===i&&(i=""),void 0===r&&(r=""),JZ(this,void 0,void 0,(function(){var o,a;return QZ(this,(function(s){switch(s.label){case 0:return(o=t.getMenuConfig(e).checkImage)?[4,o(n,i,r)]:[3,2];case 1:if("string"==typeof(a=s.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];s.label=2;case 2:return[2,!0]}}))}))}function I0(e,t,n){return JZ(this,void 0,void 0,(function(){var i;return QZ(this,(function(r){switch(r.label){case 0:return(i=t.getMenuConfig(e).parseImageSrc)?[4,i(n)]:[3,2];case 1:return[2,r.sent()];case 2:return[2,n]}}))}))}function P0(e,t,n,i){return void 0===n&&(n=""),void 0===i&&(i=""),JZ(this,void 0,void 0,(function(){var r,o,a;return QZ(this,(function(s){switch(s.label){case 0:return[4,O0("insertImage",e,t,n,i)];case 1:return s.sent()?[4,I0("insertImage",e,t)]:[2];case 2:return r=s.sent(),o={type:"image",src:QQ(r),href:i,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),GL.getSelectedNodeByType(e,"image")&&e.move(1),$0(e)||(pk.insertNodes(e,o),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(o)),[2]}}))}))}function $0(e){var t=e.selection;return null==t||!VS.isCollapsed(t)||!!tJ(kS.nodes(e,{match:function(t){var n=GL.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!kS.isVoid(e,t)},universal:!0}),1)[0]}function F0(){return JQ("w-e-insert-image")}var B0=function(){function e(){this.title=Bq("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=F0(),this.altInputId=F0(),this.hrefInputId=F0(),this.buttonId=F0()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return $0(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,i=n.srcInputId,r=n.altInputId,o=n.hrefInputId,a=n.buttonId,s=tJ(yW(Bq("image.src"),i),2),l=s[0],c=FE(s[1]),u=tJ(yW(Bq("image.desc"),r),2),d=u[0],h=FE(u[1]),p=tJ(yW(Bq("image.link"),o),2),f=p[0],m=FE(p[1]),g=tJ(bW(a,Bq("common.ok")),1)[0];if(null==this.$content){var v=FE("<div></div>");v.on("click","#"+a,(function(n){n.preventDefault();var a=v.find("#"+i).val().trim(),s=v.find("#"+r).val().trim(),l=v.find("#"+o).val().trim();t.insertImage(e,a,s,l),e.hidePanelOrModal()})),this.$content=v}var y=this.$content;return y.empty(),y.append(l),y.append(d),y.append(f),y.append(g),c.val(""),h.val(""),m.val(""),setTimeout((function(){c.focus()})),y[0]},e.prototype.insertImage=function(e,t,n,i){void 0===n&&(n=""),void 0===i&&(i=""),t&&(e.restoreSelection(),this.isDisabled(e)||P0(e,t,n,i))},e}(),M0=function(){function e(){this.title=Bq("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==GL.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||pk.removeNodes(e,{match:function(e){return GL.checkNodeType(e,"image")}})},e}();function N0(){return JQ("w-e-edit-image")}var R0=function(){function e(){this.title=Bq("image.edit"),this.iconSvg=DJ,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=N0(),this.altInputId=N0(),this.hrefInputId=N0(),this.buttonId=N0()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return GL.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!VS.isCollapsed(t)||null==GL.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,i=n.srcInputId,r=n.altInputId,o=n.hrefInputId,a=n.buttonId,s=this.getImageNode(e);if(null==s)throw new Error("Not found selected image node");var l=tJ(yW(Bq("image.src"),i),2),c=l[0],u=FE(l[1]),d=tJ(yW(Bq("image.desc"),r),2),h=d[0],p=FE(d[1]),f=tJ(yW(Bq("image.link"),o),2),m=f[0],g=FE(f[1]),v=tJ(bW(a,Bq("common.ok")),1)[0];if(null==this.$content){var y=FE("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+i).val(),s=y.find("#"+r).val(),l=y.find("#"+o).val();t.updateImage(e,a,s,l),e.hidePanelOrModal()})),this.$content=y}var b=this.$content;b.empty(),b.append(c),b.append(h),b.append(m),b.append(v);var w=s,_=w.src,C=w.alt,x=void 0===C?"":C,S=w.href,k=void 0===S?"":S;return u.val(_),p.val(x),g.val(k),setTimeout((function(){u.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,i,r){void 0===n&&(n=""),void 0===i&&(i=""),void 0===r&&(r={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,i,r){void 0===n&&(n=""),void 0===i&&(i=""),void 0===r&&(r={}),JZ(this,void 0,void 0,(function(){var o,a,s,l,c,u;return QZ(this,(function(d){switch(d.label){case 0:return[4,O0("editImage",e,t,n,i)];case 1:return d.sent()?[4,I0("editImage",e,t)]:[2];case 2:return o=d.sent(),null==(a=GL.getSelectedNodeByType(e,"image"))||(s=a.style,l={src:o,alt:n,href:i,style:ZZ(ZZ({},void 0===s?{}:s),r)},pk.setNodes(e,l,{match:function(e){return GL.checkNodeType(e,"image")}}),c=GL.getSelectedNodeByType(e,"image"),(u=e.getMenuConfig("editImage").onUpdatedImage)&&u(c)),[2]}}))}))}(e,t,n,i,r))},e}(),j0=function(){function e(){this.title=Bq("image.viewLink"),this.iconSvg=AJ,this.tag="button"}return e.prototype.getValue=function(e){var t=GL.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),L0=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return GL.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var i=GL.getHoverbar(e);i&&i.hideAndClean();var r=n.style,o={style:ZZ(ZZ({},void 0===r?{}:r),{width:this.value,height:""})};pk.setNodes(e,o,{match:function(e){return GL.checkNodeType(e,"image")}})}}},e}(),z0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return XZ(t,e),t}(L0),V0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return XZ(t,e),t}(L0),H0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return XZ(t,e),t}(L0),U0={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},W0={renderElems:[A0],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,i=n.src,r=n.alt,o=void 0===r?"":r,a=n.href,s=void 0===a?"":a,l=n.style,c=void 0===l?{}:l,u=c.width,d=void 0===u?"":u,h=c.height,p=void 0===h?"":h,f="";return d&&(f+="width: "+d+";"),p&&(f+="height: "+p+";"),'<img src="'+i+'" alt="'+o+'" data-href="'+s+'" style="'+f+'"/>'}}],parseElemsHtml:[T0],menus:[{key:"insertImage",factory:function(){return new B0},config:U0},{key:"deleteImage",factory:function(){return new M0}},{key:"editImage",factory:function(){return new R0},config:U0},{key:"viewImageLink",factory:function(){return new j0}},{key:"imageWidth30",factory:function(){return new z0}},{key:"imageWidth50",factory:function(){return new V0}},{key:"imageWidth100",factory:function(){return new H0}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var i=e;return i.isInline=function(e){return"image"===e.type||t(e)},i.isVoid=function(e){return"image"===e.type||n(e)},i}},q0={type:"todo",renderElem:function(e,t,n){var i=!1;n.isDisabled()&&(i=!0);var r=AA("div",{style:{margin:"5px 0"}},AA("span",{contentEditable:!1,style:{marginRight:"0.5em"}},AA("input",{type:"checkbox",checked:e.checked,disabled:i,on:{change:function(t){var i=GL.findPath(n,e),r={checked:t.target.checked};pk.setNodes(n,r,{at:i})}}})),AA("span",null,t));return r}},Y0=function(){function e(){this.title=Bq("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!GL.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!GL.getSelectedElems(e).some((function(t){if(kS.isVoid(e,t)&&kS.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);pk.setNodes(e,{type:n?"paragraph":"todo"})},e}(),G0={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var i=FE(e);0===(t=t.filter((function(e){return!!KS.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:i.text().replace(/\s+/gm," ")}]);var r=!1;return null!=i.find('input[type="checkbox"]').attr("checked")&&(r=!0),{type:"todo",checked:r,children:t}}},K0={renderElems:[q0],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=FE(e).find("li"),n=FE('<div data-w-e-type="todo"></div>'),i=t.find("input[type]");return n.append(i),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[G0],menus:[{key:"todo",factory:function(){return new Y0}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var i=e.selection;if(i&&VS.isCollapsed(i)){var r=GL.getSelectedNodeByType(e,"todo");if(r&&0===OS.string(r).length)return void pk.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},X0={type:"blockquote",renderElem:function(e,t,n){return AA("blockquote",null,t)}},Z0={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var i=FE(e);return 0===(t=t.filter((function(e){return!!KS.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:i.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},J0=function(){function e(){this.title=Bq("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!GL.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!tJ(kS.nodes(e,{match:function(e){var t=GL.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";pk.setNodes(e,{type:n},{mode:"highest"})}},e}(),Q0={key:"blockquote",factory:function(){return new J0}},e1=CY([].slice),t1=eX("slice"),n1=mG("species"),i1=lY.Array,r1=Math.max;OK({target:"Array",proto:!0,forced:!t1},{slice:function(e,t){var n,i,r,o=IY(this),a=cK(o),s=aK(e,a),l=aK(void 0===t?a:t,a);if(PK(o)&&(n=o.constructor,(qK(n)&&(n===i1||PK(n.prototype))||$Y(n)&&null===(n=n[n1]))&&(n=void 0),n===i1||void 0===n))return e1(o,s,l);for(i=new(void 0===n?i1:n)(r1(l-s,0)),r=0;s<l;s++,r++)s in o&&kZ(i,r,o[s]);return i.length=r,i}});var o1={renderElems:[X0],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[Z0],menus:[Q0],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,i=e;return i.insertBreak=function(){var r=i.selection;if(null==r)return t();var o=tJ(kS.nodes(e,{match:function(e){return GL.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!o)return t();var a=o[0],s=GL.findPath(e,a),l=kS.end(e,s);if(RS.equals(l,r.focus)){var c=OS.string(a);if(c&&"\n"===c.slice(-1))return e.deleteBackward("character"),void pk.insertNodes(i,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},i}},a1=function(){function e(){this.title=Bq("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!tJ(kS.nodes(e,{match:function(t){return"pre"===GL.getNodeType(t)||!!kS.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=FE('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var i=FE(n).text();e.insertText(i)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var i=e.getMenuConfig("emotion").emotions;return(void 0===i?[]:i).forEach((function(e){var t=FE("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),s1={menus:[{key:"emotion",factory:function(){return new a1},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},l1={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},c1={selector:"font",preParseHtml:function(e){var t=FE(e);if("font"!==qZ(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",l1[n]));var i=t.attr("face")||"";return i&&(t.removeAttr("face"),t.css("font-family",i)),t[0]}},u1=CY("".indexOf);OK({target:"String",proto:!0,forced:!hQ("includes")},{includes:function(e){return!!~u1(oX(OY(this)),oX(uQ(e)),arguments.length>1?arguments[1]:void 0)}});var d1,h1,p1=function(e){return e&&e.Math==Math&&e},f1=p1("object"==typeof globalThis&&globalThis)||p1("object"==typeof window&&window)||p1("object"==typeof self&&self)||p1("object"==typeof iY&&iY)||function(){return this}()||Function("return this")(),m1=Function.prototype,g1=m1.apply,v1=m1.bind,y1=m1.call,b1="object"==typeof Reflect&&Reflect.apply||(v1?y1.bind(g1):function(){return y1.apply(g1,arguments)}),w1=Function.prototype,_1=w1.bind,C1=w1.call,x1=_1&&_1.bind(C1),S1=_1?function(e){return e&&x1(C1,e)}:function(e){return e&&function(){return C1.apply(e,arguments)}},k1=function(e){return"function"==typeof e},E1=function(e){try{return!!e()}catch(e){return!0}},D1=!E1((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),A1=Function.prototype.call,T1=A1.bind?A1.bind(A1):function(){return A1.apply(A1,arguments)},O1={}.propertyIsEnumerable,I1=Object.getOwnPropertyDescriptor,P1=I1&&!O1.call({1:2},1)?function(e){var t=I1(this,e);return!!t&&t.enumerable}:O1,$1={f:P1},F1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B1=S1({}.toString),M1=S1("".slice),N1=function(e){return M1(B1(e),8,-1)},R1=f1.Object,j1=S1("".split),L1=E1((function(){return!R1("z").propertyIsEnumerable(0)}))?function(e){return"String"==N1(e)?j1(e,""):R1(e)}:R1,z1=f1.TypeError,V1=function(e){if(null==e)throw z1("Can't call method on "+e);return e},H1=function(e){return L1(V1(e))},U1=function(e){return"object"==typeof e?null!==e:k1(e)},W1={},q1=function(e){return k1(e)?e:void 0},Y1=function(e,t){return arguments.length<2?q1(W1[e])||q1(f1[e]):W1[e]&&W1[e][t]||f1[e]&&f1[e][t]},G1=S1({}.isPrototypeOf),K1=Y1("navigator","userAgent")||"",X1=f1.process,Z1=f1.Deno,J1=X1&&X1.versions||Z1&&Z1.version,Q1=J1&&J1.v8;Q1&&(h1=(d1=Q1.split("."))[0]>0&&d1[0]<4?1:+(d1[0]+d1[1])),!h1&&K1&&(!(d1=K1.match(/Edge\/(\d+)/))||d1[1]>=74)&&(d1=K1.match(/Chrome\/(\d+)/))&&(h1=+d1[1]);var e2=h1,t2=!!Object.getOwnPropertySymbols&&!E1((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&e2&&e2<41})),n2=t2&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,i2=f1.Object,r2=n2?function(e){return"symbol"==typeof e}:function(e){var t=Y1("Symbol");return k1(t)&&G1(t.prototype,i2(e))},o2=f1.String,a2=f1.TypeError,s2=function(e){if(k1(e))return e;throw a2(function(e){try{return o2(e)}catch(e){return"Object"}}(e)+" is not a function")},l2=f1.TypeError,c2=Object.defineProperty,u2=f1["__core-js_shared__"]||function(e,t){try{c2(f1,e,{value:t,configurable:!0,writable:!0})}catch(eh){f1[e]=t}return t}("__core-js_shared__",{}),d2=rY((function(e){(e.exports=function(e,t){return u2[e]||(u2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),h2=f1.Object,p2=function(e){return h2(V1(e))},f2=S1({}.hasOwnProperty),m2=Object.hasOwn||function(e,t){return f2(p2(e),t)},g2=0,v2=Math.random(),y2=S1(1..toString),b2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+y2(++g2+v2,36)},w2=d2("wks"),_2=f1.Symbol,C2=_2&&_2.for,x2=n2?_2:_2&&_2.withoutSetter||b2,S2=function(e){if(!m2(w2,e)||!t2&&"string"!=typeof w2[e]){var t="Symbol."+e;t2&&m2(_2,e)?w2[e]=_2[e]:w2[e]=n2&&C2?C2(t):x2(t)}return w2[e]},k2=f1.TypeError,E2=S2("toPrimitive"),D2=function(e){var t=function(e,t){if(!U1(e)||r2(e))return e;var n,i,r=null==(n=e[E2])?void 0:s2(n);if(r){if(void 0===t&&(t="default"),i=T1(r,e,t),!U1(i)||r2(i))return i;throw k2("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,i;if("string"===t&&k1(n=e.toString)&&!U1(i=T1(n,e)))return i;if(k1(n=e.valueOf)&&!U1(i=T1(n,e)))return i;if("string"!==t&&k1(n=e.toString)&&!U1(i=T1(n,e)))return i;throw l2("Can't convert object to primitive value")}(e,t)}(e,"string");return r2(t)?t:t+""},A2=f1.document,T2=U1(A2)&&U1(A2.createElement),O2=function(e){return T2?A2.createElement(e):{}},I2=!D1&&!E1((function(){return 7!=Object.defineProperty(O2("div"),"a",{get:function(){return 7}}).a})),P2=Object.getOwnPropertyDescriptor,$2={f:D1?P2:function(e,t){if(e=H1(e),t=D2(t),I2)try{return P2(e,t)}catch(e){}if(m2(e,t))return F1(!T1($1.f,e,t),e[t])}},F2=/#|\.prototype\./,B2=function(e,t){var n=N2[M2(e)];return n==j2||n!=R2&&(k1(t)?E1(t):!!t)},M2=B2.normalize=function(e){return String(e).replace(F2,".").toLowerCase()},N2=B2.data={},R2=B2.NATIVE="N",j2=B2.POLYFILL="P",L2=B2,z2=S1(S1.bind),V2=function(e,t){return s2(e),void 0===t?e:z2?z2(e,t):function(){return e.apply(t,arguments)}},H2=f1.String,U2=f1.TypeError,W2=function(e){if(U1(e))return e;throw U2(H2(e)+" is not an object")},q2=f1.TypeError,Y2=Object.defineProperty,G2={f:D1?Y2:function(e,t,n){if(W2(e),t=D2(t),W2(n),I2)try{return Y2(e,t,n)}catch(e){}if("get"in n||"set"in n)throw q2("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},K2=D1?function(e,t,n){return G2.f(e,t,F1(1,n))}:function(e,t,n){return e[t]=n,e},X2=$2.f,Z2=function(e){var t=function(n,i,r){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,r)}return b1(e,this,arguments)};return t.prototype=e.prototype,t},J2=function(e,t){var n,i,r,o,a,s,l,c,u=e.target,d=e.global,h=e.stat,p=e.proto,f=d?f1:h?f1[u]:(f1[u]||{}).prototype,m=d?W1:W1[u]||K2(W1,u,{})[u],g=m.prototype;for(r in t)n=!L2(d?r:u+(h?".":"#")+r,e.forced)&&f&&m2(f,r),a=m[r],n&&(s=e.noTargetGet?(c=X2(f,r))&&c.value:f[r]),o=n&&s?s:t[r],n&&typeof a==typeof o||(l=e.bind&&n?V2(o,f1):e.wrap&&n?Z2(o):p&&k1(o)?S1(o):o,(e.sham||o&&o.sham||a&&a.sham)&&K2(l,"sham",!0),K2(m,r,l),p&&(m2(W1,i=u+"Prototype")||K2(W1,i,{}),K2(W1[i],r,o),e.real&&g&&!g[r]&&K2(g,r,o)))},Q2=Array.isArray||function(e){return"Array"==N1(e)},e4=Math.ceil,t4=Math.floor,n4=function(e){var t=+e;return t!=t||0===t?0:(t>0?t4:e4)(t)},i4=Math.min,r4=function(e){return(t=e.length)>0?i4(n4(t),9007199254740991):0;var t},o4=function(e,t,n){var i=D2(t);i in e?G2.f(e,i,F1(0,n)):e[i]=n},a4={};a4[S2("toStringTag")]="z";var s4="[object z]"===String(a4),l4=S2("toStringTag"),c4=f1.Object,u4="Arguments"==N1(function(){return arguments}()),d4=s4?N1:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=c4(e),l4))?n:u4?N1(t):"Object"==(i=N1(t))&&k1(t.callee)?"Arguments":i},h4=S1(Function.toString);k1(u2.inspectSource)||(u2.inspectSource=function(e){return h4(e)});var p4=u2.inspectSource,f4=function(){},m4=[],g4=Y1("Reflect","construct"),v4=/^\s*(?:class|function)\b/,y4=S1(v4.exec),b4=!v4.exec(f4),w4=function(e){if(!k1(e))return!1;try{return g4(f4,m4,e),!0}catch(e){return!1}},_4=!g4||E1((function(){var e;return w4(w4.call)||!w4(Object)||!w4((function(){e=!0}))||e}))?function(e){if(!k1(e))return!1;switch(d4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return b4||!!y4(v4,p4(e))}:w4,C4=S2("species"),x4=f1.Array,S4=function(e,t){return new(function(e){var t;return Q2(e)&&(t=e.constructor,(_4(t)&&(t===x4||Q2(t.prototype))||U1(t)&&null===(t=t[C4]))&&(t=void 0)),void 0===t?x4:t}(e))(0===t?0:t)},k4=S2("species"),E4=S2("isConcatSpreadable"),D4=f1.TypeError,A4=e2>=51||!E1((function(){var e=[];return e[E4]=!1,e.concat()[0]!==e})),T4=e2>=51||!E1((function(){var e=[];return(e.constructor={})[k4]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),O4=function(e){if(!U1(e))return!1;var t=e[E4];return void 0!==t?!!t:Q2(e)};J2({target:"Array",proto:!0,forced:!A4||!T4},{concat:function(e){var t,n,i,r,o,a=p2(this),s=S4(a,0),l=0;for(t=-1,i=arguments.length;t<i;t++)if(O4(o=-1===t?a:arguments[t])){if(l+(r=r4(o))>9007199254740991)throw D4("Maximum allowed index exceeded");for(n=0;n<r;n++,l++)n in o&&o4(s,l,o[n])}else{if(l>=9007199254740991)throw D4("Maximum allowed index exceeded");o4(s,l++,o)}return s.length=l,s}});var I4,P4=f1.String,$4=function(e){if("Symbol"===d4(e))throw TypeError("Cannot convert a Symbol value to a string");return P4(e)},F4=Math.max,B4=Math.min,M4=function(e,t){var n=n4(e);return n<0?F4(n+t,0):B4(n,t)},N4=function(e){return function(t,n,i){var r,o=H1(t),a=r4(o),s=M4(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},R4={includes:N4(!0),indexOf:N4(!1)},j4={},L4=R4.indexOf,z4=S1([].push),V4=function(e,t){var n,i=H1(e),r=0,o=[];for(n in i)!m2(j4,n)&&m2(i,n)&&z4(o,n);for(;t.length>r;)m2(i,n=t[r++])&&(~L4(o,n)||z4(o,n));return o},H4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],U4=Object.keys||function(e){return V4(e,H4)},W4=D1?Object.defineProperties:function(e,t){W2(e);for(var n,i=H1(t),r=U4(t),o=r.length,a=0;o>a;)G2.f(e,n=r[a++],i[n]);return e},q4=Y1("document","documentElement"),Y4=d2("keys"),G4=function(e){return Y4[e]||(Y4[e]=b2(e))},K4=G4("IE_PROTO"),X4=function(){},Z4=function(e){return"<script>"+e+"<\/script>"},J4=function(e){e.write(Z4("")),e.close();var t=e.parentWindow.Object;return e=null,t},Q4=function(){try{I4=new ActiveXObject("htmlfile")}catch(e){}var e,t;Q4="undefined"!=typeof document?document.domain&&I4?J4(I4):((t=O2("iframe")).style.display="none",q4.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Z4("document.F=Object")),e.close(),e.F):J4(I4);for(var n=H4.length;n--;)delete Q4.prototype[H4[n]];return Q4()};j4[K4]=!0;var e3,t3,n3,i3=Object.create||function(e,t){var n;return null!==e?(X4.prototype=W2(e),n=new X4,X4.prototype=null,n[K4]=e):n=Q4(),void 0===t?n:W4(n,t)},r3=H4.concat("length","prototype"),o3={f:Object.getOwnPropertyNames||function(e){return V4(e,r3)}},a3=f1.Array,s3=Math.max,l3=o3.f,c3="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u3={f:function(e){return c3&&"Window"==N1(e)?function(e){try{return l3(e)}catch(e){return function(e){for(var t=r4(e),n=M4(void 0,t),i=M4(t,t),r=a3(s3(i-n,0)),o=0;n<i;n++,o++)o4(r,o,e[n]);return r.length=o,r}(c3)}}(e):l3(H1(e))}},d3={f:Object.getOwnPropertySymbols},h3=S1([].slice),p3=function(e,t,n,i){i&&i.enumerable?e[t]=n:K2(e,t,n)},f3={f:S2},m3=G2.f,g3=function(e){var t=W1.Symbol||(W1.Symbol={});m2(t,e)||m3(t,e,{value:f3.f(e)})},v3=s4?{}.toString:function(){return"[object "+d4(this)+"]"},y3=G2.f,b3=S2("toStringTag"),w3=function(e,t,n,i){if(e){var r=n?e:e.prototype;m2(r,b3)||y3(r,b3,{configurable:!0,value:t}),i&&!s4&&K2(r,"toString",v3)}},_3=f1.WeakMap,C3=k1(_3)&&/native code/.test(p4(_3)),x3=f1.TypeError,S3=f1.WeakMap;if(C3||u2.state){var k3=u2.state||(u2.state=new S3),E3=S1(k3.get),D3=S1(k3.has),A3=S1(k3.set);e3=function(e,t){if(D3(k3,e))throw new x3("Object already initialized");return t.facade=e,A3(k3,e,t),t},t3=function(e){return E3(k3,e)||{}},n3=function(e){return D3(k3,e)}}else{var T3=G4("state");j4[T3]=!0,e3=function(e,t){if(m2(e,T3))throw new x3("Object already initialized");return t.facade=e,K2(e,T3,t),t},t3=function(e){return m2(e,T3)?e[T3]:{}},n3=function(e){return m2(e,T3)}}var O3={set:e3,get:t3,has:n3,enforce:function(e){return n3(e)?t3(e):e3(e,{})},getterFor:function(e){return function(t){var n;if(!U1(t)||(n=t3(t)).type!==e)throw x3("Incompatible receiver, "+e+" required");return n}}},I3=S1([].push),P3=function(e){var t=1==e,n=2==e,i=3==e,r=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,c,u,d){for(var h,p,f=p2(l),m=L1(f),g=V2(c,u),v=r4(m),y=0,b=d||S4,w=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in m)&&(p=g(h=m[y],y,f),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:I3(w,h)}else switch(e){case 4:return!1;case 7:I3(w,h)}return o?-1:i||r?r:w}},$3=[P3(0),P3(1),P3(2),P3(3),P3(4),P3(5),P3(6),P3(7)][0],F3=G4("hidden"),B3=S2("toPrimitive"),M3=O3.set,N3=O3.getterFor("Symbol"),R3=Object.prototype,j3=f1.Symbol,L3=j3&&j3.prototype,z3=f1.TypeError,V3=f1.QObject,H3=Y1("JSON","stringify"),U3=$2.f,W3=G2.f,q3=u3.f,Y3=$1.f,G3=S1([].push),K3=d2("symbols"),X3=d2("op-symbols"),Z3=d2("string-to-symbol-registry"),J3=d2("symbol-to-string-registry"),Q3=d2("wks"),e5=!V3||!V3.prototype||!V3.prototype.findChild,t5=D1&&E1((function(){return 7!=i3(W3({},"a",{get:function(){return W3(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=U3(R3,t);i&&delete R3[t],W3(e,t,n),i&&e!==R3&&W3(R3,t,i)}:W3,n5=function(e,t){var n=K3[e]=i3(L3);return M3(n,{type:"Symbol",tag:e,description:t}),D1||(n.description=t),n},i5=function(e,t,n){e===R3&&i5(X3,t,n),W2(e);var i=D2(t);return W2(n),m2(K3,i)?(n.enumerable?(m2(e,F3)&&e[F3][i]&&(e[F3][i]=!1),n=i3(n,{enumerable:F1(0,!1)})):(m2(e,F3)||W3(e,F3,F1(1,{})),e[F3][i]=!0),t5(e,i,n)):W3(e,i,n)},r5=function(e,t){W2(e);var n=H1(t),i=U4(n).concat(l5(n));return $3(i,(function(t){D1&&!T1(o5,n,t)||i5(e,t,n[t])})),e},o5=function(e){var t=D2(e),n=T1(Y3,this,t);return!(this===R3&&m2(K3,t)&&!m2(X3,t))&&(!(n||!m2(this,t)||!m2(K3,t)||m2(this,F3)&&this[F3][t])||n)},a5=function(e,t){var n=H1(e),i=D2(t);if(n!==R3||!m2(K3,i)||m2(X3,i)){var r=U3(n,i);return!r||!m2(K3,i)||m2(n,F3)&&n[F3][i]||(r.enumerable=!0),r}},s5=function(e){var t=q3(H1(e)),n=[];return $3(t,(function(e){m2(K3,e)||m2(j4,e)||G3(n,e)})),n},l5=function(e){var t=e===R3,n=q3(t?X3:H1(e)),i=[];return $3(n,(function(e){!m2(K3,e)||t&&!m2(R3,e)||G3(i,K3[e])})),i};if(t2||(L3=(j3=function(){if(G1(L3,this))throw z3("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?$4(arguments[0]):void 0,t=b2(e),n=function(e){this===R3&&T1(n,X3,e),m2(this,F3)&&m2(this[F3],t)&&(this[F3][t]=!1),t5(this,t,F1(1,e))};return D1&&e5&&t5(R3,t,{configurable:!0,set:n}),n5(t,e)}).prototype,p3(L3,"toString",(function(){return N3(this).tag})),p3(j3,"withoutSetter",(function(e){return n5(b2(e),e)})),$1.f=o5,G2.f=i5,$2.f=a5,o3.f=u3.f=s5,d3.f=l5,f3.f=function(e){return n5(S2(e),e)},D1&&W3(L3,"description",{configurable:!0,get:function(){return N3(this).description}})),J2({global:!0,wrap:!0,forced:!t2,sham:!t2},{Symbol:j3}),$3(U4(Q3),(function(e){g3(e)})),J2({target:"Symbol",stat:!0,forced:!t2},{for:function(e){var t=$4(e);if(m2(Z3,t))return Z3[t];var n=j3(t);return Z3[t]=n,J3[n]=t,n},keyFor:function(e){if(!r2(e))throw z3(e+" is not a symbol");if(m2(J3,e))return J3[e]},useSetter:function(){e5=!0},useSimple:function(){e5=!1}}),J2({target:"Object",stat:!0,forced:!t2,sham:!D1},{create:function(e,t){return void 0===t?i3(e):r5(i3(e),t)},defineProperty:i5,defineProperties:r5,getOwnPropertyDescriptor:a5}),J2({target:"Object",stat:!0,forced:!t2},{getOwnPropertyNames:s5,getOwnPropertySymbols:l5}),J2({target:"Object",stat:!0,forced:E1((function(){d3.f(1)}))},{getOwnPropertySymbols:function(e){return d3.f(p2(e))}}),H3){var c5=!t2||E1((function(){var e=j3();return"[null]"!=H3([e])||"{}"!=H3({a:e})||"{}"!=H3(Object(e))}));J2({target:"JSON",stat:!0,forced:c5},{stringify:function(e,t,n){var i=h3(arguments),r=t;if((U1(t)||void 0!==e)&&!r2(e))return Q2(t)||(t=function(e,t){if(k1(r)&&(t=T1(r,this,e,t)),!r2(t))return t}),i[1]=t,b1(H3,null,i)}})}if(!L3[B3]){var u5=L3.valueOf;p3(L3,B3,(function(e){return T1(u5,this)}))}w3(j3,"Symbol"),j4[F3]=!0,g3("asyncIterator"),g3("hasInstance"),g3("isConcatSpreadable"),g3("iterator"),g3("match"),g3("matchAll"),g3("replace"),g3("search"),g3("species"),g3("split"),g3("toPrimitive"),g3("toStringTag"),g3("unscopables"),w3(f1.JSON,"JSON",!0);var d5,h5,p5,f5=W1.Symbol,m5={},g5=Function.prototype,v5=D1&&Object.getOwnPropertyDescriptor,y5=m2(g5,"name"),b5={EXISTS:y5,PROPER:y5&&"something"===function(){}.name,CONFIGURABLE:y5&&(!D1||D1&&v5(g5,"name").configurable)},w5=!E1((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),_5=G4("IE_PROTO"),C5=f1.Object,x5=C5.prototype,S5=w5?C5.getPrototypeOf:function(e){var t=p2(e);if(m2(t,_5))return t[_5];var n=t.constructor;return k1(n)&&t instanceof n?n.prototype:t instanceof C5?x5:null},k5=S2("iterator"),E5=!1;[].keys&&("next"in(p5=[].keys())?(h5=S5(S5(p5)))!==Object.prototype&&(d5=h5):E5=!0);var D5=null==d5||E1((function(){var e={};return d5[k5].call(e)!==e}));d5=D5?{}:i3(d5),k1(d5[k5])||p3(d5,k5,(function(){return this}));var A5={IteratorPrototype:d5,BUGGY_SAFARI_ITERATORS:E5},T5=A5.IteratorPrototype,O5=function(){return this};f1.String,f1.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{S1(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var I5=b5.PROPER,P5=A5.BUGGY_SAFARI_ITERATORS,$5=S2("iterator"),F5=function(){return this},B5=function(e,t,n,i,r,o,a){!function(e,t,n){var i=t+" Iterator";e.prototype=i3(T5,{next:F1(1,n)}),w3(e,i,!1,!0),m5[i]=O5}(n,t,i);var s,l,c,u=function(e){if(e===r&&m)return m;if(!P5&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",h=!1,p=e.prototype,f=p[$5]||p["@@iterator"]||r&&p[r],m=!P5&&f||u(r),g="Array"==t&&p.entries||f;if(g&&(s=S5(g.call(new e)))!==Object.prototype&&s.next&&(w3(s,d,!0,!0),m5[d]=F5),I5&&"values"==r&&f&&"values"!==f.name&&(h=!0,m=function(){return T1(f,this)}),r)if(l={values:u("values"),keys:o?m:u("keys"),entries:u("entries")},a)for(c in l)(P5||h||!(c in p))&&p3(p,c,l[c]);else J2({target:t,proto:!0,forced:P5||h},l);return a&&p[$5]!==m&&p3(p,$5,m,{name:r}),m5[t]=m,l},M5=O3.set,N5=O3.getterFor("Array Iterator");B5(Array,"Array",(function(e,t){M5(this,{type:"Array Iterator",target:H1(e),index:0,kind:t})}),(function(){var e=N5(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),m5.Arguments=m5.Array;var R5=S2("toStringTag");for(var j5 in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var L5=f1[j5],z5=L5&&L5.prototype;z5&&d4(z5)!==R5&&K2(z5,R5,j5),m5[j5]=m5.Array}var V5=f5;g3("asyncDispose"),g3("dispose"),g3("matcher"),g3("metadata"),g3("observable"),g3("patternMatch"),g3("replaceAll");var H5=V5,U5=S1("".charAt),W5=S1("".charCodeAt),q5=S1("".slice),Y5=function(e){return function(t,n){var i,r,o=$4(V1(t)),a=n4(n),s=o.length;return a<0||a>=s?e?"":void 0:(i=W5(o,a))<55296||i>56319||a+1===s||(r=W5(o,a+1))<56320||r>57343?e?U5(o,a):i:e?q5(o,a,a+2):r-56320+(i-55296<<10)+65536}},G5=(Y5(!1),Y5(!0)),K5=O3.set,X5=O3.getterFor("String Iterator");B5(String,"String",(function(e){K5(this,{type:"String Iterator",string:$4(e),index:0})}),(function(){var e,t=X5(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=G5(n,i),t.index+=e.length,{value:e,done:!1})}));var Z5=f3.f("iterator"),J5=rY((function(e){function t(n){return"function"==typeof H5&&"symbol"==typeof Z5?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof H5&&e.constructor===H5&&e!==H5.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Q5=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(J5),e6=QG.EXISTS,t6=OG.f,n6=Function.prototype,i6=CY(n6.toString),r6=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,o6=CY(r6.exec);uY&&!e6&&t6(n6,"name",{configurable:!0,get:function(){try{return o6(r6,i6(this))[1]}catch(Jd){return""}}});var a6=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=kS.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!tJ(kS.nodes(e,{match:function(t){return"pre"===GL.getNodeType(t)||!!kS.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),s6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("fontSize.title"),t.iconSvg=IJ,t.mark="fontSize",t}return XZ(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,i=void 0===n?[]:n;t.push({text:Bq("fontSize.default"),value:""}),i.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===Q5(e)){var n=e.name,i=e.value;t.push({text:n,value:i})}}));var r=this.getValue(e);return t.forEach((function(e){e.value===r?e.selected=!0:delete e.selected})),t},t}(a6),l6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("fontFamily.title"),t.iconSvg=PJ,t.mark="fontFamily",t.selectPanelWidth=150,t}return XZ(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,i=void 0===n?[]:n;t.push({text:Bq("fontFamily.default"),value:""}),i.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===Q5(e)){var n=e.name,i=e.value;t.push({text:n,value:i,styleForRenderMenuList:{"font-family":i}})}}));var r=this.getValue(e);return t.forEach((function(e){e.value===r?e.selected=!0:delete e.selected})),t},t}(a6),c6={renderStyle:function(e,t){var n=e,i=n.fontSize,r=n.fontFamily,o=t;return i&&zQ(o,{fontSize:i}),r&&zQ(o,{fontFamily:r}),o},styleToHtml:function(e,t){if(!KS.isText(e))return t;var n,i=e,r=i.fontSize,o=i.fontFamily;return r||o?((UZ(t)||"span"!==qZ(n=FE(t)))&&(n=FE("<span>"+t+"</span>")),r&&n.css("font-size",r),o&&n.css("font-family",o),WZ(n)):t},preParseHtml:[c1],parseStyleHtml:function(e,t,n){var i=FE(e);if(!KS.isText(t))return t;var r=t,o=n.getMenuConfig("fontSize").fontSizeList,a=void 0===o?[]:o,s=YZ(i,"font-size"),l=a.find((function(e){return e.value&&e.value===s}))||a.includes(s);s&&l&&(r.fontSize=s);var c=n.getMenuConfig("fontFamily").fontFamilyList,u=void 0===c?[]:c,d=YZ(i,"font-family").replace(/"/g,""),h=u.find((function(e){return e.value&&e.value===d}))||u.includes(d);return d&&h&&(r.fontFamily=d),r},menus:[{key:"fontSize",factory:function(){return new s6},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new l6},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},u6={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=FE(e),n=YZ(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},d6=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=tJ(kS.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":tJ(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=tJ(kS.nodes(e,{match:function(e){var t=GL.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),h6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("indent.decrease"),t.iconSvg=$J,t}return XZ(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){pk.setNodes(e,{indent:null},{match:function(e){return bS.isElement(e)}})},t}(d6),p6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("indent.increase"),t.iconSvg=FJ,t}return XZ(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){pk.setNodes(e,{indent:"2em"},{match:function(e){return bS.isElement(e)},mode:"highest"})},t}(d6),f6={renderStyle:function(e,t){if(!bS.isElement(e))return t;var n=e.indent,i=t;return n&&zQ(i,{textIndent:n}),i},styleToHtml:function(e,t){if(!bS.isElement(e))return t;var n=e.indent;if(!n)return t;var i=FE(t);return i.css("text-indent",n),WZ(i)},preParseHtml:[u6],parseStyleHtml:function(e,t,n){var i=FE(e);if(!bS.isElement(t))return t;var r=t,o=YZ(i,"text-indent"),a=parseInt(o,10);return o&&a>0&&(r.indent=o),r},menus:[{key:"indent",factory:function(){return new p6}},{key:"delIndent",factory:function(){return new h6}}]},m6=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=tJ(kS.nodes(e,{match:function(e){var t=GL.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!GL.getSelectedElems(e).some((function(t){if(kS.isVoid(e,t)&&kS.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),g6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("justify.left"),t.iconSvg=BJ,t}return XZ(t,e),t.prototype.exec=function(e,t){pk.setNodes(e,{textAlign:"left"},{match:function(t){return bS.isElement(t)&&!e.isInline(t)}})},t}(m6),v6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("justify.right"),t.iconSvg=MJ,t}return XZ(t,e),t.prototype.exec=function(e,t){pk.setNodes(e,{textAlign:"right"},{match:function(t){return bS.isElement(t)&&!e.isInline(t)}})},t}(m6),y6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("justify.center"),t.iconSvg=NJ,t}return XZ(t,e),t.prototype.exec=function(e,t){pk.setNodes(e,{textAlign:"center"},{match:function(t){return bS.isElement(t)&&!e.isInline(t)}})},t}(m6),b6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("justify.justify"),t.iconSvg=RJ,t}return XZ(t,e),t.prototype.exec=function(e,t){pk.setNodes(e,{textAlign:"justify"},{match:function(t){return bS.isElement(t)&&!e.isInline(t)}})},t}(m6),w6={renderStyle:function(e,t){if(!bS.isElement(e))return t;var n=e.textAlign,i=t;return n&&zQ(i,{textAlign:n}),i},styleToHtml:function(e,t){if(!bS.isElement(e))return t;var n=e.textAlign;if(!n)return t;var i=FE(t);return i.css("text-align",n),WZ(i)},parseStyleHtml:function(e,t,n){var i=FE(e);if(!bS.isElement(t))return t;var r=t,o=YZ(i,"text-align");return o&&(r.textAlign=o),r},menus:[{key:"justifyLeft",factory:function(){return new g6}},{key:"justifyRight",factory:function(){return new v6}},{key:"justifyCenter",factory:function(){return new y6}},{key:"justifyJustify",factory:function(){return new b6}}]},_6=function(){function e(){this.title=Bq("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,i=void 0===n?[]:n;t.push({text:Bq("lineHeight.default"),value:""}),i.forEach((function(e){t.push({text:e,value:e})}));var r=this.getValue(e);return t.forEach((function(e){e.value===r?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=tJ(kS.nodes(e,{match:function(e){var t=GL.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":bS.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){pk.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),C6={renderStyle:function(e,t){if(!bS.isElement(e))return t;var n=e.lineHeight,i=t;return n&&zQ(i,{lineHeight:n}),i},styleToHtml:function(e,t){if(!bS.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var i=FE(t);return i.css("line-height",n),WZ(i)},parseStyleHtml:function(e,t,n){var i=FE(e);if(!bS.isElement(t))return t;var r=t,o=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===o?[]:o,s=YZ(i,"line-height");return s&&a.includes(s)&&(r.lineHeight=s),r},menus:[{key:"lineHeight",factory:function(){return new _6},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},x6=function(){function e(){this.title=Bq("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),S6=function(){function e(){this.title=Bq("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),k6={menus:[{key:"redo",factory:function(){return new x6}},{key:"undo",factory:function(){return new S6}}]},E6={type:"divider",renderElem:function(e,t,n){return lA("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:GL.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[lA("hr")])}},D6=function(){function e(){this.title=Bq("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!GL.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=GL.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){pk.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),A6={renderElems:[E6],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new D6}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,i=e;return i.isVoid=function(e){return"divider"===e.type||t(e)},i.normalizeNode=function(e){var t=tJ(e,2),r=t[0],o=t[1];if("divider"!==GL.getNodeType(r))return n([r,o]);GL.isLastNode(i,r)&&pk.insertNodes(i,GL.genEmptyParagraph(),{at:[o[0]+1]})},i}},T6=JK.map;OK({target:"Array",proto:!0,forced:!eX("map")},{map:function(e){return T6(this,e,arguments.length>1?arguments[1]:void 0)}});var O6=CY([].join),I6=AY!=Object,P6=fJ("join",",");OK({target:"Array",proto:!0,forced:I6||!P6},{join:function(e){return O6(IY(this),void 0===e?",":e)}});var $6=function(){function e(){this.title=Bq("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=GL.getSelectedNodeByType(e,"code");if(null==t)return null;var n=GL.getParentNode(e,t);return null==n||"pre"!==GL.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=GL.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=GL.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=OS.string(t);pk.removeNodes(e,{mode:"highest"});var i=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));pk.insertNodes(e,i,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,i,r=[],o=kS.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=eJ(o),s=a.next();!s.done;s=a.next()){var l=tJ(s.value,1)[0];l&&r.push(OS.string(l))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}pk.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:t,children:[{text:r.join("\n")}]}]};pk.insertNodes(e,c,{mode:"highest"})},e}(),F6={key:"codeBlock",factory:function(){return new $6}};OK({target:"String",proto:!0,forced:sJ("anchor")},{anchor:function(e){return aJ(this,"a","name",e)}}),WX("match",(function(e,t,n){return[function(t){var n=OY(this),i=null==t?void 0:ZY(t,e);return i?hY(i,t,n):new RegExp(t)[e](oX(n))},function(e){var i=DG(this),r=oX(e),o=n(t,i,r);if(o.done)return o.value;if(!i.global)return aZ(i,r);var a=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;null!==(s=aZ(i,r));){var u=oX(s[0]);l[c]=u,""===u&&(i.lastIndex=ZX(r,lK(i.lastIndex),a)),c++}return 0===c?null:l}]}));var B6={type:"pre",renderElem:function(e,t,n){return AA("pre",null,t)}},M6={type:"code",renderElem:function(e,t,n){return AA("code",null,t)}},N6={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var i=FE(e);return 0===(t=t.filter((function(e){return"code"===GL.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:i[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===GL.getNodeType(e)}))}}},R6={menus:[F6],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,i=e.insertData;e.insertNode;var r=e;return r.insertBreak=function(){var e=GL.getSelectedNodeByType(r,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var i=OS.string(e),r=n.anchor.offset,o=i.slice(0,r).split("\n"),a=o.length;return 0===a?"":o[a-1]}(e,r);if(n){var i=n.match(/^\s+/);if(null!=i&&null!=i[0]){var o=i[0];return void r.insertText("\n"+o)}}r.insertText("\n")}else t()},r.normalizeNode=function(e){var t=tJ(e,2),i=t[0],o=t[1],a=GL.getNodeType(i);return"code"===a&&o.length<=1&&pk.setNodes(r,{type:"paragraph"},{at:o}),"pre"===a&&(GL.isLastNode(r,i)&&pk.insertNodes(r,GL.genEmptyParagraph(),{at:[o[0]+1]}),"code"!==GL.getNodeType(i.children[0])&&(pk.unwrapNodes(r),pk.setNodes(r,{type:"paragraph"},{mode:"highest"}))),n([i,o])},r.insertData=function(e){if(null!=GL.getSelectedNodeByType(r,"code")){var t=e.getData("text/plain");kS.insertText(r,t)}else i(e)},r},renderElems:[B6,M6],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=FE(e);if("code"!==qZ(t))return e;var n=t.find("xmp");if(0===n.length)return e;var i=n.text();return n.remove(),t.text(i),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:FE(e)[0].textContent||""}]}}},N6]},j6=function(){function e(){this.title=Bq("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),L6={menus:[{key:"fullScreen",factory:function(){return new j6}}]},z6=function(){function e(){this.title=Bq("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!VS.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var i=[n.anchor.path[0]];pk.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:i}),e.select(kS.start(e,i))}},e}(),V6=[KJ,YQ,c6,f6,w6,C6,W0,A6,s1,f0,R6,o1,MQ,iJ,K0,k6,L6,{menus:[{key:"enter",factory:function(){return new z6}}]}];$q("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),$q("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var H6="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof i.g?i.g:"undefined"!=typeof self?self:{};function U6(e){var t={exports:{}};return e(t,t.exports),t.exports}var W6,q6,Y6=function(e){return e&&e.Math==Math&&e},G6=Y6("object"==typeof globalThis&&globalThis)||Y6("object"==typeof window&&window)||Y6("object"==typeof self&&self)||Y6("object"==typeof H6&&H6)||function(){return this}()||Function("return this")(),K6=Function.prototype,X6=K6.bind,Z6=K6.call,J6=X6&&X6.bind(Z6),Q6=X6?function(e){return e&&J6(Z6,e)}:function(e){return e&&function(){return Z6.apply(e,arguments)}},e8=function(e){try{return!!e()}catch(e){return!0}},t8=Q6({}.toString),n8=Q6("".slice),i8=function(e){return n8(t8(e),8,-1)},r8=G6.Object,o8=Q6("".split),a8=e8((function(){return!r8("z").propertyIsEnumerable(0)}))?function(e){return"String"==i8(e)?o8(e,""):r8(e)}:r8,s8=G6.TypeError,l8=function(e){if(null==e)throw s8("Can't call method on "+e);return e},c8=function(e){return a8(l8(e))},u8=Object.defineProperty,d8=function(e,t){try{u8(G6,e,{value:t,configurable:!0,writable:!0})}catch(eh){G6[e]=t}return t},h8=G6["__core-js_shared__"]||d8("__core-js_shared__",{}),p8=U6((function(e){(e.exports=function(e,t){return h8[e]||(h8[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),f8=G6.Object,m8=function(e){return f8(l8(e))},g8=Q6({}.hasOwnProperty),v8=Object.hasOwn||function(e,t){return g8(m8(e),t)},y8=0,b8=Math.random(),w8=Q6(1..toString),_8=function(e){return"Symbol("+(void 0===e?"":e)+")_"+w8(++y8+b8,36)},C8=function(e){return"function"==typeof e},x8=function(e){return C8(e)?e:void 0},S8=function(e,t){return arguments.length<2?x8(G6[e]):G6[e]&&G6[e][t]},k8=S8("navigator","userAgent")||"",E8=G6.process,D8=G6.Deno,A8=E8&&E8.versions||D8&&D8.version,T8=A8&&A8.v8;T8&&(q6=(W6=T8.split("."))[0]>0&&W6[0]<4?1:+(W6[0]+W6[1])),!q6&&k8&&(!(W6=k8.match(/Edge\/(\d+)/))||W6[1]>=74)&&(W6=k8.match(/Chrome\/(\d+)/))&&(q6=+W6[1]);var O8,I8=q6,P8=!!Object.getOwnPropertySymbols&&!e8((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&I8&&I8<41})),$8=P8&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,F8=p8("wks"),B8=G6.Symbol,M8=B8&&B8.for,N8=$8?B8:B8&&B8.withoutSetter||_8,R8=function(e){if(!v8(F8,e)||!P8&&"string"!=typeof F8[e]){var t="Symbol."+e;P8&&v8(B8,e)?F8[e]=B8[e]:F8[e]=$8&&M8?M8(t):N8(t)}return F8[e]},j8=function(e){return"object"==typeof e?null!==e:C8(e)},L8=G6.String,z8=G6.TypeError,V8=function(e){if(j8(e))return e;throw z8(L8(e)+" is not an object")},H8=!e8((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),U8=G6.document,W8=j8(U8)&&j8(U8.createElement),q8=function(e){return W8?U8.createElement(e):{}},Y8=!H8&&!e8((function(){return 7!=Object.defineProperty(q8("div"),"a",{get:function(){return 7}}).a})),G8=Function.prototype.call,K8=G8.bind?G8.bind(G8):function(){return G8.apply(G8,arguments)},X8=Q6({}.isPrototypeOf),Z8=G6.Object,J8=$8?function(e){return"symbol"==typeof e}:function(e){var t=S8("Symbol");return C8(t)&&X8(t.prototype,Z8(e))},Q8=G6.String,e7=function(e){try{return Q8(e)}catch(e){return"Object"}},t7=G6.TypeError,n7=function(e){if(C8(e))return e;throw t7(e7(e)+" is not a function")},i7=function(e,t){var n=e[t];return null==n?void 0:n7(n)},r7=G6.TypeError,o7=G6.TypeError,a7=R8("toPrimitive"),s7=function(e){var t=function(e,t){if(!j8(e)||J8(e))return e;var n,i=i7(e,a7);if(i){if(void 0===t&&(t="default"),n=K8(i,e,t),!j8(n)||J8(n))return n;throw o7("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,i;if("string"===t&&C8(n=e.toString)&&!j8(i=K8(n,e)))return i;if(C8(n=e.valueOf)&&!j8(i=K8(n,e)))return i;if("string"!==t&&C8(n=e.toString)&&!j8(i=K8(n,e)))return i;throw r7("Can't convert object to primitive value")}(e,t)}(e,"string");return J8(t)?t:t+""},l7=G6.TypeError,c7=Object.defineProperty,u7={f:H8?c7:function(e,t,n){if(V8(e),t=s7(t),V8(n),Y8)try{return c7(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l7("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},d7=Math.ceil,h7=Math.floor,p7=function(e){var t=+e;return t!=t||0===t?0:(t>0?h7:d7)(t)},f7=Math.max,m7=Math.min,g7=function(e,t){var n=p7(e);return n<0?f7(n+t,0):m7(n,t)},v7=Math.min,y7=function(e){return e>0?v7(p7(e),9007199254740991):0},b7=function(e){return y7(e.length)},w7=function(e){return function(t,n,i){var r,o=c8(t),a=b7(o),s=g7(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},_7={includes:w7(!0),indexOf:w7(!1)},C7={},x7=_7.indexOf,S7=Q6([].push),k7=function(e,t){var n,i=c8(e),r=0,o=[];for(n in i)!v8(C7,n)&&v8(i,n)&&S7(o,n);for(;t.length>r;)v8(i,n=t[r++])&&(~x7(o,n)||S7(o,n));return o},E7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],D7=Object.keys||function(e){return k7(e,E7)},A7=H8?Object.defineProperties:function(e,t){V8(e);for(var n,i=c8(t),r=D7(t),o=r.length,a=0;o>a;)u7.f(e,n=r[a++],i[n]);return e},T7=S8("document","documentElement"),O7=p8("keys"),I7=function(e){return O7[e]||(O7[e]=_8(e))},P7=I7("IE_PROTO"),$7=function(){},F7=function(e){return"<script>"+e+"<\/script>"},B7=function(e){e.write(F7("")),e.close();var t=e.parentWindow.Object;return e=null,t},M7=function(){try{O8=new ActiveXObject("htmlfile")}catch(e){}var e,t;M7="undefined"!=typeof document?document.domain&&O8?B7(O8):((t=q8("iframe")).style.display="none",T7.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(F7("document.F=Object")),e.close(),e.F):B7(O8);for(var n=E7.length;n--;)delete M7.prototype[E7[n]];return M7()};C7[P7]=!0;var N7=Object.create||function(e,t){var n;return null!==e?($7.prototype=V8(e),n=new $7,$7.prototype=null,n[P7]=e):n=M7(),void 0===t?n:A7(n,t)},R7=R8("unscopables"),j7=Array.prototype;null==j7[R7]&&u7.f(j7,R7,{configurable:!0,value:N7(null)});var L7=function(e){j7[R7][e]=!0},z7={},V7=Q6(Function.toString);C8(h8.inspectSource)||(h8.inspectSource=function(e){return V7(e)});var H7,U7,W7,q7=h8.inspectSource,Y7=G6.WeakMap,G7=C8(Y7)&&/native code/.test(q7(Y7)),K7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},X7=H8?function(e,t,n){return u7.f(e,t,K7(1,n))}:function(e,t,n){return e[t]=n,e},Z7=G6.TypeError,J7=G6.WeakMap;if(G7||h8.state){var Q7=h8.state||(h8.state=new J7),e9=Q6(Q7.get),t9=Q6(Q7.has),n9=Q6(Q7.set);H7=function(e,t){if(t9(Q7,e))throw new Z7("Object already initialized");return t.facade=e,n9(Q7,e,t),t},U7=function(e){return e9(Q7,e)||{}},W7=function(e){return t9(Q7,e)}}else{var i9=I7("state");C7[i9]=!0,H7=function(e,t){if(v8(e,i9))throw new Z7("Object already initialized");return t.facade=e,X7(e,i9,t),t},U7=function(e){return v8(e,i9)?e[i9]:{}},W7=function(e){return v8(e,i9)}}var r9,o9,a9,s9={set:H7,get:U7,has:W7,enforce:function(e){return W7(e)?U7(e):H7(e,{})},getterFor:function(e){return function(t){var n;if(!j8(t)||(n=U7(t)).type!==e)throw Z7("Incompatible receiver, "+e+" required");return n}}},l9={}.propertyIsEnumerable,c9=Object.getOwnPropertyDescriptor,u9={f:c9&&!l9.call({1:2},1)?function(e){var t=c9(this,e);return!!t&&t.enumerable}:l9},d9=Object.getOwnPropertyDescriptor,h9={f:H8?d9:function(e,t){if(e=c8(e),t=s7(t),Y8)try{return d9(e,t)}catch(e){}if(v8(e,t))return K7(!K8(u9.f,e,t),e[t])}},p9=Function.prototype,f9=H8&&Object.getOwnPropertyDescriptor,m9=v8(p9,"name"),g9={EXISTS:m9,PROPER:m9&&"something"===function(){}.name,CONFIGURABLE:m9&&(!H8||H8&&f9(p9,"name").configurable)},v9=U6((function(e){var t=g9.CONFIGURABLE,n=s9.get,i=s9.enforce,r=String(String).split("String");(e.exports=function(e,n,o,a){var s,l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;C8(o)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!v8(o,"name")||t&&o.name!==d)&&X7(o,"name",d),(s=i(o)).source||(s.source=r.join("string"==typeof d?d:""))),e!==G6?(l?!u&&e[n]&&(c=!0):delete e[n],c?e[n]=o:X7(e,n,o)):c?e[n]=o:d8(n,o)})(Function.prototype,"toString",(function(){return C8(this)&&n(this).source||q7(this)}))})),y9=E7.concat("length","prototype"),b9={f:Object.getOwnPropertyNames||function(e){return k7(e,y9)}},w9={f:Object.getOwnPropertySymbols},_9=Q6([].concat),C9=S8("Reflect","ownKeys")||function(e){var t=b9.f(V8(e)),n=w9.f;return n?_9(t,n(e)):t},x9=function(e,t){for(var n=C9(t),i=u7.f,r=h9.f,o=0;o<n.length;o++){var a=n[o];v8(e,a)||i(e,a,r(t,a))}},S9=/#|\.prototype\./,k9=function(e,t){var n=D9[E9(e)];return n==T9||n!=A9&&(C8(t)?e8(t):!!t)},E9=k9.normalize=function(e){return String(e).replace(S9,".").toLowerCase()},D9=k9.data={},A9=k9.NATIVE="N",T9=k9.POLYFILL="P",O9=k9,I9=h9.f,P9=function(e,t){var n,i,r,o,a,s=e.target,l=e.global,c=e.stat;if(n=l?G6:c?G6[s]||d8(s,{}):(G6[s]||{}).prototype)for(i in t){if(o=t[i],r=e.noTargetGet?(a=I9(n,i))&&a.value:n[i],!O9(l?i:s+(c?".":"#")+i,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;x9(o,r)}(e.sham||r&&r.sham)&&X7(o,"sham",!0),v9(n,i,o,e)}},$9=!e8((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),F9=I7("IE_PROTO"),B9=G6.Object,M9=B9.prototype,N9=$9?B9.getPrototypeOf:function(e){var t=m8(e);if(v8(t,F9))return t[F9];var n=t.constructor;return C8(n)&&t instanceof n?n.prototype:t instanceof B9?M9:null},R9=R8("iterator"),j9=!1;[].keys&&("next"in(a9=[].keys())?(o9=N9(N9(a9)))!==Object.prototype&&(r9=o9):j9=!0);var L9=null==r9||e8((function(){var e={};return r9[R9].call(e)!==e}));L9&&(r9={}),C8(r9[R9])||v9(r9,R9,(function(){return this}));var z9={IteratorPrototype:r9,BUGGY_SAFARI_ITERATORS:j9},V9=u7.f,H9=R8("toStringTag"),U9=function(e,t,n){e&&!v8(e=n?e:e.prototype,H9)&&V9(e,H9,{configurable:!0,value:t})},W9=z9.IteratorPrototype,q9=function(){return this},Y9=G6.String,G9=G6.TypeError,K9=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Q6(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return V8(n),function(e){if("object"==typeof e||C8(e))return e;throw G9("Can't set "+Y9(e)+" as a prototype")}(i),t?e(n,i):n.__proto__=i,n}}():void 0),X9=g9.PROPER,Z9=g9.CONFIGURABLE,J9=z9.IteratorPrototype,Q9=z9.BUGGY_SAFARI_ITERATORS,eee=R8("iterator"),tee=function(){return this},nee=function(e,t,n,i,r,o,a){!function(e,t,n){var i=t+" Iterator";e.prototype=N7(W9,{next:K7(1,n)}),U9(e,i,!1),z7[i]=q9}(n,t,i);var s,l,c,u=function(e){if(e===r&&m)return m;if(!Q9&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",h=!1,p=e.prototype,f=p[eee]||p["@@iterator"]||r&&p[r],m=!Q9&&f||u(r),g="Array"==t&&p.entries||f;if(g&&(s=N9(g.call(new e)))!==Object.prototype&&s.next&&(N9(s)!==J9&&(K9?K9(s,J9):C8(s[eee])||v9(s,eee,tee)),U9(s,d,!0)),X9&&"values"==r&&f&&"values"!==f.name&&(Z9?X7(p,"name","values"):(h=!0,m=function(){return K8(f,this)})),r)if(l={values:u("values"),keys:o?m:u("keys"),entries:u("entries")},a)for(c in l)(Q9||h||!(c in p))&&v9(p,c,l[c]);else P9({target:t,proto:!0,forced:Q9||h},l);return p[eee]!==m&&v9(p,eee,m,{name:r}),z7[t]=m,l},iee=s9.set,ree=s9.getterFor("Array Iterator"),oee=nee(Array,"Array",(function(e,t){iee(this,{type:"Array Iterator",target:c8(e),index:0,kind:t})}),(function(){var e=ree(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");z7.Arguments=z7.Array,L7("keys"),L7("values"),L7("entries");var aee={};aee[R8("toStringTag")]="z";var see="[object z]"===String(aee),lee=R8("toStringTag"),cee=G6.Object,uee="Arguments"==i8(function(){return arguments}()),dee=see?i8:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=cee(e),lee))?n:uee?i8(t):"Object"==(i=i8(t))&&C8(t.callee)?"Arguments":i},hee=see?{}.toString:function(){return"[object "+dee(this)+"]"};see||v9(Object.prototype,"toString",hee,{unsafe:!0});var pee=G6.String,fee=function(e){if("Symbol"===dee(e))throw TypeError("Cannot convert a Symbol value to a string");return pee(e)},mee=Q6("".charAt),gee=Q6("".charCodeAt),vee=Q6("".slice),yee=function(e){return function(t,n){var i,r,o=fee(l8(t)),a=p7(n),s=o.length;return a<0||a>=s?e?"":void 0:(i=gee(o,a))<55296||i>56319||a+1===s||(r=gee(o,a+1))<56320||r>57343?e?mee(o,a):i:e?vee(o,a,a+2):r-56320+(i-55296<<10)+65536}},bee={codeAt:yee(!1),charAt:yee(!0)},wee=bee.charAt,_ee=s9.set,Cee=s9.getterFor("String Iterator");nee(String,"String",(function(e){_ee(this,{type:"String Iterator",string:fee(e),index:0})}),(function(){var e,t=Cee(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=wee(n,i),t.index+=e.length,{value:e,done:!1})}));var xee=function(e,t,n){for(var i in t)v9(e,i,t[i],n);return e},See=G6.Array,kee=Math.max,Eee=b9.f,Dee="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Aee={f:function(e){return Dee&&"Window"==i8(e)?function(e){try{return Eee(e)}catch(e){return function(e){for(var t,n,i,r,o=b7(e),a=g7(void 0,o),s=g7(o,o),l=See(kee(s-a,0)),c=0;a<s;a++,c++)t=l,n=c,i=e[a],(r=s7(n))in t?u7.f(t,r,K7(0,i)):t[r]=i;return l.length=c,l}(Dee)}}(e):Eee(c8(e))}},Tee=e8((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Oee=Object.isExtensible,Iee=e8((function(){Oee(1)}))||Tee?function(e){return!!j8(e)&&(!Tee||"ArrayBuffer"!=i8(e))&&(!Oee||Oee(e))}:Oee,Pee=!e8((function(){return Object.isExtensible(Object.preventExtensions({}))})),$ee=U6((function(e){var t=u7.f,n=!1,i=_8("meta"),r=0,o=function(e){t(e,i,{value:{objectID:"O"+r++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=b9.f,t=Q6([].splice),r={};r[i]=1,e(r).length&&(b9.f=function(n){for(var r=e(n),o=0,a=r.length;o<a;o++)if(r[o]===i){t(r,o,1);break}return r},P9({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Aee.f}))},fastKey:function(e,t){if(!j8(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!v8(e,i)){if(!Iee(e))return"F";if(!t)return"E";o(e)}return e[i].objectID},getWeakData:function(e,t){if(!v8(e,i)){if(!Iee(e))return!0;if(!t)return!1;o(e)}return e[i].weakData},onFreeze:function(e){return Pee&&n&&Iee(e)&&!v8(e,i)&&o(e),e}};C7[i]=!0})),Fee=Q6(Q6.bind),Bee=function(e,t){return n7(e),void 0===t?e:Fee?Fee(e,t):function(){return e.apply(t,arguments)}},Mee=R8("iterator"),Nee=Array.prototype,Ree=R8("iterator"),jee=function(e){if(null!=e)return i7(e,Ree)||i7(e,"@@iterator")||z7[dee(e)]},Lee=G6.TypeError,zee=function(e,t,n){var i,r;V8(e);try{if(!(i=i7(e,"return"))){if("throw"===t)throw n;return n}i=K8(i,e)}catch(e){r=!0,i=e}if("throw"===t)throw n;if(r)throw i;return V8(i),n},Vee=G6.TypeError,Hee=function(e,t){this.stopped=e,this.result=t},Uee=Hee.prototype,Wee=function(e,t,n){var i,r,o,a,s,l,c,u,d=n&&n.that,h=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),m=Bee(t,d),g=function(e){return i&&zee(i,"normal",e),new Hee(!0,e)},v=function(e){return h?(V8(e),f?m(e[0],e[1],g):m(e[0],e[1])):f?m(e,g):m(e)};if(p)i=e;else{if(!(r=jee(e)))throw Vee(e7(e)+" is not iterable");if(void 0!==(u=r)&&(z7.Array===u||Nee[Mee]===u)){for(o=0,a=b7(e);a>o;o++)if((s=v(e[o]))&&X8(Uee,s))return s;return new Hee(!1)}i=function(e,t){var n=arguments.length<2?jee(e):t;if(n7(n))return V8(K8(n,e));throw Lee(e7(e)+" is not iterable")}(e,r)}for(l=i.next;!(c=K8(l,i)).done;){try{s=v(c.value)}catch(e){zee(i,"throw",e)}if("object"==typeof s&&s&&X8(Uee,s))return s}return new Hee(!1)},qee=G6.TypeError,Yee=function(e,t){if(X8(t,e))return e;throw qee("Incorrect invocation")},Gee=R8("iterator"),Kee=!1;try{var Xee=0,Zee={next:function(){return{done:!!Xee++}},return:function(){Kee=!0}};Zee[Gee]=function(){return this},Array.from(Zee,(function(){throw 2}))}catch(MC){}var Jee=Array.isArray||function(e){return"Array"==i8(e)},Qee=function(){},ete=[],tte=S8("Reflect","construct"),nte=/^\s*(?:class|function)\b/,ite=Q6(nte.exec),rte=!nte.exec(Qee),ote=function(e){if(!C8(e))return!1;try{return tte(Qee,ete,e),!0}catch(e){return!1}},ate=!tte||e8((function(){var e;return ote(ote.call)||!ote(Object)||!ote((function(){e=!0}))||e}))?function(e){if(!C8(e))return!1;switch(dee(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return rte||!!ite(nte,q7(e))}:ote,ste=R8("species"),lte=G6.Array,cte=function(e,t){return new(function(e){var t;return Jee(e)&&(t=e.constructor,(ate(t)&&(t===lte||Jee(t.prototype))||j8(t)&&null===(t=t[ste]))&&(t=void 0)),void 0===t?lte:t}(e))(0===t?0:t)},ute=Q6([].push),dte=function(e){var t=1==e,n=2==e,i=3==e,r=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,c,u,d){for(var h,p,f=m8(l),m=a8(f),g=Bee(c,u),v=b7(m),y=0,b=d||cte,w=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in m)&&(p=g(h=m[y],y,f),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:ute(w,h)}else switch(e){case 4:return!1;case 7:ute(w,h)}return o?-1:i||r?r:w}},hte={forEach:dte(0),map:dte(1),filter:dte(2),some:dte(3),every:dte(4),find:dte(5),findIndex:dte(6),filterReject:dte(7)},pte=$ee.getWeakData,fte=s9.set,mte=s9.getterFor,gte=hte.find,vte=hte.findIndex,yte=Q6([].splice),bte=0,wte=function(e){return e.frozen||(e.frozen=new _te)},_te=function(){this.entries=[]},Cte=function(e,t){return gte(e.entries,(function(e){return e[0]===t}))};_te.prototype={get:function(e){var t=Cte(this,e);if(t)return t[1]},has:function(e){return!!Cte(this,e)},set:function(e,t){var n=Cte(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=vte(this.entries,(function(t){return t[0]===e}));return~t&&yte(this.entries,t,1),!!~t}};var xte,Ste={getConstructor:function(e,t,n,i){var r=e((function(e,r){Yee(e,o),fte(e,{type:t,id:bte++,frozen:void 0}),null!=r&&Wee(r,e[i],{that:e,AS_ENTRIES:n})})),o=r.prototype,a=mte(t),s=function(e,t,n){var i=a(e),r=pte(V8(t),!0);return!0===r?wte(i).set(t,n):r[i.id]=n,e};return xee(o,{delete:function(e){var t=a(this);if(!j8(e))return!1;var n=pte(e);return!0===n?wte(t).delete(e):n&&v8(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!j8(e))return!1;var n=pte(e);return!0===n?wte(t).has(e):n&&v8(n,t.id)}}),xee(o,n?{get:function(e){var t=a(this);if(j8(e)){var n=pte(e);return!0===n?wte(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),r}},kte=s9.enforce,Ete=!G6.ActiveXObject&&"ActiveXObject"in G6,Dte=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ate=function(e,t,n){var i=-1!==e.indexOf("Map"),r=-1!==e.indexOf("Weak"),o=i?"set":"add",a=G6[e],s=a&&a.prototype,l=a,c={},u=function(e){var t=Q6(s[e]);v9(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(r&&!j8(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return r&&!j8(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(r&&!j8(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(O9(e,!C8(a)||!(r||s.forEach&&!e8((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,i,o),$ee.enable();else if(O9(e,!0)){var d=new l,h=d[o](r?{}:-0,1)!=d,p=e8((function(){d.has(1)})),f=function(){if(!Kee)return!1;var t=!1;try{var n={};n[Gee]=function(){return{next:function(){return{done:t=!0}}}},function(e){new a(e)}(n)}catch(e){}return t}(),m=!r&&e8((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));f||((l=t((function(e,t){Yee(e,s);var n=function(e,t,n){var i,r;return K9&&C8(i=t.constructor)&&i!==n&&j8(r=i.prototype)&&r!==n.prototype&&K9(e,r),e}(new a,e,l);return null!=t&&Wee(t,n[o],{that:n,AS_ENTRIES:i}),n}))).prototype=s,s.constructor=l),(p||m)&&(u("delete"),u("has"),i&&u("get")),(m||h)&&u(o),r&&s.clear&&delete s.clear}return c[e]=l,P9({global:!0,forced:l!=a},c),U9(l,e),r||n.setStrong(l,e,i),l}("WeakMap",Dte,Ste);if(G7&&Ete){xte=Ste.getConstructor(Dte,"WeakMap",!0),$ee.enable();var Tte=Ate.prototype,Ote=Q6(Tte.delete),Ite=Q6(Tte.has),Pte=Q6(Tte.get),$te=Q6(Tte.set);xee(Tte,{delete:function(e){if(j8(e)&&!Iee(e)){var t=kte(this);return t.frozen||(t.frozen=new xte),Ote(this,e)||t.frozen.delete(e)}return Ote(this,e)},has:function(e){if(j8(e)&&!Iee(e)){var t=kte(this);return t.frozen||(t.frozen=new xte),Ite(this,e)||t.frozen.has(e)}return Ite(this,e)},get:function(e){if(j8(e)&&!Iee(e)){var t=kte(this);return t.frozen||(t.frozen=new xte),Ite(this,e)?Pte(this,e):t.frozen.get(e)}return Pte(this,e)},set:function(e,t){if(j8(e)&&!Iee(e)){var n=kte(this);n.frozen||(n.frozen=new xte),Ite(this,e)?$te(this,e,t):n.frozen.set(e,t)}else $te(this,e,t);return this}})}var Fte={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Bte=q8("span").classList,Mte=Bte&&Bte.constructor&&Bte.constructor.prototype,Nte=Mte===Object.prototype?void 0:Mte,Rte=R8("iterator"),jte=R8("toStringTag"),Lte=oee.values,zte=function(e,t){if(e){if(e[Rte]!==Lte)try{X7(e,Rte,Lte)}catch(t){e[Rte]=Lte}if(e[jte]||X7(e,jte,t),Fte[t])for(var n in oee)if(e[n]!==oee[n])try{X7(e,n,oee[n])}catch(t){e[n]=oee[n]}}};for(var Vte in Fte)zte(G6[Vte]&&G6[Vte].prototype,Vte);zte(Nte,"DOMTokenList");var Hte=new WeakMap,Ute={type:"list-item",renderElem:function(e,t,n){Hte.set(e,n);var i=e,r=i.level,o=void 0===r?0:r,a=i.ordered,s={margin:"5px 0 5px "+20*o+"px"},l="";if(void 0!==a&&a){var c=function(e,t){var n=t,i=n.type,r=n.level,o=void 0===r?0:r,a=n.ordered,s=void 0!==a&&a;if(!s)return-1;var l=1,c=t,u=GL.findPath(e,c);if(0===u[0])return 1;for(;u[0]>0;){var d=FS.previous(u),h=kS.node(e,d);if(null==h)break;var p=h[0],f=p.level,m=void 0===f?0:f,g=p.type,v=p.ordered;if(g!==i)break;if(m<o)break;if(m===o){if(v!==s)break;l++}c=p,u=d}return l}(n,e);l=c+"."}else l=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(o);var u=function(e){var t,n=e.children||[],i=n.length;if(0===i)return"";for(var r=0;r<i&&!t;r++){var o=n[r];KS.isText(o)&&(t=o)}return null==t?"":t.color||""}(e);return AA("div",{style:s},AA("span",{contentEditable:!1,style:{marginRight:"0.5em",color:u},"data-w-e-reserve":!0},l),AA("span",null,t))}},Wte=function(e,t){return Wte=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Wte(e,t)
135
+ ***************************************************************************** */};function XZ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}KZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ZZ=function(){return ZZ=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ZZ.apply(this,arguments)};function JZ(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function QZ(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function eJ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function tJ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function nJ(e){var t=tJ(kS.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!bS.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==OS.string(n))return!1;var i=n.children,r=void 0===i?[]:i;return!!KS.isText(r[0])&&(pk.setNodes(e,{type:"paragraph"}),!0)}var iJ={renderElems:[nY],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[GZ],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var i=e;return i.deleteBackward=function(e){nJ(i)||t(e)},i.deleteForward=function(e){nJ(i)||n(e)},i}},rJ=/"/g,oJ=CY("".replace),aJ=function(e,t,n,i){var r=oX(OY(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+oJ(oX(i),rJ,"&quot;")+'"'),o+">"+r+"</"+t+">"},sJ=function(e){return cY((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function lJ(e,t){var n=t,i=e,r=i.bold,o=i.italic,a=i.underline;return r&&(n="<strong>"+n+"</strong>"),i.code&&(n="<code>"+n+"</code>"),o&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),i.through&&(n="<s>"+n+"</s>"),i.sub&&(n="<sub>"+n+"</sub>"),i.sup&&(n="<sup>"+n+"</sup>"),n}function cJ(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}OK({target:"String",proto:!0,forced:sJ("bold")},{bold:function(){return aJ(this,"b","","")}}),OK({target:"String",proto:!0,forced:sJ("italics")},{italics:function(){return aJ(this,"i","","")}}),OK({target:"String",proto:!0,forced:sJ("sub")},{sub:function(){return aJ(this,"sub","","")}}),OK({target:"String",proto:!0,forced:sJ("sup")},{sup:function(){return aJ(this,"sup","","")}});var uJ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},dJ=_G("span").classList,hJ=dJ&&dJ.constructor&&dJ.constructor.prototype,pJ=hJ===Object.prototype?void 0:hJ,fJ=function(e,t){var n=[][e];return!!n&&cY((function(){n.call(null,t||function(){throw 1},1)}))},mJ=JK.forEach,gJ=fJ("forEach")?[].forEach:function(e){return mJ(this,e,arguments.length>1?arguments[1]:void 0)},vJ=function(e){if(e&&e.forEach!==gJ)try{IG(e,"forEach",gJ)}catch(In){e.forEach=gJ}};for(var yJ in uJ)uJ[yJ]&&vJ(lY[yJ]&&lY[yJ].prototype);function bJ(e,t){return null==e.selection||!!tJ(kS.nodes(e,{match:function(t){return"pre"===GL.getNodeType(t)||!!kS.isVoid(e,t)},universal:!0}),1)[0]}function wJ(e,t){Object.keys(t).forEach((function(t){"text"!==t&&kS.removeMark(e,t)}))}vJ(pJ),OK({target:"Object",stat:!0,forced:cY((function(){dX(1)}))},{keys:function(e){return dX(rG(e))}});var _J=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=kS.marks(e);return n?n[t]:!!tJ(kS.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return bJ(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,i=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),i&&i.forEach((function(t){return e.removeMark(t)})))},e}(),CJ='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',xJ='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',SJ='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',kJ='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',EJ='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',DJ='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',AJ='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',TJ='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',OJ='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',IJ='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',PJ='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',$J='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',FJ='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',BJ='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',MJ='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',NJ='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',RJ='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',jJ='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',LJ='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',zJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=Bq("textStyle.bold"),t.iconSvg=CJ,t.hotkey="mod+b",t}return XZ(t,e),t}(_J),VJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=Bq("textStyle.code"),t.iconSvg=EJ,t.hotkey="mod+e",t}return XZ(t,e),t}(_J),HJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=Bq("textStyle.italic"),t.iconSvg=SJ,t.hotkey="mod+i",t}return XZ(t,e),t}(_J),UJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=Bq("textStyle.through"),t.iconSvg=kJ,t.hotkey="mod+shift+x",t}return XZ(t,e),t}(_J),WJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=Bq("textStyle.underline"),t.iconSvg=xJ,t.hotkey="mod+u",t}return XZ(t,e),t}(_J),qJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=Bq("textStyle.sub"),t.iconSvg=LJ,t.hotkey="",t}return XZ(t,e),t}(_J),YJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=Bq("textStyle.sup"),t.iconSvg=jJ,t.hotkey="",t}return XZ(t,e),t}(_J),GJ=function(){function e(){this.title=Bq("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return bJ(e)},e.prototype.exec=function(e,t){var n,i,r=kS.nodes(e,{match:function(e){return KS.isText(e)},universal:!0});try{for(var o=eJ(r),a=o.next();!a.done;a=o.next())wJ(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e}(),KJ={renderStyle:function(e,t){var n=e,i=n.bold,r=n.italic,o=n.underline,a=n.code,s=n.through,l=n.sub,c=n.sup,u=t;return i&&(u=AA("strong",null,u)),a&&(u=AA("code",null,u)),r&&(u=AA("em",null,u)),o&&(u=AA("u",null,u)),s&&(u=AA("s",null,u)),l&&(u=AA("sub",null,u)),c&&(u=AA("sup",null,u)),u},menus:[{key:"bold",factory:function(){return new zJ}},{key:"underline",factory:function(){return new WJ}},{key:"italic",factory:function(){return new HJ}},{key:"through",factory:function(){return new UJ}},{key:"code",factory:function(){return new VJ}},{key:"sub",factory:function(){return new qJ}},{key:"sup",factory:function(){return new YJ}},{key:"clearStyle",factory:function(){return new GJ}}],styleToHtml:function(e,t){if(!KS.isText(e))return t;if(UZ(t))return lJ(e,t);var n=FE(t);if("br"===qZ(n))return lJ(e,"<br>");var i=n.html();return i=lJ(e,i),n.html(i),WZ(n)},parseStyleHtml:function(e,t,n){var i=FE(e);if(!KS.isText(t))return t;var r=t;return cJ(i,"b,strong")&&(r.bold=!0),cJ(i,"i,em")&&(r.italic=!0),cJ(i,"u")&&(r.underline=!0),cJ(i,"s,strike")&&(r.through=!0),cJ(i,"sub")&&(r.sub=!0),cJ(i,"sup")&&(r.sup=!0),cJ(i,"code")&&(r.code=!0),r}};function XJ(e){return function(t,n,i){return AA("h"+e,null,n)}}var ZJ={type:"header1",renderElem:XJ(1)},JJ={type:"header2",renderElem:XJ(2)},QJ={type:"header3",renderElem:XJ(3)},eQ={type:"header4",renderElem:XJ(4)},tQ={type:"header5",renderElem:XJ(5)},nQ=QG.PROPER,iQ=RegExp.prototype,rQ=iQ.toString,oQ=CY(aX),aQ=cY((function(){return"/a/b"!=rQ.call({source:"a",flags:"b"})})),sQ=nQ&&"toString"!=rQ.name;(aQ||sQ)&&eK(RegExp.prototype,"toString",(function(){var e=DG(this),t=oX(e.source),n=e.flags;return"/"+t+"/"+oX(void 0===n&&MY(iQ,e)&&!("flags"in iQ)?oQ(e):n)}),{unsafe:!0});var lQ,cQ=lY.TypeError,uQ=function(e){if(CZ(e))throw cQ("The method doesn't accept regular expressions");return e},dQ=mG("match"),hQ=function(e){var t=/./;try{"/./"[e](t)}catch(eh){try{return t[dQ]=!1,"/./"[e](t)}catch(e){}}return!1},pQ=SG.f,fQ=CY("".startsWith),mQ=CY("".slice),gQ=Math.min,vQ=hQ("startsWith");function yQ(e){var t=tJ(kS.nodes(e,{match:function(e){return GL.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var i=tJ(n,1)[0];return GL.getNodeType(i)}function bQ(e){return null==e.selection||!tJ(kS.nodes(e,{match:function(e){var t=GL.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function wQ(e,t){t&&pk.setNodes(e,{type:t})}OK({target:"String",proto:!0,forced:!(!vQ&&(lQ=pQ(String.prototype,"startsWith"),lQ&&!lQ.writable)||vQ)},{startsWith:function(e){var t=oX(OY(this));uQ(e);var n=lK(gQ(arguments.length>1?arguments[1]:void 0,t.length)),i=oX(e);return fQ?fQ(t,i,n):mQ(t,n,n+i.length)===i}});var _Q=function(){function e(){this.title=Bq("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:Bq("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return yQ(e)},e.prototype.isDisabled=function(e){return bQ(e)},e.prototype.exec=function(e,t){wQ(e,t.toString())},e}(),CQ=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return yQ(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return bQ(e)},e.prototype.exec=function(e,t){var n=this.type;wQ(e,t===n?"paragraph":n)},e}(),xQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return XZ(t,e),t}(CQ),SQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return XZ(t,e),t}(CQ),kQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return XZ(t,e),t}(CQ),EQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return XZ(t,e),t}(CQ),DQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return XZ(t,e),t}(CQ),AQ={key:"headerSelect",factory:function(){return new _Q}},TQ={key:"header1",factory:function(){return new xQ}},OQ={key:"header2",factory:function(){return new SQ}},IQ={key:"header3",factory:function(){return new kQ}},PQ={key:"header4",factory:function(){return new EQ}},$Q={key:"header5",factory:function(){return new DQ}};function FQ(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function BQ(e){return function(t,n,i){var r=FE(t);return 0===(n=n.filter((function(e){return!!KS.isText(e)||!!i.isInline(e)}))).length&&(n=[{text:r.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var MQ={renderElems:[ZJ,JJ,QJ,eQ,tQ],elemsToHtml:[{type:"header1",elemToHtml:FQ(1)},{type:"header2",elemToHtml:FQ(2)},{type:"header3",elemToHtml:FQ(3)},{type:"header4",elemToHtml:FQ(4)},{type:"header5",elemToHtml:FQ(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:BQ(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:BQ(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:BQ(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:BQ(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:BQ(5)}],menus:[AQ,TQ,OQ,IQ,PQ,$Q],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var i=tJ(kS.nodes(n,{match:function(e){return GL.getNodeType(e).startsWith("header")},universal:!0}),1)[0];i&&GL.isSelectionAtLineEnd(e,i[1])?pk.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},NQ=Object.assign,RQ=Object.defineProperty,jQ=CY([].concat),LQ=!NQ||cY((function(){if(uY&&1!==NQ({b:1},NQ(RQ({},"a",{enumerable:!0,get:function(){RQ(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=NQ({},e)[n]||dX(NQ({},t)).join("")!=i}))?function(e,t){for(var n=rG(e),i=arguments.length,r=1,o=yK.f,a=gY.f;i>r;)for(var s,l=AY(arguments[r++]),c=o?jQ(dX(l),o(l)):dX(l),u=c.length,d=0;u>d;)s=c[d++],uY&&!hY(a,l,s)||(n[s]=l[s]);return n}:NQ;function zQ(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}OK({target:"Object",stat:!0,forced:Object.assign!==LQ},{assign:LQ});var VQ={selector:"font",preParseHtml:function(e){var t=FE(e);if("font"!==qZ(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},HQ=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=kS.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!tJ(kS.nodes(e,{match:function(t){return"pre"===GL.getNodeType(t)||!!kS.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=FE('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var i=n.target;if(null!=i&&(n.preventDefault(),null!=e.selection)){var r=FE(i).attr("data-value");"0"===r?kS.removeMark(e,t):kS.addMark(e,t,r)}})),this.$content=n}var i=this.$content;if(null==i)return document.createElement("ul");i.empty();var r=this.getValue(e),o=e.getMenuConfig(t).colors;(void 0===o?[]:o).forEach((function(e){var t=FE('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=FE('<li data-value="'+e+'"></li>');r===e&&n.addClass("active"),n.append(t),i.append(n)}));var a="";"color"===t&&(a=Bq("color.default")),"bgColor"===t&&(a=Bq("color.clear"));var s=FE('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return i.prepend(s),i[0]},e}(),UQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("color.color"),t.iconSvg=TJ,t.mark="color",t}return XZ(t,e),t}(HQ),WQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("color.bgColor"),t.iconSvg=OJ,t.mark="bgColor",t}return XZ(t,e),t}(HQ),qQ=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],YQ={renderStyle:function(e,t){var n=e,i=n.color,r=n.bgColor,o=t;return i&&zQ(o,{color:i}),r&&zQ(o,{backgroundColor:r}),o},styleToHtml:function(e,t){if(!KS.isText(e))return t;var n,i=e,r=i.color,o=i.bgColor;return r||o?((UZ(t)||"span"!==qZ(n=FE(t)))&&(n=FE("<span>"+t+"</span>")),r&&n.css("color",r),o&&n.css("background-color",o),WZ(n)):t},preParseHtml:[VQ],parseStyleHtml:function(e,t,n){var i=FE(e);if(!KS.isText(t))return t;var r=t,o=YZ(i,"color");o&&(r.color=o);var a=YZ(i,"background-color");return a||(a=YZ(i,"background")),a&&(r.bgColor=a),r},menus:[{key:"color",factory:function(){return new UQ},config:{colors:qQ}},{key:"bgColor",factory:function(){return new WQ},config:{colors:qQ}}]},GQ=/^(?:\w+:)?\/\/(\S+)$/,KQ=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,XQ=/^[^\s\.]+\.\S{2,}$/,ZQ=dK.includes;function JQ(e){return void 0===e&&(e="r"),e+"-"+$D()}function QQ(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function e0(e,t,n,i){return JZ(this,void 0,void 0,(function(){var r,o;return QZ(this,(function(a){switch(a.label){case 0:return(r=t.getMenuConfig(e).checkLink)?[4,r(n,i)]:[3,2];case 1:if("string"==typeof(o=a.sent()))return t.alert(o,"error"),[2,!1];if(null==o)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function t0(e,t,n){return JZ(this,void 0,void 0,(function(){var i;return QZ(this,(function(r){switch(r.label){case 0:return(i=t.getMenuConfig(e).parseLinkUrl)?[4,i(n)]:[3,2];case 1:return[2,r.sent()];case 2:return[2,n]}}))}))}function n0(e){return null==e.selection||!!GL.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function i0(e,t){return{type:"link",url:QQ(e),children:t?[{text:t}]:[]}}function r0(e,t,n){return JZ(this,void 0,void 0,(function(){var i,r,o;return QZ(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),n0(e)?[2]:[4,e0("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,t0("insertLink",e,n)]:[2];case 2:return i=a.sent(),null==(r=e.selection)||(VS.isCollapsed(r)?(e.insertText(" "),o=i0(i,t),pk.insertNodes(e,o),e.insertFragment([{text:" "}])):kS.string(e,r)!==t?(e.deleteFragment(),o=i0(i,t),pk.insertNodes(e,o)):(o=i0(i),pk.wrapNodes(e,o,{split:!0}),pk.collapse(e,{edge:"end"}))),[2]}}))}))}OK({target:"Array",proto:!0},{includes:function(e){return ZQ(this,e,arguments.length>1?arguments[1]:void 0)}}),yZ("includes");var o0={type:"link",renderElem:function(e,t,n){var i=e,r=i.url,o=i.target;return AA("a",{href:r,target:void 0===o?"_blank":o},t)}},a0={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var i=FE(e);return 0===(t=t.filter((function(e){return!!KS.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:i.text().replace(/\s+/gm," ")}]),{type:"link",url:i.attr("href")||"",target:i.attr("target")||"",children:t}}};function s0(){return JQ("w-e-insert-link")}var l0=function(){function e(){this.title=Bq("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=s0(),this.urlInputId=s0(),this.buttonId=s0()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return n0(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,i=n.textInputId,r=n.urlInputId,o=n.buttonId,a=tJ(yW(Bq("link.text"),i),2),s=a[0],l=FE(a[1]),c=tJ(yW(Bq("link.url"),r),2),u=c[0],d=FE(c[1]),h=tJ(bW(o,Bq("common.ok")),1)[0];if(null==this.$content){var p=FE("<div></div>");p.on("click","#"+o,(function(t){t.preventDefault();var n=p.find("#"+i).val(),o=p.find("#"+r).val();r0(e,n,o),e.hidePanelOrModal()})),this.$content=p}var f=this.$content;if(f.empty(),f.append(s),f.append(u),f.append(h),null==t||VS.isCollapsed(t))l.val("");else{var m=kS.string(e,t);l.val(m)}return d.val(""),setTimeout((function(){l.focus()})),f[0]},e}();function c0(){return JQ("w-e-update-link")}var u0=function(){function e(){this.title=Bq("link.edit"),this.iconSvg=DJ,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=c0(),this.buttonId=c0()}return e.prototype.getSelectedLinkElem=function(e){var t=GL.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return GL.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,i=tJ(yW(Bq("link.url"),t),2),r=i[0],o=FE(i[1]),a=tJ(bW(n,Bq("common.ok")),1)[0];if(null==this.$content){var s=FE("<div></div>");s.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var i=GL.getSelectedNodeByType(e,"link"),r=i?OS.string(i):"",o=s.find("#"+t).val();!function(e,t,n){JZ(this,void 0,void 0,(function(){var i,r;return QZ(this,(function(o){switch(o.label){case 0:return n?[4,e0("editLink",e,t,n)]:[2];case 1:return o.sent()?[4,t0("editLink",e,n)]:[2];case 2:return i=o.sent(),r={url:QQ(i)},pk.setNodes(e,r,{match:function(e){return GL.checkNodeType(e,"link")}}),[2]}}))}))}(e,r,o),e.hidePanelOrModal()})),this.$content=s}var l=this.$content;l.empty(),l.append(r),l.append(a);var c=this.getValue(e);return o.val(c),setTimeout((function(){o.focus()})),l[0]},e}(),d0=function(){function e(){this.title=Bq("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==GL.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||pk.unwrapNodes(e,{match:function(e){return GL.checkNodeType(e,"link")}})},e}(),h0=function(){function e(){this.title=Bq("link.view"),this.iconSvg=AJ,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=GL.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),p0={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},f0={renderElems:[o0],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,i=n.url,r=n.target;return'<a href="'+i+'" target="'+(void 0===r?"_blank":r)+'">'+t+"</a>"}}],parseElemsHtml:[a0],menus:[{key:"insertLink",factory:function(){return new l0},config:p0},{key:"editLink",factory:function(){return new u0},config:p0},{key:"unLink",factory:function(){return new d0}},{key:"viewLink",factory:function(){return new h0}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,i=e.normalizeNode;e.insertNode,e.insertText;var r=e;return r.isInline=function(e){return"link"===e.type||t(e)},r.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(GQ);if(!t)return!1;var n=t[1];return!(!n||!KQ.test(n)&&!XQ.test(n))}(t)){if(!n0(r)){var i=r.selection;if(null!=i){var o=kS.string(r,i);r0(r,o,t)}}}else n(e)},r.normalizeNode=function(e){var t=tJ(e,2),n=t[0],o=t[1];return"link"!==GL.getNodeType(n)?i([n,o]):""===OS.string(n)?pk.removeNodes(r,{at:o}):i([n,o])},r}},m0=CY(1..valueOf),g0=lY.RangeError,v0=lY.RangeError,y0=lY.String,b0=Math.floor,w0=CY((function(e){var t=oX(OY(this)),n="",i=iK(e);if(i<0||i==1/0)throw g0("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n})),_0=CY("".slice),C0=CY(1..toFixed),x0=function(e,t,n){return 0===t?n:t%2==1?x0(e,t-1,n*e):x0(e*e,t/2,n)},S0=function(e,t,n){for(var i=-1,r=n;++i<6;)r+=t*e[i],e[i]=r%1e7,r=b0(r/1e7)},k0=function(e,t){for(var n=6,i=0;--n>=0;)i+=e[n],e[n]=b0(i/t),i=i%t*1e7},E0=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var i=y0(e[t]);n=""===n?i:n+w0("0",7-i.length)+i}return n};function D0(e,t){return"w-e-image-container-"+GL.findKey(e,t).id}OK({target:"Number",proto:!0,forced:cY((function(){return"0.000"!==C0(8e-5,3)||"1"!==C0(.9,0)||"1.25"!==C0(1.255,2)||"1000000000000000128"!==C0(0xde0b6b3a7640080,0)}))||!cY((function(){C0({})}))},{toFixed:function(e){var t,n,i,r,o=m0(this),a=iK(e),s=[0,0,0,0,0,0],l="",c="0";if(a<0||a>20)throw v0("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return y0(o);if(o<0&&(l="-",o=-o),o>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(o*x0(2,69,1))-69)<0?o*x0(2,-t,1):o/x0(2,t,1),n*=4503599627370496,(t=52-t)>0){for(S0(s,0,n),i=a;i>=7;)S0(s,1e7,0),i-=7;for(S0(s,x0(10,i,1),0),i=t-1;i>=23;)k0(s,1<<23),i-=23;k0(s,1<<i),S0(s,1,1),k0(s,2),c=E0(s)}else S0(s,0,n),S0(s,1<<-t,0),c=E0(s)+w0("0",a);return a>0?l+((r=c.length)<=a?"0."+w0("0",a-r)+c:_0(c,0,r-a)+"."+_0(c,r-a)):l+c}});var A0={type:"image",renderElem:function(e,t,n){var i=e,r=i.src,o=i.alt,a=void 0===o?"":o,s=i.href,l=void 0===s?"":s,c=i.style,u=void 0===c?{}:c,d=u.width,h=void 0===d?"":d,p=u.height,f=void 0===p?"":p,m=GL.isNodeSelected(n,e),g={};h&&(g.width="100%"),f&&(g.height="100%");var v=AA("img",{style:g,src:r,alt:a,"data-href":l}),y=n.isDisabled();return m&&!y?function(e,t,n,i){var r=FE("body"),o=D0(e,t),a=i.width,s=i.height,l=0,c=0,u=0,d=!1,h=null;function p(t){h=function(){var e=FE("#"+o);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),l=t;var n=h.find("img");if(0===n.length)throw new Error("Cannot find image elem");c=n.width(),u=n.height(),r.on("mousemove",f),r.on("mouseup",m);var i=GL.getHoverbar(e);i&&i.hideAndClean()}var f=KD((function(e){e.preventDefault();var t=e.clientX,n=c+(d?l-t:t-l),i=u*(n/c);null!=h&&(n<=15||i<=15||(h.css("width",n+"px"),h.css("height",i+"px")))}),100);function m(n){if(r.off("mousemove",f),null!=h){var i=h.width().toFixed(2),o=h.height().toFixed(2),a={style:ZZ(ZZ({},t.style),{width:i+"px",height:o+"px"})};pk.setNodes(e,a,{at:GL.findPath(e,t)}),r.off("mouseup",m)}}var g={};return a&&(g.width=a),s&&(g.height=s),AA("div",{id:o,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=FE(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(d=!0),p(e.clientX))}}},n,AA("div",{className:"w-e-image-dragger left-top"}),AA("div",{className:"w-e-image-dragger right-top"}),AA("div",{className:"w-e-image-dragger left-bottom"}),AA("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,v,{width:h,height:f}):function(e,t,n,i){var r=i.width,o=i.height,a={};return r&&(a.width=r),o&&(a.height=o),AA("div",{id:D0(e,t),style:a,className:"w-e-image-container"},n)}(n,e,v,{width:h,height:f})}},T0={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var i=FE(e),r=i.attr("data-href")||"";return r=decodeURIComponent(r),{type:"image",src:i.attr("src")||"",alt:i.attr("alt")||"",href:r,style:{width:YZ(i,"width"),height:YZ(i,"height")},children:[{text:""}]}}};function O0(e,t,n,i,r){return void 0===i&&(i=""),void 0===r&&(r=""),JZ(this,void 0,void 0,(function(){var o,a;return QZ(this,(function(s){switch(s.label){case 0:return(o=t.getMenuConfig(e).checkImage)?[4,o(n,i,r)]:[3,2];case 1:if("string"==typeof(a=s.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];s.label=2;case 2:return[2,!0]}}))}))}function I0(e,t,n){return JZ(this,void 0,void 0,(function(){var i;return QZ(this,(function(r){switch(r.label){case 0:return(i=t.getMenuConfig(e).parseImageSrc)?[4,i(n)]:[3,2];case 1:return[2,r.sent()];case 2:return[2,n]}}))}))}function P0(e,t,n,i){return void 0===n&&(n=""),void 0===i&&(i=""),JZ(this,void 0,void 0,(function(){var r,o,a;return QZ(this,(function(s){switch(s.label){case 0:return[4,O0("insertImage",e,t,n,i)];case 1:return s.sent()?[4,I0("insertImage",e,t)]:[2];case 2:return r=s.sent(),o={type:"image",src:QQ(r),href:i,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),GL.getSelectedNodeByType(e,"image")&&e.move(1),$0(e)||(pk.insertNodes(e,o),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(o)),[2]}}))}))}function $0(e){var t=e.selection;return null==t||!VS.isCollapsed(t)||!!tJ(kS.nodes(e,{match:function(t){var n=GL.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!kS.isVoid(e,t)},universal:!0}),1)[0]}function F0(){return JQ("w-e-insert-image")}var B0=function(){function e(){this.title=Bq("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=F0(),this.altInputId=F0(),this.hrefInputId=F0(),this.buttonId=F0()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return $0(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,i=n.srcInputId,r=n.altInputId,o=n.hrefInputId,a=n.buttonId,s=tJ(yW(Bq("image.src"),i),2),l=s[0],c=FE(s[1]),u=tJ(yW(Bq("image.desc"),r),2),d=u[0],h=FE(u[1]),p=tJ(yW(Bq("image.link"),o),2),f=p[0],m=FE(p[1]),g=tJ(bW(a,Bq("common.ok")),1)[0];if(null==this.$content){var v=FE("<div></div>");v.on("click","#"+a,(function(n){n.preventDefault();var a=v.find("#"+i).val().trim(),s=v.find("#"+r).val().trim(),l=v.find("#"+o).val().trim();t.insertImage(e,a,s,l),e.hidePanelOrModal()})),this.$content=v}var y=this.$content;return y.empty(),y.append(l),y.append(d),y.append(f),y.append(g),c.val(""),h.val(""),m.val(""),setTimeout((function(){c.focus()})),y[0]},e.prototype.insertImage=function(e,t,n,i){void 0===n&&(n=""),void 0===i&&(i=""),t&&(e.restoreSelection(),this.isDisabled(e)||P0(e,t,n,i))},e}(),M0=function(){function e(){this.title=Bq("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==GL.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||pk.removeNodes(e,{match:function(e){return GL.checkNodeType(e,"image")}})},e}();function N0(){return JQ("w-e-edit-image")}var R0=function(){function e(){this.title=Bq("image.edit"),this.iconSvg=DJ,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=N0(),this.altInputId=N0(),this.hrefInputId=N0(),this.buttonId=N0()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return GL.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!VS.isCollapsed(t)||null==GL.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,i=n.srcInputId,r=n.altInputId,o=n.hrefInputId,a=n.buttonId,s=this.getImageNode(e);if(null==s)throw new Error("Not found selected image node");var l=tJ(yW(Bq("image.src"),i),2),c=l[0],u=FE(l[1]),d=tJ(yW(Bq("image.desc"),r),2),h=d[0],p=FE(d[1]),f=tJ(yW(Bq("image.link"),o),2),m=f[0],g=FE(f[1]),v=tJ(bW(a,Bq("common.ok")),1)[0];if(null==this.$content){var y=FE("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+i).val(),s=y.find("#"+r).val(),l=y.find("#"+o).val();t.updateImage(e,a,s,l),e.hidePanelOrModal()})),this.$content=y}var b=this.$content;b.empty(),b.append(c),b.append(h),b.append(m),b.append(v);var w=s,_=w.src,C=w.alt,x=void 0===C?"":C,S=w.href,k=void 0===S?"":S;return u.val(_),p.val(x),g.val(k),setTimeout((function(){u.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,i,r){void 0===n&&(n=""),void 0===i&&(i=""),void 0===r&&(r={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,i,r){void 0===n&&(n=""),void 0===i&&(i=""),void 0===r&&(r={}),JZ(this,void 0,void 0,(function(){var o,a,s,l,c,u;return QZ(this,(function(d){switch(d.label){case 0:return[4,O0("editImage",e,t,n,i)];case 1:return d.sent()?[4,I0("editImage",e,t)]:[2];case 2:return o=d.sent(),null==(a=GL.getSelectedNodeByType(e,"image"))||(s=a.style,l={src:o,alt:n,href:i,style:ZZ(ZZ({},void 0===s?{}:s),r)},pk.setNodes(e,l,{match:function(e){return GL.checkNodeType(e,"image")}}),c=GL.getSelectedNodeByType(e,"image"),(u=e.getMenuConfig("editImage").onUpdatedImage)&&u(c)),[2]}}))}))}(e,t,n,i,r))},e}(),j0=function(){function e(){this.title=Bq("image.viewLink"),this.iconSvg=AJ,this.tag="button"}return e.prototype.getValue=function(e){var t=GL.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),L0=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return GL.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var i=GL.getHoverbar(e);i&&i.hideAndClean();var r=n.style,o={style:ZZ(ZZ({},void 0===r?{}:r),{width:this.value,height:""})};pk.setNodes(e,o,{match:function(e){return GL.checkNodeType(e,"image")}})}}},e}(),z0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return XZ(t,e),t}(L0),V0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return XZ(t,e),t}(L0),H0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return XZ(t,e),t}(L0),U0={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},W0={renderElems:[A0],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,i=n.src,r=n.alt,o=void 0===r?"":r,a=n.href,s=void 0===a?"":a,l=n.style,c=void 0===l?{}:l,u=c.width,d=void 0===u?"":u,h=c.height,p=void 0===h?"":h,f="";return d&&(f+="width: "+d+";"),p&&(f+="height: "+p+";"),'<img src="'+i+'" alt="'+o+'" data-href="'+s+'" style="'+f+'"/>'}}],parseElemsHtml:[T0],menus:[{key:"insertImage",factory:function(){return new B0},config:U0},{key:"deleteImage",factory:function(){return new M0}},{key:"editImage",factory:function(){return new R0},config:U0},{key:"viewImageLink",factory:function(){return new j0}},{key:"imageWidth30",factory:function(){return new z0}},{key:"imageWidth50",factory:function(){return new V0}},{key:"imageWidth100",factory:function(){return new H0}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var i=e;return i.isInline=function(e){return"image"===e.type||t(e)},i.isVoid=function(e){return"image"===e.type||n(e)},i}},q0={type:"todo",renderElem:function(e,t,n){var i=!1;n.isDisabled()&&(i=!0);var r=AA("div",{style:{margin:"5px 0"}},AA("span",{contentEditable:!1,style:{marginRight:"0.5em"}},AA("input",{type:"checkbox",checked:e.checked,disabled:i,on:{change:function(t){var i=GL.findPath(n,e),r={checked:t.target.checked};pk.setNodes(n,r,{at:i})}}})),AA("span",null,t));return r}},Y0=function(){function e(){this.title=Bq("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!GL.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!GL.getSelectedElems(e).some((function(t){if(kS.isVoid(e,t)&&kS.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);pk.setNodes(e,{type:n?"paragraph":"todo"})},e}(),G0={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var i=FE(e);0===(t=t.filter((function(e){return!!KS.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:i.text().replace(/\s+/gm," ")}]);var r=!1;return null!=i.find('input[type="checkbox"]').attr("checked")&&(r=!0),{type:"todo",checked:r,children:t}}},K0={renderElems:[q0],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=FE(e).find("li"),n=FE('<div data-w-e-type="todo"></div>'),i=t.find("input[type]");return n.append(i),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[G0],menus:[{key:"todo",factory:function(){return new Y0}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var i=e.selection;if(i&&VS.isCollapsed(i)){var r=GL.getSelectedNodeByType(e,"todo");if(r&&0===OS.string(r).length)return void pk.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},X0={type:"blockquote",renderElem:function(e,t,n){return AA("blockquote",null,t)}},Z0={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var i=FE(e);return 0===(t=t.filter((function(e){return!!KS.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:i.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},J0=function(){function e(){this.title=Bq("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!GL.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!tJ(kS.nodes(e,{match:function(e){var t=GL.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";pk.setNodes(e,{type:n},{mode:"highest"})}},e}(),Q0={key:"blockquote",factory:function(){return new J0}},e1=CY([].slice),t1=eX("slice"),n1=mG("species"),i1=lY.Array,r1=Math.max;OK({target:"Array",proto:!0,forced:!t1},{slice:function(e,t){var n,i,r,o=IY(this),a=cK(o),s=aK(e,a),l=aK(void 0===t?a:t,a);if(PK(o)&&(n=o.constructor,(qK(n)&&(n===i1||PK(n.prototype))||$Y(n)&&null===(n=n[n1]))&&(n=void 0),n===i1||void 0===n))return e1(o,s,l);for(i=new(void 0===n?i1:n)(r1(l-s,0)),r=0;s<l;s++,r++)s in o&&kZ(i,r,o[s]);return i.length=r,i}});var o1={renderElems:[X0],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[Z0],menus:[Q0],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,i=e;return i.insertBreak=function(){var r=i.selection;if(null==r)return t();var o=tJ(kS.nodes(e,{match:function(e){return GL.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!o)return t();var a=o[0],s=GL.findPath(e,a),l=kS.end(e,s);if(RS.equals(l,r.focus)){var c=OS.string(a);if(c&&"\n"===c.slice(-1))return e.deleteBackward("character"),void pk.insertNodes(i,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},i}},a1=function(){function e(){this.title=Bq("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!tJ(kS.nodes(e,{match:function(t){return"pre"===GL.getNodeType(t)||!!kS.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=FE('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var i=FE(n).text();e.insertText(i)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var i=e.getMenuConfig("emotion").emotions;return(void 0===i?[]:i).forEach((function(e){var t=FE("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),s1={menus:[{key:"emotion",factory:function(){return new a1},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},l1={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},c1={selector:"font",preParseHtml:function(e){var t=FE(e);if("font"!==qZ(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",l1[n]));var i=t.attr("face")||"";return i&&(t.removeAttr("face"),t.css("font-family",i)),t[0]}},u1=CY("".indexOf);OK({target:"String",proto:!0,forced:!hQ("includes")},{includes:function(e){return!!~u1(oX(OY(this)),oX(uQ(e)),arguments.length>1?arguments[1]:void 0)}});var d1,h1,p1=function(e){return e&&e.Math==Math&&e},f1=p1("object"==typeof globalThis&&globalThis)||p1("object"==typeof window&&window)||p1("object"==typeof self&&self)||p1("object"==typeof iY&&iY)||function(){return this}()||Function("return this")(),m1=Function.prototype,g1=m1.apply,v1=m1.bind,y1=m1.call,b1="object"==typeof Reflect&&Reflect.apply||(v1?y1.bind(g1):function(){return y1.apply(g1,arguments)}),w1=Function.prototype,_1=w1.bind,C1=w1.call,x1=_1&&_1.bind(C1),S1=_1?function(e){return e&&x1(C1,e)}:function(e){return e&&function(){return C1.apply(e,arguments)}},k1=function(e){return"function"==typeof e},E1=function(e){try{return!!e()}catch(e){return!0}},D1=!E1((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),A1=Function.prototype.call,T1=A1.bind?A1.bind(A1):function(){return A1.apply(A1,arguments)},O1={}.propertyIsEnumerable,I1=Object.getOwnPropertyDescriptor,P1=I1&&!O1.call({1:2},1)?function(e){var t=I1(this,e);return!!t&&t.enumerable}:O1,$1={f:P1},F1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B1=S1({}.toString),M1=S1("".slice),N1=function(e){return M1(B1(e),8,-1)},R1=f1.Object,j1=S1("".split),L1=E1((function(){return!R1("z").propertyIsEnumerable(0)}))?function(e){return"String"==N1(e)?j1(e,""):R1(e)}:R1,z1=f1.TypeError,V1=function(e){if(null==e)throw z1("Can't call method on "+e);return e},H1=function(e){return L1(V1(e))},U1=function(e){return"object"==typeof e?null!==e:k1(e)},W1={},q1=function(e){return k1(e)?e:void 0},Y1=function(e,t){return arguments.length<2?q1(W1[e])||q1(f1[e]):W1[e]&&W1[e][t]||f1[e]&&f1[e][t]},G1=S1({}.isPrototypeOf),K1=Y1("navigator","userAgent")||"",X1=f1.process,Z1=f1.Deno,J1=X1&&X1.versions||Z1&&Z1.version,Q1=J1&&J1.v8;Q1&&(h1=(d1=Q1.split("."))[0]>0&&d1[0]<4?1:+(d1[0]+d1[1])),!h1&&K1&&(!(d1=K1.match(/Edge\/(\d+)/))||d1[1]>=74)&&(d1=K1.match(/Chrome\/(\d+)/))&&(h1=+d1[1]);var e2=h1,t2=!!Object.getOwnPropertySymbols&&!E1((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&e2&&e2<41})),n2=t2&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,i2=f1.Object,r2=n2?function(e){return"symbol"==typeof e}:function(e){var t=Y1("Symbol");return k1(t)&&G1(t.prototype,i2(e))},o2=f1.String,a2=f1.TypeError,s2=function(e){if(k1(e))return e;throw a2(function(e){try{return o2(e)}catch(e){return"Object"}}(e)+" is not a function")},l2=f1.TypeError,c2=Object.defineProperty,u2=f1["__core-js_shared__"]||function(e,t){try{c2(f1,e,{value:t,configurable:!0,writable:!0})}catch(eh){f1[e]=t}return t}("__core-js_shared__",{}),d2=rY((function(e){(e.exports=function(e,t){return u2[e]||(u2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),h2=f1.Object,p2=function(e){return h2(V1(e))},f2=S1({}.hasOwnProperty),m2=Object.hasOwn||function(e,t){return f2(p2(e),t)},g2=0,v2=Math.random(),y2=S1(1..toString),b2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+y2(++g2+v2,36)},w2=d2("wks"),_2=f1.Symbol,C2=_2&&_2.for,x2=n2?_2:_2&&_2.withoutSetter||b2,S2=function(e){if(!m2(w2,e)||!t2&&"string"!=typeof w2[e]){var t="Symbol."+e;t2&&m2(_2,e)?w2[e]=_2[e]:w2[e]=n2&&C2?C2(t):x2(t)}return w2[e]},k2=f1.TypeError,E2=S2("toPrimitive"),D2=function(e){var t=function(e,t){if(!U1(e)||r2(e))return e;var n,i,r=null==(n=e[E2])?void 0:s2(n);if(r){if(void 0===t&&(t="default"),i=T1(r,e,t),!U1(i)||r2(i))return i;throw k2("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,i;if("string"===t&&k1(n=e.toString)&&!U1(i=T1(n,e)))return i;if(k1(n=e.valueOf)&&!U1(i=T1(n,e)))return i;if("string"!==t&&k1(n=e.toString)&&!U1(i=T1(n,e)))return i;throw l2("Can't convert object to primitive value")}(e,t)}(e,"string");return r2(t)?t:t+""},A2=f1.document,T2=U1(A2)&&U1(A2.createElement),O2=function(e){return T2?A2.createElement(e):{}},I2=!D1&&!E1((function(){return 7!=Object.defineProperty(O2("div"),"a",{get:function(){return 7}}).a})),P2=Object.getOwnPropertyDescriptor,$2={f:D1?P2:function(e,t){if(e=H1(e),t=D2(t),I2)try{return P2(e,t)}catch(e){}if(m2(e,t))return F1(!T1($1.f,e,t),e[t])}},F2=/#|\.prototype\./,B2=function(e,t){var n=N2[M2(e)];return n==j2||n!=R2&&(k1(t)?E1(t):!!t)},M2=B2.normalize=function(e){return String(e).replace(F2,".").toLowerCase()},N2=B2.data={},R2=B2.NATIVE="N",j2=B2.POLYFILL="P",L2=B2,z2=S1(S1.bind),V2=function(e,t){return s2(e),void 0===t?e:z2?z2(e,t):function(){return e.apply(t,arguments)}},H2=f1.String,U2=f1.TypeError,W2=function(e){if(U1(e))return e;throw U2(H2(e)+" is not an object")},q2=f1.TypeError,Y2=Object.defineProperty,G2={f:D1?Y2:function(e,t,n){if(W2(e),t=D2(t),W2(n),I2)try{return Y2(e,t,n)}catch(e){}if("get"in n||"set"in n)throw q2("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},K2=D1?function(e,t,n){return G2.f(e,t,F1(1,n))}:function(e,t,n){return e[t]=n,e},X2=$2.f,Z2=function(e){var t=function(n,i,r){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,r)}return b1(e,this,arguments)};return t.prototype=e.prototype,t},J2=function(e,t){var n,i,r,o,a,s,l,c,u=e.target,d=e.global,h=e.stat,p=e.proto,f=d?f1:h?f1[u]:(f1[u]||{}).prototype,m=d?W1:W1[u]||K2(W1,u,{})[u],g=m.prototype;for(r in t)n=!L2(d?r:u+(h?".":"#")+r,e.forced)&&f&&m2(f,r),a=m[r],n&&(s=e.noTargetGet?(c=X2(f,r))&&c.value:f[r]),o=n&&s?s:t[r],n&&typeof a==typeof o||(l=e.bind&&n?V2(o,f1):e.wrap&&n?Z2(o):p&&k1(o)?S1(o):o,(e.sham||o&&o.sham||a&&a.sham)&&K2(l,"sham",!0),K2(m,r,l),p&&(m2(W1,i=u+"Prototype")||K2(W1,i,{}),K2(W1[i],r,o),e.real&&g&&!g[r]&&K2(g,r,o)))},Q2=Array.isArray||function(e){return"Array"==N1(e)},e4=Math.ceil,t4=Math.floor,n4=function(e){var t=+e;return t!=t||0===t?0:(t>0?t4:e4)(t)},i4=Math.min,r4=function(e){return(t=e.length)>0?i4(n4(t),9007199254740991):0;var t},o4=function(e,t,n){var i=D2(t);i in e?G2.f(e,i,F1(0,n)):e[i]=n},a4={};a4[S2("toStringTag")]="z";var s4="[object z]"===String(a4),l4=S2("toStringTag"),c4=f1.Object,u4="Arguments"==N1(function(){return arguments}()),d4=s4?N1:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=c4(e),l4))?n:u4?N1(t):"Object"==(i=N1(t))&&k1(t.callee)?"Arguments":i},h4=S1(Function.toString);k1(u2.inspectSource)||(u2.inspectSource=function(e){return h4(e)});var p4=u2.inspectSource,f4=function(){},m4=[],g4=Y1("Reflect","construct"),v4=/^\s*(?:class|function)\b/,y4=S1(v4.exec),b4=!v4.exec(f4),w4=function(e){if(!k1(e))return!1;try{return g4(f4,m4,e),!0}catch(e){return!1}},_4=!g4||E1((function(){var e;return w4(w4.call)||!w4(Object)||!w4((function(){e=!0}))||e}))?function(e){if(!k1(e))return!1;switch(d4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return b4||!!y4(v4,p4(e))}:w4,C4=S2("species"),x4=f1.Array,S4=function(e,t){return new(function(e){var t;return Q2(e)&&(t=e.constructor,(_4(t)&&(t===x4||Q2(t.prototype))||U1(t)&&null===(t=t[C4]))&&(t=void 0)),void 0===t?x4:t}(e))(0===t?0:t)},k4=S2("species"),E4=S2("isConcatSpreadable"),D4=f1.TypeError,A4=e2>=51||!E1((function(){var e=[];return e[E4]=!1,e.concat()[0]!==e})),T4=e2>=51||!E1((function(){var e=[];return(e.constructor={})[k4]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),O4=function(e){if(!U1(e))return!1;var t=e[E4];return void 0!==t?!!t:Q2(e)};J2({target:"Array",proto:!0,forced:!A4||!T4},{concat:function(e){var t,n,i,r,o,a=p2(this),s=S4(a,0),l=0;for(t=-1,i=arguments.length;t<i;t++)if(O4(o=-1===t?a:arguments[t])){if(l+(r=r4(o))>9007199254740991)throw D4("Maximum allowed index exceeded");for(n=0;n<r;n++,l++)n in o&&o4(s,l,o[n])}else{if(l>=9007199254740991)throw D4("Maximum allowed index exceeded");o4(s,l++,o)}return s.length=l,s}});var I4,P4=f1.String,$4=function(e){if("Symbol"===d4(e))throw TypeError("Cannot convert a Symbol value to a string");return P4(e)},F4=Math.max,B4=Math.min,M4=function(e,t){var n=n4(e);return n<0?F4(n+t,0):B4(n,t)},N4=function(e){return function(t,n,i){var r,o=H1(t),a=r4(o),s=M4(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},R4={includes:N4(!0),indexOf:N4(!1)},j4={},L4=R4.indexOf,z4=S1([].push),V4=function(e,t){var n,i=H1(e),r=0,o=[];for(n in i)!m2(j4,n)&&m2(i,n)&&z4(o,n);for(;t.length>r;)m2(i,n=t[r++])&&(~L4(o,n)||z4(o,n));return o},H4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],U4=Object.keys||function(e){return V4(e,H4)},W4=D1?Object.defineProperties:function(e,t){W2(e);for(var n,i=H1(t),r=U4(t),o=r.length,a=0;o>a;)G2.f(e,n=r[a++],i[n]);return e},q4=Y1("document","documentElement"),Y4=d2("keys"),G4=function(e){return Y4[e]||(Y4[e]=b2(e))},K4=G4("IE_PROTO"),X4=function(){},Z4=function(e){return"<script>"+e+"<\/script>"},J4=function(e){e.write(Z4("")),e.close();var t=e.parentWindow.Object;return e=null,t},Q4=function(){try{I4=new ActiveXObject("htmlfile")}catch(e){}var e,t;Q4="undefined"!=typeof document?document.domain&&I4?J4(I4):((t=O2("iframe")).style.display="none",q4.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Z4("document.F=Object")),e.close(),e.F):J4(I4);for(var n=H4.length;n--;)delete Q4.prototype[H4[n]];return Q4()};j4[K4]=!0;var e3,t3,n3,i3=Object.create||function(e,t){var n;return null!==e?(X4.prototype=W2(e),n=new X4,X4.prototype=null,n[K4]=e):n=Q4(),void 0===t?n:W4(n,t)},r3=H4.concat("length","prototype"),o3={f:Object.getOwnPropertyNames||function(e){return V4(e,r3)}},a3=f1.Array,s3=Math.max,l3=o3.f,c3="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u3={f:function(e){return c3&&"Window"==N1(e)?function(e){try{return l3(e)}catch(e){return function(e){for(var t=r4(e),n=M4(void 0,t),i=M4(t,t),r=a3(s3(i-n,0)),o=0;n<i;n++,o++)o4(r,o,e[n]);return r.length=o,r}(c3)}}(e):l3(H1(e))}},d3={f:Object.getOwnPropertySymbols},h3=S1([].slice),p3=function(e,t,n,i){i&&i.enumerable?e[t]=n:K2(e,t,n)},f3={f:S2},m3=G2.f,g3=function(e){var t=W1.Symbol||(W1.Symbol={});m2(t,e)||m3(t,e,{value:f3.f(e)})},v3=s4?{}.toString:function(){return"[object "+d4(this)+"]"},y3=G2.f,b3=S2("toStringTag"),w3=function(e,t,n,i){if(e){var r=n?e:e.prototype;m2(r,b3)||y3(r,b3,{configurable:!0,value:t}),i&&!s4&&K2(r,"toString",v3)}},_3=f1.WeakMap,C3=k1(_3)&&/native code/.test(p4(_3)),x3=f1.TypeError,S3=f1.WeakMap;if(C3||u2.state){var k3=u2.state||(u2.state=new S3),E3=S1(k3.get),D3=S1(k3.has),A3=S1(k3.set);e3=function(e,t){if(D3(k3,e))throw new x3("Object already initialized");return t.facade=e,A3(k3,e,t),t},t3=function(e){return E3(k3,e)||{}},n3=function(e){return D3(k3,e)}}else{var T3=G4("state");j4[T3]=!0,e3=function(e,t){if(m2(e,T3))throw new x3("Object already initialized");return t.facade=e,K2(e,T3,t),t},t3=function(e){return m2(e,T3)?e[T3]:{}},n3=function(e){return m2(e,T3)}}var O3={set:e3,get:t3,has:n3,enforce:function(e){return n3(e)?t3(e):e3(e,{})},getterFor:function(e){return function(t){var n;if(!U1(t)||(n=t3(t)).type!==e)throw x3("Incompatible receiver, "+e+" required");return n}}},I3=S1([].push),P3=function(e){var t=1==e,n=2==e,i=3==e,r=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,c,u,d){for(var h,p,f=p2(l),m=L1(f),g=V2(c,u),v=r4(m),y=0,b=d||S4,w=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in m)&&(p=g(h=m[y],y,f),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:I3(w,h)}else switch(e){case 4:return!1;case 7:I3(w,h)}return o?-1:i||r?r:w}},$3=[P3(0),P3(1),P3(2),P3(3),P3(4),P3(5),P3(6),P3(7)][0],F3=G4("hidden"),B3=S2("toPrimitive"),M3=O3.set,N3=O3.getterFor("Symbol"),R3=Object.prototype,j3=f1.Symbol,L3=j3&&j3.prototype,z3=f1.TypeError,V3=f1.QObject,H3=Y1("JSON","stringify"),U3=$2.f,W3=G2.f,q3=u3.f,Y3=$1.f,G3=S1([].push),K3=d2("symbols"),X3=d2("op-symbols"),Z3=d2("string-to-symbol-registry"),J3=d2("symbol-to-string-registry"),Q3=d2("wks"),e5=!V3||!V3.prototype||!V3.prototype.findChild,t5=D1&&E1((function(){return 7!=i3(W3({},"a",{get:function(){return W3(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=U3(R3,t);i&&delete R3[t],W3(e,t,n),i&&e!==R3&&W3(R3,t,i)}:W3,n5=function(e,t){var n=K3[e]=i3(L3);return M3(n,{type:"Symbol",tag:e,description:t}),D1||(n.description=t),n},i5=function(e,t,n){e===R3&&i5(X3,t,n),W2(e);var i=D2(t);return W2(n),m2(K3,i)?(n.enumerable?(m2(e,F3)&&e[F3][i]&&(e[F3][i]=!1),n=i3(n,{enumerable:F1(0,!1)})):(m2(e,F3)||W3(e,F3,F1(1,{})),e[F3][i]=!0),t5(e,i,n)):W3(e,i,n)},r5=function(e,t){W2(e);var n=H1(t),i=U4(n).concat(l5(n));return $3(i,(function(t){D1&&!T1(o5,n,t)||i5(e,t,n[t])})),e},o5=function(e){var t=D2(e),n=T1(Y3,this,t);return!(this===R3&&m2(K3,t)&&!m2(X3,t))&&(!(n||!m2(this,t)||!m2(K3,t)||m2(this,F3)&&this[F3][t])||n)},a5=function(e,t){var n=H1(e),i=D2(t);if(n!==R3||!m2(K3,i)||m2(X3,i)){var r=U3(n,i);return!r||!m2(K3,i)||m2(n,F3)&&n[F3][i]||(r.enumerable=!0),r}},s5=function(e){var t=q3(H1(e)),n=[];return $3(t,(function(e){m2(K3,e)||m2(j4,e)||G3(n,e)})),n},l5=function(e){var t=e===R3,n=q3(t?X3:H1(e)),i=[];return $3(n,(function(e){!m2(K3,e)||t&&!m2(R3,e)||G3(i,K3[e])})),i};if(t2||(L3=(j3=function(){if(G1(L3,this))throw z3("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?$4(arguments[0]):void 0,t=b2(e),n=function(e){this===R3&&T1(n,X3,e),m2(this,F3)&&m2(this[F3],t)&&(this[F3][t]=!1),t5(this,t,F1(1,e))};return D1&&e5&&t5(R3,t,{configurable:!0,set:n}),n5(t,e)}).prototype,p3(L3,"toString",(function(){return N3(this).tag})),p3(j3,"withoutSetter",(function(e){return n5(b2(e),e)})),$1.f=o5,G2.f=i5,$2.f=a5,o3.f=u3.f=s5,d3.f=l5,f3.f=function(e){return n5(S2(e),e)},D1&&W3(L3,"description",{configurable:!0,get:function(){return N3(this).description}})),J2({global:!0,wrap:!0,forced:!t2,sham:!t2},{Symbol:j3}),$3(U4(Q3),(function(e){g3(e)})),J2({target:"Symbol",stat:!0,forced:!t2},{for:function(e){var t=$4(e);if(m2(Z3,t))return Z3[t];var n=j3(t);return Z3[t]=n,J3[n]=t,n},keyFor:function(e){if(!r2(e))throw z3(e+" is not a symbol");if(m2(J3,e))return J3[e]},useSetter:function(){e5=!0},useSimple:function(){e5=!1}}),J2({target:"Object",stat:!0,forced:!t2,sham:!D1},{create:function(e,t){return void 0===t?i3(e):r5(i3(e),t)},defineProperty:i5,defineProperties:r5,getOwnPropertyDescriptor:a5}),J2({target:"Object",stat:!0,forced:!t2},{getOwnPropertyNames:s5,getOwnPropertySymbols:l5}),J2({target:"Object",stat:!0,forced:E1((function(){d3.f(1)}))},{getOwnPropertySymbols:function(e){return d3.f(p2(e))}}),H3){var c5=!t2||E1((function(){var e=j3();return"[null]"!=H3([e])||"{}"!=H3({a:e})||"{}"!=H3(Object(e))}));J2({target:"JSON",stat:!0,forced:c5},{stringify:function(e,t,n){var i=h3(arguments),r=t;if((U1(t)||void 0!==e)&&!r2(e))return Q2(t)||(t=function(e,t){if(k1(r)&&(t=T1(r,this,e,t)),!r2(t))return t}),i[1]=t,b1(H3,null,i)}})}if(!L3[B3]){var u5=L3.valueOf;p3(L3,B3,(function(e){return T1(u5,this)}))}w3(j3,"Symbol"),j4[F3]=!0,g3("asyncIterator"),g3("hasInstance"),g3("isConcatSpreadable"),g3("iterator"),g3("match"),g3("matchAll"),g3("replace"),g3("search"),g3("species"),g3("split"),g3("toPrimitive"),g3("toStringTag"),g3("unscopables"),w3(f1.JSON,"JSON",!0);var d5,h5,p5,f5=W1.Symbol,m5={},g5=Function.prototype,v5=D1&&Object.getOwnPropertyDescriptor,y5=m2(g5,"name"),b5={EXISTS:y5,PROPER:y5&&"something"===function(){}.name,CONFIGURABLE:y5&&(!D1||D1&&v5(g5,"name").configurable)},w5=!E1((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),_5=G4("IE_PROTO"),C5=f1.Object,x5=C5.prototype,S5=w5?C5.getPrototypeOf:function(e){var t=p2(e);if(m2(t,_5))return t[_5];var n=t.constructor;return k1(n)&&t instanceof n?n.prototype:t instanceof C5?x5:null},k5=S2("iterator"),E5=!1;[].keys&&("next"in(p5=[].keys())?(h5=S5(S5(p5)))!==Object.prototype&&(d5=h5):E5=!0);var D5=null==d5||E1((function(){var e={};return d5[k5].call(e)!==e}));d5=D5?{}:i3(d5),k1(d5[k5])||p3(d5,k5,(function(){return this}));var A5={IteratorPrototype:d5,BUGGY_SAFARI_ITERATORS:E5},T5=A5.IteratorPrototype,O5=function(){return this};f1.String,f1.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{S1(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var I5=b5.PROPER,P5=A5.BUGGY_SAFARI_ITERATORS,$5=S2("iterator"),F5=function(){return this},B5=function(e,t,n,i,r,o,a){!function(e,t,n){var i=t+" Iterator";e.prototype=i3(T5,{next:F1(1,n)}),w3(e,i,!1,!0),m5[i]=O5}(n,t,i);var s,l,c,u=function(e){if(e===r&&m)return m;if(!P5&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",h=!1,p=e.prototype,f=p[$5]||p["@@iterator"]||r&&p[r],m=!P5&&f||u(r),g="Array"==t&&p.entries||f;if(g&&(s=S5(g.call(new e)))!==Object.prototype&&s.next&&(w3(s,d,!0,!0),m5[d]=F5),I5&&"values"==r&&f&&"values"!==f.name&&(h=!0,m=function(){return T1(f,this)}),r)if(l={values:u("values"),keys:o?m:u("keys"),entries:u("entries")},a)for(c in l)(P5||h||!(c in p))&&p3(p,c,l[c]);else J2({target:t,proto:!0,forced:P5||h},l);return a&&p[$5]!==m&&p3(p,$5,m,{name:r}),m5[t]=m,l},M5=O3.set,N5=O3.getterFor("Array Iterator");B5(Array,"Array",(function(e,t){M5(this,{type:"Array Iterator",target:H1(e),index:0,kind:t})}),(function(){var e=N5(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),m5.Arguments=m5.Array;var R5=S2("toStringTag");for(var j5 in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var L5=f1[j5],z5=L5&&L5.prototype;z5&&d4(z5)!==R5&&K2(z5,R5,j5),m5[j5]=m5.Array}var V5=f5;g3("asyncDispose"),g3("dispose"),g3("matcher"),g3("metadata"),g3("observable"),g3("patternMatch"),g3("replaceAll");var H5=V5,U5=S1("".charAt),W5=S1("".charCodeAt),q5=S1("".slice),Y5=function(e){return function(t,n){var i,r,o=$4(V1(t)),a=n4(n),s=o.length;return a<0||a>=s?e?"":void 0:(i=W5(o,a))<55296||i>56319||a+1===s||(r=W5(o,a+1))<56320||r>57343?e?U5(o,a):i:e?q5(o,a,a+2):r-56320+(i-55296<<10)+65536}},G5=(Y5(!1),Y5(!0)),K5=O3.set,X5=O3.getterFor("String Iterator");B5(String,"String",(function(e){K5(this,{type:"String Iterator",string:$4(e),index:0})}),(function(){var e,t=X5(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=G5(n,i),t.index+=e.length,{value:e,done:!1})}));var Z5=f3.f("iterator"),J5=rY((function(e){function t(n){return"function"==typeof H5&&"symbol"==typeof Z5?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof H5&&e.constructor===H5&&e!==H5.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Q5=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(J5),e8=QG.EXISTS,t8=OG.f,n8=Function.prototype,i8=CY(n8.toString),r8=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,o8=CY(r8.exec);uY&&!e8&&t8(n8,"name",{configurable:!0,get:function(){try{return o8(r8,i8(this))[1]}catch(Jd){return""}}});var a8=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=kS.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!tJ(kS.nodes(e,{match:function(t){return"pre"===GL.getNodeType(t)||!!kS.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),s8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("fontSize.title"),t.iconSvg=IJ,t.mark="fontSize",t}return XZ(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,i=void 0===n?[]:n;t.push({text:Bq("fontSize.default"),value:""}),i.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===Q5(e)){var n=e.name,i=e.value;t.push({text:n,value:i})}}));var r=this.getValue(e);return t.forEach((function(e){e.value===r?e.selected=!0:delete e.selected})),t},t}(a8),l8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("fontFamily.title"),t.iconSvg=PJ,t.mark="fontFamily",t.selectPanelWidth=150,t}return XZ(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,i=void 0===n?[]:n;t.push({text:Bq("fontFamily.default"),value:""}),i.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===Q5(e)){var n=e.name,i=e.value;t.push({text:n,value:i,styleForRenderMenuList:{"font-family":i}})}}));var r=this.getValue(e);return t.forEach((function(e){e.value===r?e.selected=!0:delete e.selected})),t},t}(a8),c8={renderStyle:function(e,t){var n=e,i=n.fontSize,r=n.fontFamily,o=t;return i&&zQ(o,{fontSize:i}),r&&zQ(o,{fontFamily:r}),o},styleToHtml:function(e,t){if(!KS.isText(e))return t;var n,i=e,r=i.fontSize,o=i.fontFamily;return r||o?((UZ(t)||"span"!==qZ(n=FE(t)))&&(n=FE("<span>"+t+"</span>")),r&&n.css("font-size",r),o&&n.css("font-family",o),WZ(n)):t},preParseHtml:[c1],parseStyleHtml:function(e,t,n){var i=FE(e);if(!KS.isText(t))return t;var r=t,o=n.getMenuConfig("fontSize").fontSizeList,a=void 0===o?[]:o,s=YZ(i,"font-size"),l=a.find((function(e){return e.value&&e.value===s}))||a.includes(s);s&&l&&(r.fontSize=s);var c=n.getMenuConfig("fontFamily").fontFamilyList,u=void 0===c?[]:c,d=YZ(i,"font-family").replace(/"/g,""),h=u.find((function(e){return e.value&&e.value===d}))||u.includes(d);return d&&h&&(r.fontFamily=d),r},menus:[{key:"fontSize",factory:function(){return new s8},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new l8},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},u8={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=FE(e),n=YZ(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},d8=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=tJ(kS.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":tJ(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=tJ(kS.nodes(e,{match:function(e){var t=GL.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),h8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("indent.decrease"),t.iconSvg=$J,t}return XZ(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){pk.setNodes(e,{indent:null},{match:function(e){return bS.isElement(e)}})},t}(d8),p8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("indent.increase"),t.iconSvg=FJ,t}return XZ(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){pk.setNodes(e,{indent:"2em"},{match:function(e){return bS.isElement(e)},mode:"highest"})},t}(d8),f8={renderStyle:function(e,t){if(!bS.isElement(e))return t;var n=e.indent,i=t;return n&&zQ(i,{textIndent:n}),i},styleToHtml:function(e,t){if(!bS.isElement(e))return t;var n=e.indent;if(!n)return t;var i=FE(t);return i.css("text-indent",n),WZ(i)},preParseHtml:[u8],parseStyleHtml:function(e,t,n){var i=FE(e);if(!bS.isElement(t))return t;var r=t,o=YZ(i,"text-indent"),a=parseInt(o,10);return o&&a>0&&(r.indent=o),r},menus:[{key:"indent",factory:function(){return new p8}},{key:"delIndent",factory:function(){return new h8}}]},m8=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=tJ(kS.nodes(e,{match:function(e){var t=GL.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!GL.getSelectedElems(e).some((function(t){if(kS.isVoid(e,t)&&kS.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),g8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("justify.left"),t.iconSvg=BJ,t}return XZ(t,e),t.prototype.exec=function(e,t){pk.setNodes(e,{textAlign:"left"},{match:function(t){return bS.isElement(t)&&!e.isInline(t)}})},t}(m8),v8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("justify.right"),t.iconSvg=MJ,t}return XZ(t,e),t.prototype.exec=function(e,t){pk.setNodes(e,{textAlign:"right"},{match:function(t){return bS.isElement(t)&&!e.isInline(t)}})},t}(m8),y8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("justify.center"),t.iconSvg=NJ,t}return XZ(t,e),t.prototype.exec=function(e,t){pk.setNodes(e,{textAlign:"center"},{match:function(t){return bS.isElement(t)&&!e.isInline(t)}})},t}(m8),b8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Bq("justify.justify"),t.iconSvg=RJ,t}return XZ(t,e),t.prototype.exec=function(e,t){pk.setNodes(e,{textAlign:"justify"},{match:function(t){return bS.isElement(t)&&!e.isInline(t)}})},t}(m8),w8={renderStyle:function(e,t){if(!bS.isElement(e))return t;var n=e.textAlign,i=t;return n&&zQ(i,{textAlign:n}),i},styleToHtml:function(e,t){if(!bS.isElement(e))return t;var n=e.textAlign;if(!n)return t;var i=FE(t);return i.css("text-align",n),WZ(i)},parseStyleHtml:function(e,t,n){var i=FE(e);if(!bS.isElement(t))return t;var r=t,o=YZ(i,"text-align");return o&&(r.textAlign=o),r},menus:[{key:"justifyLeft",factory:function(){return new g8}},{key:"justifyRight",factory:function(){return new v8}},{key:"justifyCenter",factory:function(){return new y8}},{key:"justifyJustify",factory:function(){return new b8}}]},_8=function(){function e(){this.title=Bq("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,i=void 0===n?[]:n;t.push({text:Bq("lineHeight.default"),value:""}),i.forEach((function(e){t.push({text:e,value:e})}));var r=this.getValue(e);return t.forEach((function(e){e.value===r?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=tJ(kS.nodes(e,{match:function(e){var t=GL.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":bS.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){pk.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),C8={renderStyle:function(e,t){if(!bS.isElement(e))return t;var n=e.lineHeight,i=t;return n&&zQ(i,{lineHeight:n}),i},styleToHtml:function(e,t){if(!bS.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var i=FE(t);return i.css("line-height",n),WZ(i)},parseStyleHtml:function(e,t,n){var i=FE(e);if(!bS.isElement(t))return t;var r=t,o=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===o?[]:o,s=YZ(i,"line-height");return s&&a.includes(s)&&(r.lineHeight=s),r},menus:[{key:"lineHeight",factory:function(){return new _8},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},x8=function(){function e(){this.title=Bq("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),S8=function(){function e(){this.title=Bq("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),k8={menus:[{key:"redo",factory:function(){return new x8}},{key:"undo",factory:function(){return new S8}}]},E8={type:"divider",renderElem:function(e,t,n){return lA("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:GL.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[lA("hr")])}},D8=function(){function e(){this.title=Bq("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!GL.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=GL.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){pk.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),A8={renderElems:[E8],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new D8}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,i=e;return i.isVoid=function(e){return"divider"===e.type||t(e)},i.normalizeNode=function(e){var t=tJ(e,2),r=t[0],o=t[1];if("divider"!==GL.getNodeType(r))return n([r,o]);GL.isLastNode(i,r)&&pk.insertNodes(i,GL.genEmptyParagraph(),{at:[o[0]+1]})},i}},T8=JK.map;OK({target:"Array",proto:!0,forced:!eX("map")},{map:function(e){return T8(this,e,arguments.length>1?arguments[1]:void 0)}});var O8=CY([].join),I8=AY!=Object,P8=fJ("join",",");OK({target:"Array",proto:!0,forced:I8||!P8},{join:function(e){return O8(IY(this),void 0===e?",":e)}});var $8=function(){function e(){this.title=Bq("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=GL.getSelectedNodeByType(e,"code");if(null==t)return null;var n=GL.getParentNode(e,t);return null==n||"pre"!==GL.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=GL.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=GL.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=OS.string(t);pk.removeNodes(e,{mode:"highest"});var i=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));pk.insertNodes(e,i,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,i,r=[],o=kS.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=eJ(o),s=a.next();!s.done;s=a.next()){var l=tJ(s.value,1)[0];l&&r.push(OS.string(l))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}pk.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:t,children:[{text:r.join("\n")}]}]};pk.insertNodes(e,c,{mode:"highest"})},e}(),F8={key:"codeBlock",factory:function(){return new $8}};OK({target:"String",proto:!0,forced:sJ("anchor")},{anchor:function(e){return aJ(this,"a","name",e)}}),WX("match",(function(e,t,n){return[function(t){var n=OY(this),i=null==t?void 0:ZY(t,e);return i?hY(i,t,n):new RegExp(t)[e](oX(n))},function(e){var i=DG(this),r=oX(e),o=n(t,i,r);if(o.done)return o.value;if(!i.global)return aZ(i,r);var a=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;null!==(s=aZ(i,r));){var u=oX(s[0]);l[c]=u,""===u&&(i.lastIndex=ZX(r,lK(i.lastIndex),a)),c++}return 0===c?null:l}]}));var B8={type:"pre",renderElem:function(e,t,n){return AA("pre",null,t)}},M8={type:"code",renderElem:function(e,t,n){return AA("code",null,t)}},N8={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var i=FE(e);return 0===(t=t.filter((function(e){return"code"===GL.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:i[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===GL.getNodeType(e)}))}}},R8={menus:[F8],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,i=e.insertData;e.insertNode;var r=e;return r.insertBreak=function(){var e=GL.getSelectedNodeByType(r,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var i=OS.string(e),r=n.anchor.offset,o=i.slice(0,r).split("\n"),a=o.length;return 0===a?"":o[a-1]}(e,r);if(n){var i=n.match(/^\s+/);if(null!=i&&null!=i[0]){var o=i[0];return void r.insertText("\n"+o)}}r.insertText("\n")}else t()},r.normalizeNode=function(e){var t=tJ(e,2),i=t[0],o=t[1],a=GL.getNodeType(i);return"code"===a&&o.length<=1&&pk.setNodes(r,{type:"paragraph"},{at:o}),"pre"===a&&(GL.isLastNode(r,i)&&pk.insertNodes(r,GL.genEmptyParagraph(),{at:[o[0]+1]}),"code"!==GL.getNodeType(i.children[0])&&(pk.unwrapNodes(r),pk.setNodes(r,{type:"paragraph"},{mode:"highest"}))),n([i,o])},r.insertData=function(e){if(null!=GL.getSelectedNodeByType(r,"code")){var t=e.getData("text/plain");kS.insertText(r,t)}else i(e)},r},renderElems:[B8,M8],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=FE(e);if("code"!==qZ(t))return e;var n=t.find("xmp");if(0===n.length)return e;var i=n.text();return n.remove(),t.text(i),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:FE(e)[0].textContent||""}]}}},N8]},j8=function(){function e(){this.title=Bq("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),L8={menus:[{key:"fullScreen",factory:function(){return new j8}}]},z8=function(){function e(){this.title=Bq("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!VS.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var i=[n.anchor.path[0]];pk.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:i}),e.select(kS.start(e,i))}},e}(),V8=[KJ,YQ,c8,f8,w8,C8,W0,A8,s1,f0,R8,o1,MQ,iJ,K0,k8,L8,{menus:[{key:"enter",factory:function(){return new z8}}]}];$q("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),$q("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var H8="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof i.g?i.g:"undefined"!=typeof self?self:{};function U8(e){var t={exports:{}};return e(t,t.exports),t.exports}var W8,q8,Y8=function(e){return e&&e.Math==Math&&e},G8=Y8("object"==typeof globalThis&&globalThis)||Y8("object"==typeof window&&window)||Y8("object"==typeof self&&self)||Y8("object"==typeof H8&&H8)||function(){return this}()||Function("return this")(),K8=Function.prototype,X8=K8.bind,Z8=K8.call,J8=X8&&X8.bind(Z8),Q8=X8?function(e){return e&&J8(Z8,e)}:function(e){return e&&function(){return Z8.apply(e,arguments)}},e6=function(e){try{return!!e()}catch(e){return!0}},t6=Q8({}.toString),n6=Q8("".slice),i6=function(e){return n6(t6(e),8,-1)},r6=G8.Object,o6=Q8("".split),a6=e6((function(){return!r6("z").propertyIsEnumerable(0)}))?function(e){return"String"==i6(e)?o6(e,""):r6(e)}:r6,s6=G8.TypeError,l6=function(e){if(null==e)throw s6("Can't call method on "+e);return e},c6=function(e){return a6(l6(e))},u6=Object.defineProperty,d6=function(e,t){try{u6(G8,e,{value:t,configurable:!0,writable:!0})}catch(eh){G8[e]=t}return t},h6=G8["__core-js_shared__"]||d6("__core-js_shared__",{}),p6=U8((function(e){(e.exports=function(e,t){return h6[e]||(h6[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),f6=G8.Object,m6=function(e){return f6(l6(e))},g6=Q8({}.hasOwnProperty),v6=Object.hasOwn||function(e,t){return g6(m6(e),t)},y6=0,b6=Math.random(),w6=Q8(1..toString),_6=function(e){return"Symbol("+(void 0===e?"":e)+")_"+w6(++y6+b6,36)},C6=function(e){return"function"==typeof e},x6=function(e){return C6(e)?e:void 0},S6=function(e,t){return arguments.length<2?x6(G8[e]):G8[e]&&G8[e][t]},k6=S6("navigator","userAgent")||"",E6=G8.process,D6=G8.Deno,A6=E6&&E6.versions||D6&&D6.version,T6=A6&&A6.v8;T6&&(q8=(W8=T6.split("."))[0]>0&&W8[0]<4?1:+(W8[0]+W8[1])),!q8&&k6&&(!(W8=k6.match(/Edge\/(\d+)/))||W8[1]>=74)&&(W8=k6.match(/Chrome\/(\d+)/))&&(q8=+W8[1]);var O6,I6=q8,P6=!!Object.getOwnPropertySymbols&&!e6((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&I6&&I6<41})),$6=P6&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,F6=p6("wks"),B6=G8.Symbol,M6=B6&&B6.for,N6=$6?B6:B6&&B6.withoutSetter||_6,R6=function(e){if(!v6(F6,e)||!P6&&"string"!=typeof F6[e]){var t="Symbol."+e;P6&&v6(B6,e)?F6[e]=B6[e]:F6[e]=$6&&M6?M6(t):N6(t)}return F6[e]},j6=function(e){return"object"==typeof e?null!==e:C6(e)},L6=G8.String,z6=G8.TypeError,V6=function(e){if(j6(e))return e;throw z6(L6(e)+" is not an object")},H6=!e6((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),U6=G8.document,W6=j6(U6)&&j6(U6.createElement),q6=function(e){return W6?U6.createElement(e):{}},Y6=!H6&&!e6((function(){return 7!=Object.defineProperty(q6("div"),"a",{get:function(){return 7}}).a})),G6=Function.prototype.call,K6=G6.bind?G6.bind(G6):function(){return G6.apply(G6,arguments)},X6=Q8({}.isPrototypeOf),Z6=G8.Object,J6=$6?function(e){return"symbol"==typeof e}:function(e){var t=S6("Symbol");return C6(t)&&X6(t.prototype,Z6(e))},Q6=G8.String,e7=function(e){try{return Q6(e)}catch(e){return"Object"}},t7=G8.TypeError,n7=function(e){if(C6(e))return e;throw t7(e7(e)+" is not a function")},i7=function(e,t){var n=e[t];return null==n?void 0:n7(n)},r7=G8.TypeError,o7=G8.TypeError,a7=R6("toPrimitive"),s7=function(e){var t=function(e,t){if(!j6(e)||J6(e))return e;var n,i=i7(e,a7);if(i){if(void 0===t&&(t="default"),n=K6(i,e,t),!j6(n)||J6(n))return n;throw o7("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,i;if("string"===t&&C6(n=e.toString)&&!j6(i=K6(n,e)))return i;if(C6(n=e.valueOf)&&!j6(i=K6(n,e)))return i;if("string"!==t&&C6(n=e.toString)&&!j6(i=K6(n,e)))return i;throw r7("Can't convert object to primitive value")}(e,t)}(e,"string");return J6(t)?t:t+""},l7=G8.TypeError,c7=Object.defineProperty,u7={f:H6?c7:function(e,t,n){if(V6(e),t=s7(t),V6(n),Y6)try{return c7(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l7("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},d7=Math.ceil,h7=Math.floor,p7=function(e){var t=+e;return t!=t||0===t?0:(t>0?h7:d7)(t)},f7=Math.max,m7=Math.min,g7=function(e,t){var n=p7(e);return n<0?f7(n+t,0):m7(n,t)},v7=Math.min,y7=function(e){return e>0?v7(p7(e),9007199254740991):0},b7=function(e){return y7(e.length)},w7=function(e){return function(t,n,i){var r,o=c6(t),a=b7(o),s=g7(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},_7={includes:w7(!0),indexOf:w7(!1)},C7={},x7=_7.indexOf,S7=Q8([].push),k7=function(e,t){var n,i=c6(e),r=0,o=[];for(n in i)!v6(C7,n)&&v6(i,n)&&S7(o,n);for(;t.length>r;)v6(i,n=t[r++])&&(~x7(o,n)||S7(o,n));return o},E7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],D7=Object.keys||function(e){return k7(e,E7)},A7=H6?Object.defineProperties:function(e,t){V6(e);for(var n,i=c6(t),r=D7(t),o=r.length,a=0;o>a;)u7.f(e,n=r[a++],i[n]);return e},T7=S6("document","documentElement"),O7=p6("keys"),I7=function(e){return O7[e]||(O7[e]=_6(e))},P7=I7("IE_PROTO"),$7=function(){},F7=function(e){return"<script>"+e+"<\/script>"},B7=function(e){e.write(F7("")),e.close();var t=e.parentWindow.Object;return e=null,t},M7=function(){try{O6=new ActiveXObject("htmlfile")}catch(e){}var e,t;M7="undefined"!=typeof document?document.domain&&O6?B7(O6):((t=q6("iframe")).style.display="none",T7.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(F7("document.F=Object")),e.close(),e.F):B7(O6);for(var n=E7.length;n--;)delete M7.prototype[E7[n]];return M7()};C7[P7]=!0;var N7=Object.create||function(e,t){var n;return null!==e?($7.prototype=V6(e),n=new $7,$7.prototype=null,n[P7]=e):n=M7(),void 0===t?n:A7(n,t)},R7=R6("unscopables"),j7=Array.prototype;null==j7[R7]&&u7.f(j7,R7,{configurable:!0,value:N7(null)});var L7=function(e){j7[R7][e]=!0},z7={},V7=Q8(Function.toString);C6(h6.inspectSource)||(h6.inspectSource=function(e){return V7(e)});var H7,U7,W7,q7=h6.inspectSource,Y7=G8.WeakMap,G7=C6(Y7)&&/native code/.test(q7(Y7)),K7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},X7=H6?function(e,t,n){return u7.f(e,t,K7(1,n))}:function(e,t,n){return e[t]=n,e},Z7=G8.TypeError,J7=G8.WeakMap;if(G7||h6.state){var Q7=h6.state||(h6.state=new J7),e9=Q8(Q7.get),t9=Q8(Q7.has),n9=Q8(Q7.set);H7=function(e,t){if(t9(Q7,e))throw new Z7("Object already initialized");return t.facade=e,n9(Q7,e,t),t},U7=function(e){return e9(Q7,e)||{}},W7=function(e){return t9(Q7,e)}}else{var i9=I7("state");C7[i9]=!0,H7=function(e,t){if(v6(e,i9))throw new Z7("Object already initialized");return t.facade=e,X7(e,i9,t),t},U7=function(e){return v6(e,i9)?e[i9]:{}},W7=function(e){return v6(e,i9)}}var r9,o9,a9,s9={set:H7,get:U7,has:W7,enforce:function(e){return W7(e)?U7(e):H7(e,{})},getterFor:function(e){return function(t){var n;if(!j6(t)||(n=U7(t)).type!==e)throw Z7("Incompatible receiver, "+e+" required");return n}}},l9={}.propertyIsEnumerable,c9=Object.getOwnPropertyDescriptor,u9={f:c9&&!l9.call({1:2},1)?function(e){var t=c9(this,e);return!!t&&t.enumerable}:l9},d9=Object.getOwnPropertyDescriptor,h9={f:H6?d9:function(e,t){if(e=c6(e),t=s7(t),Y6)try{return d9(e,t)}catch(e){}if(v6(e,t))return K7(!K6(u9.f,e,t),e[t])}},p9=Function.prototype,f9=H6&&Object.getOwnPropertyDescriptor,m9=v6(p9,"name"),g9={EXISTS:m9,PROPER:m9&&"something"===function(){}.name,CONFIGURABLE:m9&&(!H6||H6&&f9(p9,"name").configurable)},v9=U8((function(e){var t=g9.CONFIGURABLE,n=s9.get,i=s9.enforce,r=String(String).split("String");(e.exports=function(e,n,o,a){var s,l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;C6(o)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!v6(o,"name")||t&&o.name!==d)&&X7(o,"name",d),(s=i(o)).source||(s.source=r.join("string"==typeof d?d:""))),e!==G8?(l?!u&&e[n]&&(c=!0):delete e[n],c?e[n]=o:X7(e,n,o)):c?e[n]=o:d6(n,o)})(Function.prototype,"toString",(function(){return C6(this)&&n(this).source||q7(this)}))})),y9=E7.concat("length","prototype"),b9={f:Object.getOwnPropertyNames||function(e){return k7(e,y9)}},w9={f:Object.getOwnPropertySymbols},_9=Q8([].concat),C9=S6("Reflect","ownKeys")||function(e){var t=b9.f(V6(e)),n=w9.f;return n?_9(t,n(e)):t},x9=function(e,t){for(var n=C9(t),i=u7.f,r=h9.f,o=0;o<n.length;o++){var a=n[o];v6(e,a)||i(e,a,r(t,a))}},S9=/#|\.prototype\./,k9=function(e,t){var n=D9[E9(e)];return n==T9||n!=A9&&(C6(t)?e6(t):!!t)},E9=k9.normalize=function(e){return String(e).replace(S9,".").toLowerCase()},D9=k9.data={},A9=k9.NATIVE="N",T9=k9.POLYFILL="P",O9=k9,I9=h9.f,P9=function(e,t){var n,i,r,o,a,s=e.target,l=e.global,c=e.stat;if(n=l?G8:c?G8[s]||d6(s,{}):(G8[s]||{}).prototype)for(i in t){if(o=t[i],r=e.noTargetGet?(a=I9(n,i))&&a.value:n[i],!O9(l?i:s+(c?".":"#")+i,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;x9(o,r)}(e.sham||r&&r.sham)&&X7(o,"sham",!0),v9(n,i,o,e)}},$9=!e6((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),F9=I7("IE_PROTO"),B9=G8.Object,M9=B9.prototype,N9=$9?B9.getPrototypeOf:function(e){var t=m6(e);if(v6(t,F9))return t[F9];var n=t.constructor;return C6(n)&&t instanceof n?n.prototype:t instanceof B9?M9:null},R9=R6("iterator"),j9=!1;[].keys&&("next"in(a9=[].keys())?(o9=N9(N9(a9)))!==Object.prototype&&(r9=o9):j9=!0);var L9=null==r9||e6((function(){var e={};return r9[R9].call(e)!==e}));L9&&(r9={}),C6(r9[R9])||v9(r9,R9,(function(){return this}));var z9={IteratorPrototype:r9,BUGGY_SAFARI_ITERATORS:j9},V9=u7.f,H9=R6("toStringTag"),U9=function(e,t,n){e&&!v6(e=n?e:e.prototype,H9)&&V9(e,H9,{configurable:!0,value:t})},W9=z9.IteratorPrototype,q9=function(){return this},Y9=G8.String,G9=G8.TypeError,K9=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Q8(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return V6(n),function(e){if("object"==typeof e||C6(e))return e;throw G9("Can't set "+Y9(e)+" as a prototype")}(i),t?e(n,i):n.__proto__=i,n}}():void 0),X9=g9.PROPER,Z9=g9.CONFIGURABLE,J9=z9.IteratorPrototype,Q9=z9.BUGGY_SAFARI_ITERATORS,eee=R6("iterator"),tee=function(){return this},nee=function(e,t,n,i,r,o,a){!function(e,t,n){var i=t+" Iterator";e.prototype=N7(W9,{next:K7(1,n)}),U9(e,i,!1),z7[i]=q9}(n,t,i);var s,l,c,u=function(e){if(e===r&&m)return m;if(!Q9&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",h=!1,p=e.prototype,f=p[eee]||p["@@iterator"]||r&&p[r],m=!Q9&&f||u(r),g="Array"==t&&p.entries||f;if(g&&(s=N9(g.call(new e)))!==Object.prototype&&s.next&&(N9(s)!==J9&&(K9?K9(s,J9):C6(s[eee])||v9(s,eee,tee)),U9(s,d,!0)),X9&&"values"==r&&f&&"values"!==f.name&&(Z9?X7(p,"name","values"):(h=!0,m=function(){return K6(f,this)})),r)if(l={values:u("values"),keys:o?m:u("keys"),entries:u("entries")},a)for(c in l)(Q9||h||!(c in p))&&v9(p,c,l[c]);else P9({target:t,proto:!0,forced:Q9||h},l);return p[eee]!==m&&v9(p,eee,m,{name:r}),z7[t]=m,l},iee=s9.set,ree=s9.getterFor("Array Iterator"),oee=nee(Array,"Array",(function(e,t){iee(this,{type:"Array Iterator",target:c6(e),index:0,kind:t})}),(function(){var e=ree(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");z7.Arguments=z7.Array,L7("keys"),L7("values"),L7("entries");var aee={};aee[R6("toStringTag")]="z";var see="[object z]"===String(aee),lee=R6("toStringTag"),cee=G8.Object,uee="Arguments"==i6(function(){return arguments}()),dee=see?i6:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=cee(e),lee))?n:uee?i6(t):"Object"==(i=i6(t))&&C6(t.callee)?"Arguments":i},hee=see?{}.toString:function(){return"[object "+dee(this)+"]"};see||v9(Object.prototype,"toString",hee,{unsafe:!0});var pee=G8.String,fee=function(e){if("Symbol"===dee(e))throw TypeError("Cannot convert a Symbol value to a string");return pee(e)},mee=Q8("".charAt),gee=Q8("".charCodeAt),vee=Q8("".slice),yee=function(e){return function(t,n){var i,r,o=fee(l6(t)),a=p7(n),s=o.length;return a<0||a>=s?e?"":void 0:(i=gee(o,a))<55296||i>56319||a+1===s||(r=gee(o,a+1))<56320||r>57343?e?mee(o,a):i:e?vee(o,a,a+2):r-56320+(i-55296<<10)+65536}},bee={codeAt:yee(!1),charAt:yee(!0)},wee=bee.charAt,_ee=s9.set,Cee=s9.getterFor("String Iterator");nee(String,"String",(function(e){_ee(this,{type:"String Iterator",string:fee(e),index:0})}),(function(){var e,t=Cee(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=wee(n,i),t.index+=e.length,{value:e,done:!1})}));var xee=function(e,t,n){for(var i in t)v9(e,i,t[i],n);return e},See=G8.Array,kee=Math.max,Eee=b9.f,Dee="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Aee={f:function(e){return Dee&&"Window"==i6(e)?function(e){try{return Eee(e)}catch(e){return function(e){for(var t,n,i,r,o=b7(e),a=g7(void 0,o),s=g7(o,o),l=See(kee(s-a,0)),c=0;a<s;a++,c++)t=l,n=c,i=e[a],(r=s7(n))in t?u7.f(t,r,K7(0,i)):t[r]=i;return l.length=c,l}(Dee)}}(e):Eee(c6(e))}},Tee=e6((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Oee=Object.isExtensible,Iee=e6((function(){Oee(1)}))||Tee?function(e){return!!j6(e)&&(!Tee||"ArrayBuffer"!=i6(e))&&(!Oee||Oee(e))}:Oee,Pee=!e6((function(){return Object.isExtensible(Object.preventExtensions({}))})),$ee=U8((function(e){var t=u7.f,n=!1,i=_6("meta"),r=0,o=function(e){t(e,i,{value:{objectID:"O"+r++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=b9.f,t=Q8([].splice),r={};r[i]=1,e(r).length&&(b9.f=function(n){for(var r=e(n),o=0,a=r.length;o<a;o++)if(r[o]===i){t(r,o,1);break}return r},P9({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Aee.f}))},fastKey:function(e,t){if(!j6(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!v6(e,i)){if(!Iee(e))return"F";if(!t)return"E";o(e)}return e[i].objectID},getWeakData:function(e,t){if(!v6(e,i)){if(!Iee(e))return!0;if(!t)return!1;o(e)}return e[i].weakData},onFreeze:function(e){return Pee&&n&&Iee(e)&&!v6(e,i)&&o(e),e}};C7[i]=!0})),Fee=Q8(Q8.bind),Bee=function(e,t){return n7(e),void 0===t?e:Fee?Fee(e,t):function(){return e.apply(t,arguments)}},Mee=R6("iterator"),Nee=Array.prototype,Ree=R6("iterator"),jee=function(e){if(null!=e)return i7(e,Ree)||i7(e,"@@iterator")||z7[dee(e)]},Lee=G8.TypeError,zee=function(e,t,n){var i,r;V6(e);try{if(!(i=i7(e,"return"))){if("throw"===t)throw n;return n}i=K6(i,e)}catch(e){r=!0,i=e}if("throw"===t)throw n;if(r)throw i;return V6(i),n},Vee=G8.TypeError,Hee=function(e,t){this.stopped=e,this.result=t},Uee=Hee.prototype,Wee=function(e,t,n){var i,r,o,a,s,l,c,u,d=n&&n.that,h=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),m=Bee(t,d),g=function(e){return i&&zee(i,"normal",e),new Hee(!0,e)},v=function(e){return h?(V6(e),f?m(e[0],e[1],g):m(e[0],e[1])):f?m(e,g):m(e)};if(p)i=e;else{if(!(r=jee(e)))throw Vee(e7(e)+" is not iterable");if(void 0!==(u=r)&&(z7.Array===u||Nee[Mee]===u)){for(o=0,a=b7(e);a>o;o++)if((s=v(e[o]))&&X6(Uee,s))return s;return new Hee(!1)}i=function(e,t){var n=arguments.length<2?jee(e):t;if(n7(n))return V6(K6(n,e));throw Lee(e7(e)+" is not iterable")}(e,r)}for(l=i.next;!(c=K6(l,i)).done;){try{s=v(c.value)}catch(e){zee(i,"throw",e)}if("object"==typeof s&&s&&X6(Uee,s))return s}return new Hee(!1)},qee=G8.TypeError,Yee=function(e,t){if(X6(t,e))return e;throw qee("Incorrect invocation")},Gee=R6("iterator"),Kee=!1;try{var Xee=0,Zee={next:function(){return{done:!!Xee++}},return:function(){Kee=!0}};Zee[Gee]=function(){return this},Array.from(Zee,(function(){throw 2}))}catch(MC){}var Jee=Array.isArray||function(e){return"Array"==i6(e)},Qee=function(){},ete=[],tte=S6("Reflect","construct"),nte=/^\s*(?:class|function)\b/,ite=Q8(nte.exec),rte=!nte.exec(Qee),ote=function(e){if(!C6(e))return!1;try{return tte(Qee,ete,e),!0}catch(e){return!1}},ate=!tte||e6((function(){var e;return ote(ote.call)||!ote(Object)||!ote((function(){e=!0}))||e}))?function(e){if(!C6(e))return!1;switch(dee(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return rte||!!ite(nte,q7(e))}:ote,ste=R6("species"),lte=G8.Array,cte=function(e,t){return new(function(e){var t;return Jee(e)&&(t=e.constructor,(ate(t)&&(t===lte||Jee(t.prototype))||j6(t)&&null===(t=t[ste]))&&(t=void 0)),void 0===t?lte:t}(e))(0===t?0:t)},ute=Q8([].push),dte=function(e){var t=1==e,n=2==e,i=3==e,r=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,c,u,d){for(var h,p,f=m6(l),m=a6(f),g=Bee(c,u),v=b7(m),y=0,b=d||cte,w=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in m)&&(p=g(h=m[y],y,f),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:ute(w,h)}else switch(e){case 4:return!1;case 7:ute(w,h)}return o?-1:i||r?r:w}},hte={forEach:dte(0),map:dte(1),filter:dte(2),some:dte(3),every:dte(4),find:dte(5),findIndex:dte(6),filterReject:dte(7)},pte=$ee.getWeakData,fte=s9.set,mte=s9.getterFor,gte=hte.find,vte=hte.findIndex,yte=Q8([].splice),bte=0,wte=function(e){return e.frozen||(e.frozen=new _te)},_te=function(){this.entries=[]},Cte=function(e,t){return gte(e.entries,(function(e){return e[0]===t}))};_te.prototype={get:function(e){var t=Cte(this,e);if(t)return t[1]},has:function(e){return!!Cte(this,e)},set:function(e,t){var n=Cte(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=vte(this.entries,(function(t){return t[0]===e}));return~t&&yte(this.entries,t,1),!!~t}};var xte,Ste={getConstructor:function(e,t,n,i){var r=e((function(e,r){Yee(e,o),fte(e,{type:t,id:bte++,frozen:void 0}),null!=r&&Wee(r,e[i],{that:e,AS_ENTRIES:n})})),o=r.prototype,a=mte(t),s=function(e,t,n){var i=a(e),r=pte(V6(t),!0);return!0===r?wte(i).set(t,n):r[i.id]=n,e};return xee(o,{delete:function(e){var t=a(this);if(!j6(e))return!1;var n=pte(e);return!0===n?wte(t).delete(e):n&&v6(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!j6(e))return!1;var n=pte(e);return!0===n?wte(t).has(e):n&&v6(n,t.id)}}),xee(o,n?{get:function(e){var t=a(this);if(j6(e)){var n=pte(e);return!0===n?wte(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),r}},kte=s9.enforce,Ete=!G8.ActiveXObject&&"ActiveXObject"in G8,Dte=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ate=function(e,t,n){var i=-1!==e.indexOf("Map"),r=-1!==e.indexOf("Weak"),o=i?"set":"add",a=G8[e],s=a&&a.prototype,l=a,c={},u=function(e){var t=Q8(s[e]);v9(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(r&&!j6(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return r&&!j6(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(r&&!j6(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(O9(e,!C6(a)||!(r||s.forEach&&!e6((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,i,o),$ee.enable();else if(O9(e,!0)){var d=new l,h=d[o](r?{}:-0,1)!=d,p=e6((function(){d.has(1)})),f=function(){if(!Kee)return!1;var t=!1;try{var n={};n[Gee]=function(){return{next:function(){return{done:t=!0}}}},function(e){new a(e)}(n)}catch(e){}return t}(),m=!r&&e6((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));f||((l=t((function(e,t){Yee(e,s);var n=function(e,t,n){var i,r;return K9&&C6(i=t.constructor)&&i!==n&&j6(r=i.prototype)&&r!==n.prototype&&K9(e,r),e}(new a,e,l);return null!=t&&Wee(t,n[o],{that:n,AS_ENTRIES:i}),n}))).prototype=s,s.constructor=l),(p||m)&&(u("delete"),u("has"),i&&u("get")),(m||h)&&u(o),r&&s.clear&&delete s.clear}return c[e]=l,P9({global:!0,forced:l!=a},c),U9(l,e),r||n.setStrong(l,e,i),l}("WeakMap",Dte,Ste);if(G7&&Ete){xte=Ste.getConstructor(Dte,"WeakMap",!0),$ee.enable();var Tte=Ate.prototype,Ote=Q8(Tte.delete),Ite=Q8(Tte.has),Pte=Q8(Tte.get),$te=Q8(Tte.set);xee(Tte,{delete:function(e){if(j6(e)&&!Iee(e)){var t=kte(this);return t.frozen||(t.frozen=new xte),Ote(this,e)||t.frozen.delete(e)}return Ote(this,e)},has:function(e){if(j6(e)&&!Iee(e)){var t=kte(this);return t.frozen||(t.frozen=new xte),Ite(this,e)||t.frozen.has(e)}return Ite(this,e)},get:function(e){if(j6(e)&&!Iee(e)){var t=kte(this);return t.frozen||(t.frozen=new xte),Ite(this,e)?Pte(this,e):t.frozen.get(e)}return Pte(this,e)},set:function(e,t){if(j6(e)&&!Iee(e)){var n=kte(this);n.frozen||(n.frozen=new xte),Ite(this,e)?$te(this,e,t):n.frozen.set(e,t)}else $te(this,e,t);return this}})}var Fte={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Bte=q6("span").classList,Mte=Bte&&Bte.constructor&&Bte.constructor.prototype,Nte=Mte===Object.prototype?void 0:Mte,Rte=R6("iterator"),jte=R6("toStringTag"),Lte=oee.values,zte=function(e,t){if(e){if(e[Rte]!==Lte)try{X7(e,Rte,Lte)}catch(t){e[Rte]=Lte}if(e[jte]||X7(e,jte,t),Fte[t])for(var n in oee)if(e[n]!==oee[n])try{X7(e,n,oee[n])}catch(t){e[n]=oee[n]}}};for(var Vte in Fte)zte(G8[Vte]&&G8[Vte].prototype,Vte);zte(Nte,"DOMTokenList");var Hte=new WeakMap,Ute={type:"list-item",renderElem:function(e,t,n){Hte.set(e,n);var i=e,r=i.level,o=void 0===r?0:r,a=i.ordered,s={margin:"5px 0 5px "+20*o+"px"},l="";if(void 0!==a&&a){var c=function(e,t){var n=t,i=n.type,r=n.level,o=void 0===r?0:r,a=n.ordered,s=void 0!==a&&a;if(!s)return-1;var l=1,c=t,u=GL.findPath(e,c);if(0===u[0])return 1;for(;u[0]>0;){var d=FS.previous(u),h=kS.node(e,d);if(null==h)break;var p=h[0],f=p.level,m=void 0===f?0:f,g=p.type,v=p.ordered;if(g!==i)break;if(m<o)break;if(m===o){if(v!==s)break;l++}c=p,u=d}return l}(n,e);l=c+"."}else l=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(o);var u=function(e){var t,n=e.children||[],i=n.length;if(0===i)return"";for(var r=0;r<i&&!t;r++){var o=n[r];KS.isText(o)&&(t=o)}return null==t?"":t.color||""}(e);return AA("div",{style:s},AA("span",{contentEditable:!1,style:{marginRight:"0.5em",color:u},"data-w-e-reserve":!0},l),AA("span",null,t))}},Wte=function(e,t){return Wte=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Wte(e,t)
136
136
  /*! *****************************************************************************
137
137
  Copyright (c) Microsoft Corporation.
138
138
 
@@ -146,7 +146,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
146
146
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
147
147
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
148
148
  PERFORMANCE OF THIS SOFTWARE.
149
- ***************************************************************************** */};function qte(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Wte(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Yte(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gte(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function Kte(e){return kS.nodes(e,{at:e.selection||void 0,match:function(t){return 1===GL.findPath(e,t).length}})}var Xte=_7.includes;P9({target:"Array",proto:!0},{includes:function(e){return Xte(this,e,arguments.length>1?arguments[1]:void 0)}}),L7("includes");var Zte,Jte,Qte=function(){var e=V8(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ene=G6.RegExp,tne=e8((function(){var e=ene("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),nne=tne||e8((function(){return!ene("a","y").sticky})),ine={BROKEN_CARET:tne||e8((function(){var e=ene("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:nne,UNSUPPORTED_Y:tne},rne=G6.RegExp,one=e8((function(){var e=rne(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ane=G6.RegExp,sne=e8((function(){var e=ane("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),lne=s9.get,cne=p8("native-string-replace",String.prototype.replace),une=RegExp.prototype.exec,dne=une,hne=Q6("".charAt),pne=Q6("".indexOf),fne=Q6("".replace),mne=Q6("".slice),gne=(Jte=/b*/g,K8(une,Zte=/a/,"a"),K8(une,Jte,"a"),0!==Zte.lastIndex||0!==Jte.lastIndex),vne=ine.BROKEN_CARET,yne=void 0!==/()??/.exec("")[1];(gne||yne||vne||one||sne)&&(dne=function(e){var t,n,i,r,o,a,s,l=this,c=lne(l),u=fee(e),d=c.raw;if(d)return d.lastIndex=l.lastIndex,t=K8(dne,d,u),l.lastIndex=d.lastIndex,t;var h=c.groups,p=vne&&l.sticky,f=K8(Qte,l),m=l.source,g=0,v=u;if(p&&(f=fne(f,"y",""),-1===pne(f,"g")&&(f+="g"),v=mne(u,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==hne(u,l.lastIndex-1))&&(m="(?: "+m+")",v=" "+v,g++),n=new RegExp("^(?:"+m+")",f)),yne&&(n=new RegExp("^"+m+"$(?!\\s)",f)),gne&&(i=l.lastIndex),r=K8(une,p?n:l,v),p?r?(r.input=mne(r.input,g),r[0]=mne(r[0],g),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:gne&&r&&(l.lastIndex=l.global?r.index+r[0].length:i),yne&&r&&r.length>1&&K8(cne,r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&h)for(r.groups=a=N7(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=r[s[1]];return r});var bne=dne;P9({target:"RegExp",proto:!0,forced:/./.exec!==bne},{exec:bne});var wne=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return GL.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!GL.getSelectedElems(e).some((function(t){if(kS.isVoid(e,t)&&kS.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?pk.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):pk.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),_ne='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',Cne='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',xne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Bq("listModule.unOrderedList"),t.iconSvg=_ne,t}return qte(t,e),t}(wne),Sne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Bq("listModule.orderedList"),t.iconSvg=Cne,t}return qte(t,e),t}(wne),kne={key:"bulletedList",factory:function(){return new xne}},Ene={key:"numberedList",factory:function(){return new Sne}},Dne=[],Ane={type:"list-item",elemToHtml:function(e,t){var n="",i="",r=e.ordered,o=void 0!==r&&r?"ol":"ul",a=function(e){var t=Hte.get(e);if(null==t)return 0;var n=e,i=n.type,r=n.ordered,o=void 0!==r&&r,a=n.level,s=void 0===a?0:a,l=GL.findPath(t,e);if(0===l[0])return s+1;var c=FS.previous(l),u=kS.node(t,c);if(!u)return 0;var d=Gte(u,1)[0];if(GL.getNodeType(d)!==i)return s+1;var h=d,p=h.ordered,f=void 0!==p&&p,m=h.level,g=void 0===m?0:m;return g<s?s-g:g>s?0:g===s?f===o?0:1:0}(e);if(a>0)for(var s=0;s<a;s++)n+="<"+o+">",Dne.push(o);var l=function(e){var t=Hte.get(e);if(null==t)return 0;var n=e,i=n.type,r=n.ordered,o=void 0!==r&&r,a=n.level,s=void 0===a?0:a,l=GL.findPath(t,e);if(l[0]===t.children.length-1)return s+1;var c=FS.next(l),u=kS.node(t,c);if(!u)return 0;var d=Gte(u,1)[0];if(GL.getNodeType(d)!==i)return s+1;var h=d,p=h.ordered,f=void 0!==p&&p,m=h.level,g=void 0===m?0:m;return g<s?s-g:g>s?0:g===s?f===o?0:1:0}(e);if(l>0)for(s=0;s<l;s++)i+="</"+Dne.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:i}}},Tne=R8("species"),One=hte.filter,Ine=I8>=51||!e8((function(){var e=[];return(e.constructor={})[Tne]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));P9({target:"Array",proto:!0,forced:!Ine},{filter:function(e){return One(this,e,arguments.length>1?arguments[1]:void 0)}});var Pne=Function.prototype,$ne=Pne.apply,Fne=Pne.bind,Bne=Pne.call,Mne="object"==typeof Reflect&&Reflect.apply||(Fne?Bne.bind($ne):function(){return Bne.apply($ne,arguments)}),Nne=(R8("species"),RegExp.prototype),Rne=bee.charAt,jne=function(e,t,n){return t+(n?Rne(e,t).length:1)},Lne=Math.floor,zne=Q6("".charAt),Vne=Q6("".replace),Hne=Q6("".slice),Une=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Wne=/\$([$&'`]|\d{1,2})/g,qne=function(e,t,n,i,r,o){var a=n+e.length,s=i.length,l=Wne;return void 0!==r&&(r=m8(r),l=Une),Vne(o,l,(function(o,l){var c;switch(zne(l,0)){case"$":return"$";case"&":return e;case"`":return Hne(t,0,n);case"'":return Hne(t,a);case"<":c=r[Hne(l,1,-1)];break;default:var u=+l;if(0===u)return o;if(u>s){var d=Lne(u/10);return 0===d?o:d<=s?void 0===i[d-1]?zne(l,1):i[d-1]+zne(l,1):o}c=i[u-1]}return void 0===c?"":c}))},Yne=G6.TypeError,Gne=function(e,t){var n=e.exec;if(C8(n)){var i=K8(n,e,t);return null!==i&&V8(i),i}if("RegExp"===i8(e))return K8(bne,e,t);throw Yne("RegExp#exec called on incompatible receiver")},Kne=R8("replace"),Xne=Math.max,Zne=Math.min,Jne=Q6([].concat),Qne=Q6([].push),eie=Q6("".indexOf),tie=Q6("".slice),nie="$0"==="a".replace(/./,"$0"),iie=!!/./[Kne]&&""===/./[Kne]("a","$0");!function(e,t,n){var i=R8(e),r=!e8((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),o=r&&!e8((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](""),!e}));if(!r||!o||n){var a=Q6(/./[i]),s=function(e,t,n){var i=iie?"$":"$0";return[function(e,n){var i=l8(this),r=null==e?void 0:i7(e,Kne);return r?K8(r,e,i,n):K8(t,fee(i),e,n)},function(e,r){var o=V8(this),a=fee(e);if("string"==typeof r&&-1===eie(r,i)&&-1===eie(r,"$<")){var s=n(t,o,a,r);if(s.done)return s.value}var l=C8(r);l||(r=fee(r));var c=o.global;if(c){var u=o.unicode;o.lastIndex=0}for(var d=[];;){var h=Gne(o,a);if(null===h)break;if(Qne(d,h),!c)break;""===fee(h[0])&&(o.lastIndex=jne(a,y7(o.lastIndex),u))}for(var p,f="",m=0,g=0;g<d.length;g++){for(var v=fee((h=d[g])[0]),y=Xne(Zne(p7(h.index),a.length),0),b=[],w=1;w<h.length;w++)Qne(b,void 0===(p=h[w])?p:String(p));var _=h.groups;if(l){var C=Jne([v],b,y,a);void 0!==_&&Qne(C,_);var x=fee(Mne(r,void 0,C))}else x=qne(v,a,y,b,_,r);y>=m&&(f+=tie(a,m,y)+x,m=y+v.length)}return f+tie(a,m)}]}(0,""[e],(function(e,t,n,i,o){var s=Q6(e),l=t.exec;return l===bne||l===Nne.exec?r&&!o?{done:!0,value:a(t,n,i)}:{done:!0,value:s(n,t,i)}:{done:!1}}));v9(String.prototype,e,s[0]),v9(Nne,i,s[1])}}("replace",0,!!e8((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!nie||iie);var rie=G6.TypeError,oie=function(e,t,n,i,r,o,a,s){for(var l,c,u=r,d=0,h=!!a&&Bee(a,s);d<i;){if(d in n){if(l=h?h(n[d],d,t):n[d],o>0&&Jee(l))c=b7(l),u=oie(e,t,l,c,u,o-1)-1;else{if(u>=9007199254740991)throw rie("Exceed the acceptable array length");e[u]=l}u++}d++}return u},aie=oie;function sie(e){return e.length?e[0].tagName.toLowerCase():""}P9({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=m8(this),n=b7(t),i=cte(t,0);return i.length=aie(i,t,t,n,0,void 0===e?1:p7(e)),i}}),L7("flat"),P9({global:!0},{globalThis:G6}),tD&&(FE.fn.append=tD),RE&&(FE.fn.attr=RE),iD&&(FE.fn.parent=iD);var lie={renderElems:[Ute],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,i=e.normalizeNode,r=e;return r.deleteBackward=function(e){var n=r.selection;if(null!=n)if(VS.isExpanded(n))t(e);else{var i=GL.getSelectedNodeByType(r,"list-item");if(null!=i)if(0!==n.focus.offset)t(e);else{var o=i.level,a=void 0===o?0:o;a>0?pk.setNodes(r,{level:a-1}):pk.setNodes(r,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},r.handleTab=function(){var e,t,i,o,a=r.selection;if(null!=a){if(VS.isCollapsed(a)){var s=GL.getSelectedNodeByType(r,"list-item");if(null==s)return void n();if(0===a.focus.offset){var l=s.level,c=void 0===l?0:l;return void pk.setNodes(r,{level:c+1})}}if(VS.isExpanded(a)){var u=0,d=!1;try{for(var h=Yte(Kte(r)),p=h.next();!p.done;p=h.next()){var f=Gte(p.value,1)[0];"list-item"===GL.getNodeType(f)?u++:d=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}if(d||u<=1)return void n();try{for(var m=Yte(Kte(r)),g=m.next();!g.done;g=m.next()){var v=Gte(g.value,2),y=(f=v[0],v[1]),b=f.level;c=void 0===b?0:b,pk.setNodes(r,{level:c+1},{at:y})}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}}else n()}else n()},r.normalizeNode=function(e){var t=Gte(e,2),n=t[0],o=t[1],a=GL.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||pk.unwrapNodes(r,{at:o}),i([n,o])},r},menus:[kne,Ene],elemsToHtml:[Ane],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var i=FE(e);0===(t=t.filter((function(e){return!!KS.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:i.text().replace(/\s+/gm," ")}]);var r=function(e){return"ol"===sie(e.parent())}(i),o=function(e){for(var t=0,n=e.parent(),i=sie(n);"ul"===i||"ol"===i;)i=sie(n=n.parent()),t++;return t-1}(i);return{type:"list-item",ordered:r,level:o,children:t}}}]},cie=eh((function(e,t){var n="__lodash_hash_undefined__",i=9007199254740991,r="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",h="[object Object]",p="[object Promise]",f="[object RegExp]",m="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",_=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[r]=x[o]=x[b]=x[a]=x[w]=x[s]=x[l]=x[c]=x[u]=x[d]=x[h]=x[f]=x[m]=x[g]=x[y]=!1;var S="object"==typeof Jd&&Jd&&Jd.Object===Object&&Jd,k="object"==typeof self&&self&&self.Object===Object&&self,E=S||k||Function("return this")(),D=t&&!t.nodeType&&t,A=D&&e&&!e.nodeType&&e,T=A&&A.exports===D,O=T&&S.process,I=function(){try{return O&&O.binding&&O.binding("util")}catch(Jd){}}(),P=I&&I.isTypedArray;function $(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function F(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function B(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var M=Array.prototype,N=Function.prototype,R=Object.prototype,j=E["__core-js_shared__"],L=N.toString,z=R.hasOwnProperty,V=function(){var e=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),H=R.toString,U=RegExp("^"+L.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=T?E.Buffer:void 0,q=E.Symbol,Y=E.Uint8Array,G=R.propertyIsEnumerable,K=M.splice,X=q?q.toStringTag:void 0,Z=Object.getOwnPropertySymbols,J=W?W.isBuffer:void 0,Q=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ee=Ae(E,"DataView"),te=Ae(E,"Map"),ne=Ae(E,"Promise"),ie=Ae(E,"Set"),re=Ae(E,"WeakMap"),oe=Ae(Object,"create"),ae=Pe(ee),se=Pe(te),le=Pe(ne),ce=Pe(ie),ue=Pe(re),de=q?q.prototype:void 0,he=de?de.valueOf:void 0;function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new me;++t<n;)this.add(e[t])}function ve(e){var t=this.__data__=new fe(e);this.size=t.size}function ye(e,t){var n=Be(e),i=!n&&Fe(e),r=!n&&!i&&Me(e),o=!n&&!i&&!r&&ze(e),a=n||i||r||o,s=a?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],l=s.length;for(var c in e)!t&&!z.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ie(c,l))||s.push(c);return s}function be(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=z.call(e,X),n=e[X];try{e[X]=void 0;var i=!0}catch(e){}var r=H.call(e);return i&&(t?e[X]=n:delete e[X]),r}(e):function(e){return H.call(e)}(e)}function _e(e){return Le(e)&&we(e)==r}function Ce(e,t,n,i,c){return e===t||(null==e||null==t||!Le(e)&&!Le(t)?e!=e&&t!=t:function(e,t,n,i,c,p){var y=Be(e),_=Be(t),C=y?o:Oe(e),x=_?o:Oe(t),S=(C=C==r?h:C)==h,k=(x=x==r?h:x)==h,E=C==x;if(E&&Me(e)){if(!Me(t))return!1;y=!0,S=!1}if(E&&!S)return p||(p=new ve),y||ze(e)?ke(e,t,n,i,c,p):function(e,t,n,i,r,o,c){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!o(new Y(e),new Y(t)));case a:case s:case d:return $e(+e,+t);case l:return e.name==t.name&&e.message==t.message;case f:case g:return e==t+"";case u:var h=F;case m:var p=1&i;if(h||(h=B),e.size!=t.size&&!p)return!1;var y=c.get(e);if(y)return y==t;i|=2,c.set(e,t);var _=ke(h(e),h(t),i,r,o,c);return c.delete(e),_;case v:if(he)return he.call(e)==he.call(t)}return!1}(e,t,C,n,i,c,p);if(!(1&n)){var D=S&&z.call(e,"__wrapped__"),A=k&&z.call(t,"__wrapped__");if(D||A){var T=D?e.value():e,O=A?t.value():t;return p||(p=new ve),c(T,O,n,i,p)}}return!!E&&(p||(p=new ve),function(e,t,n,i,r,o){var a=1&n,s=Ee(e),l=s.length,c=Ee(t).length;if(l!=c&&!a)return!1;for(var u=l;u--;){var d=s[u];if(!(a?d in t:z.call(t,d)))return!1}var h=o.get(e);if(h&&o.get(t))return h==t;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++u<l;){var m=e[d=s[u]],g=t[d];if(i)var v=a?i(g,m,d,t,e,o):i(m,g,d,e,t,o);if(!(void 0===v?m===g||r(m,g,n,i,o):v)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,i,c,p))}(e,t,n,i,Ce,c))}function xe(e){return!(!je(e)||function(e){return!!V&&V in e}(e))&&(Ne(e)?U:_).test(Pe(e))}function Se(e){if(n=(t=e)&&t.constructor,i="function"==typeof n&&n.prototype||R,t!==i)return Q(e);var t,n,i,r=[];for(var o in Object(e))z.call(e,o)&&"constructor"!=o&&r.push(o);return r}function ke(e,t,n,i,r,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,h=2&n?new ge:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var p=e[u],f=t[u];if(i)var m=a?i(f,p,u,t,e,o):i(p,f,u,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!$(t,(function(e,t){if(a=t,!h.has(a)&&(p===e||r(p,e,n,i,o)))return h.push(t);var a}))){d=!1;break}}else if(p!==f&&!r(p,f,n,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ee(e){return function(e,t,n){var i=t(e);return Be(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(e))}(e,Ve,Te)}function De(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xe(n)?n:void 0}pe.prototype.clear=function(){this.__data__=oe?oe(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.prototype.get=function(e){var t=this.__data__;if(oe){var i=t[e];return i===n?void 0:i}return z.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return oe?void 0!==t[e]:z.call(t,e)},pe.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=oe&&void 0===t?n:t,this},fe.prototype.clear=function(){this.__data__=[],this.size=0},fe.prototype.delete=function(e){var t=this.__data__,n=be(t,e);return!(n<0)&&(n==t.length-1?t.pop():K.call(t,n,1),--this.size,!0)},fe.prototype.get=function(e){var t=this.__data__,n=be(t,e);return n<0?void 0:t[n][1]},fe.prototype.has=function(e){return be(this.__data__,e)>-1},fe.prototype.set=function(e,t){var n=this.__data__,i=be(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},me.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(te||fe),string:new pe}},me.prototype.delete=function(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t},me.prototype.get=function(e){return De(this,e).get(e)},me.prototype.has=function(e){return De(this,e).has(e)},me.prototype.set=function(e,t){var n=De(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},ge.prototype.add=ge.prototype.push=function(e){return this.__data__.set(e,n),this},ge.prototype.has=function(e){return this.__data__.has(e)},ve.prototype.clear=function(){this.__data__=new fe,this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ve.prototype.get=function(e){return this.__data__.get(e)},ve.prototype.has=function(e){return this.__data__.has(e)},ve.prototype.set=function(e,t){var n=this.__data__;if(n instanceof fe){var i=n.__data__;if(!te||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new me(i)}return n.set(e,t),this.size=n.size,this};var Te=Z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}(Z(e),(function(t){return G.call(e,t)})))}:function(){return[]},Oe=we;function Ie(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function Pe(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(ee&&Oe(new ee(new ArrayBuffer(1)))!=w||te&&Oe(new te)!=u||ne&&Oe(ne.resolve())!=p||ie&&Oe(new ie)!=m||re&&Oe(new re)!=y)&&(Oe=function(e){var t=we(e),n=t==h?e.constructor:void 0,i=n?Pe(n):"";if(i)switch(i){case ae:return w;case se:return u;case le:return p;case ce:return m;case ue:return y}return t});var Fe=_e(function(){return arguments}())?_e:function(e){return Le(e)&&z.call(e,"callee")&&!G.call(e,"callee")},Be=Array.isArray,Me=J||function(){return!1};function Ne(e){if(!je(e))return!1;var t=we(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Re(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Le(e){return null!=e&&"object"==typeof e}var ze=P?function(e){return function(t){return e(t)}}(P):function(e){return Le(e)&&Re(e.length)&&!!x[we(e)]};function Ve(e){return null!=(t=e)&&Re(t.length)&&!Ne(t)?ye(e):Se(e);var t}e.exports=function(e,t){return Ce(e,t)}}));$q("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),$q("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var uie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof i.g?i.g:"undefined"!=typeof self?self:{};function die(e){var t={exports:{}};return e(t,t.exports),t.exports}var hie,pie,fie=function(e){return e&&e.Math==Math&&e},mie=fie("object"==typeof globalThis&&globalThis)||fie("object"==typeof window&&window)||fie("object"==typeof self&&self)||fie("object"==typeof uie&&uie)||function(){return this}()||Function("return this")(),gie=function(e){try{return!!e()}catch(e){return!0}},vie=!gie((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),yie=Function.prototype.call,bie=yie.bind?yie.bind(yie):function(){return yie.apply(yie,arguments)},wie={}.propertyIsEnumerable,_ie=Object.getOwnPropertyDescriptor,Cie={f:_ie&&!wie.call({1:2},1)?function(e){var t=_ie(this,e);return!!t&&t.enumerable}:wie},xie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Sie=Function.prototype,kie=Sie.bind,Eie=Sie.call,Die=kie&&kie.bind(Eie),Aie=kie?function(e){return e&&Die(Eie,e)}:function(e){return e&&function(){return Eie.apply(e,arguments)}},Tie=Aie({}.toString),Oie=Aie("".slice),Iie=function(e){return Oie(Tie(e),8,-1)},Pie=mie.Object,$ie=Aie("".split),Fie=gie((function(){return!Pie("z").propertyIsEnumerable(0)}))?function(e){return"String"==Iie(e)?$ie(e,""):Pie(e)}:Pie,Bie=mie.TypeError,Mie=function(e){if(null==e)throw Bie("Can't call method on "+e);return e},Nie=function(e){return Fie(Mie(e))},Rie=function(e){return"function"==typeof e},jie=function(e){return"object"==typeof e?null!==e:Rie(e)},Lie=function(e){return Rie(e)?e:void 0},zie=function(e,t){return arguments.length<2?Lie(mie[e]):mie[e]&&mie[e][t]},Vie=Aie({}.isPrototypeOf),Hie=zie("navigator","userAgent")||"",Uie=mie.process,Wie=mie.Deno,qie=Uie&&Uie.versions||Wie&&Wie.version,Yie=qie&&qie.v8;Yie&&(pie=(hie=Yie.split("."))[0]>0&&hie[0]<4?1:+(hie[0]+hie[1])),!pie&&Hie&&(!(hie=Hie.match(/Edge\/(\d+)/))||hie[1]>=74)&&(hie=Hie.match(/Chrome\/(\d+)/))&&(pie=+hie[1]);var Gie=pie,Kie=!!Object.getOwnPropertySymbols&&!gie((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Gie&&Gie<41})),Xie=Kie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Zie=mie.Object,Jie=Xie?function(e){return"symbol"==typeof e}:function(e){var t=zie("Symbol");return Rie(t)&&Vie(t.prototype,Zie(e))},Qie=mie.String,ere=function(e){try{return Qie(e)}catch(e){return"Object"}},tre=mie.TypeError,nre=function(e){if(Rie(e))return e;throw tre(ere(e)+" is not a function")},ire=function(e,t){var n=e[t];return null==n?void 0:nre(n)},rre=mie.TypeError,ore=Object.defineProperty,are=function(e,t){try{ore(mie,e,{value:t,configurable:!0,writable:!0})}catch(eh){mie[e]=t}return t},sre=mie["__core-js_shared__"]||are("__core-js_shared__",{}),lre=die((function(e){(e.exports=function(e,t){return sre[e]||(sre[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),cre=mie.Object,ure=function(e){return cre(Mie(e))},dre=Aie({}.hasOwnProperty),hre=Object.hasOwn||function(e,t){return dre(ure(e),t)},pre=0,fre=Math.random(),mre=Aie(1..toString),gre=function(e){return"Symbol("+(void 0===e?"":e)+")_"+mre(++pre+fre,36)},vre=lre("wks"),yre=mie.Symbol,bre=yre&&yre.for,wre=Xie?yre:yre&&yre.withoutSetter||gre,_re=function(e){if(!hre(vre,e)||!Kie&&"string"!=typeof vre[e]){var t="Symbol."+e;Kie&&hre(yre,e)?vre[e]=yre[e]:vre[e]=Xie&&bre?bre(t):wre(t)}return vre[e]},Cre=mie.TypeError,xre=_re("toPrimitive"),Sre=function(e){var t=function(e,t){if(!jie(e)||Jie(e))return e;var n,i=ire(e,xre);if(i){if(void 0===t&&(t="default"),n=bie(i,e,t),!jie(n)||Jie(n))return n;throw Cre("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,i;if("string"===t&&Rie(n=e.toString)&&!jie(i=bie(n,e)))return i;if(Rie(n=e.valueOf)&&!jie(i=bie(n,e)))return i;if("string"!==t&&Rie(n=e.toString)&&!jie(i=bie(n,e)))return i;throw rre("Can't convert object to primitive value")}(e,t)}(e,"string");return Jie(t)?t:t+""},kre=mie.document,Ere=jie(kre)&&jie(kre.createElement),Dre=function(e){return Ere?kre.createElement(e):{}},Are=!vie&&!gie((function(){return 7!=Object.defineProperty(Dre("div"),"a",{get:function(){return 7}}).a})),Tre=Object.getOwnPropertyDescriptor,Ore={f:vie?Tre:function(e,t){if(e=Nie(e),t=Sre(t),Are)try{return Tre(e,t)}catch(e){}if(hre(e,t))return xie(!bie(Cie.f,e,t),e[t])}},Ire=mie.String,Pre=mie.TypeError,$re=function(e){if(jie(e))return e;throw Pre(Ire(e)+" is not an object")},Fre=mie.TypeError,Bre=Object.defineProperty,Mre={f:vie?Bre:function(e,t,n){if($re(e),t=Sre(t),$re(n),Are)try{return Bre(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Fre("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Nre=vie?function(e,t,n){return Mre.f(e,t,xie(1,n))}:function(e,t,n){return e[t]=n,e},Rre=Aie(Function.toString);Rie(sre.inspectSource)||(sre.inspectSource=function(e){return Rre(e)});var jre,Lre,zre,Vre=sre.inspectSource,Hre=mie.WeakMap,Ure=Rie(Hre)&&/native code/.test(Vre(Hre)),Wre=lre("keys"),qre=function(e){return Wre[e]||(Wre[e]=gre(e))},Yre={},Gre=mie.TypeError,Kre=mie.WeakMap;if(Ure||sre.state){var Xre=sre.state||(sre.state=new Kre),Zre=Aie(Xre.get),Jre=Aie(Xre.has),Qre=Aie(Xre.set);jre=function(e,t){if(Jre(Xre,e))throw new Gre("Object already initialized");return t.facade=e,Qre(Xre,e,t),t},Lre=function(e){return Zre(Xre,e)||{}},zre=function(e){return Jre(Xre,e)}}else{var eoe=qre("state");Yre[eoe]=!0,jre=function(e,t){if(hre(e,eoe))throw new Gre("Object already initialized");return t.facade=e,Nre(e,eoe,t),t},Lre=function(e){return hre(e,eoe)?e[eoe]:{}},zre=function(e){return hre(e,eoe)}}var toe={set:jre,get:Lre,has:zre,enforce:function(e){return zre(e)?Lre(e):jre(e,{})},getterFor:function(e){return function(t){var n;if(!jie(t)||(n=Lre(t)).type!==e)throw Gre("Incompatible receiver, "+e+" required");return n}}},noe=Function.prototype,ioe=vie&&Object.getOwnPropertyDescriptor,roe=hre(noe,"name"),ooe={EXISTS:roe,PROPER:roe&&"something"===function(){}.name,CONFIGURABLE:roe&&(!vie||vie&&ioe(noe,"name").configurable)},aoe=die((function(e){var t=ooe.CONFIGURABLE,n=toe.get,i=toe.enforce,r=String(String).split("String");(e.exports=function(e,n,o,a){var s,l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;Rie(o)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!hre(o,"name")||t&&o.name!==d)&&Nre(o,"name",d),(s=i(o)).source||(s.source=r.join("string"==typeof d?d:""))),e!==mie?(l?!u&&e[n]&&(c=!0):delete e[n],c?e[n]=o:Nre(e,n,o)):c?e[n]=o:are(n,o)})(Function.prototype,"toString",(function(){return Rie(this)&&n(this).source||Vre(this)}))})),soe=Math.ceil,loe=Math.floor,coe=function(e){var t=+e;return t!=t||0===t?0:(t>0?loe:soe)(t)},uoe=Math.max,doe=Math.min,hoe=function(e,t){var n=coe(e);return n<0?uoe(n+t,0):doe(n,t)},poe=Math.min,foe=function(e){return e>0?poe(coe(e),9007199254740991):0},moe=function(e){return foe(e.length)},goe=function(e){return function(t,n,i){var r,o=Nie(t),a=moe(o),s=hoe(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},voe=(goe(!0),goe(!1)),yoe=Aie([].push),boe=function(e,t){var n,i=Nie(e),r=0,o=[];for(n in i)!hre(Yre,n)&&hre(i,n)&&yoe(o,n);for(;t.length>r;)hre(i,n=t[r++])&&(~voe(o,n)||yoe(o,n));return o},woe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_oe=woe.concat("length","prototype"),Coe={f:Object.getOwnPropertyNames||function(e){return boe(e,_oe)}},xoe={f:Object.getOwnPropertySymbols},Soe=Aie([].concat),koe=zie("Reflect","ownKeys")||function(e){var t=Coe.f($re(e)),n=xoe.f;return n?Soe(t,n(e)):t},Eoe=function(e,t){for(var n=koe(t),i=Mre.f,r=Ore.f,o=0;o<n.length;o++){var a=n[o];hre(e,a)||i(e,a,r(t,a))}},Doe=/#|\.prototype\./,Aoe=function(e,t){var n=Ooe[Toe(e)];return n==Poe||n!=Ioe&&(Rie(t)?gie(t):!!t)},Toe=Aoe.normalize=function(e){return String(e).replace(Doe,".").toLowerCase()},Ooe=Aoe.data={},Ioe=Aoe.NATIVE="N",Poe=Aoe.POLYFILL="P",$oe=Aoe,Foe=Ore.f,Boe=function(e,t){var n,i,r,o,a,s=e.target,l=e.global,c=e.stat;if(n=l?mie:c?mie[s]||are(s,{}):(mie[s]||{}).prototype)for(i in t){if(o=t[i],r=e.noTargetGet?(a=Foe(n,i))&&a.value:n[i],!$oe(l?i:s+(c?".":"#")+i,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;Eoe(o,r)}(e.sham||r&&r.sham)&&Nre(o,"sham",!0),aoe(n,i,o,e)}},Moe={};Moe[_re("toStringTag")]="z";var Noe="[object z]"===String(Moe),Roe=_re("toStringTag"),joe=mie.Object,Loe="Arguments"==Iie(function(){return arguments}()),zoe=Noe?Iie:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=joe(e),Roe))?n:Loe?Iie(t):"Object"==(i=Iie(t))&&Rie(t.callee)?"Arguments":i},Voe=mie.String,Hoe=function(e){if("Symbol"===zoe(e))throw TypeError("Cannot convert a Symbol value to a string");return Voe(e)},Uoe=/"/g,Woe=Aie("".replace);Boe({target:"String",proto:!0,forced:gie((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Hoe(Mie(this)),i="<a",(i+=' name="'+Woe(Hoe(t),Uoe,"&quot;")+'"')+">"+n+"</a>";var t,n,i}});var qoe,Yoe=function(){var e=$re(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Goe=mie.RegExp,Koe=gie((function(){var e=Goe("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Xoe=Koe||gie((function(){return!Goe("a","y").sticky})),Zoe={BROKEN_CARET:Koe||gie((function(){var e=Goe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Xoe,UNSUPPORTED_Y:Koe},Joe=Object.keys||function(e){return boe(e,woe)},Qoe=vie?Object.defineProperties:function(e,t){$re(e);for(var n,i=Nie(t),r=Joe(t),o=r.length,a=0;o>a;)Mre.f(e,n=r[a++],i[n]);return e},eae=zie("document","documentElement"),tae=qre("IE_PROTO"),nae=function(){},iae=function(e){return"<script>"+e+"<\/script>"},rae=function(e){e.write(iae("")),e.close();var t=e.parentWindow.Object;return e=null,t},oae=function(){try{qoe=new ActiveXObject("htmlfile")}catch(e){}var e,t;oae="undefined"!=typeof document?document.domain&&qoe?rae(qoe):((t=Dre("iframe")).style.display="none",eae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(iae("document.F=Object")),e.close(),e.F):rae(qoe);for(var n=woe.length;n--;)delete oae.prototype[woe[n]];return oae()};Yre[tae]=!0;var aae,sae,lae=Object.create||function(e,t){var n;return null!==e?(nae.prototype=$re(e),n=new nae,nae.prototype=null,n[tae]=e):n=oae(),void 0===t?n:Qoe(n,t)},cae=mie.RegExp,uae=gie((function(){var e=cae(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),dae=mie.RegExp,hae=gie((function(){var e=dae("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),pae=toe.get,fae=lre("native-string-replace",String.prototype.replace),mae=RegExp.prototype.exec,gae=mae,vae=Aie("".charAt),yae=Aie("".indexOf),bae=Aie("".replace),wae=Aie("".slice),_ae=(sae=/b*/g,bie(mae,aae=/a/,"a"),bie(mae,sae,"a"),0!==aae.lastIndex||0!==sae.lastIndex),Cae=Zoe.BROKEN_CARET,xae=void 0!==/()??/.exec("")[1];(_ae||xae||Cae||uae||hae)&&(gae=function(e){var t,n,i,r,o,a,s,l=this,c=pae(l),u=Hoe(e),d=c.raw;if(d)return d.lastIndex=l.lastIndex,t=bie(gae,d,u),l.lastIndex=d.lastIndex,t;var h=c.groups,p=Cae&&l.sticky,f=bie(Yoe,l),m=l.source,g=0,v=u;if(p&&(f=bae(f,"y",""),-1===yae(f,"g")&&(f+="g"),v=wae(u,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==vae(u,l.lastIndex-1))&&(m="(?: "+m+")",v=" "+v,g++),n=new RegExp("^(?:"+m+")",f)),xae&&(n=new RegExp("^"+m+"$(?!\\s)",f)),_ae&&(i=l.lastIndex),r=bie(mae,p?n:l,v),p?r?(r.input=wae(r.input,g),r[0]=wae(r[0],g),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:_ae&&r&&(l.lastIndex=l.global?r.index+r[0].length:i),xae&&r&&r.length>1&&bie(fae,r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&h)for(r.groups=a=lae(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=r[s[1]];return r});var Sae=gae;Boe({target:"RegExp",proto:!0,forced:/./.exec!==Sae},{exec:Sae});var kae=Array.isArray||function(e){return"Array"==Iie(e)},Eae=function(){},Dae=[],Aae=zie("Reflect","construct"),Tae=/^\s*(?:class|function)\b/,Oae=Aie(Tae.exec),Iae=!Tae.exec(Eae),Pae=function(e){if(!Rie(e))return!1;try{return Aae(Eae,Dae,e),!0}catch(e){return!1}},$ae=!Aae||gie((function(){var e;return Pae(Pae.call)||!Pae(Object)||!Pae((function(){e=!0}))||e}))?function(e){if(!Rie(e))return!1;switch(zoe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Iae||!!Oae(Tae,Vre(e))}:Pae,Fae=function(e,t,n){var i=Sre(t);i in e?Mre.f(e,i,xie(0,n)):e[i]=n},Bae=_re("species"),Mae=function(e){return Gie>=51||!gie((function(){var t=[];return(t.constructor={})[Bae]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Nae=Aie([].slice),Rae=Mae("slice"),jae=_re("species"),Lae=mie.Array,zae=Math.max;function Vae(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function Hae(e){var t=e.selection;if(null==t)return!1;var n=Vae(kS.nodes(e,{match:function(e){return GL.checkNodeType(e,"table-cell")}}),1)[0];if(n){var i=Vae(n,2)[1],r=kS.start(e,i);if(RS.equals(t.anchor,r))return!0}return!1}function Uae(e,t){var n,i,r=kS.nodes(e,{at:t,match:function(e){return"table"===GL.getNodeType(e)}}),o=!1;try{for(var a=
149
+ ***************************************************************************** */};function qte(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Wte(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Yte(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gte(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function Kte(e){return kS.nodes(e,{at:e.selection||void 0,match:function(t){return 1===GL.findPath(e,t).length}})}var Xte=_7.includes;P9({target:"Array",proto:!0},{includes:function(e){return Xte(this,e,arguments.length>1?arguments[1]:void 0)}}),L7("includes");var Zte,Jte,Qte=function(){var e=V6(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ene=G8.RegExp,tne=e6((function(){var e=ene("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),nne=tne||e6((function(){return!ene("a","y").sticky})),ine={BROKEN_CARET:tne||e6((function(){var e=ene("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:nne,UNSUPPORTED_Y:tne},rne=G8.RegExp,one=e6((function(){var e=rne(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ane=G8.RegExp,sne=e6((function(){var e=ane("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),lne=s9.get,cne=p6("native-string-replace",String.prototype.replace),une=RegExp.prototype.exec,dne=une,hne=Q8("".charAt),pne=Q8("".indexOf),fne=Q8("".replace),mne=Q8("".slice),gne=(Jte=/b*/g,K6(une,Zte=/a/,"a"),K6(une,Jte,"a"),0!==Zte.lastIndex||0!==Jte.lastIndex),vne=ine.BROKEN_CARET,yne=void 0!==/()??/.exec("")[1];(gne||yne||vne||one||sne)&&(dne=function(e){var t,n,i,r,o,a,s,l=this,c=lne(l),u=fee(e),d=c.raw;if(d)return d.lastIndex=l.lastIndex,t=K6(dne,d,u),l.lastIndex=d.lastIndex,t;var h=c.groups,p=vne&&l.sticky,f=K6(Qte,l),m=l.source,g=0,v=u;if(p&&(f=fne(f,"y",""),-1===pne(f,"g")&&(f+="g"),v=mne(u,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==hne(u,l.lastIndex-1))&&(m="(?: "+m+")",v=" "+v,g++),n=new RegExp("^(?:"+m+")",f)),yne&&(n=new RegExp("^"+m+"$(?!\\s)",f)),gne&&(i=l.lastIndex),r=K6(une,p?n:l,v),p?r?(r.input=mne(r.input,g),r[0]=mne(r[0],g),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:gne&&r&&(l.lastIndex=l.global?r.index+r[0].length:i),yne&&r&&r.length>1&&K6(cne,r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&h)for(r.groups=a=N7(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=r[s[1]];return r});var bne=dne;P9({target:"RegExp",proto:!0,forced:/./.exec!==bne},{exec:bne});var wne=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return GL.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!GL.getSelectedElems(e).some((function(t){if(kS.isVoid(e,t)&&kS.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?pk.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):pk.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),_ne='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',Cne='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',xne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Bq("listModule.unOrderedList"),t.iconSvg=_ne,t}return qte(t,e),t}(wne),Sne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Bq("listModule.orderedList"),t.iconSvg=Cne,t}return qte(t,e),t}(wne),kne={key:"bulletedList",factory:function(){return new xne}},Ene={key:"numberedList",factory:function(){return new Sne}},Dne=[],Ane={type:"list-item",elemToHtml:function(e,t){var n="",i="",r=e.ordered,o=void 0!==r&&r?"ol":"ul",a=function(e){var t=Hte.get(e);if(null==t)return 0;var n=e,i=n.type,r=n.ordered,o=void 0!==r&&r,a=n.level,s=void 0===a?0:a,l=GL.findPath(t,e);if(0===l[0])return s+1;var c=FS.previous(l),u=kS.node(t,c);if(!u)return 0;var d=Gte(u,1)[0];if(GL.getNodeType(d)!==i)return s+1;var h=d,p=h.ordered,f=void 0!==p&&p,m=h.level,g=void 0===m?0:m;return g<s?s-g:g>s?0:g===s?f===o?0:1:0}(e);if(a>0)for(var s=0;s<a;s++)n+="<"+o+">",Dne.push(o);var l=function(e){var t=Hte.get(e);if(null==t)return 0;var n=e,i=n.type,r=n.ordered,o=void 0!==r&&r,a=n.level,s=void 0===a?0:a,l=GL.findPath(t,e);if(l[0]===t.children.length-1)return s+1;var c=FS.next(l),u=kS.node(t,c);if(!u)return 0;var d=Gte(u,1)[0];if(GL.getNodeType(d)!==i)return s+1;var h=d,p=h.ordered,f=void 0!==p&&p,m=h.level,g=void 0===m?0:m;return g<s?s-g:g>s?0:g===s?f===o?0:1:0}(e);if(l>0)for(s=0;s<l;s++)i+="</"+Dne.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:i}}},Tne=R6("species"),One=hte.filter,Ine=I6>=51||!e6((function(){var e=[];return(e.constructor={})[Tne]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));P9({target:"Array",proto:!0,forced:!Ine},{filter:function(e){return One(this,e,arguments.length>1?arguments[1]:void 0)}});var Pne=Function.prototype,$ne=Pne.apply,Fne=Pne.bind,Bne=Pne.call,Mne="object"==typeof Reflect&&Reflect.apply||(Fne?Bne.bind($ne):function(){return Bne.apply($ne,arguments)}),Nne=(R6("species"),RegExp.prototype),Rne=bee.charAt,jne=function(e,t,n){return t+(n?Rne(e,t).length:1)},Lne=Math.floor,zne=Q8("".charAt),Vne=Q8("".replace),Hne=Q8("".slice),Une=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Wne=/\$([$&'`]|\d{1,2})/g,qne=function(e,t,n,i,r,o){var a=n+e.length,s=i.length,l=Wne;return void 0!==r&&(r=m6(r),l=Une),Vne(o,l,(function(o,l){var c;switch(zne(l,0)){case"$":return"$";case"&":return e;case"`":return Hne(t,0,n);case"'":return Hne(t,a);case"<":c=r[Hne(l,1,-1)];break;default:var u=+l;if(0===u)return o;if(u>s){var d=Lne(u/10);return 0===d?o:d<=s?void 0===i[d-1]?zne(l,1):i[d-1]+zne(l,1):o}c=i[u-1]}return void 0===c?"":c}))},Yne=G8.TypeError,Gne=function(e,t){var n=e.exec;if(C6(n)){var i=K6(n,e,t);return null!==i&&V6(i),i}if("RegExp"===i6(e))return K6(bne,e,t);throw Yne("RegExp#exec called on incompatible receiver")},Kne=R6("replace"),Xne=Math.max,Zne=Math.min,Jne=Q8([].concat),Qne=Q8([].push),eie=Q8("".indexOf),tie=Q8("".slice),nie="$0"==="a".replace(/./,"$0"),iie=!!/./[Kne]&&""===/./[Kne]("a","$0");!function(e,t,n){var i=R6(e),r=!e6((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),o=r&&!e6((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](""),!e}));if(!r||!o||n){var a=Q8(/./[i]),s=function(e,t,n){var i=iie?"$":"$0";return[function(e,n){var i=l6(this),r=null==e?void 0:i7(e,Kne);return r?K6(r,e,i,n):K6(t,fee(i),e,n)},function(e,r){var o=V6(this),a=fee(e);if("string"==typeof r&&-1===eie(r,i)&&-1===eie(r,"$<")){var s=n(t,o,a,r);if(s.done)return s.value}var l=C6(r);l||(r=fee(r));var c=o.global;if(c){var u=o.unicode;o.lastIndex=0}for(var d=[];;){var h=Gne(o,a);if(null===h)break;if(Qne(d,h),!c)break;""===fee(h[0])&&(o.lastIndex=jne(a,y7(o.lastIndex),u))}for(var p,f="",m=0,g=0;g<d.length;g++){for(var v=fee((h=d[g])[0]),y=Xne(Zne(p7(h.index),a.length),0),b=[],w=1;w<h.length;w++)Qne(b,void 0===(p=h[w])?p:String(p));var _=h.groups;if(l){var C=Jne([v],b,y,a);void 0!==_&&Qne(C,_);var x=fee(Mne(r,void 0,C))}else x=qne(v,a,y,b,_,r);y>=m&&(f+=tie(a,m,y)+x,m=y+v.length)}return f+tie(a,m)}]}(0,""[e],(function(e,t,n,i,o){var s=Q8(e),l=t.exec;return l===bne||l===Nne.exec?r&&!o?{done:!0,value:a(t,n,i)}:{done:!0,value:s(n,t,i)}:{done:!1}}));v9(String.prototype,e,s[0]),v9(Nne,i,s[1])}}("replace",0,!!e6((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!nie||iie);var rie=G8.TypeError,oie=function(e,t,n,i,r,o,a,s){for(var l,c,u=r,d=0,h=!!a&&Bee(a,s);d<i;){if(d in n){if(l=h?h(n[d],d,t):n[d],o>0&&Jee(l))c=b7(l),u=oie(e,t,l,c,u,o-1)-1;else{if(u>=9007199254740991)throw rie("Exceed the acceptable array length");e[u]=l}u++}d++}return u},aie=oie;function sie(e){return e.length?e[0].tagName.toLowerCase():""}P9({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=m6(this),n=b7(t),i=cte(t,0);return i.length=aie(i,t,t,n,0,void 0===e?1:p7(e)),i}}),L7("flat"),P9({global:!0},{globalThis:G8}),tD&&(FE.fn.append=tD),RE&&(FE.fn.attr=RE),iD&&(FE.fn.parent=iD);var lie={renderElems:[Ute],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,i=e.normalizeNode,r=e;return r.deleteBackward=function(e){var n=r.selection;if(null!=n)if(VS.isExpanded(n))t(e);else{var i=GL.getSelectedNodeByType(r,"list-item");if(null!=i)if(0!==n.focus.offset)t(e);else{var o=i.level,a=void 0===o?0:o;a>0?pk.setNodes(r,{level:a-1}):pk.setNodes(r,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},r.handleTab=function(){var e,t,i,o,a=r.selection;if(null!=a){if(VS.isCollapsed(a)){var s=GL.getSelectedNodeByType(r,"list-item");if(null==s)return void n();if(0===a.focus.offset){var l=s.level,c=void 0===l?0:l;return void pk.setNodes(r,{level:c+1})}}if(VS.isExpanded(a)){var u=0,d=!1;try{for(var h=Yte(Kte(r)),p=h.next();!p.done;p=h.next()){var f=Gte(p.value,1)[0];"list-item"===GL.getNodeType(f)?u++:d=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}if(d||u<=1)return void n();try{for(var m=Yte(Kte(r)),g=m.next();!g.done;g=m.next()){var v=Gte(g.value,2),y=(f=v[0],v[1]),b=f.level;c=void 0===b?0:b,pk.setNodes(r,{level:c+1},{at:y})}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}}else n()}else n()},r.normalizeNode=function(e){var t=Gte(e,2),n=t[0],o=t[1],a=GL.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||pk.unwrapNodes(r,{at:o}),i([n,o])},r},menus:[kne,Ene],elemsToHtml:[Ane],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var i=FE(e);0===(t=t.filter((function(e){return!!KS.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:i.text().replace(/\s+/gm," ")}]);var r=function(e){return"ol"===sie(e.parent())}(i),o=function(e){for(var t=0,n=e.parent(),i=sie(n);"ul"===i||"ol"===i;)i=sie(n=n.parent()),t++;return t-1}(i);return{type:"list-item",ordered:r,level:o,children:t}}}]},cie=eh((function(e,t){var n="__lodash_hash_undefined__",i=9007199254740991,r="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",h="[object Object]",p="[object Promise]",f="[object RegExp]",m="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",_=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[r]=x[o]=x[b]=x[a]=x[w]=x[s]=x[l]=x[c]=x[u]=x[d]=x[h]=x[f]=x[m]=x[g]=x[y]=!1;var S="object"==typeof Jd&&Jd&&Jd.Object===Object&&Jd,k="object"==typeof self&&self&&self.Object===Object&&self,E=S||k||Function("return this")(),D=t&&!t.nodeType&&t,A=D&&e&&!e.nodeType&&e,T=A&&A.exports===D,O=T&&S.process,I=function(){try{return O&&O.binding&&O.binding("util")}catch(Jd){}}(),P=I&&I.isTypedArray;function $(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function F(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function B(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var M=Array.prototype,N=Function.prototype,R=Object.prototype,j=E["__core-js_shared__"],L=N.toString,z=R.hasOwnProperty,V=function(){var e=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),H=R.toString,U=RegExp("^"+L.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=T?E.Buffer:void 0,q=E.Symbol,Y=E.Uint8Array,G=R.propertyIsEnumerable,K=M.splice,X=q?q.toStringTag:void 0,Z=Object.getOwnPropertySymbols,J=W?W.isBuffer:void 0,Q=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ee=Ae(E,"DataView"),te=Ae(E,"Map"),ne=Ae(E,"Promise"),ie=Ae(E,"Set"),re=Ae(E,"WeakMap"),oe=Ae(Object,"create"),ae=Pe(ee),se=Pe(te),le=Pe(ne),ce=Pe(ie),ue=Pe(re),de=q?q.prototype:void 0,he=de?de.valueOf:void 0;function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new me;++t<n;)this.add(e[t])}function ve(e){var t=this.__data__=new fe(e);this.size=t.size}function ye(e,t){var n=Be(e),i=!n&&Fe(e),r=!n&&!i&&Me(e),o=!n&&!i&&!r&&ze(e),a=n||i||r||o,s=a?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],l=s.length;for(var c in e)!t&&!z.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ie(c,l))||s.push(c);return s}function be(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=z.call(e,X),n=e[X];try{e[X]=void 0;var i=!0}catch(e){}var r=H.call(e);return i&&(t?e[X]=n:delete e[X]),r}(e):function(e){return H.call(e)}(e)}function _e(e){return Le(e)&&we(e)==r}function Ce(e,t,n,i,c){return e===t||(null==e||null==t||!Le(e)&&!Le(t)?e!=e&&t!=t:function(e,t,n,i,c,p){var y=Be(e),_=Be(t),C=y?o:Oe(e),x=_?o:Oe(t),S=(C=C==r?h:C)==h,k=(x=x==r?h:x)==h,E=C==x;if(E&&Me(e)){if(!Me(t))return!1;y=!0,S=!1}if(E&&!S)return p||(p=new ve),y||ze(e)?ke(e,t,n,i,c,p):function(e,t,n,i,r,o,c){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!o(new Y(e),new Y(t)));case a:case s:case d:return $e(+e,+t);case l:return e.name==t.name&&e.message==t.message;case f:case g:return e==t+"";case u:var h=F;case m:var p=1&i;if(h||(h=B),e.size!=t.size&&!p)return!1;var y=c.get(e);if(y)return y==t;i|=2,c.set(e,t);var _=ke(h(e),h(t),i,r,o,c);return c.delete(e),_;case v:if(he)return he.call(e)==he.call(t)}return!1}(e,t,C,n,i,c,p);if(!(1&n)){var D=S&&z.call(e,"__wrapped__"),A=k&&z.call(t,"__wrapped__");if(D||A){var T=D?e.value():e,O=A?t.value():t;return p||(p=new ve),c(T,O,n,i,p)}}return!!E&&(p||(p=new ve),function(e,t,n,i,r,o){var a=1&n,s=Ee(e),l=s.length,c=Ee(t).length;if(l!=c&&!a)return!1;for(var u=l;u--;){var d=s[u];if(!(a?d in t:z.call(t,d)))return!1}var h=o.get(e);if(h&&o.get(t))return h==t;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++u<l;){var m=e[d=s[u]],g=t[d];if(i)var v=a?i(g,m,d,t,e,o):i(m,g,d,e,t,o);if(!(void 0===v?m===g||r(m,g,n,i,o):v)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,i,c,p))}(e,t,n,i,Ce,c))}function xe(e){return!(!je(e)||function(e){return!!V&&V in e}(e))&&(Ne(e)?U:_).test(Pe(e))}function Se(e){if(n=(t=e)&&t.constructor,i="function"==typeof n&&n.prototype||R,t!==i)return Q(e);var t,n,i,r=[];for(var o in Object(e))z.call(e,o)&&"constructor"!=o&&r.push(o);return r}function ke(e,t,n,i,r,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,h=2&n?new ge:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var p=e[u],f=t[u];if(i)var m=a?i(f,p,u,t,e,o):i(p,f,u,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!$(t,(function(e,t){if(a=t,!h.has(a)&&(p===e||r(p,e,n,i,o)))return h.push(t);var a}))){d=!1;break}}else if(p!==f&&!r(p,f,n,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ee(e){return function(e,t,n){var i=t(e);return Be(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(e))}(e,Ve,Te)}function De(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xe(n)?n:void 0}pe.prototype.clear=function(){this.__data__=oe?oe(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.prototype.get=function(e){var t=this.__data__;if(oe){var i=t[e];return i===n?void 0:i}return z.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return oe?void 0!==t[e]:z.call(t,e)},pe.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=oe&&void 0===t?n:t,this},fe.prototype.clear=function(){this.__data__=[],this.size=0},fe.prototype.delete=function(e){var t=this.__data__,n=be(t,e);return!(n<0)&&(n==t.length-1?t.pop():K.call(t,n,1),--this.size,!0)},fe.prototype.get=function(e){var t=this.__data__,n=be(t,e);return n<0?void 0:t[n][1]},fe.prototype.has=function(e){return be(this.__data__,e)>-1},fe.prototype.set=function(e,t){var n=this.__data__,i=be(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},me.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(te||fe),string:new pe}},me.prototype.delete=function(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t},me.prototype.get=function(e){return De(this,e).get(e)},me.prototype.has=function(e){return De(this,e).has(e)},me.prototype.set=function(e,t){var n=De(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},ge.prototype.add=ge.prototype.push=function(e){return this.__data__.set(e,n),this},ge.prototype.has=function(e){return this.__data__.has(e)},ve.prototype.clear=function(){this.__data__=new fe,this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ve.prototype.get=function(e){return this.__data__.get(e)},ve.prototype.has=function(e){return this.__data__.has(e)},ve.prototype.set=function(e,t){var n=this.__data__;if(n instanceof fe){var i=n.__data__;if(!te||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new me(i)}return n.set(e,t),this.size=n.size,this};var Te=Z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}(Z(e),(function(t){return G.call(e,t)})))}:function(){return[]},Oe=we;function Ie(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function Pe(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(ee&&Oe(new ee(new ArrayBuffer(1)))!=w||te&&Oe(new te)!=u||ne&&Oe(ne.resolve())!=p||ie&&Oe(new ie)!=m||re&&Oe(new re)!=y)&&(Oe=function(e){var t=we(e),n=t==h?e.constructor:void 0,i=n?Pe(n):"";if(i)switch(i){case ae:return w;case se:return u;case le:return p;case ce:return m;case ue:return y}return t});var Fe=_e(function(){return arguments}())?_e:function(e){return Le(e)&&z.call(e,"callee")&&!G.call(e,"callee")},Be=Array.isArray,Me=J||function(){return!1};function Ne(e){if(!je(e))return!1;var t=we(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Re(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Le(e){return null!=e&&"object"==typeof e}var ze=P?function(e){return function(t){return e(t)}}(P):function(e){return Le(e)&&Re(e.length)&&!!x[we(e)]};function Ve(e){return null!=(t=e)&&Re(t.length)&&!Ne(t)?ye(e):Se(e);var t}e.exports=function(e,t){return Ce(e,t)}}));$q("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),$q("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var uie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof i.g?i.g:"undefined"!=typeof self?self:{};function die(e){var t={exports:{}};return e(t,t.exports),t.exports}var hie,pie,fie=function(e){return e&&e.Math==Math&&e},mie=fie("object"==typeof globalThis&&globalThis)||fie("object"==typeof window&&window)||fie("object"==typeof self&&self)||fie("object"==typeof uie&&uie)||function(){return this}()||Function("return this")(),gie=function(e){try{return!!e()}catch(e){return!0}},vie=!gie((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),yie=Function.prototype.call,bie=yie.bind?yie.bind(yie):function(){return yie.apply(yie,arguments)},wie={}.propertyIsEnumerable,_ie=Object.getOwnPropertyDescriptor,Cie={f:_ie&&!wie.call({1:2},1)?function(e){var t=_ie(this,e);return!!t&&t.enumerable}:wie},xie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Sie=Function.prototype,kie=Sie.bind,Eie=Sie.call,Die=kie&&kie.bind(Eie),Aie=kie?function(e){return e&&Die(Eie,e)}:function(e){return e&&function(){return Eie.apply(e,arguments)}},Tie=Aie({}.toString),Oie=Aie("".slice),Iie=function(e){return Oie(Tie(e),8,-1)},Pie=mie.Object,$ie=Aie("".split),Fie=gie((function(){return!Pie("z").propertyIsEnumerable(0)}))?function(e){return"String"==Iie(e)?$ie(e,""):Pie(e)}:Pie,Bie=mie.TypeError,Mie=function(e){if(null==e)throw Bie("Can't call method on "+e);return e},Nie=function(e){return Fie(Mie(e))},Rie=function(e){return"function"==typeof e},jie=function(e){return"object"==typeof e?null!==e:Rie(e)},Lie=function(e){return Rie(e)?e:void 0},zie=function(e,t){return arguments.length<2?Lie(mie[e]):mie[e]&&mie[e][t]},Vie=Aie({}.isPrototypeOf),Hie=zie("navigator","userAgent")||"",Uie=mie.process,Wie=mie.Deno,qie=Uie&&Uie.versions||Wie&&Wie.version,Yie=qie&&qie.v8;Yie&&(pie=(hie=Yie.split("."))[0]>0&&hie[0]<4?1:+(hie[0]+hie[1])),!pie&&Hie&&(!(hie=Hie.match(/Edge\/(\d+)/))||hie[1]>=74)&&(hie=Hie.match(/Chrome\/(\d+)/))&&(pie=+hie[1]);var Gie=pie,Kie=!!Object.getOwnPropertySymbols&&!gie((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Gie&&Gie<41})),Xie=Kie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Zie=mie.Object,Jie=Xie?function(e){return"symbol"==typeof e}:function(e){var t=zie("Symbol");return Rie(t)&&Vie(t.prototype,Zie(e))},Qie=mie.String,ere=function(e){try{return Qie(e)}catch(e){return"Object"}},tre=mie.TypeError,nre=function(e){if(Rie(e))return e;throw tre(ere(e)+" is not a function")},ire=function(e,t){var n=e[t];return null==n?void 0:nre(n)},rre=mie.TypeError,ore=Object.defineProperty,are=function(e,t){try{ore(mie,e,{value:t,configurable:!0,writable:!0})}catch(eh){mie[e]=t}return t},sre=mie["__core-js_shared__"]||are("__core-js_shared__",{}),lre=die((function(e){(e.exports=function(e,t){return sre[e]||(sre[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),cre=mie.Object,ure=function(e){return cre(Mie(e))},dre=Aie({}.hasOwnProperty),hre=Object.hasOwn||function(e,t){return dre(ure(e),t)},pre=0,fre=Math.random(),mre=Aie(1..toString),gre=function(e){return"Symbol("+(void 0===e?"":e)+")_"+mre(++pre+fre,36)},vre=lre("wks"),yre=mie.Symbol,bre=yre&&yre.for,wre=Xie?yre:yre&&yre.withoutSetter||gre,_re=function(e){if(!hre(vre,e)||!Kie&&"string"!=typeof vre[e]){var t="Symbol."+e;Kie&&hre(yre,e)?vre[e]=yre[e]:vre[e]=Xie&&bre?bre(t):wre(t)}return vre[e]},Cre=mie.TypeError,xre=_re("toPrimitive"),Sre=function(e){var t=function(e,t){if(!jie(e)||Jie(e))return e;var n,i=ire(e,xre);if(i){if(void 0===t&&(t="default"),n=bie(i,e,t),!jie(n)||Jie(n))return n;throw Cre("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,i;if("string"===t&&Rie(n=e.toString)&&!jie(i=bie(n,e)))return i;if(Rie(n=e.valueOf)&&!jie(i=bie(n,e)))return i;if("string"!==t&&Rie(n=e.toString)&&!jie(i=bie(n,e)))return i;throw rre("Can't convert object to primitive value")}(e,t)}(e,"string");return Jie(t)?t:t+""},kre=mie.document,Ere=jie(kre)&&jie(kre.createElement),Dre=function(e){return Ere?kre.createElement(e):{}},Are=!vie&&!gie((function(){return 7!=Object.defineProperty(Dre("div"),"a",{get:function(){return 7}}).a})),Tre=Object.getOwnPropertyDescriptor,Ore={f:vie?Tre:function(e,t){if(e=Nie(e),t=Sre(t),Are)try{return Tre(e,t)}catch(e){}if(hre(e,t))return xie(!bie(Cie.f,e,t),e[t])}},Ire=mie.String,Pre=mie.TypeError,$re=function(e){if(jie(e))return e;throw Pre(Ire(e)+" is not an object")},Fre=mie.TypeError,Bre=Object.defineProperty,Mre={f:vie?Bre:function(e,t,n){if($re(e),t=Sre(t),$re(n),Are)try{return Bre(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Fre("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Nre=vie?function(e,t,n){return Mre.f(e,t,xie(1,n))}:function(e,t,n){return e[t]=n,e},Rre=Aie(Function.toString);Rie(sre.inspectSource)||(sre.inspectSource=function(e){return Rre(e)});var jre,Lre,zre,Vre=sre.inspectSource,Hre=mie.WeakMap,Ure=Rie(Hre)&&/native code/.test(Vre(Hre)),Wre=lre("keys"),qre=function(e){return Wre[e]||(Wre[e]=gre(e))},Yre={},Gre=mie.TypeError,Kre=mie.WeakMap;if(Ure||sre.state){var Xre=sre.state||(sre.state=new Kre),Zre=Aie(Xre.get),Jre=Aie(Xre.has),Qre=Aie(Xre.set);jre=function(e,t){if(Jre(Xre,e))throw new Gre("Object already initialized");return t.facade=e,Qre(Xre,e,t),t},Lre=function(e){return Zre(Xre,e)||{}},zre=function(e){return Jre(Xre,e)}}else{var eoe=qre("state");Yre[eoe]=!0,jre=function(e,t){if(hre(e,eoe))throw new Gre("Object already initialized");return t.facade=e,Nre(e,eoe,t),t},Lre=function(e){return hre(e,eoe)?e[eoe]:{}},zre=function(e){return hre(e,eoe)}}var toe={set:jre,get:Lre,has:zre,enforce:function(e){return zre(e)?Lre(e):jre(e,{})},getterFor:function(e){return function(t){var n;if(!jie(t)||(n=Lre(t)).type!==e)throw Gre("Incompatible receiver, "+e+" required");return n}}},noe=Function.prototype,ioe=vie&&Object.getOwnPropertyDescriptor,roe=hre(noe,"name"),ooe={EXISTS:roe,PROPER:roe&&"something"===function(){}.name,CONFIGURABLE:roe&&(!vie||vie&&ioe(noe,"name").configurable)},aoe=die((function(e){var t=ooe.CONFIGURABLE,n=toe.get,i=toe.enforce,r=String(String).split("String");(e.exports=function(e,n,o,a){var s,l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;Rie(o)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!hre(o,"name")||t&&o.name!==d)&&Nre(o,"name",d),(s=i(o)).source||(s.source=r.join("string"==typeof d?d:""))),e!==mie?(l?!u&&e[n]&&(c=!0):delete e[n],c?e[n]=o:Nre(e,n,o)):c?e[n]=o:are(n,o)})(Function.prototype,"toString",(function(){return Rie(this)&&n(this).source||Vre(this)}))})),soe=Math.ceil,loe=Math.floor,coe=function(e){var t=+e;return t!=t||0===t?0:(t>0?loe:soe)(t)},uoe=Math.max,doe=Math.min,hoe=function(e,t){var n=coe(e);return n<0?uoe(n+t,0):doe(n,t)},poe=Math.min,foe=function(e){return e>0?poe(coe(e),9007199254740991):0},moe=function(e){return foe(e.length)},goe=function(e){return function(t,n,i){var r,o=Nie(t),a=moe(o),s=hoe(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},voe=(goe(!0),goe(!1)),yoe=Aie([].push),boe=function(e,t){var n,i=Nie(e),r=0,o=[];for(n in i)!hre(Yre,n)&&hre(i,n)&&yoe(o,n);for(;t.length>r;)hre(i,n=t[r++])&&(~voe(o,n)||yoe(o,n));return o},woe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_oe=woe.concat("length","prototype"),Coe={f:Object.getOwnPropertyNames||function(e){return boe(e,_oe)}},xoe={f:Object.getOwnPropertySymbols},Soe=Aie([].concat),koe=zie("Reflect","ownKeys")||function(e){var t=Coe.f($re(e)),n=xoe.f;return n?Soe(t,n(e)):t},Eoe=function(e,t){for(var n=koe(t),i=Mre.f,r=Ore.f,o=0;o<n.length;o++){var a=n[o];hre(e,a)||i(e,a,r(t,a))}},Doe=/#|\.prototype\./,Aoe=function(e,t){var n=Ooe[Toe(e)];return n==Poe||n!=Ioe&&(Rie(t)?gie(t):!!t)},Toe=Aoe.normalize=function(e){return String(e).replace(Doe,".").toLowerCase()},Ooe=Aoe.data={},Ioe=Aoe.NATIVE="N",Poe=Aoe.POLYFILL="P",$oe=Aoe,Foe=Ore.f,Boe=function(e,t){var n,i,r,o,a,s=e.target,l=e.global,c=e.stat;if(n=l?mie:c?mie[s]||are(s,{}):(mie[s]||{}).prototype)for(i in t){if(o=t[i],r=e.noTargetGet?(a=Foe(n,i))&&a.value:n[i],!$oe(l?i:s+(c?".":"#")+i,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;Eoe(o,r)}(e.sham||r&&r.sham)&&Nre(o,"sham",!0),aoe(n,i,o,e)}},Moe={};Moe[_re("toStringTag")]="z";var Noe="[object z]"===String(Moe),Roe=_re("toStringTag"),joe=mie.Object,Loe="Arguments"==Iie(function(){return arguments}()),zoe=Noe?Iie:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=joe(e),Roe))?n:Loe?Iie(t):"Object"==(i=Iie(t))&&Rie(t.callee)?"Arguments":i},Voe=mie.String,Hoe=function(e){if("Symbol"===zoe(e))throw TypeError("Cannot convert a Symbol value to a string");return Voe(e)},Uoe=/"/g,Woe=Aie("".replace);Boe({target:"String",proto:!0,forced:gie((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Hoe(Mie(this)),i="<a",(i+=' name="'+Woe(Hoe(t),Uoe,"&quot;")+'"')+">"+n+"</a>";var t,n,i}});var qoe,Yoe=function(){var e=$re(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Goe=mie.RegExp,Koe=gie((function(){var e=Goe("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Xoe=Koe||gie((function(){return!Goe("a","y").sticky})),Zoe={BROKEN_CARET:Koe||gie((function(){var e=Goe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Xoe,UNSUPPORTED_Y:Koe},Joe=Object.keys||function(e){return boe(e,woe)},Qoe=vie?Object.defineProperties:function(e,t){$re(e);for(var n,i=Nie(t),r=Joe(t),o=r.length,a=0;o>a;)Mre.f(e,n=r[a++],i[n]);return e},eae=zie("document","documentElement"),tae=qre("IE_PROTO"),nae=function(){},iae=function(e){return"<script>"+e+"<\/script>"},rae=function(e){e.write(iae("")),e.close();var t=e.parentWindow.Object;return e=null,t},oae=function(){try{qoe=new ActiveXObject("htmlfile")}catch(e){}var e,t;oae="undefined"!=typeof document?document.domain&&qoe?rae(qoe):((t=Dre("iframe")).style.display="none",eae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(iae("document.F=Object")),e.close(),e.F):rae(qoe);for(var n=woe.length;n--;)delete oae.prototype[woe[n]];return oae()};Yre[tae]=!0;var aae,sae,lae=Object.create||function(e,t){var n;return null!==e?(nae.prototype=$re(e),n=new nae,nae.prototype=null,n[tae]=e):n=oae(),void 0===t?n:Qoe(n,t)},cae=mie.RegExp,uae=gie((function(){var e=cae(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),dae=mie.RegExp,hae=gie((function(){var e=dae("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),pae=toe.get,fae=lre("native-string-replace",String.prototype.replace),mae=RegExp.prototype.exec,gae=mae,vae=Aie("".charAt),yae=Aie("".indexOf),bae=Aie("".replace),wae=Aie("".slice),_ae=(sae=/b*/g,bie(mae,aae=/a/,"a"),bie(mae,sae,"a"),0!==aae.lastIndex||0!==sae.lastIndex),Cae=Zoe.BROKEN_CARET,xae=void 0!==/()??/.exec("")[1];(_ae||xae||Cae||uae||hae)&&(gae=function(e){var t,n,i,r,o,a,s,l=this,c=pae(l),u=Hoe(e),d=c.raw;if(d)return d.lastIndex=l.lastIndex,t=bie(gae,d,u),l.lastIndex=d.lastIndex,t;var h=c.groups,p=Cae&&l.sticky,f=bie(Yoe,l),m=l.source,g=0,v=u;if(p&&(f=bae(f,"y",""),-1===yae(f,"g")&&(f+="g"),v=wae(u,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==vae(u,l.lastIndex-1))&&(m="(?: "+m+")",v=" "+v,g++),n=new RegExp("^(?:"+m+")",f)),xae&&(n=new RegExp("^"+m+"$(?!\\s)",f)),_ae&&(i=l.lastIndex),r=bie(mae,p?n:l,v),p?r?(r.input=wae(r.input,g),r[0]=wae(r[0],g),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:_ae&&r&&(l.lastIndex=l.global?r.index+r[0].length:i),xae&&r&&r.length>1&&bie(fae,r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&h)for(r.groups=a=lae(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=r[s[1]];return r});var Sae=gae;Boe({target:"RegExp",proto:!0,forced:/./.exec!==Sae},{exec:Sae});var kae=Array.isArray||function(e){return"Array"==Iie(e)},Eae=function(){},Dae=[],Aae=zie("Reflect","construct"),Tae=/^\s*(?:class|function)\b/,Oae=Aie(Tae.exec),Iae=!Tae.exec(Eae),Pae=function(e){if(!Rie(e))return!1;try{return Aae(Eae,Dae,e),!0}catch(e){return!1}},$ae=!Aae||gie((function(){var e;return Pae(Pae.call)||!Pae(Object)||!Pae((function(){e=!0}))||e}))?function(e){if(!Rie(e))return!1;switch(zoe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Iae||!!Oae(Tae,Vre(e))}:Pae,Fae=function(e,t,n){var i=Sre(t);i in e?Mre.f(e,i,xie(0,n)):e[i]=n},Bae=_re("species"),Mae=function(e){return Gie>=51||!gie((function(){var t=[];return(t.constructor={})[Bae]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Nae=Aie([].slice),Rae=Mae("slice"),jae=_re("species"),Lae=mie.Array,zae=Math.max;function Vae(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function Hae(e){var t=e.selection;if(null==t)return!1;var n=Vae(kS.nodes(e,{match:function(e){return GL.checkNodeType(e,"table-cell")}}),1)[0];if(n){var i=Vae(n,2)[1],r=kS.start(e,i);if(RS.equals(t.anchor,r))return!0}return!1}function Uae(e,t){var n,i,r=kS.nodes(e,{at:t,match:function(e){return"table"===GL.getNodeType(e)}}),o=!1;try{for(var a=
150
150
  /*! *****************************************************************************
151
151
  Copyright (c) Microsoft Corporation.
152
152
 
@@ -228,4 +228,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
228
228
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
229
229
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
230
230
  PERFORMANCE OF THIS SOFTWARE.
231
- ***************************************************************************** */function WTe(e){var t=e.menus,n=e.renderElems,i=e.renderStyle,r=e.elemsToHtml,o=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,l=e.parseStyleHtml,c=e.editorPlugin;t&&t.forEach((function(e){return UTe.registerMenu(e)})),n&&n.forEach((function(e){return UTe.registerRenderElem(e)})),i&&UTe.registerRenderStyle(i),r&&r.forEach((function(e){return UTe.registerElemToHtml(e)})),o&&UTe.registerStyleToHtml(o),a&&a.forEach((function(e){return UTe.registerPreParseHtml(e)})),s&&s.forEach((function(e){return UTe.registerParseElemHtml(e)})),l&&UTe.registerParseStyleHtml(l),c&&UTe.registerPlugin(c)}V6.forEach((function(e){return WTe(e)})),WTe(lie),WTe(Wle),WTe(mve),WTe(pke),WTe(jTe);var qTe='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',YTe={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},GTe={hoverbarKeys:HTe(HTe({},YTe),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};UTe.setEditorConfig(HTe(HTe({},GTe),{decorate:VTe}));var KTe={hoverbarKeys:YTe};UTe.setSimpleEditorConfig(HTe(HTe({},KTe),{decorate:VTe}));var XTe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Bq("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Bq("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Bq("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Bq("editor.image"),iconSvg:qTe,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Bq("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};UTe.setToolbarConfig(XTe);var ZTe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Bq("editor.image"),iconSvg:qTe,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function JTe(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,i=e.content,r=void 0===i?[]:i,o=e.html,a=e.config,s=void 0===a?{}:a,l=e.mode,c="simple"===(void 0===l?"default":l)?UTe.simpleEditorConfig:UTe.editorConfig,u=HTe(HTe({},c.hoverbarKeys||{}),s.hoverbarKeys||{});return OW({selector:n,config:HTe(HTe(HTe({},c),s),{hoverbarKeys:u}),content:r,html:o,plugins:UTe.plugins})}function QTe(e){var t=e.selector,n=e.editor,i=e.config,r=void 0===i?{}:i,o=e.mode,a=void 0===o?"default":o;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s="simple"===a?UTe.simpleToolbarConfig:UTe.toolbarConfig,l=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,i=t.config,r=void 0===i?{}:i;if(function(e,t){return PH(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var o=QR({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},r||{}),a=new BW(n,o);return nL.set(a,e),iL.set(e,a),a}(n,{selector:t,config:HTe(HTe({},s),r)});return l}UTe.setSimpleToolbarConfig(ZTe);var eOe=function(){return eOe=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},eOe.apply(this,arguments)};function tOe(e){var t="请使用 '@".concat(e,"' 事件,不要放在 props 中");return t+"\nPlease use '@".concat(e,"' event instead of props")}var nOe=qn().extend({render:function(e){return e("div",{ref:"box"})},name:"Editor",data:function(){return{curValue:"",editor:null}},props:["defaultContent","defaultConfig","mode","defaultHtml","value"],mounted:function(){this.create()},watch:{value:function(e){e===this.curValue||this.setHtml(e)}},methods:{setHtml:function(e){var t=this.editor;null!=t&&t.setHtml(e)},create:function(){var e=this;if(null!=this.$refs.box){var t=this.defaultConfig||{},n=JSON.stringify(Array.isArray(this.defaultContent)?this.defaultContent:[]);JTe({selector:this.$refs.box,html:this.defaultHtml||this.value||"",config:eOe(eOe({},t),{onCreated:function(n){if(e.editor=Object.seal(n),e.$emit("onCreated",n),t.onCreated){var i=tOe("onCreated");throw new Error(i)}},onChange:function(n){var i=n.getHtml();if(e.curValue=i,e.$emit("input",i),e.$emit("onChange",n),t.onChange){var r=tOe("onChange");throw new Error(r)}},onDestroyed:function(n){if(e.$emit("onDestroyed",n),t.onDestroyed){var i=tOe("onDestroyed");throw new Error(i)}},onMaxLength:function(n){if(e.$emit("onMaxLength",n),t.onMaxLength){var i=tOe("onMaxLength");throw new Error(i)}},onFocus:function(n){if(e.$emit("onFocus",n),t.onFocus){var i=tOe("onFocus");throw new Error(i)}},onBlur:function(n){if(e.$emit("onBlur",n),t.onBlur){var i=tOe("onBlur");throw new Error(i)}},customAlert:function(n,i){if(e.$emit("customAlert",n,i),t.customAlert){var r=tOe("customAlert");throw new Error(r)}},customPaste:function(n,i){if(t.customPaste){var r=tOe("customPaste");throw new Error(r)}var o;return e.$emit("customPaste",n,i,(function(e){o=e})),o}}),content:JSON.parse(n),mode:this.mode||"default"})}}}}),iOe=qn().extend({name:"Toolbar",render:function(e){return e("div",{ref:"box"})},props:["editor","defaultConfig","mode"],methods:{create:function(e){null!=this.$refs.box&&null!=e&&(GL.getToolbar(e)||QTe({editor:e,selector:this.$refs.box,config:this.defaultConfig||{},mode:this.mode||"default"}))}},watch:{editor:{handler:function(e){null!=e&&this.create(e)},immediate:!0}}}),rOe={listModule:{unOrderedList:"Bullet List",orderedList:"Numbered List"},common:{ok:"Confirm",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code Block"},color:{color:"Font Color",bgColor:"Background Color",default:"Default Color",clear:"Clear Background Color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font Size",default:"Default Font"},fontFamily:{title:"Font",default:"Default Font Size"},fullScreen:{title:"Full Screen"},header:{title:"subject",text:"content"},uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} Error Occurred While Uploading Image"},image:{netImage:"Online Images",delete:"Delete Image",edit:"Edit Image",viewLink:"View Link",src:"Image Address",desc:"Image Description",link:"Image Link"},indent:{decrease:"Decrease Indentation",increase:"Increase Indentation"},justify:{left:"Left Align",right:"Right Align",center:"Center Align",justify:"Justify"},lineHeight:{title:"Line Height",default:"Default Line Height"},link:{insert:"Insert Link",text:"Link Text",url:"Link Address",unLink:"Remove Link",edit:"Edit Link",view:"View Link"},videoModule:{delete:"Delete Video",uploadVideo:"Upload Video",insertVideo:"Insert Video",videoSrc:"Video Address",insertPlaceHolder:"Video File URL or Third-Party <iframe>",ok:"OK",editSize:"Resize",width:"Width",height:"Height"},sub:{title:"sub"},textStyle:{bold:"bold",clear:"Clear formatting",code:"Inline Code",italic:"italic",sub:"Subscript",sup:"Superscript",through:"Strikethrough",underline:"Underline"},tableModule:{deleteCol:"Delete Column",deleteRow:"Delete Row",deleteTable:"Delete Table",widthAuto:"Auto Width",insertCol:"Insert Column",insertRow:"Insert Row",insertTable:"Insert Table",header:"Table Header"},undo:{undo:"Undo",redo:"Redo"},todo:{todo:"Todo"}};let oOe=Wi.get("language")||"zh";"en"===oOe?($q("en",{...rOe}),Fq("en")):"zh"===oOe&&Fq("zh-CN");var aOe={components:{Toolbar:iOe,Editor:nOe},props:{height:{default:350,type:Number},theme:{default:"",type:String},htmlText:{default:"",type:String}},data(){return{editor:null,content:this.htmlText,toolbarConfig:{excludeKeys:["blockquote","|","fullScreen","codeBlock","group-video"]},editorConfig:{MENU_CONF:{uploadImage:{server:"/upload/file",async customUpload(e,t){const n=new FormData;console.log("ff",e),n.append("file",e);let i=[];i.push({fileName:e.name,fileSize:e.size}),Ya({fileName:e.name,fileSize:e.size}).then((n=>{console.log("oss",n);let i=new FormData;i.append("key",n.data.objectName),i.append("success_action_status","200"),i.append("x-oss-object-acl","public-read"),i.append("OSSAccessKeyId",n.data.accessKeyId),i.append("policy",n.data.uploadPolicy),i.append("signature",n.data.uploadSignature),i.append("success_action_status","200"),i.append("file",e),Ga(n.data.uploadHost,i).then((()=>{let e=n.data.uploadHost+"/"+n.data.objectName;t(e)}))}))}},emotion:{emotions:["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","💘","❤","💓","💔","💕","💖","💗","💙","💚","💛","💜","💝","💞","💟","❣","💪","👈","👉","☝","👆","👇","✌","✋","👌","👍","👎","✊","👊","👋","👏","👐","✍","🍇","🍈","🍉","🍊","🍋","🍌","🍍","🍎","🍏","🍐","🍑","🍒","🍓","🍅","🍆","🌽","🍄","🌰","🍞","🍖","🍗","🍔","🍟","🍕","🍳","🍲","🍱","🍘","🍙","🍚","🍛","🍜","🍝","🍠","🍢","🍣","🍤","🍥","🍡","🍦","🍧","🍨","🍩","🍪","🎂","🍰","🍫","🍬","🍭","🍮","🍯","🍼","☕","🍵","🍶","🍷","🍸","🍹","🍺","🍻","🍴","🌹","🍀","🍎","💰","📱","🌙","🍁","🍂","🍃","🌷","💎","🔪","🔫","🏀","⚽","⚡","👄","👍","🔥","🙈","🙉","🙊","🐵","🐒","🐶","🐕","🐩","🐺","🐱","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🐈","🐯","🐅","🐆","🐴","🐎","🐮","🐂","🐃","🐄","🐷","🐖","🐗","🐽","🐏","🐑","🐐","🐪","🐫","🐘","🐭","🐁","🐀","🐹","🐰","🐇","🐻","🐨","🐼","🐾","🐔","🐓","🐣","🐤","🐥","🐦","🐧","🐸","🐊","🐢","🐍","🐲","🐉","🐳","🐋","🐬","🐟","🐠","🐡","🐙","🐚","🐌","🐛","🐜","🐝","🐞","🦋","😈","👿","👹","👺","💀","☠","👻","👽","👾","💣","0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","🔟","➡️","⬅️","⬆️","⬇️","↗️","↘️","↙️","↖️","↕️","↔️","🔴","🟣","🔵","🟢","🟡","🟠","⚫","⚪️","🟤"]}}}}},methods:{onCreated(e){this.editor=Object.seal(e),console.log("editor",this.editor),window.editor=this.editor,this.$emit("onload")},getContent(){return this.editor.getHtml()},getTextContent(){return this.editor.getText()},setContent(e){return this.editor.setHtml(e)},addEditContent(e){return this.editor.setHtml(this.content+e)},insertEditContent(e){return this.editor.insertText(e)},dangerouslyInsertHtml(e){return this.editor.dangerouslyInsertHtml(e)},isEmpty(){return this.editor.isEmpty()},setDisable(){return this.editor.disable()},setFocus(){this.editor.focus()}}},sOe=aOe,lOe=or(sOe,Xd,Zd,!1,null,null,null),cOe=lOe.exports,uOe=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{visible:e.isShow,"close-on-click-modal":!1,"before-close":e.close,title:e.$i18n.t("writeMail.delayed_sending"),width:"462px"},on:{"update:visible":function(t){e.isShow=t}}},[t("div",{staticClass:"delayed"},[t("div",{staticClass:"delayed-form mb24"},[t("span",[e._v(e._s(e.$i18n.t("writeMail.choose_send_time"))+":")]),t("el-date-picker",{attrs:{type:"datetime",placeholder:e.$i18n.t("writeMail.choose_time_date"),format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.form.time,callback:function(t){e.$set(e.form,"time",t)},expression:"form.time"}})],1),t("div",{staticClass:"delayed-tip"},[e._v(" "+e._s(e.$i18n.t("writeMail.will"))+" "),t("span",[e._v(e._s(e.form.time))]),e._v(" "+e._s(e.$i18n.t("writeMail.post_to"))+" ")])]),t("div",{staticClass:"delayed-foot"},[t("button",{staticClass:"dialog-btn dialog-btn-linear mr24",on:{click:e.close}},[e._v(" "+e._s(e.$i18n.t("writeMail.cancle"))+" ")]),t("button",{staticClass:"dialog-btn dialog-btn-face",on:{click:e.affirm}},[e._v(" "+e._s(e.$i18n.t("writeMail.send"))+" ")])])])],1)},dOe=[],hOe={props:{isShow:{default:!1,type:Boolean},rowTime:{type:String,default:""}},data(){return{form:{time:this.rowTime?this.rowTime:this.$Formatter.getAfterMinuteTime(5)}}},methods:{affirm(){this.$emit("affirm",this.form.time)},close(){this.$emit("close")}}},pOe=hOe,fOe=or(pOe,uOe,dOe,!1,null,"773502ed",null),mOe=fOe.exports,gOe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[t("div",{staticClass:"wrap-search px24 mb24"},[t("div",{staticClass:"form-item mr24"},[t("button",{staticClass:"search-btn search-btn-face",on:{click:function(t){e.isShowCreate=!0}}},[e._v(" "+e._s(e.$i18n.t("product.add_product"))+" ")])]),t("div",{staticClass:"form-item"},[t("el-input",{attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){return e.init()}},slot:"append"})],1)],1)]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading,expression:"isLoading"}],staticClass:"list hidden-scrollbar link-body"},[e._l(e.linkList,(function(n,i){return t("div",{key:i,staticClass:"link-item"},[t("img",{attrs:{src:n.image_url}}),t("div",{staticClass:"link-content"},[t("span",{staticClass:"link-name"},[e._v(e._s(n.name_zh))]),t("div",{staticClass:"link-btn-group"},[t("button",{staticClass:"link-item-btn",on:{click:function(t){return e.useProtLink(n.url)}}},[e._v(" "+e._s(e.$i18n.t("product.link"))+" ")])])])])})),0===e.tableTotal?t("div",{staticClass:"w-full h-full flex items-center justify-center"},[e._v(" "+e._s(e.$i18n.t("product.no_data"))+" ")]):e._e()],2),t("div",{staticClass:"list-page"},[t("el-pagination",{attrs:{"current-page":e.searchForm.page,total:e.tableTotal,"page-size":e.searchForm.page_size,"pager-count":5,small:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":e.changePage}})],1),e.isShowCreate?t("add-link",{attrs:{addDialog:e.isShowCreate},on:{close:function(t){e.isShowCreate=!1},init:function(t){e.searchForm.page=1,e.init()}}}):e._e()],1)},vOe=[],yOe=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.isShowDialog,"close-on-click-modal":!1,title:e.$i18n.t("product.create_product"),width:"440px","append-to-body":""},on:{"update:visible":function(t){e.isShowDialog=t},close:e.close}},[t("div",{staticClass:"flex flex-col items-center"},[t("div",{staticClass:"pro-upload-container mb24"},[t("div",{staticClass:"pro-upload-main",on:{click:e.uploadImg}},[t("input",{staticStyle:{display:"none"},attrs:{id:"pro-upload-input",type:"file",accept:"image/gif, image/jpeg, image/jpg, image/png"}}),e.proForm.image_url?e._e():t("i",{staticClass:"dss-iconfont icon-upload"}),e.proForm.image_url?t("img",{attrs:{src:e.proForm.image_url}}):e._e()]),t("h3",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.upload_picture"))+" ")]),t("span",[e._v("("+e._s(e.$i18n.t("product.length_limit"))+"5MB)")])]),t("div",{staticClass:"pro-form"},[t("el-form",{ref:"proForm",attrs:{model:e.proForm,rules:e.verifyProForm}},[t("div",{staticClass:"pro-form-item"},[t("span",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.product_name"))+": ")]),t("el-form-item",{attrs:{prop:"name_zh"}},[t("el-input",{attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},on:{input:function(t){return e.inputProName(t,"addZhName")}},model:{value:e.proForm.name_zh,callback:function(t){e.$set(e.proForm,"name_zh",t)},expression:"proForm.name_zh"}})],1)],1),t("div",{staticClass:"pro-form-item"},[t("span",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.en_name"))+": ")]),t("el-form-item",{attrs:{prop:"name_en"}},[t("el-input",{attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},on:{input:function(t){return e.inputProName(t,"addEnName")}},model:{value:e.proForm.name_en,callback:function(t){e.$set(e.proForm,"name_en",t)},expression:"proForm.name_en"}})],1)],1),t("div",{staticClass:"pro-form-item"},[t("span",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.product_type"))+": ")]),t("el-form-item",{attrs:{prop:"type"}},[t("el-select",{attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.proForm.type,callback:function(t){e.$set(e.proForm,"type",t)},expression:"proForm.type"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("product.link_goods")}}),t("el-option",{attrs:{value:2,label:e.$i18n.t("product.link_app")}}),t("el-option",{attrs:{value:3,label:e.$i18n.t("product.link_web")}})],1)],1)],1),1===e.proForm.type?t("div",{staticClass:"pro-form-item"},[t("span",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.E_COMMERCE"))+": ")]),t("el-form-item",{attrs:{prop:"platform"}},[t("el-select",{attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.proForm.platform,callback:function(t){e.$set(e.proForm,"platform",t)},expression:"proForm.platform"}},[t("el-option",{attrs:{value:"Amazon",label:e.$i18n.t("product.link_amazon")}}),t("el-option",{attrs:{value:"AliExpress",label:e.$i18n.t("product.link_aliExpress")}}),t("el-option",{attrs:{value:"Lazada",label:e.$i18n.t("product.link_lazada")}}),t("el-option",{attrs:{value:"Shopee",label:e.$i18n.t("product.link_shopee")}}),t("el-option",{attrs:{value:"OtherSite",label:e.$i18n.t("product.link_independent")}}),t("el-option",{attrs:{value:"Tiktok",label:"TikTok"}}),t("el-option",{attrs:{value:"TheOther",label:e.$i18n.t("product.link_other")}})],1)],1)],1):e._e(),t("div",{staticClass:"pro-form-item"},[t("span",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.produce_link"))+": ")]),t("el-form-item",{attrs:{prop:"url"}},[t("el-input",{attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},model:{value:e.proForm.url,callback:function(t){e.$set(e.proForm,"url",t)},expression:"proForm.url"}})],1)],1),t("div",{staticClass:"pro-form-item"},[t("span",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.product_price"))+": ")]),t("el-form-item",{attrs:{prop:"price_dollar"}},[t("el-input",{attrs:{type:"number",placeholder:e.$i18n.t("common.please_input")},model:{value:e.proForm.price_dollar,callback:function(t){e.$set(e.proForm,"price_dollar",t)},expression:"proForm.price_dollar"}})],1),t("div",{staticClass:"pro-form-tip"},[e._v(e._s(e.$i18n.t("product.dollar")))])],1)]),t("div",{staticClass:"flex justify-end"},[t("button",{staticClass:"pro-btn pro-btn-disabled mr12",on:{click:function(t){e.isShowDialog=!1}}},[e._v(" "+e._s(e.$i18n.t("common.cancle"))+" ")]),t("button",{staticClass:"pro-btn pro-btn-face",attrs:{disabled:e.isSubmit},on:{click:e.createPrd}},[e.isSubmit?t("i",{staticClass:"el-icon-loading"}):e._e(),e._v(" "+e._s(e.$i18n.t("common.confirm"))+" ")])])],1)])])},bOe=[];async function wOe(e){let t=await Pa("/koc/product/search",e);return t}async function _Oe(e){let t=await Pa("/koc/product/productCreate",e);return t}async function COe(e){let t=await Pa("/koc/product/upPrdCover",e);return t}async function xOe(e){let t=await Pa("/koc/Blogger/keywordsAssociate",e);return t}async function SOe(e){let t=await Pa("/user/product/search",e);return t}async function kOe(e){let t=await Ta(`/user/product/details/${e.id}`);return t}async function EOe(e){let t=await Ta("/user/product/allProductPullDown",e);return t}async function DOe(e){let t=await Ta("/user/productCard/apply",e);return t}async function AOe(e){let t=await Pa("/user/productCard/form/list",e);return t}var TOe={props:{addDialog:{type:Boolean,default:!1}},data(){return{isShowDialog:this.addDialog,proForm:{name_zh:"",name_en:"",image_url:"",url:"",type:"",platform:"",price_dollar:""},verifyProForm:{name_zh:[{required:!0,message:`${this.$i18n.t("product.empty_link_name")}`,trigger:"blur"}],name_en:[{required:!0,message:`${this.$i18n.t("product.empty_en_name")}`,trigger:"blur"},{max:100,message:`${this.$i18n.t("product.limit_en_words")}`,trigger:"blur"},{validator:(e,t,n)=>{const i=/^[0-9a-zA-Z,:,:%-_ ]+$/g;i.test(t)?n():n(new Error(`${this.$i18n.t("product.false_en_name")}`))},trigger:"blur"}],type:[{required:!0,message:`${this.$i18n.t("product.select_link_type")}`,trigger:"change"}],platform:[{validator:(e,t,n)=>{1!==this.proForm.type||t?n():n(new Error(`${this.$i18n.t("product.select_platform")}`))},trigger:"change"}],url:[{required:!0,message:`${this.$i18n.t("product.empty_link")}`,trigger:"blur"}],price_dollar:[{validator:(e,t,n)=>{1===this.proForm.type&&""===t?n(new Error(`${this.$i18n.t("product.empty_price")}`)):n()},trigger:"blur"}]},isSubmit:!1}},methods:{inputProName(e,t){e&&this.checkInput({keyword:e,is_show_error:1},t)},checkInput(e,t){xOe(e).then((e=>{400===e.code&&(this.$message.error(e.msg),"addZhName"===t?this.proForm.name_zh="":"addEnName"===t&&(this.proForm.name_en=""))}))},createPrd(){this.$refs["proForm"].validate((e=>{if(!e)return!1;{if(!this.proForm.image_url)return void this.$message({message:`${this.$i18n.t("product.no_img")}`,type:"warning"});const e={name_zh:this.proForm.name_zh,name_en:this.proForm.name_en,image_url:this.proForm.image_url,url:this.proForm.url,type:[this.proForm.type],platform:this.proForm.platform,price_dollar:1*this.proForm.price_dollar};this.isSubmit=!0,_Oe(e).then((e=>{0===e.code?(this.$emit("init"),this.close(),this.$message({message:"`${this.$i18n.t('product.create_success')}`",type:"success"})):(this.isSubmit=!1,11e4===e.code?this.$message({type:"warning",message:`${this.$i18n.t("product.false_link")}`}):300001===e.code?this.$message({type:"warning",message:`${this.$i18n.t("product.re_link_name")}`}):this.$message({type:"warning",message:e.msg}))}))}}))},uploadImg(){const e=this,t=document.getElementById("pro-upload-input");t.click(),t.onchange=function(t){const n=this.files[0].size/1024/1024<5;if(!n)return void e.$message.error(`${e.$i18n.t("product.limit_upload")}`);const i=new FormData;i.append("file",this.files[0]),COe(i).then((n=>{200===n.code?(e.$message({message:n.msg,type:"success"}),e.proForm.image_url=n.data.url,t.target.value=""):e.$message({message:n.msg,type:"warning"})}))}},close(){this.isSubmit=!1,this.proForm.name_zh="",this.proForm.name_en="",this.proForm.image_url="",this.proForm.url="",this.proForm.type="",this.proForm.platform="",this.proForm.price_dollar="",this.$emit("close")}}},OOe=TOe,IOe=or(OOe,yOe,bOe,!1,null,"3e764b9e",null),POe=IOe.exports,$Oe={components:{AddLink:POe},data(){return{searchForm:{name:"",page:1,page_size:10},isLoading:!1,linkList:[],tableTotal:0,isShowCreate:!1}},created(){this.init()},methods:{init(){this.isLoading=!0,wOe(this.searchForm).then((e=>{0===e.code?(this.isLoading=!1,this.linkList=e.data.items,this.tableTotal=e.data.total):(this.isLoading=!1,this.$message.error(e.msg))}))},changePage(e){this.searchForm.page=e,this.init()},useProtLink(e){this.$emit("setMailLink",e)}}},FOe=$Oe,BOe=or(FOe,gOe,vOe,!1,null,"e27f4ae4",null),MOe=BOe.exports,NOe=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.isShow,title:e.$i18n.t("checkMail.send_notice"),width:"480px","before-close":e.closeNotice,"custom-class":["notice-dialog","en"==e.language?"en-notice-dialog":""],"close-on-click-modal":!1},on:{"update:visible":function(t){e.isShow=t}}},[t("ul",{staticClass:"notice-ul"},[e._l(e.noticeArr,(function(n,i){return t("li",{key:i},[e._v(e._s(n))])})),t("li",[t("span",[e._v(e._s(e.$i18n.t("checkMail.tip13")))])])],2),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-checkbox",{model:{value:e.remind14Day,callback:function(t){e.remind14Day=t},expression:"remind14Day"}},[e._v(e._s(e.$i18n.t("checkMail.tip14")))]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.closeNotice}},[e._v(e._s(e.$i18n.t("checkMail.know")))])],1)])},ROe=[],jOe={props:{isShow:{default:!1,type:Boolean}},data(){return{noticeArr:[this.$i18n.t("checkMail.tip15"),this.$i18n.t("checkMail.tip16")],remind14Day:!1,language:Wi.get("language")}},methods:{closeNotice(){this.$emit("closeNotice",this.remind14Day)}}},LOe=jOe,zOe=or(LOe,NOe,ROe,!1,null,null,null),VOe=zOe.exports,HOe=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.isShow,title:e.$i18n.t("setMail.tip9"),width:"480px","before-close":e.closeLimit,"custom-class":"limit-dialog","close-on-click-modal":!1},on:{"update:visible":function(t){e.isShow=t}}},[t("p",{staticClass:"tip2"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip10_1"))+" "),t("span",[e._v(e._s(e.restSendNum))]),e._v(" "+e._s(e.$i18n.t("checkMail.tip10_2"))+" ")]),t("ul",{staticClass:"limit-ul"},[t("li",[e._v(e._s(e.$i18n.t("checkMail.tip11")))]),t("li",[e._v(e._s(e.$i18n.t("checkMail.tip12")))])]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.closeLimit}},[e._v(e._s(e.$i18n.t("checkMail.know")))])],1)])},UOe=[],WOe={props:{isShow:{default:!1,type:Boolean},restSendNum:{type:Number,default:0}},data(){return{}},methods:{closeLimit(){this.$emit("closeLimit")}}},qOe=WOe,YOe=or(qOe,HOe,UOe,!1,null,null,null),GOe=YOe.exports,KOe=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.isShow,width:"620px","before-close":e.closeCheck,"custom-class":"check-dialog "+("en"==e.language?"en-check-dialog":""),"close-on-click-modal":!1,"show-close":0===e.active&&1==e.currentStatus&&(0!==e.reContactNum||0!==e.riskNum)},on:{"update:visible":function(t){e.isShow=t}}},[t("el-steps",{attrs:{active:e.active+1,"align-center":"","finish-status":"finish"}},e._l(e.stepsArr,(function(e,n){return t("el-step",{key:n,attrs:{title:e}})})),1),0===e.active?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.checkLoading,expression:"checkLoading"}],staticClass:"active1"},[t("div",{staticClass:"check-title",class:{"check-title-success":0===e.reContactNum&&0===e.riskNum}},[0!==e.reContactNum||0!==e.riskNum?t("span",{staticClass:"txt"},[e._v("检测发现"+e._s(e.totalNum)+"位有效收件人中有以下情况,请选择是否过滤")]):e._e(),t("span",{staticClass:"tips"},[e._v("有效发件人:为了保障邮箱健康度,平台将会自动过滤掉当天有过重复标题发送的红人")])]),t("div",{staticClass:"check-item",class:{"item-success":0===e.reContactNum}},[t("div",{staticClass:"check-item_left"},[t("div",{staticClass:"check-label"},[t("span",{staticClass:"red"},[e._v(e._s(0===e.reContactNum?"无":e.reContactNum+"位"))]),e._v("重复触达红人 ")]),t("div",{staticClass:"check-tip"},[e._v("*30天内邮件联系过")])]),t("div",{staticClass:"check-item_right"},[t("el-switch",{directives:[{name:"show",rawName:"v-show",value:e.reContactNum>0,expression:"reContactNum > 0"}],attrs:{"active-text":e.isFilterRepeat?"过滤":"不过滤"},on:{change:e.changeFilter},model:{value:e.isFilterRepeat,callback:function(t){e.isFilterRepeat=t},expression:"isFilterRepeat"}})],1),t("img",{attrs:{src:e.reContactNum>0?"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-fail.png":"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-success.png"}})]),t("div",{staticClass:"check-item",class:{"item-success":0===e.riskNum}},[t("div",{staticClass:"check-item_left"},[t("div",{staticClass:"check-label"},[t("span",{staticClass:"red"},[e._v(e._s(0===e.riskNum?"无":e.riskNum+"位"))]),e._v("履约风险红人 ")]),t("div",{staticClass:"check-tip"},[e._v("*平台上记录有履约风险")])]),t("div",{staticClass:"check-item_right"},[t("el-switch",{directives:[{name:"show",rawName:"v-show",value:e.riskNum>0,expression:"riskNum > 0"}],attrs:{"active-text":e.isFilterRisk?"过滤":"不过滤"},on:{change:e.changeFilter},model:{value:e.isFilterRisk,callback:function(t){e.isFilterRisk=t},expression:"isFilterRisk"}})],1),t("img",{attrs:{src:e.riskNum>0?"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-fail.png":"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-success.png"}})]),0===e.reContactNum&&0===e.riskNum?t("div",{staticClass:"success-tips"},[e._v(" 收件人均为首次触达,将在"),t("span",{staticClass:"tips-red"},[e._v("3S")]),e._v("后自动进行到下一步 ")]):e._e()]):e._e(),1===e.active?t("div",{staticClass:"active2"},[t("div",{staticClass:"variable-check"},[e.isLoading?[t("div",{staticClass:"var-wait wait mb16"},[t("p",[e._v(e._s(e.$i18n.t("checkMail.variable_replacement")))]),t("p",{staticClass:"var-loads"},[t("i",{staticClass:"dss-iconfont icon-jiazaizhong var-load"})])])]:[e.hasVar?t("div",{staticClass:"var-success success mb16"},[t("p",[e._v(e._s(e.$i18n.t("checkMail.variable_replacement")))]),t("img",{attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-success.png"}})]):e._e(),e.hasVar?e._e():t("div",{staticClass:"var-fail fail mb16"},[t("p",{staticClass:"fail-name"},[e._v(" "+e._s(e.$i18n.t("checkMail.variable_replacement"))+" ")]),t("p",{staticClass:"fail-tip"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip4"))+" ")]),t("img",{attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-fail.png"}})])]],2),t("div",{staticClass:"spam-check"},[e.isLoading?t("p",{staticClass:"mt40"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip5"))+" ")]):e._e(),e.isLoading?e._e():[e.hasVar?t("p",{staticClass:"mt40"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip6_1"))+" "),t("span",{staticClass:"underline-span"},[e._v("3S")]),e._v(" "+e._s(e.$i18n.t("checkMail.tip6_2"))+" ")]):e._e(),e.hasVar?e._e():t("div",{staticClass:"var-btns"},[e.checkVar?t("button",{staticClass:"tip-btn active1-btn1",attrs:{size:"small"},on:{click:e.varCheckSend}},[e._v(" "+e._s(e.$i18n.t("checkMail.continue_sending_emails"))+" ")]):e._e(),t("el-button",{staticClass:"tip-btn",attrs:{size:"small",type:"primary"},on:{click:e.closeCheck}},[e._v(e._s(e.$i18n.t("checkMail.optimize_emails")))])],1)]],2)]):e._e(),2===e.active?t("div",{staticClass:"active3"},[e.isSuccess&&e.isSendSuccess?[t("div",{staticClass:"sucess-icon img-icon"},[t("i",{staticClass:"dss-iconfont icon-success1"})]),t("p",{staticClass:"mail-status"},[e._v(" "+e._s(e.$i18n.t("checkMail.email_created_successfully"))+" ")]),t("p",{staticClass:"mail-tip"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip7_1"))+" "),t("span",[e._v("3S")]),e._v(" "+e._s(e.$i18n.t("checkMail.tip7_2"))+" ")]),t("el-button",{staticClass:"mail-btn",attrs:{type:"primary",size:"small"},on:{click:e.skipToOut}},[e._v(e._s(e.$i18n.t("checkMail.jump_immediately")))])]:e._e(),e.isSuccess&&e.isSendSuccess?e._e():[t("div",{staticClass:"fail-icon img-icon"},[t("i",{staticClass:"dss-iconfont icon-fail"})]),t("p",{staticClass:"mail-status"},[e._v(e._s(e.$i18n.t("checkMail.creation_failed")))]),t("p",{staticClass:"mail-tip"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip8_1"))+" "),t("span",[e._v("3S")]),e._v(" "+e._s(e.$i18n.t("checkMail.tip8_2"))+" ")]),t("el-button",{staticClass:"mail-btn",attrs:{type:"primary",size:"small"},on:{click:e.closeCheck}},[e._v(e._s(e.$i18n.t("checkMail.close")))])]],2):e._e(),0!==e.active||1!=e.currentStatus||0===e.reContactNum&&0===e.riskNum?e._e():t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("button",{staticClass:"active1-btn1",attrs:{size:"small"},on:{click:e.closeCheck}},[e._v(" 取 消 ")]),t("el-button",{staticClass:"active1-btn2",attrs:{size:"small",type:"primary"},on:{click:e.filterContactBlogger}},[e._v("下一步")])],1)],1)},XOe=[],ZOe={props:{isShow:{default:!1,type:Boolean},totalNum:{type:Number,default:0},reContactNum:{type:Number,default:0},riskNum:{type:Number,default:0},filterBloggerArr:{type:Array,default:()=>[]},checkEmails:{type:Array,default:()=>[]},isSendSuccess:{type:Boolean,default:!0},isReply:{type:Boolean,default:!1},checkLoading:{type:Boolean,default:!1}},data(){return{active:0,stepsArr:[this.$t("edm5.v219"),this.$i18n.t("checkMail.filter_contacted_influencers"),this.$i18n.t("checkMail.email_quality_inspection"),this.$i18n.t("checkMail.create_email")],isSuccess:!0,currentStatus:1,hasVar:!1,isLoading:!1,checkVar:!0,language:Wi.get("language"),isFilterRepeat:!0,isFilterRisk:!0}},mounted(){0===this.reContactNum&&0===this.riskNum&&setTimeout((()=>{this.next()}),3e3)},methods:{closeCheck(){this.$emit("closeCheck")},next(){this.isSuccess?(this.active=1,this.isLoading=!0,Td({emails:this.checkEmails}).then((e=>{"0"===e.code?(this.checkVar=!0,this.isLoading=!1,e.data?(this.hasVar=!0,setTimeout((()=>{this.active=2,this.$emit("selfSend")}),3e3)):this.hasVar=!1):(this.checkVar=!1,this.isLoading=!1,this.$message.error(e.message))}))):(this.active=2,setTimeout((()=>{this.closeCheck()}),3e3))},filterContactBlogger(){0===this.filterBloggerArr.length&&(this.isSuccess=!1),this.next()},skipToOut(){this.$emit("skipToOut")},varCheckSend(){this.active=2,0===this.filterBloggerArr.length?this.isSuccess=!1:this.$emit("selfSend")},changeFilter(){this.$emit("updateFilterBloggerArr",this.isFilterRepeat,this.isFilterRisk)}}},JOe=ZOe,QOe=or(JOe,KOe,XOe,!1,null,null,null),eIe=QOe.exports,tIe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"choose-email-container"},[t("el-dialog",{attrs:{visible:e.isShow,title:e.isCheckType?"":e.$i18n.t("setMail.Sending_settings"),width:e.isCheckType?"620px":"480px","before-close":e.closeChooseMail,"custom-class":"choosemail-dialog2 "+(e.isCheckType?"choosemail-isCheck":""),"close-on-click-modal":!1},on:{"update:visible":function(t){e.isShow=t}}},[e.isCheckType?t("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"finish"}},e._l(e.stepsArr,(function(n,i){return t("el-step",{key:i,attrs:{title:n,status:e.active>=i?"finish":"wait"}})})),1):e._e(),e.isCheckType?t("div",{staticClass:"send-tips"},[t("div",{staticClass:"tips-title"},[e._v(e._s(e.$t("edm5.v189")))]),t("div",{staticClass:"tips-item"},[e._v(" "+e._s(e.$t("edm5.v190"))+" ")]),t("div",{staticClass:"tips-item"},[e._v(" "+e._s(e.$t("edm5.v191"))+" ")])]):e._e(),e.isCheckType||"zh"!=e.language?e._e():t("span",{staticClass:"header-tips"},[e._v(e._s(e.$t("edm5.v192")))]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.authLoading,expression:"authLoading"}],class:{"check-list":e.isCheckType}},[t("div",{class:{"woto-mail":!0,"mail-active":"WOTOMAIL"===e.radio},on:{click:function(t){return e.changeEmail("WOTOMAIL")}}},[t("el-radio",{attrs:{value:e.radio,label:"WOTOMAIL"}},[e._v(e._s(e.$i18n.t("setMail.mailbox_system")))]),t("span",{staticClass:"set-default",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.setDefaultBindEmail("WOTOMAIL")}}},[e._v(e._s("WOTOMAIL"===e.defaultEmail?e.$t("edm5.v193"):e.$t("edm5.v194")))])],1),e.gmailVal?t("div",{class:{"woto-mail":!0,"mail-active":"GMAIL"===e.radio},on:{click:function(t){return e.changeEmail("GMAIL")}}},[t("el-radio",{attrs:{value:e.radio,label:"GMAIL"}},[t("el-tooltip",{attrs:{placement:"top","popper-class":"wt-tooltip"}},[t("div",{staticClass:"content",staticStyle:{color:"#333"},attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.gmailVal)+" ")]),t("span",{staticClass:"email-address"},[e._v(" "+e._s(e.gmailVal))])])],1),t("span",{staticClass:"set-default",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.setDefaultBindEmail("GMAIL")}}},[e._v(e._s("GMAIL"===e.defaultEmail?e.$t("edm5.v193"):e.$t("edm5.v194")))]),t("span",{staticClass:"unBind",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.unbind("GMAIL")}}},[e._v(e._s(e.$t("edm5.v195")))])],1):e._e(),e._l(e.businessEmailList,(function(n){return t("div",{key:n.id,class:{"woto-mail":!0,"mail-active":e.radio===n.emailAddress},on:{click:function(t){return e.changeEmail(n.emailAddress)}}},[t("el-radio",{attrs:{value:e.radio,label:n.emailAddress}},[t("el-tooltip",{attrs:{placement:"top","popper-class":"wt-tooltip"}},[t("div",{staticClass:"content",staticStyle:{color:"#333"},attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(n.emailAddress)+" ")]),t("span",{staticClass:"email-address"},[e._v(e._s(n.emailAddress))])])],1),t("span",{staticClass:"set-default",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.setDefaultBindEmail(n.emailAddress)}}},[e._v(e._s(e.defaultEmail===n.emailAddress?e.$t("edm5.v193"):e.$t("edm5.v194")))]),t("span",{staticClass:"unBind",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.unbind(n.emailAddress)}}},[e._v(e._s(e.$t("edm5.v195")))])],1)})),0===e.businessEmailList.length?t("div",{staticClass:"add-mail",on:{click:e.toOpenBind}},[t("i",{staticClass:"dss-iconfont icon-add_dss"}),t("span",{staticClass:"label"},[e._v(e._s(e.$t("edm5.v196")))])]):e._e()],2),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.businessEmailList.length>0?t("div",{staticClass:"left",on:{click:e.toOpenBind}},[t("i",{staticClass:"dss-iconfont icon-add_dss"}),t("span",{staticClass:"label"},[e._v(e._s(e.$t("edm5.v196")))])]):t("div"),e.isCheckType?t("el-button",{staticClass:"cancel-btn",attrs:{size:"small"},on:{click:e.closeChooseMail}},[e._v(e._s(e.$i18n.t("setMail.cancle")))]):e._e(),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmChoose}},[e._v(e._s(e.isCheckType?e.$i18n.t("edm2.mailEn25"):e.$i18n.t("setMail.confirm")))])],1)],1),t("el-dialog",{attrs:{title:e.$t("edm5.v196"),visible:e.bindEmailVisible,width:"480px","custom-class":"edm-bind-email-dialog"},on:{"update:visible":function(t){e.bindEmailVisible=t}}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.bingLoading,expression:"bingLoading"}]},["zh"==e.language?t("span",{staticClass:"header-tips"},[e._v(e._s(e.$t("edm5.v192")))]):e._e(),t("div",{staticClass:"email-top"},[t("div",{staticClass:"top-left"},[e._v(e._s(e.$t("edm5.v197")))]),t("div",{staticClass:"top-right",on:{click:e.toBindHelp}},[t("span",{staticClass:"config-info"},[e._v(e._s(e.$t("edm5.v198")))]),t("i",{staticClass:"dss-iconfont icon-arrow"})])]),t("div",{staticClass:"email-kind"},[t("el-select",{staticClass:"kind-select",attrs:{placeholder:e.$t("edm5.v98")},on:{change:e.providerChange},model:{value:e.businessParams.id,callback:function(t){e.$set(e.businessParams,"id",t)},expression:"businessParams.id"}},e._l(e.businessTemplateList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.provider,value:e.id}})})),1)],1),t("div",{staticClass:"email-content"},["Gmail"===e.businessParams.id?[t("div",{staticClass:"content-item"},[t("div",{staticClass:"item-label"},[e._v(e._s(e.$t("edm5.v199")))]),t("div",{staticClass:"item-input"},[t("el-input",{attrs:{placeholder:e.$t("edm5.v95")},model:{value:e.gmailValInput,callback:function(t){e.gmailValInput=t},expression:"gmailValInput"}})],1)]),t("div",{staticClass:"gmail-tip"},[t("p",[e._v("-"+e._s(e.$t("edm5.v200")))]),t("p",[e._v("-"+e._s(e.$t("edm5.v201")))]),t("p",[e._v("-"+e._s(e.$t("edm5.v202")))])])]:"Outlook"===e.businessParams.id?[t("div",{staticClass:"content-item"},[t("div",{staticClass:"item-label"},[e._v(e._s(e.$t("edm5.v203")))]),t("div",{staticClass:"item-input"},[t("el-input",{attrs:{placeholder:e.$t("edm5.v95")},model:{value:e.outlookValInput,callback:function(t){e.outlookValInput=t},expression:"outlookValInput"}})],1)]),t("div",{staticClass:"gmail-tip"},[t("p",[e._v("-"+e._s(e.$t("edm5.v200")))]),t("p",[e._v("-"+e._s(e.$t("edm5.v201")))])])]:[t("el-form",{ref:"businessRuleForm",attrs:{model:e.businessParams,rules:e.businessRules}},[t("div",{staticClass:"content-item"},[t("div",{staticClass:"item-label"},[e._v(e._s(e.$t("edm5.v204")))]),t("div",{staticClass:"item-input"},[t("el-form-item",{attrs:{prop:"emailAddress"}},[t("el-input",{attrs:{placeholder:e.$t("edm5.v95")},model:{value:e.businessParams.emailAddress,callback:function(t){e.$set(e.businessParams,"emailAddress",t)},expression:"businessParams.emailAddress"}})],1)],1)]),t("div",{staticClass:"content-item"},[t("div",{staticClass:"item-label"},[e._v(e._s(e.$t("edm5.v205")))]),t("div",{staticClass:"item-input"},[t("el-form-item",{attrs:{prop:"pwd"}},[t("el-input",{attrs:{placeholder:e.$t("edm5.v95")},model:{value:e.businessParams.pwd,callback:function(t){e.$set(e.businessParams,"pwd",t)},expression:"businessParams.pwd"}})],1)],1)]),t("div",{staticClass:"content-item multiple-item"},[t("div",{staticClass:"item-label"},[e._v(e._s(e.$t("edm5.v206")))]),t("div",{staticClass:"item-input"},[t("el-form-item",{staticClass:"form-item-one",attrs:{prop:"smtpHost"}},[t("el-input",{staticClass:"input-one",attrs:{placeholder:e.$t("edm5.v207")},model:{value:e.businessParams.smtpHost,callback:function(t){e.$set(e.businessParams,"smtpHost",t)},expression:"businessParams.smtpHost"}})],1),t("el-form-item",{staticClass:"form-item-two",attrs:{prop:"encryptionType"}},[t("el-select",{staticClass:"input-two",attrs:{placeholder:e.$t("edm5.v98")},model:{value:e.businessParams.encryptionType,callback:function(t){e.$set(e.businessParams,"encryptionType",t)},expression:"businessParams.encryptionType"}},[t("el-option",{attrs:{label:e.$t("edm5.v208"),value:0}}),t("el-option",{attrs:{label:"SSL",value:1}}),t("el-option",{attrs:{label:"TLS",value:2}})],1)],1),t("el-form-item",{staticClass:"form-item-three",attrs:{prop:"smtpPort"}},[t("el-input",{staticClass:"input-three",attrs:{placeholder:e.$t("edm5.v209")},model:{value:e.businessParams.smtpPort,callback:function(t){e.$set(e.businessParams,"smtpPort",t)},expression:"businessParams.smtpPort"}})],1)],1)]),t("div",{staticClass:"content-item multiple-item"},[t("div",{staticClass:"item-label"},[e._v(e._s(e.$t("edm5.v210")))]),t("div",{staticClass:"item-input"},[t("el-form-item",{staticClass:"form-item-one",attrs:{prop:"imapHost"}},[t("el-input",{staticClass:"input-one",attrs:{placeholder:e.$t("edm5.v207")},model:{value:e.businessParams.imapHost,callback:function(t){e.$set(e.businessParams,"imapHost",t)},expression:"businessParams.imapHost"}})],1),t("el-form-item",{staticClass:"form-item-two",attrs:{prop:"encryptionType"}},[t("el-select",{staticClass:"input-two",attrs:{value:"SSL",placeholder:e.$t("edm5.v98"),disabled:""}},[t("el-option",{attrs:{label:e.$t("edm5.v208"),value:0}}),t("el-option",{attrs:{label:"SSL",value:1}}),t("el-option",{attrs:{label:"TLS",value:2}})],1)],1),t("el-form-item",{staticClass:"form-item-three",attrs:{prop:"imapPort"}},[t("el-input",{staticClass:"input-three",attrs:{placeholder:e.$t("edm5.v209")},model:{value:e.businessParams.imapPort,callback:function(t){e.$set(e.businessParams,"imapPort",t)},expression:"businessParams.imapPort"}})],1)],1)])])]],2),t("span",{staticClass:"bind-dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("div"),t("div",{staticClass:"right"},[t("el-button",{attrs:{size:"small"},on:{click:e.toCancelBind}},[e._v(e._s(e.$t("edm5.v19")))]),t("el-button",{attrs:{size:"small",loading:e.confirmBindLoading,type:"primary"},on:{click:e.toConfirmBind}},[e._v(e._s(e.$t("edm5.v36")))])],1)])])]),t("el-dialog",{attrs:{title:e.$i18n.t("setMail.unbind"),visible:e.innerVisible,"append-to-body":"","custom-class":`inner-dialog2 ${"en"==e.language?"en-inner-dialog2":""} ${e.hasToSendEmail?"inner-dialog2-has":""}`},on:{"update:visible":function(t){e.innerVisible=t}}},[e.hasToSendEmail?t("div",{staticClass:"inner-has-tips"},[e._v(" "+e._s(e.$t("edm5.v211"))+" ")]):t("div",{staticClass:"inner-tip-text"},["GMAIL"===e.currentUnbindEmail?t("span",[e._v(e._s(e.$i18n.t("setMail.tip1")))]):t("span",[e._v(" "+e._s(e.$t("edm5.v212",{currentUnbindEmail:e.currentUnbindEmail}))+" ")]),"GMAIL"===e.currentUnbindEmail?t("span",{staticClass:"guide",on:{click:e.toGuide}},[e._v("【"+e._s(e.$i18n.t("setMail.guide"))+"】")]):e._e()]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){e.innerVisible=!1}}},[e._v(e._s(e.$i18n.t("setMail.cancle")))]),t("el-button",{attrs:{loading:e.unbindLoading,size:"small",type:"primary"},on:{click:e.confirmUnbind}},[e._v(e._s(e.$i18n.t("setMail.confirm_unbinding")))])],1)])],1)},nIe=[],iIe={props:{isShow:{default:!1,type:Boolean},currentSetEmail:{type:String,default:"WOTOMAIL"},currentEnv:{type:String,default:"https://www.wotohub.com"},isGoogleGrayShow:{type:Boolean,default:!0},isCheckType:{type:Boolean,default:!0}},data(){return{radio:"",gmailValInput:"",gmailVal:"",outlookValInput:"",isShowInput:!1,scopeVal:"https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.send%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.readonly%20",redirectUri:encodeURIComponent(this.currentEnv)+"%2Fwrite",code:"",innerVisible:!1,language:Wi.get("language"),bindEmailVisible:!1,businessEmailList:[],businessTemplateList:[],businessParams:{id:"Gmail",emailAddress:"",pwd:"",smtpHost:"",encryptionType:0,smtpPort:"",imapHost:"",imapPort:"",provider:""},businessRules:{id:[{required:!0,message:this.$t("edm5.v213"),trigger:"change"}],emailAddress:[{required:!0,message:this.$t("edm5.v214"),trigger:"blur"},{type:"email",message:this.$t("edm5.v215"),trigger:"blur"}],pwd:[{required:!0,message:this.$t("edm5.v216"),trigger:"blur"}],smtpHost:[{required:!0,message:this.$t("edm5.v207"),trigger:"blur"},{validator:this.validateUrl,trigger:"blur"}],encryptionType:[{required:!0,message:this.$t("edm5.v98"),trigger:"change"}],smtpPort:[{required:!0,message:this.$t("edm5.v209"),trigger:"blur"},{validator:this.validatePort,trigger:"blur"}],imapHost:[{required:!0,message:this.$t("edm5.v207"),trigger:"blur"},{validator:this.validateUrl,trigger:"blur"}],imapPort:[{required:!0,message:this.$t("edm5.v209"),trigger:"blur"},{validator:this.validatePort,trigger:"blur"}]},bingLoading:!1,currentUnbindEmail:"",unbindLoading:!1,confirmBindLoading:!1,stepsArr:[this.$t("edm5.v219"),this.$i18n.t("checkMail.filter_contacted_influencers"),this.$i18n.t("checkMail.email_quality_inspection"),this.$i18n.t("checkMail.create_email")],active:0,defaultEmail:"",hasToSendEmail:!1,authLoading:!1,reloadTimer:null}},created(){if(this.radio=this.currentSetEmail,this.$route.query.code){this.code=this.$route.query.code;const e=localStorage.getItem("authorType");e&&"Gmail"===e?this.handleGmailAuth():e&&"Outlook"===e&&this.handleOutLookAuth()}this.queryIsBindGmail(),this.getBusinessEMails(),this.getBusinessTemplates(),this.getDefaultBindEmail()},beforeDestroy(){this.reloadTimer&&clearTimeout(this.reloadTimer)},methods:{queryIsBindGmail(){Od().then((e=>{"0"===e.code?e.data?Pd().then((e=>{"0"===e.code?this.gmailVal=e.data.email:this.$message.error(e.message)})):this.gmailVal="":this.$message.error(e.message)}))},changeEmail(e){this.radio=e},async getBusinessEMails(){try{const e=await Wd({});"0"===e.code?this.businessEmailList=e.data||[]:this.$message.error(e.message)}catch(rl){console.log(rl)}},async getBusinessTemplates(){try{const e=await qd({});"0"===e.code?this.businessTemplateList=[{provider:"Gmail",value:"Gmail",id:"Gmail"},{provider:this.$t("edm5.v220"),value:"Outlook",id:"Outlook"}].concat(e.data)||[]:this.$message.error(e.message)}catch(rl){console.log(rl)}},async getDefaultBindEmail(){try{const e=await Md({});"0"===e.code?this.defaultEmail=["WOTOMAIL","GMAIL"].includes(e.data.sendType)?e.data.sendType:e.data.email:this.$message.error(e.message)}catch(rl){console.log(rl)}},async setDefaultBindEmail(e){try{if(e===this.defaultEmail)return!1;const t={};"WOTOMAIL"!==e&&"GMAIL"!==e?(t["qiyeId"]=this.businessEmailList.find((t=>t.emailAddress===e))?.id,t["sendType"]="QIYE"):t["sendType"]=e;const n=await Bd(t);"0"===n.code?(this.$message.success(this.$t("edm5.v221")),this.getDefaultBindEmail()):this.$message.error(n.message)}catch(rl){console.log(rl)}},toOpenBind(){this.bindEmailVisible=!0},toCancelBind(){this.bindEmailVisible=!1},toConfirmBind(){"Gmail"===this.businessParams.id?this.authorizeGmail():"Outlook"===this.businessParams.id?this.authorizeOutlook():this.$refs["businessRuleForm"].validate((async e=>{if(!e)return console.log("error submit!!"),!1;try{this.confirmBindLoading=!0;const e=await Yd({...this.businessParams,providerId:this.businessParams.id});"0"===e.code?(this.$message.success(this.$t("edm5.v222")),this.getBusinessEMails(),this.bindEmailVisible=!1,this.$refs["businessRuleForm"].resetFields()):this.$message.error(e.message)}catch(rl){console.log(rl)}finally{this.confirmBindLoading=!1}}))},closeChooseMail(){this.$emit("closeChooseMail",this.radio)},confirmChoose(){"WOTOMAIL"===this.radio||this.isCheckType?this.handlerCurrentBind():this.$confirm(this.$t("edm5.v223"),this.$t("edm5.v224"),{confirmButtonText:this.$t("edm5.v225"),cancelButtonText:this.$t("edm5.v226"),type:"warning"}).then((()=>{this.handlerCurrentBind()})).catch((()=>{this.radio="WOTOMAIL"}))},handlerCurrentBind(){const e={sendType:this.radio,qiyeId:void 0,gmailValue:void 0};"WOTOMAIL"!==this.radio&&"GMAIL"!==this.radio&&(e["qiyeId"]=this.businessEmailList.find((e=>e.emailAddress===this.radio))?.id),"GMAIL"===this.radio&&(e.gmailValue=this.gmailVal),this.$emit("updateCurrentEmail",e),this.isCheckType?this.$emit("openCheckNext"):this.$message.success(this.$t("edm5.v227")),this.closeChooseMail()},authorizeGmail(){if(this.gmailVal)return this.$message.error(this.$t("edm5.v228"));if(!this.gmailValInput)return void this.$message.warning(`${this.$i18n.t("setMail.tip9")}`);const e=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(e.test(this.gmailValInput)){let e=this.$route.query;localStorage.setItem("beforeSkipPathQuery",JSON.stringify(e)),localStorage.setItem("authorType","Gmail"),localStorage.setItem("authorLink",this.gmailValInput),Id({id:"",gmail:this.gmailValInput}).then((e=>{if("0"===e.code){let e=`https://accounts.google.com/o/oauth2/auth?response_type=code&access_type=offline&client_id=478743684976-2e3nlm97t528lb0gn44notvkdacnjii9.apps.googleusercontent.com&redirect_uri=${this.redirectUri}&state=null&scope=${this.scopeVal}&approval_prompt=force&include_granted_scopes=true`;window.location.href=e}else this.$message.error(e.message)}))}else this.$message.warning(`${this.$i18n.t("setMail.tip10")}`)},handleGmailAuth(){this.authLoading=!0,$d({googleCode:this.code,authStatus:1,redirectUri:`${this.currentEnv}/write`}).then((e=>{"0"===e.code?(this.$message.success(`${this.$i18n.t("setMail.auth_success")}`),Pd().then((e=>{"0"===e.code?this.gmailVal=e.data.email:this.$message.error(e.message)}))):(this.gmailVal="",this.$message.error(e.message)),this.clearEmailStorage(),this.authLoading=!1})).catch((()=>{this.clearEmailStorage(),this.authLoading=!1})).finally((()=>{this.authLoading=!1}))},async authorizeOutlook(){if(!this.outlookValInput)return void this.$message.warning(this.$t("edm5.v229"));const e=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(e.test(this.outlookValInput)){let e=this.$route.query;localStorage.setItem("beforeSkipPathQuery",JSON.stringify(e)),localStorage.setItem("authorType","Outlook"),localStorage.setItem("authorLink",this.outlookValInput);try{const e=await jd({type:"outlook"});if("0"===e.code){const{authorizeUrl:t,clientId:n,scope:i}=e.data;let r=`${t}?scope=${encodeURIComponent(i)}&response_type=code&client_id=${n}&redirect_uri=${this.redirectUri}`;console.log(r),window.location.href=r}}catch(rl){console.log(rl)}}else this.$message.warning(`${this.$i18n.t("setMail.tip10")}`)},async handleOutLookAuth(){try{this.authLoading=!0;const e=localStorage.getItem("authorLink"),t=await Ld({code:this.code,type:"outlook",email:e||void 0});"0"===t.code?(this.$message.success(`${this.$i18n.t(this.$t("edm5.v230"))}`),this.getBusinessEMails()):this.$message.error(t.message),this.clearEmailStorage(),this.authLoading=!1}catch(rl){this.clearEmailStorage(),console.log(rl),this.authLoading=!1}finally{this.authLoading=!1}},clearEmailStorage(){const e=localStorage.getItem("beforeSkipPathQuery");if(e){const t=JSON.parse(e);this.$router.push({query:pd()({},t)}),localStorage.removeItem("beforeSkipPathQuery")}localStorage.removeItem("authorType"),localStorage.removeItem("authorLink"),this.$route.query.draftId&&(this.reloadTimer=setTimeout((()=>{location.reload()}),1e3))},async unbind(e){try{const t=await Rd({email:"GMAIL"===e?this.gmailVal:e});"0"===t.code?(this.hasToSendEmail=!t.data,this.currentUnbindEmail=e,this.innerVisible=!0):this.$message.error(t.message)}catch(rl){console.log(rl)}},confirmUnbind(){this.unbindLoading=!0,"GMAIL"===this.currentUnbindEmail?$d({authStatus:0}).then((e=>{"0"===e.code?(this.innerVisible=!1,this.gmailValInput="",this.gmailVal="",this.$message.success(e.message),this.currentUnbindEmail===this.radio?this.handleUnbindDefault():this.$emit("closeChooseMail")):this.$message.error(e.message)})).finally((()=>{this.unbindLoading=!1})):Kd({email:this.currentUnbindEmail}).then((e=>{"0"===e.code?(this.$message.success(this.$t("edm5.v231")),this.innerVisible=!1,this.currentUnbindEmail===this.radio?this.handleUnbindDefault():this.$emit("closeChooseMail")):this.$message.error(e.message)})).finally((()=>{this.unbindLoading=!1}))},async handleUnbindDefault(){await this.getDefaultBindEmail();const e={sendType:this.defaultEmail,qiyeId:void 0,gmailValue:void 0};"WOTOMAIL"!==this.defaultEmail&&"GMAIL"!==this.defaultEmail&&(e["qiyeId"]=this.businessEmailList.find((e=>e.emailAddress===this.defaultEmail))?.id),"GMAIL"===this.radio&&(e.gmailValue=this.gmailVal),this.$emit("updateCurrentEmail",e),this.$emit("closeChooseMail")},toGuide(){this.$emit("toGuide")},toBindHelp(){window.open("/bindEmailHelp","_blank")},providerChange(e){const t=this.businessTemplateList.find((t=>t.id===e));if(t){const{imapHost:e,imapPort:n,smtpHost:i,smtpPort:r,encryptionType:o,provider:a}=t;this.businessParams={...this.businessParams,imapHost:e,imapPort:n,smtpHost:i,smtpPort:r,encryptionType:o,provider:a}}},async testEmailChannel(){this.$refs["businessRuleForm"].validate((async e=>{if(!e)return console.log("error submit!!"),!1;try{this.bingLoading=!0;const e=await Gd({...this.businessParams});"0"===e.code?this.$message.success(this.$t("edm5.v232")):this.$message.error(e.message),this.bingLoading=!1}catch(rl){console.log(rl),this.bingLoading=!1}finally{this.bingLoading=!1}}))},validatePort(e,t,n){const i=Number(t);!1===Number.isNaN(i)&&"number"===typeof i?n():n(new Error(this.$t("edm5.v233")))},validateUrl(e,t,n){const i=/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/;i.test(t)?n():n(new Error(this.$t("edm5.v234")))}}},rIe=iIe,oIe=or(rIe,tIe,nIe,!1,null,null,null),aIe=oIe.exports,sIe=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{title:e.$i18n.t("newProduct.product"),visible:e.isShowDrawer,size:"560px","custom-class":"product-drawer"},on:{"update:visible":function(t){e.isShowDrawer=t},close:e.closeProductDrawer}},[t("div",{staticClass:"search-product-wrap"},[t("el-input",{staticClass:"input-with-select",class:{"input-with-select-en":"en"===e.language},attrs:{placeholder:2==e.productSelect?e.$i18n.t("newProduct.please_enter_num"):e.$i18n.t("newProduct.please_enter"),type:2==e.productSelect?"number":""},model:{value:e.productInput,callback:function(t){e.productInput=t},expression:"productInput"}},[t("el-select",{attrs:{slot:"prepend"},on:{change:e.changeProductMode},slot:"prepend",model:{value:e.productSelect,callback:function(t){e.productSelect=t},expression:"productSelect"}},[t("el-option",{attrs:{label:e.$i18n.t("newProduct.product_name"),value:"1"}}),t("el-option",{attrs:{label:e.$i18n.t("newProduct.productId"),value:"2"}}),"ai"===e.from?t("el-option",{attrs:{label:e.$i18n.t("newProduct.productRemark"),value:"3"}}):e._e()],1)],1),t("div",{staticClass:"search-btns"},[t("el-button",{attrs:{type:"primary"},on:{click:e.searchEvt}},[e._v(e._s(e.$i18n.t("newProduct.query")))]),t("el-button",{on:{click:e.resetEvt}},[e._v(e._s(e.$i18n.t("newProduct.reset")))])],1)],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],class:{"product-list":!0,"product-list-add":"ai"===e.from&&e.hasSelectedList.length>0}},e._l(e.productsArr,(function(n,i){return t("div",{key:i,staticClass:"product-item"},["ai"===e.from?t("div",{staticClass:"item-select"},[t("el-checkbox",{attrs:{value:e.isSelected(n)},on:{change:t=>e.selectChanged(t,n)}})],1):e._e(),t("div",{staticClass:"item-left"},[t("el-image",{attrs:{src:n.imageUrls[0]}}),2==n.source?t("p",{staticClass:"desc"},[e._v(" "+e._s(e.$i18n.t("newProduct.shopifyProduct"))+" ")]):e._e()],1),t("div",{staticClass:"item-center"},[t("p",{staticClass:"p1"},[e._v(" "+e._s(n.nameZh)+" ")]),"ai"===e.from?t("p",{staticClass:"p2"},[e._v(" "+e._s(e.$i18n.t("newProduct.product_en"))+":"+e._s(n.nameEn)+" ")]):e._e(),t("p",{staticClass:"p2"},[e._v(" "+e._s(e.$i18n.t("newProduct.product_remarks"))+":"+e._s(n.remark)+" ")]),t("p",{staticClass:"p3"},[e._v(" "+e._s(e.$i18n.t("newProduct.channel"))+":"+e._s(n.platformName)+" ")])]),"ai"!==e.from?t("div",{staticClass:"item-right",on:{click:function(t){return e.productDetailRow(n.id)}}},[t("span",[e._v(e._s(e.$i18n.t("newProduct.details"))),t("i",{staticClass:"el-icon-arrow-right"})])]):e._e()])})),0),"ai"===e.from&&e.hasSelectedList.length>0?t("div",{staticClass:"select-part"},[t("div",{staticClass:"left"},[e._v(" "+e._s(e.$t("edm5.v263"))+" "),t("span",{staticStyle:{color:"#ff5277"}},[e._v(e._s(e.hasSelectedList.length))]),e._v(" "+e._s(e.$t("edm5.v264"))+" ")]),t("div",{staticClass:"right"},[t("el-button",{on:{click:e.closeProductDrawer}},[e._v(e._s(e.$t("edm5.v226")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.confirmAddAi}},[e._v(e._s(e.$t("edm5.v45")))])],1)]):e._e(),t("div",{staticClass:"pagination"},[t("el-pagination",{staticClass:"edm-product-pagination",attrs:{"hide-on-single-page":0==e.total,total:e.total,"page-size":e.queryParams.pageSize,"current-page":e.queryParams.currentPage,layout:"total,prev, pager, next,jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e.isShowProductDetailDrawer?t("product-detail-drawer",{attrs:{isShowProductDetailDrawer:e.isShowProductDetailDrawer,rowId:e.rowId},on:{setProduct:e.setProduct,closeProductDetailDrawer:e.closeProductDetailDrawer}}):e._e()],1)},lIe=[],cIe=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{title:e.$i18n.t("newProduct.product_details"),visible:e.isShowDrawer,size:"560px","append-to-body":"","custom-class":"mannual-product-drawer"},on:{"update:visible":function(t){e.isShowDrawer=t},close:e.closeProductDetailDrawer}},[t("div",{staticClass:"product-card mb40"},[t("div",{staticClass:"title"},[e._v(" "+e._s(e.$i18n.t("productCard.product_card"))+" "),t("span",{staticClass:"card-i",on:{click:e.addProductCard}},[t("i",{staticClass:"dss-iconfont icon-applyproduct"})])]),t("div",{staticClass:"cards-wrap"},[t("div",{staticClass:"card-item"},[t("div",{staticClass:"card-img"},[t("el-image",{staticClass:"product-img",attrs:{src:e.form.imageUrls[0]}}),t("div",{staticClass:"card-tags"},[e._l(e.form.promotePlatformType,(function(n,i){return t("div",{key:i,staticClass:"platform-img"},[0==n?t("img",{attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/youtube.png"}}):e._e(),1==n?t("img",{attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/tiktok.png"}}):e._e(),2==n?t("img",{attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/ins.png"}}):e._e()])})),e._l(e.typeName,(function(n,i){return t("span",{key:"typeName"+i},[e._v(e._s(n))])}))],2)],1),t("p",{staticClass:"card-name"},[e._v(" "+e._s(e.form.nameEn||"—")+" ")]),t("p",{staticClass:"card-price"},[e._v(" Price:"+e._s(e._f("getMoneySymbol")(e.form.currency))+e._s(e.form.priceDollar||"—")+" ")]),t("p",{staticClass:"card-commission"},[e._v(" Commission rate:"+e._s(e.form.commissionPercent||"—")+"% ")]),t("div",{staticClass:"card-apply",class:{"only-btn":null==e.form.commissionPercent||0==e.form.commissionPercent}},[null!==e.form.commissionPercent&&0!==e.form.commissionPercent?t("p",{staticClass:"money"},[t("span",[e._v(e._s(e._f("getMoneySymbol")(e.form.currency))+e._s((e.form.priceDollar*(e.form.commissionPercent/100)).toFixed(2)))]),e._v(" /per orderd item ")]):e._e(),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.skipApply}},[e._v("Apply")])],1)]),t("div",{staticClass:"cark-views"},[t("span",[e._v(e._s(e.$i18n.t("newProduct.view_cards_times"))+":"+e._s(e.form.viewNum||"0"))])])])]),t("div",{staticClass:"basic-info mb40"},[t("div",{staticClass:"title"},[t("p",{staticClass:"weight-title"},[e._v(" "+e._s(e.$i18n.t("newProduct.basic_information"))+" ")])]),t("div",{staticClass:"name mb24"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.name")))]),t("div",{staticClass:"zh-wrap mb8"},[t("div",{staticClass:"zh-name"},[t("span",[t("font",{staticClass:"mark"},[e._v("*")]),e._v(e._s(e.$i18n.t("newProduct.chinese")))],1),t("el-input",{attrs:{disabled:""},model:{value:e.form.nameZh,callback:function(t){e.$set(e.form,"nameZh",t)},expression:"form.nameZh"}})],1),null!==e.form.nameZh&&""!==e.form.nameZh?t("i",{staticClass:"dss-iconfont icon-applyproduct card-i",on:{click:function(t){return e.setProduct(e.form.nameZh,"normal")}}}):e._e()]),t("div",{staticClass:"zh-wrap"},[t("div",{staticClass:"en-name"},[t("span",[e._v(e._s(e.$i18n.t("newProduct.english")))]),t("el-input",{attrs:{disabled:""},model:{value:e.form.nameEn,callback:function(t){e.$set(e.form,"nameEn",t)},expression:"form.nameEn"}})],1),null!==e.form.nameEn&&""!==e.form.nameEn?t("i",{staticClass:"dss-iconfont icon-applyproduct card-i",on:{click:function(t){return e.setProduct(e.form.nameEn,"normal")}}}):e._e()])]),t("div",{staticClass:"remarks mb24"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.remarks")))]),t("el-input",{attrs:{disabled:""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1),t("div",{staticClass:"img mb24"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.picture")))]),t("el-upload",{class:{"product-upload":!0,toMax:!0},attrs:{action:"#","list-type":"picture-card",accept:"image/gif,image/jpeg,image/jpg,image/png,image/svg","file-list":e.fileList,"auto-upload":!0,multiple:!1,disabled:""},scopedSlots:e._u([{key:"file",fn:function({file:n}){return t("div",{staticClass:"scope-upload"},[t("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e.currentMainPicUid===n.uid?t("div",{staticClass:"img-operate"},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$i18n.t("newProduct.Main_image"),placement:"top"}},[t("span",{class:{"is-main":e.currentMainPicUid===n.uid}},[t("i",{staticClass:"el-icon-s-home"})])])],1):e._e(),t("i",{staticClass:"dss-iconfont icon-applyproduct card-i img-i",on:{click:function(t){return e.setProduct(n.url,"img")}}})])}}])},[t("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])],1),t("div",{staticClass:"type mb24"},[t("p",{staticClass:"item-label"},[t("span",{staticClass:"mark"},[e._v("*")]),e._v(e._s(e.$i18n.t("newProduct.category"))+" ")]),t("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:"",multiple:"","collapse-tags":""},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.productTypeOpts,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("div",{staticClass:"desc mb24"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.describe")))]),t("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:4},maxlength:"1000","show-word-limit":"",disabled:""},model:{value:e.form.description,callback:function(t){e.$set(e.form,"description",t)},expression:"form.description"}})],1),t("div",{staticClass:"original"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.source")))]),t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",filterable:"",clearable:""},model:{value:e.form.source,callback:function(t){e.$set(e.form,"source",t)},expression:"form.source"}},[t("el-option",{attrs:{label:e.$i18n.t("newProduct.Manual_addition"),value:1}}),t("el-option",{attrs:{label:e.$i18n.t("newProduct.Shopify_import"),value:2}}),t("el-option",{attrs:{label:e.$i18n.t("newProduct.TikTok_import"),value:3}})],1)],1)]),t("div",{staticClass:"sell-info mb40"},[t("div",{staticClass:"title"},[t("p",{staticClass:"weight-title"},[e._v(" "+e._s(e.$i18n.t("newProduct.sales_information"))+" ")])]),t("div",{staticClass:"sell-price mb24"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.price")))]),t("div",{staticClass:"price-box"},[t("el-select",{attrs:{clearable:"",filterable:"",disabled:""},model:{value:e.form.currency,callback:function(t){e.$set(e.form,"currency",t)},expression:"form.currency"}},e._l(e.moneyTypeOpts,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-input",{directives:[{name:"stopMousewheel",rawName:"v-stopMousewheel"}],attrs:{disabled:"",type:"number"},model:{value:e.form.priceDollar,callback:function(t){e.$set(e.form,"priceDollar",t)},expression:"form.priceDollar"}}),null!==e.form.priceDollar&&""!==e.form.priceDollar?t("i",{staticClass:"dss-iconfont icon-applyproduct card-i",on:{click:function(t){return e.setProduct(e.form.priceDollar,"price")}}}):e._e()],1)]),t("div",{staticClass:"sku mb24"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.sku_description")))]),t("div",{staticClass:"zh-wrap"},[t("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:4},maxlength:"1000","show-word-limit":"",disabled:""},model:{value:e.form.sku,callback:function(t){e.$set(e.form,"sku",t)},expression:"form.sku"}}),null!==e.form.sku&&""!==e.form.sku?t("i",{staticClass:"dss-iconfont icon-applyproduct card-i sku-i",on:{click:function(t){return e.setProduct(e.form.sku,"normal")}}}):e._e()],1)]),t("div",{staticClass:"shippableregions mb24"},[t("p",{staticClass:"item-label"},[t("span",{staticClass:"mark"},[e._v("*")]),e._v(e._s(e.$i18n.t("newProduct.shippable_regions"))+" ")]),0==e.form.isGlobal?t("div",{staticClass:"zh-wrap"},[t("el-cascader",{staticClass:"product-area-edm",attrs:{disabled:"",options:e.areaOptions,props:{multiple:!0,expandTrigger:"hover"},"collapse-tags":"",clearable:"",filterable:""},model:{value:e.areaList,callback:function(t){e.areaList=t},expression:"areaList"}}),t("i",{staticClass:"dss-iconfont icon-applyproduct card-i sku-i",on:{click:function(t){return e.setProduct(e.form.isGlobal,"area")}}})],1):e._e(),1==e.form.isGlobal?t("div",{staticClass:"zh-wrap"},[t("el-input",{attrs:{disabled:""},model:{value:e.formCountry,callback:function(t){e.formCountry=t},expression:"formCountry"}}),t("i",{staticClass:"dss-iconfont icon-applyproduct card-i sku-i",on:{click:function(t){return e.setProduct(e.form.isGlobal,"area")}}})],1):e._e()]),t("div",{staticClass:"channel mb24"},[t("p",{staticClass:"item-label"},[t("span",{staticClass:"mark"},[e._v("*")]),e._v(e._s(e.$i18n.t("newProduct.channel"))+" ")]),e._l(e.form.platformLink,(function(n,i){return t("div",{key:i,staticClass:"channel-item mb8"},[t("el-select",{attrs:{disabled:""},model:{value:n.platform,callback:function(t){e.$set(n,"platform",t)},expression:"item.platform"}},e._l(e.platFormOpts,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-input",{attrs:{disabled:""},model:{value:n.links,callback:function(t){e.$set(n,"links",t)},expression:"item.links"}}),t("i",{staticClass:"dss-iconfont icon-applyproduct card-i",on:{click:function(t){return e.setProduct(n.links,"links")}}})],1)}))],2),t("div",{staticClass:"keyword"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.search_keywords")))]),t("div",{staticClass:"zh-wrap"},[t("el-input",{attrs:{disabled:""},model:{value:e.form.tags,callback:function(t){e.$set(e.form,"tags",t)},expression:"form.tags"}}),null!==e.form.tags&&""!==e.form.tags?t("i",{staticClass:"dss-iconfont icon-applyproduct card-i sku-i",on:{click:function(t){return e.setProduct(e.form.tags,"normal")}}}):e._e()],1)])])])},uIe=[];const dIe=[{label:"Shopify独立站",value:0},{label:"Shopline独立站",value:1},{label:"亚马逊Amazon",value:2},{label:"速卖通AliExpress",value:3},{label:"来赞达Lazada",value:4},{label:"虾皮Shopee",value:5},{label:"TikTok小店",value:6},{label:"其他",value:7}],hIe=[{value:"1",label:"数码电器",en_label:"Electronics"},{value:"2",label:"母婴用品",en_label:"Mother & Kids"},{value:"3",label:"玩具",en_label:"Toys"},{value:"4",label:"食品",en_label:"Food & Drink"},{value:"5",label:"办公设备",en_label:"Office Products"},{value:"6",label:"宠物用品",en_label:"Animals & Pets"},{value:"7",label:"家居园艺",en_label:"Home & Garden"},{value:"8",label:"美容健康",en_label:"Health & Personal Care"},{value:"9",label:"运动用品",en_label:"Sports"},{value:"10",label:"户外用品",en_label:"Outdoor"},{value:"11",label:"汽摩配件",en_label:"Car & Motorbike"},{value:"12",label:"时尚服饰",en_label:"Clothing & Accessories"},{value:"13",label:"行李箱包",en_label:"Luggage & Travel Gear"},{value:"14",label:"五金工具",en_label:"Tools/Equipment"},{value:"15",label:"工艺及DIY",en_label:"Crafts & DIY"},{value:"16",label:"教育产品",en_label:"Education"},{value:"17",label:"音乐乐器",en_label:"Music"},{value:"19",label:"游戏",en_label:"Games"},{value:"18",label:"其他产品",en_label:"Other"}],pIe=[{label:"美元",value:0,code:"USD",symbol:"$"},{label:"欧元",value:1,code:"EUR",symbol:"€"},{label:"英镑",value:2,code:"GBP",symbol:"£"},{label:"日元",value:3,code:"JPY",symbol:"¥"},{label:"人民币",value:4,code:"CNY",symbol:"¥"},{label:"加拿大元",value:5,code:"CAD",symbol:"$"},{label:"澳大利亚元",value:6,code:"AUD",symbol:"$"},{label:"瑞士法郎",value:7,code:"CHF",symbol:"Fr"},{label:"新西兰元",value:8,code:"NZD",symbol:"$"},{label:"韩元",value:9,code:"KRW",symbol:"₩"},{label:"印度卢比",value:10,code:"INR",symbol:"₹"},{label:"巴西雷亚尔",value:11,code:"BRL",symbol:"R$"},{label:"南非兰特",value:12,code:"ZAR",symbol:"R"},{label:"西班牙比塞塔",value:13,code:"ESP",symbol:"₧"},{label:"泰国铢",value:14,code:"THB",symbol:"฿"},{label:"瑞典克朗",value:15,code:"SEK",symbol:"kr"},{label:"新加坡元",value:16,code:"SGD",symbol:"$"},{label:"阿联酋迪拉姆",value:17,code:"AED",symbol:"د.إ"},{label:"墨西哥比索",value:18,code:"MXN",symbol:"$"},{label:"俄罗斯卢布",value:19,code:"RUB",symbol:"₽"},{label:"沙特里亚尔",value:20,code:"SAR",symbol:"ر.س"},{label:"马来西亚林吉特",value:21,code:"MYR",symbol:"RM"},{label:"港元",value:22,code:"HKD",symbol:"HK$"},{label:"柬埔寨瑞尔",value:23,code:"KHR",symbol:"៛"},{label:"菲律宾比索",value:24,code:"PHP",symbol:"₱"},{label:"越南盾",value:25,code:"VND",symbol:"₫"},{label:"印尼盾",value:26,code:"IDR",symbol:"Rp"}],fIe=[{value:7,label:"汉语",enLabel:"Chinese"},{value:1,label:"英语",enLabel:"English"},{value:3,label:"法语",enLabel:"French"},{value:8,label:"德语",enLabel:"German"},{value:6,label:"日语",enLabel:"Japanese"},{value:9,label:"韩语",enLabel:"Korean"},{value:10,label:"越南语",enLabel:"Vietnamese"},{value:11,label:"泰国语",enLabel:"Thai"},{value:12,label:"菲律宾语",enLabel:"Filipino"},{value:13,label:"印度尼西亚语",enLabel:"Indonesian"},{value:14,label:"俄罗斯语",enLabel:"Russian"},{value:4,label:"西班牙语",enLabel:"Spanish"},{value:15,label:"意大利语",enLabel:"Italian"}];var mIe,gIe,vIe={props:{isShowProductDetailDrawer:{type:Boolean,default:!1},rowId:{type:[Number,String],default:""}},data(){return{isShowDrawer:this.isShowProductDetailDrawer,form:{nameZh:"",nameEn:"",remark:"",type:[],description:"",source:1,sku:"",isGlobal:1,currency:"",priceDollar:"",imageUrls:[],shippingArea:[],platformLink:[],tags:"",sharingUsers:[]},productTypeOpts:Object.freeze(hIe),moneyTypeOpts:Object.freeze(pIe),platFormOpts:Object.freeze(dIe),shareAccountOpts:[],areaOptions:[],fileList:[],tagList:[],inputTag:"",inputFocus:!1,createAccount:"",isFinished:!1,formCountry:"可全球发货",clickApplyProduct:!1,typeName:[]}},computed:{currentMainPicUid(){return(Array.isArray(this.fileList)&&this.fileList.length)>0?this.fileList[0]?.uid:""},areaList:{set(e){const t=[];e.forEach((e=>{const[n,i]=e,r=t.findIndex((e=>e.area===n));r>-1?t[r].countries.push(i):t.push({area:n,countries:[i]})})),this.form.shippingArea=t},get(){const e=[];return this.form.shippingArea.forEach((t=>{t.countries.forEach((n=>{e.push([t.area,n])}))})),e}},...ki(["user_info"])},created(){this.getCountryOpts(),this.getProductDetail()},methods:{skipApply(){DOe({productId:Number(this.rowId)}).then((e=>{"0"===e.code?window.open(e.data,"_blank"):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},setProduct(e,t){let n="";if("normal"==t&&(n=e),"price"==t){let t="";this.moneyTypeOpts.map((e=>{e.value==this.form.currency&&(t=e.label)})),n=e+t}if("area"==t){let t="",i=[];1==e?t="可全球发货":0==e&&this.form.shippingArea.map((e=>{this.areaOptions.map((n=>{e.area==n.value&&(e.countries.length==n.children.length?t=n.label:e.countries.map((e=>{n.children.map((t=>{e==t.value&&i.push(`${n.label}/${t.label}`)}))})))}))})),n=i.join(",")+","+t}if("links"==t){let t="";this.form.platformLink.map((n=>{n.links==e&&this.platFormOpts.map((e=>{e.value==n.platform&&(t=e.label)}))})),n=`${t}:${e}`}"img"==t&&(n=e),this.$emit("setProduct",`<p>${n}</p>`)},addProductCard(){this.$message.success("商品卡添加成功"),this.clickApplyProduct=!0},getProductDetail(){kOe({id:this.rowId}).then((e=>{"0"===e.code?(this.form=e.data,this.form.description=this.htmlToPlainText(this.form.description),this.form.imageUrls&&this.form.imageUrls.forEach((e=>{this.fileList.push({url:e})})),e.data.type&&0!==e.data.type.length&&(this.typeName=[],3!==e.data.source?this.productTypeOpts.map((t=>{e.data.type.map((e=>{t.value==e&&this.typeName.push(t.label)}))})):this.typeName=e.data.type)):this.$message.error(e.message)}))},htmlToPlainText(e){const t=new DOMParser,n=t.parseFromString(e,"text/html");return n.body.textContent||""},closeProductDetailDrawer(){let e="";e=this.clickApplyProduct?this.rowId:"",this.$emit("closeProductDetailDrawer",e)},getCountryOpts(){Fd({code:"sysDictService",data:{param:{dictTypeCode:"dim_region"}}}).then((e=>{const t=[];e.data.forEach((e=>{const n=t.findIndex((t=>t.label===e.col1));n>-1?t[n].children.push({label:e.dictValue,value:e.dictCode,sort:e.orderNum}):t.push({label:e.col1,value:e.id,sort:Number(e.catLevel1),children:[{label:e.dictValue,value:e.dictCode,sort:e.orderNum}]})})),this.areaOptions=t.sort(((e,t)=>e.sort-t.sort))}))}}},yIe=vIe,bIe=or(yIe,cIe,uIe,!1,null,"6ed8a076",null),wIe=bIe.exports,_Ie={components:{productDetailDrawer:wIe},props:{isShowProductDrawer:{type:Boolean,default:!1},from:{type:String,default:""},defaultSelectedProduct:{type:Array,default:()=>[]}},data(){return{productInput:"",productSelect:"1",productsArr:[],queryParams:{timeAsc:!1,pageSize:6,currentPage:1,productId:"",productName:"",remark:""},total:0,isShowProductDetailDrawer:!1,isShowDrawer:this.isShowProductDrawer,loading:!1,rowId:"",clickApplyProductId:"",hasSelectedList:[],language:Wi.get("language")}},created(){this.defaultSelectedProduct&&this.defaultSelectedProduct.length>0&&(this.hasSelectedList=this.defaultSelectedProduct),this.getProductList()},methods:{closeProductDetailDrawer(e){this.clickApplyProductId=e,this.isShowProductDetailDrawer=!1},productDetailRow(e){this.isShowProductDetailDrawer=!0,this.rowId=e},changeProductMode(e){this.productSelect=e,this.productInput=""},getProductList(){this.loading=!0,SOe({...Ls(this.queryParams)}).then((e=>{"0"===e.code?(this.productsArr=e.data.rows.map((e=>{let t=[];return null!==e.shippingAreaZh&&0!==e.shippingAreaZh.length&&0==e.isGlobal&&e.shippingAreaZh.map((e=>{t=[...t,...e.countries]})),1==e.isGlobal&&(t=["可全球发货"]),{...e,countryName:t.toString(),productLink:e.platformLink?.map((e=>e.links))?.join(",")}})),this.total=e.data.total):this.$message.error(e.message)})).finally((()=>{this.loading=!1}))},searchEvt(){1==this.productSelect?(this.queryParams.productName=this.productInput,this.queryParams.productId="",this.queryParams.remark=""):2==this.productSelect?(this.queryParams.productId=this.productInput,this.queryParams.productName="",this.queryParams.remark=""):3==this.productSelect&&(this.queryParams.productId="",this.queryParams.productName="",this.queryParams.remark=this.productInput),this.queryParams.currentPage=1,this.getProductList()},resetEvt(){this.queryParams=this.$options.data().queryParams,this.productInput="",this.productSelect="1",this.getProductList()},handleSizeChange(e){this.queryParams.pageSize=e,this.getProductList()},handleCurrentChange(e){this.queryParams.currentPage=e,this.getProductList()},closeProductDrawer(){this.$emit("closeProductDrawer",this.clickApplyProductId)},changeCommodityMode(e){this.productSelect=e,this.productInput=""},setProduct(e){this.$emit("setProduct",e)},selectChanged(e,t){const n=this.hasSelectedList.findIndex((e=>e.id===t.id));-1===n?t.nameEn?this.hasSelectedList.push(t):this.$confirm("当前所选产品没有设置英文名称,暂无法选择!",this.$t("edm5.v79"),{confirmButtonText:"去补全",cancelButtonText:"取消",type:"warning"}).then((()=>{window.open("/myProduct","_blank"),this.closeProductDrawer()})).catch((()=>{})):this.hasSelectedList.splice(n,1)},isSelected(e){return this.hasSelectedList.findIndex((t=>t.id===e.id))>-1},confirmAddAi(){this.$emit("addAiProduct",this.hasSelectedList)}}},CIe=_Ie,xIe=or(CIe,sIe,lIe,!1,null,"430214a1",null),SIe=xIe.exports,kIe=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{title:e.$i18n.t("productForm.product_selection_form"),visible:e.isShowDrawer,size:"1000px","custom-class":"product-form-drawer"},on:{"update:visible":function(t){e.isShowDrawer=t},close:e.closeProductFormDrawer}},[t("WTable",{attrs:{tableColumnConfig:e.tableColumnConfig,tableData:e.productFormTableData,height:e.tableHeight,"max-height":e.tableHeight,loading:e.loading,total:e.total,pageSize:e.queryParams.pageSize,pageNum:e.queryParams.currentPage},on:{"update:pageSize":function(t){return e.$set(e.queryParams,"pageSize",t)},"update:page-size":function(t){return e.$set(e.queryParams,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.queryParams,"currentPage",t)},"update:page-num":function(t){return e.$set(e.queryParams,"currentPage",t)},changeSize:function(t){return e.getProductCardFormList()},changeCurrent:function(t){return e.getProductCardFormList()},sort:e.tableSort},scopedSlots:e._u([{key:"radio",fn:function({data:n}){return[t("el-radio",{attrs:{label:n.scope.id},on:{input:function(t){return e.changeRadio(t)}},model:{value:e.cellRadio,callback:function(t){e.cellRadio=t},expression:"cellRadio"}},[t("span")])]}},{key:"viewNum",fn:function({data:t}){return[e._v(" "+e._s(t.scope.viewNum)+" ")]}},{key:"operate",fn:function({data:n}){return[t("el-link",{attrs:{type:"primary",underline:!1},on:{click:function(t){return e.lookRow(n.scope)}}},[e._v(e._s(e.$i18n.t("productForm.see")))])]}}])}),t("div",{staticClass:"product-form-btn"},[t("el-button",{on:{click:e.closeProductFormDrawer}},[e._v(e._s(e.$i18n.t("productForm.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.setProductFormLink}},[e._v(e._s(e.$i18n.t("productForm.confirm")))])],1)],1)},EIe=[],DIe=function(){var e=this,t=e._self._c;return t("div",{class:{"crm-x-table":!0}},[t("el-table",e._g(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"xTable",style:{"min-height":`${e.minHeight}px`},attrs:{data:e.tableData,height:e.height,"max-height":e.maxHeight,"row-key":e.getRowKeys,"row-class-name":"row-class-name","cell-class-name":"cell-class-name","tooltip-effect":"light myTooltip"},on:{"selection-change":e.selectionChange,"row-click":e.rowClick,"sort-change":e.sortChange}},"el-table",e.$attrs,!1),e.$listeners),[e.fullTableConfig.selection?[t("el-table-column",{attrs:{type:"selection",align:"center",width:e.fullTableConfig.selectionWidth||40,fixed:e.fullTableConfig.selectionFixed||null,selectable:e.fullTableConfig.handleSelectable,"reserve-selection":!0}})]:e._e(),e.fullTableConfig.index?[t("el-table-column",{attrs:{type:"index",width:e.fullTableConfig.indexWidth||50,label:e.fullTableConfig.indexLabel||"序号",fixed:e.fullTableConfig.indexFixed||null}})]:e._e(),e._l(e.fulColumnConfig,(function(n){return[n.scope&&n.isShow?t("el-table-column",{key:n.scope,attrs:{label:n.label||"",width:n.width||"","min-width":n.minWidth||"",align:n.align||"left",fixed:n.fixed,"class-name":n.isTag?"c-tag":""},scopedSlots:e._u([{key:n.options?"header":"",fn:function({column:n,$index:i}){return[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("span",{staticStyle:{color:"#666666","font-weight":"400","margin-right":"26px"}},[e._v("全选")])])]}},{key:"input"==n.filter?"header":"",fn:function(i){return[t("el-popover",{attrs:{trigger:"click",placement:"bottom",width:"280","popper-class":"input-popper"}},[t("el-input",{attrs:{placeholder:e.$t("edm5.v43")},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}}),t("div",{staticStyle:{"text-align":"right","margin-top":"8px"}},[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.resetSearch(n)}}},[e._v(e._s(e.$t("edm5.v44")))]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.confirmSearch(n)}}},[e._v(e._s(e.$t("edm5.v45")))])],1),t("div",{staticClass:"label",attrs:{slot:"reference"},slot:"reference"},[e._v(" "+e._s(e.$t("edm5.v42"))),t("i",{staticClass:"dss-iconfont icon-filter",staticStyle:{"font-size":"13px",color:"#999999",cursor:"pointer"}})])],1)]}},{key:"readRadio"==n.filter?"header":"",fn:function(i){return[t("el-popover",{attrs:{trigger:"click",placement:"bottom",width:"280","popper-class":"input-popper radio-popper"}},[t("div",{staticClass:"radio-box"},[t("el-radio",{attrs:{label:"1"},model:{value:e.readRadio,callback:function(t){e.readRadio=t},expression:"readRadio"}},[e._v(e._s(e.$t("edm5.v46")))]),t("el-radio",{attrs:{label:"2"},model:{value:e.readRadio,callback:function(t){e.readRadio=t},expression:"readRadio"}},[e._v(e._s(e.$t("edm5.v47")))])],1),t("div",{staticClass:"radio-btn",staticStyle:{"text-align":"right","margin-top":"8px"}},[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.resetSearch(n)}}},[e._v(e._s(e.$t("edm5.v44")))]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.confirmSearch(n)}}},[e._v(e._s(e.$t("edm5.v45")))])],1),t("div",{staticClass:"label",attrs:{slot:"reference"},slot:"reference"},[e._v(" "+e._s(n.label)+" "),t("i",{staticClass:"dss-iconfont icon-filter",staticStyle:{"font-size":"13px",color:"#999999",cursor:"pointer"}})])])]}},{key:"replyRadio"==n.filter?"header":"",fn:function(i){return[t("el-popover",{attrs:{trigger:"click",placement:"bottom",width:"280","popper-class":"input-popper radio-popper"}},[t("div",{staticClass:"radio-box"},[t("el-radio",{attrs:{label:"1"},model:{value:e.replyRadio,callback:function(t){e.replyRadio=t},expression:"replyRadio"}},[e._v("是")]),t("el-radio",{attrs:{label:"0"},model:{value:e.replyRadio,callback:function(t){e.replyRadio=t},expression:"replyRadio"}},[e._v("否")])],1),t("div",{staticClass:"radio-btn",staticStyle:{"text-align":"right","margin-top":"8px"}},[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.resetSearch(n)}}},[e._v(e._s(e.$t("edm5.v44")))]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.confirmSearch(n)}}},[e._v(e._s(e.$t("edm5.v45")))])],1),t("div",{staticClass:"label",attrs:{slot:"reference"},slot:"reference"},[e._v(" "+e._s(n.label)+" "),t("i",{staticClass:"dss-iconfont icon-filter",staticStyle:{"font-size":"13px",color:"#999999",cursor:"pointer"}})])])]}},{key:n.tips?"header":"",fn:function(i){return n.tips?[t("div",{staticClass:"tips-header",style:{"justify-content":e.handleAlgin(n.align)}},[t("span",{staticClass:"label"},[e._v(e._s(n.label))]),t("Tooltip",{staticClass:"tips-header-tooltip",attrs:{content:n.tips,isShowRule:!1}})],1)]:void 0}},{key:"default",fn:function(t){return[e._t(n.scope,null,{data:{scope:t.row,index:t.$index,item:n}})]}}],null,!0)}):!n.scope&&n.isShow?t("TableColumn",e._g(e._b({key:n.label,attrs:{"table-colum-config":n}},"TableColumn",e.$attrs,!1),e.$listeners)):e._e()]})),t("template",{slot:"empty"},[t("Empty",{attrs:{currentStyle:{padding:"0px 0"}}})],1),e._t("default")],2),e.hiddenPagination?e._e():t("div",{class:{"crm-pagination":!0,"has-selected":e.selectedList.length>0,"recipient-default":e.isRecipientList&&!e.tableConfigSelection},style:{top:e.isNeedScroll?`${e.topVal}px`:""}},[e.selectedList.length>0?t("div",{staticClass:"selection"},[t("div",{staticClass:"left"},[t("el-checkbox",{staticClass:"select-box is-indeterminate",attrs:{indeterminate:e.isIndeterminate},model:{value:e.isCheckAll,callback:function(t){e.isCheckAll=t},expression:"isCheckAll"}}),t("span",{staticClass:"select-num"},[e._v("已选中"),t("i",[e._v(e._s(e.selectedList.length))]),e._v("项")])],1),e.isOutboxDetail?t("div",{staticClass:"right add-right"},[t("div",{staticClass:"add-item",on:{click:function(t){return e.handleBtnClick({text:"再次邀约",key:"inviteAgain"})}}},[e._v(" 再次邀约 ")]),t("div",{staticClass:"add-item",on:{click:function(t){return e.handleBtnClick({text:"添加至推广计划",key:"addToPlan"})}}},[e._v(" 添加至推广计划 ")]),t("div",{staticClass:"add-item",on:{click:function(t){return e.handleBtnClick({text:"添加至收藏夹",key:"addToFavor"})}}},[e._v(" 添加至收藏夹 ")])]):e._e(),e.isRecipientList?t("div",{staticClass:"right add-right"},[t("div",{staticClass:"add-item",on:{click:function(t){return e.handleBtnClick({text:"确认移除收件人",key:"removeRecipient"})}}},[e._v(" 移除 ")])]):e._e()]):e._e(),e.isRecipientList?t("div",[e.tableConfigSelection||0===e.countRecipient?e._e():t("div",{staticClass:"recipient-tip"},[e._v(" 该列表共有"+e._s(e.countRecipient)+"位红人,其中含邮箱红人有 "),t("span",{staticStyle:{color:"#ff5277"}},[e._v(e._s(e.validRecipient))]),e._v(" 位 ")])]):e._e(),e.isSelectedDrawer?e._e():t("el-pagination",{staticClass:"pagination",attrs:{"popper-class":"table-pagination","current-page":e.pageNum,"page-size":e.pageSize,"page-sizes":e.pageSizes,layout:e.layout,total:e.total},on:{"update:currentPage":function(t){e.pageNum=t},"update:current-page":function(t){e.pageNum=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},AIe=[],TIe=function(){var e=this,t=e._self._c;return t("el-table-column",{attrs:{label:e.tableColumConfig.label||"",width:e.tableColumConfig.width||"","min-width":e.tableColumConfig.minWidth||"",prop:e.tableColumConfig.prop,align:e.tableColumConfig.align||"left",fixed:e.tableColumConfig.fixed||null,sortable:e.tableColumConfig.sortable?"custom":!!e.tableColumConfig.originSort&&e.tableColumConfig.originSort,"render-header":e.renderHeader,"sort-orders":["descending",null],"show-overflow-tooltip":e.tableColumConfig.showOverflowTooltip,"class-name":"wt-column-class"},scopedSlots:e._u([{key:"default",fn:function(n){return[e.tableColumConfig.template&&Array.isArray(e.tableColumConfig.template)?t("div",{class:{"x-table-template":!0,"x-table-template-center":"center"===e.tableColumConfig.align}},e._l(e.renderItem(e.tableColumConfig.template,n.row),(function(i,r){return t("div",{key:r},["button"===i.type?[t("el-button",{attrs:{type:"primary",size:"small",disabled:!!i.disabledFn&&e.disabledFn({name:i.name,row:n.row,route:e.$route})},on:{click:function(t){return t.stopPropagation(),e.emitFunc("handleMethod",{name:i.name,row:n.row,index:n.$index})}}},[e._v(" "+e._s(i.text)+" ")])]:e._e(),"text"===i.type?[t("el-button",{attrs:{type:"text",disabled:!!i.disabledFn&&e.disabledFn({name:i.name,row:n.row,route:e.$route})},on:{click:function(t){return t.stopPropagation(),e.emitFunc("handleMethod",{name:i.name,row:n.row,index:n.$index})}}},[e._v(" "+e._s(i.text)+" ")])]:"link"===i.type?[t("el-link",{attrs:{type:"primary",size:"small",disabled:!!i.disabledFn&&e.disabledFn({name:i.name,row:n.row,route:e.$route})},on:{click:function(t){return t.stopPropagation(),e.emitFunc("handleMethod",{name:i.name,row:n.row,index:n.$index})}}},[e._v(" "+e._s(i.text)+" ")])]:"render"===i.type?[t("ContextRender",e._g(e._b({attrs:{sc:n,row:n.row,render:i.render(n.row,e.that),rederStyle:i.classStyle?i.classStyle(n.row):""}},"ContextRender",e.$attrs,!1),e.$listeners))]:e._e()],2)})),0):["numFormat"===e.tableColumConfig.format?t("span",[e._v(" "+e._s(e._f("numFormat")(n.row[`${e.tableColumConfig.prop}`]))+" ")]):"rateFormat"===e.tableColumConfig.format?t("span",[e._v(" "+e._s(e._f("rateFormat")(n.row[`${e.tableColumConfig.prop}`]))+" ")]):"orateFormat"===e.tableColumConfig.format?t("span",[e._v(" "+e._s(n.row[`${e.tableColumConfig.prop}`])+"% ")]):"dateFormat"===e.tableColumConfig.format?t("span",[e._v(" "+e._s(e._f("dateFormat")(n.row[`${e.tableColumConfig.prop}`]))+" ")]):"common"===e.tableColumConfig.format?t("span",[e._v(" "+e._s(e._f("commonFormat")(n.row[`${e.tableColumConfig.prop}`],e.tableColumConfig.dict))+" ")]):t("span",[e._v(" "+e._s(n.row[`${e.tableColumConfig.prop}`]||"-")+" ")])]]}}])})},OIe=[],IIe={functional:!0,props:{row:{type:Object,required:!0},render:{type:Function,required:!0},sc:{type:Object,required:!0},rederStyle:{type:String,require:!0}},render:(e,t)=>{const n=[],i={row:t.props.row,index:t.props.sc.$index},r=t.props.render(e,i);return n.push(r),e("div",{class:t.props.rederStyle},n)}},PIe=IIe,$Ie=or(PIe,mIe,gIe,!1,null,null,null),FIe=$Ie.exports,BIe={name:"XTableReder",props:{tableColumConfig:{type:Object,default:()=>{}},disabledFn:{type:Function,default:function(){return!1}},showFn:{type:Function,default:function(){return!1}}},filters:{commonFormat(e,t){return t.find((t=>t.code==e))?.name||"-"}},mounted(){},computed:{that(){return this},renderItem(){return function(e,t){return Array.isArray(e)?e.filter((e=>!e.showFn||this.showFn({name:e.name,row:t,route:this.$route}))):[]}}},methods:{emitFunc(e,t){this.$emit(e,t)},renderHeader(e,{column:t,$index:n}){return t.sortable?"ascending"===t.order?e("div",{style:"display:flex;align-items:center;justify-content:center;"},[e("span",{style:"margin-right:10px;"},[t.label]),e("span",{style:"letter-spacing: -8px;display:flex;align-items:center;"},[e("i",{class:"el-icon-sort-up",style:"color:#DADADA;font-weight: 800;transform: rotateY(180deg);"}),e("i",{class:"el-icon-sort-down",style:"color:#DADADA;font-weight: 800;transform: rotateY(180deg);"})])]):"descending"===t.order?e("div",{style:"display:flex;align-items:center;justify-content:center;"},[e("span",{style:"margin-right:10px;"},[t.label]),e("span",{style:"letter-spacing: -8px;display:flex;align-items:center;"},[e("i",{class:"el-icon-sort-up",style:"color:#DADADA;font-weight: 800;transform: rotateY(180deg);"}),e("i",{class:"el-icon-sort-down",style:"color:#F85277;font-weight: 800;transform: rotateY(180deg);"})])]):e("div",{style:"display:flex;align-items:center;justify-content:center;"},[e("span",{style:"margin-right:10px;"},[t.label]),e("span",{style:"letter-spacing: -8px;display:flex;align-items:center;"},[e("i",{class:"el-icon-sort-up",style:"color:#DADADA;font-weight: 800;transform: rotateY(180deg);"}),e("i",{class:"el-icon-sort-down",style:"color:#DADADA;font-weight: 800;transform: rotateY(180deg);"})])]):t.label}},components:{ContextRender:FIe}},MIe=BIe,NIe=or(MIe,TIe,OIe,!1,null,"6518c6f8",null),RIe=NIe.exports;const jIe={tableMaxHeight:800,index:!1,indexWidth:60,indexLabel:"序号",indexFixed:"left",selection:!1,selectionWidth:36,selectionFixed:"left",handleSelectable:function(e,t){return!0}},LIe={label:"",prop:"",isShow:!0,width:"auto",minWidth:"auto",fixed:!1,template:!1,align:"left",sortable:!1,order:1};var zIe={name:"XTable",props:{tableData:{type:Array,default:()=>[]},tableConfig:{type:Object,default:()=>{}},tableColumnConfig:{type:Array,require:!0,default:()=>[]},total:{type:Number,default:0},height:{type:Number,default:"auto"},maxHeight:{type:Number,default:"500px"},minHeight:{type:Number,default:500},hiddenPagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},layout:{type:String,default:"total,slot, sizes, prev, pager, next"},tableBtns:{type:Array,default:()=>[]},rowKey:{type:String,default:"id"},pageNum:{type:Number,default:1},pageSize:{type:Number,default:20},pageSizes:{type:Array,default:()=>[10,20,50,100]},isNeedScroll:{type:Boolean,default:!1},isSelectedDrawer:{type:Boolean,default:!1},topVal:{type:Number,default:0},isOutboxDetail:{type:Boolean,default:!1},isRecipientList:{type:Boolean,default:!1},tableConfigSelection:{type:Boolean,default:!1},countRecipient:{type:[Number,String],default:0},validRecipient:{type:[Number,String],default:0}},data(){return{selectedList:[],searchVal:"",readRadio:null,replyRadio:null}},watch:{height(e){e&&this.$nextTick((()=>{console.log("----9999999"),console.log(this.$refs.xTable),console.log(e)}))}},computed:{fullTableConfig(){return{...jIe,...this.tableConfig}},fulColumnConfig(){return this.tableColumnConfig.map((e=>({...LIe,...e})))},isCheckAll:{set(e){console.log(e),e?this.$refs["xTable"]&&this.$refs["xTable"].toggleAllSelection():this.tableData.forEach((e=>{this.$refs["xTable"]&&this.$refs["xTable"].toggleRowSelection(e,!1)}))},get(){const e=this.selectedList.map((e=>e[this.rowKey])),t=this.tableData.every((t=>e.includes(t[this.rowKey])));return t}},isIndeterminate(){return!this.isCheckAll&&this.selectedList.length>0}},methods:{resetSearch(e){"blogger"==e.scope&&(this.searchVal=""),"isRead"==e.scope&&(this.readRadio=null),"isReply"==e.scope&&(this.replyRadio=null)},confirmSearch(e){document.body.click();let t="blogger"==e.scope?this.searchVal:"isReply"==e.scope?this.replyRadio:"isRead"==e.scope?this.readRadio:"";this.$emit("confirmSearch",t,e.scope),this.resetSearch()},selectionChange(e){this.selectedList=e,this.$emit("selectionChange",e)},toggleAllSelect(){this.isCheckAll?this.tableData.forEach((e=>{this.$refs["xTable"]&&this.$refs["xTable"].toggleRowSelection(e,!1)})):this.$refs["xTable"]&&this.$refs["xTable"].toggleAllSelection()},handleSizeChange(e){this.$emit("update:pageNum",1),this.$emit("update:pageSize",e),this.$emit("changeSize",{pageNum:1,pageSize:e})},handleCurrentChange(e){this.$emit("update:pageNum",e),this.$emit("changeCurrent",{pageNum:e,pageSize:this.pageSize})},rowClick(e,t,n){this.$emit("rowClick",e,t,n)},sortChange(e){const t=this.fulColumnConfig.find((t=>t.prop===e.column.property));t&&t.sortable&&this.$emit("sort",e,t.sortable)},handleBtnClick(e){this.$emit("handleBtnClick",e,this.selectedList)},getRowKeys(e){return e[this.rowKey]},removeChoose(){this.tableData.forEach((e=>{this.$refs["xTable"]&&this.$refs["xTable"].toggleRowSelection(e,!1)}))},handleAlgin(e="left"){return"left"===e?"flex-start":"center"===e?"center":"right"===e?"flex-end":void 0}},components:{TableColumn:RIe,Empty:sd,Tooltip:Xc}},VIe=zIe,HIe=or(VIe,DIe,AIe,!1,null,"73077fed",null),UIe=HIe.exports,WIe={props:{isShowProductFormDrawer:{type:Boolean,default:!1},currentEnv:{type:String,default:"https://www.wotohub.com"}},components:{WTable:UIe},data(){return{isShowDrawer:this.isShowProductFormDrawer,tableColumnConfig:[{label:"",scope:"radio",width:"60"},{label:this.$i18n.t("productForm.creation_time"),prop:"gmtCreate",sortable:1,minWidth:120},{label:this.$i18n.t("productForm.selection_form_name"),prop:"name",showOverflowTooltip:!0,minWidth:120},{label:this.$i18n.t("productForm.number_of_product_cards"),prop:"cardNums",minWidth:100},{label:this.$i18n.t("productForm.viewing_frequency"),scope:"viewNum"},{label:this.$i18n.t("productForm.update_time"),prop:"gmtModify",sortable:2,minWidth:120},{label:this.$i18n.t("productForm.operation"),scope:"operate"}],productFormTableData:[],loading:!1,total:0,queryParams:{currentPage:1,pageSize:20,createTimeAsc:!1,modifyTimeAsc:null},tableHeight:js(204),cellRadio:"",productFormLink:""}},created(){this.getProductCardFormList()},methods:{closeProductFormDrawer(){this.$emit("closeProductFormDrawer")},getProductCardFormList(){this.loading=!0,AOe(this.queryParams).then((e=>{"0"===e.code?(this.productFormTableData=e.data.rows,this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})})).finally((()=>{this.loading=!1}))},tableSort({order:e},t){this.queryParams.createTimeAsc=!!e,this.queryParams.modifyTimeAsc=!!e,this.queryParams.currentPage=1,this.getProductCardFormList()},lookRow(e){window.open(`${this.currentEnv}/productFormDetail?id=${e.id}`,"_blank")},changeRadio(e){this.productFormLink=`${this.currentEnv}/shareForm?id=${e}`},setProductFormLink(){this.$emit("setProductFormLink",this.productFormLink),this.closeProductFormDrawer()}}},qIe=WIe,YIe=or(qIe,kIe,EIe,!1,null,"9c6bea00",null),GIe=YIe.exports,KIe=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{title:e.$i18n.t("productCard.add_product_card"),visible:e.showDrawer,size:"900px","custom-class":"productcard-drawer"},on:{"update:visible":function(t){e.showDrawer=t},close:e.closeProductCardDrawer}},[t("div",{staticClass:"card-search-wrap"},[t("div",{staticClass:"card-search-item"},[t("span",[e._v(e._s(e.$i18n.t("product.product_name")))]),t("el-select",{staticClass:"normal-select",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18n.t("common.please_select"),filterable:"","popper-class":"select-popper"},model:{value:e.productName,callback:function(t){e.productName=t},expression:"productName"}},e._l(e.productOpts,(function(e,n){return t("el-option",{key:n,attrs:{label:e.productName,value:e.shopifyProductId}})})),1)],1),t("div",{staticClass:"card-search-item"},[t("span",[e._v(e._s(e.$i18n.t("newProduct.product_remarks")))]),t("el-input",{model:{value:e.queryParams.remark,callback:function(t){e.$set(e.queryParams,"remark",t)},expression:"queryParams.remark"}})],1),t("div",{staticClass:"card-search-btn"},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.searchEvt}},[e._v(e._s(e.$i18n.t("newProduct.query")))]),t("el-button",{attrs:{size:"small",type:"info"},on:{click:e.resetEvt}},[e._v(e._s(e.$i18n.t("newProduct.reset")))])],1)]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"card-body"},e._l(e.cardsArr,(function(n){return t("div",{key:n.id,staticClass:"cards-wrap",class:{selected:e.isSelected(n)},on:{click:function(t){return e.toggleSelection(n)}}},[t("div",{staticClass:"card-item"},[t("div",{staticClass:"card-img"},[t("el-image",{staticClass:"product-img",attrs:{src:n.imageUrls[0]}}),t("div",{staticClass:"card-tags"},[e._l(n.promotePlatformType,(function(n,r){return t("div",{key:"platform"+r,staticClass:"platform-img"},[0==n?t("img",{attrs:{src:i(4321)}}):e._e(),1==n?t("img",{attrs:{src:i(634)}}):e._e(),2==n?t("img",{attrs:{src:i(7682)}}):e._e()])})),e._l(n.typeName3,(function(n,i){return t("span",{key:"typeName"+i,staticClass:"span-item"},[e._v(" "+e._s(n)+" ")])})),n.typeName.length>3?t("el-tooltip",{attrs:{placement:"top","popper-class":"wt-tooltip tooltip-tips type-tooltip"}},[t("div",{staticClass:"content",attrs:{slot:"content"},slot:"content"},e._l(n.typeName,(function(n,i){return t("span",{key:"allTypeName"+i,staticClass:"type-item"},[e._v(e._s(n))])})),0),t("span",{staticClass:"span-item more-types"},[e._v("···")])]):e._e()],2),e.isSelected(n)?t("div",{staticClass:"checkbox"},[t("img",{attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/selected.svg"}})]):e._e()],1),t("p",{staticClass:"card-name"},[e._v(" "+e._s(n.nameEn||"—")+" ")]),t("p",{staticClass:"card-price"},[e._v(" Price:"+e._s(e._f("getMoneySymbol")(n.currency))+e._s(n.priceDollar||"—")+" ")]),t("p",{staticClass:"card-commission"},[e._v(" Commission rate:"+e._s(n.commissionPercent||"—")+"% ")]),t("div",{staticClass:"card-apply",class:{"only-btn":null==n.commissionPercent||0==n.commissionPercent}},[null!==n.commissionPercent&&0!==n.commissionPercent?t("p",{staticClass:"money"},[t("span",[e._v(e._s(e._f("getMoneySymbol")(n.currency))+e._s((n.priceDollar*(n.commissionPercent/100)).toFixed(2)))]),e._v(" /per orderd item ")]):e._e(),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return t.stopPropagation(),e.skipApply(n.id)}}},[e._v("Apply")])],1)]),t("div",{staticClass:"cark-views"},[t("p",[e._v(e._s(e.$i18n.t("newProduct.productId"))+":"+e._s(n.id))]),t("p",[e._v(e._s(e.$i18n.t("newProduct.product_name"))+":"+e._s(n.nameZh))]),t("p",[e._v(e._s(e.$i18n.t("newProduct.product_remarks"))+":"+e._s(n.remark))])])])})),0),t("el-pagination",{attrs:{"hide-on-single-page":0==e.total,total:e.total,"page-size":e.queryParams.pageSize,"current-page":e.queryParams.currentPage,layout:"total,prev, pager, next,jumper"},on:{"current-change":e.handleCurrentChange}}),t("div",{staticClass:"footer-btn"},[t("el-button",{on:{click:e.closeProductCardDrawer}},[e._v(e._s(e.$i18n.t("newProduct.Cancel")))]),t("el-button",{attrs:{type:"primary",disabled:e.isFinished,loading:e.isFinished},on:{click:e.saveEvt}},[e._v(e._s(e.$i18n.t("newProduct.preservation")))])],1)],1)},XIe=[],ZIe={props:{isShowProductCardDrawer:{type:Boolean,default:!1},formName:{type:String,default:""}},data(){return{queryParams:{productName:"",remark:"",pageSize:6,currentPage:1,timeAsc:!1},productOpts:[],cardsArr:[],selectedItems:[],total:0,isFinished:!1,showDrawer:this.isShowProductCardDrawer,productTypeOpts:Object.freeze(hIe),loading:!1,productName:""}},created(){this.getProductOpts(),this.getProductCardFormQuery()},methods:{searchEvt(){this.queryParams.currentPage=1,this.getProductCardFormQuery()},resetEvt(){this.queryParams=this.$options.data().queryParams,this.productName="",this.getProductCardFormQuery()},getProductCardFormQuery(){this.loading=!0,this.queryParams.formId=this.$route.query.id,this.productOpts.map((e=>{e.shopifyProductId==this.productName&&(this.queryParams.productName=e.productName)})),SOe({...Ls(this.queryParams)}).then((e=>{"0"===e.code?(this.cardsArr=e.data.rows,e.data.rows.forEach((e=>{let t=[];t=3!==e.source?e.type.map((e=>{const t=this.productTypeOpts.find((t=>t.value===e))?.label;return t})):e.type.map((e=>e));let n=t.slice();e.typeName3=n.splice(0,3),e.typeName=t})),this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})})).finally((()=>{this.loading=!1}))},handleCurrentChange(e){this.queryParams.currentPage=e,this.getProductCardFormQuery()},getProductOpts(){EOe().then((e=>{"0"===e.code?this.productOpts=e.data:this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},closeProductCardDrawer(){this.$emit("closeProductCardDrawer")},saveEvt(){0!=this.selectedItems.length?(this.$emit("addProductCard",this.selectedItems),this.closeProductCardDrawer()):this.$message({type:"warning",message:"请点击选择要添加的商品卡",customClass:"custom-message"})},skipApply(e){DOe({productId:e}).then((e=>{"0"===e.code?window.open(e.data,"_blank"):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},isSelected(e){return this.selectedItems.includes(e.id)},toggleSelection(e){const t=e.id,n=this.selectedItems.indexOf(t);n>-1?this.selectedItems.splice(n,1):this.selectedItems.push(t)}}},JIe=ZIe,QIe=or(JIe,KIe,XIe,!1,null,"65fe80bc",null),ePe=QIe.exports,tPe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"content-box"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isMultiReply,expression:"!isMultiReply"}],staticClass:"form-item mb12"},[t("span",[e._v(e._s(e.$i18n.t("writeMail.subject")))]),t("div",{staticClass:"subject-wrap"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.subject,expression:"form.subject"}],ref:"subjectIpt",staticClass:"subject-input",attrs:{type:"text"},domProps:{value:e.form.subject},on:{focus:function(t){e.isFocusSubject=!0},input:function(t){t.target.composing||e.$set(e.form,"subject",t.target.value)}}})])]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isMultiReply,expression:"!isMultiReply"}],staticClass:"form-item mb4"},[t("span",{staticClass:"attachment-file"},[e._v(e._s(e.$t("edm5.v56"))+" "),t("Tooltip",{staticClass:"attachment-tooltip",attrs:{content:e.$t("edm5.v235"),isShowRule:!1}})],1),t("div",{staticClass:"attachment-list"},[t("div",{staticClass:"file-box"},[e._l(e.form.fileList,(function(n,i){return t("div",{key:n.link,staticClass:"file"},[t("i",{staticClass:"dss-iconfont icon-file-3"}),t("div",{staticClass:"name"},[t("span",{staticClass:"file-name"},[e._v(e._s(n.name))]),t("span",{staticClass:"file-size"},[e._v(" ("+e._s(n.size<1024?n.size+"B":n.size<1048576?parseInt(n.size/1024)+"KB":parseInt(n.size/1024/1024)+"MB")+")")])]),t("i",{staticClass:"dss-iconfont icon-close",on:{click:function(t){return e.delFile(i)}}})])})),t("div",{staticClass:"add",on:{click:e.clickUpload}},[t("i",{staticClass:"dss-iconfont icon-add2"}),t("span",[e._v(e._s(e.$t("edm5.v236")))])])],2)])]),t("div",{staticClass:"form-item mb16"},[t("span",[e._v(e._s(e.$i18n.t("writeMail.content")))]),t("div",{staticClass:"form-editor",on:{click:function(t){e.isFocusSubject=!1}}},[t("editor",{ref:"content",staticClass:"mail-editor",attrs:{height:e.editorHeight,theme:"light"},on:{onload:e.editorOnload}}),t("div",{staticClass:"editor-opt-bar"},["aiBar"===e.showBar?t("div",{staticClass:"ai-bar"},[t("img",{staticClass:"bar-icon",attrs:{src:i(7346),alt:""}}),t("span",{staticClass:"bar-name"},[e._v(e._s(e.$t("edm5.v237")))]),t("div",{staticClass:"bar-items"},e._l(e.aiBarItems,(function(n,i){return t("span",{key:i,staticClass:"item",on:{click:function(t){return e.toOpenAiOptimize(n.type)}}},[e._v(e._s(n.name))])})),0),t("div",{staticClass:"point"},[t("span",{staticClass:"txt"},[e._v(e._s(e.$t("edm5.v17"))+e._s(e.aiPoint))]),t("Tooltip",{attrs:{content:e.$t("edm5.v18"),isShowRule:!0}})],1),t("i",{staticClass:"dss-iconfont icon-close",on:{click:e.toCloseBar}})]):e._e(),"variableBar"===e.showBar?t("div",{staticClass:"variable-bar"},[t("i",{staticClass:"dss-iconfont icon-temp1"}),t("span",{staticClass:"bar-name"},[e._v(e._s(e.$t("edm5.v71")))]),t("Tooltip",{attrs:{content:e.$i18n.t("writeMail.infoPop"),isShowRule:!1},nativeOn:{click:function(t){e.showTemplateUsage=!0}}}),t("div",{staticClass:"bar-items"},[t("el-popover",{attrs:{trigger:"hover",width:"80",placement:"top-start","popper-class":"variable-popover"}},[t("div",{staticClass:"pop-item",on:{click:function(t){return e.setVariable(0)}}},[e._v(" "+e._s(e.$i18n.t("writeMail.channel_name"))+" ")]),t("div",{staticClass:"pop-item",on:{click:function(t){return e.setVariable(3)}}},[e._v(" "+e._s(e.$i18n.t("writeMail.channel_Id"))+" ")]),t("span",{staticClass:"item",staticStyle:{display:"inline-block"},attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.$t("edm5.v239")))])]),t("span",{staticClass:"item",on:{click:function(t){return e.setVariable(1)}}},[e._v(" "+e._s(e.$i18n.t("writeMail.fans_num"))+" ")]),t("span",{staticClass:"item",on:{click:function(t){return e.setVariable(2)}}},[e._v(" "+e._s(e.$i18n.t("writeMail.channel_link"))+" ")])],1),t("i",{staticClass:"dss-iconfont icon-close",on:{click:e.toCloseBar}})],1):e._e()]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isAutoSave,expression:"isAutoSave"}],staticClass:"save-icon"},[e.isAutoSaving?t("i",{staticClass:"el-icon-refresh-right"}):e._e(),e.isAutoSaved?t("img",{attrs:{src:i(3475)}}):e._e()])],1)]),t("mail-upload",{attrs:{isShow:e.isShowUpload,fileMaxNum:10-e.form.fileList.length,fileMaxSize:200-e.totalSize},on:{onSuccess:e.onSuccess,close:e.handleOnClose}}),e.showTemplateUsage?t("template-usage",{attrs:{isShow:e.showTemplateUsage},on:{closeTemplateUsage:function(t){e.showTemplateUsage=!1}}}):e._e()],1)},nPe=[],iPe=(i(8872),function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{visible:e.isShow,rendered:"","before-close":e.close,"close-on-click-modal":!1,title:e.$t("uploadDialog.title"),width:"550px",top:"50px","custom-class":"edm-upload-dialog"},on:{"update:visible":function(t){e.isShow=t},open:function(t){return e.open()}}},[t("div",{staticClass:"container-fileUpload"},[t("el-button",{ref:"btn-upload",staticClass:"btn-upload",attrs:{type:"primary",disabled:e.isUploading},on:{click:e.handleSelectFile}},[t("i",{staticClass:"el-icon-upload"}),e._v(" "+e._s(e.$t("uploadDialog.btnUpload")))]),t("div",{staticClass:"upload-select"},[t("input",{ref:"upload",staticClass:"upload",attrs:{type:"file",multiple:"",id:"uploads"},on:{change:e.fileChange}})]),t("h2",{staticClass:"txt-tip",staticStyle:{"margin-left":"8px"}},[e._v(" * "+e._s(e.$t("uploadDialog.tip"))+" ")]),t("div",{staticClass:"files"},[0===e.files.length?t("el-empty",{attrs:{"image-size":200}}):e._e(),e._l(e.files,(function(n,i){return t("div",{key:i,staticClass:"file"},[t("div",{staticClass:"file-name"},[t("span",{attrs:{title:n.file.name}},[e._v(e._s(n.file.name)+" ("+e._s(n.file.size<1024?n.file.size+"B":n.file.size<1048576?parseInt(n.file.size/1024)+"KB":parseInt(n.file.size/1024/1024)+"MB")+")")]),0===n.percentage?t("span",{staticClass:"del-icon",on:{click:function(t){return e.del(i)}}},[e._v(" "),t("i",{staticClass:"el-icon-delete"})]):e._e()]),t("div",[n.percentage>0?t("div",{staticClass:"progress"},[t("el-progress",{attrs:{"text-inside":!1,"stroke-width":7,format:e.format,percentage:n.percentage}}),t("div",{staticClass:"progress-percent"},[t("span",{style:100===n.percentage&&"display:none"},[e._v(e._s(n.percentage)+"%")]),100===n.percentage?t("i",{staticClass:"el-icon-circle-check color"}):e._e()])],1):e._e()])])}))],2)],1),t("div",{staticClass:"popup-foot"},[t("div",{staticClass:"txt-tip"},[e._v(" * "+e._s(e.$t("uploadDialog.tip1"))),t("span",{staticStyle:{color:"#1a89fa"}},[e._v(e._s(parseInt(e.fileMaxSize))+"MB")]),e._v(","+e._s(e.$t("uploadDialog.tip2"))),t("span",{staticStyle:{color:"#1a89fa"}},[e._v(e._s(e.fileMaxNum))]),"zh"===e.$i18n.locale||"zh-CN"===e.$i18n.locale?t("span",[e._v("个")]):e._e()]),t("div",{staticClass:"footer-btns"},[t("el-button",{staticClass:"btnOk",attrs:{type:"primary",loading:e.btnloading},on:{click:e.handleOnUpload}},[e._v(e._s(e.$t("uploadDialog.btnOk")))]),e.btnloading?e._e():t("el-button",{staticClass:"btnOk",attrs:{type:"primary"},on:{click:e.handleOnReset}},[e._v(e._s(e.$t("uploadDialog.btnClear")))])],1)])])],1)}),rPe=[],oPe={name:"edm-upload",props:{isShow:{default:!1,type:Boolean},fileMaxNum:{default:10,type:Number},fileMaxSize:{default:200,type:Number}},data(){return{showFile:!0,files:[],fileList:[],btnloading:!1,isUploading:!1}},methods:{open(){this.files=[],this.fileList=[]},close(){this.btnloading&&this.$message.warning(this.$t("uploadDialog.wait")),this.$emit("close",this.btnloading)},handleSelectFile(){this.showFile=!0;let e=this.$refs["upload"];e&&e.click()},format(e){return""},fileChange(e){let t=e.target.files;if(t.length+this.files.length>this.fileMaxNum)this.$message.warning(this.$t("uploadDialog.maxNum"));else{if(t.length>0)for(let e=0;e<t.length;e++){let n=this.files.find((n=>n.file.name===t[e].name));if(!n){let n=0;if(this.files.forEach((e=>{n+=e.file.size/1024/1024})),n+t[e].size/1024/1024>this.fileMaxSize)return void this.$message.warning(this.$t("uploadDialog.maxSize"));this.files.push({file:t[e],percentage:0})}}document.getElementById("uploads").value=""}},handleOnReset(){this.files=[]},del(e){this.files.splice(e,1)},handleOnUpload(){if(0===this.files.length)return void this.$message.warning(this.$t("uploadDialog.empty"));this.btnloading=!0;let e=[];if(this.files.length>0)for(let n=0;n<this.files.length;n++)e.push({fileName:this.files[n].file.name,fileSize:this.files[n].file.size});let t=[];e.map((e=>{t.push(qa(e))})),this.isUploading=!0,Promise.all(t).then((e=>e)).then((e=>{console.log("ossparams",e);let t=[],n=this;e.map(((e,i)=>{let r=new FormData;r.append("key",e.data.objectName),r.append("success_action_status","200"),r.append("x-oss-object-acl","public-read"),r.append("OSSAccessKeyId",e.data.accessKeyId),r.append("policy",e.data.uploadPolicy),r.append("signature",e.data.uploadSignature),r.append("success_action_status","200"),r.append("file",n.files[i].file),t.push(Ga(e.data.uploadHost,r,(e=>{e.upload&&n.files[i]&&n.files[i].percentage&&(n.files[i].percentage=Math.floor(100*e.progress))}))),this.fileList.push({uuid:this.$md5(n.files[i].file.name),name:n.files[i].file.name,link:e.data.uploadHost+"/"+encodeURI(e.data.objectName),size:n.files[i].file.size,oss:e.data})})),console.log("合并信息",this.fileList),Promise.all(t).then((()=>{this.btnloading=!1,this.$message.success(this.$t("uploadDialog.success")),this.isUploading=!1,this.$emit("onSuccess",this.fileList),this.files=[],this.fileList=[]}))}))}}},aPe=oPe,sPe=or(aPe,iPe,rPe,!1,null,"27a1758c",null),lPe=sPe.exports,cPe=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.isShow,title:e.$i18n.t("checkMail.tip17"),width:"620px","before-close":e.closeTemplateUsage,"custom-class":"usage-dialog"},on:{"update:visible":function(t){e.isShow=t}}},[t("p",{staticClass:"tip"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip18"))+" ")]),t("img",{staticClass:"usage-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/usage.png"}})])},uPe=[],dPe={props:{isShow:{default:!1,type:Boolean}},data(){return{}},methods:{closeTemplateUsage(){this.$emit("closeTemplateUsage")}}},hPe=dPe,pPe=or(hPe,cPe,uPe,!1,null,null,null),fPe=pPe.exports,mPe={props:{isMultiReply:{type:Boolean,default:!1},isDraft:{type:Boolean,default:!1},isReply:{type:Boolean,default:!1},isOuterBox:{type:Boolean,default:!1},form:{type:Object,default:{id:"",subject:"",fileList:[],content:"",active:!0,isAiContent:!1,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}},replyInfo:{type:Object,default:()=>{}},editorHeight:{type:Number,default:350},aiPoint:{type:Number,default:0}},components:{mailUpload:lPe,templateUsage:fPe,Editor:cOe,Tooltip:Xc},data(){return{isFocusSubject:!1,totalSize:0,isShowUpload:!1,showTemplateUsage:!1,isAutoSave:!1,isAutoSaving:!1,isAutoSaved:!1,replyHtml:"",editorRef:null,editorReady:!1,aiBarItems:[{name:this.$t("edm5.v265"),type:"1"},{name:this.$t("edm5.v266"),type:"2"},{name:this.$t("edm5.v267"),type:"3"},{name:this.$t("edm5.v268"),type:"4"},{name:this.$t("edm5.v269"),type:"5"}],showBar:"",pageFrom:this.$route.query.pageFrom||""}},computed:{isAiInvitePlanContentReady(){return this.editorReady&&!!this.form.content&&"AIinvitePlan"===this.pageFrom&&!this.form.isAiContent},isNormalContentReady(){return this.editorReady&&!!this.form.content&&!this.isDraft&&!this.isOuterBox&&!this.form.isAiContent&&"AIinvitePlan"!=this.pageFrom},isDraftContentReady(){return this.editorReady&&!!this.form.content&&!!this.isDraft&&!this.form.isAiContent},isAiContentReady(){return this.editorReady&&!!this.form.content&&!!this.form.isAiContent},isOuterBoxContentReady(){return this.editorReady&&!!this.form.content&&!!this.isOuterBox},isFileReady(){return this.form.fileList&&Array.isArray(this.form.fileList)&&this.form.fileList.length>0},isReplyContentReady(){return this.editorReady&&this.replyInfo&&this.isReply&&Object.keys(this.replyInfo).length>0}},watch:{isAiInvitePlanContentReady(e){e&&this.setInitDraftContent()},isNormalContentReady(e){console.log("normal",e),e&&this.setContent(this.form.content)},isDraftContentReady(e){console.log("Draft",e),e&&this.setInitDraftContent()},isOuterBoxContentReady(e){e&&this.setInitOuterBoxContent()},isReplyContentReady(e){e&&this.setInitReply()},isFileReady(e){e&&this.setInitFileSize()},isAiContentReady(e){console.log("ai",e),e&&this.setContent(this.form.content)}},created(){},mounted(){},methods:{editorOnload(){this.editorRef=this.$refs.content,this.editorReady=!0,this.initEditor()},initEditor(){this.$refs.content&&(this.form.getContent=this.getContent,this.form.setContent=this.setContent,this.form.addEditContent=this.addEditContent,this.form.setReplyDom=this.setReplyDom,this.form.getReplyHtml=this.getReplyHtml,this.form.getTextContent=this.getTextContent,this.form.isEmpty=this.getIsEmpty,this.form.setEditorBar=this.setEditorBar,this.setInitEmail())},getContent(){return this.editorRef.getContent()},setContent(e){let t=e;e&&e.trim&&(t=e.trim()),this.editorRef.setContent(t)},addEditContent(e){this.editorRef.addEditContent(e)},getTextContent(){return this.editorRef.getTextContent()},getReplyHtml(){return this.replyHtml},getIsEmpty(){return this.editorRef.isEmpty()},setEditorBar(e){this.showBar=e},clickUpload(){10!==this.form.fileList.length&&this.totalSize<200?this.isShowUpload=!0:this.$message({type:"warning",message:`${this.$i18n.t("writeMail.attachment_length_limit")}${this.$i18n.t("writeMail.attachment_size_limit")}`})},onSuccess(e){e.forEach((e=>{this.totalSize+=e.size/1024/1024,this.form.fileList.push({uuid:e.uuid,name:e.name,link:e.link,size:e.size})})),this.isShowUpload=!1},delFile(e){this.form.fileList.splice(e,1),0===this.form.fileList.length&&(this.totalSize=0),0!==this.form.fileList.length&&this.form.fileList.length<=10&&this.computeTotalSize()},handleOnClose(e){this.isShowUpload=!!e},setVariable(e){let t="";if(this.isFocusSubject){switch(e){case 0:t="{$channelName}";break;case 1:t="{$subscriber}";break;case 2:t="{$link}";break;case 3:t="{$channelId}";break}const n=this.$refs.subjectIpt.selectionStart,i=this.form.subject.slice(0,n)+t+this.form.subject.slice(n);this.form.subject=i,this.isFocusSubject=!1}else{switch(e){case 0:t="{$channelName}";break;case 1:t="{$subscriber}";break;case 2:t="{$link}";break;case 3:t="{$channelId}";break}this.editorRef.setFocus(),this.editorRef.insertEditContent(t)}},setInitEmail(){},setInitDraftContent(){const e=this.form.content;if(!e)return!1;const t=e.indexOf("<product-card"),n=e.indexOf("</product-card>");let i="";i=t>-1&&n>-1?e.slice(0,t)+e.slice(n+15):e;const r=i.split("&nbsp;&nbsp;&nbsp;");if(r.length>1){this.setContent(r[0]);const e=this.$refs.content.$el;if(e){const t=e.getElementsByClassName("w-e-scroll")[0],n=t.firstChild;n.setAttribute("class","mail-w");const i=document.createElement("div");i.innerHTML=r[1],t.appendChild(i),this.replyHtml=r[1]}}else this.setContent(i)},setInitOuterBoxContent(){const e=this.form.content;if(!e)return!1;const t=e.indexOf("<product-card"),n=e.indexOf("</product-card>"),i=e.slice(0,t)+e.slice(n+15),r=i.split("&nbsp;&nbsp;&nbsp;");if(r.length>1){this.setContent(r[0]);const e=this.$refs.content.$el;if(e){const t=e.getElementsByClassName("w-e-scroll")[0],n=t.firstChild;n.setAttribute("class","mail-w");const i=document.createElement("div");i.innerHTML=r[1],t.appendChild(i),this.replyHtml=r[1]}}else this.setContent(i)},setInitReply(){const e=this.$refs.content.$el;if(e){let n=e.getElementsByClassName("w-e-scroll")[0];var t=document.createElement("div");let i="<div style='color:#333'>";if(i+=`<p>------ ${this.$t("inboxDetail.omail")} ------<p>`,i+="<div style='background:#f5f5f5;padding:20px !important';overflow-x:auto;>",i+="<div style='margin-bottom:10px;!important'>",i+=`<span> ${this.$t("inboxDetail.to")}:</span>`,i+=`<span>${Fs(this.replyInfo.bloggerName)}</span>`,i+="</div>",i+="<div style='margin-bottom:10px;!important'>",i+=`<span style='display:inline-block;width:65px;'> ${this.$t("inboxDetail.subject")}:</span>`,i+=`<span>${this.replyInfo.subject}</span>`,i+="</div>",i+="<div style='display:flex'>",i+=`<span style='display:block;width:65px;margin: 0px;white-space:nowrap;'> ${this.$t("inboxDetail.content")}:</span>`,i+=`<div>${this.replyInfo.content}</div>`,i+="</div>",i+="<div>",i+="</div>",i=this.filterTag(i),t.innerHTML=i,this.replyHtml=i,n.appendChild(t),this.$route.query.isSimple){const e=localStorage.getItem("simpleWiteTxt")||"";this.setContent(e)}n.firstChild&&n.firstChild.setAttribute("class","mail-w")}},setInitFileSize(){const e=this.form.fileList;e&&Array.isArray(e)&&e.length>0&&(this.totalSize=this.form.fileList.reduce(((e,t)=>e+t.size/1024/1024),0))},filterTag(e){return e.replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>|<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"")},toCloseBar(){this.showBar=""},toOpenAiOptimize(e){this.$emit("handleOptimize",e)}}},gPe=mPe,vPe=or(gPe,tPe,nPe,!1,null,"a1e6650c",null),yPe=vPe.exports,bPe=function(){var e=this,t=e._self._c;return t("el-drawer",{staticClass:"ai-side-sign",attrs:{title:e.$t("edm5.v73"),"custom-class":"ai-side-sign-drawer",visible:e.visible,"close-on-press-escape":!1,direction:"rtl",size:"560px","append-to-body":!0},on:{close:e.drawerClose}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"main-box"},[t("div",{staticClass:"search-part"},[t("el-input",{staticClass:"search-input",attrs:{placeholder:e.$t("edm5.v256"),clearable:""},on:{clear:()=>{e.searchForm.currentPage=1,e.init()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(()=>{e.searchForm.currentPage=1,e.init()}).apply(null,arguments)}},model:{value:e.searchForm.content,callback:function(t){e.$set(e.searchForm,"content",t)},expression:"searchForm.content"}},[t("i",{staticClass:"dss-iconfont icon-search2",attrs:{slot:"suffix"},on:{click:()=>{e.searchForm.currentPage=1,e.init()}},slot:"suffix"})]),t("el-button",{staticClass:"add-sign",class:{"add-sign-en":"en"===e.language},on:{click:function(t){e.isShowSet=!0}}},[t("div",{staticClass:"warp"},[t("i",{staticClass:"dss-iconfont icon-add2"}),t("span",{staticClass:"text"},[e._v(e._s(e.$t("edm5.v257")))])])])],1),t("div",{staticClass:"content-part"},e._l(e.tableData,(function(n,i){return t("div",{key:n.id,staticClass:"part-item"},[t("div",{staticClass:"item-top"},[t("span",{staticClass:"left",domProps:{innerHTML:e._s(n.content)}}),t("span",{staticClass:"right",on:{click:function(t){return e.showSetSign(n)}}},[e._v(" "+e._s(e.$t("edm5.v258"))+" "),t("i",{staticClass:"dss-iconfont icon-arrow"})])]),t("div",{staticClass:"item-bottom"},[t("span",{staticClass:"left"},[e._v(e._s(e.$t("edm5.v259"))+e._s(n.gmtModify))]),t("span",{staticClass:"right"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.del(n.id)}}},[e._v(e._s(e.$t("edm5.v260")))]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.setMailSign(n.content)}}},[e._v(e._s(e.$t("edm5.v261")))])],1)])])})),0)]),t("div",{staticClass:"pagination-part"},[t("el-pagination",{attrs:{"current-page":e.searchForm.currentPage,total:e.tableTotal,"page-size":e.searchForm.pageSize,"pager-count":5,small:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":e.changePage}})],1),t("el-drawer",{attrs:{visible:e.isShowSet,"with-header":!1,"wrapper-closable":!1,"append-to-body":"",size:"780px"},on:{"update:visible":function(t){e.isShowSet=t}}},[e.isShowSet?t("set-sign",{attrs:{id:e.setId,content:e.detailContent},on:{init:function(t){e.searchForm.currentPage=1,e.init()},close:function(t){e.setId=0,e.isShowSet=!1}}}):e._e()],1)],1)},wPe=[];async function _Pe(e){let t=await Ta("/edm/sign/selSigns",e);return t}async function CPe(e){let t=await Pa("/edm/sign/addSign",e);return t}async function xPe(e){let t=await $a("/edm/sign/editSign",e);return t}async function SPe(e){let t=await Oa(`/edm/sign/delSign/${e.id}`);return t}var kPe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"drawer"},[t("div",{staticClass:"drawer-head"},[t("h3",[e._v(e._s(e.id?`${e.$i18n.t("signature.edite_sign")}`:`${e.$i18n.t("signature.create_sign")}`))]),t("button",{staticClass:"close-btn",on:{click:function(t){return e.close()}}},[t("i",{staticClass:"dss-iconfont icon-close"})])]),t("div",{staticClass:"drawer-body hidden-scrollbar"},[t("div",{staticClass:"form-editor mb24"},[t("span",[e._v(e._s(e.$i18n.t("writeMail.signature")))]),t("div",{staticClass:"form-editor-wrap"},[t("editor",{ref:"signContent",attrs:{height:400,theme:"light"}})],1)])]),t("div",{staticClass:"drawer-foot"},[t("button",{staticClass:"drawer-btn drawer-btn-linear mr24",on:{click:function(t){return e.close()}}},[e._v(" "+e._s(e.$i18n.t("common.cancle"))+" ")]),t("button",{staticClass:"drawer-btn drawer-btn-face",attrs:{disabled:e.isSubmit},on:{click:e.submit}},[e.isSubmit?t("i",{staticClass:"el-icon-loading"}):e._e(),e._v(" "+e._s(e.$i18n.t("common.confirm"))+" ")])])])},EPe=[],DPe={components:{Editor:cOe},props:{id:{default:0,type:Number},content:{type:String,default:""}},data(){return{isSubmit:!1}},created(){this.id&&this.init()},methods:{init(){setTimeout((()=>{this.$refs.signContent.setContent(this.content)}),100)},submit(){if(this.$refs.signContent.isEmpty())return void this.$message({type:"warning",message:`${this.$i18n.t("signature.sign_not_empty")}`});const e={content:this.$refs.signContent.getContent()};this.isSubmit=!0,this.id?(e.id=this.id,xPe(e).then((e=>{0==e.code?(this.isSubmit=!1,this.$emit("init"),this.close(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`})):this.$message.error(e.message)}))):CPe(e).then((e=>{0==e.code?(this.isSubmit=!1,this.$emit("init"),this.close(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`})):this.$message.error(e.message)}))},close(){this.$emit("close")}}},APe=DPe,TPe=or(APe,kPe,EPe,!1,null,"b369729e",null),OPe=TPe.exports,IPe={components:{SetSign:OPe},props:{visible:{type:Boolean,default:!1}},data(){return{searchForm:{content:"",currentPage:1,pageSize:5},tableData:[],tableTotal:0,isShowSet:!1,setId:0,detailContent:"",loading:!1,language:Wi.get("language")||"zh"}},created(){this.init()},methods:{drawerClose(){this.$emit("update:visible",!1),this.$emit("closed")},init(){this.loading=!0,_Pe(this.searchForm).then((e=>{this.loading=!1,0==e.code?(this.tableData=e.data.rows,this.tableTotal=e.data.total):this.$message.error(e.message)}))},changePage(e){this.searchForm.currentPage=e,this.init()},del(e){this.$confirm(`${this.$i18n.t("signature.confirm_del")}`,"",{confirmButtonClass:"confirm_del"}).then((()=>{SPe({id:e}).then((e=>{0==e.code?(this.init(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`,duration:1500})):this.$message.error(e.message)}))})).catch((()=>{}))},setMailSign(e){this.$emit("setMailSign",e)},showSetSign(e){this.setId=e.id,this.detailContent=e.content,this.isShowSet=!0}}},PPe=IPe,$Pe=or(PPe,bPe,wPe,!1,null,"104128f9",null),FPe=$Pe.exports,BPe=function(){var e=this,t=e._self._c;return t("el-drawer",{staticClass:"ai-side-template",attrs:{title:e.$t("edm5.v245"),"custom-class":"ai-side-template-drawer",visible:e.visible,"close-on-press-escape":!1,direction:"rtl",size:"800px","append-to-body":!0},on:{close:e.drawerClose}},[t("div",{staticClass:"title-tips",class:{"title-tips-en":"en"===e.language}},[e._v(e._s(e.$t("edm5.v246")))]),t("TemplateList",{attrs:{userId:e.userId},on:{setMailTemplate:e.setMailTemplate}})],1)},MPe=[],NPe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[t("div",{staticClass:"inbox-search-wrap"},[t("el-row",{attrs:{gutter:12}},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"col-item col-select-input-item"},[t("el-select",{staticClass:"template_select",attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},on:{change:function(t){e.searchForm.scene="",e.contentInput=""}},slot:"prepend",model:{value:e.contentSelect,callback:function(t){e.contentSelect=t},expression:"contentSelect"}},[t("el-option",{attrs:{label:"模版名称",value:"1"}}),t("el-option",{attrs:{label:"应用场景",value:"2"}})],1),1==e.searchForm.type&&2==e.contentSelect?t("div",{staticClass:"temp_right"},[t("el-select",{attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},slot:"prepend",model:{value:e.searchForm.scene,callback:function(t){e.$set(e.searchForm,"scene",t)},expression:"searchForm.scene"}},e._l(e.templateSystemScene,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1):t("div",{staticClass:"temp_right"},[t("el-input",{staticClass:"col-input-select",attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.contentInput,callback:function(t){e.contentInput=t},expression:"contentInput"}})],1)],1)]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"col-item col-select-input-item"},[t("el-input",{staticClass:"col-input-select",attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.mailTitleInput,callback:function(t){e.mailTitleInput=t},expression:"mailTitleInput"}},[t("el-select",{attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},on:{change:function(t){e.mailTitleInput="",e.searchForm.content="",e.searchForm.mailSubject=""}},slot:"prepend",model:{value:e.mailTitleSelect,callback:function(t){e.mailTitleSelect=t},expression:"mailTitleSelect"}},[t("el-option",{attrs:{label:e.$t("edm2.mailEn6"),value:"1"}}),t("el-option",{attrs:{label:e.$t("edm2.mailEn7"),value:"2"}})],1)],1)],1)]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v("模版语言")]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:"",filterable:""},model:{value:e.searchForm.modelLanguage,callback:function(t){e.$set(e.searchForm,"modelLanguage",t)},expression:"searchForm.modelLanguage"}},e._l(e.language,(function(e){return t("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1)])],1),t("el-row",{staticStyle:{"margin-top":"8px"},attrs:{gutter:12}},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v("模板类型")]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},on:{change:e.modelTypeChange},model:{value:e.searchForm.type,callback:function(t){e.$set(e.searchForm,"type",t)},expression:"searchForm.type"}},[t("el-option",{key:1,attrs:{value:1,label:"系统模版"}}),t("el-option",{key:2,attrs:{value:2,label:"自定义模版"}})],1)],1)]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v("共享状态")]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.isShared,callback:function(t){e.$set(e.searchForm,"isShared",t)},expression:"searchForm.isShared"}},[t("el-option",{key:1,attrs:{value:!0,label:"公开"}}),t("el-option",{key:2,attrs:{value:!1,label:"私有"}})],1)],1)]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v("创建人")]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:"",filterable:""},model:{value:e.searchForm.userId,callback:function(t){e.$set(e.searchForm,"userId",t)},expression:"searchForm.userId"}},e._l(e.accountList,(function(e){return t("el-option",{key:e.userId,attrs:{label:e.userName,value:e.userId}})})),1)],1)])],1),t("el-row",{staticStyle:{"margin-top":"8px"},attrs:{gutter:20}},[t("el-col",{attrs:{span:24}},[t("div",{staticClass:"btns_box"},[t("div",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchForm.currentPage=1,e.getCardList()}}},[e._v(" "+e._s(e.$i18n.t("searchButton.search"))+" ")]),t("el-button",{on:{click:e.resetEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.reset"))+" ")])],1),t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticClass:"right_sort"},[t("el-dropdown",{attrs:{placement:"bottom"}},[t("div",{staticClass:"sort_btn"},[t("i",{staticClass:"dss-iconfont"},[e._v("")]),e._v(" "+e._s(e.sortConfig.find((t=>t.value==e.searchForm.searchSort)).label)+" ")]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.sortConfig,(function(n,i){return t("el-dropdown-item",{key:i,staticStyle:{"white-space":"nowrap"},attrs:{command:n.value},nativeOn:{click:function(t){return e.clickDropdownItem(n)}}},[e._v(e._s(n.label))])})),1)],1)],1)])])])],1)],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"temp_box"},[e.templateList.length?t("div",{staticClass:"temp_list"},e._l(e.templateList,(function(n){return t("div",{key:n.id,staticClass:"temp_item"},[t("div",{staticClass:"temp_content"},[t("div",{staticClass:"temp_top"},[t("div",{staticClass:"temp_title"},[t("div",{staticClass:"title_text"},[e._v(" "+e._s(n.templatesTitle)+" ")]),t("div",{staticClass:"more_icon",on:{click:function(t){return e.toDetail(n)}}},[e._v(" 详情"),t("i",{staticClass:"el-icon-arrow-right"})])]),t("div",{staticClass:"num_box"},[t("div",{staticClass:"lang_box"},[e._v(" 语言:"+e._s(e.getLangLabel(n.modelLanguage))+" ")]),n.attachmentNum?t("div",{staticClass:"lang_box"},[e._v(" 附件:"+e._s(n.attachmentNum)+"个 ")]):e._e(),n.productCardNum?t("div",{staticClass:"lang_box"},[e._v(" 商品卡:"+e._s(n.productCardNum)+"个 ")]):e._e()])]),t("div",{staticClass:"temp_middle"},[t("div",{staticClass:"nu_box"},[t("div",{staticClass:"nu_title"},[e._v("送达率")]),t("div",{staticClass:"nu_number"},[e._v(" "+e._s(null==n.deliveryRate?"-":n.deliveryRate+"%")+" ")])]),t("div",{staticClass:"nu_box"},[t("div",{staticClass:"nu_title"},[e._v("打开率")]),t("div",{staticClass:"nu_number"},[e._v(" "+e._s(null==n.openRate?"-":n.openRate+"%")+" ")])]),t("div",{staticClass:"nu_box"},[t("div",{staticClass:"nu_title"},[e._v("回复率")]),t("div",{staticClass:"nu_number"},[e._v(" "+e._s(null==n.replyRate?"-":n.replyRate+"%")+" ")])]),t("div",{staticClass:"nu_box"},[t("div",{staticClass:"nu_title"},[e._v("累计发送数")]),t("div",{staticClass:"nu_number"},[e._v(" "+e._s(null==n.totalSentNumber?"-":n.totalSentNumber)+" ")])])]),t("div",{staticClass:"tem_bottom"},[t("div",{staticClass:"tem_desc"},[e._v("邮件标题:"+e._s(n.mailSubject))]),t("div",{staticClass:"tem_desc"},[e._v("应用场景:"+e._s(n.scene))]),t("div",{staticClass:"desc_btns"},[t("div",{staticClass:"desc_text"},[t("div",{staticClass:"tem_desc"},[e._v("创建人:"+e._s(n.creator))]),t("div",{staticClass:"tem_desc"},[e._v("更新时间:"+e._s(n.gmtModify))])]),t("div",{staticClass:"apply_btn"},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.setMailTemplate(n)}}},[e._v("应用")])],1)])])])])})),0):t("Empty")],1),t("div",{staticClass:"page_box"},[t("el-pagination",{attrs:{"current-page":e.searchForm.currentPage,"page-size":e.searchForm.pageSize,layout:"total,prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentPage":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:current-page":function(t){return e.$set(e.searchForm,"currentPage",t)}}})],1)])},RPe=[];const jPe=[{value:"7",label:"汉语",enLabel:"Chinese"},{value:"1",label:"英语",enLabel:"English"},{value:"3",label:"法语",enLabel:"French"},{value:"8",label:"德语",enLabel:"German"},{value:"6",label:"日语",enLabel:"Japanese"},{value:"9",label:"韩语",enLabel:"Korean"},{value:"10",label:"越南语",enLabel:"Vietnamese"},{value:"11",label:"泰国语",enLabel:"Thai"},{value:"12",label:"菲律宾语",enLabel:"Filipino"},{value:"13",label:"印度尼西亚语",enLabel:"Indonesian"},{value:"14",label:"俄罗斯语",enLabel:"Russian"},{value:"4",label:"西班牙语",enLabel:"Spanish"},{value:"15",label:"意大利语",enLabel:"Italian"}],LPe=[{label:"按创建时间倒序",value:0},{label:"按更新时间倒序",value:1},{label:"按送达率倒序",value:2},{label:"按打开率倒序",value:3},{label:"按回复率倒序",value:4},{label:"按累计发送数倒序",value:5}],zPe=[{value:"1",label:`${Mc.t("template.invite_cooperation")}`},{value:"2",label:`${Mc.t("template.price_negotiation")}`},{value:"3",label:`${Mc.t("template.contract_template")}`},{value:"4",label:`${Mc.t("template.video_production")}`},{value:"5",label:`${Mc.t("template.expense_settlement")}`}];function VPe(e){let t={templatesTitle:"",scene:"",mailSubject:"",content:"",type:null,modelLanguage:"",isShared:"",userId:"",searchSort:1,currentPage:1,pageSize:10};return e&&(t=Object.assign(t,e)),t}var HPe={components:{Empty:sd},props:{userId:{type:[Number,String],default:""}},data(){return{contentSelect:"1",contentInput:"",mailTitleSelect:"1",mailTitleInput:"",searchForm:VPe(),language:jPe,sortConfig:LPe,accountList:[],templateList:[],templateSystemScene:zPe,total:0,loading:!1}},mounted(){this.getAccountList(),this.getCardList()},methods:{getLangLabel(e){const t=this.language.find((t=>t.value==e));if(t)return t.label},setMailTemplate(e){this.$emit("setMailTemplate",e)},toDetail(e){const t=this.$router.resolve({path:"/emailTempDetail",query:{type:"edit",id:e.id}});window.open(t.href,"_blank")},getCardList(){"1"==this.contentSelect?this.searchForm.templatesTitle=this.contentInput:"2"==this.contentSelect&&1!=this.searchForm.type&&(this.searchForm.scene=this.contentInput),"1"==this.mailTitleSelect?this.searchForm.mailSubject=this.mailTitleInput:"2"==this.mailTitleSelect&&(this.searchForm.content=this.mailTitleInput),this.loading=!0,xs(this.searchForm).then((e=>{"0"==e.code?(this.templateList=e.data.rows,this.total=e.data.total,this.loading=!1):(this.loading=!1,this.$message.error(e.message))}))},modelTypeChange(e){this.searchForm.scene="",this.contentInput=""},resetEvt(){this.searchForm=VPe(),this.contentSelect="1",this.contentInput="",this.mailTitleSelect="1",this.mailTitleInput="",this.getCardList()},getAccountList(){Cs().then((e=>{"0"==e.code?this.accountList=e.data:this.$message.error(e.message)}))},clickDropdownItem(e){this.searchForm.currentPage=1,this.searchForm.searchSort=e.value,this.getCardList()},handleSizeChange(e){this.searchForm.currentPage=1,this.searchForm.pageSize=e,this.getCardList()},handleCurrentChange(e){this.searchForm.currentPage=e,this.getCardList()}}},UPe=HPe,WPe=or(UPe,NPe,RPe,!1,null,"0854720c",null),qPe=WPe.exports,YPe={components:{TemplateList:qPe},props:{visible:{type:Boolean,default:!1},userId:{type:[Number,String],default:""}},data(){return{loading:!1,language:Wi.get("language")}},methods:{drawerClose(){this.$emit("update:visible",!1),this.$emit("closed")},setMailTemplate(e){this.$emit("setMailTemplate",e)}}},GPe=YPe,KPe=or(GPe,BPe,MPe,!1,null,"2b36ea26",null),XPe=KPe.exports,ZPe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ai-mail"},[e.visible?t("div",{staticClass:"ai-mail-base",class:{"ai-mail-base-en":"en"===e.language}},[t("i",{staticClass:"dss-iconfont icon-close",on:{click:e.baseClose}}),t("div",{staticClass:"title"},[t("img",{attrs:{src:i(7346),alt:""}}),t("span",{staticClass:"txt",class:{"txt-en":"en"===e.language}},[e._v(e._s(e.$t("edm5.v82")))])]),t("div",{staticClass:"sub-title"},[e._v(" "+e._s(e.$t("edm5.v83"))+" ")]),t("div",{staticClass:"step-content"},[t("div",{staticClass:"step-item step-one",on:{click:function(t){e.isShowProductDrawer=!0}}},[t("div",{staticClass:"left"},[t("span",{staticClass:"label-step"},[e._v(e._s(e.$t("edm5.v84")))]),t("span",{staticClass:"label-name"},[e._v(e._s(e.$t("edm5.v85")))])]),t("div",{staticClass:"right"},[e.aiProducts.length>0?t("span",{staticClass:"isComplete"},[e._v(e._s(e.$t("edm5.v86")))]):e._e(),t("i",{staticClass:"dss-iconfont icon-arrow"})])]),t("div",{staticClass:"step-item step-two",on:{click:()=>{e.isShowCoopDrawer=!0,e.getLanguages()}}},[t("div",{staticClass:"left"},[t("span",{staticClass:"label-step"},[e._v(e._s(e.$t("edm5.v88")))]),t("span",{staticClass:"label-name"},[e._v(e._s(e.$t("edm5.v89")))])]),t("div",{staticClass:"right"},[e.isCoopComplete?t("span",{staticClass:"isComplete"},[e._v(e._s(e.$t("edm5.v86")))]):e._e(),t("i",{staticClass:"dss-iconfont icon-arrow"})])])]),t("div",{staticClass:"make"},[t("el-button",{staticClass:"make-btn",attrs:{type:"primary"},on:{click:e.makeAiEmails}},[e._v(e._s(e.$t("edm5.v90")))])],1),t("div",{staticClass:"point"},[t("span",{staticClass:"point-txt"},[e._v(e._s(e.$t("edm5.v17"))+e._s(e.aiPoint))]),t("Tooltip",{attrs:{content:e.$t("edm5.v18"),isShowRule:!0}})],1)]):e._e(),e.isShowProductDrawer?t("product-new-drawer",{attrs:{from:"ai",isShowProductDrawer:e.isShowProductDrawer,defaultSelectedProduct:e.aiProducts},on:{addAiProduct:e.addAiProduct,closeProductDrawer:e.closeProductDrawer}}):e._e(),t("el-drawer",{staticClass:"ai-coop",attrs:{title:e.$t("edm5.v89"),"custom-class":"ai-coop-drawer",visible:e.isShowCoopDrawer,"close-on-press-escape":!1,direction:"rtl",size:"560px","append-to-body":!0},on:{close:e.coopDrawerClose}},[t("div",{staticClass:"coop-subTitle"},[e._v(e._s(e.$t("edm5.v92")))]),t("div",{staticClass:"coop-form"},[t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[t("span",{staticClass:"required"},[e._v("*")]),e._v(e._s(e.$t("edm5.v93"))+" ")]),t("div",{staticClass:"form-item-value tag-value"},[t("el-input",{attrs:{type:"textarea",rows:4,resize:"none",placeholder:"Best regards\n[Your Full Name]\n[Your Title/Position]\n[Your Company/Organization]",maxlength:"100","show-word-limit":""},model:{value:e.coopForm.signature,callback:function(t){e.$set(e.coopForm,"signature",t)},expression:"coopForm.signature"}})],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v94")))]),t("div",{staticClass:"form-item-value"},[t("el-input",{attrs:{type:"textarea",rows:3,resize:"none",placeholder:e.$t("edm5.v95"),maxlength:"100","show-word-limit":""},model:{value:e.coopForm.brandInformation,callback:function(t){e.$set(e.coopForm,"brandInformation",t)},expression:"coopForm.brandInformation"}})],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v96")))]),t("div",{staticClass:"form-item-value"},[t("el-select",{attrs:{size:"medium",placeholder:e.$t("edm5.v98")},model:{value:e.coopForm.isFreeShipping,callback:function(t){e.$set(e.coopForm,"isFreeShipping",t)},expression:"coopForm.isFreeShipping"}},[t("el-option",{attrs:{label:e.$t("edm5.v49"),value:!1}}),t("el-option",{attrs:{label:e.$t("edm5.v48"),value:!0}})],1)],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v97")))]),t("div",{staticClass:"form-item-value radio-value"},[t("el-radio",{attrs:{label:!0},model:{value:e.coopForm.isPaid,callback:function(t){e.$set(e.coopForm,"isPaid",t)},expression:"coopForm.isPaid"}},[e._v(e._s(e.$t("edm5.v48")))]),t("el-radio",{attrs:{label:!1},model:{value:e.coopForm.isPaid,callback:function(t){e.$set(e.coopForm,"isPaid",t)},expression:"coopForm.isPaid"}},[e._v(e._s(e.$t("edm5.v49")))])],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v99")))]),t("div",{staticClass:"form-item-value radio-value"},[t("el-radio",{attrs:{label:!0},model:{value:e.coopForm.hasOrderCommission,callback:function(t){e.$set(e.coopForm,"hasOrderCommission",t)},expression:"coopForm.hasOrderCommission"}},[e._v(e._s(e.$t("edm5.v48")))]),t("el-radio",{attrs:{label:!1},model:{value:e.coopForm.hasOrderCommission,callback:function(t){e.$set(e.coopForm,"hasOrderCommission",t)},expression:"coopForm.hasOrderCommission"}},[e._v(e._s(e.$t("edm5.v49")))])],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v100")))]),t("div",{staticClass:"form-item-value style-value"},[t("el-autocomplete",{attrs:{"fetch-suggestions":e.querySearch,placeholder:e.$t("edm5.v95")},model:{value:e.coopForm.videoStyle,callback:function(t){e.$set(e.coopForm,"videoStyle",t)},expression:"coopForm.videoStyle"}})],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v101")))]),t("div",{staticClass:"form-item-value number-value"},[t("el-input",{attrs:{placeholder:e.$t("edm5.v95"),type:"number"},model:{value:e.coopForm.videoDuration,callback:function(t){e.$set(e.coopForm,"videoDuration",t)},expression:"coopForm.videoDuration"}},[t("template",{slot:"append"},[e._v(e._s(e.$t("edm5.v102")))])],2)],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v("hashtag")]),t("div",{staticClass:"form-item-value tag-value"},[t("el-select",{attrs:{"popper-class":"coop-tag-select",multiple:"",filterable:"","allow-create":"","default-first-option":"",placeholder:e.$t("edm5.v103")},model:{value:e.coopForm.hashtags,callback:function(t){e.$set(e.coopForm,"hashtags",t)},expression:"coopForm.hashtags"}},[t("el-option",{attrs:{label:"test",value:"test"}})],1)],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v104")))]),t("div",{staticClass:"form-item-value"},[t("el-input",{attrs:{type:"textarea",rows:3,resize:"none",placeholder:e.$t("edm5.v95"),maxlength:"100","show-word-limit":""},model:{value:e.coopForm.otherRequirements,callback:function(t){e.$set(e.coopForm,"otherRequirements",t)},expression:"coopForm.otherRequirements"}})],1)])]),t("div",{staticClass:"coop-bottom"},[t("div",{staticClass:"bottom-left"},[t("span",{staticClass:"label"},[e._v(e._s(e.$t("edm5.v105")))]),t("span",{staticClass:"value",staticStyle:{"margin-right":"6px"}},[t("el-select",{attrs:{size:"small",placeholder:e.$t("edm5.v98")},model:{value:e.coopForm.language,callback:function(t){e.$set(e.coopForm,"language",t)},expression:"coopForm.language"}},e._l(e.languageList,(function(e,n){return t("el-option",{key:n,attrs:{label:e.label,value:e.value}})})),1)],1),t("Tooltip",{attrs:{content:e.$t("edm5.v106"),isShowRule:!1}})],1),t("div",{staticClass:"bottom-right"},[t("el-button",{on:{click:function(t){e.isShowCoopDrawer=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.confirmAddCoop}},[e._v("确认")])],1)])]),t("el-drawer",{staticClass:"ai-build",attrs:{title:e.$t("edm5.v82"),"custom-class":"ai-build-drawer",visible:e.isShowBuildDrawer,"close-on-press-escape":!1,wrapperClosable:!1,direction:"rtl",size:"1000px","append-to-body":!0},on:{close:e.buildDrawerClose}},[t("div",{staticClass:"build-content"},[t("div",{staticClass:"build-rule-part"},[e.aiProducts.length>0?t("div",{staticClass:"product-information"},[t("div",{staticClass:"info-title"},[t("div",{staticClass:"title-left"},[e._v(e._s(e.$t("edm5.v107")))]),t("div",{staticClass:"title-right"},[t("div",{staticClass:"toggle-btn left",on:{click:function(t){return e.toggleProductCarousel("prev")}}},[t("i",{staticClass:"dss-iconfont icon-arrow"})]),t("div",{staticClass:"toggle-txt"},[t("span",{staticClass:"current"},[e._v(e._s(e.currentProductIndex+1))]),t("span",{staticClass:"total"},[e._v("/"+e._s(e.aiProducts.length))])]),t("div",{staticClass:"toggle-btn right",on:{click:function(t){return e.toggleProductCarousel("next")}}},[t("i",{staticClass:"dss-iconfont icon-arrow"})])])]),t("el-carousel",{ref:"productCarousel",staticClass:"product-carousel",attrs:{height:"160px",trigger:"click",autoplay:!1,"indicator-position":"none",arrow:"never"},on:{change:e.productCarouselChange}},e._l(e.aiProducts,(function(n){return t("el-carousel-item",{key:n.id},[t("div",{staticClass:"product-info"},[t("img",{staticClass:"left",attrs:{src:n.imageUrls[0],alt:""}}),t("div",{staticClass:"right"},[n.nameZh?t("div",{staticClass:"info-item"},[e._v(" "+e._s(e.$t("edm5.v108"))+e._s(n.nameZh||"-")+" ")]):e._e(),n.nameEn?t("div",{staticClass:"info-item"},[e._v(" "+e._s(e.$t("edm5.v109"))+e._s(n.nameEn||"-")+" ")]):e._e(),n.platformName?t("div",{staticClass:"info-item"},[e._v(" "+e._s(e.$t("edm5.v110"))+e._s(n.platformName||"-")+" ")]):e._e(),n.productLink?t("div",{staticClass:"info-item"},[e._v(" "+e._s(e.$t("edm5.v111"))+e._s(n.productLink||"-")+" ")]):e._e(),n.countryName?t("div",{staticClass:"info-item"},[e._v(" "+e._s(e.$t("edm5.v112"))+e._s(n.countryName||"-")+" ")]):e._e(),n.remark?t("div",{staticClass:"info-item"},[e._v(" "+e._s(e.$t("edm5.v113"))+e._s(n.remark||"-")+" ")]):e._e()])])])})),1)],1):e._e(),t("div",{staticClass:"coop-information",class:{"coop-larger":0===e.aiProducts.length}},[t("div",{staticClass:"info-title"},[t("div",{staticClass:"title-left"},[e._v(e._s(e.$t("edm5.v114")))])]),t("div",{staticClass:"coop-content"},[t("div",{staticClass:"coop-item"},[t("el-tooltip",{staticClass:"item",attrs:{placement:"top","popper-class":"wt-tooltip"}},[t("div",{staticClass:"ai-coop-tooltip",attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.coopForm.brandInformation||"-")+" ")]),t("span",{staticClass:"text-overflow"},[e._v(" "+e._s(e.$t("edm5.v94"))+":"+e._s(e.coopForm.brandInformation||"-"))])])],1),t("div",{staticClass:"coop-item"},[e._v(" "+e._s(e.$t("edm5.v116"))+e._s(e.coopMethods)+" ")]),t("div",{staticClass:"coop-item"},[e._v(" "+e._s(e.$t("edm5.v100"))+":"+e._s(e.coopForm.videoStyle||"-")+" ")]),t("div",{staticClass:"coop-item"},[e._v(" "+e._s(e.$t("edm5.v101"))+":"+e._s(e.coopForm.videoDuration)),e.coopForm.videoDuration?t("span",[e._v(e._s(e.$t("edm5.v102")))]):e._e()]),t("div",{staticClass:"coop-item"},[t("el-tooltip",{staticClass:"item",attrs:{placement:"top","popper-class":"wt-tooltip"}},[t("div",{staticClass:"ai-coop-tooltip",attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.hashtagsStr||"-")+" ")]),t("span",{staticClass:"text-overflow"},[e._v(" hashtags:"+e._s(e.hashtagsStr))])])],1),t("div",{staticClass:"coop-item"},[t("el-tooltip",{staticClass:"item",attrs:{placement:"top","popper-class":"wt-tooltip"}},[t("div",{staticClass:"ai-coop-tooltip",attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.coopForm.otherRequirements||"-")+" ")]),t("span",{staticClass:"text-overflow"},[e._v(" "+e._s(e.$t("edm5.v119"))+e._s(e.coopForm.otherRequirements||"-"))])])],1)])])]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isBuilding,expression:"isBuilding"}],staticClass:"build-content-part",attrs:{"element-loading-spinner":"el-icon-loading1","element-loading-background":"rgba(255, 255, 255, 0.7)","element-loading-customClass":"ai-email-loading"}},[e.isBuilding?t("el-progress",{staticClass:"ai-progress",attrs:{"text-inside":!0,"stroke-width":30,percentage:e.progressNum}}):e._e(),e.isBuilding?t("div",{staticClass:"loading-txt"},[t("span",{staticClass:"txt"},[e._v(e._s(e.$t("edm5.v120")))]),t("LoadingDots")],1):e._e(),t("div",{staticClass:"email-box"},[t("div",{staticClass:"email-tab"},e._l(e.mailList,(function(n,i){return t("div",{key:n.id,class:{tab:!0,"active-tab":n.active},on:{click:function(t){return e.toggleEmailTag(n.id)}}},[t("span",{staticClass:"tab-txt"},[e._v(e._s(e.$t("edm5.v59"))+e._s(i+1))]),t("i",{staticClass:"dss-iconfont icon-close",class:{"not-allowed":e.isBuilding},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.deleteEmail(n.id)}}})])})),0),e.mailList.length<5?t("div",{staticClass:"email-add",class:{"not-allowed":e.isBuilding},on:{click:e.toAddEmail}},[t("i",{staticClass:"dss-iconfont icon-add2"}),t("span",[e._v(e._s(e.$t("edm5.v60")))])]):e._e()]),e.mailList.length>0?t("div",{staticClass:"email-content"},[e.currentActiveMail.subject?t("div",{staticClass:"subject"},[e._v(" "+e._s(e.$t("edm5.v121"))+e._s(e.currentActiveMail.subject)+" ")]):e._e(),e.currentActiveMail.content?t("div",{staticClass:"content",staticStyle:{"white-space":"pre-wrap"},domProps:{innerHTML:e._s(e.$t("edm5.v122")+e.currentActiveMail.content)}}):e._e()]):t("Empty",{attrs:{currentStyle:{"padding-top":"90px"},tips:e.$t("edm5.v123")}})],1)]),e.mailList.length>0?t("div",{staticClass:"build-footer"},[t("div",{staticClass:"ai-bottom"},[e.isBatchFinished?t("div",{staticClass:"like-item first",class:{notAllow:e.isBuilding,active:1===e.currentActiveMail.feedLike},on:{click:function(t){return e.evaluateAi(1,e.currentActiveMail.historyId)}}},[t("i",{staticClass:"dss-iconfont icon-like-dz"}),t("span",{staticStyle:{"font-size":"14px","margin-left":"8px"}},[e._v(e._s(e.$t("edm5.v32")))])]):e._e(),e.isBatchFinished?t("div",{staticClass:"like-item",class:{notAllow:e.isBuilding,active:2===e.currentActiveMail.feedLike},on:{click:function(t){return e.evaluateAi(2,e.currentActiveMail.historyId)}}},[t("i",{staticClass:"dss-iconfont icon-dianzan_kuaibeifen"}),t("span",{staticStyle:{"font-size":"14px","margin-left":"8px"}},[e._v(e._s(e.$t("edm5.v32")))])]):e._e(),e.isBatchFinished?t("div",{staticClass:"redo",on:{click:e.rebuildSimpleEmail}},[e.isBuilding?t("span",{staticClass:"stop-icon",staticStyle:{width:"12px",height:"12px","border-radius":"4px",background:"#f85277","margin-right":"7px"}}):t("i",{staticClass:"dss-iconfont icon-a-zhongxinshengchengbeifen2"}),e.isBuilding?t("span",{staticStyle:{color:"#f85277"}},[e._v(e._s(e.$t("edm5.v35")))]):t("span",[e._v(e._s(e.$t("edm5.v34")))])]):e._e(),t("div",{staticClass:"point",style:{"margin-left":e.isBatchFinished?"24px":"0px"}},[t("span",{staticClass:"txt"},[e._v(e._s(e.$t("edm5.v17"))+e._s(e.aiPoint))]),t("Tooltip",{attrs:{content:e.$t("edm5.v18"),isShowRule:!0}})],1)]),t("div",{staticClass:"footer-right"},[t("el-button",{staticClass:"reply-btn cancel-btn",attrs:{size:"small"},on:{click:e.buildDrawerClose}},[e._v(e._s(e.$t("edm5.v19")))]),t("el-button",{staticClass:"reply-btn make-btn",attrs:{size:"small",type:"primary",disabled:e.isBuilding},on:{click:e.toApplyEmails}},[e._v(e._s(e.$t("edm5.v124")))])],1)]):e._e()])],1)},JPe=[];function QPe(e){return Pa("/edm/ai/aiWriteEmail/batchGenerate",e)}function e$e(e){return Ta(`/edm/ai/aiWriteEmail/generate/${e}`)}function t$e(e,t){return Ta(`/edm/ai/aiWriteEmail/regenerate/${e}/sceneType/${t}`)}function n$e(e){return Ta(`/edm/ai/aiWriteEmail/getByRequest/${e}`)}function i$e(e,t){return Ta(`/edm/ai/aiWriteEmail/getByResult/${e}/sceneType/${t}`)}function r$e(e){return Pa("/edm/ai/aiWriteEmail/optimize",e)}function o$e(e,t){return Ta(`/edm/ai/aiOptimizeContent/getByRequest/${e}/sceneType/${t}`)}var a$e=function(){var e=this;e._self._c;return e._m(0)},s$e=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"loading-dots"},[t("span",{staticClass:"dot"}),t("span",{staticClass:"dot"}),t("span",{staticClass:"dot"})])}],l$e={name:"LoadingDots"},c$e=l$e,u$e=or(c$e,a$e,s$e,!1,null,"9cfc5dac",null),d$e=u$e.exports,h$e={components:{Tooltip:Xc,Empty:sd,LoadingDots:d$e,productNewDrawer:SIe},props:{visible:{type:Boolean,default:!1},aiPoint:{type:Number,default:0}},data(){return{isShowProductDrawer:!1,isShowCoopDrawer:!1,isShowBuildDrawer:!1,aiProducts:[],coopForm:{brandInformation:"",isFreeShipping:!1,isPaid:!1,hasOrderCommission:!1,videoStyle:"",videoDuration:"",hashtags:[],signature:"",otherRequirements:"",language:"英语"},isCoopComplete:!1,languageList:[],language:Wi.get("language"),currentProductIndex:0,mailList:[{id:"1xx",subject:"",content:"",historyId:"",active:!0,feedLike:0},{id:"2xx",subject:"",content:"",historyId:"",active:!1,feedLike:0},{id:"3xx",subject:"",content:"",historyId:"",active:!1,feedLike:0}],isBatchFinished:!1,isBuilding:!1,aiEmailCounter:0,AiMailsTimer:null,idInfo:{requestId:"",ruleId:""},progressNum:0}},computed:{coopMethods(){const e=this.coopForm.isFreeShipping?this.$t("edm5.v125"):this.$t("edm5.v126"),t=this.coopForm.isPaid?this.$t("edm5.v127"):this.$t("edm5.v128");return e+"&"+t},hashtagsStr(){return this.coopForm.hashtags.join(",")||"-"},currentActiveMail(){return this.mailList.find((e=>e.active))||{}}},beforeDestroy(){this.AiMailsTimer&&clearInterval(this.AiMailsTimer)},methods:{querySearch(e,t){var n=[{value:"场景植入",label:this.$t("edm5.v129")},{value:"反差对比",label:this.$t("edm5.v130")},{value:"体验分享",label:this.$t("edm5.v131")},{value:"直接展示",label:this.$t("edm5.v132")},{value:"开箱测评",label:this.$t("edm5.v133")}],i=e?n.filter(this.createFilter(e)):n;t(i)},createFilter(e){return t=>0===t.value.toLowerCase().indexOf(e.toLowerCase())},baseClose(){this.$emit("update:visible",!1)},closeProductDrawer(){this.isShowProductDrawer=!1},addAiProduct(e=[]){this.aiProducts=e,this.isShowProductDrawer=!1},coopDrawerClose(){this.isShowCoopDrawer=!1},async getLanguages(){try{const e=await fs();"0"===e.code&&(this.languageList=e.data?.map((e=>({label:e,value:e}))))}catch(rl){console.log(rl)}},confirmAddCoop(){if(""===this.coopForm.signature)return this.isCoopComplete=!1,this.$message.error(this.$t("edm5.v134"));this.isCoopComplete=!0,this.isShowCoopDrawer=!1},buildDrawerClose(){this.stopAiEmailsSetInterval(),this.isShowBuildDrawer=!1,this.currentProductIndex=0,this.mailList=this.$options.data().mailList,this.progressNum=0},productCarouselChange(e){this.currentProductIndex=e},toggleProductCarousel(e){const t=this.$refs.productCarousel;t&&t[e]()},toggleEmailTag(e){this.mailList=this.mailList.map((t=>({...t,active:e===t.id})))},deleteEmail(e){return!this.isBuilding&&(!(this.mailList.length<=0)&&void this.$confirm(this.$t("edm5.v78"),this.$t("edm5.v79"),{confirmButtonText:this.$t("edm5.v45"),cancelButtonText:"取消",type:"warning"}).then((()=>{this.mailList=this.mailList.filter((t=>t.id!==e)),this.mailList.every((e=>!e.active))&&this.mailList.length>0&&this.$set(this.mailList,0,{...this.mailList[0],active:!0})})).catch((()=>{})))},toAddEmail(){return!this.isBuilding&&(!(this.mailList.length>=5)&&(this.mailList=this.mailList.map((e=>({...e,active:!1}))),this.mailList.push({id:"add",subject:"",content:"",historyId:"",active:!0,feedLike:0}),void this.buildSingleAiEmail()))},async evaluateAi(e,t){try{const n=this.currentActiveMail.feedLike===e?0:e,i=await ss({historyId:t,isLike:n,aiScene:"generate"});if("0"===i.code){const e=this.mailList.findIndex((e=>e.active));e>-1&&this.$set(this.mailList,e,{...this.mailList[e],feedLike:n}),this.$message.success(this.$t("inboxDetail.tips5"))}}catch(rl){console.log(rl)}},makeAiEmails(){if(0===this.aiProducts.length&&!this.isCoopComplete)return this.$message.error(this.$t("edm5.v135"));this.isShowBuildDrawer=!0,this.$nextTick((()=>{this.buildAiEmails()}))},async buildAiEmails(){try{this.progressNum=0;const e={productIds:this.aiProducts.map((e=>e.id)),cooperationRequirement:this.coopForm};this.isBuilding=!0,this.isBatchFinished=!1;const t=await QPe(e);"0"===t.code?(this.idInfo=t.data,this.getAiEmails(!1)):(this.$message.error(t.message),this.isBuilding=!1,this.buildFailed(!1))}catch(rl){this.isBuilding=!1,this.buildFailed(!1),console.log(rl)}},async getAiEmails(e=!1){try{const t=await n$e(this.idInfo.requestId);"0"==t.code?t.data?.isComplete?(this.progressNum=100,e?t.data.aiWriteList&&t.data.aiWriteList.length>0&&this.$set(this.mailList,this.mailList.length-1,{...this.mailList.at(-1),...t.data.aiWriteList[0]}):(this.mailList=t.data.aiWriteList.map(((e,t)=>({active:0===t,feedLike:0,...e}))),this.isBatchFinished=!0),this.isBuilding=!1):(this.isBuilding=!0,this.createAiEmailsSetInterval(e)):(this.isBuilding=!1,this.$message.error(t.message),this.buildFailed(e))}catch(rl){this.buildFailed(e),console.log(rl)}},createAiEmailsSetInterval(e=!1){const t=e?30:15,n=e?40:30;this.stopAiEmailsSetInterval(),this.aiEmailCounter=0,this.AiMailsTimer=setInterval((async()=>{this.aiEmailCounter+=1,this.progressNum+=this.getRandomInt(t,n),this.progressNum>=99&&(this.progressNum=99);const i=await this.getAiEmailsProgress(e);i&&(this.$emit("refreshPoint"),this.isBuilding=!1,this.aiEmailCounter=0,this.progressNum=100,this.stopAiEmailsSetInterval(),e||(this.isBatchFinished=!0)),this.aiEmailCounter>=30&&(this.isBuilding=!1,this.aiEmailCounter=0,this.stopAiEmailsSetInterval(),this.$message.error(this.$t("inboxDetail.tips2")),this.buildFailed(e))}),2e3)},async getAiEmailsProgress(e){try{const t=await n$e(this.idInfo.requestId);return"0"==t.code?(t.data?.isComplete&&(e?t.data.aiWriteList&&t.data.aiWriteList.length>0&&this.$set(this.mailList,this.mailList.length-1,{...this.mailList.at(-1),...t.data.aiWriteList[0]}):this.mailList=t.data.aiWriteList.map(((e,t)=>({active:0===t,feedLike:0,...e})))),t.data?.isComplete):(this.$message.error(t.message),this.buildFailed(e),!0)}catch(rl){return this.buildFailed(e),console.log(rl),!0}},stopAiEmailsSetInterval(){this.AiMailsTimer&&(clearInterval(this.AiMailsTimer),this.AiMailsTimer=null)},buildFailed(e=!1){this.progressNum=0,e?(this.mailList.splice(-1,1),this.mailList=this.mailList.map(((e,t)=>{const n=t===this.mailList.length-1;return{...e,active:n}}))):this.mailList=[]},async buildSingleAiEmail(){try{this.progressNum=0,this.isBuilding=!0;const e=await e$e(this.idInfo.ruleId);"0"===e.code?(this.idInfo.requestId=e.data,this.getAiEmails(!0)):(this.buildFailed(!0),this.isBuilding=!1,this.$message.error(e.message))}catch(rl){this.buildFailed(!0),this.isBuilding=!1,console.log(rl)}},async rebuildSimpleEmail(){if(this.isBuilding)this.stopAiEmailsSetInterval(),this.progressNum=0,this.isBuilding=!1,"add"===this.currentActiveMail.id&&this.buildFailed(!0);else try{this.progressNum=0,this.isBuilding=!0;const e=await t$e(this.currentActiveMail.id,"generateEmail");"0"===e.code?this.getAiEmailByResult():(this.progressNum=0,this.isBuilding=!1,this.$message.error(e.message))}catch(rl){this.progressNum=0,this.isBuilding=!1,console.log(rl)}},async getAiEmailByResult(){try{const e=await i$e(this.currentActiveMail.id,"generateEmail");if("0"===e.code)if(e.data?.isComplete){const t=this.mailList.findIndex((e=>e.active));t>-1&&this.$set(this.mailList,t,{...this.mailList[t],...e.data.aiWrite,feedLike:0}),this.progressNum=100,this.isBuilding=!1}else this.isBuilding=!0,this.createRebuildSetInterval();else this.progressNum=0,this.isBuilding=!1,this.$message.error(e.message)}catch(rl){this.progressNum=0,this.isBuilding=!1,console.log(rl)}},createRebuildSetInterval(){this.stopAiEmailsSetInterval(),this.aiEmailCounter=0,this.AiMailsTimer=setInterval((async()=>{this.aiEmailCounter+=1,this.progressNum+=this.getRandomInt(30,40),this.progressNum>=99&&(this.progressNum=99);const e=await this.getRebuildsProgress();e&&(this.$emit("refreshPoint"),this.progressNum=100,this.isBuilding=!1,this.aiEmailCounter=0,this.stopAiEmailsSetInterval()),this.aiEmailCounter>=30&&(this.progressNum=0,this.isBuilding=!1,this.aiEmailCounter=0,this.stopAiEmailsSetInterval(),this.$message.error(this.$t("inboxDetail.tips2")))}),2e3)},async getRebuildsProgress(){try{const e=await i$e(this.currentActiveMail.id,"generateEmail");if("0"==e.code){if(e.data?.isComplete){const t=this.mailList.findIndex((e=>e.active));t>-1&&this.$set(this.mailList,t,{...this.mailList[t],...e.data.aiWrite,feedLike:0})}return e.data?.isComplete}return this.$message.error(e.message),!0}catch(rl){return console.log(rl),!0}},toApplyEmails(){if(0===this.mailList.length)return this.$message.error(this.$t("edm5.v136"));this.$emit("applyEmails",this.mailList)},getRandomInt(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e}}},p$e=h$e,f$e=or(p$e,ZPe,JPe,!1,null,"3efaed70",null),m$e=f$e.exports,g$e=function(){var e=this,t=e._self._c;return t("el-drawer",{staticClass:"ai-optimize",attrs:{title:e.currentMailMap.title,"custom-class":"ai-optimize-drawer",visible:e.visible,"close-on-press-escape":!1,wrapperClosable:!1,direction:"rtl",size:"1000px","append-to-body":!0},on:{close:e.drawerClose}},[t("div",{staticClass:"sub-title"},[t("img",{attrs:{src:i(7346),alt:""}}),t("span",{staticClass:"txt"},[e._v(" "+e._s(e.currentMailMap.subTitle))])]),"7"===e.type?t("div",{staticClass:"ai-select"},[t("div",{staticClass:"select-prepend"},[e._v(e._s(e.$t("edm5.v240")))]),t("el-select",{attrs:{placeholder:e.$t("edm5.v98")},model:{value:e.language,callback:function(t){e.language=t},expression:"language"}},e._l(e.languageList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-button",{attrs:{type:"primary"},on:{click:e.buildOptimize}},[e._v(e._s(e.$t("edm5.v241")))])],1):e._e(),"5"===e.type?t("div",{staticClass:"ai-select"},[t("div",{staticClass:"select-prepend"},[e._v(e._s(e.$t("edm5.v242")))]),t("el-select",{attrs:{placeholder:e.$t("edm5.v98")},model:{value:e.tone,callback:function(t){e.tone=t},expression:"tone"}},e._l(e.toneList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-button",{attrs:{type:"primary"},on:{click:e.buildOptimize}},[e._v(e._s(e.$t("edm5.v90")))])],1):e._e(),t("div",{staticClass:"ai-content"},[t("div",{staticClass:"content-left"},[t("div",{staticClass:"content-title"},[e._v(e._s(e.$t("edm5.v244")))]),t("div",{staticClass:"content-box",staticStyle:{"white-space":"pre-wrap"},domProps:{innerHTML:e._s("6"===e.type?e.imitationOriginContent:e.resultInfo.originContent)}})]),t("div",{staticClass:"content-right"},[t("div",{staticClass:"content-title"},[e._v(e._s(e.currentMailMap.resultTitle))]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isBuilding,expression:"isBuilding"}],staticClass:"content-box",staticStyle:{"white-space":"pre-wrap"},attrs:{"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0)","element-loading-customClass":"ai-optimize-loading"},domProps:{innerHTML:e._s("6"===e.type?e.imitationContent:e.resultInfo.resultContent)}})])]),t("div",{staticClass:"ai-footer"},[""!==e.requestId?t("div",{staticClass:"ai-bottom"},[t("div",{staticClass:"like-item first",class:{notAllow:e.isBuilding,active:1===e.resultInfo.feedLike},on:{click:function(t){return e.evaluateAi(1,e.resultInfo.historyId)}}},[t("i",{staticClass:"dss-iconfont icon-like-dz"}),t("span",{staticStyle:{"font-size":"14px","margin-left":"8px"}},[e._v(e._s(e.$t("edm5.v32")))])]),t("div",{staticClass:"like-item",class:{notAllow:e.isBuilding,active:2===e.resultInfo.feedLike},on:{click:function(t){return e.evaluateAi(2,e.resultInfo.historyId)}}},[t("i",{staticClass:"dss-iconfont icon-dianzan_kuaibeifen"}),t("span",{staticStyle:{"font-size":"14px","margin-left":"8px"}},[e._v(e._s(e.$t("edm5.v32")))])]),t("div",{staticClass:"redo",on:{click:e.rebuildEmail}},[e.isBuilding?t("span",{staticClass:"stop-icon",staticStyle:{width:"12px",height:"12px","border-radius":"4px",background:"#f85277","margin-right":"7px"}}):t("i",{staticClass:"dss-iconfont icon-a-zhongxinshengchengbeifen2"}),e.isBuilding?t("span",{staticStyle:{color:"#f85277"}},[e._v(e._s(e.$t("edm5.v35")))]):t("span",[e._v(e._s(e.$t("edm5.v34")))])]),t("div",{staticClass:"point"},[t("span",{staticClass:"txt"},[e._v(e._s(e.$t("edm5.v17"))+e._s(e.aiPoint))]),t("Tooltip",{attrs:{content:e.$t("edm5.v18"),isShowRule:!0}})],1)]):e._e(),t("div",{staticClass:"footer-right"},[t("el-button",{staticClass:"reply-btn cancel-btn",attrs:{size:"small"},on:{click:e.drawerClose}},[e._v(e._s(e.$t("edm5.v19")))]),t("el-button",{staticClass:"reply-btn make-btn",attrs:{size:"small",type:"primary",disabled:e.isBuilding},on:{click:e.toApplyEmail}},[e._v(e._s(e.$t("edm5.v124")))])],1)])])},v$e=[],y$e={components:{Tooltip:Xc},props:{visible:{type:Boolean,default:!1},type:{type:String,default:"1"},aiPoint:{type:Number,default:0},originSubject:{type:String,default:""},originContent:{type:String,default:""}},data(){return{loading:!1,language:"英语",languageList:[],tone:"友好的",toneList:[],resultInfo:{originSubject:"",resultSubject:"",originContent:"",resultContent:"",feedLike:0,historyId:""},isBuilding:!1,aiEmailCounter:0,aiRebuildEmailCounter:0,AiMailsTimer:null,AiRebuildMailTimer:null,requestId:"",rebuildId:"",rebuildProgressId:"",imitationOriginContent:"",imitationContent:"",typeMap:{1:{title:"优化拼写与语法",subTitle:"AI工具会自动检测邮件中的拼写和语法错误,并自动修正,确保邮件内容准确无误,提升邮件的专业水平和可读性",resultTitle:"AI优化内容",sceneType:"optimizeSpellingAndGrammar"},2:{title:"缩短内容",subTitle:"AI工具分析邮件内容,识别并建议删除冗长的句子和段落,以精简邮件长度,使其更易于理解和消化",resultTitle:"AI优化内容",sceneType:"shorten"},3:{title:"扩充内容",subTitle:"根据邮件主题,AI工具会对内容进行扩充,以丰富邮件内容并增强信息的传达效果",resultTitle:"AI优化内容",sceneType:"expansion"},4:{title:"优化结构",subTitle:"AI工具分析邮件结构,推荐调整段落顺序、增加标题或子标题、优化段落分隔,以提升整体阅读体验和视觉吸引力",resultTitle:"AI优化内容",sceneType:"optimizeStructure"},5:{title:"改变语气",subTitle:"AI工具可以改变邮件的语气,使其更加符合受众需求和沟通目的",resultTitle:"AI优化内容",sceneType:"changeTone"},6:{title:"仿写邮件",subTitle:"基于原邮件的语言、字数、内容结构等,生成相似但有变化的邮件内容",resultTitle:"AI仿写内容",sceneType:"imitation"},7:{title:"翻译",subTitle:"选择目标语言,进行翻译",resultTitle:"译文",sceneType:"translate"}}}},computed:{currentMailMap(){return this.typeMap[this.type]},isReady(){return!!this.resultInfo.originContent&&!!this.type}},watch:{isReady:{handler(e){e&&("5"===this.type&&this.getTones(),"7"===this.type&&this.getLanguages(),"5"!==this.type&&"7"!==this.type&&this.buildOptimize())},deep:!0,immediate:!0}},created(){this.originSubject&&(this.resultInfo.originSubject=this.originSubject),this.originContent&&(this.resultInfo.originContent=this.originContent,"6"===this.type&&(this.imitationOriginContent=`${this.$t("edm5.v121")}${this.originSubject}\n\n`+this.$t("edm5.v262")+this.originContent))},beforeDestroy(){this.AiMailsTimer&&clearInterval(this.AiMailsTimer)},methods:{drawerClose(){this.$emit("update:visible",!1),this.$emit("closed")},async getLanguages(){try{const e=await fs();"0"===e.code&&(this.languageList=e.data?.map((e=>({label:e,value:e}))))}catch(rl){console.log(rl)}},async getTones(){try{const e=await ms();"0"===e.code&&(this.toneList=e.data?.map((e=>({label:e,value:e}))))}catch(rl){console.log(rl)}},async evaluateAi(e,t){if(this.isBuilding)return!1;try{const n=this.resultInfo.feedLike===e?0:e,i=await ss({historyId:t,isLike:n,aiScene:this.currentMailMap.sceneType});"0"===i.code?(this.resultInfo.feedLike=n,this.$message.success(this.$t("inboxDetail.tips5"))):this.$message.error(i.message)}catch(rl){console.log(rl)}},async buildOptimize(){try{this.isBuilding=!0;const e=await r$e({sceneType:this.currentMailMap.sceneType,currentSubject:this.resultInfo.originSubject||void 0,currentContent:this.resultInfo.originContent,language:"7"===this.type?this.language:void 0,tone:"5"===this.type?this.tone:void 0});"0"===e.code?(this.requestId=e.data,this.getAiEmail()):(this.isBuilding=!1,this.$message.error(e.message))}catch(rl){this.isBuilding=!1,console.log(rl)}},async getAiEmail(){try{const e=await o$e(this.requestId,this.currentMailMap.sceneType);"0"==e.code?e.data?.isComplete?(this.isBuilding=!1,this.resultInfo.resultContent=e.data.content||"",this.rebuildId=e.data.resultId,this.resultInfo.historyId=e.data.resultId,"6"===this.type&&(this.resultInfo.resultSubject=e.data.subject||"",this.imitationContent=`subject:${e.data.subject}\n\ncontent:`+e.data.content),this.$emit("refreshPoint")):(this.isBuilding=!0,this.createAiEmailSetInterval()):(this.isBuilding=!1,this.$message.error(e.message))}catch(rl){this.isBuilding=!1,console.log(rl)}},createAiEmailSetInterval(){this.stopAiEmailSetInterval(),this.aiEmailCounter=0,this.AiMailsTimer=setInterval((async()=>{this.aiEmailCounter+=1;const e=await this.getAiEmailProgress();e&&(this.$emit("refreshPoint"),this.isBuilding=!1,this.aiEmailCounter=0,this.stopAiEmailSetInterval()),this.aiEmailCounter>=30&&(this.isBuilding=!1,this.aiEmailCounter=0,this.stopAiEmailSetInterval(),this.$message.error(this.$t("inboxDetail.tips2")))}),2e3)},async getAiEmailProgress(){try{const e=await o$e(this.requestId,this.currentMailMap.sceneType);return"0"==e.code?(e.data?.isComplete&&(this.resultInfo.resultContent=e.data.content,this.rebuildId=e.data.resultId,this.resultInfo.historyId=e.data.resultId,"6"===this.type&&(this.resultInfo.resultSubject=e.data.subject||"",this.imitationContent=`subject:${e.data.subject}\n\ncontent:`+e.data.content)),e.data?.isComplete):(this.$message.error(e.message),!0)}catch(rl){return console.log(rl),!0}},stopAiEmailSetInterval(){this.AiMailsTimer&&(clearInterval(this.AiMailsTimer),this.AiMailsTimer=null)},async rebuildEmail(){if(this.isBuilding)this.isBuilding=!1,this.stopAiEmailSetInterval();else try{this.isBuilding=!0;const e=await t$e(this.rebuildId,this.currentMailMap.sceneType);"0"===e.code?(this.rebuildProgressId=e.data,this.resultInfo.feedLike=0,this.getRebuildAiEmail()):(this.isBuilding=!1,this.$message.error(e.message))}catch(rl){this.isBuilding=!1,console.log(rl)}},async getRebuildAiEmail(){try{const e=await i$e(this.rebuildProgressId,this.currentMailMap.sceneType);"0"==e.code?e.data?.isComplete?(this.isBuilding=!1,this.resultInfo.resultContent=e.data.aiWrite.content||"",this.resultInfo.historyId=e.data.aiWrite.historyId,"6"===this.type&&(this.resultInfo.resultSubject=e.data.aiWrite.subject||"",this.imitationContent=`subject:${e.data.aiWrite.subject}\n\ncontent:`+e.data.aiWrite.content),this.$emit("refreshPoint")):(this.isBuilding=!0,this.createRebuildAiEmailSetInterval()):(this.isBuilding=!1,this.$message.error(e.message))}catch(rl){this.isBuilding=!1,console.log(rl)}},createRebuildAiEmailSetInterval(){this.stopRebuildAiEmailSetInterval(),this.aiRebuildEmailCounter=0,this.AiRebuildMailTimer=setInterval((async()=>{this.aiRebuildEmailCounter+=1;const e=await this.getAiRebuildEmailProgress();e&&(this.$emit("refreshPoint"),this.isBuilding=!1,this.aiRebuildEmailCounter=0,this.stopRebuildAiEmailSetInterval()),this.aiRebuildEmailCounter>=30&&(this.isBuilding=!1,this.aiRebuildEmailCounter=0,this.stopRebuildAiEmailSetInterval(),this.$message.error(this.$t("inboxDetail.tips2")))}),2e3)},async getAiRebuildEmailProgress(){try{const e=await i$e(this.rebuildProgressId,this.currentMailMap.sceneType);return"0"==e.code?(e.data?.isComplete&&(this.resultInfo.resultContent=e.data.aiWrite.content,this.resultInfo.historyId=e.data.aiWrite.historyId,"6"===this.type&&(this.resultInfo.resultSubject=e.data.aiWrite.subject||"",this.imitationContent=`subject:${e.data.aiWrite.subject}\n\ncontent:`+e.data.aiWrite.content)),e.data?.isComplete):(this.$message.error(e.message),!0)}catch(rl){return console.log(rl),!0}},stopRebuildAiEmailSetInterval(){this.AiRebuildMailTimer&&(clearInterval(this.AiRebuildMailTimer),this.AiRebuildMailTimer=null)},toApplyEmail(){const{resultSubject:e,resultContent:t}=this.resultInfo;if(!t)return this.$message.error("暂无可应用内容!");this.$emit("applyEmail","setContent",e,t,this.type),this.drawerClose(),this.$message.success("应用成功")}}},b$e=y$e,w$e=or(b$e,g$e,v$e,!1,null,"37765598",null),_$e=w$e.exports,C$e=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.visible,title:e.$t("edm5.v61"),width:"480px","before-close":e.closeDialog,"custom-class":"setting-nickname-dialog","close-on-click-modal":!1}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[t("div",{staticClass:"setting-tip"},[e._v(" "+e._s(e.$t("edm5.v253"))+" ")]),t("div",{staticClass:"setting-input"},[t("el-input",{attrs:{type:"input",placeholder:e.$t("edm5.v95")},model:{value:e.nickName,callback:function(t){e.nickName=t},expression:"nickName"}})],1),t("div",{staticClass:"footer-btn"},[t("el-button",{on:{click:e.closeDialog}},[e._v(e._s(e.$t("edm5.v226")))]),t("el-button",{attrs:{type:"primary",loading:e.confirmBtnLoading},on:{click:e.confirmSetting}},[e._v(e._s(e.$t("edm5.v45")))])],1)])])},x$e=[];function S$e(){return Ta("/edm/mail/getSenderInfo")}function k$e(e){return Pa("/edm/mail/saveSenderInfo",e)}var E$e={props:{visible:{type:Boolean,default:!1},nickNameDefault:{type:String,default:""}},data(){return{nickName:"",confirmBtnLoading:!1,loading:!1}},created(){this.nickNameDefault&&(this.nickName=this.nickNameDefault)},methods:{closeDialog(){this.$emit("update:visible",!1)},async getNickname(){try{this.loading=!0;const e=await S$e();"0"===e.code?this.nickName=e.data||"":this.$message.error(e.message)}catch(rl){console.log(rl),this.loading=!1}finally{this.loading=!1}},async confirmSetting(){try{if(!this.nickName)return this.$message.error(this.$t("edm5.v254"));this.confirmBtnLoading=!0;const e=await k$e({nickName:this.nickName.trim()});"0"===e.code?(this.$message.success("设置成功!"),this.$emit("updateNickName",this.nickName),this.closeDialog()):this.$message.error(e.message)}catch(rl){console.log(rl)}finally{this.confirmBtnLoading=!1}}}},D$e=E$e,A$e=or(D$e,C$e,x$e,!1,null,null,null),T$e=A$e.exports;function O$e(e){return Pa("/edm/ai/inviteEmail/save",e)}function I$e(e){return Ta(`/edm/ai/inviteEmail/${e}`)}var P$e=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.visible,title:"存为模版",width:"480px","before-close":e.closeDialog,"custom-class":"setting-nickname-dialog","close-on-click-modal":!1}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{"label-position":"top",model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"模版名称",prop:"templatesTitle"}},[t("el-input",{attrs:{maxlength:"30","show-word-limit":"",clearable:"",placeholder:"请输入模版名称"},model:{value:e.ruleForm.templatesTitle,callback:function(t){e.$set(e.ruleForm,"templatesTitle",t)},expression:"ruleForm.templatesTitle"}})],1),t("el-form-item",{attrs:{label:"应用场景",prop:"scene"}},[t("el-input",{attrs:{maxlength:"20","show-word-limit":"",placeholder:"请输入应用场景",clearable:""},model:{value:e.ruleForm.scene,callback:function(t){e.$set(e.ruleForm,"scene",t)},expression:"ruleForm.scene"}})],1),t("el-form-item",{attrs:{label:"语言",prop:"modelLanguage"}},[t("el-select",{attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:"",filterable:""},model:{value:e.ruleForm.modelLanguage,callback:function(t){e.$set(e.ruleForm,"modelLanguage",t)},expression:"ruleForm.modelLanguage"}},e._l(e.language,(function(e){return t("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),t("el-form-item",{attrs:{label:"共享状态"}},[t("el-select",{attrs:{clearable:"",placeholder:"请选择共享状态"},model:{value:e.ruleForm.isShared,callback:function(t){e.$set(e.ruleForm,"isShared",t)},expression:"ruleForm.isShared"}},[t("el-option",{key:1,attrs:{value:!0,label:"公开"}}),t("el-option",{key:2,attrs:{value:!1,label:"私有"}})],1)],1)],1),t("div",{staticClass:"footer-btn"},[t("el-button",{on:{click:function(t){return e.resetForm("ruleForm")}}},[e._v(e._s(e.$t("edm5.v226")))]),t("el-button",{attrs:{type:"primary",loading:e.confirmBtnLoading},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v(e._s(e.$t("edm5.v45")))])],1)],1)])},$$e=[];async function F$e(e){let t=await Pa("/edm/outbox/sendData",e);return"0"===t.code?t:null}async function B$e(e){let t=await Pa("/edm/inbox/receiveData",e);return t||null}async function M$e(e){let t=await Ta(`/edm/inbox/inboxDialogue/${e}`);return t||null}async function N$e(e){let t=await Ta(`/edm/inbox/inboxDetail/${e}`);return t||null}async function R$e(e){let t=await Ta(`/edm/mail/sendDetail/${e}`);return"0"===t.code?t:null}async function j$e(e){let t=await Ta(`/edm/outbox/selAiReply/${e}`);return t||null}async function L$e(e){let t=await Pa("/edm/inbox/aiReply",e);return t||null}async function z$e(e){let t=await Pa("/edm/inbox/exportReceiveData",e,"blob");return t||null}async function V$e(e){let t=await Pa("/edm/outbox/exportSendData",e,"blob");return t||null}async function H$e(e){let t=await Pa("/edm/template/addTemplate",e);return t||null}var U$e={props:{visible:{type:Boolean,default:!1},mailTempList:{type:Array,default:()=>[]},tempProductCard:{type:String,default:""}},data(){return{confirmBtnLoading:!1,loading:!1,ruleForm:{templatesTitle:"",scene:"",modelLanguage:"",isShared:!1},rules:{templatesTitle:[{required:!0,message:"请输入模版名称",trigger:"blur"}],modelLanguage:[{required:!0,message:"请选择模版语言",trigger:"change"}],scene:[{required:!0,message:"请输入应用场景",trigger:"change"}]},language:fIe}},created(){},methods:{getMailParams(){const e=this.mailTempList.find((e=>e.active));let t="";return t=e.getReplyHtml()?e.getContent()+"&nbsp;&nbsp;&nbsp;"+e.getReplyHtml()+this.tempProductCard:e.getContent()+e.getReplyHtml()+this.tempProductCard,{mailSubject:e.subject,content:t,attachments:e.fileList}},submitForm(e){const t=this.getMailParams();this.$refs[e].validate((e=>{if(!e)return console.log("error submit!!"),!1;{const e={...this.ruleForm,...t};H$e(e).then((e=>{"0"==e.code?(this.$message.success("保存成功"),this.$emit("setMailTempHandle",e.data),this.closeDialog()):this.$message.error(e.message)}))}}))},resetForm(e){this.$refs[e].resetFields(),this.closeDialog()},closeDialog(){this.$emit("update:visible",!1)}}},W$e=U$e,q$e=or(W$e,P$e,$$e,!1,null,"9fbbb3e2",null),Y$e=q$e.exports,G$e={name:"writeEmail",components:{MailBody:kd,Editor:cOe,DelayedTx:mOe,ProductList:MOe,sendNotice:VOe,sendLimit:GOe,checkMail:eIe,chooseMailNew:aIe,SettingNickName:T$e,productNewDrawer:SIe,productFormDrawer:GIe,productCardsDrawer:ePe,Tooltip:Xc,ContentBox:yPe,SignTextDrawer:FPe,MailTemplateDrawer:XPe,AiMailDialog:m$e,MailOptimizeDrawer:_$e,saveMailTempDialog:Y$e},props:{isReply:{type:Boolean,default:!1},bloggerArr:{type:Array,default:()=>[]},plan_id:{type:[Number,String],default:""},isTiming:{type:[Number,String],default:0},rowTime:{type:[Number,String],default:""},draftId:{type:[Number,String],default:""},outboxId:{type:[Number,String],default:""},userId:{type:[Number,String],default:""},dssTaskId:{tyep:[Number,String],default:""},dssTaskName:{type:String,default:""},hubTaskId:{type:[Number,String],default:""},popularizePlanId:{type:[Number,String],default:""},popularizePlanName:{type:String,default:""},hubTaskName:{type:String,default:""},sendEntryKey:{type:String,default:""},isGoogleGrayShow:{type:Boolean,default:!0},currentEnv:{type:String,default:"https://www.wotohub.com"}},computed:{allSubjectList(){return this.mailList.map((e=>e.subject))}},data(){return{mailList:[{id:"mockId-1",subject:"",fileList:[],content:"",active:!0,isAiContent:!1,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}],replyInfo:null,addresseeArr:[],loading:!1,isShowSave:!0,isShowDelayed:!1,isSpreadAddress:!1,timer:null,isBack:!1,isAutoSave:!1,isAutoSaving:!1,isAutoSaved:!1,timerId:"",editorHeight:450,cancleTimer:!1,isShowNotice:!1,isShowLimit:!1,isShowCheck:!1,isCheckType:!1,reContactList:[],riskList:[],filterBloggerArr:[],isLimit:!1,restSendNum:0,isSelfClick:!1,isScheduledMail:!1,isScheduledTime:null,checkEmails:[],isSendSuccess:!0,showChooseMail:!1,currentSetEmail:"",qiyeId:"",gmailValue:"",isMultiReply:"true"==this.$route.query.isMultiReply||1==this.$route.query.isMultiReply,isShowProductFormDrawer:!1,isShowProductDrawer:!1,isShowProductCardDrawer:!1,cardsArr:[],productTypeOpts:Object.freeze(hIe),writeId:"",currentApi:{NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_BASE_API,existIds:[],signTextDrawerVisible:!1,mailTemplateDrawerVisible:!1,aiMailVisible:!0,mailOptimizeDrawerVisible:!1,aiOptimizeType:"",aiOptimizeOriginSubject:"",aiOptimizeOriginContent:"",aiPoint:0,editBloggerLoading:!1,domTimer:null,mailIdMap:[],deleteIdList:[],settingNicknameVisible:!1,nickName:"",pageFrom:this.$route.query.pageFrom||"",currentAiPlatform:this.$route.query.currentAiPlatform||"",saveMailTempDialogVisible:!1,tempProductCard:"",totalNum:0,checkLoading:!1}},created(){if(window.onbeforeunload=function(e){return e=e||window.event,this.$t("edm5.v76")},this.isReply)this.getReplyDetail();else if(this.draftId)this.isShowSave=!1,this.getDraftDetail();else if(this.outboxId)this.getOutBoxDetail();else if(this.isMultiReply){const e=JSON.parse(localStorage.getItem("multiReplyBlogInfo"));e.forEach((e=>{this.addresseeArr.push({...e,bloggerId:e.bloggerId,bloggerName:e.bloggerName})}))}else this.$route.query.inviteAITaskId?this.getInviteAITaskDetail():"payStatusDetail"==this.$route.query.pageFrom?this.payInitTemplate():this.getMailBlogger();"AIinvitePlan"!==this.pageFrom&&(this.isMultiReply||(this.timer=window.setInterval((()=>{this.saveDraft(!1)}),6e4)),this.showNoticeEvt(),this.getSendEmailConfig(),this.getAiPoint(),this.getNickname())},mounted(){this.domTimer=setTimeout((()=>{const e=this.$refs.pageContainer.clientHeight,t=document.getElementsByClassName("w-e-toolbar")[0].offsetHeight;this.editorHeight=e-436-t}),150)},beforeDestroy(){"AIinvitePlan"!==this.pageFrom&&this.remindSave(),clearInterval(this.timer),this.timer=null,clearTimeout(this.domTimer),this.domTimer=null},destroyed(){window.onbeforeunload=null},methods:{setMailTempHandle(e){this.mailList.forEach((t=>{t.active&&(t.templateId=e)}))},saveMailTemplate(){const e=this.mailList.find((e=>e.active));if(""==e.subject)return void this.$message.error("请输入邮件主题");let t=this.cardsArr.map((e=>this.finallyCardHtml(e))).join(""),n=Is(this.cardsArr,"id");this.tempProductCard=`<product-card cardIds=${n}><div style="display:flex;overflow-x:auto">${t}</div></product-card>`,this.saveMailTempDialogVisible=!0},payInitTemplate(){const e=JSON.parse(localStorage.getItem("resultRecipientData")||"[]");e&&e.length&&e.forEach((e=>{this.addresseeArr.push({...e,bloggerId:e.bloggerId,bloggerName:e.bloggerName})}));const t=JSON.parse(localStorage.getItem("payWriteData")||"{}");this.mailList=[{attachments:[],content:`<p>To: ${this.addresseeArr[0].bloggerName}</p>\n <p>Hello!</p>\n <p>We are the official customer service team of WotoHub. On behalf of the platform and [${t.companyName}], we confirm the upcoming payment for the agreement you reached on the platform. </p>\n <p>Below are the contract details. Please review and sign them carefully:<a href="${t.payWriteUrl}" target="_blank">${t.payWriteUrl}</a></p>`,subject:"Contract Signature Required to Confirm Collaboration Payment ",id:"mockId-"+Date.now(),fileList:[],active:!0,isAiContent:!1,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}]},getInviteAITaskDetail(){I$e(this.$route.query.inviteAITaskId).then((e=>{if("0"==e.code&&e.data.emails.length){if(this.mailList=e.data.emails.map(((e,t)=>({...e,id:"mockId-"+Date.now()+t,fileList:e.attachments||[],active:0===t,isAiContent:!1,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}))),!e.data.emails||0===e.data.emails.length)return!1;if(e.data.emails[0]&&e.data.emails[0].content){let t=e.data.emails[0].content.indexOf("<product-card"),n=e.data.emails[0].content.indexOf("</product-card>"),i=e.data.emails[0].content.slice(t,n+15);const r=i.match(/cardids="([^"]+)"/);if(r&&r[1]){const e=r[1];this.addProductCard(e.split(","))}}}}))},saveInviteEmail(){this.isShowSave=!1;let e=this.cardsArr.map((e=>this.finallyCardHtml(e))).join(""),t=Is(this.cardsArr,"id"),n=`<product-card cardIds=${t}><div style="display:flex;overflow-x:auto">${e}</div></product-card>`;const i=this.mailList.map((e=>{let t="";return t=e.getReplyHtml()?e.getContent()+"&nbsp;&nbsp;&nbsp;"+e.getReplyHtml()+n:e.getContent()+e.getReplyHtml()+n,{id:e.frontId,subject:e.subject,content:t,attachments:e.fileList}})),r={taskId:this.$route.query.inviteAITaskId||"",platform:this.currentAiPlatform,emails:this.filterEmailId(i)},o=this.mailList.every((e=>!e.subject)),a=this.mailList.every((e=>e.isEmpty()));if(o||a)return this.$message.error("邮件主题和正文不能为空!");O$e(r).then((e=>{if("0"==e.code){const t=e.data;window.opener&&window.opener.postMessage(t,window.location.origin),this.$router.push({path:this.$route.path,query:{...this.$route.query,inviteAITaskId:t}}).catch((e=>{if("NavigationDuplicated"!==e.name)throw e})),this.$message.success("邮件添加成功,请回到原窗口继续创建任务!")}else this.$message.error(e.message)}))},getMailBlogger(){this.bloggerArr&&this.bloggerArr.length&&this.bloggerArr.forEach((e=>{this.addresseeArr.push({...e,bloggerId:e.bloggerId,bloggerName:e.bloggerName})}))},getReplyDetail(){const e=this.$route.query.replyId,t=this.$route.query.chatId,n=this.$route.query.replyContentId;e&&t&&Va(t).then((t=>{if(t&&t.length>0){if(e&&n){const i=t.find((e=>e.id.toString()===n));this.replyInfo=i;const r=t.find((t=>t.id.toString()===e));this.mailList[0].subject=r.subject,this.replyInfo.id=e}else{const n=t.find((t=>t.id.toString()===e));this.replyInfo=n,this.mailList[0].subject=n.subject,this.replyInfo.id=e}this.addresseeArr.push({bloggerId:this.replyInfo.bloggerId,bloggerName:this.replyInfo.bloggerName,popularizePlanId:this.$route.query.popularizePlanId&&-1!=this.$route.query.popularizePlanId?this.$route.query.popularizePlanId:void 0,popularizePlanName:this.$route.query.popularizePlanName&&"null"!=this.$route.query.popularizePlanName?this.$route.query.popularizePlanName:void 0})}}))},skipApply(e){DOe({productId:e}).then((e=>{"0"===e.code?window.open(e.data,"_blank"):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},addProduct(){this.isShowProductCardDrawer=!0,this.existIds=0==this.cardsArr.length?[]:Is(this.cardsArr,"id")},isShowProductDrawerEvt(){this.isShowProductDrawer=!0,this.existIds=0==this.cardsArr.length?[]:Is(this.cardsArr,"id")},closeProductDrawer(e){this.isShowProductDrawer=!1,e&&this.addProductCard([e])},addProductCard(e){let t=[...new Set(e.concat(this.existIds))];this.cardsArr=[],t.map((e=>{kOe({id:e}).then((e=>{let t=[],n=[];3!==e.data.source?(t=e.data.type.map((e=>{const t=this.productTypeOpts.find((t=>t.value===e))?.label;return t})),n=e.data.type.map((e=>{const t=this.productTypeOpts.find((t=>t.value===e))?.en_label;return t}))):t=e.data.type.map((e=>e));let i=t.slice();this.$set(e.data,"typeName",t),this.$set(e.data,"typeEnName",n),this.$set(e.data,"typeName3",i.splice(0,3)),this.cardsArr.push(e.data)}))}))},deleteItem(e){this.cardsArr.splice(e,1)},setProduct(e){this.singleSetEmail("addEditContent",e)},setProductFormLink(e){const t='<p><a href="'+e+'" target="_blank" >'+e+"</a></p><br />";this.singleSetEmail("addEditContent",t)},multiSendNow(){const e=JSON.parse(localStorage.getItem("multiReplyIds"));let t=this.cardsArr.map((e=>this.finallyCardHtml(e))).join(""),n=Is(this.cardsArr,"id"),i=`<product-card cardIds=${n}><div style="display:flex;overflow-x:auto">${t}</div></product-card>`,r={replyIds:e,content:this.mailList[0].getContent()+i,sendEntryKey:"inboxMultiReply"};this.loading=!0,Ka(r).then((e=>{"0"===e.code?(this.isShowSave=!1,this.$emit("skipToOutbox")):this.$message.error(e.message)})).finally((()=>{this.loading=!1}))},toGuide(){this.$emit("toGuide")},async getSendEmailConfig(){if(this.draftId);else try{const e=await Md({});"0"===e.code?this.currentSetEmail=["WOTOMAIL","GMAIL"].includes(e.data.sendType)?e.data.sendType:e.data.email:this.$message.error(e.message)}catch(rl){console.log(rl)}this.$route.query.code&&(this.showChooseMail=!0)},updateCurrentEmail({sendType:e,qiyeId:t,gmailValue:n}){this.currentSetEmail=e,this.qiyeId=t,this.gmailValue=n,this.draftId&&this.saveDraft(!1)},async getBusinessEMails(e){try{const t=await Wd({});"0"===t.code?(this.businessEmailList=t.data||[],e&&(this.currentSetEmail=t.data.find((t=>t.id===e))?.emailAddress||"")):this.$message.error(t.message)}catch(rl){console.log(rl)}},closeChooseMail(){this.showChooseMail=!1,this.isCheckType=!1},showNoticeEvt(){const e=localStorage.getItem("remind14Flag");if(e){const e=localStorage.getItem("remind14Time"),t=(new Date).getTime();e?t-e<12096e5?this.isShowNotice=!1:(this.isShowNotice=!0,localStorage.removeItem("remind14Time")):this.isShowNotice=!0}else this.isShowNotice=!0},closeNoticeEvt(e){if(this.isShowNotice=!1,localStorage.setItem("remind14Flag",e),e){const e=(new Date).getTime();localStorage.setItem("remind14Time",e)}},cancelDelaySend(){this.$confirm(`${this.$i18n.t("writeMail.mail_will")}${this.rowTime}${this.$i18n.t("writeMail.cancle_delay_tip")}`,`${this.$i18n.t("writeMail.whether_cancle_delay")}`,{confirmButtonText:`${this.$i18n.t("writeMail.cancle_delay")}`,cancelButtonText:`${this.$i18n.t("writeMail.no_cancle")}`,iconClass:"el-icon-warning",cancelButtonClass:"reback-btn-linear",confirmButtonClass:"reback-btn-face"}).then((()=>{this.cancleTimer=!0,this.saveDraft(!0)})).catch((()=>{})).finally((()=>{this.cancleTimer=!1}))},async getDraftDetail(){try{const e=await Hd(this.draftId);if("0"===e.code){if(this.mailList=e.data.map(((e,t)=>({...e,id:e.writeEmailId,fileList:e.attachmentRes||[],active:0===t,isAiContent:!1,templateId:e.templateId,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}))),!e.data||0===e.data.length)return!1;if(e.data[0]&&e.data[0].content){let t=e.data[0].content.indexOf("<product-card"),n=e.data[0].content.indexOf("</product-card>"),i=e.data[0].content.slice(t,n+15);const r=i.match(/cardids="([^"]+)"/);if(r&&r[1]){const e=r[1];this.addProductCard(e.split(","))}}if("recipient"===this.$route.query.from?this.getMailBlogger():(e.data[0]?.bloggerBeans.forEach((e=>{this.addresseeArr.push({...e,bloggerId:e.bloggerId,bloggerName:e.bloggerName})})),console.log(this.addresseeArr)),e.data[0]&&e.data[0].sendType)if(["WOTOMAIL","GMAIL"].includes(e.data[0].sendType)){if(this.currentSetEmail=e.data[0].sendType,this.qiyeId="","GMAIL"===this.currentSetEmail){const e=await Pd();"0"===e.code&&(this.gmailValue=e.data.email)}}else this.qiyeId=e.data[0].qiyeId,this.getBusinessEMails(e.data[0].qiyeId)}else this.$message.error(e.message)}catch(rl){console.log(rl)}},async getOutBoxDetail(){try{const e=this.outboxId.split(","),t=await Ud({writeIds:e});if("0"===t.code){if(this.mailList=t.data.map(((e,t)=>({...e,id:"mockId-"+Date.now()+t,fileList:e.attachmentRes||[],active:0===t,isAiContent:!1,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}))),!t.data||0===t.data.length)return!1;if(t.data[0]&&t.data[0].content){let e=t.data[0].content.indexOf("<product-card"),n=t.data[0].content.indexOf("</product-card>"),i=t.data[0].content.slice(e,n+15);const r=i.match(/cardids="([^"]+)"/);if(r&&r[1]){const e=r[1];this.addProductCard(e.split(","))}}this.getMailBlogger()}else this.$message.error(t.message)}catch(rl){console.log(rl)}},async getSendNum(e,t){await Dd({sendNum:e.length,timing:t}).then((e=>{if("0"===e.code){if(this.isLimit=0!=e.data.isExcess,this.restSendNum=e.data.surplusNum,this.isLimit)return this.isShowLimit=!0,!1;this.getReachNum(Is(this.addresseeArr,"bloggerId"))}else this.$message.error(e.message)}))},async getReachNum(e=[]){try{if(!e||!Array.isArray(e))return!1;this.checkLoading=!0;const t=await Ad({bloggerIds:e});if("0"===t.code){this.totalNum=this.addresseeArr.length||0,this.reContactList=t.data;const n=await Nd();"0"===n.code&&n.data?(this.isCheckType=!0,this.showChooseMail=!0):(this.isCheckType=!1,this.isShowCheck=!0);const i=await zd({bloggerIds:e});"0"===i.code&&(this.riskList=i.data,this.updateFilterBloggerArr(!0,!0),this.checkLoading=!1)}else this.checkLoading=!1,this.$message.error(t.message)}catch(rl){console.log(rl),this.checkLoading=!1}finally{this.checkLoading=!1}},updateFilterBloggerArr(e,t){this.filterBloggerArr=e&&t?this.addresseeArr.filter((e=>!this.reContactList.some((t=>t===e.bloggerId))&&!this.riskList.some((t=>t===e.bloggerId)))):e&&!t?this.addresseeArr.filter((e=>!this.reContactList.some((t=>t===e.bloggerId)))):!e&&t?this.addresseeArr.filter((e=>!this.riskList.some((t=>t===e.bloggerId)))):this.addresseeArr},openCheckNext(){this.isShowCheck=!0,this.showChooseMail=!1,this.isCheckType=!1},finallyCardHtml(e){const t=e.typeEnName.splice(0,2).map((e=>`<span style="margin-top:0;margin-bottom:4px;white-space:nowrap;padding:0 6px;background: rgba(0, 0, 0, 0.3);border-radius: 12px;font-weight: 500;font-size: 12px;color: #ffffff;margin-right: 6px;height:24px;line-height:24px">${e}</span>`)).join("");let n=[];e.promotePlatformType.map((e=>{0==e&&n.push("https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/youtube.png"),1==e&&n.push("https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/tiktok.png"),2==e&&n.push("https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/ins.png")}));const i=n.map((e=>`<div style="flex-shrink: 0;width: 24px;height: 24px;background: rgba(0, 0, 0, 0.3);border-radius: 12px;margin-right: 6px;"><img style="object-fit: contain; padding: 4px" src="${e}"/></div>`)).join("");let r="https://api-prd.wotohub.com",o=e.nameEn?e.nameEn.slice(0,25)+"···":"—",a=Vs(e.currency);return`<div style="display: flex"><div style="box-sizing:border-box;width: 280px; min-height: 310px; border-radius: 14px; border: 1px solid #e8e8e8; padding: 12px;margin-right:8px"><div style="position: relative; margin-bottom: 10px;"><img style="object-fit:cover;border: 1px solid #333;width: 256px;height: 150px;border-radius: 14px;" src="${e.imageUrls[0]}"/><div style="position: absolute;top: 12px;left: 12px;display: flex;align-items: center;flex-wrap:wrap">${i}${t}</div></div><div style="margin-bottom: 16px"><div style="font-weight: 600;font-size: 16px;color: #333333;line-height: 22px;margin-bottom: 4px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">${o}</div><div style="font-weight: 400;font-size: 14px;color: #666666;line-height: 20px;margin-bottom: 4px;">Price:${a}${e.priceDollar||"—"}</div><div style="font-weight: 400;font-size: 14px;color: #666666;line-height: 20px;margin-bottom: 0;">Commission rate:${e.commissionPercent||"—"}%</div></div><div style="display: flex; align-items: center"><div style="font-weight: 400;font-size: 12px;color: #999999;line-height: 17px;margin-right: 20px;"><span style="font-family: MiSans, MiSans;font-weight: 800;font-size: 18px;color: #f85277;line-height: 24px;padding-right: 6px;">${a}${(e.priceDollar*(e.commissionPercent/100)).toFixed(2)}</span> /per ordered item</div><div style="width: 75px;height: 36px;border-radius: 10px;background: #f85277;font-weight: 600;font-size: 16px;color: #ffffff;line-height: 34px;text-align: center;"><a style="color:#fff;text-decoration:none" href='${r}/user/productCard/noAuth/email/apply?productId=${e.id}' target='_blank'>Apply</a></div></div></div></div>`},async selfSend(e){let t=this.cardsArr.map((e=>this.finallyCardHtml(e))).join(""),n=Is(this.cardsArr,"id"),i=`<product-card cardIds=${n}><div style="display:flex;overflow-x:auto">${t}</div></product-card>`;const r=this.mailList.map((e=>{let t="";return t=e.getReplyHtml()?e.getContent()+"&nbsp;&nbsp;&nbsp;"+e.getReplyHtml()+i:e.getContent()+e.getReplyHtml()+i,{id:e.id,subject:e.subject,content:t,attachments:e.fileList,templateId:e.templateId}}));e&&"replaySend"===e&&(this.filterBloggerArr=this.addresseeArr);const o=this.filterBloggerArr.map((e=>({bloggerId:e.bloggerId,chooseSource:e.chooseSource||void 0,popularizePlanId:e.popularizePlanId&&-1!=e.popularizePlanId?e.popularizePlanId:void 0,popularizePlanName:e.popularizePlanName&&"null"!=e.popularizePlanName?e.popularizePlanName:void 0}))),a={emails:this.filterEmailId(r),bloggerInfos:o,type:this.isScheduledMail?2:1,timing:this.isScheduledTime||void 0,replyId:this.isReply?this.replyInfo.id:void 0,sendEntryKey:this.sendEntryKey||void 0,writeIds:this.deleteIdList.length>0?this.deleteIdList:void 0,sendType:["WOTOMAIL","GMAIL"].includes(this.currentSetEmail)?this.currentSetEmail:"QIYE",qiyeId:this.qiyeId||void 0};(this.draftId||this.timerId)&&(a.id=this.draftId||this.timerId),console.log("hubDataParams------"),console.log(a);try{this.timer&&clearInterval(this.timer),this.loading=!0;const e=await Ed(a);0==e.code?(this.mailIdMap=e.data.emails||[],this.deleteIdList=[],this.handleAiReply(e.data.groupId),this.isSendSuccess=!0,this.isShowSave=!1,this.isScheduledMail?this.isShowDelayed?this.isReply?this.$emit("skipToDraft"):setTimeout((()=>{this.isSelfClick||(this.isShowCheck=!1,this.$emit("skipToDraft"))}),3e3):this.$confirm(`${this.$i18n.t("writeMail.mail_will")}${this.rowTime}${this.$i18n.t("writeMail.save_tip")}`,`${this.$i18n.t("writeMail.set_delay_success")}`,{confirmButtonText:`${this.$i18n.t("writeMail.i_know")}`,type:"success",confirmButtonClass:"reback-btn-face",showCancelButton:!1}).then((()=>{setTimeout((()=>{this.isSelfClick||(this.isShowCheck=!1,this.$emit("skipToDraft"))}),3e3)})):(this.$message({type:"success",message:"发送成功"}),this.isReply?this.$emit("skipToOutbox"):setTimeout((()=>{this.isSelfClick||(this.isShowCheck=!1,this.$emit("skipToOutbox"))}),3e3))):(this.isSendSuccess=!1,this.$message.error(e.message))}catch(rl){console.log(rl)}finally{this.loading=!1}},skipToOut(){this.isSelfClick=!0,this.isShowCheck=!1,this.isShowSave=!1,this.isScheduledMail?this.$emit("skipToDraft"):this.$emit("skipToOutbox")},closeCheckEvt(){this.isShowCheck=!1,this.isShowDelayed=!1},send(){const e=this.checkForm();e&&(this.isScheduledMail=!1,this.isScheduledTime=null,this.checkEmails=this.mailList.map((e=>({subject:e.subject,content:e.getContent()}))),this.isReply?this.selfSend("replaySend"):this.getSendNum(Is(this.addresseeArr,"bloggerId"),null))},showDelayedTx(){const e=this.checkForm();e&&(this.isShowDelayed=!0)},sendTime(e){if(this.compareTime(new Date(e).valueOf()))return this.$message({message:`${this.$i18n.t("writeMail.time_limit")}`,type:"warning"}),!1;this.isScheduledMail=!0,this.isScheduledTime=e,this.checkEmails=this.mailList.map((e=>({subject:e.subject,content:e.getContent()}))),this.isReply?this.selfSend("replaySend"):this.getSendNum(Is(this.addresseeArr,"bloggerId"),e)},async saveDraft(e){let t=this.cardsArr.map((e=>this.finallyCardHtml(e))).join(""),n=Is(this.cardsArr,"id"),i=`<product-card cardIds=${n}><div style="display:flex;overflow-x:auto">${t}</div></product-card>`;const r=this.mailList.map((e=>({id:e.id,subject:e.subject,content:e.getContent()+"&nbsp;&nbsp;&nbsp;"+e.getReplyHtml()+i,attachments:e.fileList,templateId:e.templateId}))),o=this.addresseeArr.map((e=>({bloggerId:e.bloggerId,chooseSource:e.chooseSource||void 0,popularizePlanId:e.popularizePlanId&&-1!=e.popularizePlanId?e.popularizePlanId:void 0,popularizePlanName:e.popularizePlanName&&"null"!=e.popularizePlanName?e.popularizePlanName:void 0}))),a={id:"",emails:this.filterEmailId(r),bloggerInfos:o,type:1!=this.isTiming||this.cancleTimer?99:2,timing:1!=this.isTiming||this.cancleTimer?void 0:this.rowTime,replyId:this.isReply?this.replyInfo.id:void 0,sendEntryKey:this.sendEntryKey,writeIds:this.deleteIdList.length>0?this.deleteIdList:void 0,sendType:["WOTOMAIL","GMAIL"].includes(this.currentSetEmail)?this.currentSetEmail:"QIYE",qiyeId:this.qiyeId||void 0};this.isAutoSave=!e,this.isAutoSaving=this.isAutoSave,(this.draftId||this.timerId)&&(a.id=this.draftId||this.timerId);const s=this.mailList.every((e=>!e.subject)),l=this.mailList.every((e=>e.isEmpty())),c=this.mailList.every((e=>0===e.fileList.length));if(0===o.length&&s&&l&&c)return!!e&&this.$message.error(this.$t("edm5.v77"));try{this.loading=!0;const t=await Ed(a);return 0==t.code?(this.mailIdMap=t.data.emails||[],this.deleteIdList=[],this.draftId||this.timerId||(this.timerId=t.data.groupId,this.handleAiReply(t.data.groupId)),e?this.isBack?this.$router.go(-1):this.$emit("skipToDraft"):(setTimeout((()=>{this.isAutoSaving=!1}),1500),setTimeout((()=>{this.isAutoSaved=!0}),1501),setTimeout((()=>{this.isAutoSaved=!1,this.isAutoSave=!1}),3e3)),!0):(this.isAutoSave=!1,this.$message.error(t.message),!1)}catch(rl){return console.log(rl),!1}finally{this.loading=!1}},remindSave(){if(this.isShowSave){const e=confirm(`${this.$i18n.t("writeMail.save_draft_tip")}`);e&&this.saveDraft(!0)}},checkForm(){if(!this.addresseeArr.length)return this.$message({type:"warning",message:`${this.$i18n.t("writeMail.no_receiver")}`}),!1;let e=!1,t=!1,n=!1,i=!1;return this.mailList.forEach((r=>{r.subject||(e=!0),r.length>100&&(t=!0),r.isEmpty()&&(n=!0),r.getTextContent().length>5e3&&(i=!0)})),e?(this.$message({type:"warning",message:`${this.$i18n.t("writeMail.no_subject")}`}),!1):t?(this.$message({type:"warning",message:`${this.$i18n.t("writeMail.subject_limit")}`}),!1):n?(this.$message({type:"warning",message:`${this.$i18n.t("writeMail.no_content")}`}),!1):!i||(this.$message({type:"warning",message:`${this.$i18n.t("writeMail.content_limit")}`}),!1)},setMailTemplate(e){this.mailTemplateDrawerVisible=!1,Vd(e.id).then((e=>{if("0"==e.code){const t=e.data;if(t&&(t.attachmentRes&&t.attachmentRes.length&&t.attachmentRes.forEach((e=>{delete e.id})),this.mailList.forEach((e=>{e.active&&(e.subject=t.mailSubject,e.templateId=t.id,e.fileList=t.attachmentRes,e.setContent&&e.setContent(t.content))})),t.content)){let e=t.content.indexOf("<product-card"),n=t.content.indexOf("</product-card>"),i=t.content.slice(e,n+15);const r=i.match(/cardids="([^"]+)"/);if(r&&r[1]){const e=r[1];this.addProductCard(e.split(","))}}}else this.$message.error(e.message)})).catch((()=>{}))},setMailSign(e){this.singleSetEmail("addEditContent",e)},compareTime(e){return new Date(e).getTime()-(new Date).getTime()<0},handleAiReply(e){this.$route.query.aiId&&os({aiEmailId:Number(this.$route.query.aiId),writeId:e})},toAddEmail(e="",t="",n=!1){this.mailList=this.mailList.map((e=>({...e,active:!1}))),this.mailList.push({id:"mockId-"+Date.now(),subject:e,fileList:[],content:t,active:!0,isAiContent:n,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}})},toggleEmailTag(e){this.mailList=this.mailList.map((t=>({...t,active:e===t.id})))},deleteEmail(e){if(this.mailList.length<=1)return!1;this.$confirm(this.$t("edm5.v78"),this.$t("edm5.v79"),{confirmButtonText:this.$t("edm5.v45"),cancelButtonText:"取消",type:"warning"}).then((()=>{const t=this.mailIdMap.find((t=>t.frontId===e));t&&this.deleteIdList.push(t.writeId),e&&!(e+"").includes("mockId-")&&this.deleteIdList.push(e),this.deleteEmailFn(e)})).catch((()=>{}))},deleteEmailFn(e){this.mailList=this.mailList.filter((t=>t.id!==e)),this.mailList.every((e=>!e.active))&&this.$set(this.mailList,0,{...this.mailList[0],active:!0})},singleSetEmail(e,t){if(!e)return!1;this.mailList.forEach((n=>{n.active&&n[e]&&n[e](t)}))},batchSetEmail(e,t){if(!e)return!1;this.mailList.forEach((n=>{n[e]&&n[e](t)}))},applyEmails(e){const t=e.map(((e,t)=>{const{subject:n,content:i}=e;return{id:"mockId-"+Date.now()+t,subject:n,content:i,fileList:[],active:!1,isAiContent:!0,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}}));let n=this.mailList;n.forEach((e=>{if(""===e.subject&&e.isEmpty()&&0===e.fileList.length){const n=t.shift();e.isAiContent=!0,e.subject=n?n.subject:e.subject,e.content="",this.$nextTick((()=>{e.content=n?n.content:e.content}))}}));const i=n.length,r=t.length,o=i+r-5;if(o>0){const e=i-o;n.forEach(((n,i)=>{if(i>=e){const e=t.shift();n.isAiContent=!0,n.subject=e?e.subject:n.subject,n.content="",this.$nextTick((()=>{n.content=e?e.content:n.content}))}})),n=n.concat(t)}else n=n.concat(t);this.mailList=n,this.mailList.every((e=>!e.active))&&this.$set(this.mailList,this.mailList.length-1,{...this.mailList.at(-1),active:!0}),this.aiMailVisible=!1},handleOptimize(e){this.aiOptimizeOriginSubject="",this.aiOptimizeOriginContent="";const t=this.mailList.find((e=>e.active));if(!(t&&t.getTextContent&&t.isEmpty)||t.isEmpty())return this.$message.error(this.$t("edm5.v80"));"6"===e&&(this.aiOptimizeOriginSubject=t.subject),this.aiOptimizeOriginContent=t.getContent(),this.aiOptimizeType=e,this.mailOptimizeDrawerVisible=!0},applyEmail(e,t,n,i){if("6"===i){const e=this.mailList.findIndex((e=>""===e.subject&&e.isEmpty()&&0===e.fileList.length));e>-1?this.$set(this.mailList,e,{...this.mailList[e],subject:t,content:n,active:!0,isAiContent:!0}):-1===e&&this.mailList.length<5?this.toAddEmail(t,n,!0):-1===e&&5===this.mailList.length&&this.$set(this.mailList,this.mailList.length-1,{...this.mailList.at(-1),subject:t,content:n,active:!0,isAiContent:!0})}else this.singleSetEmail(e,n)},async getAiPoint(){this.aiPoint=await zs()},filterEmailId(e=[]){return e&&Array.isArray(e)&&e.length>0?e.map((e=>{const t=this.mailIdMap.find((t=>t.frontId===e.id));let n,i;return e.id&&(e.id+"").includes("mockId-")&&!t&&(n=e.id),e.id&&t&&t.frontId&&(n=t.frontId),e.id&&(e.id+"").includes("mockId-")&&t&&t.writeId&&(i=t.writeId),e.id&&!(e.id+"").includes("mockId-")&&(i=e.id),{...e,frontId:n,id:i}})):[]},async toEditBlogger(){this.editBloggerLoading=!0,this.isShowSave=!1,await this.saveDraft(!1);const e=this.draftId||this.timerId;e?(this.editBloggerLoading=!1,this.$router.push({path:"/recipientList",query:{draftId:e,isTiming:this.isTiming,rowTime:this.rowTime}})):(this.$message.error(this.$t("edm5.v81")),this.editBloggerLoading=!1)},test(){console.log(this.mailList)},filterEmptyEmail(){const e=this.mailList||[];if(!e||!Array.isArray(e))return[];{let t=0;e.some((e=>{const{subject:n,isEmpty:i,fileList:r}=e;if(""!==n||!i()||0!==r.length)return!0;t+=1})),t>0&&this.mailList.splice(0,t)}},async getNickname(){try{const e=await S$e();"0"===e.code?this.nickName=e.data||"":this.$message.error(e.message)}catch(rl){console.log(rl)}}}},K$e=G$e,X$e=or(K$e,yd,bd,!1,null,"33a7014c",null),Z$e=X$e.exports,J$e=function(){var e=this,t=e._self._c;return t("div",{staticClass:"outbox-container"},[t("div",{staticClass:"outbox-tab"},[t("el-tabs",{staticClass:"tab-wrap",class:{"tab-wrap-en":"en"===e.language},attrs:{type:"card",stretch:""},on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:e.$t("edm2.mailEn1"),name:"first"}},["first"===e.activeName?t("single-send-mail",{attrs:{isShowSearch:e.isShowSearch,scrollTop:e.scrollTop}}):e._e()],1),t("el-tab-pane",{attrs:{label:e.$t("edm2.mailEn3"),name:"third"}},["third"===e.activeName?t("reply-send-mail",{attrs:{isShowSearch:e.isShowSearch,scrollTop:e.scrollTop}}):e._e()],1)],1),"first"===e.activeName?t("div",{staticClass:"write-btn",class:{"write-btn-en":"en"===e.language},on:{click:e.writeEmail}},[t("i",{staticClass:"dss-iconfont icon-pen1"}),t("span",[e._v(e._s(e.$t("edm2.mailEn5")))])]):e._e()],1)])},Q$e=[],eFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"single-send-table"},[t("div",{staticClass:"inbox-search-wrap"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.blogger_name")))]),t("el-input",{staticClass:"col-input",attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},model:{value:e.searchForm.bloggerName,callback:function(t){e.$set(e.searchForm,"bloggerName",t)},expression:"searchForm.bloggerName"}})],1),t("div",{staticClass:"col-item col-select-input-item"},[t("el-input",{staticClass:"col-input-select",attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.contentInput,callback:function(t){e.contentInput=t},expression:"contentInput"}},[t("el-select",{attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},on:{change:e.changeContentMode},slot:"prepend",model:{value:e.contentSelect,callback:function(t){e.contentSelect=t},expression:"contentSelect"}},[t("el-option",{attrs:{label:e.$t("edm2.mailEn6"),value:"1"}}),t("el-option",{attrs:{label:e.$t("edm2.mailEn7"),value:"2"}})],1)],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(" "+e._s(e.$i18n.t("deliveryTime.Delivery_time"))+" ")]),t("el-date-picker",{staticClass:"col-date",attrs:{align:"right",type:"daterange",placeholder:e.$t("edm2.mailEn8"),"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd"},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.star_mail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.isStar,callback:function(t){e.$set(e.searchForm,"isStar",t)},expression:"searchForm.isStar"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("outboxMail.star_mail")}}),t("el-option",{attrs:{value:"",label:e.$i18n.t("outboxMail.all_mail")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.mail_type")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.writeType,callback:function(t){e.$set(e.searchForm,"writeType",t)},expression:"searchForm.writeType"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("outboxMail.normal")}}),t("el-option",{attrs:{value:2,label:e.$i18n.t("outboxMail.delay")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$t("inboxMail.search.sendEmail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$t("inboxMail.search.defaultSelect"),clearable:""},model:{value:e.searchForm.sentMail,callback:function(t){e.$set(e.searchForm,"sentMail",t)},expression:"searchForm.sentMail"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.sysEmail")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.businessEmail")}})],1)],1),t("div",[t("el-button",{attrs:{type:"primary"},on:{click:e.confirmEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.search"))+" ")]),t("el-button",{on:{click:e.resetEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.reset"))+" ")])],1)])]),t("div",{staticClass:"mail-table-wrap"},[t("WTable",{ref:"mailTable",staticClass:"mail-table",attrs:{"row-key":"id",tableConfig:{selection:!0,selectionFixed:!0},tableColumnConfig:e.tableColumnConfig,tableData:e.tableData,height:null,"max-height":null,"min-height":e.tableHeight,isNeedScroll:!0,loading:e.loading,total:e.total,pageSize:e.searchForm.pageSize,pageNum:e.searchForm.currentPage},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page-size":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:page-num":function(t){return e.$set(e.searchForm,"currentPage",t)},changeSize:function(t){return e.init()},changeCurrent:function(t){return e.init()},"row-click":e.skipDetail,"selection-change":e.selectTableRow,"row-contextmenu":e.rightClick},scopedSlots:e._u([{key:"isStar",fn:function({data:n}){return[t("i",{staticClass:"pm-iconfont",class:1===n.scope.isStar?"icon-star1":"icon-star0",staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.starOutboxEvt(n.scope)}}})]}},{key:"readStatus",fn:function({data:n}){return[t("div",{staticClass:"flex items-center"},[t("i",{staticClass:"dss-iconfont relative mr8",class:n.scope.readNum?"icon-read-2 mail-read":"icon-contact2 mail-status-hub"}),t("p",{class:n.scope.readNum?"":"mail-bold-name",staticStyle:{"white-space":"nowrap"}},[e._v(" "+e._s(n.scope.readNum===n.scope.number?`${e.$i18n.t("outboxMail.all_read")}`:n.scope.readNum?n.scope.readNum+`${e.$i18n.t("outboxMail.read")}`:`${e.$i18n.t("outboxMail.all_unread")}`)+" ")])])]}},{key:"bloggers",fn:function({data:n}){return[t("div",{staticClass:"mail-name flex items-center"},[t("p",{staticClass:"beyond_eip mr8",class:n.scope.readNum?"":"mail-bold-name"},[e._v(" "+e._s(n.scope.showNames)+" ")]),n.scope.number?t("span",{staticClass:"span-hub"},[e._v(" "+e._s(n.scope.number>999?"999+":n.scope.number)+" ")]):e._e()])]}},{key:"deliveryRate",fn:function({data:n}){return[t("div",{staticClass:"mail-rate"},[e._v(" "+e._s((100*n.scope.deliveryRate).toFixed(2))+"% ")]),t("el-progress",{staticClass:"list-progress",attrs:{percentage:Number((100*n.scope.deliveryRate).toFixed(2)),color:"#555CFD","show-text":!1}})]}},{key:"openRate",fn:function({data:n}){return[t("div",{staticClass:"mail-rate"},[e._v(" "+e._s((100*n.scope.openRate).toFixed(2))+"% ")]),t("el-progress",{staticClass:"list-progress",attrs:{percentage:Number((100*n.scope.openRate).toFixed(2)),color:"#FFAC04","show-text":!1}})]}},{key:"replyRate",fn:function({data:n}){return[t("div",{staticClass:"mail-rate"},[e._v(" "+e._s((100*n.scope.replyRate).toFixed(2))+"% ")]),t("el-progress",{staticClass:"list-progress",attrs:{percentage:Number((100*n.scope.replyRate).toFixed(2)),color:"#73DEB3","show-text":!1}})]}},{key:"operation",fn:function({data:n}){return[t("el-link",{attrs:{type:"primary",size:"small",underline:!1},on:{click:function(t){return t.stopPropagation(),e.recallMail(n.scope)}}},[e._v("撤回")])]}}])}),t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){e.searchForm.currentPage=1,e.init(!0)}}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})]),t("div",{staticClass:"tool-item",on:{click:function(t){return e.deleteEvt()}}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})]),t("div",{staticClass:"tool-item",on:{click:e.hiddenAiMail}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.searchForm.isHide?"显示AI自动邀约邮件":e.$i18n.t("edm2.mailEn20"),placement:"top"}},[e.searchForm.isHide?t("i",{staticClass:"dss-iconfont"},[e._v("")]):e._e(),e.searchForm.isHide?e._e():t("i",{staticClass:"dss-iconfont"},[e._v("")])])],1)])])],1)])},tFe=[],nFe=i(4353),iFe=i.n(nFe),rFe={components:{WTable:UIe},props:{isShowSearch:{type:Boolean,default:!0},scrollTop:{type:Number,default:0}},data(){return{searchForm:{bloggerName:"",subject:"",content:"",sendTimeBegin:"",sendTimeEnd:"",isStar:null,writeType:"",sentMail:"",isHide:"true"==localStorage.getItem("aiEmailIsHidden"),currentPage:1,pageSize:20},contentInput:"",contentSelect:"1",timeRange:[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],tableColumnConfig:[{label:"",scope:"isStar",width:"48"},{label:"",scope:"readStatus",width:"110"},{label:Mc.t("writeMail.receiver"),scope:"bloggers"},{label:Mc.t("edm2.mailEn6"),prop:"subject",showOverflowTooltip:!0,minWidth:"200"},{label:Mc.t("edm2.mailEn9"),scope:"deliveryRate",width:"120",tips:Mc.t("edm5.v40")},{label:Mc.t("edm2.mailEn10"),scope:"openRate",width:"120",tips:Mc.t("edm5.v40")},{label:Mc.t("edm2.mailEn11"),scope:"replyRate",width:"120",tips:Mc.t("edm5.v40")},{label:Mc.t("edm2.mailEn12"),prop:"sendTime",width:"200"},{label:"操作",scope:"operation",width:"100"}],tableData:[],loading:!1,total:0,tableHeight:js(332),selectData:[],pickerOptions:{shortcuts:[{text:Mc.t("deliveryTime.three_months"),onClick(e){e.$emit("pick",[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.past_six_months"),onClick(e){e.$emit("pick",[iFe()().subtract(6,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.all_emails"),onClick(e){e.$emit("pick",[iFe()().subtract(120,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}}]}}},created(){localStorage.getItem("searchFlag")?localStorage.getItem("searchForm")?this.searchForm=JSON.parse(localStorage.getItem("searchForm")):this.searchForm=this.$options.data().searchForm:localStorage.removeItem("searchForm"),this.init()},destroyed(){localStorage.removeItem("searchFlag")},methods:{recallMail(e){console.log(e,"row"),this.$confirm("请确认是否撤回该邮件?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{ku(e.id).then((e=>{"0"==e.code?(this.$message({type:"success",showClose:!0,duration:7e3,message:"撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"}),this.init()):this.$message({type:"error",showClose:!0,duration:7e3,message:e.message})}))})).catch((()=>{}))},changeContentMode(e){this.contentSelect=e,this.contentInput=""},init(e){console.log("初始化",e,this.searchForm),e&&this.clearTableData(),this.loading=!0,1==this.contentSelect?(this.searchForm.content="",this.searchForm.subject=this.contentInput):2==this.contentSelect&&(this.searchForm.subject="",this.searchForm.content=this.contentInput),null==this.timeRange?(this.searchForm.sendTimeBegin="",this.searchForm.sendTimeEnd=""):(this.searchForm.sendTimeBegin=this.timeRange[0],this.searchForm.sendTimeEnd=this.timeRange[1]),vu(this.searchForm).then((e=>{this.loading=!1,0==e.code?(this.tableData=e.data.rows.map((e=>({...e,showNames:Is(e.bloggers,"bloggerName").join(",")}))),this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},starOutboxEvt(e){let t={mailId:e.id,isStar:0===e.isStar?1:0};yu(t).then((e=>{0==e.code?this.init():this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},skipDetail(e){localStorage.setItem("searchForm",JSON.stringify(this.searchForm)),localStorage.setItem("outboxActiveName","first"),this.$router.push({path:"/outboxDetail",query:{id:e.id,enterType:1}})},deleteEvt(){this.selectData.length?this.$confirm(this.$t("inboxTable.delMail"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning"}).then((()=>{wu({mailId:this.selectData}).then((e=>{0==e.code?(this.clearTableData(),this.init(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`,duration:1500})):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))})).catch((()=>{})):this.$message({type:"warning",message:`${this.$i18n.t("outboxMail.choose")}`})},hiddenAiMail(){this.searchForm.isHide=!this.searchForm.isHide,localStorage.setItem("aiEmailIsHidden",this.searchForm.isHide),this.searchForm.currentPage=1,this.init()},confirmEvt(){this.searchForm.currentPage=1,this.init()},resetEvt(){localStorage.removeItem("searchForm"),localStorage.removeItem("searchFlag"),this.searchForm=this.$options.data().searchForm,this.timeRange=[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],this.contentInput="",this.contentSelect="1",this.init(!0)},selectTableRow(e){this.selectData=Is(e,"id")},clearTableData(){this.searchForm.currentPage=1,this.$refs.mailTable.$refs.xTable.clearSelection(),this.selectData=[]},rightClick(e,t,n){return n.preventDefault(),this.$contextmenu({items:[{label:"在新标签页中打开邮件",icon:"el-icon-plus",onClick:()=>{const t=this.$router.resolve({path:"/outboxDetail",query:{id:e.id,enterType:1}});window.open(t.href,"_blank")}},{label:"刷新列表数据",icon:"el-icon-refresh",onClick:()=>{this.init()}},{label:"复制邮件主题",icon:"el-icon-document-copy",disabled:!e.subject,onClick:()=>{this.copyText(e.subject)}}],event:n,customClass:"contextmenu-container",zIndex:3,minWidth:230}),!1},copyText(e){const t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$message({type:"success",message:"已复制到剪贴板"})}}},oFe=rFe,aFe=or(oFe,eFe,tFe,!1,null,"b6955ade",null),sFe=aFe.exports,lFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"reply-send-table"},[t("div",{staticClass:"inbox-search-wrap"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.blogger_name")))]),t("el-input",{staticClass:"col-input",attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},model:{value:e.searchForm.bloggerName,callback:function(t){e.$set(e.searchForm,"bloggerName",t)},expression:"searchForm.bloggerName"}})],1),t("div",{staticClass:"col-item col-select-input-item"},[t("el-input",{staticClass:"col-input-select",attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.contentInput,callback:function(t){e.contentInput=t},expression:"contentInput"}},[t("el-select",{attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},on:{change:e.changeContentMode},slot:"prepend",model:{value:e.contentSelect,callback:function(t){e.contentSelect=t},expression:"contentSelect"}},[t("el-option",{attrs:{label:e.$t("edm2.mailEn6"),value:"1"}}),t("el-option",{attrs:{label:e.$t("edm2.mailEn7"),value:"2"}})],1)],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(" "+e._s(e.$i18n.t("deliveryTime.Delivery_time"))+" ")]),t("el-date-picker",{staticClass:"col-date",attrs:{align:"right",type:"daterange",placeholder:e.$t("edm2.mailEn8"),"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd"},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.star_mail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.isStar,callback:function(t){e.$set(e.searchForm,"isStar",t)},expression:"searchForm.isStar"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("outboxMail.star_mail")}}),t("el-option",{attrs:{value:"",label:e.$i18n.t("outboxMail.all_mail")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.mail_type")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.writeType,callback:function(t){e.$set(e.searchForm,"writeType",t)},expression:"searchForm.writeType"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("outboxMail.normal")}}),t("el-option",{attrs:{value:2,label:e.$i18n.t("outboxMail.delay")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$t("inboxMail.search.sendEmail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$t("inboxMail.search.defaultSelect"),clearable:""},model:{value:e.searchForm.sentMail,callback:function(t){e.$set(e.searchForm,"sentMail",t)},expression:"searchForm.sentMail"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.sysEmail")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.businessEmail")}})],1)],1),t("div",[t("el-button",{attrs:{type:"primary"},on:{click:e.confirmEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.search"))+" ")]),t("el-button",{on:{click:e.resetEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.reset"))+" ")])],1)])]),t("div",{staticClass:"mail-table-wrap"},[t("WTable",{ref:"mailTable",staticClass:"mail-table",attrs:{"row-key":"id",tableConfig:{selection:!0,selectionFixed:!0},tableColumnConfig:e.tableColumnConfig,tableData:e.tableData,isNeedScroll:!0,height:null,"max-height":null,"min-height":e.tableHeight,loading:e.loading,total:e.total,pageSize:e.searchForm.pageSize,pageNum:e.searchForm.currentPage},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page-size":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:page-num":function(t){return e.$set(e.searchForm,"currentPage",t)},changeSize:function(t){return e.init()},changeCurrent:function(t){return e.init()},"row-click":e.skipDetail,"selection-change":e.selectTableRow,"row-contextmenu":e.rightClick},scopedSlots:e._u([{key:"isStar",fn:function({data:n}){return[t("i",{staticClass:"pm-iconfont",class:1===n.scope.isStar?"icon-star1":"icon-star0",staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.starOutboxEvt(n.scope)}}})]}},{key:"readStatus",fn:function({data:n}){return[t("div",{staticClass:"flex items-center"},[t("i",{staticClass:"dss-iconfont relative mr8",class:2==n.scope.isRead?"icon-read-2 mail-read":"icon-contact2 mail-status-hub"}),t("p",{class:2==n.scope.isRead?"":"mail-bold-name"},[e._v(" "+e._s(2==n.scope.isRead?`${e.$i18n.t("inboxMail.search.read")}`:`${e.$i18n.t("inboxMail.search.unRead")}`)+" ")])])]}},{key:"popularizePlanName",fn:function({data:n}){return[t("div",{staticClass:"plan-cell",on:{click:function(t){return t.stopPropagation(),e.goPlanDetail(n.scope.popularizePlanId,n.scope)}}},[n.scope.popularizePlanName?t("i",{staticClass:"dss-iconfont icon-task plan-i"}):e._e(),t("span",{class:{"overflow-text":!0,"bold-name":1==n.scope.isRead&&null!==n.scope.popularizePlanName&&""!==n.scope.popularizePlanName}},[e._v(" "+e._s(n.scope.popularizePlanName?n.scope.popularizePlanName:e.$t("deliveryTime.no_promotion_plan"))+" ")])])]}},{key:"content",fn:function({data:n}){return[t("span",{staticClass:"beyond_eip",domProps:{innerHTML:e._s(e.filterHtmlTag(n.scope.content))}})]}},{key:"operation",fn:function({data:n}){return[t("el-link",{attrs:{type:"primary",size:"small",underline:!1},on:{click:function(t){return t.stopPropagation(),e.recallMail(n.scope)}}},[e._v("撤回")])]}}])}),t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){e.searchForm.currentPage=1,e.init(!0)}}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})]),t("div",{staticClass:"tool-item",on:{click:function(t){return e.deleteEvt()}}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})])])])],1)])},cFe=[],uFe={components:{WTable:UIe},props:{isShowSearch:{type:Boolean,default:!0},scrollTop:{type:Number,default:0}},data(){return{searchForm:{bloggerName:"",subject:"",content:"",sendTimeBegin:"",sendTimeEnd:"",isStar:null,writeType:"",sentMail:"",isHidden:0,currentPage:1,pageSize:20},tableColumnConfig:[{label:"",scope:"isStar",width:"48"},{label:"",scope:"readStatus",width:"110"},{label:Mc.t("writeMail.receiver"),prop:"bloggerName",showOverflowTooltip:!0},{label:Mc.t("inboxDetail.planVal"),scope:"popularizePlanName"},{label:Mc.t("edm2.mailEn6"),prop:"subject",showOverflowTooltip:!0},{label:Mc.t("edm2.mailEn7"),scope:"content"},{label:Mc.t("edm2.mailEn12"),prop:"sendTime",width:"200"},{label:"操作",scope:"operation",width:"100"}],contentInput:"",contentSelect:"1",timeRange:[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],tableData:[],loading:!1,total:0,tableHeight:js(332),selectData:[],pickerOptions:{shortcuts:[{text:Mc.t("deliveryTime.three_months"),onClick(e){e.$emit("pick",[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.past_six_months"),onClick(e){e.$emit("pick",[iFe()().subtract(6,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.all_emails"),onClick(e){e.$emit("pick",[iFe()().subtract(120,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}}]}}},created(){localStorage.getItem("searchFlag")?localStorage.getItem("searchForm")?this.searchForm=JSON.parse(localStorage.getItem("searchForm")):this.searchForm=this.$options.data().searchForm:localStorage.removeItem("searchForm"),this.init()},destroyed(){localStorage.removeItem("searchFlag")},methods:{recallMail(e){console.log(e,"row"),this.$confirm("请确认是否撤回该邮件?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{ku(e.id).then((e=>{"0"==e.code?(this.$message({type:"success",showClose:!0,duration:7e3,message:"撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"}),this.init()):this.$message({type:"error",showClose:!0,duration:7e3,message:e.message})}))})).catch((()=>{}))},filterHtmlTag(e){return e&&(e=e.replace(/<head>[\s\S]*?<\/head>/i,""),e=e.replace(/<img[^>]*>/gi,""),e=e.replace(/<pre>[\s\S]*?<\/pre>/i,""),e=e.replace(/<[^>]+>|&[^>]+;/g,""),e=e.replace(new RegExp("&nbsp;","g")," ")),e},changeContentMode(e){this.contentSelect=e,this.contentInput=""},init(e){e&&this.clearTableData(),this.loading=!0,1==this.contentSelect?(this.searchForm.content="",this.searchForm.subject=this.contentInput):2==this.contentSelect&&(this.searchForm.subject="",this.searchForm.content=this.contentInput),null==this.timeRange?(this.searchForm.sendTimeBegin="",this.searchForm.sendTimeEnd=""):(this.searchForm.sendTimeBegin=this.timeRange[0],this.searchForm.sendTimeEnd=this.timeRange[1]),bu(this.searchForm).then((e=>{this.loading=!1,0==e.code?(this.tableData=e.data.rows,this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},starOutboxEvt(e){let t={mailId:e.id,isStar:0===e.isStar?1:0};yu(t).then((e=>{0==e.code?this.init():this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},skipDetail(e){localStorage.setItem("searchForm",JSON.stringify(this.searchForm)),localStorage.setItem("outboxActiveName","third"),this.$router.push({path:"/outboxDetail",query:{id:e.id,enterType:2}})},deleteEvt(){this.selectData.length?this.$confirm(this.$t("inboxTable.delMail"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning"}).then((()=>{wu({mailId:this.selectData}).then((e=>{0==e.code?(this.clearTableData(),this.init(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`,duration:1500})):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))})).catch((()=>{})):this.$message({type:"warning",message:`${this.$i18n.t("outboxMail.choose")}`})},confirmEvt(){this.searchForm.currentPage=1,this.init()},resetEvt(){localStorage.removeItem("searchForm"),localStorage.removeItem("searchFlag"),this.searchForm=this.$options.data().searchForm,this.timeRange=[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],this.contentInput="",this.contentSelect="1",this.init(!0)},selectTableRow(e){this.selectData=Is(e,"id")},clearTableData(){this.searchForm.currentPage=1,this.$refs.mailTable.$refs.xTable.clearSelection(),this.selectData=[]},goPlanDetail(e,t){"-1"!==e&&this.$router.push({path:"/planDetail",query:{planId:e}})},rightClick(e,t,n){return n.preventDefault(),this.$contextmenu({items:[{label:"在新标签页中打开邮件",icon:"el-icon-plus",onClick:()=>{const t=this.$router.resolve({path:"/outboxDetail",query:{id:e.id,enterType:2}});window.open(t.href,"_blank")}},{label:"刷新列表数据",icon:"el-icon-refresh",onClick:()=>{this.init()}},{label:"复制邮件主题",icon:"el-icon-document-copy",disabled:!e.subject,onClick:()=>{this.copyText(e.subject)}},{label:"复制推广计划名",icon:"el-icon-document-copy",disabled:!e.popularizePlanName,onClick:()=>{this.copyText(e.popularizePlanName)}}],event:n,customClass:"contextmenu-container",zIndex:3,minWidth:230}),!1},copyText(e){const t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$message({type:"success",message:"已复制到剪贴板"})}}},dFe=uFe,hFe=or(dFe,lFe,cFe,!1,null,"6dafcb1e",null),pFe=hFe.exports,fFe={name:"outBox",components:{singleSendMail:sFe,replySendMail:pFe},props:{scrollTop:{type:Number,default:0}},data(){return{activeName:"first",isShowSearch:!0,language:Wi.get("language")}},created(){localStorage.getItem("searchFlag")?localStorage.getItem("outboxActiveName")?this.activeName=localStorage.getItem("outboxActiveName"):this.activeName="first":(localStorage.removeItem("searchForm"),localStorage.removeItem("outboxActiveName"))},destroyed(){localStorage.removeItem("searchFlag")},methods:{handleTabClick(e){localStorage.setItem("outboxActiveName",e.name),localStorage.removeItem("searchForm"),localStorage.removeItem("searchFlag")},writeEmail(){localStorage.removeItem("beforeSelected"),localStorage.removeItem("resultRecipientData");const e=this.$router.resolve({path:"/recipientList"});window.open(e.href,"_blank")}}},mFe=fFe,gFe=or(mFe,J$e,Q$e,!1,null,"1d113158",null),vFe=gFe.exports,yFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"drafts-container"},[t("div",{staticClass:"drafts-tab"},[t("el-tabs",{staticClass:"tab-wrap",class:{"tab-wrap-en":"en"===e.language},attrs:{type:"card",stretch:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:e.$t("edm2.mailEn1"),name:"first"}},["first"===e.activeName?t("single-drafts-mail",{attrs:{isShowSearch:e.isShowSearch,scrollTop:e.scrollTop}}):e._e()],1),t("el-tab-pane",{attrs:{label:e.$t("edm2.mailEn3"),name:"third"}},["third"===e.activeName?t("reply-drafts-mail",{attrs:{isShowSearch:e.isShowSearch,scrollTop:e.scrollTop}}):e._e()],1)],1)],1)])},bFe=[],wFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"single-drafts-table"},[t("div",{staticClass:"inbox-search-wrap"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.blogger_name")))]),t("el-input",{staticClass:"col-input",attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},model:{value:e.searchForm.bloggerName,callback:function(t){e.$set(e.searchForm,"bloggerName",t)},expression:"searchForm.bloggerName"}})],1),t("div",{staticClass:"col-item col-select-input-item"},[t("el-input",{staticClass:"col-input-select",attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.contentInput,callback:function(t){e.contentInput=t},expression:"contentInput"}},[t("el-select",{attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},on:{change:e.changeContentMode},slot:"prepend",model:{value:e.contentSelect,callback:function(t){e.contentSelect=t},expression:"contentSelect"}},[t("el-option",{attrs:{label:e.$t("edm2.mailEn6"),value:"1"}}),t("el-option",{attrs:{label:e.$t("edm2.mailEn7"),value:"2"}})],1)],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(" "+e._s(e.$i18n.t("deliveryTime.Delivery_time"))+" ")]),t("el-date-picker",{staticClass:"col-date",attrs:{align:"right",type:"daterange",placeholder:e.$t("edm2.mailEn8"),"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd"},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.star_mail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.isStar,callback:function(t){e.$set(e.searchForm,"isStar",t)},expression:"searchForm.isStar"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("outboxMail.star_mail")}}),t("el-option",{attrs:{value:"",label:e.$i18n.t("outboxMail.all_mail")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.mail_status")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.writeType,callback:function(t){e.$set(e.searchForm,"writeType",t)},expression:"searchForm.writeType"}},[t("el-option",{attrs:{value:1,label:e.$t("edm5.v52")}}),t("el-option",{attrs:{value:2,label:e.$t("edm5.v53")}}),t("el-option",{attrs:{value:88,label:e.$t("edm5.v54")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$t("inboxMail.search.sendEmail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$t("inboxMail.search.defaultSelect"),clearable:""},model:{value:e.searchForm.sentMail,callback:function(t){e.$set(e.searchForm,"sentMail",t)},expression:"searchForm.sentMail"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.sysEmail")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.businessEmail")}})],1)],1),t("div",[t("el-button",{attrs:{type:"primary"},on:{click:e.confirmEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.search"))+" ")]),t("el-button",{on:{click:e.resetEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.reset"))+" ")])],1)])]),t("div",{staticClass:"mail-table-wrap"},[t("WTable",{ref:"mailTable",staticClass:"mail-table",attrs:{"row-key":"id",tableConfig:{selection:!0,selectionFixed:!0},tableColumnConfig:e.tableColumnConfig,tableData:e.tableData,height:null,"max-height":null,"min-height":e.tableHeight,isNeedScroll:!0,loading:e.loading,total:e.total,pageSize:e.searchForm.pageSize,pageNum:e.searchForm.currentPage},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page-size":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:page-num":function(t){return e.$set(e.searchForm,"currentPage",t)},changeSize:function(t){return e.init()},changeCurrent:function(t){return e.init()},"row-click":e.skipDetail,"selection-change":e.selectTableRow},scopedSlots:e._u([{key:"isStar",fn:function({data:n}){return[t("i",{staticClass:"pm-iconfont",class:1===n.scope.isStar?"icon-star1":"icon-star0",staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.starOutboxEvt(n.scope)}}})]}},{key:"writeType",fn:function({data:n}){return[99===n.scope.writeType?t("span",[e._v(" "+e._s(e.$i18n.t("draftMail.draft"))+" ")]):e._e(),2===n.scope.writeType?t("span",[t("el-popover",{attrs:{trigger:"hover",content:e.parseTime(n.scope.timing,"{y}-{m}-{d} {h}:{i}")+`${e.$i18n.t("draftMail.send")}`,placement:"top-start","popper-class":"time-email"}},[t("i",{staticClass:"dss-iconfont icon-clock",attrs:{slot:"reference"},slot:"reference"})])],1):e._e()]}},{key:"bloggers",fn:function({data:n}){return[t("div",{staticClass:"mail-name flex items-center"},[t("p",{staticClass:"beyond_eip mr8"},[e._v(" "+e._s(n.scope.bloggerName)+" ")]),n.scope.bloggerName?t("span",{staticClass:"span-hub"},[e._v(" "+e._s(n.scope.number>99?"99+":n.scope.number)+" ")]):e._e()])]}},{key:"time",fn:function({data:n}){return[99===n.scope.writeType?t("span",[e._v(" "+e._s(n.scope.gmtCreate)+" ")]):e._e(),2===n.scope.writeType?t("span",[e._v(" "+e._s(e.formatDraftTime(n.scope.timing))+" ")]):e._e()]}}])}),t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){e.searchForm.currentPage=1,e.init(!0)}}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})]),t("div",{staticClass:"tool-item",on:{click:function(t){return e.deleteEvt()}}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})])])])],1)])},_Fe=[];function CFe(e){return Pa("/edm/draftsV2/pageDraftSingle",e)}function xFe(e){return Pa("/edm/draftsV2/pageDraftReply",e)}function SFe(e){return Pa("/edm/draftsV2/validReceiver",e)}var kFe={components:{WTable:UIe},props:{isShowSearch:{type:Boolean,default:!0},scrollTop:{type:Number,default:0}},data(){return{searchForm:{bloggerName:"",subject:"",content:"",sendTimeBegin:"",sendTimeEnd:"",isStar:null,writeType:"",sentMail:"",isHidden:0,currentPage:1,pageSize:20},contentInput:"",contentSelect:"1",timeRange:[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],tableColumnConfig:[{label:"",scope:"isStar",width:"48"},{label:"",scope:"writeType",width:"110"},{label:Mc.t("writeMail.receiver"),scope:"bloggers"},{label:Mc.t("edm2.mailEn6"),prop:"subject",showOverflowTooltip:!0,minWidth:"200"},{label:Mc.t("edm5.v50"),prop:"writeType",minWidth:"80",format:"common",dict:[{name:Mc.t("edm5.v52"),code:99},{name:Mc.t("edm5.v53"),code:2},{name:Mc.t("edm5.v54"),code:88}]},{label:Mc.t("edm5.v51"),scope:"time",minWidth:"100"}],tableData:[],loading:!1,total:0,tableHeight:js(332),selectData:[],pickerOptions:{shortcuts:[{text:Mc.t("deliveryTime.three_months"),onClick(e){e.$emit("pick",[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.past_six_months"),onClick(e){e.$emit("pick",[iFe()().subtract(6,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.all_emails"),onClick(e){e.$emit("pick",[iFe()().subtract(120,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}}]}}},created(){this.init()},methods:{changeContentMode(e){this.contentSelect=e,this.contentInput=""},init(e){e&&this.clearTableData(),this.loading=!0,1==this.contentSelect?(this.searchForm.content="",this.searchForm.subject=this.contentInput):2==this.contentSelect&&(this.searchForm.subject="",this.searchForm.content=this.contentInput),null==this.timeRange?(this.searchForm.sendTimeBegin="",this.searchForm.sendTimeEnd=""):(this.searchForm.sendTimeBegin=this.timeRange[0],this.searchForm.sendTimeEnd=this.timeRange[1]),CFe(this.searchForm).then((e=>{this.loading=!1,0==e.code?(this.tableData=e.data.rows,this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},starOutboxEvt(e){let t={mailId:e.id,isStar:0===e.isStar?1:0};yu(t).then((e=>{0==e.code?this.init():this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},skipDetail(e){localStorage.setItem("sendEntryKey","draftNew_sendMail");const t=this.$router.resolve({path:"/write",query:{draftId:e.id,isTiming:2===e.writeType?1:0,rowTime:e.timing?e.timing:""}});window.open(t.href,"_blank")},deleteEvt(){this.selectData.length?this.$confirm(this.$t("inboxTable.delMail"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning"}).then((()=>{wu({mailId:this.selectData}).then((e=>{0==e.code?(this.clearTableData(),this.init(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`,duration:1500})):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))})).catch((()=>{})):this.$message({type:"warning",message:`${this.$i18n.t("outboxMail.choose")}`})},confirmEvt(){this.searchForm.currentPage=1,this.init()},resetEvt(){this.searchForm=this.$options.data().searchForm,this.timeRange=[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],this.contentInput="",this.contentSelect="1",this.init(!0)},selectTableRow(e){this.selectData=Is(e,"id")},clearTableData(){this.searchForm.currentPage=1,this.$refs.mailTable.$refs.xTable.clearSelection(),this.selectData=[]},parseTime(e,t){return Os(e,t)},formatDraftTime(e,t){return Bs(e,t)}}},EFe=kFe,DFe=or(EFe,wFe,_Fe,!1,null,"7c3d798a",null),AFe=DFe.exports,TFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"reply-drafts-table"},[t("div",{staticClass:"inbox-search-wrap"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.blogger_name")))]),t("el-input",{staticClass:"col-input",attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},model:{value:e.searchForm.bloggerName,callback:function(t){e.$set(e.searchForm,"bloggerName",t)},expression:"searchForm.bloggerName"}})],1),t("div",{staticClass:"col-item col-select-input-item"},[t("el-input",{staticClass:"col-input-select",attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.contentInput,callback:function(t){e.contentInput=t},expression:"contentInput"}},[t("el-select",{attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},on:{change:e.changeContentMode},slot:"prepend",model:{value:e.contentSelect,callback:function(t){e.contentSelect=t},expression:"contentSelect"}},[t("el-option",{attrs:{label:e.$t("edm2.mailEn6"),value:"1"}}),t("el-option",{attrs:{label:e.$t("edm2.mailEn7"),value:"2"}})],1)],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(" "+e._s(e.$i18n.t("deliveryTime.Delivery_time"))+" ")]),t("el-date-picker",{staticClass:"col-date",attrs:{align:"right",type:"daterange",placeholder:e.$t("edm2.mailEn8"),"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd"},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.star_mail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.isStar,callback:function(t){e.$set(e.searchForm,"isStar",t)},expression:"searchForm.isStar"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("outboxMail.star_mail")}}),t("el-option",{attrs:{value:"",label:e.$i18n.t("outboxMail.all_mail")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.mail_status")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.writeType,callback:function(t){e.$set(e.searchForm,"writeType",t)},expression:"searchForm.writeType"}},[t("el-option",{attrs:{value:1,label:e.$t("edm5.v52")}}),t("el-option",{attrs:{value:2,label:e.$t("edm5.v53")}}),t("el-option",{attrs:{value:88,label:e.$t("edm5.v54")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$t("inboxMail.search.sendEmail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$t("inboxMail.search.defaultSelect"),clearable:""},model:{value:e.searchForm.sentMail,callback:function(t){e.$set(e.searchForm,"sentMail",t)},expression:"searchForm.sentMail"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.sysEmail")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.businessEmail")}})],1)],1),t("div",[t("el-button",{attrs:{type:"primary"},on:{click:e.confirmEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.search"))+" ")]),t("el-button",{on:{click:e.resetEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.reset"))+" ")])],1)])]),t("div",{staticClass:"mail-table-wrap"},[t("WTable",{ref:"mailTable",staticClass:"mail-table",attrs:{"row-key":"id",tableConfig:{selection:!0,selectionFixed:!0},tableColumnConfig:e.tableColumnConfig,tableData:e.tableData,height:null,"max-height":null,"min-height":e.tableHeight,isNeedScroll:!0,loading:e.loading,total:e.total,pageSize:e.searchForm.pageSize,pageNum:e.searchForm.currentPage},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page-size":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:page-num":function(t){return e.$set(e.searchForm,"currentPage",t)},changeSize:function(t){return e.init()},changeCurrent:function(t){return e.init()},"row-click":e.skipDetail,"selection-change":e.selectTableRow},scopedSlots:e._u([{key:"isStar",fn:function({data:n}){return[t("i",{staticClass:"pm-iconfont",class:1===n.scope.isStar?"icon-star1":"icon-star0",staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.starOutboxEvt(n.scope)}}})]}},{key:"writeType",fn:function({data:n}){return[99===n.scope.writeType?t("span",[e._v(" "+e._s(e.$i18n.t("draftMail.draft"))+" ")]):e._e(),2===n.scope.writeType?t("span",[t("el-popover",{attrs:{trigger:"hover",content:e.parseTime(n.scope.timing,"{y}-{m}-{d} {h}:{i}")+`${e.$i18n.t("draftMail.send")}`,placement:"top-start","popper-class":"time-email"}},[t("i",{staticClass:"dss-iconfont icon-clock",attrs:{slot:"reference"},slot:"reference"})])],1):e._e()]}},{key:"bloggers",fn:function({data:n}){return[t("div",{staticClass:"mail-name flex items-center"},[t("p",{staticClass:"beyond_eip mr8"},[e._v(" "+e._s(n.scope.showNames)+" ")]),n.scope.showNames?t("span",{staticClass:"span-hub"},[e._v(" "+e._s(n.scope.emailNum>99?"99+":n.scope.emailNum)+" ")]):e._e()])]}},{key:"popularizePlanName",fn:function({data:n}){return[t("div",{staticClass:"plan-cell"},[n.scope.popularizePlanName?t("i",{staticClass:"dss-iconfont icon-task plan-i"}):e._e(),t("span",{class:{"overflow-text":!0,"bold-name":null!==n.scope.popularizePlanName&&""!==n.scope.popularizePlanName}},[e._v(" "+e._s(n.scope.popularizePlanName?n.scope.popularizePlanName:e.$t("deliveryTime.no_promotion_plan"))+" ")])])]}},{key:"content",fn:function({data:n}){return[t("span",{staticClass:"beyond_eip",domProps:{innerHTML:e._s(e.filterHtmlTag(n.scope.content))}})]}},{key:"time",fn:function({data:n}){return[99===n.scope.writeType?t("span",[e._v(" "+e._s(n.scope.gmtCreate)+" ")]):e._e(),2===n.scope.writeType?t("span",[e._v(" "+e._s(e.formatDraftTime(n.scope.timing))+" ")]):e._e()]}}])}),t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){e.searchForm.currentPage=1,e.init(!0)}}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})]),t("div",{staticClass:"tool-item",on:{click:function(t){return e.deleteEvt()}}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})])])])],1)])},OFe=[],IFe={components:{WTable:UIe},props:{isShowSearch:{type:Boolean,default:!0},scrollTop:{type:Number,default:0}},data(){return{searchForm:{bloggerName:"",subject:"",content:"",sendTimeBegin:"",sendTimeEnd:"",isStar:null,writeType:"",isHidden:0,sentMail:"",currentPage:1,pageSize:20},contentInput:"",contentSelect:"1",timeRange:[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],tableColumnConfig:[{label:"",scope:"isStar",width:"48"},{label:"",scope:"writeType",width:"110"},{label:Mc.t("writeMail.receiver"),prop:"bloggerName",showOverflowTooltip:!0},{label:Mc.t("inboxDetail.planVal"),scope:"popularizePlanName"},{label:Mc.t("edm2.mailEn6"),prop:"subject",width:"200",showOverflowTooltip:!0},{label:Mc.t("edm2.mailEn7"),scope:"content",minWidth:"250",showOverflowTooltip:!0},{label:Mc.t("edm5.v50"),prop:"writeType",minWidth:"80",format:"common",dict:[{name:Mc.t("edm5.v52"),code:99},{name:Mc.t("edm5.v53"),code:2},{name:Mc.t("edm5.v54"),code:88}]},{label:Mc.t("edm5.v51"),scope:"time",minWidth:"100"}],tableData:[],loading:!1,total:0,tableHeight:js(332),selectData:[],pickerOptions:{shortcuts:[{text:Mc.t("deliveryTime.three_months"),onClick(e){e.$emit("pick",[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.past_six_months"),onClick(e){e.$emit("pick",[iFe()().subtract(6,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.all_emails"),onClick(e){e.$emit("pick",[iFe()().subtract(120,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}}]}}},created(){this.init()},methods:{filterHtmlTag(e){return e&&(e=e.replace(/<\/?.+?\/?>/g,""),e=e.replace(new RegExp("&nbsp;","g")," ")),e},changeContentMode(e){this.contentSelect=e,this.contentInput=""},init(e){e&&this.clearTableData(),this.loading=!0,1==this.contentSelect?(this.searchForm.content="",this.searchForm.subject=this.contentInput):2==this.contentSelect&&(this.searchForm.subject="",this.searchForm.content=this.contentInput),null==this.timeRange?(this.searchForm.sendTimeBegin="",this.searchForm.sendTimeEnd=""):(this.searchForm.sendTimeBegin=this.timeRange[0],this.searchForm.sendTimeEnd=this.timeRange[1]),xFe(this.searchForm).then((e=>{this.loading=!1,0==e.code?(this.tableData=e.data.rows,this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},starOutboxEvt(e){let t={mailId:e.id,isStar:0===e.isStar?1:0};yu(t).then((e=>{0==e.code?this.init():this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},skipDetail(e){localStorage.setItem("sendEntryKey","draftNew_sendMail");const t=this.$router.resolve({path:"/write",query:{draftId:e.id,isTiming:2===e.writeType?1:0,rowTime:e.timing?e.timing:""}});window.open(t.href,"_blank")},deleteEvt(){this.selectData.length?this.$confirm(this.$t("inboxTable.delMail"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning"}).then((()=>{wu({mailId:this.selectData}).then((e=>{0==e.code?(this.clearTableData(),this.init(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`,duration:1500})):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))})).catch((()=>{})):this.$message({type:"warning",message:`${this.$i18n.t("outboxMail.choose")}`})},confirmEvt(){this.searchForm.currentPage=1,this.init()},resetEvt(){this.searchForm=this.$options.data().searchForm,this.timeRange=[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],this.contentInput="",this.contentSelect="1",this.init(!0)},selectTableRow(e){this.selectData=Is(e,"id")},clearTableData(){this.searchForm.currentPage=1,this.$refs.mailTable.$refs.xTable.clearSelection(),this.selectData=[]},parseTime(e,t){return Os(e,t)},formatDraftTime(e,t){return Bs(e,t)}}},PFe=IFe,$Fe=or(PFe,TFe,OFe,!1,null,"88be6978",null),FFe=$Fe.exports,BFe={name:"draftEmail",components:{singleDraftsMail:AFe,replyDraftsMail:FFe},props:{scrollTop:{type:Number,default:0}},data(){return{activeName:"first",isShowSearch:!0,language:Wi.get("language")}},methods:{}},MFe=BFe,NFe=or(MFe,yFe,bFe,!1,null,"403ba0a3",null),RFe=NFe.exports,jFe=function(){var e=this,t=e._self._c;return 0!==e.emailArr.length?t("div",{staticClass:"outbox-detail-container"},[t("div",{staticClass:"back",on:{click:e.backToOutbox}},[t("i",{staticClass:"el-icon-arrow-left"})]),t("div",{staticClass:"back recall_btn",on:{click:e.recallMail}},[e._m(0)]),t("div",{staticClass:"mail-items-box"},[t("div",{staticClass:"mail-item-row mail-template"},[t("span",{staticClass:"span-label"},[e._v(e._s(e.$t("edm2.mailEn13")))]),e._l(e.emailArr,(function(n,i){return t("span",{key:i,staticClass:"mail-item",class:{"mail-item-active":e.currentIndex===i},on:{click:function(t){e.currentIndex=i}}},[e._v(" "+e._s(e.$t("edm2.mailEn14"))+e._s(i+1)+" ")])})),t("span",{staticClass:"send-email"},[e._v(e._s(e.$t("edm5.v4"))+e._s(e.sendEmail))])],2),t("div",{staticClass:"mail-item-row mail-subject"},[t("span",{staticClass:"span-label"},[e._v(e._s(e.$t("sendData.table.subject")))]),t("el-input",{staticClass:"subject row-val",attrs:{readonly:!0},model:{value:e.emailArr[e.currentIndex].subject,callback:function(t){e.$set(e.emailArr[e.currentIndex],"subject",t)},expression:"emailArr[currentIndex].subject"}})],1),e.emailArr[e.currentIndex].attachmentRes?t("div",{staticClass:"mail-item-row mail-attachment"},[t("span",{staticClass:"span-label"},[e._v(e._s(e.$t("edm2.mailEn15")))]),t("div",{staticClass:"attachment-item row-val"},[e._l(e.handleShowFile(e.emailArr[e.currentIndex].attachmentRes),(function(n,i){return t("span",{key:i,staticClass:"file-item",on:{click:function(t){return e.downLoadFileItem(n)}}},[t("span",{staticClass:"file-name"},[e._v(e._s(n.name)+"("+e._s(n.size)+"KB)")]),t("i",{staticClass:"dss-iconfont icon-download"})])})),t("div",{staticClass:"file-action col-span-4 mb8"},[e.emailArr[e.currentIndex].attachmentRes.length>4?t("button",{staticClass:"file-btn mr12",on:{click:function(t){e.isShrink=!e.isShrink}}},[t("i",{staticClass:"dss-iconfont icon-arrow-down mr4",style:e.isShrink?"":"transform: rotate(180deg);"}),t("p",[e._v(" "+e._s(e.isShrink?`${e.$i18n.t("outboxDetail.show_all")}`+(e.emailArr[e.currentIndex].attachmentRes.length-4)+`${e.$i18n.t("outboxDetail.file_num")}`:`${e.$i18n.t("outboxDetail.retract")}`)+" ")])]):e._e(),t("button",{staticClass:"file-btn mr12",on:{click:function(t){return e.downloadAll(e.emailArr[e.currentIndex].attachmentRes)}}},[t("p",{staticClass:"mr4"},[e._v(e._s(e.$i18n.t("outboxDetail.down_all"))+":")]),t("i",{staticClass:"dss-iconfont icon-download"})])])],2)]):e._e(),t("div",{staticClass:"mail-item-row mail-content"},[t("span",{staticClass:"span-label"},[e._v(e._s(e.$t("sendData.table.text")))]),t("div",{staticClass:"content row-val",domProps:{innerHTML:e._s(e.filterBaseTag(e.emailArr[e.currentIndex].content))}})])]),t("div",{staticClass:"blogger-table-box"},[t("div",{staticClass:"blogger-title"},[e._v(e._s(e.$t("edm2.mailEn16")))]),t("WTable",{ref:"mailTable",staticClass:"mail-detail-table fixed-pagination",attrs:{isOutboxDetail:!0,"row-key":"id",tableConfig:{selection:!0,selectionFixed:!0},tableColumnConfig:e.tableColumnConfig,tableData:e.tableData,height:e.tableHeight,"max-height":e.tableHeight,loading:e.loading,total:e.total,pageSize:e.searchForm.pageSize,pageNum:e.searchForm.currentPage},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page-size":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:page-num":function(t){return e.$set(e.searchForm,"currentPage",t)},changeSize:function(t){return e.getOutboxDetailBlogger()},changeCurrent:function(t){return e.getOutboxDetailBlogger()},"selection-change":e.selectTableRow,confirmSearch:e.confirmSearch,handleBtnClick:e.handleBtnClick},scopedSlots:e._u([{key:"blogger",fn:function({data:n}){return[t("BloggerColumn",{attrs:{bloggerAvatar:n.scope.bloggerAvatar,bloggerName:n.scope.bloggerName,bloggerUsername:n.scope.bloggerUsername,bloggerId:n.scope.bloggerId,platform:n.scope.platform,bloggerInfo:n.scope},on:{toBloggerDeatil:e.toBloggerDeatil}})]}},{key:"platform",fn:function({data:n}){return["youtube"==n.scope.platform?t("img",{attrs:{src:"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/youtube.png"}}):e._e(),"tiktok"==n.scope.platform?t("img",{attrs:{src:"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/tiktok.png"}}):e._e(),"instagram"==n.scope.platform?t("img",{attrs:{src:"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/ins.png"}}):e._e()]}},{key:"popularizePlanName",fn:function({data:n}){return[n.scope.popularizePlanName?t("span",{staticClass:"plan"},[e._v(e._s(n.scope.popularizePlanName))]):e._e(),-1==n.scope.popularizePlanId?t("span",{staticClass:"no-plan",on:{click:function(t){return e.openPlan(n.scope)}}},[t("i",{staticClass:"dss-iconfont icon-add_dss"}),e._v(e._s(e.$t("inboxDetail.plan")))]):e._e()]}},{key:"isRead",fn:function({data:n}){return[1==n.scope.isRead?t("span",[e._v(" "+e._s(e.$t("inboxMail.search.unRead"))+" ")]):e._e(),2==n.scope.isRead?t("span",[e._v(" "+e._s(e.$t("inboxMail.search.read"))+" ")]):e._e()]}},{key:"isReply",fn:function({data:n}){return[0==n.scope.isReply?t("span",[e._v(" "+e._s(e.$t("edm2.mailEn21"))+" ")]):e._e(),1==n.scope.isReply?t("span",[e._v(" "+e._s(e.$t("edm2.mailEn22"))+" ")]):e._e()]}}],null,!1,2825512865)})],1),e.planVisible?t("EmailPlan",{attrs:{visible:e.planVisible,upbEsId:e.rowData.upbEsId,planIdRel:e.rowData.planId,bloggerId:e.rowData.bloggerId,platform:e.rowData.platform,pageSource:"outboxDetail",rowData:e.rowData,detailData:e.emailArr[0]},on:{"update:visible":function(t){e.planVisible=t},change:function(t){return e.getOutboxDetailBlogger()}}}):e._e()],1):e._e()},LFe=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"re_box"},[t("i",{staticClass:"dss-iconfont btn_con"},[e._v("")]),t("span",{staticClass:"btn_con"},[e._v("撤回")])])}],zFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"blogger-column"},[t("el-image",{attrs:{src:e.bloggerAvatar},nativeOn:{click:function(t){return t.stopPropagation(),e.toDetail.apply(null,arguments)}}},[t("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[t("i",{staticClass:"el-icon-picture-outline"})])]),t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-bloger-name",placement:"top"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticClass:"nickname mb8"},[e._v(e._s(e.bloggerName))]),t("div",{directives:[{name:"show",rawName:"v-show",value:""!==e.bloggerUsername,expression:"bloggerUsername !== ''"}],staticClass:"username"},[e._v(" "+e._s(e.$t("edm5.v41"))+e._s(e.bloggerUsername)+" ")])]),t("span",{staticClass:"bloggerName",on:{click:function(t){return t.stopPropagation(),e.toDetail.apply(null,arguments)}}},[e._v(" "+e._s(e.bloggerName||"-")+" ")])]),e.showRcommend?t("span",{staticClass:"recommend",on:{click:function(t){return t.stopPropagation(),e.onRecommend.apply(null,arguments)}}},[t("i",{staticClass:"iconfont",class:{"icon-crm-recommend0":0===e.isRecommend}})]):e._e(),1===e.isRecommend?t("span",{staticClass:"iconfont icon-crm-recommend1 icon-cursor",on:{click:function(t){return t.stopPropagation(),e.onRecommend.apply(null,arguments)}}}):e._e()],1)},VFe=[],HFe={props:{bloggerUsername:{type:String,default:""},bloggerAvatar:{type:String,default:""},showRcommend:{type:Boolean,default:!1},isRecommend:{type:Number,default:-1},bloggerName:{type:String,default:""},bloggerId:{type:String,default:""},planBlogerId:{type:String,default:""},platform:{type:String,default:""},bloggerInfo:{type:Object,default:()=>({})}},methods:{toDetail(){return this.bloggerId?(this.$emit("toBloggerDeatil",this.bloggerInfo),!1):this.$message.error("红人id不能为空!")},onRecommend(){this.$emit("recommendHandle",this.bloggerId,this.isRecommend)}}},UFe=HFe,WFe=or(UFe,zFe,VFe,!1,null,"2b58a2e1",null),qFe=WFe.exports,YFe={name:"detail",components:{WTable:UIe,BloggerColumn:qFe,EmailPlan:Tu},data(){return{emailArr:[],currentIndex:0,tableHeight:500,total:0,loading:!1,tableData:[],tableColumnConfig:[{label:Mc.t("writeMail.blogger"),scope:"blogger",filter:"input"},{label:Mc.t("edm2.mailEn17"),prop:"country"},{label:Mc.t("edm2.mailEn18"),scope:"platform"},{label:Mc.t("writeMail.fans_num"),prop:"fans",format:"numFormat"},{label:Mc.t("inboxDetail.planVal"),scope:"popularizePlanName"},{label:Mc.t("receiveData.table.isRead"),scope:"isRead",filter:"readRadio"},{label:Mc.t("edm2.mailEn19"),scope:"isReply",filter:"replyRadio"}],searchForm:{pageSize:20,currentPage:1,id:this.$route.query.id,bloggerName:"",isRead:"",isReply:""},isShrink:!0,planVisible:!1,rowData:null}},computed:{sendEmail(){return this.emailArr[0]?.from||"-"}},created(){this.init(),this.getOutboxDetailBlogger()},mounted(){localStorage.setItem("searchFlag",!0)},methods:{recallMail(){this.$confirm("请确认是否撤回该邮件?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{ku(this.$route.query.id).then((e=>{"0"==e.code?(this.$message({type:"success",showClose:!0,duration:7e3,message:"撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"}),this.backToOutbox()):this.$message({type:"error",showClose:!0,duration:7e3,message:e.message})}))})).catch((()=>{}))},toBloggerDeatil(e){this.$emit("toBloggerDeatil",e)},backToOutbox(){this.$router.go(-1)},openPlan(e){this.planVisible=!0,this.rowData=e},confirmSearch(e,t){"blogger"===t?this.searchForm.bloggerName=e:"isRead"===t?this.searchForm.isRead=e:"isReply"===t&&(this.searchForm.isReply=e),this.getOutboxDetailBlogger()},getOutboxDetailBlogger(){this.loading=!0;let e=3==this.$route.query.enterType?Su:Cu;e(this.searchForm).then((e=>{"0"===e.code?(this.tableData=e.data.rows,this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})})).finally((()=>{this.loading=!1}))},init(){_u({id:this.$route.query.id,enterType:this.$route.query.enterType}).then((e=>{"0"===e.code?this.emailArr=e.data:this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},handleShowFile(e){const t=JSON.parse(JSON.stringify(e));return this.isShrink?t.slice(0,4):t},downLoadFileItem(e){Ms(e.link,e.name)},downloadAll(e){e.forEach((e=>{Ms(e.link,e.name)}))},selectTableRow(){},filterBaseTag(e){return e&&(e=e.replace("https://pixel.xin/emailControl.php?mid=","").replace("https://pixel.xin/hub.gif?mid=","").replace(new RegExp("unsubscribe","g"),"").replace(/\r\n/g,"<br />").replace(/ツ?/g,"").replace(/<base.*?(?:>|\/>)/gi,"").replace(/&gt; &gt;/g,"<br /><br />")),e},handleBtnClick(e,t){if("inviteAgain"==e.key){let e=[];t.map((t=>{e.push({bloggerId:t.bloggerId,bloggerName:t.bloggerName,bloggerUsername:t.bloggerUsername,bloggerAvatar:t.bloggerAvatar,country:t.country,platform:t.platform,fansNum:t.fans,popularizePlanId:t.popularizePlanId,popularizePlanName:t.popularizePlanName,bloggerEmail:null,chooseSource:0,chooseSourceStr:"其他",favorName:null,favorId:null,id:`other-${t.bloggerId}`})})),localStorage.setItem("beforeSelected",JSON.stringify(e)),localStorage.setItem("resultRecipientData",JSON.stringify(e));const n=this.$router.resolve({path:"/write",query:{outboxId:Is(this.emailArr,"writeEmailId").join(",")}});window.open(n.href,"_blank"),this.clearChoose()}else this.$emit("handleBtnClick",e,t)},clearChoose(){this.$refs["mailTable"]&&this.$refs["mailTable"]?.removeChoose()}}},GFe=YFe,KFe=or(GFe,jFe,LFe,!1,null,"04c8ce88",null),XFe=KFe.exports,ZFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-container page-overflow hidden-scrollbar"},[t("div",{staticClass:"wrap z-index2 mb24"},[t("div",{staticClass:"grid grid-cols-3"},[t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$i18n.t("blogMail.search_mail"))+":")]),t("el-input",{attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},model:{value:e.searchForm.subject,callback:function(t){e.$set(e.searchForm,"subject",t)},expression:"searchForm.subject"}})],1),t("div",{staticClass:"search-item"},[t("button",{staticClass:"search-btn search-btn-face mr16",on:{click:function(t){e.searchForm.currentPage=1,e.init()}}},[e._v(" "+e._s(e.$i18n.t("searchButton.search"))+" ")]),t("button",{staticClass:"search-btn search-btn-linear",on:{click:function(t){return e.reset()}}},[e._v(" "+e._s(e.$i18n.t("searchButton.reset"))+" ")])]),"search_blogger"===e.sourcePage?t("div",{staticClass:"search-item"},[t("el-select",{attrs:{clearable:"",placeholder:e.$i18n.t("common.please_select")},on:{change:e=>{this.searchForm.userId=e,this.init()}},model:{value:e.searchForm.userId,callback:function(t){e.$set(e.searchForm,"userId",t)},expression:"searchForm.userId"}},e._l(e.subAccountOpts,(function(e){return t("el-option",{key:e.id,attrs:{label:e.nickname,value:e.id}})})),1)],1):e._e(),"plan_detail"===e.sourcePage&&""===e.taskId?t("div",{staticClass:"search-item"},[t("el-select",{attrs:{clearable:"",placeholder:e.$i18n.t("common.please_select")},on:{change:e=>{this.searchForm.popularizePlanId=e,this.init()}},model:{value:e.searchForm.popularizePlanId,callback:function(t){e.$set(e.searchForm,"popularizePlanId",t)},expression:"searchForm.popularizePlanId"}},e._l(e.planOpts,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e()])]),t("div",{staticClass:"mail-wrap legacy relative z-index2"},[t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.init()}}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})]),t("div",{staticClass:"tool-item",on:{click:function(t){return e.del()}}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})])])]),t("div",{ref:"mail",staticClass:"mail-body"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.tableData,"header-cell-class-name":e.headCellClass,"cell-class-name":e.cellClass,"row-class-name":e.rowClass,"row-key":e.getRowKeys,height:e.tableHeight},on:{"selection-change":e.changeSelection,"row-click":e.skipDetail}},[t("el-table-column",{attrs:{"reserve-selection":!0,type:"selection",align:"center",width:"48"}}),t("el-table-column",{attrs:{width:"80"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("span",{style:{color:"2"==n.isRead?"#F75277":"#666666"}},[e._v(e._s("2"==n.isRead?`${e.$i18n.t("blogMail.read")}`:`${e.$i18n.t("blogMail.unread")}`))])]}}])}),t("el-table-column",{attrs:{prop:"bloggerName",width:"200"}}),"plan_detail"!==e.sourcePage?t("el-table-column",{attrs:{"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-task flex items-center"},[n.taskName?t("div",{on:{click:function(t){return t.stopPropagation(),e.skipTaskDetail(n.taskId)}}},[t("i",{staticClass:"dss-iconfont icon-task"}),t("span",{staticClass:"beyond_eip"},[e._v(" "+e._s(n.taskName)+" ")])]):e._e(),n.taskName?e._e():t("span",[e._v(e._s(e.$i18n.t("outboxMail.no_task")))])])]}}],null,!1,2755730399)}):e._e(),"plan_detail"===e.sourcePage?t("el-table-column",{attrs:{"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-task flex items-center"},[n.popularizePlanName?t("div",{on:{click:function(t){return t.stopPropagation(),e.skipPlanDetail(n)}}},[t("i",{staticClass:"dss-iconfont icon-task"}),t("span",{staticClass:"beyond_eip"},[e._v(" "+e._s(n.popularizePlanName)+" ")])]):e._e(),n.popularizePlanName?e._e():t("span",[e._v(e._s(e.$i18n.t("deliveryTime.no_promotion_plan")))])])]}}],null,!1,1375124427)}):e._e(),t("el-table-column",{scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-content"},[t("span",{staticClass:"mail-subject cursor-pointer beyond_eip mr6"},[e._v(" "+e._s(n.subject)+" ")]),e._v(" - "),t("span",{staticClass:"beyond_eip cursor-pointer ml6",domProps:{innerHTML:e._s(e.filterHtmlTag(n.content))}})])]}}])}),t("el-table-column",{attrs:{width:"80"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"box-tag",class:1==n.type?"box-tag-receive":"box-tag-send"},[1==n.type?t("span",[e._v(e._s(e.$i18n.t("blogMail.receive_mail")))]):e._e(),2==n.type?t("span",[e._v(e._s(e.$i18n.t("blogMail.send_mail")))]):e._e()])]}}])}),t("el-table-column",{attrs:{width:"160"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(e._s(t.createTime))]}}])})],1)],1),t("div",{staticClass:"mail-foot mb16"},[t("el-pagination",{attrs:{"current-page":e.searchForm.currentPage,total:e.tableTotal,"page-size":e.searchForm.pageSize,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"current-change":e.changePage,"size-change":e.changeSize}})],1)])])},JFe=[];async function QFe(e){let t=await Pa("/edm/mail/emailComeGo",e);return t}async function eBe(e){let t=await Pa("/edm/mail/emailComeGo2",e);return t}async function tBe(e){let t=await Ia("/edm/mail/delComeGo",e);return t}async function nBe(e){let t=await Ta("/edm/mail/sonFather",e);return t}async function iBe(e){let t=await Pa("/user/popularize/planListToRead",e);return t}async function rBe(e){let t=await Pa("/edm/mail/emailComeGoByPopularizePlan",e);return t}var oBe={name:"blogEmail",props:{sourcePage:{type:String,default:"search_blogger"},taskId:{type:[Number,String],default:""},bloggerId:{type:[Number,String],default:""}},data(){return{searchForm:{subject:"",bloggerId:this.bloggerId,currentPage:1,pageSize:20,popularizePlanId:this.taskId},loading:!1,tableHeight:0,tableData:[],tableTotal:0,selectData:[],subAccountOpts:[],planOpts:[]}},mounted(){this.$nextTick((()=>{this.tableHeight=this.$refs.mail.offsetHeight,this.init(),this.getSubAccountOpts(),this.getAllPlanOpts()}))},methods:{init(){this.loading=!0;let e="search_blogger"===this.sourcePage?QFe:"plan_detail"===this.sourcePage?rBe:eBe;"search_blogger"===this.sourcePage&&(this.searchForm.taskId=this.taskId),e(this.searchForm).then((e=>{this.loading=!1,0==e.code?(this.tableData=e.data.rows,this.tableTotal=e.data.total):this.$message.error(e.message)}))},getSubAccountOpts(){nBe().then((e=>{"0"===e.code&&(this.subAccountOpts=e.data)}))},getAllPlanOpts(){iBe().then((e=>{"0"===e.code&&(this.planOpts=e.data)}))},changePage(e){this.searchForm.currentPage=e,this.init()},changeSize(e){this.searchForm.currentPage=1,this.searchForm.pageSize=e,this.init()},del(){this.selectData.length?this.$confirm(this.$t("inboxTable.delMail"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning"}).then((()=>{tBe({delOneMailReqs:this.selectData}).then((e=>{0==e.code?(this.clearTableData(),this.init(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`,duration:1500})):this.$message.error(e.message)}))})).catch((()=>{})):this.$message({type:"warning",message:`${this.$i18n.t("outboxMail.choose")}`})},reset(){this.searchForm.subject="",this.init()},getRowKeys(e){return e.id},changeSelection(e){this.selectData=[],e.forEach((e=>{this.selectData.push({id:e.id,type:e.type})}))},clearTableData(){this.$refs.table.clearSelection(),this.selectData=[]},headCellClass(){return"head"},rowClass(){return"row"},cellClass(){return"box-cell"},filterHtmlTag(e){return e&&(e=e.replace(/<\/?.+?\/?>/g,""),e=e.replace(new RegExp("&nbsp;","g")," ")),e},skipDetail(e){this.$emit("blogMailSkipDetail",e.id,e.type,e)},skipTaskDetail(e){this.$emit("skipTaskDetail",e)},skipPlanDetail(e){this.$emit("skipPlanDetail",e)}}},aBe=oBe,sBe=or(aBe,ZFe,JFe,!1,null,"889a1e46",null),lBe=sBe.exports,cBe=function(){var e=this,t=e._self._c;return e.show?t("div",{staticClass:"notification",on:{click:e.changeRouter}},[t("div",{staticClass:"notification-title"},[t("span",{staticClass:"icon-container"},[t("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-mail"}})])]),t("span",{staticClass:"icon-txt"},[e._v(e._s(this.$t("newMail.title"))+" ")]),t("span",{staticClass:"el-icon-close close",on:{click:function(t){return t.stopPropagation(),e.handleClose.apply(null,arguments)}}})]),t("div",{staticClass:"content"},[t("span",[e._v(e._s(this.$t("newMail.content"))+"!")]),(e.isAi,e._e())])]):e._e()},uBe=[],dBe=(i(8333),{name:"edm-maillNotice",props:{title:{type:String,default:""},content:{type:String,default:""},showTime:{type:Number,default:6e4},requestTime:{type:Number,default:18e4},goBackUrl:{type:String,default:"/InboxView"}},data(){return{timer:null,timer_layer:null,show:!1,isAi:0}},computed:{style(){return{}}},mounted(){this.getNotice()},methods:{changeRouter(){let e=this.$route.path;e!==this.goBackUrl&&this.$router.push({path:this.goBackUrl}),this.$bus.$emit("mailTip")},handleClose(){this.show=!1},getNotice(){Na().then((e=>{if(e){if(e.newMailCount>0){this.isAi=1===e.isAi;let t=this.$route.path;if(t===this.goBackUrl){let e=Math.floor(1e7*Math.random())+1;this.$router.push({path:t,query:{nums:e}})}this.show=!0,clearTimeout(this.timer_layer),this.timer_layer=setTimeout((()=>{this.show=!1}),this.showTime)}clearTimeout(this.timer),this.timer=setTimeout((()=>{this.getNotice()}),this.requestTime)}}))}}}),hBe=dBe,pBe=or(hBe,cBe,uBe,!1,null,"31645193",null),fBe=pBe.exports,mBe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-container page-overflow hidden-scrollbar"},[t("bread-crumb",{staticClass:"mb24 z-index2"}),t("div",{staticClass:"main"},[t("side-menu",{attrs:{"menu-data":e.menuData,"menu-active-index":e.menuActiveIndex},on:{selectMenu:e.selectMenu}}),t("div",{staticClass:"main-body"},[0===e.menuActiveIndex?t("send-data"):e._e(),1===e.menuActiveIndex?t("receive-data"):e._e()],1)],1)],1)},gBe=[],vBe=function(){var e=this,t=e._self._c;return t("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[t("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(n,i){return t("el-breadcrumb-item",{key:n.path},["noRedirect"===n.redirect||i==e.levelList.length-1?t("span",{staticClass:"no-redirect"},[e._v(" "+e._s(n.meta.title)+" ")]):t("a",{on:{click:function(t){return t.preventDefault(),e.handleLink(n)}}},[e._v(e._s(n.meta.title))])])})),1)],1)},yBe=[],bBe=i(5302),wBe=i.n(bBe),_Be={data(){return{levelList:null}},watch:{$route(){this.getBreadcrumb()}},created(){this.getBreadcrumb()},methods:{getBreadcrumb(){const e=this.$route.matched.filter((e=>e.meta&&e.meta.title));this.levelList=e.filter((e=>e.meta&&e.meta.title&&!1!==e.meta.breadcrumb))},pathCompile(e){const{params:t}=this.$route;var n=wBe().compile(e);return n(t)},handleLink(e){const{redirect:t,path:n}=e;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},CBe=_Be,xBe=or(CBe,vBe,yBe,!1,null,"48b1570f",null),SBe=xBe.exports,kBe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"menu mr24 z-index2"},[t("ul",e._l(e.menuData,(function(n,i){return t("li",{key:i,class:e.menuActiveIndex===i?"menu-active":"",on:{click:function(t){return e.selectMenu(i)}}},[t("p",[e._v(e._s(n))])])})),0)])},EBe=[],DBe={props:{menuActiveIndex:{default:0,type:Number},menuData:{default:()=>[],type:Array}},methods:{selectMenu(e){this.$emit("selectMenu",e)}}},ABe=DBe,TBe=or(ABe,kBe,EBe,!1,null,"511ba295",null),OBe=TBe.exports,IBe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"table-container"},[t("div",{staticClass:"grid grid-cols-3 mb8"},[t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.sendingTime")))]),t("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":" ","start-placeholder":"开始","end-placeholder":"结束"},model:{value:e.searchForm.send_time,callback:function(t){e.$set(e.searchForm,"send_time",t)},expression:"searchForm.send_time"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.phoneNumber")))]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.sender_account,callback:function(t){e.$set(e.searchForm,"sender_account",t)},expression:"searchForm.sender_account"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.companyName")))]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.company_name,callback:function(t){e.$set(e.searchForm,"company_name",t)},expression:"searchForm.company_name"}})],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.addressee")))]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.recipient_name,callback:function(t){e.$set(e.searchForm,"recipient_name",t)},expression:"searchForm.recipient_name"}})],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.textSearch")))]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.content,callback:function(t){e.$set(e.searchForm,"content",t)},expression:"searchForm.content"}})],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.send")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.send_status,callback:function(t){e.$set(e.searchForm,"send_status",t)},expression:"searchForm.send_status"}},[t("el-option",{attrs:{value:0,label:"待发送"}}),t("el-option",{attrs:{value:1,label:"发送成功"}}),t("el-option",{attrs:{value:2,label:"发送失败"}}),t("el-option",{attrs:{value:3,label:"待审核"}}),t("el-option",{attrs:{value:5,label:"驳回"}})],1)],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.open")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.read_status,callback:function(t){e.$set(e.searchForm,"read_status",t)},expression:"searchForm.read_status"}},[t("el-option",{attrs:{value:1,label:e.$t("edm5.v46")}}),t("el-option",{attrs:{value:2,label:e.$t("edm5.v47")}})],1)],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.LinkClick")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.click_link_status,callback:function(t){e.$set(e.searchForm,"click_link_status",t)},expression:"searchForm.click_link_status"}},[t("el-option",{attrs:{value:0,label:"否"}}),t("el-option",{attrs:{value:1,label:e.$t("edm5.v48")}})],1)],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.reply")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.reply_status,callback:function(t){e.$set(e.searchForm,"reply_status",t)},expression:"searchForm.reply_status"}},[t("el-option",{attrs:{value:0,label:"否"}}),t("el-option",{attrs:{value:1,label:e.$t("edm5.v48")}})],1)],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.return")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.return_status,callback:function(t){e.$set(e.searchForm,"return_status",t)},expression:"searchForm.return_status"}},[t("el-option",{attrs:{value:0,label:"否"}}),t("el-option",{attrs:{value:1,label:e.$t("edm5.v48")}})],1)],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.unsubscribe")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.unsubscribe_status,callback:function(t){e.$set(e.searchForm,"unsubscribe_status",t)},expression:"searchForm.unsubscribe_status"}},[t("el-option",{attrs:{value:0,label:"否"}}),t("el-option",{attrs:{value:1,label:e.$t("edm5.v48")}})],1)],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.emailComplaints")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.spam_complaints_status,callback:function(t){e.$set(e.searchForm,"spam_complaints_status",t)},expression:"searchForm.spam_complaints_status"}},[t("el-option",{attrs:{value:0,label:"否"}}),t("el-option",{attrs:{value:1,label:e.$t("edm5.v48")}})],1)],1),t("div",{staticClass:"search-item col-span-3"},[t("button",{staticClass:"search-btn search-btn-face mr16",on:{click:function(t){e.searchForm.page=1,e.initPageData()}}},[e._v(" "+e._s(e.$t("sendData.search.search"))+" ")]),t("el-button",{staticClass:"cutom-btnLoading",attrs:{type:"primary",loading:e.btnloading},on:{click:function(t){return e.down()}}},[e._v(e._s(this.btnloading?"下载中":"下载"))]),t("button",{staticClass:"search-btn-txt",on:{click:e.shrinkSearch}},[e._v(" "+e._s(e.isShrink?e.$t("sendData.search.unfold"):e.$t("sendData.search.collapse"))+" "),t("i",{staticClass:"dss-iconfont icon-arrow search-btn-icon",style:e.isShrink?"transform: rotate(180deg);":""})])],1)]),t("div",{staticClass:"table-body"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.tableData,"header-cell-class-name":e.tableHeadClass,"cell-class-name":e.tableCellClass,height:"700px",border:""}},[t("el-table-column",{attrs:{prop:"gmtCreate",label:e.$t("sendData.table.createTime"),width:"110","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"userNameOrMobile",label:e.$t("sendData.table.sender"),width:"80","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"nickName",label:e.$t("sendData.table.name"),width:"80","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"companyName",label:e.$t("sendData.table.company"),width:"90","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{label:e.$t("sendData.table.addressee"),width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("p",{staticClass:"cursor-pointer",staticStyle:{color:"#4aa8ff"},on:{click:function(t){return e.skipBlogDetail(n.bloggerId)}}},[e._v(" "+e._s(n.bloggerName)+" ")])]}}])}),t("el-table-column",{attrs:{prop:"subject",label:e.$t("sendData.table.subject"),width:"150","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{label:e.$t("sendData.table.text"),width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(e.filterHtmlTag(t.contents))+" ")]}}])}),t("el-table-column",{attrs:{label:e.$t("sendData.table.send"),width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return["发送失败"===n.statusTxt&&n.message?t("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[t("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(n.message))]),"发送失败"===n.statusTxt&&n.message?t("p",[e._v(" 发送失败 ")]):e._e()]):e._e(),t("p",[e._v(" "+e._s(n.statusTxt)+" ")])]}}])}),t("el-table-column",{attrs:{label:"打开",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(2===t.isRead?"是":"否")+" ")]}}])}),t("el-table-column",{attrs:{label:"链接点击",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(1===t.isClick?"是":"否")+" ")]}}])}),t("el-table-column",{attrs:{label:"回复",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(1===t.isReply?"是":"否")+" ")]}}])}),t("el-table-column",{attrs:{label:"退回",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[1===n.isReject&&n.message?t("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[t("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(n.message))]),0===n.isReject&&n.message?t("p",[e._v(" 否 ")]):e._e()]):e._e(),t("p",[e._v(" "+e._s(1===n.isReject?"是":"否"))])]}}])}),t("el-table-column",{attrs:{label:"退订",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(1===t.isUnsub?"是":"否")+" ")]}}])}),t("el-table-column",{attrs:{label:"垃圾邮件投诉","min-width":"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(1===t.isSpam?"是":"否")+" ")]}}])}),t("el-table-column",{attrs:{label:"操作",width:"130",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"table-tool"},[t("button",{staticClass:"table-tool-btn-txt",on:{click:function(t){return e.skipDetail(n.id)}}},[e._v(" 查看 ")]),t("div",{staticClass:"table-tool-btn-split"}),0===n.aiReply?t("button",{staticClass:"table-tool-btn-txt",on:{click:function(t){e.ai_reply_id=n.id,e.aiReplyContent="",e.isShowAi=!0}}},[e._v(" AI回复 ")]):e._e(),1===n.aiReply?t("button",{staticClass:"table-tool-btn-txt",on:{click:function(t){e.ai_reply_id=n.id,e.getAiReplyData(n.id)}}},[e._v(" 查看回复 ")]):e._e()])]}}])})],1)],1),t("div",{staticClass:"table-foot"},[t("el-pagination",{attrs:{"current-page":e.searchForm.page,total:e.tableTotal,"page-size":e.searchForm.page_size,background:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":e.changePage}})],1),e.isShowAi?t("editor",{attrs:{ai_reply_id:e.ai_reply_id,"ai-reply-content":e.aiReplyContent},on:{init:e.initPageData,close:e.close}}):e._e()],1)},PBe=[],$Be=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mask"},[t("div",{staticClass:"main"},[t("div",{staticClass:"head"},[t("h1",[e._v("AI回复")]),t("i",{staticClass:"dss-iconfont icon-close",on:{click:e.close}})]),t("div",{staticClass:"body"},[t("div",{staticClass:"editor-main mb24"},[t("Toolbar",{attrs:{editor:e.editor,"default-config":e.toolbarConfig}}),t("Editor",{staticStyle:{height:"376px","overflow-y":"hidden"},attrs:{"default-config":e.editorConfig},on:{onCreated:e.onCreated},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),t("button",{staticClass:"btn",attrs:{disabled:e.isSending},on:{click:e.getContent}},[e.isSending?t("i",{staticClass:"el-icon-loading"}):e._e(),e._v(" 发 送 ")])])])])},FBe=[],BBe={name:"edm-editor",components:{Toolbar:iOe,Editor:nOe},props:{ai_reply_id:{default:0,type:Number},aiReplyContent:{default:"",type:String}},data(){return{editor:null,content:"",isSending:!1,toolbarConfig:{excludeKeys:["blockquote","|","fullScreen","codeBlock","group-video"]},editorConfig:{MENU_CONF:{uploadImage:{server:"/upload/file",async customUpload(e,t){const n=new FormData;n.append("file",e),uploadFile(n).then((e=>{t(e.url)}))}}}}}},methods:{onCreated(e){this.editor=Object.seal(e),this.aiReplyContent&&this.editor.setHtml(this.aiReplyContent)},getContent(){this.editor.isEmpty()?this.$message({type:"warning",message:"请输入邮件正文内容"}):this.aiReplyContent?this.updateAiReply():this.createAiReply()},createAiReply(){const e={replyId:this.ai_reply_id,content:this.editor.getHtml()};this.isSending=!0,L$e(e).then((e=>{this.isSending=!1,"0"===e.code?(this.close(),this.$emit("init"),this.$message({type:"success",message:"发送成功"})):this.$message({type:"warning",message:"发送失败"})}))},updateAiReply(){const e={replyId:this.ai_reply_id,content:this.editor.getHtml()};this.isSending=!0,L$e(e).then((e=>{this.isSending=!1,"0"===e.code?(this.close(),this.$emit("init"),this.$message({type:"success",message:"发送成功"})):this.$message({type:"warning",message:"发送失败"})}))},close(){this.$emit("close",!1)}}},MBe=BBe,NBe=or(MBe,$Be,FBe,!1,null,"16051201",null),RBe=NBe.exports,jBe={name:"edm-sendPage",components:{Editor:RBe},data(){return{btnloading:!1,searchForm:{send_time:Ps(7),sender_account:"",company_name:"",recipient_name:"",content:"",commit_status:"",send_status:"",read_status:"",click_link_status:"",reply_status:"",return_status:"",unsubscribe_status:"",spam_complaints_status:"",page:1,page_size:10},tableData:[],tableTotal:0,isShrink:!1,loading:!1,isShowAi:!1,ai_reply_id:"",aiReplyContent:""}},mounted(){this.initPageData()},methods:{initPageData(){const e={startTime:this.searchForm.send_time?this.searchForm.send_time[0]+" 00:00:00":"",endTime:this.searchForm.send_time?this.searchForm.send_time[1]+" 23:59:59":"",mobile:this.searchForm.sender_account,companyName:this.searchForm.company_name,addressee:this.searchForm.recipient_name,content:this.searchForm.content,status:this.searchForm.send_status,isRead:this.searchForm.read_status,isClick:this.searchForm.click_link_status,isReply:this.searchForm.reply_status,isReject:this.searchForm.return_status,isUnsub:this.searchForm.unsubscribe_status,isSpam:this.searchForm.spam_complaints_status,currentPage:this.searchForm.page,pageSize:this.searchForm.page_size};this.loading=!0,F$e(e).then((e=>{this.loading=!1,e&&(e.data.rows.map((e=>{let t=e.status;switch(t){case 0:e.statusTxt="待发送";break;case 1:e.statusTxt="发送成功";break;case 2:e.statusTxt="发送失败";break;case 3:e.statusTxt="待审核";break;case 5:e.statusTxt="驳回";break;default:break}})),this.tableData=e.data.rows,this.tableTotal=e.data.total)}))},down(){const e={startTime:this.searchForm.send_time?this.searchForm.send_time[0]+" 00:00:00":"",endTime:this.searchForm.send_time?this.searchForm.send_time[1]+" 23:59:59":"",mobile:this.searchForm.sender_account,companyName:this.searchForm.company_name,addressee:this.searchForm.recipient_name,content:this.searchForm.content,status:this.searchForm.send_status,isRead:this.searchForm.read_status,isClick:this.searchForm.click_link_status,isReply:this.searchForm.reply_status,isReject:this.searchForm.return_status,isUnsub:this.searchForm.unsubscribe_status,isSpam:this.searchForm.spam_complaints_status,currentPage:this.searchForm.page,pageSize:this.searchForm.page_size};this.btnloading=!0,V$e(e).then((e=>{if(e){const t=document.createElement("a");let n=new Blob([e],{type:"application/x-download"});t.style.display="none",t.href=URL.createObjectURL(n);let i=$s();t.setAttribute("download",`发信数据-${i}.xlsx`),document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(t.href),this.btnloading=!1}}))},changePage(e){this.searchForm.page=e,this.initPageData()},getAiReplyData(e){j$e(e).then((e=>{"0"===e.code&&(this.aiReplyContent=e.data.content,this.isShowAi=!0)}))},close(){this.isShowAi=!1},skipBlogDetail(e){if(e&&""!==e){const t=this.$router.resolve({path:"/blogDetail",query:{id:e}});window.open(t.href,"_blank")}},skipDetail(e){const t=this.$router.resolve({path:"/sendDetail",query:{id:e}});window.open(t.href,"_blank")},reset(){this.searchForm.send_time=Ps(7),this.searchForm.sender_account="",this.searchForm.company_name="",this.searchForm.recipient_name="",this.searchForm.content="",this.searchForm.commit_status="",this.searchForm.send_status="",this.searchForm.read_status="",this.searchForm.click_link_status="",this.searchForm.reply_status="",this.searchForm.return_status="",this.searchForm.unsubscribe_status="",this.searchForm.spam_complaints_status=""},shrinkSearch(){this.isShrink=!this.isShrink},filterHtmlTag(e){return e?(e=e.replace(/<\/?.+?\/?>/g,""),e):"-"},tableHeadClass({columnIndex:e}){return 0===e?"table-main-head-left":15===e?"table-main-head-right":"table-main-head"},tableCellClass(){return"table-main-cell"}}},LBe=jBe,zBe=or(LBe,IBe,PBe,!1,null,"5fecc8a6",null),VBe=zBe.exports,HBe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"table-container"},[t("div",{staticClass:"grid grid-cols-3 mb8"},[t("div",{staticClass:"search-item mr40"},[t("span",[e._v("收信时间:")]),t("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":" ","start-placeholder":"开始","end-placeholder":"结束"},model:{value:e.searchForm.recipient_time,callback:function(t){e.$set(e.searchForm,"recipient_time",t)},expression:"searchForm.recipient_time"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v("发件人:")]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.sender_name,callback:function(t){e.$set(e.searchForm,"sender_name",t)},expression:"searchForm.sender_name"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v("收件账号:")]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.recipient_account,callback:function(t){e.$set(e.searchForm,"recipient_account",t)},expression:"searchForm.recipient_account"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v("收件姓名:")]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.recipient_name,callback:function(t){e.$set(e.searchForm,"recipient_name",t)},expression:"searchForm.recipient_name"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v("公司名称:")]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.company_name,callback:function(t){e.$set(e.searchForm,"company_name",t)},expression:"searchForm.company_name"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v("正文检索:")]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.content,callback:function(t){e.$set(e.searchForm,"content",t)},expression:"searchForm.content"}})],1),t("div",{staticClass:"search-item col-span-3"},[t("button",{staticClass:"search-btn search-btn-face mr16",on:{click:function(t){e.searchForm.page=1,e.initPageData()}}},[e._v(" 查 询 ")]),t("el-button",{staticClass:"cutom-btnLoading",attrs:{type:"primary",loading:e.btnloading},on:{click:function(t){return e.down()}}},[e._v(e._s(this.btnloading?"下载中":"下载"))]),t("button",{staticClass:"search-btn search-btn-linear mr24",on:{click:e.reset}},[e._v(" 重 置 ")])],1)]),t("div",{staticClass:"table-body"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.tableData,"header-cell-class-name":e.tableHeadClass,"cell-class-name":e.tableCellClass,height:"700px",border:""}},[t("el-table-column",{attrs:{prop:"gmtCreate",label:"收件时间",width:"110","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"nameAddresser",label:"发件人",width:"110","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"usernameMobile",label:"收件人",width:"80","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"nickName",label:"姓名",width:"80","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"companyName",label:"公司",width:"90","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"subject",label:"主题",width:"150","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{label:"正文","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(e.filterHtmlTag(t.contents))+" ")]}}])}),t("el-table-column",{attrs:{label:"已读未读",width:"150",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(1===t.isRead?e.$t("edm5.v46"):e.$t("edm5.v47"))+" ")]}}])}),t("el-table-column",{attrs:{label:"操作",width:"130",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"table-tool"},[t("button",{staticClass:"table-tool-btn-txt",on:{click:function(t){return e.skipDetail(n)}}},[e._v(" 查看 ")])])]}}])})],1)],1),t("div",{staticClass:"table-foot"},[t("el-pagination",{attrs:{"current-page":e.searchForm.page,total:e.tableTotal,"page-size":e.searchForm.page_size,background:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":e.changePage}})],1)])},UBe=[],WBe={name:"edm-receivePage",data(){return{btnloading:!1,searchForm:{recipient_time:Ps(7),sender_name:"",recipient_account:"",recipient_name:"",company_name:"",content:"",page:1,page_size:10},tableData:[],tableTotal:0,loading:!1}},mounted(){this.initPageData()},methods:{initPageData(){const e={startTime:this.searchForm.recipient_time?this.searchForm.recipient_time[0]+" 00:00:00":"",endTime:this.searchForm.recipient_time?this.searchForm.recipient_time[1]+" 23:59:59":"",sender:this.searchForm.sender_name,usernameMobile:this.searchForm.recipient_account,nickName:this.searchForm.recipient_name,companyName:this.searchForm.company_name,content:this.searchForm.content,currentPage:this.searchForm.page,pageSize:this.searchForm.page_size};this.loading=!0,B$e(e).then((e=>{this.loading=!1,"0"===e.code&&(this.tableData=e.data.rows,this.tableTotal=e.data.total)}))},down(){const e={startTime:this.searchForm.recipient_time?this.searchForm.recipient_time[0]+" 00:00:00":"",endTime:this.searchForm.recipient_time?this.searchForm.recipient_time[1]+" 23:59:59":"",sender:this.searchForm.sender_name,usernameMobile:this.searchForm.recipient_account,nickName:this.searchForm.recipient_name,companyName:this.searchForm.company_name,content:this.searchForm.content,currentPage:this.searchForm.page,pageSize:this.searchForm.page_size};this.btnloading=!0,z$e(e).then((e=>{if(e){const t=document.createElement("a");let n=new Blob([e],{type:"application/x-download"});t.style.display="none",t.href=URL.createObjectURL(n);let i=$s();t.setAttribute("download",`收信数据-${i}.xlsx`),document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(t.href),this.btnloading=!1}}))},changePage(e){this.searchForm.page=e,this.initPageData()},skipDetail(e){const t=this.$router.resolve({path:"/receiveDetail",query:{id:e.id,chatId:e.chatId}});window.open(t.href,"_blank")},reset(){this.searchForm.recipient_time=Ps(7),this.searchForm.sender_name="",this.searchForm.recipient_account="",this.searchForm.recipient_name="",this.searchForm.company_name="",this.searchForm.content=""},filterHtmlTag(e){return e?(e=e.replace(/<\/?.+?\/?>/g,""),e):"-"},tableHeadClass({columnIndex:e}){return 0===e?"table-main-head-left":8===e?"table-main-head-right":"table-main-head"},tableCellClass(){return"table-main-cell"}}},qBe=WBe,YBe=or(qBe,HBe,UBe,!1,null,"4410779a",null),GBe=YBe.exports,KBe={name:"edm-maildata",components:{breadCrumb:SBe,sideMenu:OBe,SendData:VBe,ReceiveData:GBe},data(){return{menuData:["发信数据","收信数据"],menuActiveIndex:localStorage.getItem("edmMenuIndex")?1*localStorage.getItem("edmMenuIndex"):0}},methods:{selectMenu(e){this.menuActiveIndex=e,localStorage.setItem("edmMenuIndex",e)}}},XBe=KBe,ZBe=or(XBe,mBe,gBe,!1,null,"8922b0e2",null),JBe=ZBe.exports,QBe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-container page-overflow hidden-scrollbar"},[t("div",{staticClass:"bread mb24"},[t("el-breadcrumb",{attrs:{separator:"/"}},[t("el-breadcrumb-item",[e._v("EDM")]),t("el-breadcrumb-item",{attrs:{to:{path:e.goBackUrl}}},[e._v(" 邮件数据 ")]),t("el-breadcrumb-item",[e._v("发信详情")])],1)],1),t("div",{staticClass:"main"},[t("div",{staticClass:"head mb24"},[e._v(" 发信箱 ")]),0!==e.mailData.length?t("div",{staticClass:"body"},[t("h1",{staticClass:"beyond_eip mb32"},[e._v(" "+e._s(e.mailData.subject)+" ")]),t("div",{staticClass:"mail-head mb24"},[t("el-image",{staticClass:"mail-avatar",attrs:{src:i(3690),fit:"cover"}}),t("div",{staticClass:"mail-roster"},[t("h3",[e._v(e._s(e.mailData.nickName))]),t("div",{staticClass:"mail-to"},[t("span",[e._v("发送至:")]),t("p",[e._v(e._s(e.mailData.bloggerNames))])])]),t("span",{staticClass:"mail-date"},[e._v(" "+e._s(e.mailData.gmtCreate)+" ")])],1),e.mailData.attachmentRes?t("div",[e.mailData.attachmentRes.length?t("attachment-list",{attrs:{file:e.mailData.attachmentRes}}):e._e()],1):e._e(),t("div",{staticClass:"mail-main",domProps:{innerHTML:e._s(e.filterBaseTag(e.mailData.content))}})]):e._e()])])},eMe=[],tMe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"file-list grid grid-cols-4 mb16"},[e._l(e.handleShowFile(),(function(n,i){return t("div",{key:i,staticClass:"file-item mb8"},[t("i",{staticClass:"dss-iconfont icon-file-4 mr8"}),t("h3",{staticClass:"beyond_eip mr8"},[e._v(" "+e._s(n.name)+" ")]),t("a",{on:{click:function(t){return e.downFile(n)}}},[t("i",{staticClass:"dss-iconfont icon-download"})])])})),t("div",{staticClass:"file-action col-span-4 mb8"},[e.file.length>4?t("button",{staticClass:"file-btn mr12",on:{click:function(t){e.isShrink=!e.isShrink}}},[t("i",{staticClass:"dss-iconfont icon-arrow-down mr4",style:e.isShrink?"":"transform: rotate(180deg);"}),t("p",[e._v(" "+e._s(e.isShrink?`${e.$i18n.t("outboxDetail.show_all")}`+(e.file.length-4)+`${e.$i18n.t("outboxDetail.file_num")}`:`${e.$i18n.t("outboxDetail.retract")}`)+" ")])]):e._e(),t("button",{staticClass:"file-btn mr12",on:{click:e.downloadAll}},[t("p",{staticClass:"mr4"},[e._v(e._s(e.$i18n.t("outboxDetail.down_all"))+":")]),t("i",{staticClass:"dss-iconfont icon-download"})])])],2)},nMe=[],iMe={props:{file:{default:()=>[],type:Array}},data(){return{isShrink:!0}},methods:{downFile(e){Ms(e.link,e.name)},downloadAll(){this.file.forEach((e=>{Ms(e.link,e.name)}))},handleShowFile(){const e=JSON.parse(JSON.stringify(this.file));return this.isShrink?e.slice(0,4):e}}},rMe=iMe,oMe=or(rMe,tMe,nMe,!1,null,"1d8b2830",null),aMe=oMe.exports,sMe={name:"edm-send",components:{AttachmentList:aMe},props:{goBackUrl:{type:String,default:"/edmManage/mailData"}},data(){return{id:1*this.$route.query.id,mailData:[]}},created(){this.initPageData()},methods:{initPageData(){R$e(this.id).then((e=>{e&&(this.mailData=e.data)}))},filterBaseTag(e){if(e)return e=e.replace("https://pixel.xin/emailControl.php?mid=",""),e=e.replace("https://pixel.xin/hub.gif?mid=",""),e=e.replace(new RegExp("unsubscribe","g"),""),e=e.replace(/\r\n/g,"<br />"),e=e.replace(/ツ?/g,""),e=e.replace(/<base.*?(?:>|\/>)/gi,""),e}}},lMe=sMe,cMe=or(lMe,QBe,eMe,!1,null,"58a17d30",null),uMe=cMe.exports,dMe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-container page-overflow hidden-scrollbar"},[t("div",{staticClass:"bread mb24"},[t("el-breadcrumb",{attrs:{separator:"/"}},[t("el-breadcrumb-item",[e._v("EDM")]),t("el-breadcrumb-item",{attrs:{to:{path:e.goBackUrl}}},[e._v(" 邮件数据 ")]),t("el-breadcrumb-item",[e._v("收信详情")])],1)],1),t("div",{staticClass:"main"},[t("div",{staticClass:"head mb24"},[e._v(" 收信箱 ")]),t("div",{staticClass:"body"},[0!==e.mailData.length?t("h1",{staticClass:"beyond_eip mb32"},[e._v(" "+e._s(e.mailData[0].subject)+" ")]):e._e(),e._l(e.mailData,(function(n,i){return t("div",{key:i,staticClass:"mb24"},[t("div",{staticClass:"mail-head mb24",on:{click:function(t){return e.spreadMain(n.id)}}},[t("el-image",{staticClass:"mail-avatar",attrs:{src:n.bloggerAvatar,fit:"cover"}}),t("div",{staticClass:"mail-roster"},[t("h3",[e._v(e._s(1===n.type?n.bloggerName:n.userName))]),t("div",{staticClass:"mail-to"},[t("span",[e._v("发送至:")]),t("p",[e._v(e._s(1===n.type?n.userName:n.bloggerName))])])]),t("span",{staticClass:"mail-date"},[e._v(" "+e._s(n.createTime)+" ")])],1),e.spreadId===n.id?t("div",[n.attachment?t("div",[n.attachment.length?t("attachment-list",{attrs:{file:n.attachment}}):e._e()],1):e._e()]):e._e(),e.spreadId===n.id?t("div",{staticClass:"mail-main",domProps:{innerHTML:e._s(e.filterBaseTag(n.content))}}):e._e()])}))],2)])])},hMe=[],pMe={name:"edm-receive",components:{AttachmentList:aMe},props:{goBackUrl:{type:String,default:"/edmManage/mailData"}},data(){return{id:this.$route.query.id,chatId:this.$route.query.chatId,spreadId:this.$route.query.id,mailData:[]}},created(){this.initPageData()},methods:{initPageData(){this.chatId?M$e(this.chatId).then((e=>{"0"===e.code&&(this.mailData=e.data)})):N$e(this.id).then((e=>{"0"===e.code&&this.mailData.push(e.data)}))},spreadMain(e){e!==this.spreadId?this.spreadId=e:this.spreadId=-1},handleAvatar(e,t){return 1===e?"":2===e&&t?t:""},filterBaseTag(e){if(e)return e=e.replace("https://pixel.xin/emailControl.php?mid=",""),e=e.replace("https://pixel.xin/hub.gif?mid=",""),e=e.replace(new RegExp("unsubscribe","g"),""),e=e.replace(/\r\n/g,"<br />"),e=e.replace(/ツ?/g,""),e=e.replace(/<base.*?(?:>|\/>)/gi,""),e}}},fMe=pMe,mMe=or(fMe,dMe,hMe,!1,null,"7a1abb1c",null),gMe=mMe.exports,vMe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"recipient-container"},[t("div",{staticClass:"recipient-box"},[t("div",{staticClass:"recipient-header"},[t("div",{staticClass:"header-left"},[e._v(e._s(e.$t("edm2.mailEn23")))]),t("div",{staticClass:"header-right"},[t("div",{staticClass:"add-recipient",on:{click:e.addRecipient}},[t("i",{staticClass:"dss-iconfont icon-add1"}),e._v(e._s(e.$t("edm2.mailEn24"))+" ")]),t("div",{staticClass:"remove-recipient",on:{click:e.removeRecipient}},[t("i",{staticClass:"dss-iconfont icon-remove"}),e._v(e._s(e.removeText)+" ")]),t("div",{staticClass:"next-btn"},[t("el-button",{on:{click:e.cancel}},[e._v(e._s(e.$t("common.cancle")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.nextStep}},[e._v(" "+e._s(e.$t("edm2.mailEn25"))+" ")])],1)])]),t("div",{staticClass:"recipient-table"},[t("WTable",{ref:"mailTable",attrs:{"row-key":"id",tableConfig:{selection:e.tableConfigSelection,selectionFixed:!0},tableColumnConfig:e.tableColumnConfig,tableData:e.tableDataShow[e.tableDataShowIndex],height:e.tableHeight,"max-height":e.tableHeight,loading:e.loading,total:e.allTableData.length,isRecipientList:!0,tableConfigSelection:e.tableConfigSelection,countRecipient:e.allTableData.length,validRecipient:e.validRecipient,layout:"total, prev, pager, next, jumper"},on:{handleBtnClick:e.confirmRemoveRecipient,changeCurrent:e.tableChangeCurrent},scopedSlots:e._u([{key:"blogger",fn:function({data:n}){return[t("BloggerColumn",{attrs:{bloggerAvatar:n.scope.bloggerAvatar,bloggerName:n.scope.bloggerName,bloggerUsername:n.scope.bloggerUsername,bloggerId:n.scope.bloggerId,platform:n.scope.platform,bloggerInfo:n.scope},on:{toBloggerDeatil:e.toBloggerDeatil}})]}},{key:"platform",fn:function({data:n}){return["youtube"==n.scope.platform?t("img",{attrs:{src:"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/youtube.png"}}):e._e(),"tiktok"==n.scope.platform?t("img",{attrs:{src:"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/tiktok.png"}}):e._e(),"instagram"==n.scope.platform?t("img",{attrs:{src:"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/ins.png"}}):e._e()]}}])})],1)]),e.isShowRepeatDrawer?t("repeat-recipient",{attrs:{isShowDrawer:e.isShowRepeatDrawer,repeatRecipientData:e.repeatRecipientData},on:{closeRecipientDrawer:e.closeRecipientDrawer,confirmRepeatRecipient:e.confirmRepeatRecipient}}):e._e()],1)},yMe=[],bMe=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{title:e.$t("edm2.mailEn31"),visible:e.isShowDrawer,size:"560px","append-to-body":!0},on:{"update:visible":function(t){e.isShowDrawer=t},close:e.closeRecipientDrawer}},[t("p",{staticClass:"tips"},[e._v(e._s(e.$t("edm2.mailEn32")))]),e._l(e.repeatArr,(function(n,i){return t("div",{key:i,staticClass:"repeat-item"},[t("div",{staticClass:"blogger-info"},[t("div",{staticClass:"info-left"},[t("div",{staticClass:"avatar"},[t("el-image",{attrs:{src:n.bloggerAvatar}})],1),t("div",{staticClass:"username"},[e._v(e._s(n.bloggerName))]),null!==n.country?t("div",{staticClass:"country"},[t("i",{staticClass:"dss-iconfont icon-dss-weizhi"}),e._v(e._s(n.country)+" ")]):e._e(),t("div",{staticClass:"platform"},[t("el-image",{attrs:{src:"youtube"==n.platform?"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/youtube.png":"tiktok"==n.platform?"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/tiktok.png":"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/ins.png"}})],1)]),t("div",{staticClass:"info-right"},[t("div",{staticClass:"right-top"},[e._v(e._s(e._f("numFormat")(n.fansNum)))]),t("div",{staticClass:"right-bottom"},[e._v(e._s(e.$t("writeMail.fans_num")))])])]),t("WTable",{attrs:{height:e.tableHeight,"max-height":e.tableHeight,loading:e.loading,tableColumnConfig:e.tableColumnConfig,tableData:n.repeatTableData,total:n.repeatTableData.length,layout:"total"},scopedSlots:e._u([{key:"radio",fn:function({data:i}){return[t("el-radio",{attrs:{label:i.scope.id},on:{input:function(t){return e.changeRadio(t,n.bloggerId)}},model:{value:n.radio,callback:function(t){e.$set(n,"radio",t)},expression:"item.radio"}},[t("span")])]}}],null,!0)})],1)})),t("div",{staticClass:"btns"},[t("el-button",{on:{click:e.cancelRepeatRecipient}},[e._v(" "+e._s(e.$t("common.cancle"))+" ")]),t("el-button",{attrs:{type:"primary"},on:{click:e.confirmRepeatRecipient}},[e._v(" "+e._s(e.$t("inboxTable.confirm"))+" ")])],1)],2)},wMe=[],_Me={components:{WTable:UIe},props:{isShowDrawer:{type:Boolean,default:!1},repeatRecipientData:{type:Array,default:()=>[]}},data(){return{repeatArr:this.repeatRecipientData,tableHeight:256,loading:!1,tableColumnConfig:[{label:"",scope:"radio"},{label:Mc.$t("inboxDetail.planVal"),prop:"popularizePlanName",showOverflowTooltip:!0},{label:Mc.$t("edm2.mailEn26"),prop:"chooseSourceStr"}],tableData:[],tableTotal:0,radio:"",selectedRepeatIds:[]}},methods:{changeRadio(e,t){let n={id:e,bloggerId:t};this.selectedRepeatIds.some((e=>e.bloggerId===n.bloggerId))||this.selectedRepeatIds.push(n),this.selectedRepeatIds=this.selectedRepeatIds.map((e=>e.bloggerId===n.bloggerId?n:e))},closeRecipientDrawer(){this.$emit("closeRecipientDrawer")},cancelRepeatRecipient(){this.closeRecipientDrawer()},confirmRepeatRecipient(){this.$emit("confirmRepeatRecipient",this.selectedRepeatIds)}}},CMe=_Me,xMe=or(CMe,bMe,wMe,!1,null,"606cf912",null),SMe=xMe.exports,kMe={name:"recipientList",components:{WTable:UIe,BloggerColumn:qFe,repeatRecipient:SMe},props:{allTableData:{type:Array,default:()=>[]}},data(){return{tableColumnConfig:[{label:"",scope:"blogger"},{label:Mc.t("edm2.mailEn17"),prop:"country"},{label:Mc.t("edm2.mailEn18"),scope:"platform"},{label:Mc.t("writeMail.fans_num"),prop:"fansNum",format:"numFormat"},{label:Mc.t("inboxDetail.planVal"),prop:"popularizePlanName",showOverflowTooltip:!0},{label:Mc.t("edm2.mailEn26"),prop:"chooseSourceStr",showOverflowTooltip:!0}],tableDataShow:[],tableDataShowIndex:0,loading:!1,total:0,tableHeight:js(200),searchForm:{currentPage:1,pageSize:20},removeText:Mc.t("edm2.mailEn27"),tableConfigSelection:!1,isShowRepeatDrawer:!1,repeatRecipientData:[],resultRecipientData:[],validRecipient:0,countRecipient:0,isShowSave:!1,draftEmails:[],hasNotice:!1}},watch:{allTableData:{deep:!0,handler(e){0!==e.length&&this.getValidReceiver(),this.tableDataShow=[];let t=JSON.parse(JSON.stringify(e));if(e.length>20){let n=Math.floor(e.length/20);for(let e=0;e<n;e++)this.tableDataShow[e]=t.splice(0,20);this.tableDataShow.push([...t])}else this.tableDataShow[0]=e},immediate:!0}},created(){this.init()},methods:{toBloggerDeatil(e){this.$emit("toBloggerDeatil",e)},filterHtmlTag(e){return e&&(e=e.replace(/<head>[\s\S]*?<\/head>/i,""),e=e.replace(/<img[^>]*>/gi,""),e=e.replace(/<[^>]+>|&[^>]+;/g,""),e=e.replace(new RegExp("&nbsp;","g"),""),e=e.replace(new RegExp("\n","g"),""),e=e.replace(new RegExp(" ","g"),"")),null==e||""==e||void 0==e},getValidReceiver(){let e=Is(this.allTableData,"bloggerId");SFe({bloggerIds:e}).then((e=>{"0"===e.code?this.validRecipient=e.data:this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},init(){this.tableDataShowIndex=0,this.$refs["mailTable"]&&(this.$refs["mailTable"].pageNum=1)},tableChangeCurrent({pageNum:e}){this.tableDataShowIndex=e-1},removeRecipient(){this.removeText=this.removeText==this.$t("edm2.mailEn27")?this.$t("edm2.mailEn28"):this.$t("edm2.mailEn27"),this.tableConfigSelection=this.removeText==this.$t("edm2.mailEn28"),this.$refs.mailTable.$refs.xTable.clearSelection()},addRecipient(){this.$emit("addRecipient")},confirmRemoveRecipient(e,t){this.$refs.mailTable.$refs.xTable.clearSelection(),this.init(),this.$emit("confirmRemoveRecipient",t)},cancel(){this.allTableData.length>500?this.$confirm(this.$t("edm5.v247"),"",{showCancelButton:!1,confirmButtonText:this.$t("edm5.v248")}):this.$route.query.draftId?this.getDraftDetail():0==this.allTableData.length?(this.$router.push("/outbox"),localStorage.removeItem("beforeSelected"),localStorage.removeItem("resultRecipientData")):(this.isShowSave=!0,this.remindSave())},async getDraftDetail(){try{const e=await Hd(this.$route.query.draftId);if("0"===e.code){this.draftEmails=e.data.map((e=>({id:e.writeEmailId,subject:e.subject,content:e.content,attachments:e.attachmentRes||[]})));const t=this.draftEmails.every((e=>!e.subject)),n=this.draftEmails.every((e=>this.filterHtmlTag(e.content))),i=this.draftEmails.every((e=>e.attachments&&0==e.attachments.length));console.log(t,n,i),0==this.allTableData.length&&t&&n&&i?this.$router.push("/outbox"):(this.isShowSave=!0,this.remindSave())}else this.$message({type:"error",message:e.message,customClass:"custom-message"})}catch(rl){console.log(rl)}},async saveDraft(){if(0!==this.allTableData.length){let e=await this.getBloggerMail(this.allTableData);if(0!==e.length){e.length<this.allTableData.length&&(this.hasNotice=!0);let t=[];e.forEach((e=>{let n=this.allTableData.find((t=>t.bloggerId===e.id));n&&t.push(n)}));const n=t.map((e=>({bloggerId:e.bloggerId,chooseSource:e.chooseSource||void 0,popularizePlanId:e.popularizePlanId||void 0,popularizePlanName:e.popularizePlanName||void 0}))),i={id:this.$route.query.draftId?this.$route.query.draftId:"",emails:this.$route.query.draftId?this.draftEmails:[],bloggerInfos:n,type:1==this.$route.query.isTiming?2:99,timing:1==this.$route.query.isTiming?this.$route.query.rowTime:void 0,replyId:void 0,sendEntryKey:"outbox-cancle",writeIds:[]};try{const e=await Ed(i);"0"===e.code?(this.hasNotice&&this.$message({type:"warning",message:this.$t("edm5.v249"),customClass:"custom-message",duration:2e3}),this.$router.push("/outbox"),localStorage.removeItem("beforeSelected"),localStorage.removeItem("resultRecipientData")):this.$message({type:"error",message:e.message,customClass:"custom-message"})}catch(rl){return console.log(rl),!1}}}else{const e=[],t={id:this.$route.query.draftId?this.$route.query.draftId:"",emails:this.$route.query.draftId?this.draftEmails:[],bloggerInfos:e,type:1==this.$route.query.isTiming?2:99,timing:1==this.$route.query.isTiming?this.$route.query.rowTime:void 0,replyId:void 0,sendEntryKey:"outbox-cancle",writeIds:[]};try{const e=await Ed(t);"0"===e.code?(this.$router.push("/outbox"),localStorage.removeItem("beforeSelected"),localStorage.removeItem("resultRecipientData")):this.$message({type:"error",message:e.message,customClass:"custom-message"})}catch(rl){return console.log(rl),!1}}},remindSave(){if(this.isShowSave){const e=confirm(`${this.$i18n.t("writeMail.save_draft_tip")}`);e&&this.saveDraft(!0)}},nextStep(){this.$emit("confirmToWritePage")},closeRecipientDrawer(){this.isShowRepeatDrawer=!1},confirmRepeatRecipient(e){0==e.length?this.$confirm(this.$t("edm2.mailEn29"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning",customClass:"custom-confirm"}).then((()=>{const e=new Set(this.repeatRecipientData.map((e=>e.bloggerId)));this.resultRecipientData=this.allTableData.filter((t=>!e.has(t.bloggerId))),this.$emit("confirmToWritePage",this.resultRecipientData)})).catch((()=>{console.log("取消操作")})):e.length<this.repeatRecipientData.length?this.$confirm(this.$t("edm2.mailEn29"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning",customClass:"custom-confirm"}).then((()=>{const t=new Set(e.map((e=>e.bloggerId))),n=this.repeatRecipientData.filter((e=>!t.has(e.bloggerId))),i=(this.repeatRecipientData.filter((e=>t.has(e.bloggerId))),new Set(n.map((e=>e.bloggerId)))),r=this.allTableData.filter((e=>!i.has(e.bloggerId))),o=new Map(e.map((e=>[e.bloggerId,e.id])));this.resultRecipientData=r.filter((e=>{const t=o.get(e.bloggerId);return!t||e.id===t})),this.$emit("confirmToWritePage",this.resultRecipientData)})).catch((()=>{console.log("取消操作")})):e.length==this.repeatRecipientData.length&&this.$confirm(this.$t("edm2.mailEn30"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning",customClass:"custom-confirm"}).then((()=>{const t=new Map(e.map((e=>[e.bloggerId,e.id])));this.resultRecipientData=this.allTableData.filter((e=>{const n=t.get(e.bloggerId);return!n||e.id===n})),this.$emit("confirmToWritePage",this.resultRecipientData)})).catch((()=>{console.log("取消操作")}))},excludeMatchingBloggerId(e,t){const n=new Map(e.map((e=>[e.bloggerId,e.id])));return t.filter((e=>n.get(e.bloggerId)===e.id))},async getBloggerMail(e){let t=[],n=Is(e,"bloggerId");return await Fd({code:"checkBloggerhasEmail",data:{param:{bloggerIds:n}}}).then((n=>{if("0"===n.code){if(0===n.data.length)return void this.$message({type:"warning",message:this.$t("edm5.v251"),customClass:"custom-message"});if(n.data.length<e.length){let i=[];e.forEach((e=>{n.data.forEach((t=>{e.bloggerId===t.blogId&&i.push(e)}))})),i.forEach((e=>{t.push({id:e.bloggerId,name:e.bloggerName})}))}else e.length===n.data.length&&e.forEach((e=>{t.push({id:e.bloggerId,name:e.bloggerName})}))}})),t}}},EMe=kMe,DMe=or(EMe,vMe,yMe,!1,null,"40cd6474",null),AMe=DMe.exports,TMe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bind-help"},[t("div",{staticClass:"box-main"},[t("div",{staticClass:"title1"},[e._v(e._s(e.$t("edm5.v137")))]),t("div",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v138"))+" ")]),t("div",{staticClass:"title2"},[e._v(e._s(e.$t("edm5.v139")))]),t("div",{staticClass:"content"},[t("p",{staticClass:"method"},[e._v(" "+e._s(e.$t("edm5.v140"))+" ")]),t("p",{staticClass:"method"},[e._v(" "+e._s(e.$t("edm5.v141"))+" ")]),t("p",{staticClass:"method"},[e._v(" "+e._s(e.$t("edm5.v142"))+" ")]),t("p",{staticClass:"method"},[e._v(" "+e._s(e.$t("edm5.v143"))+" ")])]),t("div",{staticClass:"title2"},[e._v(e._s(e.$t("edm5.v144")))]),t("div",{staticClass:"content"},[t("p",{staticClass:"methods"},[e._v(" "+e._s(e.$t("edm5.v145"))+" ")]),e._m(0),t("p",{staticClass:"methods"},[e._v("   "+e._s(e.$t("edm5.v146")))]),t("p",{staticStyle:{"font-weight":"500","margin-top":"6px"}},[e._v(e._s(e.$t("edm5.v147")))]),e._m(1),t("p",{staticStyle:{"font-weight":"500","margin-top":"6px"}},[e._v(" "+e._s(e.$t("edm5.v148"))+" ")]),e._m(2),e._m(3),t("p",{staticStyle:{"font-weight":"500","margin-top":"6px"}},[e._v(" "+e._s(e.$t("edm5.v149"))+" ")]),e._m(4),e._m(5)]),t("div",{staticClass:"title2"},[e._v(e._s(e.$t("edm5.v150")))]),t("div",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v151"))+" ")]),t("div",{staticClass:"rule-table"},[t("el-table",{staticClass:"bind-rule-table",staticStyle:{width:"100%"},attrs:{border:"",data:e.tableData}},[t("el-table-column",{attrs:{width:"140",align:"center",prop:"name",label:e.$t("edm5.v152")}}),t("el-table-column",{attrs:{width:"168",align:"center",prop:"smtp",label:e.$t("edm5.v153")}}),t("el-table-column",{attrs:{width:"160",align:"center",prop:"isNeedAuth",label:e.$t("edm5.v154")}}),t("el-table-column",{attrs:{align:"left",prop:"value",label:e.$t("edm5.v155")},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",{staticClass:"help-content",domProps:{innerHTML:e._s(n.row.helps)}})]}}])}),t("el-table-column",{attrs:{align:"left",prop:"value",label:e.$t("edm5.v156")},scopedSlots:e._u([{key:"default",fn:function(n){return[e._l(n.row.rules.rule,(function(n){return t("p",{key:n,staticClass:"rule-item"},[e._v(" "+e._s(n)+" ")])})),t("p",[t("a",{staticClass:"r-link",attrs:{href:n.row.rules.link,target:"_blank"}},[e._v(e._s(e.$t("edm5.v157")))])])]}}])})],1)],1),t("div",{staticClass:"other-tip"},[t("div",{staticClass:"title2"},[e._v(e._s(e.$t("edm5.v158")))]),t("p",{staticClass:"content"},[e._v(e._s(e.$t("edm5.v159")))]),t("li",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v160"))+" ")]),t("p",{staticClass:"content"},[e._v(e._s(e.$t("edm5.v161")))]),t("li",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v162"))+" ")]),t("li",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v163"))+" ")]),t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/email-rule.png",alt:""}}),t("p",{staticClass:"content"},[e._v(e._s(e.$t("edm5.v164")))]),t("li",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v165"))+" ")]),t("p",{staticClass:"content"},[e._v(e._s(e.$t("edm5.v166")))]),t("li",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v167"))+" ")])])])])},OMe=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"img-box"},[t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/gmail-1.png",alt:""}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"img-box"},[t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/gmail-2.png",alt:""}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"img-box"},[t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/gmail-3.png",alt:""}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"img-box"},[t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/gmail-4.png",alt:""}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"img-box"},[t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/gmail-5.png",alt:""}})])},function(){var e=this,t=e._self._c;return t("div",[t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/gmail-6.png",alt:""}})])}],IMe={name:"bind-help",data(){return{tableData:[{name:this.$t("edm5.v168"),smtp:"smtp.qiye.aliyun.com",isNeedAuth:this.$t("edm5.v49"),helps:`<p>\n <a class="r-link" href="https://help.aliyun.com/document_detail/606337.html" target="_blank">${this.$t("edm5.v172")}</a>\n <a class="r-link" href="https://help.aliyun.com/document_detail/36576.html" target="_blank">${this.$t("edm5.v173")}</a>\n </p>`,rules:{rule:[this.$t("edm5.v169"),this.$t("edm5.v170")],link:"https://help.aliyun.com/document_detail/439236.html"}},{name:this.$t("edm5.v171"),smtp:"smtp.exmail.qq.com",isNeedAuth:this.$t("edm5.v48"),helps:`<p>\n <a class="r-link" href="https://open.work.weixin.qq.com/help2/pc/19886?person_id=1&subtype=1&id=20095&no=1001570" target="_blank">${this.$t("edm5.v174")}</a>\n <a class="r-link" href="https://open.work.weixin.qq.com/help2/pc/19902?person_id=0" target="_blank">${this.$t("edm5.v175")}</a>\n </p>`,rules:{rule:[this.$t("edm5.v176"),this.$t("edm5.v177"),this.$t("edm5.v178")],link:"https://www.qqeml.com/exmail-help-rese/item/39-72"}},{name:this.$t("edm5.v179"),smtp:"smtp.qq.com",isNeedAuth:this.$t("edm5.v48"),helps:`<p>\n <a class="r-link" href="https://service.mail.qq.com/detail/0/75" target="_blank">${this.$t("edm5.v180")}</a>\n </p>`,rules:{rule:[this.$t("edm5.v181")],link:"https://kf.qq.com/faq/161223nMnQfm161223rEbQNr.html"}},{name:this.$t("edm5.v182"),smtp:"smtp-mail.outlook.com",isNeedAuth:this.$t("edm5.v49"),helps:`<p>\n <p style="margin-bottom:12px;">Outlook SMTP<a style="margin-left:8px;display:inline;" class="r-link" href="https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-for-outlook-com-d088b986-291d-42b8-9564-9c414e2aa040" target="_blank">${this.$t("edm5.v183")}</a></p>\n <p>${this.$t("edm5.v184")}<a class="r-link" href="https://outlook.live.com/mail/0/options/mail/accounts/popImap" target="_blank">${this.$t("edm5.v185")}</a></p>\n </p>`,rules:{rule:[this.$t("edm5.v186"),this.$t("edm5.v187"),this.$t("edm5.v188")],link:"https://support.microsoft.com/zh-cn/office/%E4%BB%A5-outlook-com-%E5%8F%91%E9%80%81%E9%99%90%E5%88%B6-279ee200-594c-40f0-9ec8-bb6af7735c2e#:~:text=%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%20Outlook.com%20%E9%99%90%E5%88%B6%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F%201%20%E6%AF%8F%E6%97%A5%E6%94%B6%E4%BB%B6%E4%BA%BA%EF%BC%9A5%2C000%202,%E6%AF%8F%E5%B0%81%E9%82%AE%E4%BB%B6%E7%9A%84%E6%9C%80%E5%A4%A7%E6%94%B6%E4%BB%B6%E4%BA%BA%E6%95%B0%EF%BC%9A500%203%20%E6%AF%8F%E6%97%A5%E9%9D%9E%E5%85%B3%E7%B3%BB%E6%94%B6%E4%BB%B6%E4%BA%BA%EF%BC%9A1%2C000%20%E6%B3%A8%E6%84%8F%3A%20%E9%99%90%E5%88%B6%E5%8F%AF%E8%83%BD%E5%9B%A0%E4%BD%BF%E7%94%A8%E5%8E%86%E5%8F%B2%E8%AE%B0%E5%BD%95%E8%80%8C%E5%BC%82%EF%BC%8C%E5%AF%B9%E4%BA%8E%E9%9D%9E%E8%AE%A2%E9%98%85%E8%80%85%EF%BC%8C%E9%99%90%E5%88%B6%E5%B0%86%E8%BE%83%E4%BD%8E%E3%80%82%20%E2%80%9C%E9%9D%9E%E5%85%B3%E7%B3%BB%E6%94%B6%E4%BB%B6%E4%BA%BA%E2%80%9D%E6%98%AF%E6%8C%87%E4%BD%A0%E4%BB%A5%E5%89%8D%E4%BB%8E%E6%9C%AA%E5%8F%91%E9%80%81%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E8%BF%87%E7%9A%84%E4%BA%BA%E3%80%82%20%E4%BB%BB%E4%BD%95%E7%AC%AC%E4%B8%89%E6%96%B9%E8%BF%9E%E6%8E%A5%E5%B8%90%E6%88%B7%E7%9A%84%E5%8F%91%E9%80%81%E9%99%90%E5%88%B6%E5%8F%96%E5%86%B3%E4%BA%8E%E6%9C%8D%E5%8A%A1%E6%8F%90%E4%BE%9B%E5%95%86%E3%80%82"}}]}}},PMe=IMe,$Me=or(PMe,TMe,OMe,!1,null,"02a9d603",null),FMe=$Me.exports;let BMe="",MMe="";function NMe(e){MMe=e,"dev"===e||"development"===e||"test"===e?BMe="https://api.kuku.info":"pre"===e?BMe="https://api.wotokol.com/index.php":"prod"!==e&&"production"!==e||(BMe="https://api.wotokol.com/index.php")}const RMe=Sn.create({baseURL:"",timeout:25e4});RMe.interceptors.request.use((function(e){const t=(new Date).getTime(),n=Pn()+t,i=e.params||e.data;let r={},o="";i?(r=Nn(e.url,n,t,i),o=r.hmacBytes):(r=Nn(e.url,n,t),o=r.hmacBytes),e.baseURL=MMe?BMe:"https://api.wotokol.com/index.php",e.headers["appkey"]=On,e.headers["timestamp"]=t,e.headers["nonce"]=n,e.headers["cookieid"]=o,e.headers["sign"]=Ln(i).hmacBytes;let a=localStorage.getItem("sourceApp");return a&&(e.headers["sourceApp"]=localStorage.getItem("sourceApp")),localStorage.getItem("token")&&(e.headers["token"]=localStorage.getItem("token")),localStorage.getItem("Authorization")&&(e.headers["Authorization"]=localStorage.getItem("Authorization")),localStorage.getItem("dss_token")&&(e.headers["dss-token"]=localStorage.getItem("dss_token")),e}),(function(e){return Promise.reject(e)})),RMe.interceptors.response.use((function(e){return 503===e.status&&alert("服务器不可用,请联系系统管理员"),e.data}),(function(e){return Promise.reject(e)}));let jMe="",LMe="";function zMe(e){LMe=e,"dev"===e||"development"===e||"test"===e?jMe="https://dss-apis.kuku.info":"pre"===e?jMe="https://dss-apis.wotokol.com/":"prod"!==e&&"production"!==e||(jMe="https://dss-apis.wotokol.com/")}const VMe=Sn.create({baseURL:"",timeout:25e4});VMe.interceptors.request.use((function(e){return e.baseURL=LMe?jMe:"https://dss-apis.wotokol.com/",localStorage.getItem("Authorization")&&(e.headers["Authorization"]=localStorage.getItem("Authorization")),e}),(function(e){return Promise.reject(e)})),VMe.interceptors.response.use((function(e){return 503===e.status&&alert("服务器不可用,请联系系统管理员"),e.data}),(function(e){return Promise.reject(e)}));const HMe=[sr,vFe,Z$e,RFe,Js,vd,XFe,lBe,fBe,JBe,uMe,gMe,AMe,FMe],UMe=function(e){HMe.forEach((t=>{e.component(t.name,t)}))};var WMe={install:UMe,initJavaService:Da,initHubService:NMe,initDssService:zMe},qMe=WMe}(),r}()}));
231
+ ***************************************************************************** */function WTe(e){var t=e.menus,n=e.renderElems,i=e.renderStyle,r=e.elemsToHtml,o=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,l=e.parseStyleHtml,c=e.editorPlugin;t&&t.forEach((function(e){return UTe.registerMenu(e)})),n&&n.forEach((function(e){return UTe.registerRenderElem(e)})),i&&UTe.registerRenderStyle(i),r&&r.forEach((function(e){return UTe.registerElemToHtml(e)})),o&&UTe.registerStyleToHtml(o),a&&a.forEach((function(e){return UTe.registerPreParseHtml(e)})),s&&s.forEach((function(e){return UTe.registerParseElemHtml(e)})),l&&UTe.registerParseStyleHtml(l),c&&UTe.registerPlugin(c)}V8.forEach((function(e){return WTe(e)})),WTe(lie),WTe(Wle),WTe(mve),WTe(pke),WTe(jTe);var qTe='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',YTe={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},GTe={hoverbarKeys:HTe(HTe({},YTe),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};UTe.setEditorConfig(HTe(HTe({},GTe),{decorate:VTe}));var KTe={hoverbarKeys:YTe};UTe.setSimpleEditorConfig(HTe(HTe({},KTe),{decorate:VTe}));var XTe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Bq("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Bq("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Bq("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Bq("editor.image"),iconSvg:qTe,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Bq("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};UTe.setToolbarConfig(XTe);var ZTe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Bq("editor.image"),iconSvg:qTe,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function JTe(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,i=e.content,r=void 0===i?[]:i,o=e.html,a=e.config,s=void 0===a?{}:a,l=e.mode,c="simple"===(void 0===l?"default":l)?UTe.simpleEditorConfig:UTe.editorConfig,u=HTe(HTe({},c.hoverbarKeys||{}),s.hoverbarKeys||{});return OW({selector:n,config:HTe(HTe(HTe({},c),s),{hoverbarKeys:u}),content:r,html:o,plugins:UTe.plugins})}function QTe(e){var t=e.selector,n=e.editor,i=e.config,r=void 0===i?{}:i,o=e.mode,a=void 0===o?"default":o;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s="simple"===a?UTe.simpleToolbarConfig:UTe.toolbarConfig,l=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,i=t.config,r=void 0===i?{}:i;if(function(e,t){return PH(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var o=QR({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},r||{}),a=new BW(n,o);return nL.set(a,e),iL.set(e,a),a}(n,{selector:t,config:HTe(HTe({},s),r)});return l}UTe.setSimpleToolbarConfig(ZTe);var eOe=function(){return eOe=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},eOe.apply(this,arguments)};function tOe(e){var t="请使用 '@".concat(e,"' 事件,不要放在 props 中");return t+"\nPlease use '@".concat(e,"' event instead of props")}var nOe=qn().extend({render:function(e){return e("div",{ref:"box"})},name:"Editor",data:function(){return{curValue:"",editor:null}},props:["defaultContent","defaultConfig","mode","defaultHtml","value"],mounted:function(){this.create()},watch:{value:function(e){e===this.curValue||this.setHtml(e)}},methods:{setHtml:function(e){var t=this.editor;null!=t&&t.setHtml(e)},create:function(){var e=this;if(null!=this.$refs.box){var t=this.defaultConfig||{},n=JSON.stringify(Array.isArray(this.defaultContent)?this.defaultContent:[]);JTe({selector:this.$refs.box,html:this.defaultHtml||this.value||"",config:eOe(eOe({},t),{onCreated:function(n){if(e.editor=Object.seal(n),e.$emit("onCreated",n),t.onCreated){var i=tOe("onCreated");throw new Error(i)}},onChange:function(n){var i=n.getHtml();if(e.curValue=i,e.$emit("input",i),e.$emit("onChange",n),t.onChange){var r=tOe("onChange");throw new Error(r)}},onDestroyed:function(n){if(e.$emit("onDestroyed",n),t.onDestroyed){var i=tOe("onDestroyed");throw new Error(i)}},onMaxLength:function(n){if(e.$emit("onMaxLength",n),t.onMaxLength){var i=tOe("onMaxLength");throw new Error(i)}},onFocus:function(n){if(e.$emit("onFocus",n),t.onFocus){var i=tOe("onFocus");throw new Error(i)}},onBlur:function(n){if(e.$emit("onBlur",n),t.onBlur){var i=tOe("onBlur");throw new Error(i)}},customAlert:function(n,i){if(e.$emit("customAlert",n,i),t.customAlert){var r=tOe("customAlert");throw new Error(r)}},customPaste:function(n,i){if(t.customPaste){var r=tOe("customPaste");throw new Error(r)}var o;return e.$emit("customPaste",n,i,(function(e){o=e})),o}}),content:JSON.parse(n),mode:this.mode||"default"})}}}}),iOe=qn().extend({name:"Toolbar",render:function(e){return e("div",{ref:"box"})},props:["editor","defaultConfig","mode"],methods:{create:function(e){null!=this.$refs.box&&null!=e&&(GL.getToolbar(e)||QTe({editor:e,selector:this.$refs.box,config:this.defaultConfig||{},mode:this.mode||"default"}))}},watch:{editor:{handler:function(e){null!=e&&this.create(e)},immediate:!0}}}),rOe={listModule:{unOrderedList:"Bullet List",orderedList:"Numbered List"},common:{ok:"Confirm",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code Block"},color:{color:"Font Color",bgColor:"Background Color",default:"Default Color",clear:"Clear Background Color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font Size",default:"Default Font"},fontFamily:{title:"Font",default:"Default Font Size"},fullScreen:{title:"Full Screen"},header:{title:"subject",text:"content"},uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} Error Occurred While Uploading Image"},image:{netImage:"Online Images",delete:"Delete Image",edit:"Edit Image",viewLink:"View Link",src:"Image Address",desc:"Image Description",link:"Image Link"},indent:{decrease:"Decrease Indentation",increase:"Increase Indentation"},justify:{left:"Left Align",right:"Right Align",center:"Center Align",justify:"Justify"},lineHeight:{title:"Line Height",default:"Default Line Height"},link:{insert:"Insert Link",text:"Link Text",url:"Link Address",unLink:"Remove Link",edit:"Edit Link",view:"View Link"},videoModule:{delete:"Delete Video",uploadVideo:"Upload Video",insertVideo:"Insert Video",videoSrc:"Video Address",insertPlaceHolder:"Video File URL or Third-Party <iframe>",ok:"OK",editSize:"Resize",width:"Width",height:"Height"},sub:{title:"sub"},textStyle:{bold:"bold",clear:"Clear formatting",code:"Inline Code",italic:"italic",sub:"Subscript",sup:"Superscript",through:"Strikethrough",underline:"Underline"},tableModule:{deleteCol:"Delete Column",deleteRow:"Delete Row",deleteTable:"Delete Table",widthAuto:"Auto Width",insertCol:"Insert Column",insertRow:"Insert Row",insertTable:"Insert Table",header:"Table Header"},undo:{undo:"Undo",redo:"Redo"},todo:{todo:"Todo"}};let oOe=Wi.get("language")||"zh";"en"===oOe?($q("en",{...rOe}),Fq("en")):"zh"===oOe&&Fq("zh-CN");var aOe={components:{Toolbar:iOe,Editor:nOe},props:{height:{default:350,type:Number},theme:{default:"",type:String},htmlText:{default:"",type:String}},data(){return{editor:null,content:this.htmlText,toolbarConfig:{excludeKeys:["blockquote","|","fullScreen","codeBlock","group-video"]},editorConfig:{MENU_CONF:{uploadImage:{server:"/upload/file",async customUpload(e,t){const n=new FormData;console.log("ff",e),n.append("file",e);let i=[];i.push({fileName:e.name,fileSize:e.size}),Ya({fileName:e.name,fileSize:e.size}).then((n=>{console.log("oss",n);let i=new FormData;i.append("key",n.data.objectName),i.append("success_action_status","200"),i.append("x-oss-object-acl","public-read"),i.append("OSSAccessKeyId",n.data.accessKeyId),i.append("policy",n.data.uploadPolicy),i.append("signature",n.data.uploadSignature),i.append("success_action_status","200"),i.append("file",e),Ga(n.data.uploadHost,i).then((()=>{let e=n.data.uploadHost+"/"+n.data.objectName;t(e)}))}))}},emotion:{emotions:["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","💘","❤","💓","💔","💕","💖","💗","💙","💚","💛","💜","💝","💞","💟","❣","💪","👈","👉","☝","👆","👇","✌","✋","👌","👍","👎","✊","👊","👋","👏","👐","✍","🍇","🍈","🍉","🍊","🍋","🍌","🍍","🍎","🍏","🍐","🍑","🍒","🍓","🍅","🍆","🌽","🍄","🌰","🍞","🍖","🍗","🍔","🍟","🍕","🍳","🍲","🍱","🍘","🍙","🍚","🍛","🍜","🍝","🍠","🍢","🍣","🍤","🍥","🍡","🍦","🍧","🍨","🍩","🍪","🎂","🍰","🍫","🍬","🍭","🍮","🍯","🍼","☕","🍵","🍶","🍷","🍸","🍹","🍺","🍻","🍴","🌹","🍀","🍎","💰","📱","🌙","🍁","🍂","🍃","🌷","💎","🔪","🔫","🏀","⚽","⚡","👄","👍","🔥","🙈","🙉","🙊","🐵","🐒","🐶","🐕","🐩","🐺","🐱","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🐈","🐯","🐅","🐆","🐴","🐎","🐮","🐂","🐃","🐄","🐷","🐖","🐗","🐽","🐏","🐑","🐐","🐪","🐫","🐘","🐭","🐁","🐀","🐹","🐰","🐇","🐻","🐨","🐼","🐾","🐔","🐓","🐣","🐤","🐥","🐦","🐧","🐸","🐊","🐢","🐍","🐲","🐉","🐳","🐋","🐬","🐟","🐠","🐡","🐙","🐚","🐌","🐛","🐜","🐝","🐞","🦋","😈","👿","👹","👺","💀","☠","👻","👽","👾","💣","0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","🔟","➡️","⬅️","⬆️","⬇️","↗️","↘️","↙️","↖️","↕️","↔️","🔴","🟣","🔵","🟢","🟡","🟠","⚫","⚪️","🟤"]}}}}},methods:{onCreated(e){this.editor=Object.seal(e),console.log("editor",this.editor),window.editor=this.editor,this.$emit("onload")},getContent(){return this.editor.getHtml()},getTextContent(){return this.editor.getText()},setContent(e){return this.editor.setHtml(e)},addEditContent(e){return this.editor.setHtml(this.content+e)},insertEditContent(e){return this.editor.insertText(e)},dangerouslyInsertHtml(e){return this.editor.dangerouslyInsertHtml(e)},isEmpty(){return this.editor.isEmpty()},setDisable(){return this.editor.disable()},setFocus(){this.editor.focus()}}},sOe=aOe,lOe=or(sOe,Xd,Zd,!1,null,null,null),cOe=lOe.exports,uOe=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{visible:e.isShow,"close-on-click-modal":!1,"before-close":e.close,title:e.$i18n.t("writeMail.delayed_sending"),width:"462px"},on:{"update:visible":function(t){e.isShow=t}}},[t("div",{staticClass:"delayed"},[t("div",{staticClass:"delayed-form mb24"},[t("span",[e._v(e._s(e.$i18n.t("writeMail.choose_send_time"))+":")]),t("el-date-picker",{attrs:{type:"datetime",placeholder:e.$i18n.t("writeMail.choose_time_date"),format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.form.time,callback:function(t){e.$set(e.form,"time",t)},expression:"form.time"}})],1),t("div",{staticClass:"delayed-tip"},[e._v(" "+e._s(e.$i18n.t("writeMail.will"))+" "),t("span",[e._v(e._s(e.form.time))]),e._v(" "+e._s(e.$i18n.t("writeMail.post_to"))+" ")])]),t("div",{staticClass:"delayed-foot"},[t("button",{staticClass:"dialog-btn dialog-btn-linear mr24",on:{click:e.close}},[e._v(" "+e._s(e.$i18n.t("writeMail.cancle"))+" ")]),t("button",{staticClass:"dialog-btn dialog-btn-face",on:{click:e.affirm}},[e._v(" "+e._s(e.$i18n.t("writeMail.send"))+" ")])])])],1)},dOe=[],hOe={props:{isShow:{default:!1,type:Boolean},rowTime:{type:String,default:""}},data(){return{form:{time:this.rowTime?this.rowTime:this.$Formatter.getAfterMinuteTime(5)}}},methods:{affirm(){this.$emit("affirm",this.form.time)},close(){this.$emit("close")}}},pOe=hOe,fOe=or(pOe,uOe,dOe,!1,null,"773502ed",null),mOe=fOe.exports,gOe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[t("div",{staticClass:"wrap-search px24 mb24"},[t("div",{staticClass:"form-item mr24"},[t("button",{staticClass:"search-btn search-btn-face",on:{click:function(t){e.isShowCreate=!0}}},[e._v(" "+e._s(e.$i18n.t("product.add_product"))+" ")])]),t("div",{staticClass:"form-item"},[t("el-input",{attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){return e.init()}},slot:"append"})],1)],1)]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading,expression:"isLoading"}],staticClass:"list hidden-scrollbar link-body"},[e._l(e.linkList,(function(n,i){return t("div",{key:i,staticClass:"link-item"},[t("img",{attrs:{src:n.image_url}}),t("div",{staticClass:"link-content"},[t("span",{staticClass:"link-name"},[e._v(e._s(n.name_zh))]),t("div",{staticClass:"link-btn-group"},[t("button",{staticClass:"link-item-btn",on:{click:function(t){return e.useProtLink(n.url)}}},[e._v(" "+e._s(e.$i18n.t("product.link"))+" ")])])])])})),0===e.tableTotal?t("div",{staticClass:"w-full h-full flex items-center justify-center"},[e._v(" "+e._s(e.$i18n.t("product.no_data"))+" ")]):e._e()],2),t("div",{staticClass:"list-page"},[t("el-pagination",{attrs:{"current-page":e.searchForm.page,total:e.tableTotal,"page-size":e.searchForm.page_size,"pager-count":5,small:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":e.changePage}})],1),e.isShowCreate?t("add-link",{attrs:{addDialog:e.isShowCreate},on:{close:function(t){e.isShowCreate=!1},init:function(t){e.searchForm.page=1,e.init()}}}):e._e()],1)},vOe=[],yOe=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.isShowDialog,"close-on-click-modal":!1,title:e.$i18n.t("product.create_product"),width:"440px","append-to-body":""},on:{"update:visible":function(t){e.isShowDialog=t},close:e.close}},[t("div",{staticClass:"flex flex-col items-center"},[t("div",{staticClass:"pro-upload-container mb24"},[t("div",{staticClass:"pro-upload-main",on:{click:e.uploadImg}},[t("input",{staticStyle:{display:"none"},attrs:{id:"pro-upload-input",type:"file",accept:"image/gif, image/jpeg, image/jpg, image/png"}}),e.proForm.image_url?e._e():t("i",{staticClass:"dss-iconfont icon-upload"}),e.proForm.image_url?t("img",{attrs:{src:e.proForm.image_url}}):e._e()]),t("h3",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.upload_picture"))+" ")]),t("span",[e._v("("+e._s(e.$i18n.t("product.length_limit"))+"5MB)")])]),t("div",{staticClass:"pro-form"},[t("el-form",{ref:"proForm",attrs:{model:e.proForm,rules:e.verifyProForm}},[t("div",{staticClass:"pro-form-item"},[t("span",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.product_name"))+": ")]),t("el-form-item",{attrs:{prop:"name_zh"}},[t("el-input",{attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},on:{input:function(t){return e.inputProName(t,"addZhName")}},model:{value:e.proForm.name_zh,callback:function(t){e.$set(e.proForm,"name_zh",t)},expression:"proForm.name_zh"}})],1)],1),t("div",{staticClass:"pro-form-item"},[t("span",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.en_name"))+": ")]),t("el-form-item",{attrs:{prop:"name_en"}},[t("el-input",{attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},on:{input:function(t){return e.inputProName(t,"addEnName")}},model:{value:e.proForm.name_en,callback:function(t){e.$set(e.proForm,"name_en",t)},expression:"proForm.name_en"}})],1)],1),t("div",{staticClass:"pro-form-item"},[t("span",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.product_type"))+": ")]),t("el-form-item",{attrs:{prop:"type"}},[t("el-select",{attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.proForm.type,callback:function(t){e.$set(e.proForm,"type",t)},expression:"proForm.type"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("product.link_goods")}}),t("el-option",{attrs:{value:2,label:e.$i18n.t("product.link_app")}}),t("el-option",{attrs:{value:3,label:e.$i18n.t("product.link_web")}})],1)],1)],1),1===e.proForm.type?t("div",{staticClass:"pro-form-item"},[t("span",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.E_COMMERCE"))+": ")]),t("el-form-item",{attrs:{prop:"platform"}},[t("el-select",{attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.proForm.platform,callback:function(t){e.$set(e.proForm,"platform",t)},expression:"proForm.platform"}},[t("el-option",{attrs:{value:"Amazon",label:e.$i18n.t("product.link_amazon")}}),t("el-option",{attrs:{value:"AliExpress",label:e.$i18n.t("product.link_aliExpress")}}),t("el-option",{attrs:{value:"Lazada",label:e.$i18n.t("product.link_lazada")}}),t("el-option",{attrs:{value:"Shopee",label:e.$i18n.t("product.link_shopee")}}),t("el-option",{attrs:{value:"OtherSite",label:e.$i18n.t("product.link_independent")}}),t("el-option",{attrs:{value:"Tiktok",label:"TikTok"}}),t("el-option",{attrs:{value:"TheOther",label:e.$i18n.t("product.link_other")}})],1)],1)],1):e._e(),t("div",{staticClass:"pro-form-item"},[t("span",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.produce_link"))+": ")]),t("el-form-item",{attrs:{prop:"url"}},[t("el-input",{attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},model:{value:e.proForm.url,callback:function(t){e.$set(e.proForm,"url",t)},expression:"proForm.url"}})],1)],1),t("div",{staticClass:"pro-form-item"},[t("span",[t("p",[e._v("*")]),e._v(" "+e._s(e.$i18n.t("product.product_price"))+": ")]),t("el-form-item",{attrs:{prop:"price_dollar"}},[t("el-input",{attrs:{type:"number",placeholder:e.$i18n.t("common.please_input")},model:{value:e.proForm.price_dollar,callback:function(t){e.$set(e.proForm,"price_dollar",t)},expression:"proForm.price_dollar"}})],1),t("div",{staticClass:"pro-form-tip"},[e._v(e._s(e.$i18n.t("product.dollar")))])],1)]),t("div",{staticClass:"flex justify-end"},[t("button",{staticClass:"pro-btn pro-btn-disabled mr12",on:{click:function(t){e.isShowDialog=!1}}},[e._v(" "+e._s(e.$i18n.t("common.cancle"))+" ")]),t("button",{staticClass:"pro-btn pro-btn-face",attrs:{disabled:e.isSubmit},on:{click:e.createPrd}},[e.isSubmit?t("i",{staticClass:"el-icon-loading"}):e._e(),e._v(" "+e._s(e.$i18n.t("common.confirm"))+" ")])])],1)])])},bOe=[];async function wOe(e){let t=await Pa("/koc/product/search",e);return t}async function _Oe(e){let t=await Pa("/koc/product/productCreate",e);return t}async function COe(e){let t=await Pa("/koc/product/upPrdCover",e);return t}async function xOe(e){let t=await Pa("/koc/Blogger/keywordsAssociate",e);return t}async function SOe(e){let t=await Pa("/user/product/search",e);return t}async function kOe(e){let t=await Ta(`/user/product/details/${e.id}`);return t}async function EOe(e){let t=await Ta("/user/product/allProductPullDown",e);return t}async function DOe(e){let t=await Ta("/user/productCard/apply",e);return t}async function AOe(e){let t=await Pa("/user/productCard/form/list",e);return t}var TOe={props:{addDialog:{type:Boolean,default:!1}},data(){return{isShowDialog:this.addDialog,proForm:{name_zh:"",name_en:"",image_url:"",url:"",type:"",platform:"",price_dollar:""},verifyProForm:{name_zh:[{required:!0,message:`${this.$i18n.t("product.empty_link_name")}`,trigger:"blur"}],name_en:[{required:!0,message:`${this.$i18n.t("product.empty_en_name")}`,trigger:"blur"},{max:100,message:`${this.$i18n.t("product.limit_en_words")}`,trigger:"blur"},{validator:(e,t,n)=>{const i=/^[0-9a-zA-Z,:,:%-_ ]+$/g;i.test(t)?n():n(new Error(`${this.$i18n.t("product.false_en_name")}`))},trigger:"blur"}],type:[{required:!0,message:`${this.$i18n.t("product.select_link_type")}`,trigger:"change"}],platform:[{validator:(e,t,n)=>{1!==this.proForm.type||t?n():n(new Error(`${this.$i18n.t("product.select_platform")}`))},trigger:"change"}],url:[{required:!0,message:`${this.$i18n.t("product.empty_link")}`,trigger:"blur"}],price_dollar:[{validator:(e,t,n)=>{1===this.proForm.type&&""===t?n(new Error(`${this.$i18n.t("product.empty_price")}`)):n()},trigger:"blur"}]},isSubmit:!1}},methods:{inputProName(e,t){e&&this.checkInput({keyword:e,is_show_error:1},t)},checkInput(e,t){xOe(e).then((e=>{400===e.code&&(this.$message.error(e.msg),"addZhName"===t?this.proForm.name_zh="":"addEnName"===t&&(this.proForm.name_en=""))}))},createPrd(){this.$refs["proForm"].validate((e=>{if(!e)return!1;{if(!this.proForm.image_url)return void this.$message({message:`${this.$i18n.t("product.no_img")}`,type:"warning"});const e={name_zh:this.proForm.name_zh,name_en:this.proForm.name_en,image_url:this.proForm.image_url,url:this.proForm.url,type:[this.proForm.type],platform:this.proForm.platform,price_dollar:1*this.proForm.price_dollar};this.isSubmit=!0,_Oe(e).then((e=>{0===e.code?(this.$emit("init"),this.close(),this.$message({message:"`${this.$i18n.t('product.create_success')}`",type:"success"})):(this.isSubmit=!1,11e4===e.code?this.$message({type:"warning",message:`${this.$i18n.t("product.false_link")}`}):300001===e.code?this.$message({type:"warning",message:`${this.$i18n.t("product.re_link_name")}`}):this.$message({type:"warning",message:e.msg}))}))}}))},uploadImg(){const e=this,t=document.getElementById("pro-upload-input");t.click(),t.onchange=function(t){const n=this.files[0].size/1024/1024<5;if(!n)return void e.$message.error(`${e.$i18n.t("product.limit_upload")}`);const i=new FormData;i.append("file",this.files[0]),COe(i).then((n=>{200===n.code?(e.$message({message:n.msg,type:"success"}),e.proForm.image_url=n.data.url,t.target.value=""):e.$message({message:n.msg,type:"warning"})}))}},close(){this.isSubmit=!1,this.proForm.name_zh="",this.proForm.name_en="",this.proForm.image_url="",this.proForm.url="",this.proForm.type="",this.proForm.platform="",this.proForm.price_dollar="",this.$emit("close")}}},OOe=TOe,IOe=or(OOe,yOe,bOe,!1,null,"3e764b9e",null),POe=IOe.exports,$Oe={components:{AddLink:POe},data(){return{searchForm:{name:"",page:1,page_size:10},isLoading:!1,linkList:[],tableTotal:0,isShowCreate:!1}},created(){this.init()},methods:{init(){this.isLoading=!0,wOe(this.searchForm).then((e=>{0===e.code?(this.isLoading=!1,this.linkList=e.data.items,this.tableTotal=e.data.total):(this.isLoading=!1,this.$message.error(e.msg))}))},changePage(e){this.searchForm.page=e,this.init()},useProtLink(e){this.$emit("setMailLink",e)}}},FOe=$Oe,BOe=or(FOe,gOe,vOe,!1,null,"e27f4ae4",null),MOe=BOe.exports,NOe=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.isShow,title:e.$i18n.t("checkMail.send_notice"),width:"480px","before-close":e.closeNotice,"custom-class":["notice-dialog","en"==e.language?"en-notice-dialog":""],"close-on-click-modal":!1},on:{"update:visible":function(t){e.isShow=t}}},[t("ul",{staticClass:"notice-ul"},[e._l(e.noticeArr,(function(n,i){return t("li",{key:i},[e._v(e._s(n))])})),t("li",[t("span",[e._v(e._s(e.$i18n.t("checkMail.tip13")))])])],2),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-checkbox",{model:{value:e.remind14Day,callback:function(t){e.remind14Day=t},expression:"remind14Day"}},[e._v(e._s(e.$i18n.t("checkMail.tip14")))]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.closeNotice}},[e._v(e._s(e.$i18n.t("checkMail.know")))])],1)])},ROe=[],jOe={props:{isShow:{default:!1,type:Boolean}},data(){return{noticeArr:[this.$i18n.t("checkMail.tip15"),this.$i18n.t("checkMail.tip16")],remind14Day:!1,language:Wi.get("language")}},methods:{closeNotice(){this.$emit("closeNotice",this.remind14Day)}}},LOe=jOe,zOe=or(LOe,NOe,ROe,!1,null,null,null),VOe=zOe.exports,HOe=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.isShow,title:e.$i18n.t("setMail.tip9"),width:"480px","before-close":e.closeLimit,"custom-class":"limit-dialog","close-on-click-modal":!1},on:{"update:visible":function(t){e.isShow=t}}},[t("p",{staticClass:"tip2"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip10_1"))+" "),t("span",[e._v(e._s(e.restSendNum))]),e._v(" "+e._s(e.$i18n.t("checkMail.tip10_2"))+" ")]),t("ul",{staticClass:"limit-ul"},[t("li",[e._v(e._s(e.$i18n.t("checkMail.tip11")))]),t("li",[e._v(e._s(e.$i18n.t("checkMail.tip12")))])]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.closeLimit}},[e._v(e._s(e.$i18n.t("checkMail.know")))])],1)])},UOe=[],WOe={props:{isShow:{default:!1,type:Boolean},restSendNum:{type:Number,default:0}},data(){return{}},methods:{closeLimit(){this.$emit("closeLimit")}}},qOe=WOe,YOe=or(qOe,HOe,UOe,!1,null,null,null),GOe=YOe.exports,KOe=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.isShow,width:"620px","before-close":e.closeCheck,"custom-class":"check-dialog "+("en"==e.language?"en-check-dialog":""),"close-on-click-modal":!1,"show-close":0===e.active&&1==e.currentStatus&&(0!==e.reContactNum||0!==e.riskNum)},on:{"update:visible":function(t){e.isShow=t}}},[t("el-steps",{attrs:{active:e.active+1,"align-center":"","finish-status":"finish"}},e._l(e.stepsArr,(function(e,n){return t("el-step",{key:n,attrs:{title:e}})})),1),0===e.active?t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.checkLoading,expression:"checkLoading"}],staticClass:"active1"},[t("div",{staticClass:"check-title",class:{"check-title-success":0===e.reContactNum&&0===e.riskNum}},[0!==e.reContactNum||0!==e.riskNum?t("span",{staticClass:"txt"},[e._v("检测发现"+e._s(e.totalNum)+"位有效收件人中有以下情况,请选择是否过滤")]):e._e(),t("span",{staticClass:"tips"},[e._v("有效发件人:为了保障邮箱健康度,平台将会自动过滤掉当天有过重复标题发送的红人")])]),t("div",{staticClass:"check-item",class:{"item-success":0===e.reContactNum}},[t("div",{staticClass:"check-item_left"},[t("div",{staticClass:"check-label"},[t("span",{staticClass:"red"},[e._v(e._s(0===e.reContactNum?"无":e.reContactNum+"位"))]),e._v("重复触达红人 ")]),t("div",{staticClass:"check-tip"},[e._v("*30天内邮件联系过")])]),t("div",{staticClass:"check-item_right"},[t("el-switch",{directives:[{name:"show",rawName:"v-show",value:e.reContactNum>0,expression:"reContactNum > 0"}],attrs:{"active-text":e.isFilterRepeat?"过滤":"不过滤"},on:{change:e.changeFilter},model:{value:e.isFilterRepeat,callback:function(t){e.isFilterRepeat=t},expression:"isFilterRepeat"}})],1),t("img",{attrs:{src:e.reContactNum>0?"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-fail.png":"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-success.png"}})]),t("div",{staticClass:"check-item",class:{"item-success":0===e.riskNum}},[t("div",{staticClass:"check-item_left"},[t("div",{staticClass:"check-label"},[t("span",{staticClass:"red"},[e._v(e._s(0===e.riskNum?"无":e.riskNum+"位"))]),e._v("履约风险红人 ")]),t("div",{staticClass:"check-tip"},[e._v("*平台上记录有履约风险")])]),t("div",{staticClass:"check-item_right"},[t("el-switch",{directives:[{name:"show",rawName:"v-show",value:e.riskNum>0,expression:"riskNum > 0"}],attrs:{"active-text":e.isFilterRisk?"过滤":"不过滤"},on:{change:e.changeFilter},model:{value:e.isFilterRisk,callback:function(t){e.isFilterRisk=t},expression:"isFilterRisk"}})],1),t("img",{attrs:{src:e.riskNum>0?"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-fail.png":"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-success.png"}})]),0===e.reContactNum&&0===e.riskNum?t("div",{staticClass:"success-tips"},[e._v(" 收件人均为首次触达,将在"),t("span",{staticClass:"tips-red"},[e._v("3S")]),e._v("后自动进行到下一步 ")]):e._e()]):e._e(),1===e.active?t("div",{staticClass:"active2"},[t("div",{staticClass:"variable-check"},[e.isLoading?[t("div",{staticClass:"var-wait wait mb16"},[t("p",[e._v(e._s(e.$i18n.t("checkMail.variable_replacement")))]),t("p",{staticClass:"var-loads"},[t("i",{staticClass:"dss-iconfont icon-jiazaizhong var-load"})])])]:[e.hasVar?t("div",{staticClass:"var-success success mb16"},[t("p",[e._v(e._s(e.$i18n.t("checkMail.variable_replacement")))]),t("img",{attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-success.png"}})]):e._e(),e.hasVar?e._e():t("div",{staticClass:"var-fail fail mb16"},[t("p",{staticClass:"fail-name"},[e._v(" "+e._s(e.$i18n.t("checkMail.variable_replacement"))+" ")]),t("p",{staticClass:"fail-tip"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip4"))+" ")]),t("img",{attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-fail.png"}})])]],2),t("div",{staticClass:"spam-check"},[e.isLoading?t("p",{staticClass:"mt40"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip5"))+" ")]):e._e(),e.isLoading?e._e():[e.hasVar?t("p",{staticClass:"mt40"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip6_1"))+" "),t("span",{staticClass:"underline-span"},[e._v("3S")]),e._v(" "+e._s(e.$i18n.t("checkMail.tip6_2"))+" ")]):e._e(),e.hasVar?e._e():t("div",{staticClass:"var-btns"},[e.checkVar?t("button",{staticClass:"tip-btn active1-btn1",attrs:{size:"small"},on:{click:e.varCheckSend}},[e._v(" "+e._s(e.$i18n.t("checkMail.continue_sending_emails"))+" ")]):e._e(),t("el-button",{staticClass:"tip-btn",attrs:{size:"small",type:"primary"},on:{click:e.closeCheck}},[e._v(e._s(e.$i18n.t("checkMail.optimize_emails")))])],1)]],2)]):e._e(),2===e.active?t("div",{staticClass:"active3"},[e.isSuccess&&e.isSendSuccess?[t("div",{staticClass:"sucess-icon img-icon"},[t("i",{staticClass:"dss-iconfont icon-success1"})]),t("p",{staticClass:"mail-status"},[e._v(" "+e._s(e.$i18n.t("checkMail.email_created_successfully"))+" ")]),t("p",{staticClass:"mail-tip"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip7_1"))+" "),t("span",[e._v("3S")]),e._v(" "+e._s(e.$i18n.t("checkMail.tip7_2"))+" ")]),t("el-button",{staticClass:"mail-btn",attrs:{type:"primary",size:"small"},on:{click:e.skipToOut}},[e._v(e._s(e.$i18n.t("checkMail.jump_immediately")))])]:e._e(),e.isSuccess&&e.isSendSuccess?e._e():[t("div",{staticClass:"fail-icon img-icon"},[t("i",{staticClass:"dss-iconfont icon-fail"})]),t("p",{staticClass:"mail-status"},[e._v(e._s(e.$i18n.t("checkMail.creation_failed")))]),t("p",{staticClass:"mail-tip"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip8_1"))+" "),t("span",[e._v("3S")]),e._v(" "+e._s(e.$i18n.t("checkMail.tip8_2"))+" ")]),t("el-button",{staticClass:"mail-btn",attrs:{type:"primary",size:"small"},on:{click:e.closeCheck}},[e._v(e._s(e.$i18n.t("checkMail.close")))])]],2):e._e(),0!==e.active||1!=e.currentStatus||0===e.reContactNum&&0===e.riskNum?e._e():t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("button",{staticClass:"active1-btn1",attrs:{size:"small"},on:{click:e.closeCheck}},[e._v(" 取 消 ")]),t("el-button",{staticClass:"active1-btn2",attrs:{size:"small",type:"primary"},on:{click:e.filterContactBlogger}},[e._v("下一步")])],1)],1)},XOe=[],ZOe={props:{isShow:{default:!1,type:Boolean},totalNum:{type:Number,default:0},reContactNum:{type:Number,default:0},riskNum:{type:Number,default:0},filterBloggerArr:{type:Array,default:()=>[]},checkEmails:{type:Array,default:()=>[]},isSendSuccess:{type:Boolean,default:!0},isReply:{type:Boolean,default:!1},checkLoading:{type:Boolean,default:!1}},data(){return{active:0,stepsArr:[this.$t("edm5.v219"),this.$i18n.t("checkMail.filter_contacted_influencers"),this.$i18n.t("checkMail.email_quality_inspection"),this.$i18n.t("checkMail.create_email")],isSuccess:!0,currentStatus:1,hasVar:!1,isLoading:!1,checkVar:!0,language:Wi.get("language"),isFilterRepeat:!0,isFilterRisk:!0}},mounted(){0===this.reContactNum&&0===this.riskNum&&setTimeout((()=>{this.next()}),3e3)},methods:{closeCheck(){this.$emit("closeCheck")},next(){this.isSuccess?(this.active=1,this.isLoading=!0,Td({emails:this.checkEmails}).then((e=>{"0"===e.code?(this.checkVar=!0,this.isLoading=!1,e.data?(this.hasVar=!0,setTimeout((()=>{this.active=2,this.$emit("selfSend")}),3e3)):this.hasVar=!1):(this.checkVar=!1,this.isLoading=!1,this.$message.error(e.message))}))):(this.active=2,setTimeout((()=>{this.closeCheck()}),3e3))},filterContactBlogger(){0===this.filterBloggerArr.length&&(this.isSuccess=!1),this.next()},skipToOut(){this.$emit("skipToOut")},varCheckSend(){this.active=2,0===this.filterBloggerArr.length?this.isSuccess=!1:this.$emit("selfSend")},changeFilter(){this.$emit("updateFilterBloggerArr",this.isFilterRepeat,this.isFilterRisk)}}},JOe=ZOe,QOe=or(JOe,KOe,XOe,!1,null,null,null),eIe=QOe.exports,tIe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"choose-email-container"},[t("el-dialog",{attrs:{visible:e.isShow,title:e.isCheckType?"":e.$i18n.t("setMail.Sending_settings"),width:e.isCheckType?"620px":"480px","before-close":e.closeChooseMail,"custom-class":"choosemail-dialog2 "+(e.isCheckType?"choosemail-isCheck":""),"close-on-click-modal":!1},on:{"update:visible":function(t){e.isShow=t}}},[e.isCheckType?t("el-steps",{attrs:{active:e.active,"align-center":"","finish-status":"finish"}},e._l(e.stepsArr,(function(n,i){return t("el-step",{key:i,attrs:{title:n,status:e.active>=i?"finish":"wait"}})})),1):e._e(),e.isCheckType?t("div",{staticClass:"send-tips"},[t("div",{staticClass:"tips-title"},[e._v(e._s(e.$t("edm5.v189")))]),t("div",{staticClass:"tips-item"},[e._v(" "+e._s(e.$t("edm5.v190"))+" ")]),t("div",{staticClass:"tips-item"},[e._v(" "+e._s(e.$t("edm5.v191"))+" ")])]):e._e(),e.isCheckType||"zh"!=e.language?e._e():t("span",{staticClass:"header-tips"},[e._v(e._s(e.$t("edm5.v192")))]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.authLoading,expression:"authLoading"}],class:{"check-list":e.isCheckType}},[t("div",{class:{"woto-mail":!0,"mail-active":"WOTOMAIL"===e.radio},on:{click:function(t){return e.changeEmail("WOTOMAIL")}}},[t("el-radio",{attrs:{value:e.radio,label:"WOTOMAIL"}},[e._v(e._s(e.$i18n.t("setMail.mailbox_system")))]),t("span",{staticClass:"set-default",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.setDefaultBindEmail("WOTOMAIL")}}},[e._v(e._s("WOTOMAIL"===e.defaultEmail?e.$t("edm5.v193"):e.$t("edm5.v194")))])],1),e.gmailVal?t("div",{class:{"woto-mail":!0,"mail-active":"GMAIL"===e.radio},on:{click:function(t){return e.changeEmail("GMAIL")}}},[t("el-radio",{attrs:{value:e.radio,label:"GMAIL"}},[t("el-tooltip",{attrs:{placement:"top","popper-class":"wt-tooltip"}},[t("div",{staticClass:"content",staticStyle:{color:"#333"},attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.gmailVal)+" ")]),t("span",{staticClass:"email-address"},[e._v(" "+e._s(e.gmailVal))])])],1),t("span",{staticClass:"set-default",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.setDefaultBindEmail("GMAIL")}}},[e._v(e._s("GMAIL"===e.defaultEmail?e.$t("edm5.v193"):e.$t("edm5.v194")))]),t("span",{staticClass:"unBind",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.unbind("GMAIL")}}},[e._v(e._s(e.$t("edm5.v195")))])],1):e._e(),e._l(e.businessEmailList,(function(n){return t("div",{key:n.id,class:{"woto-mail":!0,"mail-active":e.radio===n.emailAddress},on:{click:function(t){return e.changeEmail(n.emailAddress)}}},[t("el-radio",{attrs:{value:e.radio,label:n.emailAddress}},[t("el-tooltip",{attrs:{placement:"top","popper-class":"wt-tooltip"}},[t("div",{staticClass:"content",staticStyle:{color:"#333"},attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(n.emailAddress)+" ")]),t("span",{staticClass:"email-address"},[e._v(e._s(n.emailAddress))])])],1),t("span",{staticClass:"set-default",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.setDefaultBindEmail(n.emailAddress)}}},[e._v(e._s(e.defaultEmail===n.emailAddress?e.$t("edm5.v193"):e.$t("edm5.v194")))]),t("span",{staticClass:"unBind",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.unbind(n.emailAddress)}}},[e._v(e._s(e.$t("edm5.v195")))])],1)})),0===e.businessEmailList.length?t("div",{staticClass:"add-mail",on:{click:e.toOpenBind}},[t("i",{staticClass:"dss-iconfont icon-add_dss"}),t("span",{staticClass:"label"},[e._v(e._s(e.$t("edm5.v196")))])]):e._e()],2),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.businessEmailList.length>0?t("div",{staticClass:"left",on:{click:e.toOpenBind}},[t("i",{staticClass:"dss-iconfont icon-add_dss"}),t("span",{staticClass:"label"},[e._v(e._s(e.$t("edm5.v196")))])]):t("div"),e.isCheckType?t("el-button",{staticClass:"cancel-btn",attrs:{size:"small"},on:{click:e.closeChooseMail}},[e._v(e._s(e.$i18n.t("setMail.cancle")))]):e._e(),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmChoose}},[e._v(e._s(e.isCheckType?e.$i18n.t("edm2.mailEn25"):e.$i18n.t("setMail.confirm")))])],1)],1),t("el-dialog",{attrs:{title:e.$t("edm5.v196"),visible:e.bindEmailVisible,width:"480px","custom-class":"edm-bind-email-dialog"},on:{"update:visible":function(t){e.bindEmailVisible=t}}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.bingLoading,expression:"bingLoading"}]},["zh"==e.language?t("span",{staticClass:"header-tips"},[e._v(e._s(e.$t("edm5.v192")))]):e._e(),t("div",{staticClass:"email-top"},[t("div",{staticClass:"top-left"},[e._v(e._s(e.$t("edm5.v197")))]),t("div",{staticClass:"top-right",on:{click:e.toBindHelp}},[t("span",{staticClass:"config-info"},[e._v(e._s(e.$t("edm5.v198")))]),t("i",{staticClass:"dss-iconfont icon-arrow"})])]),t("div",{staticClass:"email-kind"},[t("el-select",{staticClass:"kind-select",attrs:{placeholder:e.$t("edm5.v98")},on:{change:e.providerChange},model:{value:e.businessParams.id,callback:function(t){e.$set(e.businessParams,"id",t)},expression:"businessParams.id"}},e._l(e.businessTemplateList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.provider,value:e.id}})})),1)],1),t("div",{staticClass:"email-content"},["Gmail"===e.businessParams.id?[t("div",{staticClass:"content-item"},[t("div",{staticClass:"item-label"},[e._v(e._s(e.$t("edm5.v199")))]),t("div",{staticClass:"item-input"},[t("el-input",{attrs:{placeholder:e.$t("edm5.v95")},model:{value:e.gmailValInput,callback:function(t){e.gmailValInput=t},expression:"gmailValInput"}})],1)]),t("div",{staticClass:"gmail-tip"},[t("p",[e._v("-"+e._s(e.$t("edm5.v200")))]),t("p",[e._v("-"+e._s(e.$t("edm5.v201")))]),t("p",[e._v("-"+e._s(e.$t("edm5.v202")))])])]:"Outlook"===e.businessParams.id?[t("div",{staticClass:"content-item"},[t("div",{staticClass:"item-label"},[e._v(e._s(e.$t("edm5.v203")))]),t("div",{staticClass:"item-input"},[t("el-input",{attrs:{placeholder:e.$t("edm5.v95")},model:{value:e.outlookValInput,callback:function(t){e.outlookValInput=t},expression:"outlookValInput"}})],1)]),t("div",{staticClass:"gmail-tip"},[t("p",[e._v("-"+e._s(e.$t("edm5.v200")))]),t("p",[e._v("-"+e._s(e.$t("edm5.v201")))])])]:[t("el-form",{ref:"businessRuleForm",attrs:{model:e.businessParams,rules:e.businessRules}},[t("div",{staticClass:"content-item"},[t("div",{staticClass:"item-label"},[e._v(e._s(e.$t("edm5.v204")))]),t("div",{staticClass:"item-input"},[t("el-form-item",{attrs:{prop:"emailAddress"}},[t("el-input",{attrs:{placeholder:e.$t("edm5.v95")},model:{value:e.businessParams.emailAddress,callback:function(t){e.$set(e.businessParams,"emailAddress",t)},expression:"businessParams.emailAddress"}})],1)],1)]),t("div",{staticClass:"content-item"},[t("div",{staticClass:"item-label"},[e._v(e._s(e.$t("edm5.v205")))]),t("div",{staticClass:"item-input"},[t("el-form-item",{attrs:{prop:"pwd"}},[t("el-input",{attrs:{placeholder:e.$t("edm5.v95")},model:{value:e.businessParams.pwd,callback:function(t){e.$set(e.businessParams,"pwd",t)},expression:"businessParams.pwd"}})],1)],1)]),t("div",{staticClass:"content-item multiple-item"},[t("div",{staticClass:"item-label"},[e._v(e._s(e.$t("edm5.v206")))]),t("div",{staticClass:"item-input"},[t("el-form-item",{staticClass:"form-item-one",attrs:{prop:"smtpHost"}},[t("el-input",{staticClass:"input-one",attrs:{placeholder:e.$t("edm5.v207")},model:{value:e.businessParams.smtpHost,callback:function(t){e.$set(e.businessParams,"smtpHost",t)},expression:"businessParams.smtpHost"}})],1),t("el-form-item",{staticClass:"form-item-two",attrs:{prop:"encryptionType"}},[t("el-select",{staticClass:"input-two",attrs:{placeholder:e.$t("edm5.v98")},model:{value:e.businessParams.encryptionType,callback:function(t){e.$set(e.businessParams,"encryptionType",t)},expression:"businessParams.encryptionType"}},[t("el-option",{attrs:{label:e.$t("edm5.v208"),value:0}}),t("el-option",{attrs:{label:"SSL",value:1}}),t("el-option",{attrs:{label:"TLS",value:2}})],1)],1),t("el-form-item",{staticClass:"form-item-three",attrs:{prop:"smtpPort"}},[t("el-input",{staticClass:"input-three",attrs:{placeholder:e.$t("edm5.v209")},model:{value:e.businessParams.smtpPort,callback:function(t){e.$set(e.businessParams,"smtpPort",t)},expression:"businessParams.smtpPort"}})],1)],1)]),t("div",{staticClass:"content-item multiple-item"},[t("div",{staticClass:"item-label"},[e._v(e._s(e.$t("edm5.v210")))]),t("div",{staticClass:"item-input"},[t("el-form-item",{staticClass:"form-item-one",attrs:{prop:"imapHost"}},[t("el-input",{staticClass:"input-one",attrs:{placeholder:e.$t("edm5.v207")},model:{value:e.businessParams.imapHost,callback:function(t){e.$set(e.businessParams,"imapHost",t)},expression:"businessParams.imapHost"}})],1),t("el-form-item",{staticClass:"form-item-two",attrs:{prop:"encryptionType"}},[t("el-select",{staticClass:"input-two",attrs:{value:"SSL",placeholder:e.$t("edm5.v98"),disabled:""}},[t("el-option",{attrs:{label:e.$t("edm5.v208"),value:0}}),t("el-option",{attrs:{label:"SSL",value:1}}),t("el-option",{attrs:{label:"TLS",value:2}})],1)],1),t("el-form-item",{staticClass:"form-item-three",attrs:{prop:"imapPort"}},[t("el-input",{staticClass:"input-three",attrs:{placeholder:e.$t("edm5.v209")},model:{value:e.businessParams.imapPort,callback:function(t){e.$set(e.businessParams,"imapPort",t)},expression:"businessParams.imapPort"}})],1)],1)])])]],2),t("span",{staticClass:"bind-dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("div"),t("div",{staticClass:"right"},[t("el-button",{attrs:{size:"small"},on:{click:e.toCancelBind}},[e._v(e._s(e.$t("edm5.v19")))]),t("el-button",{attrs:{size:"small",loading:e.confirmBindLoading,type:"primary"},on:{click:e.toConfirmBind}},[e._v(e._s(e.$t("edm5.v36")))])],1)])])]),t("el-dialog",{attrs:{title:e.$i18n.t("setMail.unbind"),visible:e.innerVisible,"append-to-body":"","custom-class":`inner-dialog2 ${"en"==e.language?"en-inner-dialog2":""} ${e.hasToSendEmail?"inner-dialog2-has":""}`},on:{"update:visible":function(t){e.innerVisible=t}}},[e.hasToSendEmail?t("div",{staticClass:"inner-has-tips"},[e._v(" "+e._s(e.$t("edm5.v211"))+" ")]):t("div",{staticClass:"inner-tip-text"},["GMAIL"===e.currentUnbindEmail?t("span",[e._v(e._s(e.$i18n.t("setMail.tip1")))]):t("span",[e._v(" "+e._s(e.$t("edm5.v212",{currentUnbindEmail:e.currentUnbindEmail}))+" ")]),"GMAIL"===e.currentUnbindEmail?t("span",{staticClass:"guide",on:{click:e.toGuide}},[e._v("【"+e._s(e.$i18n.t("setMail.guide"))+"】")]):e._e()]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){e.innerVisible=!1}}},[e._v(e._s(e.$i18n.t("setMail.cancle")))]),t("el-button",{attrs:{loading:e.unbindLoading,size:"small",type:"primary"},on:{click:e.confirmUnbind}},[e._v(e._s(e.$i18n.t("setMail.confirm_unbinding")))])],1)])],1)},nIe=[],iIe={props:{isShow:{default:!1,type:Boolean},currentSetEmail:{type:String,default:"WOTOMAIL"},currentEnv:{type:String,default:"https://www.wotohub.com"},isGoogleGrayShow:{type:Boolean,default:!0},isCheckType:{type:Boolean,default:!0}},data(){return{radio:"",gmailValInput:"",gmailVal:"",outlookValInput:"",isShowInput:!1,scopeVal:"https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.send%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.readonly%20",redirectUri:encodeURIComponent(this.currentEnv)+"%2Fwrite",code:"",innerVisible:!1,language:Wi.get("language"),bindEmailVisible:!1,businessEmailList:[],businessTemplateList:[],businessParams:{id:"Gmail",emailAddress:"",pwd:"",smtpHost:"",encryptionType:0,smtpPort:"",imapHost:"",imapPort:"",provider:""},businessRules:{id:[{required:!0,message:this.$t("edm5.v213"),trigger:"change"}],emailAddress:[{required:!0,message:this.$t("edm5.v214"),trigger:"blur"},{type:"email",message:this.$t("edm5.v215"),trigger:"blur"}],pwd:[{required:!0,message:this.$t("edm5.v216"),trigger:"blur"}],smtpHost:[{required:!0,message:this.$t("edm5.v207"),trigger:"blur"},{validator:this.validateUrl,trigger:"blur"}],encryptionType:[{required:!0,message:this.$t("edm5.v98"),trigger:"change"}],smtpPort:[{required:!0,message:this.$t("edm5.v209"),trigger:"blur"},{validator:this.validatePort,trigger:"blur"}],imapHost:[{required:!0,message:this.$t("edm5.v207"),trigger:"blur"},{validator:this.validateUrl,trigger:"blur"}],imapPort:[{required:!0,message:this.$t("edm5.v209"),trigger:"blur"},{validator:this.validatePort,trigger:"blur"}]},bingLoading:!1,currentUnbindEmail:"",unbindLoading:!1,confirmBindLoading:!1,stepsArr:[this.$t("edm5.v219"),this.$i18n.t("checkMail.filter_contacted_influencers"),this.$i18n.t("checkMail.email_quality_inspection"),this.$i18n.t("checkMail.create_email")],active:0,defaultEmail:"",hasToSendEmail:!1,authLoading:!1,reloadTimer:null}},created(){if(this.radio=this.currentSetEmail,this.$route.query.code){this.code=this.$route.query.code;const e=localStorage.getItem("authorType");e&&"Gmail"===e?this.handleGmailAuth():e&&"Outlook"===e&&this.handleOutLookAuth()}this.queryIsBindGmail(),this.getBusinessEMails(),this.getBusinessTemplates(),this.getDefaultBindEmail()},beforeDestroy(){this.reloadTimer&&clearTimeout(this.reloadTimer)},methods:{queryIsBindGmail(){Od().then((e=>{"0"===e.code?e.data?Pd().then((e=>{"0"===e.code?this.gmailVal=e.data.email:this.$message.error(e.message)})):this.gmailVal="":this.$message.error(e.message)}))},changeEmail(e){this.radio=e},async getBusinessEMails(){try{const e=await Wd({});"0"===e.code?this.businessEmailList=e.data||[]:this.$message.error(e.message)}catch(rl){console.log(rl)}},async getBusinessTemplates(){try{const e=await qd({});"0"===e.code?this.businessTemplateList=[{provider:"Gmail",value:"Gmail",id:"Gmail"},{provider:this.$t("edm5.v220"),value:"Outlook",id:"Outlook"}].concat(e.data)||[]:this.$message.error(e.message)}catch(rl){console.log(rl)}},async getDefaultBindEmail(){try{const e=await Md({});"0"===e.code?this.defaultEmail=["WOTOMAIL","GMAIL"].includes(e.data.sendType)?e.data.sendType:e.data.email:this.$message.error(e.message)}catch(rl){console.log(rl)}},async setDefaultBindEmail(e){try{if(e===this.defaultEmail)return!1;const t={};"WOTOMAIL"!==e&&"GMAIL"!==e?(t["qiyeId"]=this.businessEmailList.find((t=>t.emailAddress===e))?.id,t["sendType"]="QIYE"):t["sendType"]=e;const n=await Bd(t);"0"===n.code?(this.$message.success(this.$t("edm5.v221")),this.getDefaultBindEmail()):this.$message.error(n.message)}catch(rl){console.log(rl)}},toOpenBind(){this.bindEmailVisible=!0},toCancelBind(){this.bindEmailVisible=!1},toConfirmBind(){"Gmail"===this.businessParams.id?this.authorizeGmail():"Outlook"===this.businessParams.id?this.authorizeOutlook():this.$refs["businessRuleForm"].validate((async e=>{if(!e)return console.log("error submit!!"),!1;try{this.confirmBindLoading=!0;const e=await Yd({...this.businessParams,providerId:this.businessParams.id});"0"===e.code?(this.$message.success(this.$t("edm5.v222")),this.getBusinessEMails(),this.bindEmailVisible=!1,this.$refs["businessRuleForm"].resetFields()):this.$message.error(e.message)}catch(rl){console.log(rl)}finally{this.confirmBindLoading=!1}}))},closeChooseMail(){this.$emit("closeChooseMail",this.radio)},confirmChoose(){"WOTOMAIL"===this.radio||this.isCheckType?this.handlerCurrentBind():this.$confirm(this.$t("edm5.v223"),this.$t("edm5.v224"),{confirmButtonText:this.$t("edm5.v225"),cancelButtonText:this.$t("edm5.v226"),type:"warning"}).then((()=>{this.handlerCurrentBind()})).catch((()=>{this.radio="WOTOMAIL"}))},handlerCurrentBind(){const e={sendType:this.radio,qiyeId:void 0,gmailValue:void 0};"WOTOMAIL"!==this.radio&&"GMAIL"!==this.radio&&(e["qiyeId"]=this.businessEmailList.find((e=>e.emailAddress===this.radio))?.id),"GMAIL"===this.radio&&(e.gmailValue=this.gmailVal),this.$emit("updateCurrentEmail",e),this.isCheckType?this.$emit("openCheckNext"):this.$message.success(this.$t("edm5.v227")),this.closeChooseMail()},authorizeGmail(){if(this.gmailVal)return this.$message.error(this.$t("edm5.v228"));if(!this.gmailValInput)return void this.$message.warning(`${this.$i18n.t("setMail.tip9")}`);const e=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(e.test(this.gmailValInput)){let e=this.$route.query;localStorage.setItem("beforeSkipPathQuery",JSON.stringify(e)),localStorage.setItem("authorType","Gmail"),localStorage.setItem("authorLink",this.gmailValInput),Id({id:"",gmail:this.gmailValInput}).then((e=>{if("0"===e.code){let e=`https://accounts.google.com/o/oauth2/auth?response_type=code&access_type=offline&client_id=478743684976-2e3nlm97t528lb0gn44notvkdacnjii9.apps.googleusercontent.com&redirect_uri=${this.redirectUri}&state=null&scope=${this.scopeVal}&approval_prompt=force&include_granted_scopes=true`;window.location.href=e}else this.$message.error(e.message)}))}else this.$message.warning(`${this.$i18n.t("setMail.tip10")}`)},handleGmailAuth(){this.authLoading=!0,$d({googleCode:this.code,authStatus:1,redirectUri:`${this.currentEnv}/write`}).then((e=>{"0"===e.code?(this.$message.success(`${this.$i18n.t("setMail.auth_success")}`),Pd().then((e=>{"0"===e.code?this.gmailVal=e.data.email:this.$message.error(e.message)}))):(this.gmailVal="",this.$message.error(e.message)),this.clearEmailStorage(),this.authLoading=!1})).catch((()=>{this.clearEmailStorage(),this.authLoading=!1})).finally((()=>{this.authLoading=!1}))},async authorizeOutlook(){if(!this.outlookValInput)return void this.$message.warning(this.$t("edm5.v229"));const e=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(e.test(this.outlookValInput)){let e=this.$route.query;localStorage.setItem("beforeSkipPathQuery",JSON.stringify(e)),localStorage.setItem("authorType","Outlook"),localStorage.setItem("authorLink",this.outlookValInput);try{const e=await jd({type:"outlook"});if("0"===e.code){const{authorizeUrl:t,clientId:n,scope:i}=e.data;let r=`${t}?scope=${encodeURIComponent(i)}&response_type=code&client_id=${n}&redirect_uri=${this.redirectUri}`;console.log(r),window.location.href=r}}catch(rl){console.log(rl)}}else this.$message.warning(`${this.$i18n.t("setMail.tip10")}`)},async handleOutLookAuth(){try{this.authLoading=!0;const e=localStorage.getItem("authorLink"),t=await Ld({code:this.code,type:"outlook",email:e||void 0});"0"===t.code?(this.$message.success(`${this.$i18n.t(this.$t("edm5.v230"))}`),this.getBusinessEMails()):this.$message.error(t.message),this.clearEmailStorage(),this.authLoading=!1}catch(rl){this.clearEmailStorage(),console.log(rl),this.authLoading=!1}finally{this.authLoading=!1}},clearEmailStorage(){const e=localStorage.getItem("beforeSkipPathQuery");if(e){const t=JSON.parse(e);this.$router.push({query:pd()({},t)}),localStorage.removeItem("beforeSkipPathQuery")}localStorage.removeItem("authorType"),localStorage.removeItem("authorLink"),this.$route.query.draftId&&(this.reloadTimer=setTimeout((()=>{location.reload()}),1e3))},async unbind(e){try{const t=await Rd({email:"GMAIL"===e?this.gmailVal:e});"0"===t.code?(this.hasToSendEmail=!t.data,this.currentUnbindEmail=e,this.innerVisible=!0):this.$message.error(t.message)}catch(rl){console.log(rl)}},confirmUnbind(){this.unbindLoading=!0,"GMAIL"===this.currentUnbindEmail?$d({authStatus:0}).then((e=>{"0"===e.code?(this.innerVisible=!1,this.gmailValInput="",this.gmailVal="",this.$message.success(e.message),this.currentUnbindEmail===this.radio?this.handleUnbindDefault():this.$emit("closeChooseMail")):this.$message.error(e.message)})).finally((()=>{this.unbindLoading=!1})):Kd({email:this.currentUnbindEmail}).then((e=>{"0"===e.code?(this.$message.success(this.$t("edm5.v231")),this.innerVisible=!1,this.currentUnbindEmail===this.radio?this.handleUnbindDefault():this.$emit("closeChooseMail")):this.$message.error(e.message)})).finally((()=>{this.unbindLoading=!1}))},async handleUnbindDefault(){await this.getDefaultBindEmail();const e={sendType:this.defaultEmail,qiyeId:void 0,gmailValue:void 0};"WOTOMAIL"!==this.defaultEmail&&"GMAIL"!==this.defaultEmail&&(e["qiyeId"]=this.businessEmailList.find((e=>e.emailAddress===this.defaultEmail))?.id),"GMAIL"===this.radio&&(e.gmailValue=this.gmailVal),this.$emit("updateCurrentEmail",e),this.$emit("closeChooseMail")},toGuide(){this.$emit("toGuide")},toBindHelp(){window.open("/bindEmailHelp","_blank")},providerChange(e){const t=this.businessTemplateList.find((t=>t.id===e));if(t){const{imapHost:e,imapPort:n,smtpHost:i,smtpPort:r,encryptionType:o,provider:a}=t;this.businessParams={...this.businessParams,imapHost:e,imapPort:n,smtpHost:i,smtpPort:r,encryptionType:o,provider:a}}},async testEmailChannel(){this.$refs["businessRuleForm"].validate((async e=>{if(!e)return console.log("error submit!!"),!1;try{this.bingLoading=!0;const e=await Gd({...this.businessParams});"0"===e.code?this.$message.success(this.$t("edm5.v232")):this.$message.error(e.message),this.bingLoading=!1}catch(rl){console.log(rl),this.bingLoading=!1}finally{this.bingLoading=!1}}))},validatePort(e,t,n){const i=Number(t);!1===Number.isNaN(i)&&"number"===typeof i?n():n(new Error(this.$t("edm5.v233")))},validateUrl(e,t,n){const i=/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/;i.test(t)?n():n(new Error(this.$t("edm5.v234")))}}},rIe=iIe,oIe=or(rIe,tIe,nIe,!1,null,null,null),aIe=oIe.exports,sIe=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{title:e.$i18n.t("newProduct.product"),visible:e.isShowDrawer,size:"560px","custom-class":"product-drawer"},on:{"update:visible":function(t){e.isShowDrawer=t},close:e.closeProductDrawer}},[t("div",{staticClass:"search-product-wrap"},[t("el-input",{staticClass:"input-with-select",class:{"input-with-select-en":"en"===e.language},attrs:{placeholder:2==e.productSelect?e.$i18n.t("newProduct.please_enter_num"):e.$i18n.t("newProduct.please_enter"),type:2==e.productSelect?"number":""},model:{value:e.productInput,callback:function(t){e.productInput=t},expression:"productInput"}},[t("el-select",{attrs:{slot:"prepend"},on:{change:e.changeProductMode},slot:"prepend",model:{value:e.productSelect,callback:function(t){e.productSelect=t},expression:"productSelect"}},[t("el-option",{attrs:{label:e.$i18n.t("newProduct.product_name"),value:"1"}}),t("el-option",{attrs:{label:e.$i18n.t("newProduct.productId"),value:"2"}}),"ai"===e.from?t("el-option",{attrs:{label:e.$i18n.t("newProduct.productRemark"),value:"3"}}):e._e()],1)],1),t("div",{staticClass:"search-btns"},[t("el-button",{attrs:{type:"primary"},on:{click:e.searchEvt}},[e._v(e._s(e.$i18n.t("newProduct.query")))]),t("el-button",{on:{click:e.resetEvt}},[e._v(e._s(e.$i18n.t("newProduct.reset")))])],1)],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],class:{"product-list":!0,"product-list-add":"ai"===e.from&&e.hasSelectedList.length>0}},e._l(e.productsArr,(function(n,i){return t("div",{key:i,staticClass:"product-item"},["ai"===e.from?t("div",{staticClass:"item-select"},[t("el-checkbox",{attrs:{value:e.isSelected(n)},on:{change:t=>e.selectChanged(t,n)}})],1):e._e(),t("div",{staticClass:"item-left"},[t("el-image",{attrs:{src:n.imageUrls[0]}}),2==n.source?t("p",{staticClass:"desc"},[e._v(" "+e._s(e.$i18n.t("newProduct.shopifyProduct"))+" ")]):e._e()],1),t("div",{staticClass:"item-center"},[t("p",{staticClass:"p1"},[e._v(" "+e._s(n.nameZh)+" ")]),"ai"===e.from?t("p",{staticClass:"p2"},[e._v(" "+e._s(e.$i18n.t("newProduct.product_en"))+":"+e._s(n.nameEn)+" ")]):e._e(),t("p",{staticClass:"p2"},[e._v(" "+e._s(e.$i18n.t("newProduct.product_remarks"))+":"+e._s(n.remark)+" ")]),t("p",{staticClass:"p3"},[e._v(" "+e._s(e.$i18n.t("newProduct.channel"))+":"+e._s(n.platformName)+" ")])]),"ai"!==e.from?t("div",{staticClass:"item-right",on:{click:function(t){return e.productDetailRow(n.id)}}},[t("span",[e._v(e._s(e.$i18n.t("newProduct.details"))),t("i",{staticClass:"el-icon-arrow-right"})])]):e._e()])})),0),"ai"===e.from&&e.hasSelectedList.length>0?t("div",{staticClass:"select-part"},[t("div",{staticClass:"left"},[e._v(" "+e._s(e.$t("edm5.v263"))+" "),t("span",{staticStyle:{color:"#ff5277"}},[e._v(e._s(e.hasSelectedList.length))]),e._v(" "+e._s(e.$t("edm5.v264"))+" ")]),t("div",{staticClass:"right"},[t("el-button",{on:{click:e.closeProductDrawer}},[e._v(e._s(e.$t("edm5.v226")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.confirmAddAi}},[e._v(e._s(e.$t("edm5.v45")))])],1)]):e._e(),t("div",{staticClass:"pagination"},[t("el-pagination",{staticClass:"edm-product-pagination",attrs:{"hide-on-single-page":0==e.total,total:e.total,"page-size":e.queryParams.pageSize,"current-page":e.queryParams.currentPage,layout:"total,prev, pager, next,jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e.isShowProductDetailDrawer?t("product-detail-drawer",{attrs:{isShowProductDetailDrawer:e.isShowProductDetailDrawer,rowId:e.rowId},on:{setProduct:e.setProduct,closeProductDetailDrawer:e.closeProductDetailDrawer}}):e._e()],1)},lIe=[],cIe=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{title:e.$i18n.t("newProduct.product_details"),visible:e.isShowDrawer,size:"560px","append-to-body":"","custom-class":"mannual-product-drawer"},on:{"update:visible":function(t){e.isShowDrawer=t},close:e.closeProductDetailDrawer}},[t("div",{staticClass:"product-card mb40"},[t("div",{staticClass:"title"},[e._v(" "+e._s(e.$i18n.t("productCard.product_card"))+" "),t("span",{staticClass:"card-i",on:{click:e.addProductCard}},[t("i",{staticClass:"dss-iconfont icon-applyproduct"})])]),t("div",{staticClass:"cards-wrap"},[t("div",{staticClass:"card-item"},[t("div",{staticClass:"card-img"},[t("el-image",{staticClass:"product-img",attrs:{src:e.form.imageUrls[0]}}),t("div",{staticClass:"card-tags"},[e._l(e.form.promotePlatformType,(function(n,i){return t("div",{key:i,staticClass:"platform-img"},[0==n?t("img",{attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/youtube.png"}}):e._e(),1==n?t("img",{attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/tiktok.png"}}):e._e(),2==n?t("img",{attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/ins.png"}}):e._e()])})),e._l(e.typeName,(function(n,i){return t("span",{key:"typeName"+i},[e._v(e._s(n))])}))],2)],1),t("p",{staticClass:"card-name"},[e._v(" "+e._s(e.form.nameEn||"—")+" ")]),t("p",{staticClass:"card-price"},[e._v(" Price:"+e._s(e._f("getMoneySymbol")(e.form.currency))+e._s(e.form.priceDollar||"—")+" ")]),t("p",{staticClass:"card-commission"},[e._v(" Commission rate:"+e._s(e.form.commissionPercent||"—")+"% ")]),t("div",{staticClass:"card-apply",class:{"only-btn":null==e.form.commissionPercent||0==e.form.commissionPercent}},[null!==e.form.commissionPercent&&0!==e.form.commissionPercent?t("p",{staticClass:"money"},[t("span",[e._v(e._s(e._f("getMoneySymbol")(e.form.currency))+e._s((e.form.priceDollar*(e.form.commissionPercent/100)).toFixed(2)))]),e._v(" /per orderd item ")]):e._e(),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.skipApply}},[e._v("Apply")])],1)]),t("div",{staticClass:"cark-views"},[t("span",[e._v(e._s(e.$i18n.t("newProduct.view_cards_times"))+":"+e._s(e.form.viewNum||"0"))])])])]),t("div",{staticClass:"basic-info mb40"},[t("div",{staticClass:"title"},[t("p",{staticClass:"weight-title"},[e._v(" "+e._s(e.$i18n.t("newProduct.basic_information"))+" ")])]),t("div",{staticClass:"name mb24"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.name")))]),t("div",{staticClass:"zh-wrap mb8"},[t("div",{staticClass:"zh-name"},[t("span",[t("font",{staticClass:"mark"},[e._v("*")]),e._v(e._s(e.$i18n.t("newProduct.chinese")))],1),t("el-input",{attrs:{disabled:""},model:{value:e.form.nameZh,callback:function(t){e.$set(e.form,"nameZh",t)},expression:"form.nameZh"}})],1),null!==e.form.nameZh&&""!==e.form.nameZh?t("i",{staticClass:"dss-iconfont icon-applyproduct card-i",on:{click:function(t){return e.setProduct(e.form.nameZh,"normal")}}}):e._e()]),t("div",{staticClass:"zh-wrap"},[t("div",{staticClass:"en-name"},[t("span",[e._v(e._s(e.$i18n.t("newProduct.english")))]),t("el-input",{attrs:{disabled:""},model:{value:e.form.nameEn,callback:function(t){e.$set(e.form,"nameEn",t)},expression:"form.nameEn"}})],1),null!==e.form.nameEn&&""!==e.form.nameEn?t("i",{staticClass:"dss-iconfont icon-applyproduct card-i",on:{click:function(t){return e.setProduct(e.form.nameEn,"normal")}}}):e._e()])]),t("div",{staticClass:"remarks mb24"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.remarks")))]),t("el-input",{attrs:{disabled:""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1),t("div",{staticClass:"img mb24"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.picture")))]),t("el-upload",{class:{"product-upload":!0,toMax:!0},attrs:{action:"#","list-type":"picture-card",accept:"image/gif,image/jpeg,image/jpg,image/png,image/svg","file-list":e.fileList,"auto-upload":!0,multiple:!1,disabled:""},scopedSlots:e._u([{key:"file",fn:function({file:n}){return t("div",{staticClass:"scope-upload"},[t("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e.currentMainPicUid===n.uid?t("div",{staticClass:"img-operate"},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$i18n.t("newProduct.Main_image"),placement:"top"}},[t("span",{class:{"is-main":e.currentMainPicUid===n.uid}},[t("i",{staticClass:"el-icon-s-home"})])])],1):e._e(),t("i",{staticClass:"dss-iconfont icon-applyproduct card-i img-i",on:{click:function(t){return e.setProduct(n.url,"img")}}})])}}])},[t("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])],1),t("div",{staticClass:"type mb24"},[t("p",{staticClass:"item-label"},[t("span",{staticClass:"mark"},[e._v("*")]),e._v(e._s(e.$i18n.t("newProduct.category"))+" ")]),t("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",disabled:"",multiple:"","collapse-tags":""},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.productTypeOpts,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("div",{staticClass:"desc mb24"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.describe")))]),t("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:4},maxlength:"1000","show-word-limit":"",disabled:""},model:{value:e.form.description,callback:function(t){e.$set(e.form,"description",t)},expression:"form.description"}})],1),t("div",{staticClass:"original"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.source")))]),t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",filterable:"",clearable:""},model:{value:e.form.source,callback:function(t){e.$set(e.form,"source",t)},expression:"form.source"}},[t("el-option",{attrs:{label:e.$i18n.t("newProduct.Manual_addition"),value:1}}),t("el-option",{attrs:{label:e.$i18n.t("newProduct.Shopify_import"),value:2}}),t("el-option",{attrs:{label:e.$i18n.t("newProduct.TikTok_import"),value:3}})],1)],1)]),t("div",{staticClass:"sell-info mb40"},[t("div",{staticClass:"title"},[t("p",{staticClass:"weight-title"},[e._v(" "+e._s(e.$i18n.t("newProduct.sales_information"))+" ")])]),t("div",{staticClass:"sell-price mb24"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.price")))]),t("div",{staticClass:"price-box"},[t("el-select",{attrs:{clearable:"",filterable:"",disabled:""},model:{value:e.form.currency,callback:function(t){e.$set(e.form,"currency",t)},expression:"form.currency"}},e._l(e.moneyTypeOpts,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-input",{directives:[{name:"stopMousewheel",rawName:"v-stopMousewheel"}],attrs:{disabled:"",type:"number"},model:{value:e.form.priceDollar,callback:function(t){e.$set(e.form,"priceDollar",t)},expression:"form.priceDollar"}}),null!==e.form.priceDollar&&""!==e.form.priceDollar?t("i",{staticClass:"dss-iconfont icon-applyproduct card-i",on:{click:function(t){return e.setProduct(e.form.priceDollar,"price")}}}):e._e()],1)]),t("div",{staticClass:"sku mb24"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.sku_description")))]),t("div",{staticClass:"zh-wrap"},[t("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:4},maxlength:"1000","show-word-limit":"",disabled:""},model:{value:e.form.sku,callback:function(t){e.$set(e.form,"sku",t)},expression:"form.sku"}}),null!==e.form.sku&&""!==e.form.sku?t("i",{staticClass:"dss-iconfont icon-applyproduct card-i sku-i",on:{click:function(t){return e.setProduct(e.form.sku,"normal")}}}):e._e()],1)]),t("div",{staticClass:"shippableregions mb24"},[t("p",{staticClass:"item-label"},[t("span",{staticClass:"mark"},[e._v("*")]),e._v(e._s(e.$i18n.t("newProduct.shippable_regions"))+" ")]),0==e.form.isGlobal?t("div",{staticClass:"zh-wrap"},[t("el-cascader",{staticClass:"product-area-edm",attrs:{disabled:"",options:e.areaOptions,props:{multiple:!0,expandTrigger:"hover"},"collapse-tags":"",clearable:"",filterable:""},model:{value:e.areaList,callback:function(t){e.areaList=t},expression:"areaList"}}),t("i",{staticClass:"dss-iconfont icon-applyproduct card-i sku-i",on:{click:function(t){return e.setProduct(e.form.isGlobal,"area")}}})],1):e._e(),1==e.form.isGlobal?t("div",{staticClass:"zh-wrap"},[t("el-input",{attrs:{disabled:""},model:{value:e.formCountry,callback:function(t){e.formCountry=t},expression:"formCountry"}}),t("i",{staticClass:"dss-iconfont icon-applyproduct card-i sku-i",on:{click:function(t){return e.setProduct(e.form.isGlobal,"area")}}})],1):e._e()]),t("div",{staticClass:"channel mb24"},[t("p",{staticClass:"item-label"},[t("span",{staticClass:"mark"},[e._v("*")]),e._v(e._s(e.$i18n.t("newProduct.channel"))+" ")]),e._l(e.form.platformLink,(function(n,i){return t("div",{key:i,staticClass:"channel-item mb8"},[t("el-select",{attrs:{disabled:""},model:{value:n.platform,callback:function(t){e.$set(n,"platform",t)},expression:"item.platform"}},e._l(e.platFormOpts,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-input",{attrs:{disabled:""},model:{value:n.links,callback:function(t){e.$set(n,"links",t)},expression:"item.links"}}),t("i",{staticClass:"dss-iconfont icon-applyproduct card-i",on:{click:function(t){return e.setProduct(n.links,"links")}}})],1)}))],2),t("div",{staticClass:"keyword"},[t("p",{staticClass:"item-label"},[e._v(e._s(e.$i18n.t("newProduct.search_keywords")))]),t("div",{staticClass:"zh-wrap"},[t("el-input",{attrs:{disabled:""},model:{value:e.form.tags,callback:function(t){e.$set(e.form,"tags",t)},expression:"form.tags"}}),null!==e.form.tags&&""!==e.form.tags?t("i",{staticClass:"dss-iconfont icon-applyproduct card-i sku-i",on:{click:function(t){return e.setProduct(e.form.tags,"normal")}}}):e._e()],1)])])])},uIe=[];const dIe=[{label:"Shopify独立站",value:0},{label:"Shopline独立站",value:1},{label:"亚马逊Amazon",value:2},{label:"速卖通AliExpress",value:3},{label:"来赞达Lazada",value:4},{label:"虾皮Shopee",value:5},{label:"TikTok小店",value:6},{label:"其他",value:7}],hIe=[{value:"1",label:"数码电器",en_label:"Electronics"},{value:"2",label:"母婴用品",en_label:"Mother & Kids"},{value:"3",label:"玩具",en_label:"Toys"},{value:"4",label:"食品",en_label:"Food & Drink"},{value:"5",label:"办公设备",en_label:"Office Products"},{value:"6",label:"宠物用品",en_label:"Animals & Pets"},{value:"7",label:"家居园艺",en_label:"Home & Garden"},{value:"8",label:"美容健康",en_label:"Health & Personal Care"},{value:"9",label:"运动用品",en_label:"Sports"},{value:"10",label:"户外用品",en_label:"Outdoor"},{value:"11",label:"汽摩配件",en_label:"Car & Motorbike"},{value:"12",label:"时尚服饰",en_label:"Clothing & Accessories"},{value:"13",label:"行李箱包",en_label:"Luggage & Travel Gear"},{value:"14",label:"五金工具",en_label:"Tools/Equipment"},{value:"15",label:"工艺及DIY",en_label:"Crafts & DIY"},{value:"16",label:"教育产品",en_label:"Education"},{value:"17",label:"音乐乐器",en_label:"Music"},{value:"19",label:"游戏",en_label:"Games"},{value:"18",label:"其他产品",en_label:"Other"}],pIe=[{label:"美元",value:0,code:"USD",symbol:"$"},{label:"欧元",value:1,code:"EUR",symbol:"€"},{label:"英镑",value:2,code:"GBP",symbol:"£"},{label:"日元",value:3,code:"JPY",symbol:"¥"},{label:"人民币",value:4,code:"CNY",symbol:"¥"},{label:"加拿大元",value:5,code:"CAD",symbol:"$"},{label:"澳大利亚元",value:6,code:"AUD",symbol:"$"},{label:"瑞士法郎",value:7,code:"CHF",symbol:"Fr"},{label:"新西兰元",value:8,code:"NZD",symbol:"$"},{label:"韩元",value:9,code:"KRW",symbol:"₩"},{label:"印度卢比",value:10,code:"INR",symbol:"₹"},{label:"巴西雷亚尔",value:11,code:"BRL",symbol:"R$"},{label:"南非兰特",value:12,code:"ZAR",symbol:"R"},{label:"西班牙比塞塔",value:13,code:"ESP",symbol:"₧"},{label:"泰国铢",value:14,code:"THB",symbol:"฿"},{label:"瑞典克朗",value:15,code:"SEK",symbol:"kr"},{label:"新加坡元",value:16,code:"SGD",symbol:"$"},{label:"阿联酋迪拉姆",value:17,code:"AED",symbol:"د.إ"},{label:"墨西哥比索",value:18,code:"MXN",symbol:"$"},{label:"俄罗斯卢布",value:19,code:"RUB",symbol:"₽"},{label:"沙特里亚尔",value:20,code:"SAR",symbol:"ر.س"},{label:"马来西亚林吉特",value:21,code:"MYR",symbol:"RM"},{label:"港元",value:22,code:"HKD",symbol:"HK$"},{label:"柬埔寨瑞尔",value:23,code:"KHR",symbol:"៛"},{label:"菲律宾比索",value:24,code:"PHP",symbol:"₱"},{label:"越南盾",value:25,code:"VND",symbol:"₫"},{label:"印尼盾",value:26,code:"IDR",symbol:"Rp"}],fIe=[{value:7,label:"汉语",enLabel:"Chinese"},{value:1,label:"英语",enLabel:"English"},{value:3,label:"法语",enLabel:"French"},{value:8,label:"德语",enLabel:"German"},{value:6,label:"日语",enLabel:"Japanese"},{value:9,label:"韩语",enLabel:"Korean"},{value:10,label:"越南语",enLabel:"Vietnamese"},{value:11,label:"泰国语",enLabel:"Thai"},{value:12,label:"菲律宾语",enLabel:"Filipino"},{value:13,label:"印度尼西亚语",enLabel:"Indonesian"},{value:14,label:"俄罗斯语",enLabel:"Russian"},{value:4,label:"西班牙语",enLabel:"Spanish"},{value:15,label:"意大利语",enLabel:"Italian"}];var mIe,gIe,vIe={props:{isShowProductDetailDrawer:{type:Boolean,default:!1},rowId:{type:[Number,String],default:""}},data(){return{isShowDrawer:this.isShowProductDetailDrawer,form:{nameZh:"",nameEn:"",remark:"",type:[],description:"",source:1,sku:"",isGlobal:1,currency:"",priceDollar:"",imageUrls:[],shippingArea:[],platformLink:[],tags:"",sharingUsers:[]},productTypeOpts:Object.freeze(hIe),moneyTypeOpts:Object.freeze(pIe),platFormOpts:Object.freeze(dIe),shareAccountOpts:[],areaOptions:[],fileList:[],tagList:[],inputTag:"",inputFocus:!1,createAccount:"",isFinished:!1,formCountry:"可全球发货",clickApplyProduct:!1,typeName:[]}},computed:{currentMainPicUid(){return(Array.isArray(this.fileList)&&this.fileList.length)>0?this.fileList[0]?.uid:""},areaList:{set(e){const t=[];e.forEach((e=>{const[n,i]=e,r=t.findIndex((e=>e.area===n));r>-1?t[r].countries.push(i):t.push({area:n,countries:[i]})})),this.form.shippingArea=t},get(){const e=[];return this.form.shippingArea.forEach((t=>{t.countries.forEach((n=>{e.push([t.area,n])}))})),e}},...ki(["user_info"])},created(){this.getCountryOpts(),this.getProductDetail()},methods:{skipApply(){DOe({productId:Number(this.rowId)}).then((e=>{"0"===e.code?window.open(e.data,"_blank"):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},setProduct(e,t){let n="";if("normal"==t&&(n=e),"price"==t){let t="";this.moneyTypeOpts.map((e=>{e.value==this.form.currency&&(t=e.label)})),n=e+t}if("area"==t){let t="",i=[];1==e?t="可全球发货":0==e&&this.form.shippingArea.map((e=>{this.areaOptions.map((n=>{e.area==n.value&&(e.countries.length==n.children.length?t=n.label:e.countries.map((e=>{n.children.map((t=>{e==t.value&&i.push(`${n.label}/${t.label}`)}))})))}))})),n=i.join(",")+","+t}if("links"==t){let t="";this.form.platformLink.map((n=>{n.links==e&&this.platFormOpts.map((e=>{e.value==n.platform&&(t=e.label)}))})),n=`${t}:${e}`}"img"==t&&(n=e),this.$emit("setProduct",`<p>${n}</p>`)},addProductCard(){this.$message.success("商品卡添加成功"),this.clickApplyProduct=!0},getProductDetail(){kOe({id:this.rowId}).then((e=>{"0"===e.code?(this.form=e.data,this.form.description=this.htmlToPlainText(this.form.description),this.form.imageUrls&&this.form.imageUrls.forEach((e=>{this.fileList.push({url:e})})),e.data.type&&0!==e.data.type.length&&(this.typeName=[],3!==e.data.source?this.productTypeOpts.map((t=>{e.data.type.map((e=>{t.value==e&&this.typeName.push(t.label)}))})):this.typeName=e.data.type)):this.$message.error(e.message)}))},htmlToPlainText(e){const t=new DOMParser,n=t.parseFromString(e,"text/html");return n.body.textContent||""},closeProductDetailDrawer(){let e="";e=this.clickApplyProduct?this.rowId:"",this.$emit("closeProductDetailDrawer",e)},getCountryOpts(){Fd({code:"sysDictService",data:{param:{dictTypeCode:"dim_region"}}}).then((e=>{const t=[];e.data.forEach((e=>{const n=t.findIndex((t=>t.label===e.col1));n>-1?t[n].children.push({label:e.dictValue,value:e.dictCode,sort:e.orderNum}):t.push({label:e.col1,value:e.id,sort:Number(e.catLevel1),children:[{label:e.dictValue,value:e.dictCode,sort:e.orderNum}]})})),this.areaOptions=t.sort(((e,t)=>e.sort-t.sort))}))}}},yIe=vIe,bIe=or(yIe,cIe,uIe,!1,null,"6ed8a076",null),wIe=bIe.exports,_Ie={components:{productDetailDrawer:wIe},props:{isShowProductDrawer:{type:Boolean,default:!1},from:{type:String,default:""},defaultSelectedProduct:{type:Array,default:()=>[]}},data(){return{productInput:"",productSelect:"1",productsArr:[],queryParams:{timeAsc:!1,pageSize:6,currentPage:1,productId:"",productName:"",remark:""},total:0,isShowProductDetailDrawer:!1,isShowDrawer:this.isShowProductDrawer,loading:!1,rowId:"",clickApplyProductId:"",hasSelectedList:[],language:Wi.get("language")}},created(){this.defaultSelectedProduct&&this.defaultSelectedProduct.length>0&&(this.hasSelectedList=this.defaultSelectedProduct),this.getProductList()},methods:{closeProductDetailDrawer(e){this.clickApplyProductId=e,this.isShowProductDetailDrawer=!1},productDetailRow(e){this.isShowProductDetailDrawer=!0,this.rowId=e},changeProductMode(e){this.productSelect=e,this.productInput=""},getProductList(){this.loading=!0,SOe({...Ls(this.queryParams)}).then((e=>{"0"===e.code?(this.productsArr=e.data.rows.map((e=>{let t=[];return null!==e.shippingAreaZh&&0!==e.shippingAreaZh.length&&0==e.isGlobal&&e.shippingAreaZh.map((e=>{t=[...t,...e.countries]})),1==e.isGlobal&&(t=["可全球发货"]),{...e,countryName:t.toString(),productLink:e.platformLink?.map((e=>e.links))?.join(",")}})),this.total=e.data.total):this.$message.error(e.message)})).finally((()=>{this.loading=!1}))},searchEvt(){1==this.productSelect?(this.queryParams.productName=this.productInput,this.queryParams.productId="",this.queryParams.remark=""):2==this.productSelect?(this.queryParams.productId=this.productInput,this.queryParams.productName="",this.queryParams.remark=""):3==this.productSelect&&(this.queryParams.productId="",this.queryParams.productName="",this.queryParams.remark=this.productInput),this.queryParams.currentPage=1,this.getProductList()},resetEvt(){this.queryParams=this.$options.data().queryParams,this.productInput="",this.productSelect="1",this.getProductList()},handleSizeChange(e){this.queryParams.pageSize=e,this.getProductList()},handleCurrentChange(e){this.queryParams.currentPage=e,this.getProductList()},closeProductDrawer(){this.$emit("closeProductDrawer",this.clickApplyProductId)},changeCommodityMode(e){this.productSelect=e,this.productInput=""},setProduct(e){this.$emit("setProduct",e)},selectChanged(e,t){const n=this.hasSelectedList.findIndex((e=>e.id===t.id));-1===n?t.nameEn?this.hasSelectedList.push(t):this.$confirm("当前所选产品没有设置英文名称,暂无法选择!",this.$t("edm5.v79"),{confirmButtonText:"去补全",cancelButtonText:"取消",type:"warning"}).then((()=>{window.open("/myProduct","_blank"),this.closeProductDrawer()})).catch((()=>{})):this.hasSelectedList.splice(n,1)},isSelected(e){return this.hasSelectedList.findIndex((t=>t.id===e.id))>-1},confirmAddAi(){this.$emit("addAiProduct",this.hasSelectedList)}}},CIe=_Ie,xIe=or(CIe,sIe,lIe,!1,null,"430214a1",null),SIe=xIe.exports,kIe=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{title:e.$i18n.t("productForm.product_selection_form"),visible:e.isShowDrawer,size:"1000px","custom-class":"product-form-drawer"},on:{"update:visible":function(t){e.isShowDrawer=t},close:e.closeProductFormDrawer}},[t("WTable",{attrs:{tableColumnConfig:e.tableColumnConfig,tableData:e.productFormTableData,height:e.tableHeight,"max-height":e.tableHeight,loading:e.loading,total:e.total,pageSize:e.queryParams.pageSize,pageNum:e.queryParams.currentPage},on:{"update:pageSize":function(t){return e.$set(e.queryParams,"pageSize",t)},"update:page-size":function(t){return e.$set(e.queryParams,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.queryParams,"currentPage",t)},"update:page-num":function(t){return e.$set(e.queryParams,"currentPage",t)},changeSize:function(t){return e.getProductCardFormList()},changeCurrent:function(t){return e.getProductCardFormList()},sort:e.tableSort},scopedSlots:e._u([{key:"radio",fn:function({data:n}){return[t("el-radio",{attrs:{label:n.scope.id},on:{input:function(t){return e.changeRadio(t)}},model:{value:e.cellRadio,callback:function(t){e.cellRadio=t},expression:"cellRadio"}},[t("span")])]}},{key:"viewNum",fn:function({data:t}){return[e._v(" "+e._s(t.scope.viewNum)+" ")]}},{key:"operate",fn:function({data:n}){return[t("el-link",{attrs:{type:"primary",underline:!1},on:{click:function(t){return e.lookRow(n.scope)}}},[e._v(e._s(e.$i18n.t("productForm.see")))])]}}])}),t("div",{staticClass:"product-form-btn"},[t("el-button",{on:{click:e.closeProductFormDrawer}},[e._v(e._s(e.$i18n.t("productForm.cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.setProductFormLink}},[e._v(e._s(e.$i18n.t("productForm.confirm")))])],1)],1)},EIe=[],DIe=function(){var e=this,t=e._self._c;return t("div",{class:{"crm-x-table":!0}},[t("el-table",e._g(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"xTable",style:{"min-height":`${e.minHeight}px`},attrs:{data:e.tableData,height:e.height,"max-height":e.maxHeight,"row-key":e.getRowKeys,"row-class-name":"row-class-name","cell-class-name":"cell-class-name","tooltip-effect":"light myTooltip"},on:{"selection-change":e.selectionChange,"row-click":e.rowClick,"sort-change":e.sortChange}},"el-table",e.$attrs,!1),e.$listeners),[e.fullTableConfig.selection?[t("el-table-column",{attrs:{type:"selection",align:"center",width:e.fullTableConfig.selectionWidth||40,fixed:e.fullTableConfig.selectionFixed||null,selectable:e.fullTableConfig.handleSelectable,"reserve-selection":!0}})]:e._e(),e.fullTableConfig.index?[t("el-table-column",{attrs:{type:"index",width:e.fullTableConfig.indexWidth||50,label:e.fullTableConfig.indexLabel||"序号",fixed:e.fullTableConfig.indexFixed||null}})]:e._e(),e._l(e.fulColumnConfig,(function(n){return[n.scope&&n.isShow?t("el-table-column",{key:n.scope,attrs:{label:n.label||"",width:n.width||"","min-width":n.minWidth||"",align:n.align||"left",fixed:n.fixed,"class-name":n.isTag?"c-tag":""},scopedSlots:e._u([{key:n.options?"header":"",fn:function({column:n,$index:i}){return[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("span",{staticStyle:{color:"#666666","font-weight":"400","margin-right":"26px"}},[e._v("全选")])])]}},{key:"input"==n.filter?"header":"",fn:function(i){return[t("el-popover",{attrs:{trigger:"click",placement:"bottom",width:"280","popper-class":"input-popper"}},[t("el-input",{attrs:{placeholder:e.$t("edm5.v43")},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}}),t("div",{staticStyle:{"text-align":"right","margin-top":"8px"}},[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.resetSearch(n)}}},[e._v(e._s(e.$t("edm5.v44")))]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.confirmSearch(n)}}},[e._v(e._s(e.$t("edm5.v45")))])],1),t("div",{staticClass:"label",attrs:{slot:"reference"},slot:"reference"},[e._v(" "+e._s(e.$t("edm5.v42"))),t("i",{staticClass:"dss-iconfont icon-filter",staticStyle:{"font-size":"13px",color:"#999999",cursor:"pointer"}})])],1)]}},{key:"readRadio"==n.filter?"header":"",fn:function(i){return[t("el-popover",{attrs:{trigger:"click",placement:"bottom",width:"280","popper-class":"input-popper radio-popper"}},[t("div",{staticClass:"radio-box"},[t("el-radio",{attrs:{label:"1"},model:{value:e.readRadio,callback:function(t){e.readRadio=t},expression:"readRadio"}},[e._v(e._s(e.$t("edm5.v46")))]),t("el-radio",{attrs:{label:"2"},model:{value:e.readRadio,callback:function(t){e.readRadio=t},expression:"readRadio"}},[e._v(e._s(e.$t("edm5.v47")))])],1),t("div",{staticClass:"radio-btn",staticStyle:{"text-align":"right","margin-top":"8px"}},[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.resetSearch(n)}}},[e._v(e._s(e.$t("edm5.v44")))]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.confirmSearch(n)}}},[e._v(e._s(e.$t("edm5.v45")))])],1),t("div",{staticClass:"label",attrs:{slot:"reference"},slot:"reference"},[e._v(" "+e._s(n.label)+" "),t("i",{staticClass:"dss-iconfont icon-filter",staticStyle:{"font-size":"13px",color:"#999999",cursor:"pointer"}})])])]}},{key:"replyRadio"==n.filter?"header":"",fn:function(i){return[t("el-popover",{attrs:{trigger:"click",placement:"bottom",width:"280","popper-class":"input-popper radio-popper"}},[t("div",{staticClass:"radio-box"},[t("el-radio",{attrs:{label:"1"},model:{value:e.replyRadio,callback:function(t){e.replyRadio=t},expression:"replyRadio"}},[e._v("是")]),t("el-radio",{attrs:{label:"0"},model:{value:e.replyRadio,callback:function(t){e.replyRadio=t},expression:"replyRadio"}},[e._v("否")])],1),t("div",{staticClass:"radio-btn",staticStyle:{"text-align":"right","margin-top":"8px"}},[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.resetSearch(n)}}},[e._v(e._s(e.$t("edm5.v44")))]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.confirmSearch(n)}}},[e._v(e._s(e.$t("edm5.v45")))])],1),t("div",{staticClass:"label",attrs:{slot:"reference"},slot:"reference"},[e._v(" "+e._s(n.label)+" "),t("i",{staticClass:"dss-iconfont icon-filter",staticStyle:{"font-size":"13px",color:"#999999",cursor:"pointer"}})])])]}},{key:n.tips?"header":"",fn:function(i){return n.tips?[t("div",{staticClass:"tips-header",style:{"justify-content":e.handleAlgin(n.align)}},[t("span",{staticClass:"label"},[e._v(e._s(n.label))]),t("Tooltip",{staticClass:"tips-header-tooltip",attrs:{content:n.tips,isShowRule:!1}})],1)]:void 0}},{key:"default",fn:function(t){return[e._t(n.scope,null,{data:{scope:t.row,index:t.$index,item:n}})]}}],null,!0)}):!n.scope&&n.isShow?t("TableColumn",e._g(e._b({key:n.label,attrs:{"table-colum-config":n}},"TableColumn",e.$attrs,!1),e.$listeners)):e._e()]})),t("template",{slot:"empty"},[t("Empty",{attrs:{currentStyle:{padding:"0px 0"}}})],1),e._t("default")],2),e.hiddenPagination?e._e():t("div",{class:{"crm-pagination":!0,"has-selected":e.selectedList.length>0,"recipient-default":e.isRecipientList&&!e.tableConfigSelection},style:{top:e.isNeedScroll?`${e.topVal}px`:""}},[e.selectedList.length>0?t("div",{staticClass:"selection"},[t("div",{staticClass:"left"},[t("el-checkbox",{staticClass:"select-box is-indeterminate",attrs:{indeterminate:e.isIndeterminate},model:{value:e.isCheckAll,callback:function(t){e.isCheckAll=t},expression:"isCheckAll"}}),t("span",{staticClass:"select-num"},[e._v("已选中"),t("i",[e._v(e._s(e.selectedList.length))]),e._v("项")])],1),e.isOutboxDetail?t("div",{staticClass:"right add-right"},[t("div",{staticClass:"add-item",on:{click:function(t){return e.handleBtnClick({text:"再次邀约",key:"inviteAgain"})}}},[e._v(" 再次邀约 ")]),t("div",{staticClass:"add-item",on:{click:function(t){return e.handleBtnClick({text:"添加至推广计划",key:"addToPlan"})}}},[e._v(" 添加至推广计划 ")]),t("div",{staticClass:"add-item",on:{click:function(t){return e.handleBtnClick({text:"添加至收藏夹",key:"addToFavor"})}}},[e._v(" 添加至收藏夹 ")])]):e._e(),e.isRecipientList?t("div",{staticClass:"right add-right"},[t("div",{staticClass:"add-item",on:{click:function(t){return e.handleBtnClick({text:"确认移除收件人",key:"removeRecipient"})}}},[e._v(" 移除 ")])]):e._e()]):e._e(),e.isRecipientList?t("div",[e.tableConfigSelection||0===e.countRecipient?e._e():t("div",{staticClass:"recipient-tip"},[e._v(" 该列表共有"+e._s(e.countRecipient)+"位红人,其中含邮箱红人有 "),t("span",{staticStyle:{color:"#ff5277"}},[e._v(e._s(e.validRecipient))]),e._v(" 位 ")])]):e._e(),e.isSelectedDrawer?e._e():t("el-pagination",{staticClass:"pagination",attrs:{"popper-class":"table-pagination","current-page":e.pageNum,"page-size":e.pageSize,"page-sizes":e.pageSizes,layout:e.layout,total:e.total},on:{"update:currentPage":function(t){e.pageNum=t},"update:current-page":function(t){e.pageNum=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},AIe=[],TIe=function(){var e=this,t=e._self._c;return t("el-table-column",{attrs:{label:e.tableColumConfig.label||"",width:e.tableColumConfig.width||"","min-width":e.tableColumConfig.minWidth||"",prop:e.tableColumConfig.prop,align:e.tableColumConfig.align||"left",fixed:e.tableColumConfig.fixed||null,sortable:e.tableColumConfig.sortable?"custom":!!e.tableColumConfig.originSort&&e.tableColumConfig.originSort,"render-header":e.renderHeader,"sort-orders":["descending",null],"show-overflow-tooltip":e.tableColumConfig.showOverflowTooltip,"class-name":"wt-column-class"},scopedSlots:e._u([{key:"default",fn:function(n){return[e.tableColumConfig.template&&Array.isArray(e.tableColumConfig.template)?t("div",{class:{"x-table-template":!0,"x-table-template-center":"center"===e.tableColumConfig.align}},e._l(e.renderItem(e.tableColumConfig.template,n.row),(function(i,r){return t("div",{key:r},["button"===i.type?[t("el-button",{attrs:{type:"primary",size:"small",disabled:!!i.disabledFn&&e.disabledFn({name:i.name,row:n.row,route:e.$route})},on:{click:function(t){return t.stopPropagation(),e.emitFunc("handleMethod",{name:i.name,row:n.row,index:n.$index})}}},[e._v(" "+e._s(i.text)+" ")])]:e._e(),"text"===i.type?[t("el-button",{attrs:{type:"text",disabled:!!i.disabledFn&&e.disabledFn({name:i.name,row:n.row,route:e.$route})},on:{click:function(t){return t.stopPropagation(),e.emitFunc("handleMethod",{name:i.name,row:n.row,index:n.$index})}}},[e._v(" "+e._s(i.text)+" ")])]:"link"===i.type?[t("el-link",{attrs:{type:"primary",size:"small",disabled:!!i.disabledFn&&e.disabledFn({name:i.name,row:n.row,route:e.$route})},on:{click:function(t){return t.stopPropagation(),e.emitFunc("handleMethod",{name:i.name,row:n.row,index:n.$index})}}},[e._v(" "+e._s(i.text)+" ")])]:"render"===i.type?[t("ContextRender",e._g(e._b({attrs:{sc:n,row:n.row,render:i.render(n.row,e.that),rederStyle:i.classStyle?i.classStyle(n.row):""}},"ContextRender",e.$attrs,!1),e.$listeners))]:e._e()],2)})),0):["numFormat"===e.tableColumConfig.format?t("span",[e._v(" "+e._s(e._f("numFormat")(n.row[`${e.tableColumConfig.prop}`]))+" ")]):"rateFormat"===e.tableColumConfig.format?t("span",[e._v(" "+e._s(e._f("rateFormat")(n.row[`${e.tableColumConfig.prop}`]))+" ")]):"orateFormat"===e.tableColumConfig.format?t("span",[e._v(" "+e._s(n.row[`${e.tableColumConfig.prop}`])+"% ")]):"dateFormat"===e.tableColumConfig.format?t("span",[e._v(" "+e._s(e._f("dateFormat")(n.row[`${e.tableColumConfig.prop}`]))+" ")]):"common"===e.tableColumConfig.format?t("span",[e._v(" "+e._s(e._f("commonFormat")(n.row[`${e.tableColumConfig.prop}`],e.tableColumConfig.dict))+" ")]):t("span",[e._v(" "+e._s(n.row[`${e.tableColumConfig.prop}`]||"-")+" ")])]]}}])})},OIe=[],IIe={functional:!0,props:{row:{type:Object,required:!0},render:{type:Function,required:!0},sc:{type:Object,required:!0},rederStyle:{type:String,require:!0}},render:(e,t)=>{const n=[],i={row:t.props.row,index:t.props.sc.$index},r=t.props.render(e,i);return n.push(r),e("div",{class:t.props.rederStyle},n)}},PIe=IIe,$Ie=or(PIe,mIe,gIe,!1,null,null,null),FIe=$Ie.exports,BIe={name:"XTableReder",props:{tableColumConfig:{type:Object,default:()=>{}},disabledFn:{type:Function,default:function(){return!1}},showFn:{type:Function,default:function(){return!1}}},filters:{commonFormat(e,t){return t.find((t=>t.code==e))?.name||"-"}},mounted(){},computed:{that(){return this},renderItem(){return function(e,t){return Array.isArray(e)?e.filter((e=>!e.showFn||this.showFn({name:e.name,row:t,route:this.$route}))):[]}}},methods:{emitFunc(e,t){this.$emit(e,t)},renderHeader(e,{column:t,$index:n}){return t.sortable?"ascending"===t.order?e("div",{style:"display:flex;align-items:center;justify-content:center;"},[e("span",{style:"margin-right:10px;"},[t.label]),e("span",{style:"letter-spacing: -8px;display:flex;align-items:center;"},[e("i",{class:"el-icon-sort-up",style:"color:#DADADA;font-weight: 800;transform: rotateY(180deg);"}),e("i",{class:"el-icon-sort-down",style:"color:#DADADA;font-weight: 800;transform: rotateY(180deg);"})])]):"descending"===t.order?e("div",{style:"display:flex;align-items:center;justify-content:center;"},[e("span",{style:"margin-right:10px;"},[t.label]),e("span",{style:"letter-spacing: -8px;display:flex;align-items:center;"},[e("i",{class:"el-icon-sort-up",style:"color:#DADADA;font-weight: 800;transform: rotateY(180deg);"}),e("i",{class:"el-icon-sort-down",style:"color:#F85277;font-weight: 800;transform: rotateY(180deg);"})])]):e("div",{style:"display:flex;align-items:center;justify-content:center;"},[e("span",{style:"margin-right:10px;"},[t.label]),e("span",{style:"letter-spacing: -8px;display:flex;align-items:center;"},[e("i",{class:"el-icon-sort-up",style:"color:#DADADA;font-weight: 800;transform: rotateY(180deg);"}),e("i",{class:"el-icon-sort-down",style:"color:#DADADA;font-weight: 800;transform: rotateY(180deg);"})])]):t.label}},components:{ContextRender:FIe}},MIe=BIe,NIe=or(MIe,TIe,OIe,!1,null,"6518c6f8",null),RIe=NIe.exports;const jIe={tableMaxHeight:800,index:!1,indexWidth:60,indexLabel:"序号",indexFixed:"left",selection:!1,selectionWidth:36,selectionFixed:"left",handleSelectable:function(e,t){return!0}},LIe={label:"",prop:"",isShow:!0,width:"auto",minWidth:"auto",fixed:!1,template:!1,align:"left",sortable:!1,order:1};var zIe={name:"XTable",props:{tableData:{type:Array,default:()=>[]},tableConfig:{type:Object,default:()=>{}},tableColumnConfig:{type:Array,require:!0,default:()=>[]},total:{type:Number,default:0},height:{type:Number,default:"auto"},maxHeight:{type:Number,default:"500px"},minHeight:{type:Number,default:500},hiddenPagination:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},layout:{type:String,default:"total,slot, sizes, prev, pager, next"},tableBtns:{type:Array,default:()=>[]},rowKey:{type:String,default:"id"},pageNum:{type:Number,default:1},pageSize:{type:Number,default:20},pageSizes:{type:Array,default:()=>[10,20,50,100]},isNeedScroll:{type:Boolean,default:!1},isSelectedDrawer:{type:Boolean,default:!1},topVal:{type:Number,default:0},isOutboxDetail:{type:Boolean,default:!1},isRecipientList:{type:Boolean,default:!1},tableConfigSelection:{type:Boolean,default:!1},countRecipient:{type:[Number,String],default:0},validRecipient:{type:[Number,String],default:0}},data(){return{selectedList:[],searchVal:"",readRadio:null,replyRadio:null}},watch:{height(e){e&&this.$nextTick((()=>{console.log("----9999999"),console.log(this.$refs.xTable),console.log(e)}))}},computed:{fullTableConfig(){return{...jIe,...this.tableConfig}},fulColumnConfig(){return this.tableColumnConfig.map((e=>({...LIe,...e})))},isCheckAll:{set(e){console.log(e),e?this.$refs["xTable"]&&this.$refs["xTable"].toggleAllSelection():this.tableData.forEach((e=>{this.$refs["xTable"]&&this.$refs["xTable"].toggleRowSelection(e,!1)}))},get(){const e=this.selectedList.map((e=>e[this.rowKey])),t=this.tableData.every((t=>e.includes(t[this.rowKey])));return t}},isIndeterminate(){return!this.isCheckAll&&this.selectedList.length>0}},methods:{resetSearch(e){"blogger"==e.scope&&(this.searchVal=""),"isRead"==e.scope&&(this.readRadio=null),"isReply"==e.scope&&(this.replyRadio=null)},confirmSearch(e){document.body.click();let t="blogger"==e.scope?this.searchVal:"isReply"==e.scope?this.replyRadio:"isRead"==e.scope?this.readRadio:"";this.$emit("confirmSearch",t,e.scope),this.resetSearch()},selectionChange(e){this.selectedList=e,this.$emit("selectionChange",e)},toggleAllSelect(){this.isCheckAll?this.tableData.forEach((e=>{this.$refs["xTable"]&&this.$refs["xTable"].toggleRowSelection(e,!1)})):this.$refs["xTable"]&&this.$refs["xTable"].toggleAllSelection()},handleSizeChange(e){this.$emit("update:pageNum",1),this.$emit("update:pageSize",e),this.$emit("changeSize",{pageNum:1,pageSize:e})},handleCurrentChange(e){this.$emit("update:pageNum",e),this.$emit("changeCurrent",{pageNum:e,pageSize:this.pageSize})},rowClick(e,t,n){this.$emit("rowClick",e,t,n)},sortChange(e){const t=this.fulColumnConfig.find((t=>t.prop===e.column.property));t&&t.sortable&&this.$emit("sort",e,t.sortable)},handleBtnClick(e){this.$emit("handleBtnClick",e,this.selectedList)},getRowKeys(e){return e[this.rowKey]},removeChoose(){this.tableData.forEach((e=>{this.$refs["xTable"]&&this.$refs["xTable"].toggleRowSelection(e,!1)}))},handleAlgin(e="left"){return"left"===e?"flex-start":"center"===e?"center":"right"===e?"flex-end":void 0}},components:{TableColumn:RIe,Empty:sd,Tooltip:Xc}},VIe=zIe,HIe=or(VIe,DIe,AIe,!1,null,"73077fed",null),UIe=HIe.exports,WIe={props:{isShowProductFormDrawer:{type:Boolean,default:!1},currentEnv:{type:String,default:"https://www.wotohub.com"}},components:{WTable:UIe},data(){return{isShowDrawer:this.isShowProductFormDrawer,tableColumnConfig:[{label:"",scope:"radio",width:"60"},{label:this.$i18n.t("productForm.creation_time"),prop:"gmtCreate",sortable:1,minWidth:120},{label:this.$i18n.t("productForm.selection_form_name"),prop:"name",showOverflowTooltip:!0,minWidth:120},{label:this.$i18n.t("productForm.number_of_product_cards"),prop:"cardNums",minWidth:100},{label:this.$i18n.t("productForm.viewing_frequency"),scope:"viewNum"},{label:this.$i18n.t("productForm.update_time"),prop:"gmtModify",sortable:2,minWidth:120},{label:this.$i18n.t("productForm.operation"),scope:"operate"}],productFormTableData:[],loading:!1,total:0,queryParams:{currentPage:1,pageSize:20,createTimeAsc:!1,modifyTimeAsc:null},tableHeight:js(204),cellRadio:"",productFormLink:""}},created(){this.getProductCardFormList()},methods:{closeProductFormDrawer(){this.$emit("closeProductFormDrawer")},getProductCardFormList(){this.loading=!0,AOe(this.queryParams).then((e=>{"0"===e.code?(this.productFormTableData=e.data.rows,this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})})).finally((()=>{this.loading=!1}))},tableSort({order:e},t){this.queryParams.createTimeAsc=!!e,this.queryParams.modifyTimeAsc=!!e,this.queryParams.currentPage=1,this.getProductCardFormList()},lookRow(e){window.open(`${this.currentEnv}/productFormDetail?id=${e.id}`,"_blank")},changeRadio(e){this.productFormLink=`${this.currentEnv}/shareForm?id=${e}`},setProductFormLink(){this.$emit("setProductFormLink",this.productFormLink),this.closeProductFormDrawer()}}},qIe=WIe,YIe=or(qIe,kIe,EIe,!1,null,"9c6bea00",null),GIe=YIe.exports,KIe=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{title:e.$i18n.t("productCard.add_product_card"),visible:e.showDrawer,size:"900px","custom-class":"productcard-drawer"},on:{"update:visible":function(t){e.showDrawer=t},close:e.closeProductCardDrawer}},[t("div",{staticClass:"card-search-wrap"},[t("div",{staticClass:"card-search-item"},[t("span",[e._v(e._s(e.$i18n.t("product.product_name")))]),t("el-select",{staticClass:"normal-select",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18n.t("common.please_select"),filterable:"","popper-class":"select-popper"},model:{value:e.productName,callback:function(t){e.productName=t},expression:"productName"}},e._l(e.productOpts,(function(e,n){return t("el-option",{key:n,attrs:{label:e.productName,value:e.shopifyProductId}})})),1)],1),t("div",{staticClass:"card-search-item"},[t("span",[e._v(e._s(e.$i18n.t("newProduct.product_remarks")))]),t("el-input",{model:{value:e.queryParams.remark,callback:function(t){e.$set(e.queryParams,"remark",t)},expression:"queryParams.remark"}})],1),t("div",{staticClass:"card-search-btn"},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.searchEvt}},[e._v(e._s(e.$i18n.t("newProduct.query")))]),t("el-button",{attrs:{size:"small",type:"info"},on:{click:e.resetEvt}},[e._v(e._s(e.$i18n.t("newProduct.reset")))])],1)]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"card-body"},e._l(e.cardsArr,(function(n){return t("div",{key:n.id,staticClass:"cards-wrap",class:{selected:e.isSelected(n)},on:{click:function(t){return e.toggleSelection(n)}}},[t("div",{staticClass:"card-item"},[t("div",{staticClass:"card-img"},[t("el-image",{staticClass:"product-img",attrs:{src:n.imageUrls[0]}}),t("div",{staticClass:"card-tags"},[e._l(n.promotePlatformType,(function(n,r){return t("div",{key:"platform"+r,staticClass:"platform-img"},[0==n?t("img",{attrs:{src:i(4321)}}):e._e(),1==n?t("img",{attrs:{src:i(634)}}):e._e(),2==n?t("img",{attrs:{src:i(7682)}}):e._e()])})),e._l(n.typeName3,(function(n,i){return t("span",{key:"typeName"+i,staticClass:"span-item"},[e._v(" "+e._s(n)+" ")])})),n.typeName.length>3?t("el-tooltip",{attrs:{placement:"top","popper-class":"wt-tooltip tooltip-tips type-tooltip"}},[t("div",{staticClass:"content",attrs:{slot:"content"},slot:"content"},e._l(n.typeName,(function(n,i){return t("span",{key:"allTypeName"+i,staticClass:"type-item"},[e._v(e._s(n))])})),0),t("span",{staticClass:"span-item more-types"},[e._v("···")])]):e._e()],2),e.isSelected(n)?t("div",{staticClass:"checkbox"},[t("img",{attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/selected.svg"}})]):e._e()],1),t("p",{staticClass:"card-name"},[e._v(" "+e._s(n.nameEn||"—")+" ")]),t("p",{staticClass:"card-price"},[e._v(" Price:"+e._s(e._f("getMoneySymbol")(n.currency))+e._s(n.priceDollar||"—")+" ")]),t("p",{staticClass:"card-commission"},[e._v(" Commission rate:"+e._s(n.commissionPercent||"—")+"% ")]),t("div",{staticClass:"card-apply",class:{"only-btn":null==n.commissionPercent||0==n.commissionPercent}},[null!==n.commissionPercent&&0!==n.commissionPercent?t("p",{staticClass:"money"},[t("span",[e._v(e._s(e._f("getMoneySymbol")(n.currency))+e._s((n.priceDollar*(n.commissionPercent/100)).toFixed(2)))]),e._v(" /per orderd item ")]):e._e(),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return t.stopPropagation(),e.skipApply(n.id)}}},[e._v("Apply")])],1)]),t("div",{staticClass:"cark-views"},[t("p",[e._v(e._s(e.$i18n.t("newProduct.productId"))+":"+e._s(n.id))]),t("p",[e._v(e._s(e.$i18n.t("newProduct.product_name"))+":"+e._s(n.nameZh))]),t("p",[e._v(e._s(e.$i18n.t("newProduct.product_remarks"))+":"+e._s(n.remark))])])])})),0),t("el-pagination",{attrs:{"hide-on-single-page":0==e.total,total:e.total,"page-size":e.queryParams.pageSize,"current-page":e.queryParams.currentPage,layout:"total,prev, pager, next,jumper"},on:{"current-change":e.handleCurrentChange}}),t("div",{staticClass:"footer-btn"},[t("el-button",{on:{click:e.closeProductCardDrawer}},[e._v(e._s(e.$i18n.t("newProduct.Cancel")))]),t("el-button",{attrs:{type:"primary",disabled:e.isFinished,loading:e.isFinished},on:{click:e.saveEvt}},[e._v(e._s(e.$i18n.t("newProduct.preservation")))])],1)],1)},XIe=[],ZIe={props:{isShowProductCardDrawer:{type:Boolean,default:!1},formName:{type:String,default:""}},data(){return{queryParams:{productName:"",remark:"",pageSize:6,currentPage:1,timeAsc:!1},productOpts:[],cardsArr:[],selectedItems:[],total:0,isFinished:!1,showDrawer:this.isShowProductCardDrawer,productTypeOpts:Object.freeze(hIe),loading:!1,productName:""}},created(){this.getProductOpts(),this.getProductCardFormQuery()},methods:{searchEvt(){this.queryParams.currentPage=1,this.getProductCardFormQuery()},resetEvt(){this.queryParams=this.$options.data().queryParams,this.productName="",this.getProductCardFormQuery()},getProductCardFormQuery(){this.loading=!0,this.queryParams.formId=this.$route.query.id,this.productOpts.map((e=>{e.shopifyProductId==this.productName&&(this.queryParams.productName=e.productName)})),SOe({...Ls(this.queryParams)}).then((e=>{"0"===e.code?(this.cardsArr=e.data.rows,e.data.rows.forEach((e=>{let t=[];t=3!==e.source?e.type.map((e=>{const t=this.productTypeOpts.find((t=>t.value===e))?.label;return t})):e.type.map((e=>e));let n=t.slice();e.typeName3=n.splice(0,3),e.typeName=t})),this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})})).finally((()=>{this.loading=!1}))},handleCurrentChange(e){this.queryParams.currentPage=e,this.getProductCardFormQuery()},getProductOpts(){EOe().then((e=>{"0"===e.code?this.productOpts=e.data:this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},closeProductCardDrawer(){this.$emit("closeProductCardDrawer")},saveEvt(){0!=this.selectedItems.length?(this.$emit("addProductCard",this.selectedItems),this.closeProductCardDrawer()):this.$message({type:"warning",message:"请点击选择要添加的商品卡",customClass:"custom-message"})},skipApply(e){DOe({productId:e}).then((e=>{"0"===e.code?window.open(e.data,"_blank"):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},isSelected(e){return this.selectedItems.includes(e.id)},toggleSelection(e){const t=e.id,n=this.selectedItems.indexOf(t);n>-1?this.selectedItems.splice(n,1):this.selectedItems.push(t)}}},JIe=ZIe,QIe=or(JIe,KIe,XIe,!1,null,"65fe80bc",null),ePe=QIe.exports,tPe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"content-box"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isMultiReply,expression:"!isMultiReply"}],staticClass:"form-item mb12"},[t("span",[e._v(e._s(e.$i18n.t("writeMail.subject")))]),t("div",{staticClass:"subject-wrap"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.subject,expression:"form.subject"}],ref:"subjectIpt",staticClass:"subject-input",attrs:{type:"text"},domProps:{value:e.form.subject},on:{focus:function(t){e.isFocusSubject=!0},input:function(t){t.target.composing||e.$set(e.form,"subject",t.target.value)}}})])]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isMultiReply,expression:"!isMultiReply"}],staticClass:"form-item mb4"},[t("span",{staticClass:"attachment-file"},[e._v(e._s(e.$t("edm5.v56"))+" "),t("Tooltip",{staticClass:"attachment-tooltip",attrs:{content:e.$t("edm5.v235"),isShowRule:!1}})],1),t("div",{staticClass:"attachment-list"},[t("div",{staticClass:"file-box"},[e._l(e.form.fileList,(function(n,i){return t("div",{key:n.link,staticClass:"file"},[t("i",{staticClass:"dss-iconfont icon-file-3"}),t("div",{staticClass:"name"},[t("span",{staticClass:"file-name"},[e._v(e._s(n.name))]),t("span",{staticClass:"file-size"},[e._v(" ("+e._s(n.size<1024?n.size+"B":n.size<1048576?parseInt(n.size/1024)+"KB":parseInt(n.size/1024/1024)+"MB")+")")])]),t("i",{staticClass:"dss-iconfont icon-close",on:{click:function(t){return e.delFile(i)}}})])})),t("div",{staticClass:"add",on:{click:e.clickUpload}},[t("i",{staticClass:"dss-iconfont icon-add2"}),t("span",[e._v(e._s(e.$t("edm5.v236")))])])],2)])]),t("div",{staticClass:"form-item mb16"},[t("span",[e._v(e._s(e.$i18n.t("writeMail.content")))]),t("div",{staticClass:"form-editor",on:{click:function(t){e.isFocusSubject=!1}}},[t("editor",{ref:"content",staticClass:"mail-editor",attrs:{height:e.editorHeight,theme:"light"},on:{onload:e.editorOnload}}),t("div",{staticClass:"editor-opt-bar"},["aiBar"===e.showBar?t("div",{staticClass:"ai-bar"},[t("img",{staticClass:"bar-icon",attrs:{src:i(7346),alt:""}}),t("span",{staticClass:"bar-name"},[e._v(e._s(e.$t("edm5.v237")))]),t("div",{staticClass:"bar-items"},e._l(e.aiBarItems,(function(n,i){return t("span",{key:i,staticClass:"item",on:{click:function(t){return e.toOpenAiOptimize(n.type)}}},[e._v(e._s(n.name))])})),0),t("div",{staticClass:"point"},[t("span",{staticClass:"txt"},[e._v(e._s(e.$t("edm5.v17"))+e._s(e.aiPoint))]),t("Tooltip",{attrs:{content:e.$t("edm5.v18"),isShowRule:!0}})],1),t("i",{staticClass:"dss-iconfont icon-close",on:{click:e.toCloseBar}})]):e._e(),"variableBar"===e.showBar?t("div",{staticClass:"variable-bar"},[t("i",{staticClass:"dss-iconfont icon-temp1"}),t("span",{staticClass:"bar-name"},[e._v(e._s(e.$t("edm5.v71")))]),t("Tooltip",{attrs:{content:e.$i18n.t("writeMail.infoPop"),isShowRule:!1},nativeOn:{click:function(t){e.showTemplateUsage=!0}}}),t("div",{staticClass:"bar-items"},[t("el-popover",{attrs:{trigger:"hover",width:"80",placement:"top-start","popper-class":"variable-popover"}},[t("div",{staticClass:"pop-item",on:{click:function(t){return e.setVariable(0)}}},[e._v(" "+e._s(e.$i18n.t("writeMail.channel_name"))+" ")]),t("div",{staticClass:"pop-item",on:{click:function(t){return e.setVariable(3)}}},[e._v(" "+e._s(e.$i18n.t("writeMail.channel_Id"))+" ")]),t("span",{staticClass:"item",staticStyle:{display:"inline-block"},attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.$t("edm5.v239")))])]),t("span",{staticClass:"item",on:{click:function(t){return e.setVariable(1)}}},[e._v(" "+e._s(e.$i18n.t("writeMail.fans_num"))+" ")]),t("span",{staticClass:"item",on:{click:function(t){return e.setVariable(2)}}},[e._v(" "+e._s(e.$i18n.t("writeMail.channel_link"))+" ")])],1),t("i",{staticClass:"dss-iconfont icon-close",on:{click:e.toCloseBar}})],1):e._e()]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isAutoSave,expression:"isAutoSave"}],staticClass:"save-icon"},[e.isAutoSaving?t("i",{staticClass:"el-icon-refresh-right"}):e._e(),e.isAutoSaved?t("img",{attrs:{src:i(3475)}}):e._e()])],1)]),t("mail-upload",{attrs:{isShow:e.isShowUpload,fileMaxNum:10-e.form.fileList.length,fileMaxSize:200-e.totalSize},on:{onSuccess:e.onSuccess,close:e.handleOnClose}}),e.showTemplateUsage?t("template-usage",{attrs:{isShow:e.showTemplateUsage},on:{closeTemplateUsage:function(t){e.showTemplateUsage=!1}}}):e._e()],1)},nPe=[],iPe=(i(8872),function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{visible:e.isShow,rendered:"","before-close":e.close,"close-on-click-modal":!1,title:e.$t("uploadDialog.title"),width:"550px",top:"50px","custom-class":"edm-upload-dialog"},on:{"update:visible":function(t){e.isShow=t},open:function(t){return e.open()}}},[t("div",{staticClass:"container-fileUpload"},[t("el-button",{ref:"btn-upload",staticClass:"btn-upload",attrs:{type:"primary",disabled:e.isUploading},on:{click:e.handleSelectFile}},[t("i",{staticClass:"el-icon-upload"}),e._v(" "+e._s(e.$t("uploadDialog.btnUpload")))]),t("div",{staticClass:"upload-select"},[t("input",{ref:"upload",staticClass:"upload",attrs:{type:"file",multiple:"",id:"uploads"},on:{change:e.fileChange}})]),t("h2",{staticClass:"txt-tip",staticStyle:{"margin-left":"8px"}},[e._v(" * "+e._s(e.$t("uploadDialog.tip"))+" ")]),t("div",{staticClass:"files"},[0===e.files.length?t("el-empty",{attrs:{"image-size":200}}):e._e(),e._l(e.files,(function(n,i){return t("div",{key:i,staticClass:"file"},[t("div",{staticClass:"file-name"},[t("span",{attrs:{title:n.file.name}},[e._v(e._s(n.file.name)+" ("+e._s(n.file.size<1024?n.file.size+"B":n.file.size<1048576?parseInt(n.file.size/1024)+"KB":parseInt(n.file.size/1024/1024)+"MB")+")")]),0===n.percentage?t("span",{staticClass:"del-icon",on:{click:function(t){return e.del(i)}}},[e._v(" "),t("i",{staticClass:"el-icon-delete"})]):e._e()]),t("div",[n.percentage>0?t("div",{staticClass:"progress"},[t("el-progress",{attrs:{"text-inside":!1,"stroke-width":7,format:e.format,percentage:n.percentage}}),t("div",{staticClass:"progress-percent"},[t("span",{style:100===n.percentage&&"display:none"},[e._v(e._s(n.percentage)+"%")]),100===n.percentage?t("i",{staticClass:"el-icon-circle-check color"}):e._e()])],1):e._e()])])}))],2)],1),t("div",{staticClass:"popup-foot"},[t("div",{staticClass:"txt-tip"},[e._v(" * "+e._s(e.$t("uploadDialog.tip1"))),t("span",{staticStyle:{color:"#1a89fa"}},[e._v(e._s(parseInt(e.fileMaxSize))+"MB")]),e._v(","+e._s(e.$t("uploadDialog.tip2"))),t("span",{staticStyle:{color:"#1a89fa"}},[e._v(e._s(e.fileMaxNum))]),"zh"===e.$i18n.locale||"zh-CN"===e.$i18n.locale?t("span",[e._v("个")]):e._e()]),t("div",{staticClass:"footer-btns"},[t("el-button",{staticClass:"btnOk",attrs:{type:"primary",loading:e.btnloading},on:{click:e.handleOnUpload}},[e._v(e._s(e.$t("uploadDialog.btnOk")))]),e.btnloading?e._e():t("el-button",{staticClass:"btnOk",attrs:{type:"primary"},on:{click:e.handleOnReset}},[e._v(e._s(e.$t("uploadDialog.btnClear")))])],1)])])],1)}),rPe=[],oPe={name:"edm-upload",props:{isShow:{default:!1,type:Boolean},fileMaxNum:{default:10,type:Number},fileMaxSize:{default:200,type:Number}},data(){return{showFile:!0,files:[],fileList:[],btnloading:!1,isUploading:!1}},methods:{open(){this.files=[],this.fileList=[]},close(){this.btnloading&&this.$message.warning(this.$t("uploadDialog.wait")),this.$emit("close",this.btnloading)},handleSelectFile(){this.showFile=!0;let e=this.$refs["upload"];e&&e.click()},format(e){return""},fileChange(e){let t=e.target.files;if(t.length+this.files.length>this.fileMaxNum)this.$message.warning(this.$t("uploadDialog.maxNum"));else{if(t.length>0)for(let e=0;e<t.length;e++){let n=this.files.find((n=>n.file.name===t[e].name));if(!n){let n=0;if(this.files.forEach((e=>{n+=e.file.size/1024/1024})),n+t[e].size/1024/1024>this.fileMaxSize)return void this.$message.warning(this.$t("uploadDialog.maxSize"));this.files.push({file:t[e],percentage:0})}}document.getElementById("uploads").value=""}},handleOnReset(){this.files=[]},del(e){this.files.splice(e,1)},handleOnUpload(){if(0===this.files.length)return void this.$message.warning(this.$t("uploadDialog.empty"));this.btnloading=!0;let e=[];if(this.files.length>0)for(let n=0;n<this.files.length;n++)e.push({fileName:this.files[n].file.name,fileSize:this.files[n].file.size});let t=[];e.map((e=>{t.push(qa(e))})),this.isUploading=!0,Promise.all(t).then((e=>e)).then((e=>{console.log("ossparams",e);let t=[],n=this;e.map(((e,i)=>{let r=new FormData;r.append("key",e.data.objectName),r.append("success_action_status","200"),r.append("x-oss-object-acl","public-read"),r.append("OSSAccessKeyId",e.data.accessKeyId),r.append("policy",e.data.uploadPolicy),r.append("signature",e.data.uploadSignature),r.append("success_action_status","200"),r.append("file",n.files[i].file),t.push(Ga(e.data.uploadHost,r,(e=>{e.upload&&n.files[i]&&n.files[i].percentage&&(n.files[i].percentage=Math.floor(100*e.progress))}))),this.fileList.push({uuid:this.$md5(n.files[i].file.name),name:n.files[i].file.name,link:e.data.uploadHost+"/"+encodeURI(e.data.objectName),size:n.files[i].file.size,oss:e.data})})),console.log("合并信息",this.fileList),Promise.all(t).then((()=>{this.btnloading=!1,this.$message.success(this.$t("uploadDialog.success")),this.isUploading=!1,this.$emit("onSuccess",this.fileList),this.files=[],this.fileList=[]}))}))}}},aPe=oPe,sPe=or(aPe,iPe,rPe,!1,null,"27a1758c",null),lPe=sPe.exports,cPe=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.isShow,title:e.$i18n.t("checkMail.tip17"),width:"620px","before-close":e.closeTemplateUsage,"custom-class":"usage-dialog"},on:{"update:visible":function(t){e.isShow=t}}},[t("p",{staticClass:"tip"},[e._v(" "+e._s(e.$i18n.t("checkMail.tip18"))+" ")]),t("img",{staticClass:"usage-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/usage.png"}})])},uPe=[],dPe={props:{isShow:{default:!1,type:Boolean}},data(){return{}},methods:{closeTemplateUsage(){this.$emit("closeTemplateUsage")}}},hPe=dPe,pPe=or(hPe,cPe,uPe,!1,null,null,null),fPe=pPe.exports,mPe={props:{isMultiReply:{type:Boolean,default:!1},isDraft:{type:Boolean,default:!1},isReply:{type:Boolean,default:!1},isOuterBox:{type:Boolean,default:!1},form:{type:Object,default:{id:"",subject:"",fileList:[],content:"",active:!0,isAiContent:!1,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}},replyInfo:{type:Object,default:()=>{}},editorHeight:{type:Number,default:350},aiPoint:{type:Number,default:0}},components:{mailUpload:lPe,templateUsage:fPe,Editor:cOe,Tooltip:Xc},data(){return{isFocusSubject:!1,totalSize:0,isShowUpload:!1,showTemplateUsage:!1,isAutoSave:!1,isAutoSaving:!1,isAutoSaved:!1,replyHtml:"",editorRef:null,editorReady:!1,aiBarItems:[{name:this.$t("edm5.v265"),type:"1"},{name:this.$t("edm5.v266"),type:"2"},{name:this.$t("edm5.v267"),type:"3"},{name:this.$t("edm5.v268"),type:"4"},{name:this.$t("edm5.v269"),type:"5"}],showBar:"",pageFrom:this.$route.query.pageFrom||""}},computed:{isAiInvitePlanContentReady(){return this.editorReady&&!!this.form.content&&"AIinvitePlan"===this.pageFrom&&!this.form.isAiContent},isNormalContentReady(){return this.editorReady&&!!this.form.content&&!this.isDraft&&!this.isOuterBox&&!this.form.isAiContent&&"AIinvitePlan"!=this.pageFrom},isDraftContentReady(){return this.editorReady&&!!this.form.content&&!!this.isDraft&&!this.form.isAiContent},isAiContentReady(){return this.editorReady&&!!this.form.content&&!!this.form.isAiContent},isOuterBoxContentReady(){return this.editorReady&&!!this.form.content&&!!this.isOuterBox},isFileReady(){return this.form.fileList&&Array.isArray(this.form.fileList)&&this.form.fileList.length>0},isReplyContentReady(){return this.editorReady&&this.replyInfo&&this.isReply&&Object.keys(this.replyInfo).length>0}},watch:{isAiInvitePlanContentReady(e){e&&this.setInitDraftContent()},isNormalContentReady(e){console.log("normal",e),e&&this.setContent(this.form.content)},isDraftContentReady(e){console.log("Draft",e),e&&this.setInitDraftContent()},isOuterBoxContentReady(e){e&&this.setInitOuterBoxContent()},isReplyContentReady(e){e&&this.setInitReply()},isFileReady(e){e&&this.setInitFileSize()},isAiContentReady(e){console.log("ai",e),e&&this.setContent(this.form.content)}},created(){},mounted(){},methods:{editorOnload(){this.editorRef=this.$refs.content,this.editorReady=!0,this.initEditor()},initEditor(){this.$refs.content&&(this.form.getContent=this.getContent,this.form.setContent=this.setContent,this.form.addEditContent=this.addEditContent,this.form.setReplyDom=this.setReplyDom,this.form.getReplyHtml=this.getReplyHtml,this.form.getTextContent=this.getTextContent,this.form.isEmpty=this.getIsEmpty,this.form.setEditorBar=this.setEditorBar,this.setInitEmail())},getContent(){return this.editorRef.getContent()},setContent(e){let t=e;e&&e.trim&&(t=e.trim()),this.editorRef.setContent(t)},addEditContent(e){this.editorRef.addEditContent(e)},getTextContent(){return this.editorRef.getTextContent()},getReplyHtml(){return this.replyHtml},getIsEmpty(){return this.editorRef.isEmpty()},setEditorBar(e){this.showBar=e},clickUpload(){10!==this.form.fileList.length&&this.totalSize<200?this.isShowUpload=!0:this.$message({type:"warning",message:`${this.$i18n.t("writeMail.attachment_length_limit")}${this.$i18n.t("writeMail.attachment_size_limit")}`})},onSuccess(e){e.forEach((e=>{this.totalSize+=e.size/1024/1024,this.form.fileList.push({uuid:e.uuid,name:e.name,link:e.link,size:e.size})})),this.isShowUpload=!1},delFile(e){this.form.fileList.splice(e,1),0===this.form.fileList.length&&(this.totalSize=0),0!==this.form.fileList.length&&this.form.fileList.length<=10&&this.computeTotalSize()},handleOnClose(e){this.isShowUpload=!!e},setVariable(e){let t="";if(this.isFocusSubject){switch(e){case 0:t="{$channelName}";break;case 1:t="{$subscriber}";break;case 2:t="{$link}";break;case 3:t="{$channelId}";break}const n=this.$refs.subjectIpt.selectionStart,i=this.form.subject.slice(0,n)+t+this.form.subject.slice(n);this.form.subject=i,this.isFocusSubject=!1}else{switch(e){case 0:t="{$channelName}";break;case 1:t="{$subscriber}";break;case 2:t="{$link}";break;case 3:t="{$channelId}";break}this.editorRef.setFocus(),this.editorRef.insertEditContent(t)}},setInitEmail(){},setInitDraftContent(){const e=this.form.content;if(!e)return!1;const t=e.indexOf("<product-card"),n=e.indexOf("</product-card>");let i="";i=t>-1&&n>-1?e.slice(0,t)+e.slice(n+15):e;const r=i.split("&nbsp;&nbsp;&nbsp;");if(r.length>1){this.setContent(r[0]);const e=this.$refs.content.$el;if(e){const t=e.getElementsByClassName("w-e-scroll")[0],n=t.firstChild;n.setAttribute("class","mail-w");const i=document.createElement("div");i.innerHTML=r[1],t.appendChild(i),this.replyHtml=r[1]}}else this.setContent(i)},setInitOuterBoxContent(){const e=this.form.content;if(!e)return!1;const t=e.indexOf("<product-card"),n=e.indexOf("</product-card>"),i=e.slice(0,t)+e.slice(n+15),r=i.split("&nbsp;&nbsp;&nbsp;");if(r.length>1){this.setContent(r[0]);const e=this.$refs.content.$el;if(e){const t=e.getElementsByClassName("w-e-scroll")[0],n=t.firstChild;n.setAttribute("class","mail-w");const i=document.createElement("div");i.innerHTML=r[1],t.appendChild(i),this.replyHtml=r[1]}}else this.setContent(i)},setInitReply(){const e=this.$refs.content.$el;if(e){let n=e.getElementsByClassName("w-e-scroll")[0];var t=document.createElement("div");let i="<div style='color:#333'>";if(i+=`<p>------ ${this.$t("inboxDetail.omail")} ------<p>`,i+="<div style='background:#f5f5f5;padding:20px !important';overflow-x:auto;>",i+="<div style='margin-bottom:10px;!important'>",i+=`<span> ${this.$t("inboxDetail.to")}:</span>`,i+=`<span>${Fs(this.replyInfo.bloggerName)}</span>`,i+="</div>",i+="<div style='margin-bottom:10px;!important'>",i+=`<span style='display:inline-block;width:65px;'> ${this.$t("inboxDetail.subject")}:</span>`,i+=`<span>${this.replyInfo.subject}</span>`,i+="</div>",i+="<div style='display:flex'>",i+=`<span style='display:block;width:65px;margin: 0px;white-space:nowrap;'> ${this.$t("inboxDetail.content")}:</span>`,i+=`<div>${this.replyInfo.content}</div>`,i+="</div>",i+="<div>",i+="</div>",i=this.filterTag(i),t.innerHTML=i,this.replyHtml=i,n.appendChild(t),this.$route.query.isSimple){const e=localStorage.getItem("simpleWiteTxt")||"";this.setContent(e)}n.firstChild&&n.firstChild.setAttribute("class","mail-w")}},setInitFileSize(){const e=this.form.fileList;e&&Array.isArray(e)&&e.length>0&&(this.totalSize=this.form.fileList.reduce(((e,t)=>e+t.size/1024/1024),0))},filterTag(e){return e.replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>|<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"")},toCloseBar(){this.showBar=""},toOpenAiOptimize(e){this.$emit("handleOptimize",e)}}},gPe=mPe,vPe=or(gPe,tPe,nPe,!1,null,"a1e6650c",null),yPe=vPe.exports,bPe=function(){var e=this,t=e._self._c;return t("el-drawer",{staticClass:"ai-side-sign",attrs:{title:e.$t("edm5.v73"),"custom-class":"ai-side-sign-drawer",visible:e.visible,"close-on-press-escape":!1,direction:"rtl",size:"560px","append-to-body":!0},on:{close:e.drawerClose}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"main-box"},[t("div",{staticClass:"search-part"},[t("el-input",{staticClass:"search-input",attrs:{placeholder:e.$t("edm5.v256"),clearable:""},on:{clear:()=>{e.searchForm.currentPage=1,e.init()}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(()=>{e.searchForm.currentPage=1,e.init()}).apply(null,arguments)}},model:{value:e.searchForm.content,callback:function(t){e.$set(e.searchForm,"content",t)},expression:"searchForm.content"}},[t("i",{staticClass:"dss-iconfont icon-search2",attrs:{slot:"suffix"},on:{click:()=>{e.searchForm.currentPage=1,e.init()}},slot:"suffix"})]),t("el-button",{staticClass:"add-sign",class:{"add-sign-en":"en"===e.language},on:{click:function(t){e.isShowSet=!0}}},[t("div",{staticClass:"warp"},[t("i",{staticClass:"dss-iconfont icon-add2"}),t("span",{staticClass:"text"},[e._v(e._s(e.$t("edm5.v257")))])])])],1),t("div",{staticClass:"content-part"},e._l(e.tableData,(function(n,i){return t("div",{key:n.id,staticClass:"part-item"},[t("div",{staticClass:"item-top"},[t("span",{staticClass:"left",domProps:{innerHTML:e._s(n.content)}}),t("span",{staticClass:"right",on:{click:function(t){return e.showSetSign(n)}}},[e._v(" "+e._s(e.$t("edm5.v258"))+" "),t("i",{staticClass:"dss-iconfont icon-arrow"})])]),t("div",{staticClass:"item-bottom"},[t("span",{staticClass:"left"},[e._v(e._s(e.$t("edm5.v259"))+e._s(n.gmtModify))]),t("span",{staticClass:"right"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.del(n.id)}}},[e._v(e._s(e.$t("edm5.v260")))]),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.setMailSign(n.content)}}},[e._v(e._s(e.$t("edm5.v261")))])],1)])])})),0)]),t("div",{staticClass:"pagination-part"},[t("el-pagination",{attrs:{"current-page":e.searchForm.currentPage,total:e.tableTotal,"page-size":e.searchForm.pageSize,"pager-count":5,small:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":e.changePage}})],1),t("el-drawer",{attrs:{visible:e.isShowSet,"with-header":!1,"wrapper-closable":!1,"append-to-body":"",size:"780px"},on:{"update:visible":function(t){e.isShowSet=t}}},[e.isShowSet?t("set-sign",{attrs:{id:e.setId,content:e.detailContent},on:{init:function(t){e.searchForm.currentPage=1,e.init()},close:function(t){e.setId=0,e.isShowSet=!1}}}):e._e()],1)],1)},wPe=[];async function _Pe(e){let t=await Ta("/edm/sign/selSigns",e);return t}async function CPe(e){let t=await Pa("/edm/sign/addSign",e);return t}async function xPe(e){let t=await $a("/edm/sign/editSign",e);return t}async function SPe(e){let t=await Oa(`/edm/sign/delSign/${e.id}`);return t}var kPe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"drawer"},[t("div",{staticClass:"drawer-head"},[t("h3",[e._v(e._s(e.id?`${e.$i18n.t("signature.edite_sign")}`:`${e.$i18n.t("signature.create_sign")}`))]),t("button",{staticClass:"close-btn",on:{click:function(t){return e.close()}}},[t("i",{staticClass:"dss-iconfont icon-close"})])]),t("div",{staticClass:"drawer-body hidden-scrollbar"},[t("div",{staticClass:"form-editor mb24"},[t("span",[e._v(e._s(e.$i18n.t("writeMail.signature")))]),t("div",{staticClass:"form-editor-wrap"},[t("editor",{ref:"signContent",attrs:{height:400,theme:"light"}})],1)])]),t("div",{staticClass:"drawer-foot"},[t("button",{staticClass:"drawer-btn drawer-btn-linear mr24",on:{click:function(t){return e.close()}}},[e._v(" "+e._s(e.$i18n.t("common.cancle"))+" ")]),t("button",{staticClass:"drawer-btn drawer-btn-face",attrs:{disabled:e.isSubmit},on:{click:e.submit}},[e.isSubmit?t("i",{staticClass:"el-icon-loading"}):e._e(),e._v(" "+e._s(e.$i18n.t("common.confirm"))+" ")])])])},EPe=[],DPe={components:{Editor:cOe},props:{id:{default:0,type:Number},content:{type:String,default:""}},data(){return{isSubmit:!1}},created(){this.id&&this.init()},methods:{init(){setTimeout((()=>{this.$refs.signContent.setContent(this.content)}),100)},submit(){if(this.$refs.signContent.isEmpty())return void this.$message({type:"warning",message:`${this.$i18n.t("signature.sign_not_empty")}`});const e={content:this.$refs.signContent.getContent()};this.isSubmit=!0,this.id?(e.id=this.id,xPe(e).then((e=>{0==e.code?(this.isSubmit=!1,this.$emit("init"),this.close(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`})):this.$message.error(e.message)}))):CPe(e).then((e=>{0==e.code?(this.isSubmit=!1,this.$emit("init"),this.close(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`})):this.$message.error(e.message)}))},close(){this.$emit("close")}}},APe=DPe,TPe=or(APe,kPe,EPe,!1,null,"b369729e",null),OPe=TPe.exports,IPe={components:{SetSign:OPe},props:{visible:{type:Boolean,default:!1}},data(){return{searchForm:{content:"",currentPage:1,pageSize:5},tableData:[],tableTotal:0,isShowSet:!1,setId:0,detailContent:"",loading:!1,language:Wi.get("language")||"zh"}},created(){this.init()},methods:{drawerClose(){this.$emit("update:visible",!1),this.$emit("closed")},init(){this.loading=!0,_Pe(this.searchForm).then((e=>{this.loading=!1,0==e.code?(this.tableData=e.data.rows,this.tableTotal=e.data.total):this.$message.error(e.message)}))},changePage(e){this.searchForm.currentPage=e,this.init()},del(e){this.$confirm(`${this.$i18n.t("signature.confirm_del")}`,"",{confirmButtonClass:"confirm_del"}).then((()=>{SPe({id:e}).then((e=>{0==e.code?(this.init(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`,duration:1500})):this.$message.error(e.message)}))})).catch((()=>{}))},setMailSign(e){this.$emit("setMailSign",e)},showSetSign(e){this.setId=e.id,this.detailContent=e.content,this.isShowSet=!0}}},PPe=IPe,$Pe=or(PPe,bPe,wPe,!1,null,"104128f9",null),FPe=$Pe.exports,BPe=function(){var e=this,t=e._self._c;return t("el-drawer",{staticClass:"ai-side-template",attrs:{title:e.$t("edm5.v245"),"custom-class":"ai-side-template-drawer",visible:e.visible,"close-on-press-escape":!1,direction:"rtl",size:"800px","append-to-body":!0},on:{close:e.drawerClose}},[t("div",{staticClass:"title-tips",class:{"title-tips-en":"en"===e.language}},[e._v(e._s(e.$t("edm5.v246")))]),t("TemplateList",{attrs:{userId:e.userId},on:{setMailTemplate:e.setMailTemplate}})],1)},MPe=[],NPe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap"},[t("div",{staticClass:"inbox-search-wrap"},[t("el-row",{attrs:{gutter:12}},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"col-item col-select-input-item"},[t("el-select",{staticClass:"template_select",attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},on:{change:function(t){e.searchForm.scene="",e.contentInput=""}},slot:"prepend",model:{value:e.contentSelect,callback:function(t){e.contentSelect=t},expression:"contentSelect"}},[t("el-option",{attrs:{label:"模版名称",value:"1"}}),t("el-option",{attrs:{label:"应用场景",value:"2"}})],1),1==e.searchForm.type&&2==e.contentSelect?t("div",{staticClass:"temp_right"},[t("el-select",{attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},slot:"prepend",model:{value:e.searchForm.scene,callback:function(t){e.$set(e.searchForm,"scene",t)},expression:"searchForm.scene"}},e._l(e.templateSystemScene,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1):t("div",{staticClass:"temp_right"},[t("el-input",{staticClass:"col-input-select",attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.contentInput,callback:function(t){e.contentInput=t},expression:"contentInput"}})],1)],1)]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"col-item col-select-input-item"},[t("el-input",{staticClass:"col-input-select",attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.mailTitleInput,callback:function(t){e.mailTitleInput=t},expression:"mailTitleInput"}},[t("el-select",{attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},on:{change:function(t){e.mailTitleInput="",e.searchForm.content="",e.searchForm.mailSubject=""}},slot:"prepend",model:{value:e.mailTitleSelect,callback:function(t){e.mailTitleSelect=t},expression:"mailTitleSelect"}},[t("el-option",{attrs:{label:e.$t("edm2.mailEn6"),value:"1"}}),t("el-option",{attrs:{label:e.$t("edm2.mailEn7"),value:"2"}})],1)],1)],1)]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v("模版语言")]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:"",filterable:""},model:{value:e.searchForm.modelLanguage,callback:function(t){e.$set(e.searchForm,"modelLanguage",t)},expression:"searchForm.modelLanguage"}},e._l(e.language,(function(e){return t("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1)])],1),t("el-row",{staticStyle:{"margin-top":"8px"},attrs:{gutter:12}},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v("模板类型")]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},on:{change:e.modelTypeChange},model:{value:e.searchForm.type,callback:function(t){e.$set(e.searchForm,"type",t)},expression:"searchForm.type"}},[t("el-option",{key:1,attrs:{value:1,label:"系统模版"}}),t("el-option",{key:2,attrs:{value:2,label:"自定义模版"}})],1)],1)]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v("共享状态")]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.isShared,callback:function(t){e.$set(e.searchForm,"isShared",t)},expression:"searchForm.isShared"}},[t("el-option",{key:1,attrs:{value:!0,label:"公开"}}),t("el-option",{key:2,attrs:{value:!1,label:"私有"}})],1)],1)]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v("创建人")]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:"",filterable:""},model:{value:e.searchForm.userId,callback:function(t){e.$set(e.searchForm,"userId",t)},expression:"searchForm.userId"}},e._l(e.accountList,(function(e){return t("el-option",{key:e.userId,attrs:{label:e.userName,value:e.userId}})})),1)],1)])],1),t("el-row",{staticStyle:{"margin-top":"8px"},attrs:{gutter:20}},[t("el-col",{attrs:{span:24}},[t("div",{staticClass:"btns_box"},[t("div",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchForm.currentPage=1,e.getCardList()}}},[e._v(" "+e._s(e.$i18n.t("searchButton.search"))+" ")]),t("el-button",{on:{click:e.resetEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.reset"))+" ")])],1),t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{staticClass:"right_sort"},[t("el-dropdown",{attrs:{placement:"bottom"}},[t("div",{staticClass:"sort_btn"},[t("i",{staticClass:"dss-iconfont"},[e._v("")]),e._v(" "+e._s(e.sortConfig.find((t=>t.value==e.searchForm.searchSort)).label)+" ")]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.sortConfig,(function(n,i){return t("el-dropdown-item",{key:i,staticStyle:{"white-space":"nowrap"},attrs:{command:n.value},nativeOn:{click:function(t){return e.clickDropdownItem(n)}}},[e._v(e._s(n.label))])})),1)],1)],1)])])])],1)],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"temp_box"},[e.templateList.length?t("div",{staticClass:"temp_list"},e._l(e.templateList,(function(n){return t("div",{key:n.id,staticClass:"temp_item"},[t("div",{staticClass:"temp_content"},[t("div",{staticClass:"temp_top"},[t("div",{staticClass:"temp_title"},[t("div",{staticClass:"title_text"},[e._v(" "+e._s(n.templatesTitle)+" ")]),t("div",{staticClass:"more_icon",on:{click:function(t){return e.toDetail(n)}}},[e._v(" 详情"),t("i",{staticClass:"el-icon-arrow-right"})])]),t("div",{staticClass:"num_box"},[t("div",{staticClass:"lang_box"},[e._v(" 语言:"+e._s(e.getLangLabel(n.modelLanguage))+" ")]),n.attachmentNum?t("div",{staticClass:"lang_box"},[e._v(" 附件:"+e._s(n.attachmentNum)+"个 ")]):e._e(),n.productCardNum?t("div",{staticClass:"lang_box"},[e._v(" 商品卡:"+e._s(n.productCardNum)+"个 ")]):e._e()])]),t("div",{staticClass:"temp_middle"},[t("div",{staticClass:"nu_box"},[t("div",{staticClass:"nu_title"},[e._v("送达率")]),t("div",{staticClass:"nu_number"},[e._v(" "+e._s(null==n.deliveryRate?"-":n.deliveryRate+"%")+" ")])]),t("div",{staticClass:"nu_box"},[t("div",{staticClass:"nu_title"},[e._v("打开率")]),t("div",{staticClass:"nu_number"},[e._v(" "+e._s(null==n.openRate?"-":n.openRate+"%")+" ")])]),t("div",{staticClass:"nu_box"},[t("div",{staticClass:"nu_title"},[e._v("回复率")]),t("div",{staticClass:"nu_number"},[e._v(" "+e._s(null==n.replyRate?"-":n.replyRate+"%")+" ")])]),t("div",{staticClass:"nu_box"},[t("div",{staticClass:"nu_title"},[e._v("累计发送数")]),t("div",{staticClass:"nu_number"},[e._v(" "+e._s(null==n.totalSentNumber?"-":n.totalSentNumber)+" ")])])]),t("div",{staticClass:"tem_bottom"},[t("div",{staticClass:"tem_desc"},[e._v("邮件标题:"+e._s(n.mailSubject))]),t("div",{staticClass:"tem_desc"},[e._v("应用场景:"+e._s(n.scene))]),t("div",{staticClass:"desc_btns"},[t("div",{staticClass:"desc_text"},[t("div",{staticClass:"tem_desc"},[e._v("创建人:"+e._s(n.creator))]),t("div",{staticClass:"tem_desc"},[e._v("更新时间:"+e._s(n.gmtModify))])]),t("div",{staticClass:"apply_btn"},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.setMailTemplate(n)}}},[e._v("应用")])],1)])])])])})),0):t("Empty")],1),t("div",{staticClass:"page_box"},[t("el-pagination",{attrs:{"current-page":e.searchForm.currentPage,"page-size":e.searchForm.pageSize,layout:"total,prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentPage":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:current-page":function(t){return e.$set(e.searchForm,"currentPage",t)}}})],1)])},RPe=[];const jPe=[{value:"7",label:"汉语",enLabel:"Chinese"},{value:"1",label:"英语",enLabel:"English"},{value:"3",label:"法语",enLabel:"French"},{value:"8",label:"德语",enLabel:"German"},{value:"6",label:"日语",enLabel:"Japanese"},{value:"9",label:"韩语",enLabel:"Korean"},{value:"10",label:"越南语",enLabel:"Vietnamese"},{value:"11",label:"泰国语",enLabel:"Thai"},{value:"12",label:"菲律宾语",enLabel:"Filipino"},{value:"13",label:"印度尼西亚语",enLabel:"Indonesian"},{value:"14",label:"俄罗斯语",enLabel:"Russian"},{value:"4",label:"西班牙语",enLabel:"Spanish"},{value:"15",label:"意大利语",enLabel:"Italian"}],LPe=[{label:"按创建时间倒序",value:0},{label:"按更新时间倒序",value:1},{label:"按送达率倒序",value:2},{label:"按打开率倒序",value:3},{label:"按回复率倒序",value:4},{label:"按累计发送数倒序",value:5}],zPe=[{value:"1",label:`${Mc.t("template.invite_cooperation")}`},{value:"2",label:`${Mc.t("template.price_negotiation")}`},{value:"3",label:`${Mc.t("template.contract_template")}`},{value:"4",label:`${Mc.t("template.video_production")}`},{value:"5",label:`${Mc.t("template.expense_settlement")}`}];function VPe(e){let t={templatesTitle:"",scene:"",mailSubject:"",content:"",type:null,modelLanguage:"",isShared:"",userId:"",searchSort:1,currentPage:1,pageSize:10};return e&&(t=Object.assign(t,e)),t}var HPe={components:{Empty:sd},props:{userId:{type:[Number,String],default:""}},data(){return{contentSelect:"1",contentInput:"",mailTitleSelect:"1",mailTitleInput:"",searchForm:VPe(),language:jPe,sortConfig:LPe,accountList:[],templateList:[],templateSystemScene:zPe,total:0,loading:!1}},mounted(){this.getAccountList(),this.getCardList()},methods:{getLangLabel(e){const t=this.language.find((t=>t.value==e));if(t)return t.label},setMailTemplate(e){this.$emit("setMailTemplate",e)},toDetail(e){const t=this.$router.resolve({path:"/emailTempDetail",query:{type:"edit",id:e.id}});window.open(t.href,"_blank")},getCardList(){"1"==this.contentSelect?this.searchForm.templatesTitle=this.contentInput:"2"==this.contentSelect&&1!=this.searchForm.type&&(this.searchForm.scene=this.contentInput),"1"==this.mailTitleSelect?this.searchForm.mailSubject=this.mailTitleInput:"2"==this.mailTitleSelect&&(this.searchForm.content=this.mailTitleInput),this.loading=!0,xs(this.searchForm).then((e=>{"0"==e.code?(this.templateList=e.data.rows,this.total=e.data.total,this.loading=!1):(this.loading=!1,this.$message.error(e.message))}))},modelTypeChange(e){this.searchForm.scene="",this.contentInput=""},resetEvt(){this.searchForm=VPe(),this.contentSelect="1",this.contentInput="",this.mailTitleSelect="1",this.mailTitleInput="",this.getCardList()},getAccountList(){Cs().then((e=>{"0"==e.code?this.accountList=e.data:this.$message.error(e.message)}))},clickDropdownItem(e){this.searchForm.currentPage=1,this.searchForm.searchSort=e.value,this.getCardList()},handleSizeChange(e){this.searchForm.currentPage=1,this.searchForm.pageSize=e,this.getCardList()},handleCurrentChange(e){this.searchForm.currentPage=e,this.getCardList()}}},UPe=HPe,WPe=or(UPe,NPe,RPe,!1,null,"0854720c",null),qPe=WPe.exports,YPe={components:{TemplateList:qPe},props:{visible:{type:Boolean,default:!1},userId:{type:[Number,String],default:""}},data(){return{loading:!1,language:Wi.get("language")}},methods:{drawerClose(){this.$emit("update:visible",!1),this.$emit("closed")},setMailTemplate(e){this.$emit("setMailTemplate",e)}}},GPe=YPe,KPe=or(GPe,BPe,MPe,!1,null,"2b36ea26",null),XPe=KPe.exports,ZPe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ai-mail"},[e.visible?t("div",{staticClass:"ai-mail-base",class:{"ai-mail-base-en":"en"===e.language}},[t("i",{staticClass:"dss-iconfont icon-close",on:{click:e.baseClose}}),t("div",{staticClass:"title"},[t("img",{attrs:{src:i(7346),alt:""}}),t("span",{staticClass:"txt",class:{"txt-en":"en"===e.language}},[e._v(e._s(e.$t("edm5.v82")))])]),t("div",{staticClass:"sub-title"},[e._v(" "+e._s(e.$t("edm5.v83"))+" ")]),t("div",{staticClass:"step-content"},[t("div",{staticClass:"step-item step-one",on:{click:function(t){e.isShowProductDrawer=!0}}},[t("div",{staticClass:"left"},[t("span",{staticClass:"label-step"},[e._v(e._s(e.$t("edm5.v84")))]),t("span",{staticClass:"label-name"},[e._v(e._s(e.$t("edm5.v85")))])]),t("div",{staticClass:"right"},[e.aiProducts.length>0?t("span",{staticClass:"isComplete"},[e._v(e._s(e.$t("edm5.v86")))]):e._e(),t("i",{staticClass:"dss-iconfont icon-arrow"})])]),t("div",{staticClass:"step-item step-two",on:{click:()=>{e.isShowCoopDrawer=!0,e.getLanguages()}}},[t("div",{staticClass:"left"},[t("span",{staticClass:"label-step"},[e._v(e._s(e.$t("edm5.v88")))]),t("span",{staticClass:"label-name"},[e._v(e._s(e.$t("edm5.v89")))])]),t("div",{staticClass:"right"},[e.isCoopComplete?t("span",{staticClass:"isComplete"},[e._v(e._s(e.$t("edm5.v86")))]):e._e(),t("i",{staticClass:"dss-iconfont icon-arrow"})])])]),t("div",{staticClass:"make"},[t("el-button",{staticClass:"make-btn",attrs:{type:"primary"},on:{click:e.makeAiEmails}},[e._v(e._s(e.$t("edm5.v90")))])],1),t("div",{staticClass:"point"},[t("span",{staticClass:"point-txt"},[e._v(e._s(e.$t("edm5.v17"))+e._s(e.aiPoint))]),t("Tooltip",{attrs:{content:e.$t("edm5.v18"),isShowRule:!0}})],1)]):e._e(),e.isShowProductDrawer?t("product-new-drawer",{attrs:{from:"ai",isShowProductDrawer:e.isShowProductDrawer,defaultSelectedProduct:e.aiProducts},on:{addAiProduct:e.addAiProduct,closeProductDrawer:e.closeProductDrawer}}):e._e(),t("el-drawer",{staticClass:"ai-coop",attrs:{title:e.$t("edm5.v89"),"custom-class":"ai-coop-drawer",visible:e.isShowCoopDrawer,"close-on-press-escape":!1,direction:"rtl",size:"560px","append-to-body":!0},on:{close:e.coopDrawerClose}},[t("div",{staticClass:"coop-subTitle"},[e._v(e._s(e.$t("edm5.v92")))]),t("div",{staticClass:"coop-form"},[t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[t("span",{staticClass:"required"},[e._v("*")]),e._v(e._s(e.$t("edm5.v93"))+" ")]),t("div",{staticClass:"form-item-value tag-value"},[t("el-input",{attrs:{type:"textarea",rows:4,resize:"none",placeholder:"Best regards\n[Your Full Name]\n[Your Title/Position]\n[Your Company/Organization]",maxlength:"100","show-word-limit":""},model:{value:e.coopForm.signature,callback:function(t){e.$set(e.coopForm,"signature",t)},expression:"coopForm.signature"}})],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v94")))]),t("div",{staticClass:"form-item-value"},[t("el-input",{attrs:{type:"textarea",rows:3,resize:"none",placeholder:e.$t("edm5.v95"),maxlength:"100","show-word-limit":""},model:{value:e.coopForm.brandInformation,callback:function(t){e.$set(e.coopForm,"brandInformation",t)},expression:"coopForm.brandInformation"}})],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v96")))]),t("div",{staticClass:"form-item-value"},[t("el-select",{attrs:{size:"medium",placeholder:e.$t("edm5.v98")},model:{value:e.coopForm.isFreeShipping,callback:function(t){e.$set(e.coopForm,"isFreeShipping",t)},expression:"coopForm.isFreeShipping"}},[t("el-option",{attrs:{label:e.$t("edm5.v49"),value:!1}}),t("el-option",{attrs:{label:e.$t("edm5.v48"),value:!0}})],1)],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v97")))]),t("div",{staticClass:"form-item-value radio-value"},[t("el-radio",{attrs:{label:!0},model:{value:e.coopForm.isPaid,callback:function(t){e.$set(e.coopForm,"isPaid",t)},expression:"coopForm.isPaid"}},[e._v(e._s(e.$t("edm5.v48")))]),t("el-radio",{attrs:{label:!1},model:{value:e.coopForm.isPaid,callback:function(t){e.$set(e.coopForm,"isPaid",t)},expression:"coopForm.isPaid"}},[e._v(e._s(e.$t("edm5.v49")))])],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v99")))]),t("div",{staticClass:"form-item-value radio-value"},[t("el-radio",{attrs:{label:!0},model:{value:e.coopForm.hasOrderCommission,callback:function(t){e.$set(e.coopForm,"hasOrderCommission",t)},expression:"coopForm.hasOrderCommission"}},[e._v(e._s(e.$t("edm5.v48")))]),t("el-radio",{attrs:{label:!1},model:{value:e.coopForm.hasOrderCommission,callback:function(t){e.$set(e.coopForm,"hasOrderCommission",t)},expression:"coopForm.hasOrderCommission"}},[e._v(e._s(e.$t("edm5.v49")))])],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v100")))]),t("div",{staticClass:"form-item-value style-value"},[t("el-autocomplete",{attrs:{"fetch-suggestions":e.querySearch,placeholder:e.$t("edm5.v95")},model:{value:e.coopForm.videoStyle,callback:function(t){e.$set(e.coopForm,"videoStyle",t)},expression:"coopForm.videoStyle"}})],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v101")))]),t("div",{staticClass:"form-item-value number-value"},[t("el-input",{attrs:{placeholder:e.$t("edm5.v95"),type:"number"},model:{value:e.coopForm.videoDuration,callback:function(t){e.$set(e.coopForm,"videoDuration",t)},expression:"coopForm.videoDuration"}},[t("template",{slot:"append"},[e._v(e._s(e.$t("edm5.v102")))])],2)],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v("hashtag")]),t("div",{staticClass:"form-item-value tag-value"},[t("el-select",{attrs:{"popper-class":"coop-tag-select",multiple:"",filterable:"","allow-create":"","default-first-option":"",placeholder:e.$t("edm5.v103")},model:{value:e.coopForm.hashtags,callback:function(t){e.$set(e.coopForm,"hashtags",t)},expression:"coopForm.hashtags"}},[t("el-option",{attrs:{label:"test",value:"test"}})],1)],1)]),t("div",{staticClass:"form-item"},[t("div",{staticClass:"form-item-label"},[e._v(e._s(e.$t("edm5.v104")))]),t("div",{staticClass:"form-item-value"},[t("el-input",{attrs:{type:"textarea",rows:3,resize:"none",placeholder:e.$t("edm5.v95"),maxlength:"100","show-word-limit":""},model:{value:e.coopForm.otherRequirements,callback:function(t){e.$set(e.coopForm,"otherRequirements",t)},expression:"coopForm.otherRequirements"}})],1)])]),t("div",{staticClass:"coop-bottom"},[t("div",{staticClass:"bottom-left"},[t("span",{staticClass:"label"},[e._v(e._s(e.$t("edm5.v105")))]),t("span",{staticClass:"value",staticStyle:{"margin-right":"6px"}},[t("el-select",{attrs:{size:"small",placeholder:e.$t("edm5.v98")},model:{value:e.coopForm.language,callback:function(t){e.$set(e.coopForm,"language",t)},expression:"coopForm.language"}},e._l(e.languageList,(function(e,n){return t("el-option",{key:n,attrs:{label:e.label,value:e.value}})})),1)],1),t("Tooltip",{attrs:{content:e.$t("edm5.v106"),isShowRule:!1}})],1),t("div",{staticClass:"bottom-right"},[t("el-button",{on:{click:function(t){e.isShowCoopDrawer=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.confirmAddCoop}},[e._v("确认")])],1)])]),t("el-drawer",{staticClass:"ai-build",attrs:{title:e.$t("edm5.v82"),"custom-class":"ai-build-drawer",visible:e.isShowBuildDrawer,"close-on-press-escape":!1,wrapperClosable:!1,direction:"rtl",size:"1000px","append-to-body":!0},on:{close:e.buildDrawerClose}},[t("div",{staticClass:"build-content"},[t("div",{staticClass:"build-rule-part"},[e.aiProducts.length>0?t("div",{staticClass:"product-information"},[t("div",{staticClass:"info-title"},[t("div",{staticClass:"title-left"},[e._v(e._s(e.$t("edm5.v107")))]),t("div",{staticClass:"title-right"},[t("div",{staticClass:"toggle-btn left",on:{click:function(t){return e.toggleProductCarousel("prev")}}},[t("i",{staticClass:"dss-iconfont icon-arrow"})]),t("div",{staticClass:"toggle-txt"},[t("span",{staticClass:"current"},[e._v(e._s(e.currentProductIndex+1))]),t("span",{staticClass:"total"},[e._v("/"+e._s(e.aiProducts.length))])]),t("div",{staticClass:"toggle-btn right",on:{click:function(t){return e.toggleProductCarousel("next")}}},[t("i",{staticClass:"dss-iconfont icon-arrow"})])])]),t("el-carousel",{ref:"productCarousel",staticClass:"product-carousel",attrs:{height:"160px",trigger:"click",autoplay:!1,"indicator-position":"none",arrow:"never"},on:{change:e.productCarouselChange}},e._l(e.aiProducts,(function(n){return t("el-carousel-item",{key:n.id},[t("div",{staticClass:"product-info"},[t("img",{staticClass:"left",attrs:{src:n.imageUrls[0],alt:""}}),t("div",{staticClass:"right"},[n.nameZh?t("div",{staticClass:"info-item"},[e._v(" "+e._s(e.$t("edm5.v108"))+e._s(n.nameZh||"-")+" ")]):e._e(),n.nameEn?t("div",{staticClass:"info-item"},[e._v(" "+e._s(e.$t("edm5.v109"))+e._s(n.nameEn||"-")+" ")]):e._e(),n.platformName?t("div",{staticClass:"info-item"},[e._v(" "+e._s(e.$t("edm5.v110"))+e._s(n.platformName||"-")+" ")]):e._e(),n.productLink?t("div",{staticClass:"info-item"},[e._v(" "+e._s(e.$t("edm5.v111"))+e._s(n.productLink||"-")+" ")]):e._e(),n.countryName?t("div",{staticClass:"info-item"},[e._v(" "+e._s(e.$t("edm5.v112"))+e._s(n.countryName||"-")+" ")]):e._e(),n.remark?t("div",{staticClass:"info-item"},[e._v(" "+e._s(e.$t("edm5.v113"))+e._s(n.remark||"-")+" ")]):e._e()])])])})),1)],1):e._e(),t("div",{staticClass:"coop-information",class:{"coop-larger":0===e.aiProducts.length}},[t("div",{staticClass:"info-title"},[t("div",{staticClass:"title-left"},[e._v(e._s(e.$t("edm5.v114")))])]),t("div",{staticClass:"coop-content"},[t("div",{staticClass:"coop-item"},[t("el-tooltip",{staticClass:"item",attrs:{placement:"top","popper-class":"wt-tooltip"}},[t("div",{staticClass:"ai-coop-tooltip",attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.coopForm.brandInformation||"-")+" ")]),t("span",{staticClass:"text-overflow"},[e._v(" "+e._s(e.$t("edm5.v94"))+":"+e._s(e.coopForm.brandInformation||"-"))])])],1),t("div",{staticClass:"coop-item"},[e._v(" "+e._s(e.$t("edm5.v116"))+e._s(e.coopMethods)+" ")]),t("div",{staticClass:"coop-item"},[e._v(" "+e._s(e.$t("edm5.v100"))+":"+e._s(e.coopForm.videoStyle||"-")+" ")]),t("div",{staticClass:"coop-item"},[e._v(" "+e._s(e.$t("edm5.v101"))+":"+e._s(e.coopForm.videoDuration)),e.coopForm.videoDuration?t("span",[e._v(e._s(e.$t("edm5.v102")))]):e._e()]),t("div",{staticClass:"coop-item"},[t("el-tooltip",{staticClass:"item",attrs:{placement:"top","popper-class":"wt-tooltip"}},[t("div",{staticClass:"ai-coop-tooltip",attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.hashtagsStr||"-")+" ")]),t("span",{staticClass:"text-overflow"},[e._v(" hashtags:"+e._s(e.hashtagsStr))])])],1),t("div",{staticClass:"coop-item"},[t("el-tooltip",{staticClass:"item",attrs:{placement:"top","popper-class":"wt-tooltip"}},[t("div",{staticClass:"ai-coop-tooltip",attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.coopForm.otherRequirements||"-")+" ")]),t("span",{staticClass:"text-overflow"},[e._v(" "+e._s(e.$t("edm5.v119"))+e._s(e.coopForm.otherRequirements||"-"))])])],1)])])]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isBuilding,expression:"isBuilding"}],staticClass:"build-content-part",attrs:{"element-loading-spinner":"el-icon-loading1","element-loading-background":"rgba(255, 255, 255, 0.7)","element-loading-customClass":"ai-email-loading"}},[e.isBuilding?t("el-progress",{staticClass:"ai-progress",attrs:{"text-inside":!0,"stroke-width":30,percentage:e.progressNum}}):e._e(),e.isBuilding?t("div",{staticClass:"loading-txt"},[t("span",{staticClass:"txt"},[e._v(e._s(e.$t("edm5.v120")))]),t("LoadingDots")],1):e._e(),t("div",{staticClass:"email-box"},[t("div",{staticClass:"email-tab"},e._l(e.mailList,(function(n,i){return t("div",{key:n.id,class:{tab:!0,"active-tab":n.active},on:{click:function(t){return e.toggleEmailTag(n.id)}}},[t("span",{staticClass:"tab-txt"},[e._v(e._s(e.$t("edm5.v59"))+e._s(i+1))]),t("i",{staticClass:"dss-iconfont icon-close",class:{"not-allowed":e.isBuilding},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.deleteEmail(n.id)}}})])})),0),e.mailList.length<5?t("div",{staticClass:"email-add",class:{"not-allowed":e.isBuilding},on:{click:e.toAddEmail}},[t("i",{staticClass:"dss-iconfont icon-add2"}),t("span",[e._v(e._s(e.$t("edm5.v60")))])]):e._e()]),e.mailList.length>0?t("div",{staticClass:"email-content"},[e.currentActiveMail.subject?t("div",{staticClass:"subject"},[e._v(" "+e._s(e.$t("edm5.v121"))+e._s(e.currentActiveMail.subject)+" ")]):e._e(),e.currentActiveMail.content?t("div",{staticClass:"content",staticStyle:{"white-space":"pre-wrap"},domProps:{innerHTML:e._s(e.$t("edm5.v122")+e.currentActiveMail.content)}}):e._e()]):t("Empty",{attrs:{currentStyle:{"padding-top":"90px"},tips:e.$t("edm5.v123")}})],1)]),e.mailList.length>0?t("div",{staticClass:"build-footer"},[t("div",{staticClass:"ai-bottom"},[e.isBatchFinished?t("div",{staticClass:"like-item first",class:{notAllow:e.isBuilding,active:1===e.currentActiveMail.feedLike},on:{click:function(t){return e.evaluateAi(1,e.currentActiveMail.historyId)}}},[t("i",{staticClass:"dss-iconfont icon-like-dz"}),t("span",{staticStyle:{"font-size":"14px","margin-left":"8px"}},[e._v(e._s(e.$t("edm5.v32")))])]):e._e(),e.isBatchFinished?t("div",{staticClass:"like-item",class:{notAllow:e.isBuilding,active:2===e.currentActiveMail.feedLike},on:{click:function(t){return e.evaluateAi(2,e.currentActiveMail.historyId)}}},[t("i",{staticClass:"dss-iconfont icon-dianzan_kuaibeifen"}),t("span",{staticStyle:{"font-size":"14px","margin-left":"8px"}},[e._v(e._s(e.$t("edm5.v32")))])]):e._e(),e.isBatchFinished?t("div",{staticClass:"redo",on:{click:e.rebuildSimpleEmail}},[e.isBuilding?t("span",{staticClass:"stop-icon",staticStyle:{width:"12px",height:"12px","border-radius":"4px",background:"#f85277","margin-right":"7px"}}):t("i",{staticClass:"dss-iconfont icon-a-zhongxinshengchengbeifen2"}),e.isBuilding?t("span",{staticStyle:{color:"#f85277"}},[e._v(e._s(e.$t("edm5.v35")))]):t("span",[e._v(e._s(e.$t("edm5.v34")))])]):e._e(),t("div",{staticClass:"point",style:{"margin-left":e.isBatchFinished?"24px":"0px"}},[t("span",{staticClass:"txt"},[e._v(e._s(e.$t("edm5.v17"))+e._s(e.aiPoint))]),t("Tooltip",{attrs:{content:e.$t("edm5.v18"),isShowRule:!0}})],1)]),t("div",{staticClass:"footer-right"},[t("el-button",{staticClass:"reply-btn cancel-btn",attrs:{size:"small"},on:{click:e.buildDrawerClose}},[e._v(e._s(e.$t("edm5.v19")))]),t("el-button",{staticClass:"reply-btn make-btn",attrs:{size:"small",type:"primary",disabled:e.isBuilding},on:{click:e.toApplyEmails}},[e._v(e._s(e.$t("edm5.v124")))])],1)]):e._e()])],1)},JPe=[];function QPe(e){return Pa("/edm/ai/aiWriteEmail/batchGenerate",e)}function e$e(e){return Ta(`/edm/ai/aiWriteEmail/generate/${e}`)}function t$e(e,t){return Ta(`/edm/ai/aiWriteEmail/regenerate/${e}/sceneType/${t}`)}function n$e(e){return Ta(`/edm/ai/aiWriteEmail/getByRequest/${e}`)}function i$e(e,t){return Ta(`/edm/ai/aiWriteEmail/getByResult/${e}/sceneType/${t}`)}function r$e(e){return Pa("/edm/ai/aiWriteEmail/optimize",e)}function o$e(e,t){return Ta(`/edm/ai/aiOptimizeContent/getByRequest/${e}/sceneType/${t}`)}var a$e=function(){var e=this;e._self._c;return e._m(0)},s$e=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"loading-dots"},[t("span",{staticClass:"dot"}),t("span",{staticClass:"dot"}),t("span",{staticClass:"dot"})])}],l$e={name:"LoadingDots"},c$e=l$e,u$e=or(c$e,a$e,s$e,!1,null,"9cfc5dac",null),d$e=u$e.exports,h$e={components:{Tooltip:Xc,Empty:sd,LoadingDots:d$e,productNewDrawer:SIe},props:{visible:{type:Boolean,default:!1},aiPoint:{type:Number,default:0}},data(){return{isShowProductDrawer:!1,isShowCoopDrawer:!1,isShowBuildDrawer:!1,aiProducts:[],coopForm:{brandInformation:"",isFreeShipping:!1,isPaid:!1,hasOrderCommission:!1,videoStyle:"",videoDuration:"",hashtags:[],signature:"",otherRequirements:"",language:"英语"},isCoopComplete:!1,languageList:[],language:Wi.get("language"),currentProductIndex:0,mailList:[{id:"1xx",subject:"",content:"",historyId:"",active:!0,feedLike:0},{id:"2xx",subject:"",content:"",historyId:"",active:!1,feedLike:0},{id:"3xx",subject:"",content:"",historyId:"",active:!1,feedLike:0}],isBatchFinished:!1,isBuilding:!1,aiEmailCounter:0,AiMailsTimer:null,idInfo:{requestId:"",ruleId:""},progressNum:0}},computed:{coopMethods(){const e=this.coopForm.isFreeShipping?this.$t("edm5.v125"):this.$t("edm5.v126"),t=this.coopForm.isPaid?this.$t("edm5.v127"):this.$t("edm5.v128");return e+"&"+t},hashtagsStr(){return this.coopForm.hashtags.join(",")||"-"},currentActiveMail(){return this.mailList.find((e=>e.active))||{}}},beforeDestroy(){this.AiMailsTimer&&clearInterval(this.AiMailsTimer)},methods:{querySearch(e,t){var n=[{value:"场景植入",label:this.$t("edm5.v129")},{value:"反差对比",label:this.$t("edm5.v130")},{value:"体验分享",label:this.$t("edm5.v131")},{value:"直接展示",label:this.$t("edm5.v132")},{value:"开箱测评",label:this.$t("edm5.v133")}],i=e?n.filter(this.createFilter(e)):n;t(i)},createFilter(e){return t=>0===t.value.toLowerCase().indexOf(e.toLowerCase())},baseClose(){this.$emit("update:visible",!1)},closeProductDrawer(){this.isShowProductDrawer=!1},addAiProduct(e=[]){this.aiProducts=e,this.isShowProductDrawer=!1},coopDrawerClose(){this.isShowCoopDrawer=!1},async getLanguages(){try{const e=await fs();"0"===e.code&&(this.languageList=e.data?.map((e=>({label:e,value:e}))))}catch(rl){console.log(rl)}},confirmAddCoop(){if(""===this.coopForm.signature)return this.isCoopComplete=!1,this.$message.error(this.$t("edm5.v134"));this.isCoopComplete=!0,this.isShowCoopDrawer=!1},buildDrawerClose(){this.stopAiEmailsSetInterval(),this.isShowBuildDrawer=!1,this.currentProductIndex=0,this.mailList=this.$options.data().mailList,this.progressNum=0},productCarouselChange(e){this.currentProductIndex=e},toggleProductCarousel(e){const t=this.$refs.productCarousel;t&&t[e]()},toggleEmailTag(e){this.mailList=this.mailList.map((t=>({...t,active:e===t.id})))},deleteEmail(e){return!this.isBuilding&&(!(this.mailList.length<=0)&&void this.$confirm(this.$t("edm5.v78"),this.$t("edm5.v79"),{confirmButtonText:this.$t("edm5.v45"),cancelButtonText:"取消",type:"warning"}).then((()=>{this.mailList=this.mailList.filter((t=>t.id!==e)),this.mailList.every((e=>!e.active))&&this.mailList.length>0&&this.$set(this.mailList,0,{...this.mailList[0],active:!0})})).catch((()=>{})))},toAddEmail(){return!this.isBuilding&&(!(this.mailList.length>=5)&&(this.mailList=this.mailList.map((e=>({...e,active:!1}))),this.mailList.push({id:"add",subject:"",content:"",historyId:"",active:!0,feedLike:0}),void this.buildSingleAiEmail()))},async evaluateAi(e,t){try{const n=this.currentActiveMail.feedLike===e?0:e,i=await ss({historyId:t,isLike:n,aiScene:"generate"});if("0"===i.code){const e=this.mailList.findIndex((e=>e.active));e>-1&&this.$set(this.mailList,e,{...this.mailList[e],feedLike:n}),this.$message.success(this.$t("inboxDetail.tips5"))}}catch(rl){console.log(rl)}},makeAiEmails(){if(0===this.aiProducts.length&&!this.isCoopComplete)return this.$message.error(this.$t("edm5.v135"));this.isShowBuildDrawer=!0,this.$nextTick((()=>{this.buildAiEmails()}))},async buildAiEmails(){try{this.progressNum=0;const e={productIds:this.aiProducts.map((e=>e.id)),cooperationRequirement:this.coopForm};this.isBuilding=!0,this.isBatchFinished=!1;const t=await QPe(e);"0"===t.code?(this.idInfo=t.data,this.getAiEmails(!1)):(this.$message.error(t.message),this.isBuilding=!1,this.buildFailed(!1))}catch(rl){this.isBuilding=!1,this.buildFailed(!1),console.log(rl)}},async getAiEmails(e=!1){try{const t=await n$e(this.idInfo.requestId);"0"==t.code?t.data?.isComplete?(this.progressNum=100,e?t.data.aiWriteList&&t.data.aiWriteList.length>0&&this.$set(this.mailList,this.mailList.length-1,{...this.mailList.at(-1),...t.data.aiWriteList[0]}):(this.mailList=t.data.aiWriteList.map(((e,t)=>({active:0===t,feedLike:0,...e}))),this.isBatchFinished=!0),this.isBuilding=!1):(this.isBuilding=!0,this.createAiEmailsSetInterval(e)):(this.isBuilding=!1,this.$message.error(t.message),this.buildFailed(e))}catch(rl){this.buildFailed(e),console.log(rl)}},createAiEmailsSetInterval(e=!1){const t=e?30:15,n=e?40:30;this.stopAiEmailsSetInterval(),this.aiEmailCounter=0,this.AiMailsTimer=setInterval((async()=>{this.aiEmailCounter+=1,this.progressNum+=this.getRandomInt(t,n),this.progressNum>=99&&(this.progressNum=99);const i=await this.getAiEmailsProgress(e);i&&(this.$emit("refreshPoint"),this.isBuilding=!1,this.aiEmailCounter=0,this.progressNum=100,this.stopAiEmailsSetInterval(),e||(this.isBatchFinished=!0)),this.aiEmailCounter>=30&&(this.isBuilding=!1,this.aiEmailCounter=0,this.stopAiEmailsSetInterval(),this.$message.error(this.$t("inboxDetail.tips2")),this.buildFailed(e))}),2e3)},async getAiEmailsProgress(e){try{const t=await n$e(this.idInfo.requestId);return"0"==t.code?(t.data?.isComplete&&(e?t.data.aiWriteList&&t.data.aiWriteList.length>0&&this.$set(this.mailList,this.mailList.length-1,{...this.mailList.at(-1),...t.data.aiWriteList[0]}):this.mailList=t.data.aiWriteList.map(((e,t)=>({active:0===t,feedLike:0,...e})))),t.data?.isComplete):(this.$message.error(t.message),this.buildFailed(e),!0)}catch(rl){return this.buildFailed(e),console.log(rl),!0}},stopAiEmailsSetInterval(){this.AiMailsTimer&&(clearInterval(this.AiMailsTimer),this.AiMailsTimer=null)},buildFailed(e=!1){this.progressNum=0,e?(this.mailList.splice(-1,1),this.mailList=this.mailList.map(((e,t)=>{const n=t===this.mailList.length-1;return{...e,active:n}}))):this.mailList=[]},async buildSingleAiEmail(){try{this.progressNum=0,this.isBuilding=!0;const e=await e$e(this.idInfo.ruleId);"0"===e.code?(this.idInfo.requestId=e.data,this.getAiEmails(!0)):(this.buildFailed(!0),this.isBuilding=!1,this.$message.error(e.message))}catch(rl){this.buildFailed(!0),this.isBuilding=!1,console.log(rl)}},async rebuildSimpleEmail(){if(this.isBuilding)this.stopAiEmailsSetInterval(),this.progressNum=0,this.isBuilding=!1,"add"===this.currentActiveMail.id&&this.buildFailed(!0);else try{this.progressNum=0,this.isBuilding=!0;const e=await t$e(this.currentActiveMail.id,"generateEmail");"0"===e.code?this.getAiEmailByResult():(this.progressNum=0,this.isBuilding=!1,this.$message.error(e.message))}catch(rl){this.progressNum=0,this.isBuilding=!1,console.log(rl)}},async getAiEmailByResult(){try{const e=await i$e(this.currentActiveMail.id,"generateEmail");if("0"===e.code)if(e.data?.isComplete){const t=this.mailList.findIndex((e=>e.active));t>-1&&this.$set(this.mailList,t,{...this.mailList[t],...e.data.aiWrite,feedLike:0}),this.progressNum=100,this.isBuilding=!1}else this.isBuilding=!0,this.createRebuildSetInterval();else this.progressNum=0,this.isBuilding=!1,this.$message.error(e.message)}catch(rl){this.progressNum=0,this.isBuilding=!1,console.log(rl)}},createRebuildSetInterval(){this.stopAiEmailsSetInterval(),this.aiEmailCounter=0,this.AiMailsTimer=setInterval((async()=>{this.aiEmailCounter+=1,this.progressNum+=this.getRandomInt(30,40),this.progressNum>=99&&(this.progressNum=99);const e=await this.getRebuildsProgress();e&&(this.$emit("refreshPoint"),this.progressNum=100,this.isBuilding=!1,this.aiEmailCounter=0,this.stopAiEmailsSetInterval()),this.aiEmailCounter>=30&&(this.progressNum=0,this.isBuilding=!1,this.aiEmailCounter=0,this.stopAiEmailsSetInterval(),this.$message.error(this.$t("inboxDetail.tips2")))}),2e3)},async getRebuildsProgress(){try{const e=await i$e(this.currentActiveMail.id,"generateEmail");if("0"==e.code){if(e.data?.isComplete){const t=this.mailList.findIndex((e=>e.active));t>-1&&this.$set(this.mailList,t,{...this.mailList[t],...e.data.aiWrite,feedLike:0})}return e.data?.isComplete}return this.$message.error(e.message),!0}catch(rl){return console.log(rl),!0}},toApplyEmails(){if(0===this.mailList.length)return this.$message.error(this.$t("edm5.v136"));this.$emit("applyEmails",this.mailList)},getRandomInt(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e}}},p$e=h$e,f$e=or(p$e,ZPe,JPe,!1,null,"3efaed70",null),m$e=f$e.exports,g$e=function(){var e=this,t=e._self._c;return t("el-drawer",{staticClass:"ai-optimize",attrs:{title:e.currentMailMap.title,"custom-class":"ai-optimize-drawer",visible:e.visible,"close-on-press-escape":!1,wrapperClosable:!1,direction:"rtl",size:"1000px","append-to-body":!0},on:{close:e.drawerClose}},[t("div",{staticClass:"sub-title"},[t("img",{attrs:{src:i(7346),alt:""}}),t("span",{staticClass:"txt"},[e._v(" "+e._s(e.currentMailMap.subTitle))])]),"7"===e.type?t("div",{staticClass:"ai-select"},[t("div",{staticClass:"select-prepend"},[e._v(e._s(e.$t("edm5.v240")))]),t("el-select",{attrs:{placeholder:e.$t("edm5.v98")},model:{value:e.language,callback:function(t){e.language=t},expression:"language"}},e._l(e.languageList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-button",{attrs:{type:"primary"},on:{click:e.buildOptimize}},[e._v(e._s(e.$t("edm5.v241")))])],1):e._e(),"5"===e.type?t("div",{staticClass:"ai-select"},[t("div",{staticClass:"select-prepend"},[e._v(e._s(e.$t("edm5.v242")))]),t("el-select",{attrs:{placeholder:e.$t("edm5.v98")},model:{value:e.tone,callback:function(t){e.tone=t},expression:"tone"}},e._l(e.toneList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-button",{attrs:{type:"primary"},on:{click:e.buildOptimize}},[e._v(e._s(e.$t("edm5.v90")))])],1):e._e(),t("div",{staticClass:"ai-content"},[t("div",{staticClass:"content-left"},[t("div",{staticClass:"content-title"},[e._v(e._s(e.$t("edm5.v244")))]),t("div",{staticClass:"content-box",staticStyle:{"white-space":"pre-wrap"},domProps:{innerHTML:e._s("6"===e.type?e.imitationOriginContent:e.resultInfo.originContent)}})]),t("div",{staticClass:"content-right"},[t("div",{staticClass:"content-title"},[e._v(e._s(e.currentMailMap.resultTitle))]),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isBuilding,expression:"isBuilding"}],staticClass:"content-box",staticStyle:{"white-space":"pre-wrap"},attrs:{"element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0)","element-loading-customClass":"ai-optimize-loading"},domProps:{innerHTML:e._s("6"===e.type?e.imitationContent:e.resultInfo.resultContent)}})])]),t("div",{staticClass:"ai-footer"},[""!==e.requestId?t("div",{staticClass:"ai-bottom"},[t("div",{staticClass:"like-item first",class:{notAllow:e.isBuilding,active:1===e.resultInfo.feedLike},on:{click:function(t){return e.evaluateAi(1,e.resultInfo.historyId)}}},[t("i",{staticClass:"dss-iconfont icon-like-dz"}),t("span",{staticStyle:{"font-size":"14px","margin-left":"8px"}},[e._v(e._s(e.$t("edm5.v32")))])]),t("div",{staticClass:"like-item",class:{notAllow:e.isBuilding,active:2===e.resultInfo.feedLike},on:{click:function(t){return e.evaluateAi(2,e.resultInfo.historyId)}}},[t("i",{staticClass:"dss-iconfont icon-dianzan_kuaibeifen"}),t("span",{staticStyle:{"font-size":"14px","margin-left":"8px"}},[e._v(e._s(e.$t("edm5.v32")))])]),t("div",{staticClass:"redo",on:{click:e.rebuildEmail}},[e.isBuilding?t("span",{staticClass:"stop-icon",staticStyle:{width:"12px",height:"12px","border-radius":"4px",background:"#f85277","margin-right":"7px"}}):t("i",{staticClass:"dss-iconfont icon-a-zhongxinshengchengbeifen2"}),e.isBuilding?t("span",{staticStyle:{color:"#f85277"}},[e._v(e._s(e.$t("edm5.v35")))]):t("span",[e._v(e._s(e.$t("edm5.v34")))])]),t("div",{staticClass:"point"},[t("span",{staticClass:"txt"},[e._v(e._s(e.$t("edm5.v17"))+e._s(e.aiPoint))]),t("Tooltip",{attrs:{content:e.$t("edm5.v18"),isShowRule:!0}})],1)]):e._e(),t("div",{staticClass:"footer-right"},[t("el-button",{staticClass:"reply-btn cancel-btn",attrs:{size:"small"},on:{click:e.drawerClose}},[e._v(e._s(e.$t("edm5.v19")))]),t("el-button",{staticClass:"reply-btn make-btn",attrs:{size:"small",type:"primary",disabled:e.isBuilding},on:{click:e.toApplyEmail}},[e._v(e._s(e.$t("edm5.v124")))])],1)])])},v$e=[],y$e={components:{Tooltip:Xc},props:{visible:{type:Boolean,default:!1},type:{type:String,default:"1"},aiPoint:{type:Number,default:0},originSubject:{type:String,default:""},originContent:{type:String,default:""}},data(){return{loading:!1,language:"英语",languageList:[],tone:"友好的",toneList:[],resultInfo:{originSubject:"",resultSubject:"",originContent:"",resultContent:"",feedLike:0,historyId:""},isBuilding:!1,aiEmailCounter:0,aiRebuildEmailCounter:0,AiMailsTimer:null,AiRebuildMailTimer:null,requestId:"",rebuildId:"",rebuildProgressId:"",imitationOriginContent:"",imitationContent:"",typeMap:{1:{title:"优化拼写与语法",subTitle:"AI工具会自动检测邮件中的拼写和语法错误,并自动修正,确保邮件内容准确无误,提升邮件的专业水平和可读性",resultTitle:"AI优化内容",sceneType:"optimizeSpellingAndGrammar"},2:{title:"缩短内容",subTitle:"AI工具分析邮件内容,识别并建议删除冗长的句子和段落,以精简邮件长度,使其更易于理解和消化",resultTitle:"AI优化内容",sceneType:"shorten"},3:{title:"扩充内容",subTitle:"根据邮件主题,AI工具会对内容进行扩充,以丰富邮件内容并增强信息的传达效果",resultTitle:"AI优化内容",sceneType:"expansion"},4:{title:"优化结构",subTitle:"AI工具分析邮件结构,推荐调整段落顺序、增加标题或子标题、优化段落分隔,以提升整体阅读体验和视觉吸引力",resultTitle:"AI优化内容",sceneType:"optimizeStructure"},5:{title:"改变语气",subTitle:"AI工具可以改变邮件的语气,使其更加符合受众需求和沟通目的",resultTitle:"AI优化内容",sceneType:"changeTone"},6:{title:"仿写邮件",subTitle:"基于原邮件的语言、字数、内容结构等,生成相似但有变化的邮件内容",resultTitle:"AI仿写内容",sceneType:"imitation"},7:{title:"翻译",subTitle:"选择目标语言,进行翻译",resultTitle:"译文",sceneType:"translate"}}}},computed:{currentMailMap(){return this.typeMap[this.type]},isReady(){return!!this.resultInfo.originContent&&!!this.type}},watch:{isReady:{handler(e){e&&("5"===this.type&&this.getTones(),"7"===this.type&&this.getLanguages(),"5"!==this.type&&"7"!==this.type&&this.buildOptimize())},deep:!0,immediate:!0}},created(){this.originSubject&&(this.resultInfo.originSubject=this.originSubject),this.originContent&&(this.resultInfo.originContent=this.originContent,"6"===this.type&&(this.imitationOriginContent=`${this.$t("edm5.v121")}${this.originSubject}\n\n`+this.$t("edm5.v262")+this.originContent))},beforeDestroy(){this.AiMailsTimer&&clearInterval(this.AiMailsTimer)},methods:{drawerClose(){this.$emit("update:visible",!1),this.$emit("closed")},async getLanguages(){try{const e=await fs();"0"===e.code&&(this.languageList=e.data?.map((e=>({label:e,value:e}))))}catch(rl){console.log(rl)}},async getTones(){try{const e=await ms();"0"===e.code&&(this.toneList=e.data?.map((e=>({label:e,value:e}))))}catch(rl){console.log(rl)}},async evaluateAi(e,t){if(this.isBuilding)return!1;try{const n=this.resultInfo.feedLike===e?0:e,i=await ss({historyId:t,isLike:n,aiScene:this.currentMailMap.sceneType});"0"===i.code?(this.resultInfo.feedLike=n,this.$message.success(this.$t("inboxDetail.tips5"))):this.$message.error(i.message)}catch(rl){console.log(rl)}},async buildOptimize(){try{this.isBuilding=!0;const e=await r$e({sceneType:this.currentMailMap.sceneType,currentSubject:this.resultInfo.originSubject||void 0,currentContent:this.resultInfo.originContent,language:"7"===this.type?this.language:void 0,tone:"5"===this.type?this.tone:void 0});"0"===e.code?(this.requestId=e.data,this.getAiEmail()):(this.isBuilding=!1,this.$message.error(e.message))}catch(rl){this.isBuilding=!1,console.log(rl)}},async getAiEmail(){try{const e=await o$e(this.requestId,this.currentMailMap.sceneType);"0"==e.code?e.data?.isComplete?(this.isBuilding=!1,this.resultInfo.resultContent=e.data.content||"",this.rebuildId=e.data.resultId,this.resultInfo.historyId=e.data.resultId,"6"===this.type&&(this.resultInfo.resultSubject=e.data.subject||"",this.imitationContent=`subject:${e.data.subject}\n\ncontent:`+e.data.content),this.$emit("refreshPoint")):(this.isBuilding=!0,this.createAiEmailSetInterval()):(this.isBuilding=!1,this.$message.error(e.message))}catch(rl){this.isBuilding=!1,console.log(rl)}},createAiEmailSetInterval(){this.stopAiEmailSetInterval(),this.aiEmailCounter=0,this.AiMailsTimer=setInterval((async()=>{this.aiEmailCounter+=1;const e=await this.getAiEmailProgress();e&&(this.$emit("refreshPoint"),this.isBuilding=!1,this.aiEmailCounter=0,this.stopAiEmailSetInterval()),this.aiEmailCounter>=30&&(this.isBuilding=!1,this.aiEmailCounter=0,this.stopAiEmailSetInterval(),this.$message.error(this.$t("inboxDetail.tips2")))}),2e3)},async getAiEmailProgress(){try{const e=await o$e(this.requestId,this.currentMailMap.sceneType);return"0"==e.code?(e.data?.isComplete&&(this.resultInfo.resultContent=e.data.content,this.rebuildId=e.data.resultId,this.resultInfo.historyId=e.data.resultId,"6"===this.type&&(this.resultInfo.resultSubject=e.data.subject||"",this.imitationContent=`subject:${e.data.subject}\n\ncontent:`+e.data.content)),e.data?.isComplete):(this.$message.error(e.message),!0)}catch(rl){return console.log(rl),!0}},stopAiEmailSetInterval(){this.AiMailsTimer&&(clearInterval(this.AiMailsTimer),this.AiMailsTimer=null)},async rebuildEmail(){if(this.isBuilding)this.isBuilding=!1,this.stopAiEmailSetInterval();else try{this.isBuilding=!0;const e=await t$e(this.rebuildId,this.currentMailMap.sceneType);"0"===e.code?(this.rebuildProgressId=e.data,this.resultInfo.feedLike=0,this.getRebuildAiEmail()):(this.isBuilding=!1,this.$message.error(e.message))}catch(rl){this.isBuilding=!1,console.log(rl)}},async getRebuildAiEmail(){try{const e=await i$e(this.rebuildProgressId,this.currentMailMap.sceneType);"0"==e.code?e.data?.isComplete?(this.isBuilding=!1,this.resultInfo.resultContent=e.data.aiWrite.content||"",this.resultInfo.historyId=e.data.aiWrite.historyId,"6"===this.type&&(this.resultInfo.resultSubject=e.data.aiWrite.subject||"",this.imitationContent=`subject:${e.data.aiWrite.subject}\n\ncontent:`+e.data.aiWrite.content),this.$emit("refreshPoint")):(this.isBuilding=!0,this.createRebuildAiEmailSetInterval()):(this.isBuilding=!1,this.$message.error(e.message))}catch(rl){this.isBuilding=!1,console.log(rl)}},createRebuildAiEmailSetInterval(){this.stopRebuildAiEmailSetInterval(),this.aiRebuildEmailCounter=0,this.AiRebuildMailTimer=setInterval((async()=>{this.aiRebuildEmailCounter+=1;const e=await this.getAiRebuildEmailProgress();e&&(this.$emit("refreshPoint"),this.isBuilding=!1,this.aiRebuildEmailCounter=0,this.stopRebuildAiEmailSetInterval()),this.aiRebuildEmailCounter>=30&&(this.isBuilding=!1,this.aiRebuildEmailCounter=0,this.stopRebuildAiEmailSetInterval(),this.$message.error(this.$t("inboxDetail.tips2")))}),2e3)},async getAiRebuildEmailProgress(){try{const e=await i$e(this.rebuildProgressId,this.currentMailMap.sceneType);return"0"==e.code?(e.data?.isComplete&&(this.resultInfo.resultContent=e.data.aiWrite.content,this.resultInfo.historyId=e.data.aiWrite.historyId,"6"===this.type&&(this.resultInfo.resultSubject=e.data.aiWrite.subject||"",this.imitationContent=`subject:${e.data.aiWrite.subject}\n\ncontent:`+e.data.aiWrite.content)),e.data?.isComplete):(this.$message.error(e.message),!0)}catch(rl){return console.log(rl),!0}},stopRebuildAiEmailSetInterval(){this.AiRebuildMailTimer&&(clearInterval(this.AiRebuildMailTimer),this.AiRebuildMailTimer=null)},toApplyEmail(){const{resultSubject:e,resultContent:t}=this.resultInfo;if(!t)return this.$message.error("暂无可应用内容!");this.$emit("applyEmail","setContent",e,t,this.type),this.drawerClose(),this.$message.success("应用成功")}}},b$e=y$e,w$e=or(b$e,g$e,v$e,!1,null,"37765598",null),_$e=w$e.exports,C$e=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.visible,title:e.$t("edm5.v61"),width:"480px","before-close":e.closeDialog,"custom-class":"setting-nickname-dialog","close-on-click-modal":!1}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[t("div",{staticClass:"setting-tip"},[e._v(" "+e._s(e.$t("edm5.v253"))+" ")]),t("div",{staticClass:"setting-input"},[t("el-input",{attrs:{type:"input",placeholder:e.$t("edm5.v95")},model:{value:e.nickName,callback:function(t){e.nickName=t},expression:"nickName"}})],1),t("div",{staticClass:"footer-btn"},[t("el-button",{on:{click:e.closeDialog}},[e._v(e._s(e.$t("edm5.v226")))]),t("el-button",{attrs:{type:"primary",loading:e.confirmBtnLoading},on:{click:e.confirmSetting}},[e._v(e._s(e.$t("edm5.v45")))])],1)])])},x$e=[];function S$e(){return Ta("/edm/mail/getSenderInfo")}function k$e(e){return Pa("/edm/mail/saveSenderInfo",e)}var E$e={props:{visible:{type:Boolean,default:!1},nickNameDefault:{type:String,default:""}},data(){return{nickName:"",confirmBtnLoading:!1,loading:!1}},created(){this.nickNameDefault&&(this.nickName=this.nickNameDefault)},methods:{closeDialog(){this.$emit("update:visible",!1)},async getNickname(){try{this.loading=!0;const e=await S$e();"0"===e.code?this.nickName=e.data||"":this.$message.error(e.message)}catch(rl){console.log(rl),this.loading=!1}finally{this.loading=!1}},async confirmSetting(){try{if(!this.nickName)return this.$message.error(this.$t("edm5.v254"));this.confirmBtnLoading=!0;const e=await k$e({nickName:this.nickName.trim()});"0"===e.code?(this.$message.success("设置成功!"),this.$emit("updateNickName",this.nickName),this.closeDialog()):this.$message.error(e.message)}catch(rl){console.log(rl)}finally{this.confirmBtnLoading=!1}}}},D$e=E$e,A$e=or(D$e,C$e,x$e,!1,null,null,null),T$e=A$e.exports;function O$e(e){return Pa("/edm/ai/inviteEmail/save",e)}function I$e(e){return Ta(`/edm/ai/inviteEmail/${e}`)}var P$e=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.visible,title:"存为模版",width:"480px","before-close":e.closeDialog,"custom-class":"setting-nickname-dialog","close-on-click-modal":!1}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{"label-position":"top",model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"模版名称",prop:"templatesTitle"}},[t("el-input",{attrs:{maxlength:"30","show-word-limit":"",clearable:"",placeholder:"请输入模版名称"},model:{value:e.ruleForm.templatesTitle,callback:function(t){e.$set(e.ruleForm,"templatesTitle",t)},expression:"ruleForm.templatesTitle"}})],1),t("el-form-item",{attrs:{label:"应用场景",prop:"scene"}},[t("el-input",{attrs:{maxlength:"20","show-word-limit":"",placeholder:"请输入应用场景",clearable:""},model:{value:e.ruleForm.scene,callback:function(t){e.$set(e.ruleForm,"scene",t)},expression:"ruleForm.scene"}})],1),t("el-form-item",{attrs:{label:"语言",prop:"modelLanguage"}},[t("el-select",{attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:"",filterable:""},model:{value:e.ruleForm.modelLanguage,callback:function(t){e.$set(e.ruleForm,"modelLanguage",t)},expression:"ruleForm.modelLanguage"}},e._l(e.language,(function(e){return t("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),t("el-form-item",{attrs:{label:"共享状态"}},[t("el-select",{attrs:{clearable:"",placeholder:"请选择共享状态"},model:{value:e.ruleForm.isShared,callback:function(t){e.$set(e.ruleForm,"isShared",t)},expression:"ruleForm.isShared"}},[t("el-option",{key:1,attrs:{value:!0,label:"公开"}}),t("el-option",{key:2,attrs:{value:!1,label:"私有"}})],1)],1)],1),t("div",{staticClass:"footer-btn"},[t("el-button",{on:{click:function(t){return e.resetForm("ruleForm")}}},[e._v(e._s(e.$t("edm5.v226")))]),t("el-button",{attrs:{type:"primary",loading:e.confirmBtnLoading},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v(e._s(e.$t("edm5.v45")))])],1)],1)])},$$e=[];async function F$e(e){let t=await Pa("/edm/outbox/sendData",e);return"0"===t.code?t:null}async function B$e(e){let t=await Pa("/edm/inbox/receiveData",e);return t||null}async function M$e(e){let t=await Ta(`/edm/inbox/inboxDialogue/${e}`);return t||null}async function N$e(e){let t=await Ta(`/edm/inbox/inboxDetail/${e}`);return t||null}async function R$e(e){let t=await Ta(`/edm/mail/sendDetail/${e}`);return"0"===t.code?t:null}async function j$e(e){let t=await Ta(`/edm/outbox/selAiReply/${e}`);return t||null}async function L$e(e){let t=await Pa("/edm/inbox/aiReply",e);return t||null}async function z$e(e){let t=await Pa("/edm/inbox/exportReceiveData",e,"blob");return t||null}async function V$e(e){let t=await Pa("/edm/outbox/exportSendData",e,"blob");return t||null}async function H$e(e){let t=await Pa("/edm/template/addTemplate",e);return t||null}var U$e={props:{visible:{type:Boolean,default:!1},mailTempList:{type:Array,default:()=>[]},tempProductCard:{type:String,default:""}},data(){return{confirmBtnLoading:!1,loading:!1,ruleForm:{templatesTitle:"",scene:"",modelLanguage:"",isShared:!1},rules:{templatesTitle:[{required:!0,message:"请输入模版名称",trigger:"blur"}],modelLanguage:[{required:!0,message:"请选择模版语言",trigger:"change"}],scene:[{required:!0,message:"请输入应用场景",trigger:"change"}]},language:fIe}},created(){},methods:{getMailParams(){const e=this.mailTempList.find((e=>e.active));let t="";return t=e.getReplyHtml()?e.getContent()+"&nbsp;&nbsp;&nbsp;"+e.getReplyHtml()+this.tempProductCard:e.getContent()+e.getReplyHtml()+this.tempProductCard,{mailSubject:e.subject,content:t,attachments:e.fileList}},submitForm(e){const t=this.getMailParams();this.$refs[e].validate((e=>{if(!e)return console.log("error submit!!"),!1;{const e={...this.ruleForm,...t};H$e(e).then((e=>{"0"==e.code?(this.$message.success("保存成功"),this.$emit("setMailTempHandle",e.data),this.closeDialog()):this.$message.error(e.message)}))}}))},resetForm(e){this.$refs[e].resetFields(),this.closeDialog()},closeDialog(){this.$emit("update:visible",!1)}}},W$e=U$e,q$e=or(W$e,P$e,$$e,!1,null,"9fbbb3e2",null),Y$e=q$e.exports,G$e={name:"writeEmail",components:{MailBody:kd,Editor:cOe,DelayedTx:mOe,ProductList:MOe,sendNotice:VOe,sendLimit:GOe,checkMail:eIe,chooseMailNew:aIe,SettingNickName:T$e,productNewDrawer:SIe,productFormDrawer:GIe,productCardsDrawer:ePe,Tooltip:Xc,ContentBox:yPe,SignTextDrawer:FPe,MailTemplateDrawer:XPe,AiMailDialog:m$e,MailOptimizeDrawer:_$e,saveMailTempDialog:Y$e},props:{isReply:{type:Boolean,default:!1},bloggerArr:{type:Array,default:()=>[]},plan_id:{type:[Number,String],default:""},isTiming:{type:[Number,String],default:0},rowTime:{type:[Number,String],default:""},draftId:{type:[Number,String],default:""},outboxId:{type:[Number,String],default:""},userId:{type:[Number,String],default:""},dssTaskId:{tyep:[Number,String],default:""},dssTaskName:{type:String,default:""},hubTaskId:{type:[Number,String],default:""},popularizePlanId:{type:[Number,String],default:""},popularizePlanName:{type:String,default:""},hubTaskName:{type:String,default:""},sendEntryKey:{type:String,default:""},isGoogleGrayShow:{type:Boolean,default:!0},currentEnv:{type:String,default:"https://www.wotohub.com"}},computed:{allSubjectList(){return this.mailList.map((e=>e.subject))}},data(){return{mailList:[{id:"mockId-1",subject:"",fileList:[],content:"",active:!0,isAiContent:!1,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}],replyInfo:null,addresseeArr:[],loading:!1,isShowSave:!0,isShowDelayed:!1,isSpreadAddress:!1,timer:null,isBack:!1,isAutoSave:!1,isAutoSaving:!1,isAutoSaved:!1,timerId:"",editorHeight:450,cancleTimer:!1,isShowNotice:!1,isShowLimit:!1,isShowCheck:!1,isCheckType:!1,reContactList:[],riskList:[],filterBloggerArr:[],isLimit:!1,restSendNum:0,isSelfClick:!1,isScheduledMail:!1,isScheduledTime:null,checkEmails:[],isSendSuccess:!0,showChooseMail:!1,currentSetEmail:"",qiyeId:"",gmailValue:"",isMultiReply:"true"==this.$route.query.isMultiReply||1==this.$route.query.isMultiReply,isShowProductFormDrawer:!1,isShowProductDrawer:!1,isShowProductCardDrawer:!1,cardsArr:[],productTypeOpts:Object.freeze(hIe),writeId:"",currentApi:{NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_BASE_API,existIds:[],signTextDrawerVisible:!1,mailTemplateDrawerVisible:!1,aiMailVisible:!0,mailOptimizeDrawerVisible:!1,aiOptimizeType:"",aiOptimizeOriginSubject:"",aiOptimizeOriginContent:"",aiPoint:0,editBloggerLoading:!1,domTimer:null,mailIdMap:[],deleteIdList:[],settingNicknameVisible:!1,nickName:"",pageFrom:this.$route.query.pageFrom||"",currentAiPlatform:this.$route.query.currentAiPlatform||"",saveMailTempDialogVisible:!1,tempProductCard:"",totalNum:0,checkLoading:!1}},created(){if(window.onbeforeunload=function(e){return e=e||window.event,this.$t("edm5.v76")},this.isReply)this.getReplyDetail();else if(this.draftId)this.isShowSave=!1,this.getDraftDetail();else if(this.outboxId)this.getOutBoxDetail();else if(this.isMultiReply){const e=JSON.parse(localStorage.getItem("multiReplyBlogInfo"));e.forEach((e=>{this.addresseeArr.push({...e,bloggerId:e.bloggerId,bloggerName:e.bloggerName})}))}else this.$route.query.inviteAITaskId?this.getInviteAITaskDetail():"payStatusDetail"==this.$route.query.pageFrom?this.payInitTemplate():this.getMailBlogger();"AIinvitePlan"!==this.pageFrom&&(this.isMultiReply||(this.timer=window.setInterval((()=>{this.saveDraft(!1)}),6e4)),this.showNoticeEvt(),this.getSendEmailConfig(),this.getAiPoint(),this.getNickname())},mounted(){this.domTimer=setTimeout((()=>{const e=this.$refs.pageContainer.clientHeight,t=document.getElementsByClassName("w-e-toolbar")[0].offsetHeight;this.editorHeight=e-436-t}),150)},beforeDestroy(){"AIinvitePlan"!==this.pageFrom&&this.remindSave(),clearInterval(this.timer),this.timer=null,clearTimeout(this.domTimer),this.domTimer=null},destroyed(){window.onbeforeunload=null},methods:{setMailTempHandle(e){this.mailList.forEach((t=>{t.active&&(t.templateId=e)}))},saveMailTemplate(){const e=this.mailList.find((e=>e.active));if(""==e.subject)return void this.$message.error("请输入邮件主题");let t=this.cardsArr.map((e=>this.finallyCardHtml(e))).join(""),n=Is(this.cardsArr,"id");this.tempProductCard=`<product-card cardIds=${n}><div style="display:flex;overflow-x:auto">${t}</div></product-card>`,this.saveMailTempDialogVisible=!0},payInitTemplate(){const e=JSON.parse(localStorage.getItem("resultRecipientData")||"[]");e&&e.length&&e.forEach((e=>{this.addresseeArr.push({...e,bloggerId:e.bloggerId,bloggerName:e.bloggerName})}));const t=JSON.parse(localStorage.getItem("payWriteData")||"{}");this.mailList=[{attachments:[],content:`<p>To: ${this.addresseeArr[0].bloggerName}</p>\n <p>Hello!</p>\n <p>We are the official customer service team of WotoHub. On behalf of the platform and [${t.companyName}], we confirm the upcoming payment for the agreement you reached on the platform. </p>\n <p>Below are the contract details. Please review and sign them carefully:<a href="${t.payWriteUrl}" target="_blank">${t.payWriteUrl}</a></p>`,subject:"Contract Signature Required to Confirm Collaboration Payment ",id:"mockId-"+Date.now(),fileList:[],active:!0,isAiContent:!1,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}]},getInviteAITaskDetail(){I$e(this.$route.query.inviteAITaskId).then((e=>{if("0"==e.code&&e.data.emails.length){if(this.mailList=e.data.emails.map(((e,t)=>({...e,id:"mockId-"+Date.now()+t,fileList:e.attachments||[],active:0===t,isAiContent:!1,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}))),!e.data.emails||0===e.data.emails.length)return!1;if(e.data.emails[0]&&e.data.emails[0].content){let t=e.data.emails[0].content.indexOf("<product-card"),n=e.data.emails[0].content.indexOf("</product-card>"),i=e.data.emails[0].content.slice(t,n+15);const r=i.match(/cardids="([^"]+)"/);if(r&&r[1]){const e=r[1];this.addProductCard(e.split(","))}}}}))},saveInviteEmail(){this.isShowSave=!1;let e=this.cardsArr.map((e=>this.finallyCardHtml(e))).join(""),t=Is(this.cardsArr,"id"),n=`<product-card cardIds=${t}><div style="display:flex;overflow-x:auto">${e}</div></product-card>`;const i=this.mailList.map((e=>{let t="";return t=e.getReplyHtml()?e.getContent()+"&nbsp;&nbsp;&nbsp;"+e.getReplyHtml()+n:e.getContent()+e.getReplyHtml()+n,{id:e.frontId,subject:e.subject,content:t,attachments:e.fileList}})),r={taskId:this.$route.query.inviteAITaskId||"",platform:this.currentAiPlatform,emails:this.filterEmailId(i)},o=this.mailList.every((e=>!e.subject)),a=this.mailList.every((e=>e.isEmpty()));if(o||a)return this.$message.error("邮件主题和正文不能为空!");O$e(r).then((e=>{if("0"==e.code){const t=e.data;window.opener&&window.opener.postMessage(t,window.location.origin),this.$router.push({path:this.$route.path,query:{...this.$route.query,inviteAITaskId:t}}).catch((e=>{if("NavigationDuplicated"!==e.name)throw e})),this.$message.success("邮件添加成功,请回到原窗口继续创建任务!")}else this.$message.error(e.message)}))},getMailBlogger(){this.bloggerArr&&this.bloggerArr.length&&this.bloggerArr.forEach((e=>{this.addresseeArr.push({...e,bloggerId:e.bloggerId,bloggerName:e.bloggerName})}))},getReplyDetail(){const e=this.$route.query.replyId,t=this.$route.query.chatId,n=this.$route.query.replyContentId;e&&t&&Va(t).then((t=>{if(t&&t.length>0){if(e&&n){const i=t.find((e=>e.id.toString()===n));this.replyInfo=i;const r=t.find((t=>t.id.toString()===e));this.mailList[0].subject=r.subject,this.replyInfo.id=e}else{const n=t.find((t=>t.id.toString()===e));this.replyInfo=n,this.mailList[0].subject=n.subject,this.replyInfo.id=e}this.addresseeArr.push({bloggerId:this.replyInfo.bloggerId,bloggerName:this.replyInfo.bloggerName,popularizePlanId:this.$route.query.popularizePlanId&&-1!=this.$route.query.popularizePlanId?this.$route.query.popularizePlanId:void 0,popularizePlanName:this.$route.query.popularizePlanName&&"null"!=this.$route.query.popularizePlanName?this.$route.query.popularizePlanName:void 0})}}))},skipApply(e){DOe({productId:e}).then((e=>{"0"===e.code?window.open(e.data,"_blank"):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},addProduct(){this.isShowProductCardDrawer=!0,this.existIds=0==this.cardsArr.length?[]:Is(this.cardsArr,"id")},isShowProductDrawerEvt(){this.isShowProductDrawer=!0,this.existIds=0==this.cardsArr.length?[]:Is(this.cardsArr,"id")},closeProductDrawer(e){this.isShowProductDrawer=!1,e&&this.addProductCard([e])},addProductCard(e){let t=[...new Set(e.concat(this.existIds))];this.cardsArr=[],t.map((e=>{kOe({id:e}).then((e=>{let t=[],n=[];3!==e.data.source?(t=e.data.type.map((e=>{const t=this.productTypeOpts.find((t=>t.value===e))?.label;return t})),n=e.data.type.map((e=>{const t=this.productTypeOpts.find((t=>t.value===e))?.en_label;return t}))):t=e.data.type.map((e=>e));let i=t.slice();this.$set(e.data,"typeName",t),this.$set(e.data,"typeEnName",n),this.$set(e.data,"typeName3",i.splice(0,3)),this.cardsArr.push(e.data)}))}))},deleteItem(e){this.cardsArr.splice(e,1)},setProduct(e){this.singleSetEmail("addEditContent",e)},setProductFormLink(e){const t='<p><a href="'+e+'" target="_blank" >'+e+"</a></p><br />";this.singleSetEmail("addEditContent",t)},multiSendNow(){const e=JSON.parse(localStorage.getItem("multiReplyIds"));let t=this.cardsArr.map((e=>this.finallyCardHtml(e))).join(""),n=Is(this.cardsArr,"id"),i=`<product-card cardIds=${n}><div style="display:flex;overflow-x:auto">${t}</div></product-card>`,r={replyIds:e,content:this.mailList[0].getContent()+i,sendEntryKey:"inboxMultiReply"};this.loading=!0,Ka(r).then((e=>{"0"===e.code?(this.isShowSave=!1,this.$emit("skipToOutbox")):this.$message.error(e.message)})).finally((()=>{this.loading=!1}))},toGuide(){this.$emit("toGuide")},async getSendEmailConfig(){if(this.draftId);else try{const e=await Md({});"0"===e.code?this.currentSetEmail=["WOTOMAIL","GMAIL"].includes(e.data.sendType)?e.data.sendType:e.data.email:this.$message.error(e.message)}catch(rl){console.log(rl)}this.$route.query.code&&(this.showChooseMail=!0)},updateCurrentEmail({sendType:e,qiyeId:t,gmailValue:n}){this.currentSetEmail=e,this.qiyeId=t,this.gmailValue=n,this.draftId&&this.saveDraft(!1)},async getBusinessEMails(e){try{const t=await Wd({});"0"===t.code?(this.businessEmailList=t.data||[],e&&(this.currentSetEmail=t.data.find((t=>t.id===e))?.emailAddress||"")):this.$message.error(t.message)}catch(rl){console.log(rl)}},closeChooseMail(){this.showChooseMail=!1,this.isCheckType=!1},showNoticeEvt(){const e=localStorage.getItem("remind14Flag");if(e){const e=localStorage.getItem("remind14Time"),t=(new Date).getTime();e?t-e<12096e5?this.isShowNotice=!1:(this.isShowNotice=!0,localStorage.removeItem("remind14Time")):this.isShowNotice=!0}else this.isShowNotice=!0},closeNoticeEvt(e){if(this.isShowNotice=!1,localStorage.setItem("remind14Flag",e),e){const e=(new Date).getTime();localStorage.setItem("remind14Time",e)}},cancelDelaySend(){this.$confirm(`${this.$i18n.t("writeMail.mail_will")}${this.rowTime}${this.$i18n.t("writeMail.cancle_delay_tip")}`,`${this.$i18n.t("writeMail.whether_cancle_delay")}`,{confirmButtonText:`${this.$i18n.t("writeMail.cancle_delay")}`,cancelButtonText:`${this.$i18n.t("writeMail.no_cancle")}`,iconClass:"el-icon-warning",cancelButtonClass:"reback-btn-linear",confirmButtonClass:"reback-btn-face"}).then((()=>{this.cancleTimer=!0,this.saveDraft(!0)})).catch((()=>{})).finally((()=>{this.cancleTimer=!1}))},async getDraftDetail(){try{const e=await Hd(this.draftId);if("0"===e.code){if(this.mailList=e.data.map(((e,t)=>({...e,id:e.writeEmailId,fileList:e.attachmentRes||[],active:0===t,isAiContent:!1,templateId:e.templateId,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}))),!e.data||0===e.data.length)return!1;if(e.data[0]&&e.data[0].content){let t=e.data[0].content.indexOf("<product-card"),n=e.data[0].content.indexOf("</product-card>"),i=e.data[0].content.slice(t,n+15);const r=i.match(/cardids="([^"]+)"/);if(r&&r[1]){const e=r[1];this.addProductCard(e.split(","))}}if("recipient"===this.$route.query.from?this.getMailBlogger():(e.data[0]?.bloggerBeans.forEach((e=>{this.addresseeArr.push({...e,bloggerId:e.bloggerId,bloggerName:e.bloggerName})})),console.log(this.addresseeArr)),e.data[0]&&e.data[0].sendType)if(["WOTOMAIL","GMAIL"].includes(e.data[0].sendType)){if(this.currentSetEmail=e.data[0].sendType,this.qiyeId="","GMAIL"===this.currentSetEmail){const e=await Pd();"0"===e.code&&(this.gmailValue=e.data.email)}}else this.qiyeId=e.data[0].qiyeId,this.getBusinessEMails(e.data[0].qiyeId)}else this.$message.error(e.message)}catch(rl){console.log(rl)}},async getOutBoxDetail(){try{const e=this.outboxId.split(","),t=await Ud({writeIds:e});if("0"===t.code){if(this.mailList=t.data.map(((e,t)=>({...e,id:"mockId-"+Date.now()+t,fileList:e.attachmentRes||[],active:0===t,isAiContent:!1,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}))),!t.data||0===t.data.length)return!1;if(t.data[0]&&t.data[0].content){let e=t.data[0].content.indexOf("<product-card"),n=t.data[0].content.indexOf("</product-card>"),i=t.data[0].content.slice(e,n+15);const r=i.match(/cardids="([^"]+)"/);if(r&&r[1]){const e=r[1];this.addProductCard(e.split(","))}}this.getMailBlogger()}else this.$message.error(t.message)}catch(rl){console.log(rl)}},async getSendNum(e,t){await Dd({sendNum:e.length,timing:t}).then((e=>{if("0"===e.code){if(this.isLimit=0!=e.data.isExcess,this.restSendNum=e.data.surplusNum,this.isLimit)return this.isShowLimit=!0,!1;this.getReachNum(Is(this.addresseeArr,"bloggerId"))}else this.$message.error(e.message)}))},async getReachNum(e=[]){try{if(!e||!Array.isArray(e))return!1;this.checkLoading=!0;const t=await Ad({bloggerIds:e});if("0"===t.code){this.totalNum=this.addresseeArr.length||0,this.reContactList=t.data;const n=await Nd();"0"===n.code&&n.data?(this.isCheckType=!0,this.showChooseMail=!0):(this.isCheckType=!1,this.isShowCheck=!0);const i=await zd({bloggerIds:e});"0"===i.code&&(this.riskList=i.data,this.updateFilterBloggerArr(!0,!0),this.checkLoading=!1)}else this.checkLoading=!1,this.$message.error(t.message)}catch(rl){console.log(rl),this.checkLoading=!1}finally{this.checkLoading=!1}},updateFilterBloggerArr(e,t){this.filterBloggerArr=e&&t?this.addresseeArr.filter((e=>!this.reContactList.some((t=>t===e.bloggerId))&&!this.riskList.some((t=>t===e.bloggerId)))):e&&!t?this.addresseeArr.filter((e=>!this.reContactList.some((t=>t===e.bloggerId)))):!e&&t?this.addresseeArr.filter((e=>!this.riskList.some((t=>t===e.bloggerId)))):this.addresseeArr},openCheckNext(){this.isShowCheck=!0,this.showChooseMail=!1,this.isCheckType=!1},finallyCardHtml(e){const t=e.typeEnName.splice(0,2).map((e=>`<span style="margin-top:0;margin-bottom:4px;white-space:nowrap;padding:0 6px;background: rgba(0, 0, 0, 0.3);border-radius: 12px;font-weight: 500;font-size: 12px;color: #ffffff;margin-right: 6px;height:24px;line-height:24px">${e}</span>`)).join("");let n=[];e.promotePlatformType.map((e=>{0==e&&n.push("https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/youtube.png"),1==e&&n.push("https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/tiktok.png"),2==e&&n.push("https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/ins.png")}));const i=n.map((e=>`<div style="flex-shrink: 0;width: 24px;height: 24px;background: rgba(0, 0, 0, 0.3);border-radius: 12px;margin-right: 6px;"><img style="object-fit: contain; padding: 4px" src="${e}"/></div>`)).join("");let r="https://api-prd.wotohub.com",o=e.nameEn?e.nameEn.slice(0,25)+"···":"—",a=Vs(e.currency);return`<div style="display: flex"><div style="box-sizing:border-box;width: 280px; min-height: 310px; border-radius: 14px; border: 1px solid #e8e8e8; padding: 12px;margin-right:8px"><div style="position: relative; margin-bottom: 10px;"><img style="object-fit:cover;border: 1px solid #333;width: 256px;height: 150px;border-radius: 14px;" src="${e.imageUrls[0]}"/><div style="position: absolute;top: 12px;left: 12px;display: flex;align-items: center;flex-wrap:wrap">${i}${t}</div></div><div style="margin-bottom: 16px"><div style="font-weight: 600;font-size: 16px;color: #333333;line-height: 22px;margin-bottom: 4px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">${o}</div><div style="font-weight: 400;font-size: 14px;color: #666666;line-height: 20px;margin-bottom: 4px;">Price:${a}${e.priceDollar||"—"}</div><div style="font-weight: 400;font-size: 14px;color: #666666;line-height: 20px;margin-bottom: 0;">Commission rate:${e.commissionPercent||"—"}%</div></div><div style="display: flex; align-items: center"><div style="font-weight: 400;font-size: 12px;color: #999999;line-height: 17px;margin-right: 20px;"><span style="font-family: MiSans, MiSans;font-weight: 800;font-size: 18px;color: #f85277;line-height: 24px;padding-right: 6px;">${a}${(e.priceDollar*(e.commissionPercent/100)).toFixed(2)}</span> /per ordered item</div><div style="width: 75px;height: 36px;border-radius: 10px;background: #f85277;font-weight: 600;font-size: 16px;color: #ffffff;line-height: 34px;text-align: center;"><a style="color:#fff;text-decoration:none" href='${r}/user/productCard/noAuth/email/apply?productId=${e.id}' target='_blank'>Apply</a></div></div></div></div>`},async selfSend(e){let t=this.cardsArr.map((e=>this.finallyCardHtml(e))).join(""),n=Is(this.cardsArr,"id"),i=`<product-card cardIds=${n}><div style="display:flex;overflow-x:auto">${t}</div></product-card>`;const r=this.mailList.map((e=>{let t="";return t=e.getReplyHtml()?e.getContent()+"&nbsp;&nbsp;&nbsp;"+e.getReplyHtml()+i:e.getContent()+e.getReplyHtml()+i,{id:e.id,subject:e.subject,content:t,attachments:e.fileList,templateId:e.templateId}}));e&&"replaySend"===e&&(this.filterBloggerArr=this.addresseeArr);const o=this.filterBloggerArr.map((e=>({bloggerId:e.bloggerId,chooseSource:e.chooseSource||void 0,popularizePlanId:e.popularizePlanId&&-1!=e.popularizePlanId?e.popularizePlanId:void 0,popularizePlanName:e.popularizePlanName&&"null"!=e.popularizePlanName?e.popularizePlanName:void 0}))),a={emails:this.filterEmailId(r),bloggerInfos:o,type:this.isScheduledMail?2:1,timing:this.isScheduledTime||void 0,replyId:this.isReply?this.replyInfo.id:void 0,sendEntryKey:this.sendEntryKey||void 0,writeIds:this.deleteIdList.length>0?this.deleteIdList:void 0,sendType:["WOTOMAIL","GMAIL"].includes(this.currentSetEmail)?this.currentSetEmail:"QIYE",qiyeId:this.qiyeId||void 0};(this.draftId||this.timerId)&&(a.id=this.draftId||this.timerId),console.log("hubDataParams------"),console.log(a);try{this.timer&&clearInterval(this.timer),this.loading=!0;const e=await Ed(a);0==e.code?(this.mailIdMap=e.data.emails||[],this.deleteIdList=[],this.handleAiReply(e.data.groupId),this.isSendSuccess=!0,this.isShowSave=!1,this.isScheduledMail?this.isShowDelayed?this.isReply?this.$emit("skipToDraft"):setTimeout((()=>{this.isSelfClick||(this.isShowCheck=!1,this.$emit("skipToDraft"))}),3e3):this.$confirm(`${this.$i18n.t("writeMail.mail_will")}${this.rowTime}${this.$i18n.t("writeMail.save_tip")}`,`${this.$i18n.t("writeMail.set_delay_success")}`,{confirmButtonText:`${this.$i18n.t("writeMail.i_know")}`,type:"success",confirmButtonClass:"reback-btn-face",showCancelButton:!1}).then((()=>{setTimeout((()=>{this.isSelfClick||(this.isShowCheck=!1,this.$emit("skipToDraft"))}),3e3)})):(this.$message({type:"success",message:"发送成功"}),this.isReply?this.$emit("skipToOutbox"):setTimeout((()=>{this.isSelfClick||(this.isShowCheck=!1,this.$emit("skipToOutbox"))}),3e3))):(this.isSendSuccess=!1,this.$message.error(e.message))}catch(rl){console.log(rl)}finally{this.loading=!1}},skipToOut(){this.isSelfClick=!0,this.isShowCheck=!1,this.isShowSave=!1,this.isScheduledMail?this.$emit("skipToDraft"):this.$emit("skipToOutbox")},closeCheckEvt(){this.isShowCheck=!1,this.isShowDelayed=!1},send(){const e=this.checkForm();e&&(this.isScheduledMail=!1,this.isScheduledTime=null,this.checkEmails=this.mailList.map((e=>({subject:e.subject,content:e.getContent()}))),this.isReply?this.selfSend("replaySend"):this.getSendNum(Is(this.addresseeArr,"bloggerId"),null))},showDelayedTx(){const e=this.checkForm();e&&(this.isShowDelayed=!0)},sendTime(e){if(this.compareTime(new Date(e).valueOf()))return this.$message({message:`${this.$i18n.t("writeMail.time_limit")}`,type:"warning"}),!1;this.isScheduledMail=!0,this.isScheduledTime=e,this.checkEmails=this.mailList.map((e=>({subject:e.subject,content:e.getContent()}))),this.isReply?this.selfSend("replaySend"):this.getSendNum(Is(this.addresseeArr,"bloggerId"),e)},async saveDraft(e){let t=this.cardsArr.map((e=>this.finallyCardHtml(e))).join(""),n=Is(this.cardsArr,"id"),i=`<product-card cardIds=${n}><div style="display:flex;overflow-x:auto">${t}</div></product-card>`;const r=this.mailList.map((e=>({id:e.id,subject:e.subject,content:e.getContent()+"&nbsp;&nbsp;&nbsp;"+e.getReplyHtml()+i,attachments:e.fileList,templateId:e.templateId}))),o=this.addresseeArr.map((e=>({bloggerId:e.bloggerId,chooseSource:e.chooseSource||void 0,popularizePlanId:e.popularizePlanId&&-1!=e.popularizePlanId?e.popularizePlanId:void 0,popularizePlanName:e.popularizePlanName&&"null"!=e.popularizePlanName?e.popularizePlanName:void 0}))),a={id:"",emails:this.filterEmailId(r),bloggerInfos:o,type:1!=this.isTiming||this.cancleTimer?99:2,timing:1!=this.isTiming||this.cancleTimer?void 0:this.rowTime,replyId:this.isReply?this.replyInfo.id:void 0,sendEntryKey:this.sendEntryKey,writeIds:this.deleteIdList.length>0?this.deleteIdList:void 0,sendType:["WOTOMAIL","GMAIL"].includes(this.currentSetEmail)?this.currentSetEmail:"QIYE",qiyeId:this.qiyeId||void 0};this.isAutoSave=!e,this.isAutoSaving=this.isAutoSave,(this.draftId||this.timerId)&&(a.id=this.draftId||this.timerId);const s=this.mailList.every((e=>!e.subject)),l=this.mailList.every((e=>e.isEmpty())),c=this.mailList.every((e=>0===e.fileList.length));if(0===o.length&&s&&l&&c)return!!e&&this.$message.error(this.$t("edm5.v77"));try{this.loading=!0;const t=await Ed(a);return 0==t.code?(this.mailIdMap=t.data.emails||[],this.deleteIdList=[],this.draftId||this.timerId||(this.timerId=t.data.groupId,this.handleAiReply(t.data.groupId)),e?this.isBack?this.$router.go(-1):this.$emit("skipToDraft"):(setTimeout((()=>{this.isAutoSaving=!1}),1500),setTimeout((()=>{this.isAutoSaved=!0}),1501),setTimeout((()=>{this.isAutoSaved=!1,this.isAutoSave=!1}),3e3)),!0):(this.isAutoSave=!1,this.$message.error(t.message),!1)}catch(rl){return console.log(rl),!1}finally{this.loading=!1}},remindSave(){if(this.isShowSave){const e=confirm(`${this.$i18n.t("writeMail.save_draft_tip")}`);e&&this.saveDraft(!0)}},checkForm(){if(!this.addresseeArr.length)return this.$message({type:"warning",message:`${this.$i18n.t("writeMail.no_receiver")}`}),!1;let e=!1,t=!1,n=!1,i=!1;return this.mailList.forEach((r=>{r.subject||(e=!0),r.length>100&&(t=!0),r.isEmpty()&&(n=!0),r.getTextContent().length>5e3&&(i=!0)})),e?(this.$message({type:"warning",message:`${this.$i18n.t("writeMail.no_subject")}`}),!1):t?(this.$message({type:"warning",message:`${this.$i18n.t("writeMail.subject_limit")}`}),!1):n?(this.$message({type:"warning",message:`${this.$i18n.t("writeMail.no_content")}`}),!1):!i||(this.$message({type:"warning",message:`${this.$i18n.t("writeMail.content_limit")}`}),!1)},setMailTemplate(e){this.mailTemplateDrawerVisible=!1,Vd(e.id).then((e=>{if("0"==e.code){const t=e.data;if(t&&(t.attachmentRes&&t.attachmentRes.length&&t.attachmentRes.forEach((e=>{delete e.id})),t.content)){let e=t.content.indexOf("<product-card"),n=t.content.indexOf("</product-card>"),i=t.content.slice(e,n+15),r="";r=e>-1&&n>-1?t.content.slice(0,e)+t.content.slice(n+15):t.content,this.mailList.forEach((e=>{e.active&&(e.subject=t.mailSubject,e.templateId=t.id,e.fileList=t.attachmentRes,e.setContent&&e.setContent(r))}));const o=i.match(/cardids="([^"]+)"/);if(o&&o[1]){const e=o[1];this.addProductCard(e.split(","))}}}else this.$message.error(e.message)})).catch((()=>{}))},setMailSign(e){this.singleSetEmail("addEditContent",e)},compareTime(e){return new Date(e).getTime()-(new Date).getTime()<0},handleAiReply(e){this.$route.query.aiId&&os({aiEmailId:Number(this.$route.query.aiId),writeId:e})},toAddEmail(e="",t="",n=!1){this.mailList=this.mailList.map((e=>({...e,active:!1}))),this.mailList.push({id:"mockId-"+Date.now(),subject:e,fileList:[],content:t,active:!0,isAiContent:n,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}})},toggleEmailTag(e){this.mailList=this.mailList.map((t=>({...t,active:e===t.id})))},deleteEmail(e){if(this.mailList.length<=1)return!1;this.$confirm(this.$t("edm5.v78"),this.$t("edm5.v79"),{confirmButtonText:this.$t("edm5.v45"),cancelButtonText:"取消",type:"warning"}).then((()=>{const t=this.mailIdMap.find((t=>t.frontId===e));t&&this.deleteIdList.push(t.writeId),e&&!(e+"").includes("mockId-")&&this.deleteIdList.push(e),this.deleteEmailFn(e)})).catch((()=>{}))},deleteEmailFn(e){this.mailList=this.mailList.filter((t=>t.id!==e)),this.mailList.every((e=>!e.active))&&this.$set(this.mailList,0,{...this.mailList[0],active:!0})},singleSetEmail(e,t){if(!e)return!1;this.mailList.forEach((n=>{n.active&&n[e]&&n[e](t)}))},batchSetEmail(e,t){if(!e)return!1;this.mailList.forEach((n=>{n[e]&&n[e](t)}))},applyEmails(e){const t=e.map(((e,t)=>{const{subject:n,content:i}=e;return{id:"mockId-"+Date.now()+t,subject:n,content:i,fileList:[],active:!1,isAiContent:!0,getContent:()=>{},getTextContent:()=>{},setContent:()=>{},insertEditContent:()=>{},addEditContent:()=>{},dangerouslyInsertHtml:()=>{},isEmpty:()=>{},getReplyHtml:()=>{},setEditorBar:()=>{}}}));let n=this.mailList;n.forEach((e=>{if(""===e.subject&&e.isEmpty()&&0===e.fileList.length){const n=t.shift();e.isAiContent=!0,e.subject=n?n.subject:e.subject,e.content="",this.$nextTick((()=>{e.content=n?n.content:e.content}))}}));const i=n.length,r=t.length,o=i+r-5;if(o>0){const e=i-o;n.forEach(((n,i)=>{if(i>=e){const e=t.shift();n.isAiContent=!0,n.subject=e?e.subject:n.subject,n.content="",this.$nextTick((()=>{n.content=e?e.content:n.content}))}})),n=n.concat(t)}else n=n.concat(t);this.mailList=n,this.mailList.every((e=>!e.active))&&this.$set(this.mailList,this.mailList.length-1,{...this.mailList.at(-1),active:!0}),this.aiMailVisible=!1},handleOptimize(e){this.aiOptimizeOriginSubject="",this.aiOptimizeOriginContent="";const t=this.mailList.find((e=>e.active));if(!(t&&t.getTextContent&&t.isEmpty)||t.isEmpty())return this.$message.error(this.$t("edm5.v80"));"6"===e&&(this.aiOptimizeOriginSubject=t.subject),this.aiOptimizeOriginContent=t.getContent(),this.aiOptimizeType=e,this.mailOptimizeDrawerVisible=!0},applyEmail(e,t,n,i){if("6"===i){const e=this.mailList.findIndex((e=>""===e.subject&&e.isEmpty()&&0===e.fileList.length));e>-1?this.$set(this.mailList,e,{...this.mailList[e],subject:t,content:n,active:!0,isAiContent:!0}):-1===e&&this.mailList.length<5?this.toAddEmail(t,n,!0):-1===e&&5===this.mailList.length&&this.$set(this.mailList,this.mailList.length-1,{...this.mailList.at(-1),subject:t,content:n,active:!0,isAiContent:!0})}else this.singleSetEmail(e,n)},async getAiPoint(){this.aiPoint=await zs()},filterEmailId(e=[]){return e&&Array.isArray(e)&&e.length>0?e.map((e=>{const t=this.mailIdMap.find((t=>t.frontId===e.id));let n,i;return e.id&&(e.id+"").includes("mockId-")&&!t&&(n=e.id),e.id&&t&&t.frontId&&(n=t.frontId),e.id&&(e.id+"").includes("mockId-")&&t&&t.writeId&&(i=t.writeId),e.id&&!(e.id+"").includes("mockId-")&&(i=e.id),{...e,frontId:n,id:i}})):[]},async toEditBlogger(){this.editBloggerLoading=!0,this.isShowSave=!1,await this.saveDraft(!1);const e=this.draftId||this.timerId;e?(this.editBloggerLoading=!1,this.$router.push({path:"/recipientList",query:{draftId:e,isTiming:this.isTiming,rowTime:this.rowTime}})):(this.$message.error(this.$t("edm5.v81")),this.editBloggerLoading=!1)},test(){console.log(this.mailList)},filterEmptyEmail(){const e=this.mailList||[];if(!e||!Array.isArray(e))return[];{let t=0;e.some((e=>{const{subject:n,isEmpty:i,fileList:r}=e;if(""!==n||!i()||0!==r.length)return!0;t+=1})),t>0&&this.mailList.splice(0,t)}},async getNickname(){try{const e=await S$e();"0"===e.code?this.nickName=e.data||"":this.$message.error(e.message)}catch(rl){console.log(rl)}}}},K$e=G$e,X$e=or(K$e,yd,bd,!1,null,"7135fb5a",null),Z$e=X$e.exports,J$e=function(){var e=this,t=e._self._c;return t("div",{staticClass:"outbox-container"},[t("div",{staticClass:"outbox-tab"},[t("el-tabs",{staticClass:"tab-wrap",class:{"tab-wrap-en":"en"===e.language},attrs:{type:"card",stretch:""},on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:e.$t("edm2.mailEn1"),name:"first"}},["first"===e.activeName?t("single-send-mail",{attrs:{isShowSearch:e.isShowSearch,scrollTop:e.scrollTop}}):e._e()],1),t("el-tab-pane",{attrs:{label:e.$t("edm2.mailEn3"),name:"third"}},["third"===e.activeName?t("reply-send-mail",{attrs:{isShowSearch:e.isShowSearch,scrollTop:e.scrollTop}}):e._e()],1)],1),"first"===e.activeName?t("div",{staticClass:"write-btn",class:{"write-btn-en":"en"===e.language},on:{click:e.writeEmail}},[t("i",{staticClass:"dss-iconfont icon-pen1"}),t("span",[e._v(e._s(e.$t("edm2.mailEn5")))])]):e._e()],1)])},Q$e=[],eFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"single-send-table"},[t("div",{staticClass:"inbox-search-wrap"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.blogger_name")))]),t("el-input",{staticClass:"col-input",attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},model:{value:e.searchForm.bloggerName,callback:function(t){e.$set(e.searchForm,"bloggerName",t)},expression:"searchForm.bloggerName"}})],1),t("div",{staticClass:"col-item col-select-input-item"},[t("el-input",{staticClass:"col-input-select",attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.contentInput,callback:function(t){e.contentInput=t},expression:"contentInput"}},[t("el-select",{attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},on:{change:e.changeContentMode},slot:"prepend",model:{value:e.contentSelect,callback:function(t){e.contentSelect=t},expression:"contentSelect"}},[t("el-option",{attrs:{label:e.$t("edm2.mailEn6"),value:"1"}}),t("el-option",{attrs:{label:e.$t("edm2.mailEn7"),value:"2"}})],1)],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(" "+e._s(e.$i18n.t("deliveryTime.Delivery_time"))+" ")]),t("el-date-picker",{staticClass:"col-date",attrs:{align:"right",type:"daterange",placeholder:e.$t("edm2.mailEn8"),"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd"},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.star_mail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.isStar,callback:function(t){e.$set(e.searchForm,"isStar",t)},expression:"searchForm.isStar"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("outboxMail.star_mail")}}),t("el-option",{attrs:{value:"",label:e.$i18n.t("outboxMail.all_mail")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.mail_type")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.writeType,callback:function(t){e.$set(e.searchForm,"writeType",t)},expression:"searchForm.writeType"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("outboxMail.normal")}}),t("el-option",{attrs:{value:2,label:e.$i18n.t("outboxMail.delay")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$t("inboxMail.search.sendEmail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$t("inboxMail.search.defaultSelect"),clearable:""},model:{value:e.searchForm.sentMail,callback:function(t){e.$set(e.searchForm,"sentMail",t)},expression:"searchForm.sentMail"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.sysEmail")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.businessEmail")}})],1)],1),t("div",[t("el-button",{attrs:{type:"primary"},on:{click:e.confirmEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.search"))+" ")]),t("el-button",{on:{click:e.resetEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.reset"))+" ")])],1)])]),t("div",{staticClass:"mail-table-wrap"},[t("WTable",{ref:"mailTable",staticClass:"mail-table",attrs:{"row-key":"id",tableConfig:{selection:!0,selectionFixed:!0},tableColumnConfig:e.tableColumnConfig,tableData:e.tableData,height:null,"max-height":null,"min-height":e.tableHeight,isNeedScroll:!0,loading:e.loading,total:e.total,pageSize:e.searchForm.pageSize,pageNum:e.searchForm.currentPage},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page-size":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:page-num":function(t){return e.$set(e.searchForm,"currentPage",t)},changeSize:function(t){return e.init()},changeCurrent:function(t){return e.init()},"row-click":e.skipDetail,"selection-change":e.selectTableRow,"row-contextmenu":e.rightClick},scopedSlots:e._u([{key:"isStar",fn:function({data:n}){return[t("i",{staticClass:"pm-iconfont",class:1===n.scope.isStar?"icon-star1":"icon-star0",staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.starOutboxEvt(n.scope)}}})]}},{key:"readStatus",fn:function({data:n}){return[t("div",{staticClass:"flex items-center"},[t("i",{staticClass:"dss-iconfont relative mr8",class:n.scope.readNum?"icon-read-2 mail-read":"icon-contact2 mail-status-hub"}),t("p",{class:n.scope.readNum?"":"mail-bold-name",staticStyle:{"white-space":"nowrap"}},[e._v(" "+e._s(n.scope.readNum===n.scope.number?`${e.$i18n.t("outboxMail.all_read")}`:n.scope.readNum?n.scope.readNum+`${e.$i18n.t("outboxMail.read")}`:`${e.$i18n.t("outboxMail.all_unread")}`)+" ")])])]}},{key:"bloggers",fn:function({data:n}){return[t("div",{staticClass:"mail-name flex items-center"},[t("p",{staticClass:"beyond_eip mr8",class:n.scope.readNum?"":"mail-bold-name"},[e._v(" "+e._s(n.scope.showNames)+" ")]),n.scope.number?t("span",{staticClass:"span-hub"},[e._v(" "+e._s(n.scope.number>999?"999+":n.scope.number)+" ")]):e._e()])]}},{key:"deliveryRate",fn:function({data:n}){return[t("div",{staticClass:"mail-rate"},[e._v(" "+e._s((100*n.scope.deliveryRate).toFixed(2))+"% ")]),t("el-progress",{staticClass:"list-progress",attrs:{percentage:Number((100*n.scope.deliveryRate).toFixed(2)),color:"#555CFD","show-text":!1}})]}},{key:"openRate",fn:function({data:n}){return[t("div",{staticClass:"mail-rate"},[e._v(" "+e._s((100*n.scope.openRate).toFixed(2))+"% ")]),t("el-progress",{staticClass:"list-progress",attrs:{percentage:Number((100*n.scope.openRate).toFixed(2)),color:"#FFAC04","show-text":!1}})]}},{key:"replyRate",fn:function({data:n}){return[t("div",{staticClass:"mail-rate"},[e._v(" "+e._s((100*n.scope.replyRate).toFixed(2))+"% ")]),t("el-progress",{staticClass:"list-progress",attrs:{percentage:Number((100*n.scope.replyRate).toFixed(2)),color:"#73DEB3","show-text":!1}})]}},{key:"operation",fn:function({data:n}){return[t("el-link",{attrs:{type:"primary",size:"small",underline:!1},on:{click:function(t){return t.stopPropagation(),e.recallMail(n.scope)}}},[e._v("撤回")])]}}])}),t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){e.searchForm.currentPage=1,e.init(!0)}}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})]),t("div",{staticClass:"tool-item",on:{click:function(t){return e.deleteEvt()}}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})]),t("div",{staticClass:"tool-item",on:{click:e.hiddenAiMail}},[t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-mail",content:e.searchForm.isHide?"显示AI自动邀约邮件":e.$i18n.t("edm2.mailEn20"),placement:"top"}},[e.searchForm.isHide?t("i",{staticClass:"dss-iconfont"},[e._v("")]):e._e(),e.searchForm.isHide?e._e():t("i",{staticClass:"dss-iconfont"},[e._v("")])])],1)])])],1)])},tFe=[],nFe=i(4353),iFe=i.n(nFe),rFe={components:{WTable:UIe},props:{isShowSearch:{type:Boolean,default:!0},scrollTop:{type:Number,default:0}},data(){return{searchForm:{bloggerName:"",subject:"",content:"",sendTimeBegin:"",sendTimeEnd:"",isStar:null,writeType:"",sentMail:"",isHide:"true"==localStorage.getItem("aiEmailIsHidden"),currentPage:1,pageSize:20},contentInput:"",contentSelect:"1",timeRange:[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],tableColumnConfig:[{label:"",scope:"isStar",width:"48"},{label:"",scope:"readStatus",width:"110"},{label:Mc.t("writeMail.receiver"),scope:"bloggers"},{label:Mc.t("edm2.mailEn6"),prop:"subject",showOverflowTooltip:!0,minWidth:"200"},{label:Mc.t("edm2.mailEn9"),scope:"deliveryRate",width:"120",tips:Mc.t("edm5.v40")},{label:Mc.t("edm2.mailEn10"),scope:"openRate",width:"120",tips:Mc.t("edm5.v40")},{label:Mc.t("edm2.mailEn11"),scope:"replyRate",width:"120",tips:Mc.t("edm5.v40")},{label:Mc.t("edm2.mailEn12"),prop:"sendTime",width:"200"},{label:"操作",scope:"operation",width:"100"}],tableData:[],loading:!1,total:0,tableHeight:js(332),selectData:[],pickerOptions:{shortcuts:[{text:Mc.t("deliveryTime.three_months"),onClick(e){e.$emit("pick",[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.past_six_months"),onClick(e){e.$emit("pick",[iFe()().subtract(6,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.all_emails"),onClick(e){e.$emit("pick",[iFe()().subtract(120,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}}]}}},created(){localStorage.getItem("searchFlag")?localStorage.getItem("searchForm")?this.searchForm=JSON.parse(localStorage.getItem("searchForm")):this.searchForm=this.$options.data().searchForm:localStorage.removeItem("searchForm"),this.init()},destroyed(){localStorage.removeItem("searchFlag")},methods:{recallMail(e){console.log(e,"row"),this.$confirm("请确认是否撤回该邮件?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{ku(e.id).then((e=>{"0"==e.code?(this.$message({type:"success",showClose:!0,duration:7e3,message:"撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"}),this.init()):this.$message({type:"error",showClose:!0,duration:7e3,message:e.message})}))})).catch((()=>{}))},changeContentMode(e){this.contentSelect=e,this.contentInput=""},init(e){console.log("初始化",e,this.searchForm),e&&this.clearTableData(),this.loading=!0,1==this.contentSelect?(this.searchForm.content="",this.searchForm.subject=this.contentInput):2==this.contentSelect&&(this.searchForm.subject="",this.searchForm.content=this.contentInput),null==this.timeRange?(this.searchForm.sendTimeBegin="",this.searchForm.sendTimeEnd=""):(this.searchForm.sendTimeBegin=this.timeRange[0],this.searchForm.sendTimeEnd=this.timeRange[1]),vu(this.searchForm).then((e=>{this.loading=!1,0==e.code?(this.tableData=e.data.rows.map((e=>({...e,showNames:Is(e.bloggers,"bloggerName").join(",")}))),this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},starOutboxEvt(e){let t={mailId:e.id,isStar:0===e.isStar?1:0};yu(t).then((e=>{0==e.code?this.init():this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},skipDetail(e){localStorage.setItem("searchForm",JSON.stringify(this.searchForm)),localStorage.setItem("outboxActiveName","first"),this.$router.push({path:"/outboxDetail",query:{id:e.id,enterType:1}})},deleteEvt(){this.selectData.length?this.$confirm(this.$t("inboxTable.delMail"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning"}).then((()=>{wu({mailId:this.selectData}).then((e=>{0==e.code?(this.clearTableData(),this.init(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`,duration:1500})):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))})).catch((()=>{})):this.$message({type:"warning",message:`${this.$i18n.t("outboxMail.choose")}`})},hiddenAiMail(){this.searchForm.isHide=!this.searchForm.isHide,localStorage.setItem("aiEmailIsHidden",this.searchForm.isHide),this.searchForm.currentPage=1,this.init()},confirmEvt(){this.searchForm.currentPage=1,this.init()},resetEvt(){localStorage.removeItem("searchForm"),localStorage.removeItem("searchFlag"),this.searchForm=this.$options.data().searchForm,this.timeRange=[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],this.contentInput="",this.contentSelect="1",this.init(!0)},selectTableRow(e){this.selectData=Is(e,"id")},clearTableData(){this.searchForm.currentPage=1,this.$refs.mailTable.$refs.xTable.clearSelection(),this.selectData=[]},rightClick(e,t,n){return n.preventDefault(),this.$contextmenu({items:[{label:"在新标签页中打开邮件",icon:"el-icon-plus",onClick:()=>{const t=this.$router.resolve({path:"/outboxDetail",query:{id:e.id,enterType:1}});window.open(t.href,"_blank")}},{label:"刷新列表数据",icon:"el-icon-refresh",onClick:()=>{this.init()}},{label:"复制邮件主题",icon:"el-icon-document-copy",disabled:!e.subject,onClick:()=>{this.copyText(e.subject)}}],event:n,customClass:"contextmenu-container",zIndex:3,minWidth:230}),!1},copyText(e){const t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$message({type:"success",message:"已复制到剪贴板"})}}},oFe=rFe,aFe=or(oFe,eFe,tFe,!1,null,"b6955ade",null),sFe=aFe.exports,lFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"reply-send-table"},[t("div",{staticClass:"inbox-search-wrap"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.blogger_name")))]),t("el-input",{staticClass:"col-input",attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},model:{value:e.searchForm.bloggerName,callback:function(t){e.$set(e.searchForm,"bloggerName",t)},expression:"searchForm.bloggerName"}})],1),t("div",{staticClass:"col-item col-select-input-item"},[t("el-input",{staticClass:"col-input-select",attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.contentInput,callback:function(t){e.contentInput=t},expression:"contentInput"}},[t("el-select",{attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},on:{change:e.changeContentMode},slot:"prepend",model:{value:e.contentSelect,callback:function(t){e.contentSelect=t},expression:"contentSelect"}},[t("el-option",{attrs:{label:e.$t("edm2.mailEn6"),value:"1"}}),t("el-option",{attrs:{label:e.$t("edm2.mailEn7"),value:"2"}})],1)],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(" "+e._s(e.$i18n.t("deliveryTime.Delivery_time"))+" ")]),t("el-date-picker",{staticClass:"col-date",attrs:{align:"right",type:"daterange",placeholder:e.$t("edm2.mailEn8"),"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd"},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.star_mail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.isStar,callback:function(t){e.$set(e.searchForm,"isStar",t)},expression:"searchForm.isStar"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("outboxMail.star_mail")}}),t("el-option",{attrs:{value:"",label:e.$i18n.t("outboxMail.all_mail")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.mail_type")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.writeType,callback:function(t){e.$set(e.searchForm,"writeType",t)},expression:"searchForm.writeType"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("outboxMail.normal")}}),t("el-option",{attrs:{value:2,label:e.$i18n.t("outboxMail.delay")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$t("inboxMail.search.sendEmail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$t("inboxMail.search.defaultSelect"),clearable:""},model:{value:e.searchForm.sentMail,callback:function(t){e.$set(e.searchForm,"sentMail",t)},expression:"searchForm.sentMail"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.sysEmail")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.businessEmail")}})],1)],1),t("div",[t("el-button",{attrs:{type:"primary"},on:{click:e.confirmEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.search"))+" ")]),t("el-button",{on:{click:e.resetEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.reset"))+" ")])],1)])]),t("div",{staticClass:"mail-table-wrap"},[t("WTable",{ref:"mailTable",staticClass:"mail-table",attrs:{"row-key":"id",tableConfig:{selection:!0,selectionFixed:!0},tableColumnConfig:e.tableColumnConfig,tableData:e.tableData,isNeedScroll:!0,height:null,"max-height":null,"min-height":e.tableHeight,loading:e.loading,total:e.total,pageSize:e.searchForm.pageSize,pageNum:e.searchForm.currentPage},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page-size":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:page-num":function(t){return e.$set(e.searchForm,"currentPage",t)},changeSize:function(t){return e.init()},changeCurrent:function(t){return e.init()},"row-click":e.skipDetail,"selection-change":e.selectTableRow,"row-contextmenu":e.rightClick},scopedSlots:e._u([{key:"isStar",fn:function({data:n}){return[t("i",{staticClass:"pm-iconfont",class:1===n.scope.isStar?"icon-star1":"icon-star0",staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.starOutboxEvt(n.scope)}}})]}},{key:"readStatus",fn:function({data:n}){return[t("div",{staticClass:"flex items-center"},[t("i",{staticClass:"dss-iconfont relative mr8",class:2==n.scope.isRead?"icon-read-2 mail-read":"icon-contact2 mail-status-hub"}),t("p",{class:2==n.scope.isRead?"":"mail-bold-name"},[e._v(" "+e._s(2==n.scope.isRead?`${e.$i18n.t("inboxMail.search.read")}`:`${e.$i18n.t("inboxMail.search.unRead")}`)+" ")])])]}},{key:"popularizePlanName",fn:function({data:n}){return[t("div",{staticClass:"plan-cell",on:{click:function(t){return t.stopPropagation(),e.goPlanDetail(n.scope.popularizePlanId,n.scope)}}},[n.scope.popularizePlanName?t("i",{staticClass:"dss-iconfont icon-task plan-i"}):e._e(),t("span",{class:{"overflow-text":!0,"bold-name":1==n.scope.isRead&&null!==n.scope.popularizePlanName&&""!==n.scope.popularizePlanName}},[e._v(" "+e._s(n.scope.popularizePlanName?n.scope.popularizePlanName:e.$t("deliveryTime.no_promotion_plan"))+" ")])])]}},{key:"content",fn:function({data:n}){return[t("span",{staticClass:"beyond_eip",domProps:{innerHTML:e._s(e.filterHtmlTag(n.scope.content))}})]}},{key:"operation",fn:function({data:n}){return[t("el-link",{attrs:{type:"primary",size:"small",underline:!1},on:{click:function(t){return t.stopPropagation(),e.recallMail(n.scope)}}},[e._v("撤回")])]}}])}),t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){e.searchForm.currentPage=1,e.init(!0)}}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})]),t("div",{staticClass:"tool-item",on:{click:function(t){return e.deleteEvt()}}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})])])])],1)])},cFe=[],uFe={components:{WTable:UIe},props:{isShowSearch:{type:Boolean,default:!0},scrollTop:{type:Number,default:0}},data(){return{searchForm:{bloggerName:"",subject:"",content:"",sendTimeBegin:"",sendTimeEnd:"",isStar:null,writeType:"",sentMail:"",isHidden:0,currentPage:1,pageSize:20},tableColumnConfig:[{label:"",scope:"isStar",width:"48"},{label:"",scope:"readStatus",width:"110"},{label:Mc.t("writeMail.receiver"),prop:"bloggerName",showOverflowTooltip:!0},{label:Mc.t("inboxDetail.planVal"),scope:"popularizePlanName"},{label:Mc.t("edm2.mailEn6"),prop:"subject",showOverflowTooltip:!0},{label:Mc.t("edm2.mailEn7"),scope:"content"},{label:Mc.t("edm2.mailEn12"),prop:"sendTime",width:"200"},{label:"操作",scope:"operation",width:"100"}],contentInput:"",contentSelect:"1",timeRange:[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],tableData:[],loading:!1,total:0,tableHeight:js(332),selectData:[],pickerOptions:{shortcuts:[{text:Mc.t("deliveryTime.three_months"),onClick(e){e.$emit("pick",[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.past_six_months"),onClick(e){e.$emit("pick",[iFe()().subtract(6,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.all_emails"),onClick(e){e.$emit("pick",[iFe()().subtract(120,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}}]}}},created(){localStorage.getItem("searchFlag")?localStorage.getItem("searchForm")?this.searchForm=JSON.parse(localStorage.getItem("searchForm")):this.searchForm=this.$options.data().searchForm:localStorage.removeItem("searchForm"),this.init()},destroyed(){localStorage.removeItem("searchFlag")},methods:{recallMail(e){console.log(e,"row"),this.$confirm("请确认是否撤回该邮件?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{ku(e.id).then((e=>{"0"==e.code?(this.$message({type:"success",showClose:!0,duration:7e3,message:"撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"}),this.init()):this.$message({type:"error",showClose:!0,duration:7e3,message:e.message})}))})).catch((()=>{}))},filterHtmlTag(e){return e&&(e=e.replace(/<head>[\s\S]*?<\/head>/i,""),e=e.replace(/<img[^>]*>/gi,""),e=e.replace(/<pre>[\s\S]*?<\/pre>/i,""),e=e.replace(/<[^>]+>|&[^>]+;/g,""),e=e.replace(new RegExp("&nbsp;","g")," ")),e},changeContentMode(e){this.contentSelect=e,this.contentInput=""},init(e){e&&this.clearTableData(),this.loading=!0,1==this.contentSelect?(this.searchForm.content="",this.searchForm.subject=this.contentInput):2==this.contentSelect&&(this.searchForm.subject="",this.searchForm.content=this.contentInput),null==this.timeRange?(this.searchForm.sendTimeBegin="",this.searchForm.sendTimeEnd=""):(this.searchForm.sendTimeBegin=this.timeRange[0],this.searchForm.sendTimeEnd=this.timeRange[1]),bu(this.searchForm).then((e=>{this.loading=!1,0==e.code?(this.tableData=e.data.rows,this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},starOutboxEvt(e){let t={mailId:e.id,isStar:0===e.isStar?1:0};yu(t).then((e=>{0==e.code?this.init():this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},skipDetail(e){localStorage.setItem("searchForm",JSON.stringify(this.searchForm)),localStorage.setItem("outboxActiveName","third"),this.$router.push({path:"/outboxDetail",query:{id:e.id,enterType:2}})},deleteEvt(){this.selectData.length?this.$confirm(this.$t("inboxTable.delMail"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning"}).then((()=>{wu({mailId:this.selectData}).then((e=>{0==e.code?(this.clearTableData(),this.init(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`,duration:1500})):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))})).catch((()=>{})):this.$message({type:"warning",message:`${this.$i18n.t("outboxMail.choose")}`})},confirmEvt(){this.searchForm.currentPage=1,this.init()},resetEvt(){localStorage.removeItem("searchForm"),localStorage.removeItem("searchFlag"),this.searchForm=this.$options.data().searchForm,this.timeRange=[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],this.contentInput="",this.contentSelect="1",this.init(!0)},selectTableRow(e){this.selectData=Is(e,"id")},clearTableData(){this.searchForm.currentPage=1,this.$refs.mailTable.$refs.xTable.clearSelection(),this.selectData=[]},goPlanDetail(e,t){"-1"!==e&&this.$router.push({path:"/planDetail",query:{planId:e}})},rightClick(e,t,n){return n.preventDefault(),this.$contextmenu({items:[{label:"在新标签页中打开邮件",icon:"el-icon-plus",onClick:()=>{const t=this.$router.resolve({path:"/outboxDetail",query:{id:e.id,enterType:2}});window.open(t.href,"_blank")}},{label:"刷新列表数据",icon:"el-icon-refresh",onClick:()=>{this.init()}},{label:"复制邮件主题",icon:"el-icon-document-copy",disabled:!e.subject,onClick:()=>{this.copyText(e.subject)}},{label:"复制推广计划名",icon:"el-icon-document-copy",disabled:!e.popularizePlanName,onClick:()=>{this.copyText(e.popularizePlanName)}}],event:n,customClass:"contextmenu-container",zIndex:3,minWidth:230}),!1},copyText(e){const t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$message({type:"success",message:"已复制到剪贴板"})}}},dFe=uFe,hFe=or(dFe,lFe,cFe,!1,null,"6dafcb1e",null),pFe=hFe.exports,fFe={name:"outBox",components:{singleSendMail:sFe,replySendMail:pFe},props:{scrollTop:{type:Number,default:0}},data(){return{activeName:"first",isShowSearch:!0,language:Wi.get("language")}},created(){localStorage.getItem("searchFlag")?localStorage.getItem("outboxActiveName")?this.activeName=localStorage.getItem("outboxActiveName"):this.activeName="first":(localStorage.removeItem("searchForm"),localStorage.removeItem("outboxActiveName"))},destroyed(){localStorage.removeItem("searchFlag")},methods:{handleTabClick(e){localStorage.setItem("outboxActiveName",e.name),localStorage.removeItem("searchForm"),localStorage.removeItem("searchFlag")},writeEmail(){localStorage.removeItem("beforeSelected"),localStorage.removeItem("resultRecipientData");const e=this.$router.resolve({path:"/recipientList"});window.open(e.href,"_blank")}}},mFe=fFe,gFe=or(mFe,J$e,Q$e,!1,null,"1d113158",null),vFe=gFe.exports,yFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"drafts-container"},[t("div",{staticClass:"drafts-tab"},[t("el-tabs",{staticClass:"tab-wrap",class:{"tab-wrap-en":"en"===e.language},attrs:{type:"card",stretch:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:e.$t("edm2.mailEn1"),name:"first"}},["first"===e.activeName?t("single-drafts-mail",{attrs:{isShowSearch:e.isShowSearch,scrollTop:e.scrollTop}}):e._e()],1),t("el-tab-pane",{attrs:{label:e.$t("edm2.mailEn3"),name:"third"}},["third"===e.activeName?t("reply-drafts-mail",{attrs:{isShowSearch:e.isShowSearch,scrollTop:e.scrollTop}}):e._e()],1)],1)],1)])},bFe=[],wFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"single-drafts-table"},[t("div",{staticClass:"inbox-search-wrap"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.blogger_name")))]),t("el-input",{staticClass:"col-input",attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},model:{value:e.searchForm.bloggerName,callback:function(t){e.$set(e.searchForm,"bloggerName",t)},expression:"searchForm.bloggerName"}})],1),t("div",{staticClass:"col-item col-select-input-item"},[t("el-input",{staticClass:"col-input-select",attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.contentInput,callback:function(t){e.contentInput=t},expression:"contentInput"}},[t("el-select",{attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},on:{change:e.changeContentMode},slot:"prepend",model:{value:e.contentSelect,callback:function(t){e.contentSelect=t},expression:"contentSelect"}},[t("el-option",{attrs:{label:e.$t("edm2.mailEn6"),value:"1"}}),t("el-option",{attrs:{label:e.$t("edm2.mailEn7"),value:"2"}})],1)],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(" "+e._s(e.$i18n.t("deliveryTime.Delivery_time"))+" ")]),t("el-date-picker",{staticClass:"col-date",attrs:{align:"right",type:"daterange",placeholder:e.$t("edm2.mailEn8"),"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd"},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.star_mail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.isStar,callback:function(t){e.$set(e.searchForm,"isStar",t)},expression:"searchForm.isStar"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("outboxMail.star_mail")}}),t("el-option",{attrs:{value:"",label:e.$i18n.t("outboxMail.all_mail")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.mail_status")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.writeType,callback:function(t){e.$set(e.searchForm,"writeType",t)},expression:"searchForm.writeType"}},[t("el-option",{attrs:{value:1,label:e.$t("edm5.v52")}}),t("el-option",{attrs:{value:2,label:e.$t("edm5.v53")}}),t("el-option",{attrs:{value:88,label:e.$t("edm5.v54")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$t("inboxMail.search.sendEmail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$t("inboxMail.search.defaultSelect"),clearable:""},model:{value:e.searchForm.sentMail,callback:function(t){e.$set(e.searchForm,"sentMail",t)},expression:"searchForm.sentMail"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.sysEmail")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.businessEmail")}})],1)],1),t("div",[t("el-button",{attrs:{type:"primary"},on:{click:e.confirmEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.search"))+" ")]),t("el-button",{on:{click:e.resetEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.reset"))+" ")])],1)])]),t("div",{staticClass:"mail-table-wrap"},[t("WTable",{ref:"mailTable",staticClass:"mail-table",attrs:{"row-key":"id",tableConfig:{selection:!0,selectionFixed:!0},tableColumnConfig:e.tableColumnConfig,tableData:e.tableData,height:null,"max-height":null,"min-height":e.tableHeight,isNeedScroll:!0,loading:e.loading,total:e.total,pageSize:e.searchForm.pageSize,pageNum:e.searchForm.currentPage},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page-size":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:page-num":function(t){return e.$set(e.searchForm,"currentPage",t)},changeSize:function(t){return e.init()},changeCurrent:function(t){return e.init()},"row-click":e.skipDetail,"selection-change":e.selectTableRow},scopedSlots:e._u([{key:"isStar",fn:function({data:n}){return[t("i",{staticClass:"pm-iconfont",class:1===n.scope.isStar?"icon-star1":"icon-star0",staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.starOutboxEvt(n.scope)}}})]}},{key:"writeType",fn:function({data:n}){return[99===n.scope.writeType?t("span",[e._v(" "+e._s(e.$i18n.t("draftMail.draft"))+" ")]):e._e(),2===n.scope.writeType?t("span",[t("el-popover",{attrs:{trigger:"hover",content:e.parseTime(n.scope.timing,"{y}-{m}-{d} {h}:{i}")+`${e.$i18n.t("draftMail.send")}`,placement:"top-start","popper-class":"time-email"}},[t("i",{staticClass:"dss-iconfont icon-clock",attrs:{slot:"reference"},slot:"reference"})])],1):e._e()]}},{key:"bloggers",fn:function({data:n}){return[t("div",{staticClass:"mail-name flex items-center"},[t("p",{staticClass:"beyond_eip mr8"},[e._v(" "+e._s(n.scope.bloggerName)+" ")]),n.scope.bloggerName?t("span",{staticClass:"span-hub"},[e._v(" "+e._s(n.scope.number>99?"99+":n.scope.number)+" ")]):e._e()])]}},{key:"time",fn:function({data:n}){return[99===n.scope.writeType?t("span",[e._v(" "+e._s(n.scope.gmtCreate)+" ")]):e._e(),2===n.scope.writeType?t("span",[e._v(" "+e._s(e.formatDraftTime(n.scope.timing))+" ")]):e._e()]}}])}),t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){e.searchForm.currentPage=1,e.init(!0)}}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})]),t("div",{staticClass:"tool-item",on:{click:function(t){return e.deleteEvt()}}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})])])])],1)])},_Fe=[];function CFe(e){return Pa("/edm/draftsV2/pageDraftSingle",e)}function xFe(e){return Pa("/edm/draftsV2/pageDraftReply",e)}function SFe(e){return Pa("/edm/draftsV2/validReceiver",e)}var kFe={components:{WTable:UIe},props:{isShowSearch:{type:Boolean,default:!0},scrollTop:{type:Number,default:0}},data(){return{searchForm:{bloggerName:"",subject:"",content:"",sendTimeBegin:"",sendTimeEnd:"",isStar:null,writeType:"",sentMail:"",isHidden:0,currentPage:1,pageSize:20},contentInput:"",contentSelect:"1",timeRange:[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],tableColumnConfig:[{label:"",scope:"isStar",width:"48"},{label:"",scope:"writeType",width:"110"},{label:Mc.t("writeMail.receiver"),scope:"bloggers"},{label:Mc.t("edm2.mailEn6"),prop:"subject",showOverflowTooltip:!0,minWidth:"200"},{label:Mc.t("edm5.v50"),prop:"writeType",minWidth:"80",format:"common",dict:[{name:Mc.t("edm5.v52"),code:99},{name:Mc.t("edm5.v53"),code:2},{name:Mc.t("edm5.v54"),code:88}]},{label:Mc.t("edm5.v51"),scope:"time",minWidth:"100"}],tableData:[],loading:!1,total:0,tableHeight:js(332),selectData:[],pickerOptions:{shortcuts:[{text:Mc.t("deliveryTime.three_months"),onClick(e){e.$emit("pick",[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.past_six_months"),onClick(e){e.$emit("pick",[iFe()().subtract(6,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.all_emails"),onClick(e){e.$emit("pick",[iFe()().subtract(120,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}}]}}},created(){this.init()},methods:{changeContentMode(e){this.contentSelect=e,this.contentInput=""},init(e){e&&this.clearTableData(),this.loading=!0,1==this.contentSelect?(this.searchForm.content="",this.searchForm.subject=this.contentInput):2==this.contentSelect&&(this.searchForm.subject="",this.searchForm.content=this.contentInput),null==this.timeRange?(this.searchForm.sendTimeBegin="",this.searchForm.sendTimeEnd=""):(this.searchForm.sendTimeBegin=this.timeRange[0],this.searchForm.sendTimeEnd=this.timeRange[1]),CFe(this.searchForm).then((e=>{this.loading=!1,0==e.code?(this.tableData=e.data.rows,this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},starOutboxEvt(e){let t={mailId:e.id,isStar:0===e.isStar?1:0};yu(t).then((e=>{0==e.code?this.init():this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},skipDetail(e){localStorage.setItem("sendEntryKey","draftNew_sendMail");const t=this.$router.resolve({path:"/write",query:{draftId:e.id,isTiming:2===e.writeType?1:0,rowTime:e.timing?e.timing:""}});window.open(t.href,"_blank")},deleteEvt(){this.selectData.length?this.$confirm(this.$t("inboxTable.delMail"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning"}).then((()=>{wu({mailId:this.selectData}).then((e=>{0==e.code?(this.clearTableData(),this.init(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`,duration:1500})):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))})).catch((()=>{})):this.$message({type:"warning",message:`${this.$i18n.t("outboxMail.choose")}`})},confirmEvt(){this.searchForm.currentPage=1,this.init()},resetEvt(){this.searchForm=this.$options.data().searchForm,this.timeRange=[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],this.contentInput="",this.contentSelect="1",this.init(!0)},selectTableRow(e){this.selectData=Is(e,"id")},clearTableData(){this.searchForm.currentPage=1,this.$refs.mailTable.$refs.xTable.clearSelection(),this.selectData=[]},parseTime(e,t){return Os(e,t)},formatDraftTime(e,t){return Bs(e,t)}}},EFe=kFe,DFe=or(EFe,wFe,_Fe,!1,null,"7c3d798a",null),AFe=DFe.exports,TFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"reply-drafts-table"},[t("div",{staticClass:"inbox-search-wrap"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.blogger_name")))]),t("el-input",{staticClass:"col-input",attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},model:{value:e.searchForm.bloggerName,callback:function(t){e.$set(e.searchForm,"bloggerName",t)},expression:"searchForm.bloggerName"}})],1),t("div",{staticClass:"col-item col-select-input-item"},[t("el-input",{staticClass:"col-input-select",attrs:{placeholder:e.$i18n.t("common.please_input")},model:{value:e.contentInput,callback:function(t){e.contentInput=t},expression:"contentInput"}},[t("el-select",{attrs:{slot:"prepend",placeholder:e.$i18n.t("common.please_select")},on:{change:e.changeContentMode},slot:"prepend",model:{value:e.contentSelect,callback:function(t){e.contentSelect=t},expression:"contentSelect"}},[t("el-option",{attrs:{label:e.$t("edm2.mailEn6"),value:"1"}}),t("el-option",{attrs:{label:e.$t("edm2.mailEn7"),value:"2"}})],1)],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(" "+e._s(e.$i18n.t("deliveryTime.Delivery_time"))+" ")]),t("el-date-picker",{staticClass:"col-date",attrs:{align:"right",type:"daterange",placeholder:e.$t("edm2.mailEn8"),"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd"},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}})],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.star_mail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.isStar,callback:function(t){e.$set(e.searchForm,"isStar",t)},expression:"searchForm.isStar"}},[t("el-option",{attrs:{value:1,label:e.$i18n.t("outboxMail.star_mail")}}),t("el-option",{attrs:{value:"",label:e.$i18n.t("outboxMail.all_mail")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$i18n.t("outboxMail.mail_status")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$i18n.t("common.please_select"),clearable:""},model:{value:e.searchForm.writeType,callback:function(t){e.$set(e.searchForm,"writeType",t)},expression:"searchForm.writeType"}},[t("el-option",{attrs:{value:1,label:e.$t("edm5.v52")}}),t("el-option",{attrs:{value:2,label:e.$t("edm5.v53")}}),t("el-option",{attrs:{value:88,label:e.$t("edm5.v54")}})],1)],1),t("div",{staticClass:"col-item"},[t("span",{staticClass:"col-span"},[e._v(e._s(e.$t("inboxMail.search.sendEmail")))]),t("el-select",{staticClass:"col-select",attrs:{placeholder:e.$t("inboxMail.search.defaultSelect"),clearable:""},model:{value:e.searchForm.sentMail,callback:function(t){e.$set(e.searchForm,"sentMail",t)},expression:"searchForm.sentMail"}},[t("el-option",{attrs:{value:0,label:e.$t("inboxMail.search.sysEmail")}}),t("el-option",{attrs:{value:1,label:e.$t("inboxMail.search.businessEmail")}})],1)],1),t("div",[t("el-button",{attrs:{type:"primary"},on:{click:e.confirmEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.search"))+" ")]),t("el-button",{on:{click:e.resetEvt}},[e._v(" "+e._s(e.$i18n.t("searchButton.reset"))+" ")])],1)])]),t("div",{staticClass:"mail-table-wrap"},[t("WTable",{ref:"mailTable",staticClass:"mail-table",attrs:{"row-key":"id",tableConfig:{selection:!0,selectionFixed:!0},tableColumnConfig:e.tableColumnConfig,tableData:e.tableData,height:null,"max-height":null,"min-height":e.tableHeight,isNeedScroll:!0,loading:e.loading,total:e.total,pageSize:e.searchForm.pageSize,pageNum:e.searchForm.currentPage},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page-size":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:page-num":function(t){return e.$set(e.searchForm,"currentPage",t)},changeSize:function(t){return e.init()},changeCurrent:function(t){return e.init()},"row-click":e.skipDetail,"selection-change":e.selectTableRow},scopedSlots:e._u([{key:"isStar",fn:function({data:n}){return[t("i",{staticClass:"pm-iconfont",class:1===n.scope.isStar?"icon-star1":"icon-star0",staticStyle:{cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.starOutboxEvt(n.scope)}}})]}},{key:"writeType",fn:function({data:n}){return[99===n.scope.writeType?t("span",[e._v(" "+e._s(e.$i18n.t("draftMail.draft"))+" ")]):e._e(),2===n.scope.writeType?t("span",[t("el-popover",{attrs:{trigger:"hover",content:e.parseTime(n.scope.timing,"{y}-{m}-{d} {h}:{i}")+`${e.$i18n.t("draftMail.send")}`,placement:"top-start","popper-class":"time-email"}},[t("i",{staticClass:"dss-iconfont icon-clock",attrs:{slot:"reference"},slot:"reference"})])],1):e._e()]}},{key:"bloggers",fn:function({data:n}){return[t("div",{staticClass:"mail-name flex items-center"},[t("p",{staticClass:"beyond_eip mr8"},[e._v(" "+e._s(n.scope.showNames)+" ")]),n.scope.showNames?t("span",{staticClass:"span-hub"},[e._v(" "+e._s(n.scope.emailNum>99?"99+":n.scope.emailNum)+" ")]):e._e()])]}},{key:"popularizePlanName",fn:function({data:n}){return[t("div",{staticClass:"plan-cell"},[n.scope.popularizePlanName?t("i",{staticClass:"dss-iconfont icon-task plan-i"}):e._e(),t("span",{class:{"overflow-text":!0,"bold-name":null!==n.scope.popularizePlanName&&""!==n.scope.popularizePlanName}},[e._v(" "+e._s(n.scope.popularizePlanName?n.scope.popularizePlanName:e.$t("deliveryTime.no_promotion_plan"))+" ")])])]}},{key:"content",fn:function({data:n}){return[t("span",{staticClass:"beyond_eip",domProps:{innerHTML:e._s(e.filterHtmlTag(n.scope.content))}})]}},{key:"time",fn:function({data:n}){return[99===n.scope.writeType?t("span",[e._v(" "+e._s(n.scope.gmtCreate)+" ")]):e._e(),2===n.scope.writeType?t("span",[e._v(" "+e._s(e.formatDraftTime(n.scope.timing))+" ")]):e._e()]}}])}),t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){e.searchForm.currentPage=1,e.init(!0)}}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})]),t("div",{staticClass:"tool-item",on:{click:function(t){return e.deleteEvt()}}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})])])])],1)])},OFe=[],IFe={components:{WTable:UIe},props:{isShowSearch:{type:Boolean,default:!0},scrollTop:{type:Number,default:0}},data(){return{searchForm:{bloggerName:"",subject:"",content:"",sendTimeBegin:"",sendTimeEnd:"",isStar:null,writeType:"",isHidden:0,sentMail:"",currentPage:1,pageSize:20},contentInput:"",contentSelect:"1",timeRange:[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],tableColumnConfig:[{label:"",scope:"isStar",width:"48"},{label:"",scope:"writeType",width:"110"},{label:Mc.t("writeMail.receiver"),prop:"bloggerName",showOverflowTooltip:!0},{label:Mc.t("inboxDetail.planVal"),scope:"popularizePlanName"},{label:Mc.t("edm2.mailEn6"),prop:"subject",width:"200",showOverflowTooltip:!0},{label:Mc.t("edm2.mailEn7"),scope:"content",minWidth:"250",showOverflowTooltip:!0},{label:Mc.t("edm5.v50"),prop:"writeType",minWidth:"80",format:"common",dict:[{name:Mc.t("edm5.v52"),code:99},{name:Mc.t("edm5.v53"),code:2},{name:Mc.t("edm5.v54"),code:88}]},{label:Mc.t("edm5.v51"),scope:"time",minWidth:"100"}],tableData:[],loading:!1,total:0,tableHeight:js(332),selectData:[],pickerOptions:{shortcuts:[{text:Mc.t("deliveryTime.three_months"),onClick(e){e.$emit("pick",[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.past_six_months"),onClick(e){e.$emit("pick",[iFe()().subtract(6,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}},{text:Mc.t("deliveryTime.all_emails"),onClick(e){e.$emit("pick",[iFe()().subtract(120,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")])}}]}}},created(){this.init()},methods:{filterHtmlTag(e){return e&&(e=e.replace(/<\/?.+?\/?>/g,""),e=e.replace(new RegExp("&nbsp;","g")," ")),e},changeContentMode(e){this.contentSelect=e,this.contentInput=""},init(e){e&&this.clearTableData(),this.loading=!0,1==this.contentSelect?(this.searchForm.content="",this.searchForm.subject=this.contentInput):2==this.contentSelect&&(this.searchForm.subject="",this.searchForm.content=this.contentInput),null==this.timeRange?(this.searchForm.sendTimeBegin="",this.searchForm.sendTimeEnd=""):(this.searchForm.sendTimeBegin=this.timeRange[0],this.searchForm.sendTimeEnd=this.timeRange[1]),xFe(this.searchForm).then((e=>{this.loading=!1,0==e.code?(this.tableData=e.data.rows,this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},starOutboxEvt(e){let t={mailId:e.id,isStar:0===e.isStar?1:0};yu(t).then((e=>{0==e.code?this.init():this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},skipDetail(e){localStorage.setItem("sendEntryKey","draftNew_sendMail");const t=this.$router.resolve({path:"/write",query:{draftId:e.id,isTiming:2===e.writeType?1:0,rowTime:e.timing?e.timing:""}});window.open(t.href,"_blank")},deleteEvt(){this.selectData.length?this.$confirm(this.$t("inboxTable.delMail"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning"}).then((()=>{wu({mailId:this.selectData}).then((e=>{0==e.code?(this.clearTableData(),this.init(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`,duration:1500})):this.$message({type:"error",message:e.message,customClass:"custom-message"})}))})).catch((()=>{})):this.$message({type:"warning",message:`${this.$i18n.t("outboxMail.choose")}`})},confirmEvt(){this.searchForm.currentPage=1,this.init()},resetEvt(){this.searchForm=this.$options.data().searchForm,this.timeRange=[iFe()().subtract(3,"month").format("YYYY-MM-DD"),iFe()().format("YYYY-MM-DD")],this.contentInput="",this.contentSelect="1",this.init(!0)},selectTableRow(e){this.selectData=Is(e,"id")},clearTableData(){this.searchForm.currentPage=1,this.$refs.mailTable.$refs.xTable.clearSelection(),this.selectData=[]},parseTime(e,t){return Os(e,t)},formatDraftTime(e,t){return Bs(e,t)}}},PFe=IFe,$Fe=or(PFe,TFe,OFe,!1,null,"88be6978",null),FFe=$Fe.exports,BFe={name:"draftEmail",components:{singleDraftsMail:AFe,replyDraftsMail:FFe},props:{scrollTop:{type:Number,default:0}},data(){return{activeName:"first",isShowSearch:!0,language:Wi.get("language")}},methods:{}},MFe=BFe,NFe=or(MFe,yFe,bFe,!1,null,"403ba0a3",null),RFe=NFe.exports,jFe=function(){var e=this,t=e._self._c;return 0!==e.emailArr.length?t("div",{staticClass:"outbox-detail-container"},[t("div",{staticClass:"back",on:{click:e.backToOutbox}},[t("i",{staticClass:"el-icon-arrow-left"})]),t("div",{staticClass:"back recall_btn",on:{click:e.recallMail}},[e._m(0)]),t("div",{staticClass:"mail-items-box"},[t("div",{staticClass:"mail-item-row mail-template"},[t("span",{staticClass:"span-label"},[e._v(e._s(e.$t("edm2.mailEn13")))]),e._l(e.emailArr,(function(n,i){return t("span",{key:i,staticClass:"mail-item",class:{"mail-item-active":e.currentIndex===i},on:{click:function(t){e.currentIndex=i}}},[e._v(" "+e._s(e.$t("edm2.mailEn14"))+e._s(i+1)+" ")])})),t("span",{staticClass:"send-email"},[e._v(e._s(e.$t("edm5.v4"))+e._s(e.sendEmail))])],2),t("div",{staticClass:"mail-item-row mail-subject"},[t("span",{staticClass:"span-label"},[e._v(e._s(e.$t("sendData.table.subject")))]),t("el-input",{staticClass:"subject row-val",attrs:{readonly:!0},model:{value:e.emailArr[e.currentIndex].subject,callback:function(t){e.$set(e.emailArr[e.currentIndex],"subject",t)},expression:"emailArr[currentIndex].subject"}})],1),e.emailArr[e.currentIndex].attachmentRes?t("div",{staticClass:"mail-item-row mail-attachment"},[t("span",{staticClass:"span-label"},[e._v(e._s(e.$t("edm2.mailEn15")))]),t("div",{staticClass:"attachment-item row-val"},[e._l(e.handleShowFile(e.emailArr[e.currentIndex].attachmentRes),(function(n,i){return t("span",{key:i,staticClass:"file-item",on:{click:function(t){return e.downLoadFileItem(n)}}},[t("span",{staticClass:"file-name"},[e._v(e._s(n.name)+"("+e._s(n.size)+"KB)")]),t("i",{staticClass:"dss-iconfont icon-download"})])})),t("div",{staticClass:"file-action col-span-4 mb8"},[e.emailArr[e.currentIndex].attachmentRes.length>4?t("button",{staticClass:"file-btn mr12",on:{click:function(t){e.isShrink=!e.isShrink}}},[t("i",{staticClass:"dss-iconfont icon-arrow-down mr4",style:e.isShrink?"":"transform: rotate(180deg);"}),t("p",[e._v(" "+e._s(e.isShrink?`${e.$i18n.t("outboxDetail.show_all")}`+(e.emailArr[e.currentIndex].attachmentRes.length-4)+`${e.$i18n.t("outboxDetail.file_num")}`:`${e.$i18n.t("outboxDetail.retract")}`)+" ")])]):e._e(),t("button",{staticClass:"file-btn mr12",on:{click:function(t){return e.downloadAll(e.emailArr[e.currentIndex].attachmentRes)}}},[t("p",{staticClass:"mr4"},[e._v(e._s(e.$i18n.t("outboxDetail.down_all"))+":")]),t("i",{staticClass:"dss-iconfont icon-download"})])])],2)]):e._e(),t("div",{staticClass:"mail-item-row mail-content"},[t("span",{staticClass:"span-label"},[e._v(e._s(e.$t("sendData.table.text")))]),t("div",{staticClass:"content row-val",domProps:{innerHTML:e._s(e.filterBaseTag(e.emailArr[e.currentIndex].content))}})])]),t("div",{staticClass:"blogger-table-box"},[t("div",{staticClass:"blogger-title"},[e._v(e._s(e.$t("edm2.mailEn16")))]),t("WTable",{ref:"mailTable",staticClass:"mail-detail-table fixed-pagination",attrs:{isOutboxDetail:!0,"row-key":"id",tableConfig:{selection:!0,selectionFixed:!0},tableColumnConfig:e.tableColumnConfig,tableData:e.tableData,height:e.tableHeight,"max-height":e.tableHeight,loading:e.loading,total:e.total,pageSize:e.searchForm.pageSize,pageNum:e.searchForm.currentPage},on:{"update:pageSize":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page-size":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:pageNum":function(t){return e.$set(e.searchForm,"currentPage",t)},"update:page-num":function(t){return e.$set(e.searchForm,"currentPage",t)},changeSize:function(t){return e.getOutboxDetailBlogger()},changeCurrent:function(t){return e.getOutboxDetailBlogger()},"selection-change":e.selectTableRow,confirmSearch:e.confirmSearch,handleBtnClick:e.handleBtnClick},scopedSlots:e._u([{key:"blogger",fn:function({data:n}){return[t("BloggerColumn",{attrs:{bloggerAvatar:n.scope.bloggerAvatar,bloggerName:n.scope.bloggerName,bloggerUsername:n.scope.bloggerUsername,bloggerId:n.scope.bloggerId,platform:n.scope.platform,bloggerInfo:n.scope},on:{toBloggerDeatil:e.toBloggerDeatil}})]}},{key:"platform",fn:function({data:n}){return["youtube"==n.scope.platform?t("img",{attrs:{src:"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/youtube.png"}}):e._e(),"tiktok"==n.scope.platform?t("img",{attrs:{src:"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/tiktok.png"}}):e._e(),"instagram"==n.scope.platform?t("img",{attrs:{src:"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/ins.png"}}):e._e()]}},{key:"popularizePlanName",fn:function({data:n}){return[n.scope.popularizePlanName?t("span",{staticClass:"plan"},[e._v(e._s(n.scope.popularizePlanName))]):e._e(),-1==n.scope.popularizePlanId?t("span",{staticClass:"no-plan",on:{click:function(t){return e.openPlan(n.scope)}}},[t("i",{staticClass:"dss-iconfont icon-add_dss"}),e._v(e._s(e.$t("inboxDetail.plan")))]):e._e()]}},{key:"isRead",fn:function({data:n}){return[1==n.scope.isRead?t("span",[e._v(" "+e._s(e.$t("inboxMail.search.unRead"))+" ")]):e._e(),2==n.scope.isRead?t("span",[e._v(" "+e._s(e.$t("inboxMail.search.read"))+" ")]):e._e()]}},{key:"isReply",fn:function({data:n}){return[0==n.scope.isReply?t("span",[e._v(" "+e._s(e.$t("edm2.mailEn21"))+" ")]):e._e(),1==n.scope.isReply?t("span",[e._v(" "+e._s(e.$t("edm2.mailEn22"))+" ")]):e._e()]}}],null,!1,2825512865)})],1),e.planVisible?t("EmailPlan",{attrs:{visible:e.planVisible,upbEsId:e.rowData.upbEsId,planIdRel:e.rowData.planId,bloggerId:e.rowData.bloggerId,platform:e.rowData.platform,pageSource:"outboxDetail",rowData:e.rowData,detailData:e.emailArr[0]},on:{"update:visible":function(t){e.planVisible=t},change:function(t){return e.getOutboxDetailBlogger()}}}):e._e()],1):e._e()},LFe=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"re_box"},[t("i",{staticClass:"dss-iconfont btn_con"},[e._v("")]),t("span",{staticClass:"btn_con"},[e._v("撤回")])])}],zFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"blogger-column"},[t("el-image",{attrs:{src:e.bloggerAvatar},nativeOn:{click:function(t){return t.stopPropagation(),e.toDetail.apply(null,arguments)}}},[t("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[t("i",{staticClass:"el-icon-picture-outline"})])]),t("el-tooltip",{attrs:{"popper-class":"wt-tooltip-bloger-name",placement:"top"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticClass:"nickname mb8"},[e._v(e._s(e.bloggerName))]),t("div",{directives:[{name:"show",rawName:"v-show",value:""!==e.bloggerUsername,expression:"bloggerUsername !== ''"}],staticClass:"username"},[e._v(" "+e._s(e.$t("edm5.v41"))+e._s(e.bloggerUsername)+" ")])]),t("span",{staticClass:"bloggerName",on:{click:function(t){return t.stopPropagation(),e.toDetail.apply(null,arguments)}}},[e._v(" "+e._s(e.bloggerName||"-")+" ")])]),e.showRcommend?t("span",{staticClass:"recommend",on:{click:function(t){return t.stopPropagation(),e.onRecommend.apply(null,arguments)}}},[t("i",{staticClass:"iconfont",class:{"icon-crm-recommend0":0===e.isRecommend}})]):e._e(),1===e.isRecommend?t("span",{staticClass:"iconfont icon-crm-recommend1 icon-cursor",on:{click:function(t){return t.stopPropagation(),e.onRecommend.apply(null,arguments)}}}):e._e()],1)},VFe=[],HFe={props:{bloggerUsername:{type:String,default:""},bloggerAvatar:{type:String,default:""},showRcommend:{type:Boolean,default:!1},isRecommend:{type:Number,default:-1},bloggerName:{type:String,default:""},bloggerId:{type:String,default:""},planBlogerId:{type:String,default:""},platform:{type:String,default:""},bloggerInfo:{type:Object,default:()=>({})}},methods:{toDetail(){return this.bloggerId?(this.$emit("toBloggerDeatil",this.bloggerInfo),!1):this.$message.error("红人id不能为空!")},onRecommend(){this.$emit("recommendHandle",this.bloggerId,this.isRecommend)}}},UFe=HFe,WFe=or(UFe,zFe,VFe,!1,null,"2b58a2e1",null),qFe=WFe.exports,YFe={name:"detail",components:{WTable:UIe,BloggerColumn:qFe,EmailPlan:Tu},data(){return{emailArr:[],currentIndex:0,tableHeight:500,total:0,loading:!1,tableData:[],tableColumnConfig:[{label:Mc.t("writeMail.blogger"),scope:"blogger",filter:"input"},{label:Mc.t("edm2.mailEn17"),prop:"country"},{label:Mc.t("edm2.mailEn18"),scope:"platform"},{label:Mc.t("writeMail.fans_num"),prop:"fans",format:"numFormat"},{label:Mc.t("inboxDetail.planVal"),scope:"popularizePlanName"},{label:Mc.t("receiveData.table.isRead"),scope:"isRead",filter:"readRadio"},{label:Mc.t("edm2.mailEn19"),scope:"isReply",filter:"replyRadio"}],searchForm:{pageSize:20,currentPage:1,id:this.$route.query.id,bloggerName:"",isRead:"",isReply:""},isShrink:!0,planVisible:!1,rowData:null}},computed:{sendEmail(){return this.emailArr[0]?.from||"-"}},created(){this.init(),this.getOutboxDetailBlogger()},mounted(){localStorage.setItem("searchFlag",!0)},methods:{recallMail(){this.$confirm("请确认是否撤回该邮件?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{ku(this.$route.query.id).then((e=>{"0"==e.code?(this.$message({type:"success",showClose:!0,duration:7e3,message:"撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"}),this.backToOutbox()):this.$message({type:"error",showClose:!0,duration:7e3,message:e.message})}))})).catch((()=>{}))},toBloggerDeatil(e){this.$emit("toBloggerDeatil",e)},backToOutbox(){this.$router.go(-1)},openPlan(e){this.planVisible=!0,this.rowData=e},confirmSearch(e,t){"blogger"===t?this.searchForm.bloggerName=e:"isRead"===t?this.searchForm.isRead=e:"isReply"===t&&(this.searchForm.isReply=e),this.getOutboxDetailBlogger()},getOutboxDetailBlogger(){this.loading=!0;let e=3==this.$route.query.enterType?Su:Cu;e(this.searchForm).then((e=>{"0"===e.code?(this.tableData=e.data.rows,this.total=e.data.total):this.$message({type:"error",message:e.message,customClass:"custom-message"})})).finally((()=>{this.loading=!1}))},init(){_u({id:this.$route.query.id,enterType:this.$route.query.enterType}).then((e=>{"0"===e.code?this.emailArr=e.data:this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},handleShowFile(e){const t=JSON.parse(JSON.stringify(e));return this.isShrink?t.slice(0,4):t},downLoadFileItem(e){Ms(e.link,e.name)},downloadAll(e){e.forEach((e=>{Ms(e.link,e.name)}))},selectTableRow(){},filterBaseTag(e){return e&&(e=e.replace("https://pixel.xin/emailControl.php?mid=","").replace("https://pixel.xin/hub.gif?mid=","").replace(new RegExp("unsubscribe","g"),"").replace(/\r\n/g,"<br />").replace(/ツ?/g,"").replace(/<base.*?(?:>|\/>)/gi,"").replace(/&gt; &gt;/g,"<br /><br />")),e},handleBtnClick(e,t){if("inviteAgain"==e.key){let e=[];t.map((t=>{e.push({bloggerId:t.bloggerId,bloggerName:t.bloggerName,bloggerUsername:t.bloggerUsername,bloggerAvatar:t.bloggerAvatar,country:t.country,platform:t.platform,fansNum:t.fans,popularizePlanId:t.popularizePlanId,popularizePlanName:t.popularizePlanName,bloggerEmail:null,chooseSource:0,chooseSourceStr:"其他",favorName:null,favorId:null,id:`other-${t.bloggerId}`})})),localStorage.setItem("beforeSelected",JSON.stringify(e)),localStorage.setItem("resultRecipientData",JSON.stringify(e));const n=this.$router.resolve({path:"/write",query:{outboxId:Is(this.emailArr,"writeEmailId").join(",")}});window.open(n.href,"_blank"),this.clearChoose()}else this.$emit("handleBtnClick",e,t)},clearChoose(){this.$refs["mailTable"]&&this.$refs["mailTable"]?.removeChoose()}}},GFe=YFe,KFe=or(GFe,jFe,LFe,!1,null,"04c8ce88",null),XFe=KFe.exports,ZFe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-container page-overflow hidden-scrollbar"},[t("div",{staticClass:"wrap z-index2 mb24"},[t("div",{staticClass:"grid grid-cols-3"},[t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$i18n.t("blogMail.search_mail"))+":")]),t("el-input",{attrs:{placeholder:e.$i18n.t("common.please_input"),clearable:""},model:{value:e.searchForm.subject,callback:function(t){e.$set(e.searchForm,"subject",t)},expression:"searchForm.subject"}})],1),t("div",{staticClass:"search-item"},[t("button",{staticClass:"search-btn search-btn-face mr16",on:{click:function(t){e.searchForm.currentPage=1,e.init()}}},[e._v(" "+e._s(e.$i18n.t("searchButton.search"))+" ")]),t("button",{staticClass:"search-btn search-btn-linear",on:{click:function(t){return e.reset()}}},[e._v(" "+e._s(e.$i18n.t("searchButton.reset"))+" ")])]),"search_blogger"===e.sourcePage?t("div",{staticClass:"search-item"},[t("el-select",{attrs:{clearable:"",placeholder:e.$i18n.t("common.please_select")},on:{change:e=>{this.searchForm.userId=e,this.init()}},model:{value:e.searchForm.userId,callback:function(t){e.$set(e.searchForm,"userId",t)},expression:"searchForm.userId"}},e._l(e.subAccountOpts,(function(e){return t("el-option",{key:e.id,attrs:{label:e.nickname,value:e.id}})})),1)],1):e._e(),"plan_detail"===e.sourcePage&&""===e.taskId?t("div",{staticClass:"search-item"},[t("el-select",{attrs:{clearable:"",placeholder:e.$i18n.t("common.please_select")},on:{change:e=>{this.searchForm.popularizePlanId=e,this.init()}},model:{value:e.searchForm.popularizePlanId,callback:function(t){e.$set(e.searchForm,"popularizePlanId",t)},expression:"searchForm.popularizePlanId"}},e._l(e.planOpts,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e()])]),t("div",{staticClass:"mail-wrap legacy relative z-index2"},[t("div",{staticClass:"tool"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"tool-item mr8",on:{click:function(t){return e.init()}}},[t("i",{staticClass:"dss-iconfont icon-refresh-1"})]),t("div",{staticClass:"tool-item",on:{click:function(t){return e.del()}}},[t("i",{staticClass:"dss-iconfont icon-delete-2"})])])]),t("div",{ref:"mail",staticClass:"mail-body"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.tableData,"header-cell-class-name":e.headCellClass,"cell-class-name":e.cellClass,"row-class-name":e.rowClass,"row-key":e.getRowKeys,height:e.tableHeight},on:{"selection-change":e.changeSelection,"row-click":e.skipDetail}},[t("el-table-column",{attrs:{"reserve-selection":!0,type:"selection",align:"center",width:"48"}}),t("el-table-column",{attrs:{width:"80"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("span",{style:{color:"2"==n.isRead?"#F75277":"#666666"}},[e._v(e._s("2"==n.isRead?`${e.$i18n.t("blogMail.read")}`:`${e.$i18n.t("blogMail.unread")}`))])]}}])}),t("el-table-column",{attrs:{prop:"bloggerName",width:"200"}}),"plan_detail"!==e.sourcePage?t("el-table-column",{attrs:{"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-task flex items-center"},[n.taskName?t("div",{on:{click:function(t){return t.stopPropagation(),e.skipTaskDetail(n.taskId)}}},[t("i",{staticClass:"dss-iconfont icon-task"}),t("span",{staticClass:"beyond_eip"},[e._v(" "+e._s(n.taskName)+" ")])]):e._e(),n.taskName?e._e():t("span",[e._v(e._s(e.$i18n.t("outboxMail.no_task")))])])]}}],null,!1,2755730399)}):e._e(),"plan_detail"===e.sourcePage?t("el-table-column",{attrs:{"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-task flex items-center"},[n.popularizePlanName?t("div",{on:{click:function(t){return t.stopPropagation(),e.skipPlanDetail(n)}}},[t("i",{staticClass:"dss-iconfont icon-task"}),t("span",{staticClass:"beyond_eip"},[e._v(" "+e._s(n.popularizePlanName)+" ")])]):e._e(),n.popularizePlanName?e._e():t("span",[e._v(e._s(e.$i18n.t("deliveryTime.no_promotion_plan")))])])]}}],null,!1,1375124427)}):e._e(),t("el-table-column",{scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"mail-content"},[t("span",{staticClass:"mail-subject cursor-pointer beyond_eip mr6"},[e._v(" "+e._s(n.subject)+" ")]),e._v(" - "),t("span",{staticClass:"beyond_eip cursor-pointer ml6",domProps:{innerHTML:e._s(e.filterHtmlTag(n.content))}})])]}}])}),t("el-table-column",{attrs:{width:"80"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"box-tag",class:1==n.type?"box-tag-receive":"box-tag-send"},[1==n.type?t("span",[e._v(e._s(e.$i18n.t("blogMail.receive_mail")))]):e._e(),2==n.type?t("span",[e._v(e._s(e.$i18n.t("blogMail.send_mail")))]):e._e()])]}}])}),t("el-table-column",{attrs:{width:"160"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(e._s(t.createTime))]}}])})],1)],1),t("div",{staticClass:"mail-foot mb16"},[t("el-pagination",{attrs:{"current-page":e.searchForm.currentPage,total:e.tableTotal,"page-size":e.searchForm.pageSize,background:"",layout:"total, sizes, prev, pager, next, jumper"},on:{"current-change":e.changePage,"size-change":e.changeSize}})],1)])])},JFe=[];async function QFe(e){let t=await Pa("/edm/mail/emailComeGo",e);return t}async function eBe(e){let t=await Pa("/edm/mail/emailComeGo2",e);return t}async function tBe(e){let t=await Ia("/edm/mail/delComeGo",e);return t}async function nBe(e){let t=await Ta("/edm/mail/sonFather",e);return t}async function iBe(e){let t=await Pa("/user/popularize/planListToRead",e);return t}async function rBe(e){let t=await Pa("/edm/mail/emailComeGoByPopularizePlan",e);return t}var oBe={name:"blogEmail",props:{sourcePage:{type:String,default:"search_blogger"},taskId:{type:[Number,String],default:""},bloggerId:{type:[Number,String],default:""}},data(){return{searchForm:{subject:"",bloggerId:this.bloggerId,currentPage:1,pageSize:20,popularizePlanId:this.taskId},loading:!1,tableHeight:0,tableData:[],tableTotal:0,selectData:[],subAccountOpts:[],planOpts:[]}},mounted(){this.$nextTick((()=>{this.tableHeight=this.$refs.mail.offsetHeight,this.init(),this.getSubAccountOpts(),this.getAllPlanOpts()}))},methods:{init(){this.loading=!0;let e="search_blogger"===this.sourcePage?QFe:"plan_detail"===this.sourcePage?rBe:eBe;"search_blogger"===this.sourcePage&&(this.searchForm.taskId=this.taskId),e(this.searchForm).then((e=>{this.loading=!1,0==e.code?(this.tableData=e.data.rows,this.tableTotal=e.data.total):this.$message.error(e.message)}))},getSubAccountOpts(){nBe().then((e=>{"0"===e.code&&(this.subAccountOpts=e.data)}))},getAllPlanOpts(){iBe().then((e=>{"0"===e.code&&(this.planOpts=e.data)}))},changePage(e){this.searchForm.currentPage=e,this.init()},changeSize(e){this.searchForm.currentPage=1,this.searchForm.pageSize=e,this.init()},del(){this.selectData.length?this.$confirm(this.$t("inboxTable.delMail"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning"}).then((()=>{tBe({delOneMailReqs:this.selectData}).then((e=>{0==e.code?(this.clearTableData(),this.init(),this.$message({type:"success",message:`${this.$i18n.t("outboxMail.success")}`,duration:1500})):this.$message.error(e.message)}))})).catch((()=>{})):this.$message({type:"warning",message:`${this.$i18n.t("outboxMail.choose")}`})},reset(){this.searchForm.subject="",this.init()},getRowKeys(e){return e.id},changeSelection(e){this.selectData=[],e.forEach((e=>{this.selectData.push({id:e.id,type:e.type})}))},clearTableData(){this.$refs.table.clearSelection(),this.selectData=[]},headCellClass(){return"head"},rowClass(){return"row"},cellClass(){return"box-cell"},filterHtmlTag(e){return e&&(e=e.replace(/<\/?.+?\/?>/g,""),e=e.replace(new RegExp("&nbsp;","g")," ")),e},skipDetail(e){this.$emit("blogMailSkipDetail",e.id,e.type,e)},skipTaskDetail(e){this.$emit("skipTaskDetail",e)},skipPlanDetail(e){this.$emit("skipPlanDetail",e)}}},aBe=oBe,sBe=or(aBe,ZFe,JFe,!1,null,"889a1e46",null),lBe=sBe.exports,cBe=function(){var e=this,t=e._self._c;return e.show?t("div",{staticClass:"notification",on:{click:e.changeRouter}},[t("div",{staticClass:"notification-title"},[t("span",{staticClass:"icon-container"},[t("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":"#icon-mail"}})])]),t("span",{staticClass:"icon-txt"},[e._v(e._s(this.$t("newMail.title"))+" ")]),t("span",{staticClass:"el-icon-close close",on:{click:function(t){return t.stopPropagation(),e.handleClose.apply(null,arguments)}}})]),t("div",{staticClass:"content"},[t("span",[e._v(e._s(this.$t("newMail.content"))+"!")]),(e.isAi,e._e())])]):e._e()},uBe=[],dBe=(i(8333),{name:"edm-maillNotice",props:{title:{type:String,default:""},content:{type:String,default:""},showTime:{type:Number,default:6e4},requestTime:{type:Number,default:18e4},goBackUrl:{type:String,default:"/InboxView"}},data(){return{timer:null,timer_layer:null,show:!1,isAi:0}},computed:{style(){return{}}},mounted(){this.getNotice()},methods:{changeRouter(){let e=this.$route.path;e!==this.goBackUrl&&this.$router.push({path:this.goBackUrl}),this.$bus.$emit("mailTip")},handleClose(){this.show=!1},getNotice(){Na().then((e=>{if(e){if(e.newMailCount>0){this.isAi=1===e.isAi;let t=this.$route.path;if(t===this.goBackUrl){let e=Math.floor(1e7*Math.random())+1;this.$router.push({path:t,query:{nums:e}})}this.show=!0,clearTimeout(this.timer_layer),this.timer_layer=setTimeout((()=>{this.show=!1}),this.showTime)}clearTimeout(this.timer),this.timer=setTimeout((()=>{this.getNotice()}),this.requestTime)}}))}}}),hBe=dBe,pBe=or(hBe,cBe,uBe,!1,null,"31645193",null),fBe=pBe.exports,mBe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-container page-overflow hidden-scrollbar"},[t("bread-crumb",{staticClass:"mb24 z-index2"}),t("div",{staticClass:"main"},[t("side-menu",{attrs:{"menu-data":e.menuData,"menu-active-index":e.menuActiveIndex},on:{selectMenu:e.selectMenu}}),t("div",{staticClass:"main-body"},[0===e.menuActiveIndex?t("send-data"):e._e(),1===e.menuActiveIndex?t("receive-data"):e._e()],1)],1)],1)},gBe=[],vBe=function(){var e=this,t=e._self._c;return t("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[t("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(n,i){return t("el-breadcrumb-item",{key:n.path},["noRedirect"===n.redirect||i==e.levelList.length-1?t("span",{staticClass:"no-redirect"},[e._v(" "+e._s(n.meta.title)+" ")]):t("a",{on:{click:function(t){return t.preventDefault(),e.handleLink(n)}}},[e._v(e._s(n.meta.title))])])})),1)],1)},yBe=[],bBe=i(5302),wBe=i.n(bBe),_Be={data(){return{levelList:null}},watch:{$route(){this.getBreadcrumb()}},created(){this.getBreadcrumb()},methods:{getBreadcrumb(){const e=this.$route.matched.filter((e=>e.meta&&e.meta.title));this.levelList=e.filter((e=>e.meta&&e.meta.title&&!1!==e.meta.breadcrumb))},pathCompile(e){const{params:t}=this.$route;var n=wBe().compile(e);return n(t)},handleLink(e){const{redirect:t,path:n}=e;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},CBe=_Be,xBe=or(CBe,vBe,yBe,!1,null,"48b1570f",null),SBe=xBe.exports,kBe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"menu mr24 z-index2"},[t("ul",e._l(e.menuData,(function(n,i){return t("li",{key:i,class:e.menuActiveIndex===i?"menu-active":"",on:{click:function(t){return e.selectMenu(i)}}},[t("p",[e._v(e._s(n))])])})),0)])},EBe=[],DBe={props:{menuActiveIndex:{default:0,type:Number},menuData:{default:()=>[],type:Array}},methods:{selectMenu(e){this.$emit("selectMenu",e)}}},ABe=DBe,TBe=or(ABe,kBe,EBe,!1,null,"511ba295",null),OBe=TBe.exports,IBe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"table-container"},[t("div",{staticClass:"grid grid-cols-3 mb8"},[t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.sendingTime")))]),t("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":" ","start-placeholder":"开始","end-placeholder":"结束"},model:{value:e.searchForm.send_time,callback:function(t){e.$set(e.searchForm,"send_time",t)},expression:"searchForm.send_time"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.phoneNumber")))]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.sender_account,callback:function(t){e.$set(e.searchForm,"sender_account",t)},expression:"searchForm.sender_account"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.companyName")))]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.company_name,callback:function(t){e.$set(e.searchForm,"company_name",t)},expression:"searchForm.company_name"}})],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.addressee")))]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.recipient_name,callback:function(t){e.$set(e.searchForm,"recipient_name",t)},expression:"searchForm.recipient_name"}})],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.textSearch")))]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.content,callback:function(t){e.$set(e.searchForm,"content",t)},expression:"searchForm.content"}})],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.send")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.send_status,callback:function(t){e.$set(e.searchForm,"send_status",t)},expression:"searchForm.send_status"}},[t("el-option",{attrs:{value:0,label:"待发送"}}),t("el-option",{attrs:{value:1,label:"发送成功"}}),t("el-option",{attrs:{value:2,label:"发送失败"}}),t("el-option",{attrs:{value:3,label:"待审核"}}),t("el-option",{attrs:{value:5,label:"驳回"}})],1)],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.open")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.read_status,callback:function(t){e.$set(e.searchForm,"read_status",t)},expression:"searchForm.read_status"}},[t("el-option",{attrs:{value:1,label:e.$t("edm5.v46")}}),t("el-option",{attrs:{value:2,label:e.$t("edm5.v47")}})],1)],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.LinkClick")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.click_link_status,callback:function(t){e.$set(e.searchForm,"click_link_status",t)},expression:"searchForm.click_link_status"}},[t("el-option",{attrs:{value:0,label:"否"}}),t("el-option",{attrs:{value:1,label:e.$t("edm5.v48")}})],1)],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.reply")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.reply_status,callback:function(t){e.$set(e.searchForm,"reply_status",t)},expression:"searchForm.reply_status"}},[t("el-option",{attrs:{value:0,label:"否"}}),t("el-option",{attrs:{value:1,label:e.$t("edm5.v48")}})],1)],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.return")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.return_status,callback:function(t){e.$set(e.searchForm,"return_status",t)},expression:"searchForm.return_status"}},[t("el-option",{attrs:{value:0,label:"否"}}),t("el-option",{attrs:{value:1,label:e.$t("edm5.v48")}})],1)],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.unsubscribe")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.unsubscribe_status,callback:function(t){e.$set(e.searchForm,"unsubscribe_status",t)},expression:"searchForm.unsubscribe_status"}},[t("el-option",{attrs:{value:0,label:"否"}}),t("el-option",{attrs:{value:1,label:e.$t("edm5.v48")}})],1)],1),e.isShrink?e._e():t("div",{staticClass:"search-item mr40"},[t("span",[e._v(e._s(e.$t("sendData.search.emailComplaints")))]),t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.spam_complaints_status,callback:function(t){e.$set(e.searchForm,"spam_complaints_status",t)},expression:"searchForm.spam_complaints_status"}},[t("el-option",{attrs:{value:0,label:"否"}}),t("el-option",{attrs:{value:1,label:e.$t("edm5.v48")}})],1)],1),t("div",{staticClass:"search-item col-span-3"},[t("button",{staticClass:"search-btn search-btn-face mr16",on:{click:function(t){e.searchForm.page=1,e.initPageData()}}},[e._v(" "+e._s(e.$t("sendData.search.search"))+" ")]),t("el-button",{staticClass:"cutom-btnLoading",attrs:{type:"primary",loading:e.btnloading},on:{click:function(t){return e.down()}}},[e._v(e._s(this.btnloading?"下载中":"下载"))]),t("button",{staticClass:"search-btn-txt",on:{click:e.shrinkSearch}},[e._v(" "+e._s(e.isShrink?e.$t("sendData.search.unfold"):e.$t("sendData.search.collapse"))+" "),t("i",{staticClass:"dss-iconfont icon-arrow search-btn-icon",style:e.isShrink?"transform: rotate(180deg);":""})])],1)]),t("div",{staticClass:"table-body"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.tableData,"header-cell-class-name":e.tableHeadClass,"cell-class-name":e.tableCellClass,height:"700px",border:""}},[t("el-table-column",{attrs:{prop:"gmtCreate",label:e.$t("sendData.table.createTime"),width:"110","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"userNameOrMobile",label:e.$t("sendData.table.sender"),width:"80","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"nickName",label:e.$t("sendData.table.name"),width:"80","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"companyName",label:e.$t("sendData.table.company"),width:"90","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{label:e.$t("sendData.table.addressee"),width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("p",{staticClass:"cursor-pointer",staticStyle:{color:"#4aa8ff"},on:{click:function(t){return e.skipBlogDetail(n.bloggerId)}}},[e._v(" "+e._s(n.bloggerName)+" ")])]}}])}),t("el-table-column",{attrs:{prop:"subject",label:e.$t("sendData.table.subject"),width:"150","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{label:e.$t("sendData.table.text"),width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(e.filterHtmlTag(t.contents))+" ")]}}])}),t("el-table-column",{attrs:{label:e.$t("sendData.table.send"),width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return["发送失败"===n.statusTxt&&n.message?t("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[t("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(n.message))]),"发送失败"===n.statusTxt&&n.message?t("p",[e._v(" 发送失败 ")]):e._e()]):e._e(),t("p",[e._v(" "+e._s(n.statusTxt)+" ")])]}}])}),t("el-table-column",{attrs:{label:"打开",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(2===t.isRead?"是":"否")+" ")]}}])}),t("el-table-column",{attrs:{label:"链接点击",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(1===t.isClick?"是":"否")+" ")]}}])}),t("el-table-column",{attrs:{label:"回复",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(1===t.isReply?"是":"否")+" ")]}}])}),t("el-table-column",{attrs:{label:"退回",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[1===n.isReject&&n.message?t("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[t("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(n.message))]),0===n.isReject&&n.message?t("p",[e._v(" 否 ")]):e._e()]):e._e(),t("p",[e._v(" "+e._s(1===n.isReject?"是":"否"))])]}}])}),t("el-table-column",{attrs:{label:"退订",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(1===t.isUnsub?"是":"否")+" ")]}}])}),t("el-table-column",{attrs:{label:"垃圾邮件投诉","min-width":"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(1===t.isSpam?"是":"否")+" ")]}}])}),t("el-table-column",{attrs:{label:"操作",width:"130",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"table-tool"},[t("button",{staticClass:"table-tool-btn-txt",on:{click:function(t){return e.skipDetail(n.id)}}},[e._v(" 查看 ")]),t("div",{staticClass:"table-tool-btn-split"}),0===n.aiReply?t("button",{staticClass:"table-tool-btn-txt",on:{click:function(t){e.ai_reply_id=n.id,e.aiReplyContent="",e.isShowAi=!0}}},[e._v(" AI回复 ")]):e._e(),1===n.aiReply?t("button",{staticClass:"table-tool-btn-txt",on:{click:function(t){e.ai_reply_id=n.id,e.getAiReplyData(n.id)}}},[e._v(" 查看回复 ")]):e._e()])]}}])})],1)],1),t("div",{staticClass:"table-foot"},[t("el-pagination",{attrs:{"current-page":e.searchForm.page,total:e.tableTotal,"page-size":e.searchForm.page_size,background:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":e.changePage}})],1),e.isShowAi?t("editor",{attrs:{ai_reply_id:e.ai_reply_id,"ai-reply-content":e.aiReplyContent},on:{init:e.initPageData,close:e.close}}):e._e()],1)},PBe=[],$Be=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mask"},[t("div",{staticClass:"main"},[t("div",{staticClass:"head"},[t("h1",[e._v("AI回复")]),t("i",{staticClass:"dss-iconfont icon-close",on:{click:e.close}})]),t("div",{staticClass:"body"},[t("div",{staticClass:"editor-main mb24"},[t("Toolbar",{attrs:{editor:e.editor,"default-config":e.toolbarConfig}}),t("Editor",{staticStyle:{height:"376px","overflow-y":"hidden"},attrs:{"default-config":e.editorConfig},on:{onCreated:e.onCreated},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),t("button",{staticClass:"btn",attrs:{disabled:e.isSending},on:{click:e.getContent}},[e.isSending?t("i",{staticClass:"el-icon-loading"}):e._e(),e._v(" 发 送 ")])])])])},FBe=[],BBe={name:"edm-editor",components:{Toolbar:iOe,Editor:nOe},props:{ai_reply_id:{default:0,type:Number},aiReplyContent:{default:"",type:String}},data(){return{editor:null,content:"",isSending:!1,toolbarConfig:{excludeKeys:["blockquote","|","fullScreen","codeBlock","group-video"]},editorConfig:{MENU_CONF:{uploadImage:{server:"/upload/file",async customUpload(e,t){const n=new FormData;n.append("file",e),uploadFile(n).then((e=>{t(e.url)}))}}}}}},methods:{onCreated(e){this.editor=Object.seal(e),this.aiReplyContent&&this.editor.setHtml(this.aiReplyContent)},getContent(){this.editor.isEmpty()?this.$message({type:"warning",message:"请输入邮件正文内容"}):this.aiReplyContent?this.updateAiReply():this.createAiReply()},createAiReply(){const e={replyId:this.ai_reply_id,content:this.editor.getHtml()};this.isSending=!0,L$e(e).then((e=>{this.isSending=!1,"0"===e.code?(this.close(),this.$emit("init"),this.$message({type:"success",message:"发送成功"})):this.$message({type:"warning",message:"发送失败"})}))},updateAiReply(){const e={replyId:this.ai_reply_id,content:this.editor.getHtml()};this.isSending=!0,L$e(e).then((e=>{this.isSending=!1,"0"===e.code?(this.close(),this.$emit("init"),this.$message({type:"success",message:"发送成功"})):this.$message({type:"warning",message:"发送失败"})}))},close(){this.$emit("close",!1)}}},MBe=BBe,NBe=or(MBe,$Be,FBe,!1,null,"16051201",null),RBe=NBe.exports,jBe={name:"edm-sendPage",components:{Editor:RBe},data(){return{btnloading:!1,searchForm:{send_time:Ps(7),sender_account:"",company_name:"",recipient_name:"",content:"",commit_status:"",send_status:"",read_status:"",click_link_status:"",reply_status:"",return_status:"",unsubscribe_status:"",spam_complaints_status:"",page:1,page_size:10},tableData:[],tableTotal:0,isShrink:!1,loading:!1,isShowAi:!1,ai_reply_id:"",aiReplyContent:""}},mounted(){this.initPageData()},methods:{initPageData(){const e={startTime:this.searchForm.send_time?this.searchForm.send_time[0]+" 00:00:00":"",endTime:this.searchForm.send_time?this.searchForm.send_time[1]+" 23:59:59":"",mobile:this.searchForm.sender_account,companyName:this.searchForm.company_name,addressee:this.searchForm.recipient_name,content:this.searchForm.content,status:this.searchForm.send_status,isRead:this.searchForm.read_status,isClick:this.searchForm.click_link_status,isReply:this.searchForm.reply_status,isReject:this.searchForm.return_status,isUnsub:this.searchForm.unsubscribe_status,isSpam:this.searchForm.spam_complaints_status,currentPage:this.searchForm.page,pageSize:this.searchForm.page_size};this.loading=!0,F$e(e).then((e=>{this.loading=!1,e&&(e.data.rows.map((e=>{let t=e.status;switch(t){case 0:e.statusTxt="待发送";break;case 1:e.statusTxt="发送成功";break;case 2:e.statusTxt="发送失败";break;case 3:e.statusTxt="待审核";break;case 5:e.statusTxt="驳回";break;default:break}})),this.tableData=e.data.rows,this.tableTotal=e.data.total)}))},down(){const e={startTime:this.searchForm.send_time?this.searchForm.send_time[0]+" 00:00:00":"",endTime:this.searchForm.send_time?this.searchForm.send_time[1]+" 23:59:59":"",mobile:this.searchForm.sender_account,companyName:this.searchForm.company_name,addressee:this.searchForm.recipient_name,content:this.searchForm.content,status:this.searchForm.send_status,isRead:this.searchForm.read_status,isClick:this.searchForm.click_link_status,isReply:this.searchForm.reply_status,isReject:this.searchForm.return_status,isUnsub:this.searchForm.unsubscribe_status,isSpam:this.searchForm.spam_complaints_status,currentPage:this.searchForm.page,pageSize:this.searchForm.page_size};this.btnloading=!0,V$e(e).then((e=>{if(e){const t=document.createElement("a");let n=new Blob([e],{type:"application/x-download"});t.style.display="none",t.href=URL.createObjectURL(n);let i=$s();t.setAttribute("download",`发信数据-${i}.xlsx`),document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(t.href),this.btnloading=!1}}))},changePage(e){this.searchForm.page=e,this.initPageData()},getAiReplyData(e){j$e(e).then((e=>{"0"===e.code&&(this.aiReplyContent=e.data.content,this.isShowAi=!0)}))},close(){this.isShowAi=!1},skipBlogDetail(e){if(e&&""!==e){const t=this.$router.resolve({path:"/blogDetail",query:{id:e}});window.open(t.href,"_blank")}},skipDetail(e){const t=this.$router.resolve({path:"/sendDetail",query:{id:e}});window.open(t.href,"_blank")},reset(){this.searchForm.send_time=Ps(7),this.searchForm.sender_account="",this.searchForm.company_name="",this.searchForm.recipient_name="",this.searchForm.content="",this.searchForm.commit_status="",this.searchForm.send_status="",this.searchForm.read_status="",this.searchForm.click_link_status="",this.searchForm.reply_status="",this.searchForm.return_status="",this.searchForm.unsubscribe_status="",this.searchForm.spam_complaints_status=""},shrinkSearch(){this.isShrink=!this.isShrink},filterHtmlTag(e){return e?(e=e.replace(/<\/?.+?\/?>/g,""),e):"-"},tableHeadClass({columnIndex:e}){return 0===e?"table-main-head-left":15===e?"table-main-head-right":"table-main-head"},tableCellClass(){return"table-main-cell"}}},LBe=jBe,zBe=or(LBe,IBe,PBe,!1,null,"5fecc8a6",null),VBe=zBe.exports,HBe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"table-container"},[t("div",{staticClass:"grid grid-cols-3 mb8"},[t("div",{staticClass:"search-item mr40"},[t("span",[e._v("收信时间:")]),t("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":" ","start-placeholder":"开始","end-placeholder":"结束"},model:{value:e.searchForm.recipient_time,callback:function(t){e.$set(e.searchForm,"recipient_time",t)},expression:"searchForm.recipient_time"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v("发件人:")]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.sender_name,callback:function(t){e.$set(e.searchForm,"sender_name",t)},expression:"searchForm.sender_name"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v("收件账号:")]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.recipient_account,callback:function(t){e.$set(e.searchForm,"recipient_account",t)},expression:"searchForm.recipient_account"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v("收件姓名:")]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.recipient_name,callback:function(t){e.$set(e.searchForm,"recipient_name",t)},expression:"searchForm.recipient_name"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v("公司名称:")]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.company_name,callback:function(t){e.$set(e.searchForm,"company_name",t)},expression:"searchForm.company_name"}})],1),t("div",{staticClass:"search-item mr40"},[t("span",[e._v("正文检索:")]),t("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.searchForm.content,callback:function(t){e.$set(e.searchForm,"content",t)},expression:"searchForm.content"}})],1),t("div",{staticClass:"search-item col-span-3"},[t("button",{staticClass:"search-btn search-btn-face mr16",on:{click:function(t){e.searchForm.page=1,e.initPageData()}}},[e._v(" 查 询 ")]),t("el-button",{staticClass:"cutom-btnLoading",attrs:{type:"primary",loading:e.btnloading},on:{click:function(t){return e.down()}}},[e._v(e._s(this.btnloading?"下载中":"下载"))]),t("button",{staticClass:"search-btn search-btn-linear mr24",on:{click:e.reset}},[e._v(" 重 置 ")])],1)]),t("div",{staticClass:"table-body"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.tableData,"header-cell-class-name":e.tableHeadClass,"cell-class-name":e.tableCellClass,height:"700px",border:""}},[t("el-table-column",{attrs:{prop:"gmtCreate",label:"收件时间",width:"110","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"nameAddresser",label:"发件人",width:"110","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"usernameMobile",label:"收件人",width:"80","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"nickName",label:"姓名",width:"80","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"companyName",label:"公司",width:"90","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"subject",label:"主题",width:"150","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{label:"正文","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(e.filterHtmlTag(t.contents))+" ")]}}])}),t("el-table-column",{attrs:{label:"已读未读",width:"150",align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._v(" "+e._s(1===t.isRead?e.$t("edm5.v46"):e.$t("edm5.v47"))+" ")]}}])}),t("el-table-column",{attrs:{label:"操作",width:"130",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function({row:n}){return[t("div",{staticClass:"table-tool"},[t("button",{staticClass:"table-tool-btn-txt",on:{click:function(t){return e.skipDetail(n)}}},[e._v(" 查看 ")])])]}}])})],1)],1),t("div",{staticClass:"table-foot"},[t("el-pagination",{attrs:{"current-page":e.searchForm.page,total:e.tableTotal,"page-size":e.searchForm.page_size,background:"",layout:"total, prev, pager, next, jumper"},on:{"current-change":e.changePage}})],1)])},UBe=[],WBe={name:"edm-receivePage",data(){return{btnloading:!1,searchForm:{recipient_time:Ps(7),sender_name:"",recipient_account:"",recipient_name:"",company_name:"",content:"",page:1,page_size:10},tableData:[],tableTotal:0,loading:!1}},mounted(){this.initPageData()},methods:{initPageData(){const e={startTime:this.searchForm.recipient_time?this.searchForm.recipient_time[0]+" 00:00:00":"",endTime:this.searchForm.recipient_time?this.searchForm.recipient_time[1]+" 23:59:59":"",sender:this.searchForm.sender_name,usernameMobile:this.searchForm.recipient_account,nickName:this.searchForm.recipient_name,companyName:this.searchForm.company_name,content:this.searchForm.content,currentPage:this.searchForm.page,pageSize:this.searchForm.page_size};this.loading=!0,B$e(e).then((e=>{this.loading=!1,"0"===e.code&&(this.tableData=e.data.rows,this.tableTotal=e.data.total)}))},down(){const e={startTime:this.searchForm.recipient_time?this.searchForm.recipient_time[0]+" 00:00:00":"",endTime:this.searchForm.recipient_time?this.searchForm.recipient_time[1]+" 23:59:59":"",sender:this.searchForm.sender_name,usernameMobile:this.searchForm.recipient_account,nickName:this.searchForm.recipient_name,companyName:this.searchForm.company_name,content:this.searchForm.content,currentPage:this.searchForm.page,pageSize:this.searchForm.page_size};this.btnloading=!0,z$e(e).then((e=>{if(e){const t=document.createElement("a");let n=new Blob([e],{type:"application/x-download"});t.style.display="none",t.href=URL.createObjectURL(n);let i=$s();t.setAttribute("download",`收信数据-${i}.xlsx`),document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(t.href),this.btnloading=!1}}))},changePage(e){this.searchForm.page=e,this.initPageData()},skipDetail(e){const t=this.$router.resolve({path:"/receiveDetail",query:{id:e.id,chatId:e.chatId}});window.open(t.href,"_blank")},reset(){this.searchForm.recipient_time=Ps(7),this.searchForm.sender_name="",this.searchForm.recipient_account="",this.searchForm.recipient_name="",this.searchForm.company_name="",this.searchForm.content=""},filterHtmlTag(e){return e?(e=e.replace(/<\/?.+?\/?>/g,""),e):"-"},tableHeadClass({columnIndex:e}){return 0===e?"table-main-head-left":8===e?"table-main-head-right":"table-main-head"},tableCellClass(){return"table-main-cell"}}},qBe=WBe,YBe=or(qBe,HBe,UBe,!1,null,"4410779a",null),GBe=YBe.exports,KBe={name:"edm-maildata",components:{breadCrumb:SBe,sideMenu:OBe,SendData:VBe,ReceiveData:GBe},data(){return{menuData:["发信数据","收信数据"],menuActiveIndex:localStorage.getItem("edmMenuIndex")?1*localStorage.getItem("edmMenuIndex"):0}},methods:{selectMenu(e){this.menuActiveIndex=e,localStorage.setItem("edmMenuIndex",e)}}},XBe=KBe,ZBe=or(XBe,mBe,gBe,!1,null,"8922b0e2",null),JBe=ZBe.exports,QBe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-container page-overflow hidden-scrollbar"},[t("div",{staticClass:"bread mb24"},[t("el-breadcrumb",{attrs:{separator:"/"}},[t("el-breadcrumb-item",[e._v("EDM")]),t("el-breadcrumb-item",{attrs:{to:{path:e.goBackUrl}}},[e._v(" 邮件数据 ")]),t("el-breadcrumb-item",[e._v("发信详情")])],1)],1),t("div",{staticClass:"main"},[t("div",{staticClass:"head mb24"},[e._v(" 发信箱 ")]),0!==e.mailData.length?t("div",{staticClass:"body"},[t("h1",{staticClass:"beyond_eip mb32"},[e._v(" "+e._s(e.mailData.subject)+" ")]),t("div",{staticClass:"mail-head mb24"},[t("el-image",{staticClass:"mail-avatar",attrs:{src:i(3690),fit:"cover"}}),t("div",{staticClass:"mail-roster"},[t("h3",[e._v(e._s(e.mailData.nickName))]),t("div",{staticClass:"mail-to"},[t("span",[e._v("发送至:")]),t("p",[e._v(e._s(e.mailData.bloggerNames))])])]),t("span",{staticClass:"mail-date"},[e._v(" "+e._s(e.mailData.gmtCreate)+" ")])],1),e.mailData.attachmentRes?t("div",[e.mailData.attachmentRes.length?t("attachment-list",{attrs:{file:e.mailData.attachmentRes}}):e._e()],1):e._e(),t("div",{staticClass:"mail-main",domProps:{innerHTML:e._s(e.filterBaseTag(e.mailData.content))}})]):e._e()])])},eMe=[],tMe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"file-list grid grid-cols-4 mb16"},[e._l(e.handleShowFile(),(function(n,i){return t("div",{key:i,staticClass:"file-item mb8"},[t("i",{staticClass:"dss-iconfont icon-file-4 mr8"}),t("h3",{staticClass:"beyond_eip mr8"},[e._v(" "+e._s(n.name)+" ")]),t("a",{on:{click:function(t){return e.downFile(n)}}},[t("i",{staticClass:"dss-iconfont icon-download"})])])})),t("div",{staticClass:"file-action col-span-4 mb8"},[e.file.length>4?t("button",{staticClass:"file-btn mr12",on:{click:function(t){e.isShrink=!e.isShrink}}},[t("i",{staticClass:"dss-iconfont icon-arrow-down mr4",style:e.isShrink?"":"transform: rotate(180deg);"}),t("p",[e._v(" "+e._s(e.isShrink?`${e.$i18n.t("outboxDetail.show_all")}`+(e.file.length-4)+`${e.$i18n.t("outboxDetail.file_num")}`:`${e.$i18n.t("outboxDetail.retract")}`)+" ")])]):e._e(),t("button",{staticClass:"file-btn mr12",on:{click:e.downloadAll}},[t("p",{staticClass:"mr4"},[e._v(e._s(e.$i18n.t("outboxDetail.down_all"))+":")]),t("i",{staticClass:"dss-iconfont icon-download"})])])],2)},nMe=[],iMe={props:{file:{default:()=>[],type:Array}},data(){return{isShrink:!0}},methods:{downFile(e){Ms(e.link,e.name)},downloadAll(){this.file.forEach((e=>{Ms(e.link,e.name)}))},handleShowFile(){const e=JSON.parse(JSON.stringify(this.file));return this.isShrink?e.slice(0,4):e}}},rMe=iMe,oMe=or(rMe,tMe,nMe,!1,null,"1d8b2830",null),aMe=oMe.exports,sMe={name:"edm-send",components:{AttachmentList:aMe},props:{goBackUrl:{type:String,default:"/edmManage/mailData"}},data(){return{id:1*this.$route.query.id,mailData:[]}},created(){this.initPageData()},methods:{initPageData(){R$e(this.id).then((e=>{e&&(this.mailData=e.data)}))},filterBaseTag(e){if(e)return e=e.replace("https://pixel.xin/emailControl.php?mid=",""),e=e.replace("https://pixel.xin/hub.gif?mid=",""),e=e.replace(new RegExp("unsubscribe","g"),""),e=e.replace(/\r\n/g,"<br />"),e=e.replace(/ツ?/g,""),e=e.replace(/<base.*?(?:>|\/>)/gi,""),e}}},lMe=sMe,cMe=or(lMe,QBe,eMe,!1,null,"58a17d30",null),uMe=cMe.exports,dMe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-container page-overflow hidden-scrollbar"},[t("div",{staticClass:"bread mb24"},[t("el-breadcrumb",{attrs:{separator:"/"}},[t("el-breadcrumb-item",[e._v("EDM")]),t("el-breadcrumb-item",{attrs:{to:{path:e.goBackUrl}}},[e._v(" 邮件数据 ")]),t("el-breadcrumb-item",[e._v("收信详情")])],1)],1),t("div",{staticClass:"main"},[t("div",{staticClass:"head mb24"},[e._v(" 收信箱 ")]),t("div",{staticClass:"body"},[0!==e.mailData.length?t("h1",{staticClass:"beyond_eip mb32"},[e._v(" "+e._s(e.mailData[0].subject)+" ")]):e._e(),e._l(e.mailData,(function(n,i){return t("div",{key:i,staticClass:"mb24"},[t("div",{staticClass:"mail-head mb24",on:{click:function(t){return e.spreadMain(n.id)}}},[t("el-image",{staticClass:"mail-avatar",attrs:{src:n.bloggerAvatar,fit:"cover"}}),t("div",{staticClass:"mail-roster"},[t("h3",[e._v(e._s(1===n.type?n.bloggerName:n.userName))]),t("div",{staticClass:"mail-to"},[t("span",[e._v("发送至:")]),t("p",[e._v(e._s(1===n.type?n.userName:n.bloggerName))])])]),t("span",{staticClass:"mail-date"},[e._v(" "+e._s(n.createTime)+" ")])],1),e.spreadId===n.id?t("div",[n.attachment?t("div",[n.attachment.length?t("attachment-list",{attrs:{file:n.attachment}}):e._e()],1):e._e()]):e._e(),e.spreadId===n.id?t("div",{staticClass:"mail-main",domProps:{innerHTML:e._s(e.filterBaseTag(n.content))}}):e._e()])}))],2)])])},hMe=[],pMe={name:"edm-receive",components:{AttachmentList:aMe},props:{goBackUrl:{type:String,default:"/edmManage/mailData"}},data(){return{id:this.$route.query.id,chatId:this.$route.query.chatId,spreadId:this.$route.query.id,mailData:[]}},created(){this.initPageData()},methods:{initPageData(){this.chatId?M$e(this.chatId).then((e=>{"0"===e.code&&(this.mailData=e.data)})):N$e(this.id).then((e=>{"0"===e.code&&this.mailData.push(e.data)}))},spreadMain(e){e!==this.spreadId?this.spreadId=e:this.spreadId=-1},handleAvatar(e,t){return 1===e?"":2===e&&t?t:""},filterBaseTag(e){if(e)return e=e.replace("https://pixel.xin/emailControl.php?mid=",""),e=e.replace("https://pixel.xin/hub.gif?mid=",""),e=e.replace(new RegExp("unsubscribe","g"),""),e=e.replace(/\r\n/g,"<br />"),e=e.replace(/ツ?/g,""),e=e.replace(/<base.*?(?:>|\/>)/gi,""),e}}},fMe=pMe,mMe=or(fMe,dMe,hMe,!1,null,"7a1abb1c",null),gMe=mMe.exports,vMe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"recipient-container"},[t("div",{staticClass:"recipient-box"},[t("div",{staticClass:"recipient-header"},[t("div",{staticClass:"header-left"},[e._v(e._s(e.$t("edm2.mailEn23")))]),t("div",{staticClass:"header-right"},[t("div",{staticClass:"add-recipient",on:{click:e.addRecipient}},[t("i",{staticClass:"dss-iconfont icon-add1"}),e._v(e._s(e.$t("edm2.mailEn24"))+" ")]),t("div",{staticClass:"remove-recipient",on:{click:e.removeRecipient}},[t("i",{staticClass:"dss-iconfont icon-remove"}),e._v(e._s(e.removeText)+" ")]),t("div",{staticClass:"next-btn"},[t("el-button",{on:{click:e.cancel}},[e._v(e._s(e.$t("common.cancle")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.nextStep}},[e._v(" "+e._s(e.$t("edm2.mailEn25"))+" ")])],1)])]),t("div",{staticClass:"recipient-table"},[t("WTable",{ref:"mailTable",attrs:{"row-key":"id",tableConfig:{selection:e.tableConfigSelection,selectionFixed:!0},tableColumnConfig:e.tableColumnConfig,tableData:e.tableDataShow[e.tableDataShowIndex],height:e.tableHeight,"max-height":e.tableHeight,loading:e.loading,total:e.allTableData.length,isRecipientList:!0,tableConfigSelection:e.tableConfigSelection,countRecipient:e.allTableData.length,validRecipient:e.validRecipient,layout:"total, prev, pager, next, jumper"},on:{handleBtnClick:e.confirmRemoveRecipient,changeCurrent:e.tableChangeCurrent},scopedSlots:e._u([{key:"blogger",fn:function({data:n}){return[t("BloggerColumn",{attrs:{bloggerAvatar:n.scope.bloggerAvatar,bloggerName:n.scope.bloggerName,bloggerUsername:n.scope.bloggerUsername,bloggerId:n.scope.bloggerId,platform:n.scope.platform,bloggerInfo:n.scope},on:{toBloggerDeatil:e.toBloggerDeatil}})]}},{key:"platform",fn:function({data:n}){return["youtube"==n.scope.platform?t("img",{attrs:{src:"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/youtube.png"}}):e._e(),"tiktok"==n.scope.platform?t("img",{attrs:{src:"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/tiktok.png"}}):e._e(),"instagram"==n.scope.platform?t("img",{attrs:{src:"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/ins.png"}}):e._e()]}}])})],1)]),e.isShowRepeatDrawer?t("repeat-recipient",{attrs:{isShowDrawer:e.isShowRepeatDrawer,repeatRecipientData:e.repeatRecipientData},on:{closeRecipientDrawer:e.closeRecipientDrawer,confirmRepeatRecipient:e.confirmRepeatRecipient}}):e._e()],1)},yMe=[],bMe=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{title:e.$t("edm2.mailEn31"),visible:e.isShowDrawer,size:"560px","append-to-body":!0},on:{"update:visible":function(t){e.isShowDrawer=t},close:e.closeRecipientDrawer}},[t("p",{staticClass:"tips"},[e._v(e._s(e.$t("edm2.mailEn32")))]),e._l(e.repeatArr,(function(n,i){return t("div",{key:i,staticClass:"repeat-item"},[t("div",{staticClass:"blogger-info"},[t("div",{staticClass:"info-left"},[t("div",{staticClass:"avatar"},[t("el-image",{attrs:{src:n.bloggerAvatar}})],1),t("div",{staticClass:"username"},[e._v(e._s(n.bloggerName))]),null!==n.country?t("div",{staticClass:"country"},[t("i",{staticClass:"dss-iconfont icon-dss-weizhi"}),e._v(e._s(n.country)+" ")]):e._e(),t("div",{staticClass:"platform"},[t("el-image",{attrs:{src:"youtube"==n.platform?"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/youtube.png":"tiktok"==n.platform?"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/tiktok.png":"https://tmpxjp0510.oss-ap-southeast-1.aliyuncs.com/icon-img/ins.png"}})],1)]),t("div",{staticClass:"info-right"},[t("div",{staticClass:"right-top"},[e._v(e._s(e._f("numFormat")(n.fansNum)))]),t("div",{staticClass:"right-bottom"},[e._v(e._s(e.$t("writeMail.fans_num")))])])]),t("WTable",{attrs:{height:e.tableHeight,"max-height":e.tableHeight,loading:e.loading,tableColumnConfig:e.tableColumnConfig,tableData:n.repeatTableData,total:n.repeatTableData.length,layout:"total"},scopedSlots:e._u([{key:"radio",fn:function({data:i}){return[t("el-radio",{attrs:{label:i.scope.id},on:{input:function(t){return e.changeRadio(t,n.bloggerId)}},model:{value:n.radio,callback:function(t){e.$set(n,"radio",t)},expression:"item.radio"}},[t("span")])]}}],null,!0)})],1)})),t("div",{staticClass:"btns"},[t("el-button",{on:{click:e.cancelRepeatRecipient}},[e._v(" "+e._s(e.$t("common.cancle"))+" ")]),t("el-button",{attrs:{type:"primary"},on:{click:e.confirmRepeatRecipient}},[e._v(" "+e._s(e.$t("inboxTable.confirm"))+" ")])],1)],2)},wMe=[],_Me={components:{WTable:UIe},props:{isShowDrawer:{type:Boolean,default:!1},repeatRecipientData:{type:Array,default:()=>[]}},data(){return{repeatArr:this.repeatRecipientData,tableHeight:256,loading:!1,tableColumnConfig:[{label:"",scope:"radio"},{label:Mc.$t("inboxDetail.planVal"),prop:"popularizePlanName",showOverflowTooltip:!0},{label:Mc.$t("edm2.mailEn26"),prop:"chooseSourceStr"}],tableData:[],tableTotal:0,radio:"",selectedRepeatIds:[]}},methods:{changeRadio(e,t){let n={id:e,bloggerId:t};this.selectedRepeatIds.some((e=>e.bloggerId===n.bloggerId))||this.selectedRepeatIds.push(n),this.selectedRepeatIds=this.selectedRepeatIds.map((e=>e.bloggerId===n.bloggerId?n:e))},closeRecipientDrawer(){this.$emit("closeRecipientDrawer")},cancelRepeatRecipient(){this.closeRecipientDrawer()},confirmRepeatRecipient(){this.$emit("confirmRepeatRecipient",this.selectedRepeatIds)}}},CMe=_Me,xMe=or(CMe,bMe,wMe,!1,null,"606cf912",null),SMe=xMe.exports,kMe={name:"recipientList",components:{WTable:UIe,BloggerColumn:qFe,repeatRecipient:SMe},props:{allTableData:{type:Array,default:()=>[]}},data(){return{tableColumnConfig:[{label:"",scope:"blogger"},{label:Mc.t("edm2.mailEn17"),prop:"country"},{label:Mc.t("edm2.mailEn18"),scope:"platform"},{label:Mc.t("writeMail.fans_num"),prop:"fansNum",format:"numFormat"},{label:Mc.t("inboxDetail.planVal"),prop:"popularizePlanName",showOverflowTooltip:!0},{label:Mc.t("edm2.mailEn26"),prop:"chooseSourceStr",showOverflowTooltip:!0}],tableDataShow:[],tableDataShowIndex:0,loading:!1,total:0,tableHeight:js(200),searchForm:{currentPage:1,pageSize:20},removeText:Mc.t("edm2.mailEn27"),tableConfigSelection:!1,isShowRepeatDrawer:!1,repeatRecipientData:[],resultRecipientData:[],validRecipient:0,countRecipient:0,isShowSave:!1,draftEmails:[],hasNotice:!1}},watch:{allTableData:{deep:!0,handler(e){0!==e.length&&this.getValidReceiver(),this.tableDataShow=[];let t=JSON.parse(JSON.stringify(e));if(e.length>20){let n=Math.floor(e.length/20);for(let e=0;e<n;e++)this.tableDataShow[e]=t.splice(0,20);this.tableDataShow.push([...t])}else this.tableDataShow[0]=e},immediate:!0}},created(){this.init()},methods:{toBloggerDeatil(e){this.$emit("toBloggerDeatil",e)},filterHtmlTag(e){return e&&(e=e.replace(/<head>[\s\S]*?<\/head>/i,""),e=e.replace(/<img[^>]*>/gi,""),e=e.replace(/<[^>]+>|&[^>]+;/g,""),e=e.replace(new RegExp("&nbsp;","g"),""),e=e.replace(new RegExp("\n","g"),""),e=e.replace(new RegExp(" ","g"),"")),null==e||""==e||void 0==e},getValidReceiver(){let e=Is(this.allTableData,"bloggerId");SFe({bloggerIds:e}).then((e=>{"0"===e.code?this.validRecipient=e.data:this.$message({type:"error",message:e.message,customClass:"custom-message"})}))},init(){this.tableDataShowIndex=0,this.$refs["mailTable"]&&(this.$refs["mailTable"].pageNum=1)},tableChangeCurrent({pageNum:e}){this.tableDataShowIndex=e-1},removeRecipient(){this.removeText=this.removeText==this.$t("edm2.mailEn27")?this.$t("edm2.mailEn28"):this.$t("edm2.mailEn27"),this.tableConfigSelection=this.removeText==this.$t("edm2.mailEn28"),this.$refs.mailTable.$refs.xTable.clearSelection()},addRecipient(){this.$emit("addRecipient")},confirmRemoveRecipient(e,t){this.$refs.mailTable.$refs.xTable.clearSelection(),this.init(),this.$emit("confirmRemoveRecipient",t)},cancel(){this.allTableData.length>500?this.$confirm(this.$t("edm5.v247"),"",{showCancelButton:!1,confirmButtonText:this.$t("edm5.v248")}):this.$route.query.draftId?this.getDraftDetail():0==this.allTableData.length?(this.$router.push("/outbox"),localStorage.removeItem("beforeSelected"),localStorage.removeItem("resultRecipientData")):(this.isShowSave=!0,this.remindSave())},async getDraftDetail(){try{const e=await Hd(this.$route.query.draftId);if("0"===e.code){this.draftEmails=e.data.map((e=>({id:e.writeEmailId,subject:e.subject,content:e.content,attachments:e.attachmentRes||[]})));const t=this.draftEmails.every((e=>!e.subject)),n=this.draftEmails.every((e=>this.filterHtmlTag(e.content))),i=this.draftEmails.every((e=>e.attachments&&0==e.attachments.length));console.log(t,n,i),0==this.allTableData.length&&t&&n&&i?this.$router.push("/outbox"):(this.isShowSave=!0,this.remindSave())}else this.$message({type:"error",message:e.message,customClass:"custom-message"})}catch(rl){console.log(rl)}},async saveDraft(){if(0!==this.allTableData.length){let e=await this.getBloggerMail(this.allTableData);if(0!==e.length){e.length<this.allTableData.length&&(this.hasNotice=!0);let t=[];e.forEach((e=>{let n=this.allTableData.find((t=>t.bloggerId===e.id));n&&t.push(n)}));const n=t.map((e=>({bloggerId:e.bloggerId,chooseSource:e.chooseSource||void 0,popularizePlanId:e.popularizePlanId||void 0,popularizePlanName:e.popularizePlanName||void 0}))),i={id:this.$route.query.draftId?this.$route.query.draftId:"",emails:this.$route.query.draftId?this.draftEmails:[],bloggerInfos:n,type:1==this.$route.query.isTiming?2:99,timing:1==this.$route.query.isTiming?this.$route.query.rowTime:void 0,replyId:void 0,sendEntryKey:"outbox-cancle",writeIds:[]};try{const e=await Ed(i);"0"===e.code?(this.hasNotice&&this.$message({type:"warning",message:this.$t("edm5.v249"),customClass:"custom-message",duration:2e3}),this.$router.push("/outbox"),localStorage.removeItem("beforeSelected"),localStorage.removeItem("resultRecipientData")):this.$message({type:"error",message:e.message,customClass:"custom-message"})}catch(rl){return console.log(rl),!1}}}else{const e=[],t={id:this.$route.query.draftId?this.$route.query.draftId:"",emails:this.$route.query.draftId?this.draftEmails:[],bloggerInfos:e,type:1==this.$route.query.isTiming?2:99,timing:1==this.$route.query.isTiming?this.$route.query.rowTime:void 0,replyId:void 0,sendEntryKey:"outbox-cancle",writeIds:[]};try{const e=await Ed(t);"0"===e.code?(this.$router.push("/outbox"),localStorage.removeItem("beforeSelected"),localStorage.removeItem("resultRecipientData")):this.$message({type:"error",message:e.message,customClass:"custom-message"})}catch(rl){return console.log(rl),!1}}},remindSave(){if(this.isShowSave){const e=confirm(`${this.$i18n.t("writeMail.save_draft_tip")}`);e&&this.saveDraft(!0)}},nextStep(){this.$emit("confirmToWritePage")},closeRecipientDrawer(){this.isShowRepeatDrawer=!1},confirmRepeatRecipient(e){0==e.length?this.$confirm(this.$t("edm2.mailEn29"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning",customClass:"custom-confirm"}).then((()=>{const e=new Set(this.repeatRecipientData.map((e=>e.bloggerId)));this.resultRecipientData=this.allTableData.filter((t=>!e.has(t.bloggerId))),this.$emit("confirmToWritePage",this.resultRecipientData)})).catch((()=>{console.log("取消操作")})):e.length<this.repeatRecipientData.length?this.$confirm(this.$t("edm2.mailEn29"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning",customClass:"custom-confirm"}).then((()=>{const t=new Set(e.map((e=>e.bloggerId))),n=this.repeatRecipientData.filter((e=>!t.has(e.bloggerId))),i=(this.repeatRecipientData.filter((e=>t.has(e.bloggerId))),new Set(n.map((e=>e.bloggerId)))),r=this.allTableData.filter((e=>!i.has(e.bloggerId))),o=new Map(e.map((e=>[e.bloggerId,e.id])));this.resultRecipientData=r.filter((e=>{const t=o.get(e.bloggerId);return!t||e.id===t})),this.$emit("confirmToWritePage",this.resultRecipientData)})).catch((()=>{console.log("取消操作")})):e.length==this.repeatRecipientData.length&&this.$confirm(this.$t("edm2.mailEn30"),this.$t("inboxTable.tip"),{confirmButtonText:this.$t("inboxTable.confirm"),cancelButtonText:this.$t("inboxTable.cancel"),type:"warning",customClass:"custom-confirm"}).then((()=>{const t=new Map(e.map((e=>[e.bloggerId,e.id])));this.resultRecipientData=this.allTableData.filter((e=>{const n=t.get(e.bloggerId);return!n||e.id===n})),this.$emit("confirmToWritePage",this.resultRecipientData)})).catch((()=>{console.log("取消操作")}))},excludeMatchingBloggerId(e,t){const n=new Map(e.map((e=>[e.bloggerId,e.id])));return t.filter((e=>n.get(e.bloggerId)===e.id))},async getBloggerMail(e){let t=[],n=Is(e,"bloggerId");return await Fd({code:"checkBloggerhasEmail",data:{param:{bloggerIds:n}}}).then((n=>{if("0"===n.code){if(0===n.data.length)return void this.$message({type:"warning",message:this.$t("edm5.v251"),customClass:"custom-message"});if(n.data.length<e.length){let i=[];e.forEach((e=>{n.data.forEach((t=>{e.bloggerId===t.blogId&&i.push(e)}))})),i.forEach((e=>{t.push({id:e.bloggerId,name:e.bloggerName})}))}else e.length===n.data.length&&e.forEach((e=>{t.push({id:e.bloggerId,name:e.bloggerName})}))}})),t}}},EMe=kMe,DMe=or(EMe,vMe,yMe,!1,null,"40cd6474",null),AMe=DMe.exports,TMe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bind-help"},[t("div",{staticClass:"box-main"},[t("div",{staticClass:"title1"},[e._v(e._s(e.$t("edm5.v137")))]),t("div",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v138"))+" ")]),t("div",{staticClass:"title2"},[e._v(e._s(e.$t("edm5.v139")))]),t("div",{staticClass:"content"},[t("p",{staticClass:"method"},[e._v(" "+e._s(e.$t("edm5.v140"))+" ")]),t("p",{staticClass:"method"},[e._v(" "+e._s(e.$t("edm5.v141"))+" ")]),t("p",{staticClass:"method"},[e._v(" "+e._s(e.$t("edm5.v142"))+" ")]),t("p",{staticClass:"method"},[e._v(" "+e._s(e.$t("edm5.v143"))+" ")])]),t("div",{staticClass:"title2"},[e._v(e._s(e.$t("edm5.v144")))]),t("div",{staticClass:"content"},[t("p",{staticClass:"methods"},[e._v(" "+e._s(e.$t("edm5.v145"))+" ")]),e._m(0),t("p",{staticClass:"methods"},[e._v("   "+e._s(e.$t("edm5.v146")))]),t("p",{staticStyle:{"font-weight":"500","margin-top":"6px"}},[e._v(e._s(e.$t("edm5.v147")))]),e._m(1),t("p",{staticStyle:{"font-weight":"500","margin-top":"6px"}},[e._v(" "+e._s(e.$t("edm5.v148"))+" ")]),e._m(2),e._m(3),t("p",{staticStyle:{"font-weight":"500","margin-top":"6px"}},[e._v(" "+e._s(e.$t("edm5.v149"))+" ")]),e._m(4),e._m(5)]),t("div",{staticClass:"title2"},[e._v(e._s(e.$t("edm5.v150")))]),t("div",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v151"))+" ")]),t("div",{staticClass:"rule-table"},[t("el-table",{staticClass:"bind-rule-table",staticStyle:{width:"100%"},attrs:{border:"",data:e.tableData}},[t("el-table-column",{attrs:{width:"140",align:"center",prop:"name",label:e.$t("edm5.v152")}}),t("el-table-column",{attrs:{width:"168",align:"center",prop:"smtp",label:e.$t("edm5.v153")}}),t("el-table-column",{attrs:{width:"160",align:"center",prop:"isNeedAuth",label:e.$t("edm5.v154")}}),t("el-table-column",{attrs:{align:"left",prop:"value",label:e.$t("edm5.v155")},scopedSlots:e._u([{key:"default",fn:function(n){return[t("div",{staticClass:"help-content",domProps:{innerHTML:e._s(n.row.helps)}})]}}])}),t("el-table-column",{attrs:{align:"left",prop:"value",label:e.$t("edm5.v156")},scopedSlots:e._u([{key:"default",fn:function(n){return[e._l(n.row.rules.rule,(function(n){return t("p",{key:n,staticClass:"rule-item"},[e._v(" "+e._s(n)+" ")])})),t("p",[t("a",{staticClass:"r-link",attrs:{href:n.row.rules.link,target:"_blank"}},[e._v(e._s(e.$t("edm5.v157")))])])]}}])})],1)],1),t("div",{staticClass:"other-tip"},[t("div",{staticClass:"title2"},[e._v(e._s(e.$t("edm5.v158")))]),t("p",{staticClass:"content"},[e._v(e._s(e.$t("edm5.v159")))]),t("li",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v160"))+" ")]),t("p",{staticClass:"content"},[e._v(e._s(e.$t("edm5.v161")))]),t("li",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v162"))+" ")]),t("li",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v163"))+" ")]),t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/email-rule.png",alt:""}}),t("p",{staticClass:"content"},[e._v(e._s(e.$t("edm5.v164")))]),t("li",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v165"))+" ")]),t("p",{staticClass:"content"},[e._v(e._s(e.$t("edm5.v166")))]),t("li",{staticClass:"content"},[e._v(" "+e._s(e.$t("edm5.v167"))+" ")])])])])},OMe=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"img-box"},[t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/gmail-1.png",alt:""}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"img-box"},[t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/gmail-2.png",alt:""}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"img-box"},[t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/gmail-3.png",alt:""}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"img-box"},[t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/gmail-4.png",alt:""}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"img-box"},[t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/gmail-5.png",alt:""}})])},function(){var e=this,t=e._self._c;return t("div",[t("img",{staticClass:"tips-img",attrs:{src:"https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/edm/gmail-6.png",alt:""}})])}],IMe={name:"bind-help",data(){return{tableData:[{name:this.$t("edm5.v168"),smtp:"smtp.qiye.aliyun.com",isNeedAuth:this.$t("edm5.v49"),helps:`<p>\n <a class="r-link" href="https://help.aliyun.com/document_detail/606337.html" target="_blank">${this.$t("edm5.v172")}</a>\n <a class="r-link" href="https://help.aliyun.com/document_detail/36576.html" target="_blank">${this.$t("edm5.v173")}</a>\n </p>`,rules:{rule:[this.$t("edm5.v169"),this.$t("edm5.v170")],link:"https://help.aliyun.com/document_detail/439236.html"}},{name:this.$t("edm5.v171"),smtp:"smtp.exmail.qq.com",isNeedAuth:this.$t("edm5.v48"),helps:`<p>\n <a class="r-link" href="https://open.work.weixin.qq.com/help2/pc/19886?person_id=1&subtype=1&id=20095&no=1001570" target="_blank">${this.$t("edm5.v174")}</a>\n <a class="r-link" href="https://open.work.weixin.qq.com/help2/pc/19902?person_id=0" target="_blank">${this.$t("edm5.v175")}</a>\n </p>`,rules:{rule:[this.$t("edm5.v176"),this.$t("edm5.v177"),this.$t("edm5.v178")],link:"https://www.qqeml.com/exmail-help-rese/item/39-72"}},{name:this.$t("edm5.v179"),smtp:"smtp.qq.com",isNeedAuth:this.$t("edm5.v48"),helps:`<p>\n <a class="r-link" href="https://service.mail.qq.com/detail/0/75" target="_blank">${this.$t("edm5.v180")}</a>\n </p>`,rules:{rule:[this.$t("edm5.v181")],link:"https://kf.qq.com/faq/161223nMnQfm161223rEbQNr.html"}},{name:this.$t("edm5.v182"),smtp:"smtp-mail.outlook.com",isNeedAuth:this.$t("edm5.v49"),helps:`<p>\n <p style="margin-bottom:12px;">Outlook SMTP<a style="margin-left:8px;display:inline;" class="r-link" href="https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-for-outlook-com-d088b986-291d-42b8-9564-9c414e2aa040" target="_blank">${this.$t("edm5.v183")}</a></p>\n <p>${this.$t("edm5.v184")}<a class="r-link" href="https://outlook.live.com/mail/0/options/mail/accounts/popImap" target="_blank">${this.$t("edm5.v185")}</a></p>\n </p>`,rules:{rule:[this.$t("edm5.v186"),this.$t("edm5.v187"),this.$t("edm5.v188")],link:"https://support.microsoft.com/zh-cn/office/%E4%BB%A5-outlook-com-%E5%8F%91%E9%80%81%E9%99%90%E5%88%B6-279ee200-594c-40f0-9ec8-bb6af7735c2e#:~:text=%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%20Outlook.com%20%E9%99%90%E5%88%B6%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F%201%20%E6%AF%8F%E6%97%A5%E6%94%B6%E4%BB%B6%E4%BA%BA%EF%BC%9A5%2C000%202,%E6%AF%8F%E5%B0%81%E9%82%AE%E4%BB%B6%E7%9A%84%E6%9C%80%E5%A4%A7%E6%94%B6%E4%BB%B6%E4%BA%BA%E6%95%B0%EF%BC%9A500%203%20%E6%AF%8F%E6%97%A5%E9%9D%9E%E5%85%B3%E7%B3%BB%E6%94%B6%E4%BB%B6%E4%BA%BA%EF%BC%9A1%2C000%20%E6%B3%A8%E6%84%8F%3A%20%E9%99%90%E5%88%B6%E5%8F%AF%E8%83%BD%E5%9B%A0%E4%BD%BF%E7%94%A8%E5%8E%86%E5%8F%B2%E8%AE%B0%E5%BD%95%E8%80%8C%E5%BC%82%EF%BC%8C%E5%AF%B9%E4%BA%8E%E9%9D%9E%E8%AE%A2%E9%98%85%E8%80%85%EF%BC%8C%E9%99%90%E5%88%B6%E5%B0%86%E8%BE%83%E4%BD%8E%E3%80%82%20%E2%80%9C%E9%9D%9E%E5%85%B3%E7%B3%BB%E6%94%B6%E4%BB%B6%E4%BA%BA%E2%80%9D%E6%98%AF%E6%8C%87%E4%BD%A0%E4%BB%A5%E5%89%8D%E4%BB%8E%E6%9C%AA%E5%8F%91%E9%80%81%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E8%BF%87%E7%9A%84%E4%BA%BA%E3%80%82%20%E4%BB%BB%E4%BD%95%E7%AC%AC%E4%B8%89%E6%96%B9%E8%BF%9E%E6%8E%A5%E5%B8%90%E6%88%B7%E7%9A%84%E5%8F%91%E9%80%81%E9%99%90%E5%88%B6%E5%8F%96%E5%86%B3%E4%BA%8E%E6%9C%8D%E5%8A%A1%E6%8F%90%E4%BE%9B%E5%95%86%E3%80%82"}}]}}},PMe=IMe,$Me=or(PMe,TMe,OMe,!1,null,"02a9d603",null),FMe=$Me.exports;let BMe="",MMe="";function NMe(e){MMe=e,"dev"===e||"development"===e||"test"===e?BMe="https://api.kuku.info":"pre"===e?BMe="https://api.wotokol.com/index.php":"prod"!==e&&"production"!==e||(BMe="https://api.wotokol.com/index.php")}const RMe=Sn.create({baseURL:"",timeout:25e4});RMe.interceptors.request.use((function(e){const t=(new Date).getTime(),n=Pn()+t,i=e.params||e.data;let r={},o="";i?(r=Nn(e.url,n,t,i),o=r.hmacBytes):(r=Nn(e.url,n,t),o=r.hmacBytes),e.baseURL=MMe?BMe:"https://api.wotokol.com/index.php",e.headers["appkey"]=On,e.headers["timestamp"]=t,e.headers["nonce"]=n,e.headers["cookieid"]=o,e.headers["sign"]=Ln(i).hmacBytes;let a=localStorage.getItem("sourceApp");return a&&(e.headers["sourceApp"]=localStorage.getItem("sourceApp")),localStorage.getItem("token")&&(e.headers["token"]=localStorage.getItem("token")),localStorage.getItem("Authorization")&&(e.headers["Authorization"]=localStorage.getItem("Authorization")),localStorage.getItem("dss_token")&&(e.headers["dss-token"]=localStorage.getItem("dss_token")),e}),(function(e){return Promise.reject(e)})),RMe.interceptors.response.use((function(e){return 503===e.status&&alert("服务器不可用,请联系系统管理员"),e.data}),(function(e){return Promise.reject(e)}));let jMe="",LMe="";function zMe(e){LMe=e,"dev"===e||"development"===e||"test"===e?jMe="https://dss-apis.kuku.info":"pre"===e?jMe="https://dss-apis.wotokol.com/":"prod"!==e&&"production"!==e||(jMe="https://dss-apis.wotokol.com/")}const VMe=Sn.create({baseURL:"",timeout:25e4});VMe.interceptors.request.use((function(e){return e.baseURL=LMe?jMe:"https://dss-apis.wotokol.com/",localStorage.getItem("Authorization")&&(e.headers["Authorization"]=localStorage.getItem("Authorization")),e}),(function(e){return Promise.reject(e)})),VMe.interceptors.response.use((function(e){return 503===e.status&&alert("服务器不可用,请联系系统管理员"),e.data}),(function(e){return Promise.reject(e)}));const HMe=[sr,vFe,Z$e,RFe,Js,vd,XFe,lBe,fBe,JBe,uMe,gMe,AMe,FMe],UMe=function(e){HMe.forEach((t=>{e.component(t.name,t)}))};var WMe={install:UMe,initJavaService:Da,initHubService:NMe,initDssService:zMe},qMe=WMe}(),r}()}));