@stackline/wcwidth 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/COMPATIBILITY.md +5 -0
- package/COMPATIBILITY_CONTRACT.md +75 -0
- package/CONTRIBUTING.md +18 -0
- package/LICENSE +21 -0
- package/MIGRATION.md +39 -0
- package/NOTICE +15 -0
- package/PUBLISHING.md +103 -0
- package/README.md +112 -0
- package/SECURITY.md +21 -0
- package/THIRD_PARTY_LICENSES.md +90 -0
- package/VERIFICATION.md +29 -0
- package/combining.d.ts +3 -0
- package/combining.js +5 -0
- package/dist/index.mjs +1 -0
- package/examples/commonjs.cjs +6 -0
- package/examples/esm.mjs +4 -0
- package/examples/install.sh +1 -0
- package/examples/legacy-alias.json +5 -0
- package/index.d.cts +17 -0
- package/index.d.mts +19 -0
- package/index.d.ts +17 -0
- package/index.js +28 -0
- package/index.mjs +7 -0
- package/lib/defaults.js +12 -0
- package/lib/graphemes.js +147 -0
- package/lib/ranges.js +22 -0
- package/lib/unicode-tables.js +653 -0
- package/lib/width.js +91 -0
- package/package.json +149 -0
- package/scripts/test-package.mjs +38 -0
- package/tools/generate-unicode-tables.mjs +234 -0
- package/unicode-sources.json +33 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var z=Object.create;var m=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty;var n=(x,c)=>()=>{try{return c||x((c={exports:{}}).exports,c),c.exports}catch(f){throw c=0,f}};var x0=(x,c,f,b)=>{if(c&&typeof c=="object"||typeof c=="function")for(let a of $(c))!p.call(x,a)&&a!==f&&m(x,a,{get:()=>c[a],enumerable:!(b=Q(c,a))||b.enumerable});return x};var c0=(x,c,f)=>(f=x!=null?z(v(x)):{},x0(c||!x||!x.__esModule?m(f,"default",{value:x,enumerable:!0}):f,x));var V=n((Cx,P)=>{function f0(x,c){return x=x||{},Object.keys(c).forEach(function(b){typeof x[b]>"u"&&(x[b]=c[b])}),x}P.exports=f0});var E=n((Ex,S)=>{"use strict";var b0="17.0.0",a0=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2192,2193],[2199,2207],[2250,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2901,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3132,3132],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3457,3457],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3790],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6159],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6877],[6880,6891],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43052,43052],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[55216,55238],[55243,55291],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531],[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[68969,68973],[69291,69292],[69370,69375],[69446,69456],[69506,69509],[69633,69633],[69688,69702],[69744,69744],[69747,69748],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69826,69826],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70095,70095],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70209,70209],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70587,70592],[70606,70606],[70608,70608],[70610,70610],[70625,70626],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71453],[71455,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[71995,71996],[71998,71998],[72003,72003],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72544,72544],[72546,72548],[72550,72550],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[73472,73473],[73526,73530],[73536,73536],[73538,73538],[73562,73562],[78896,78912],[78919,78933],[90398,90409],[90413,90415],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[94180,94180],[113821,113822],[113824,113827],[118528,118573],[118576,118598],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123023,123023],[123184,123190],[123566,123566],[123628,123631],[124140,124143],[124398,124399],[124643,124643],[124646,124646],[124654,124655],[124661,124661],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],d0=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9776,9783],[9800,9811],[9855,9855],[9866,9871],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12350],[12353,12438],[12441,12543],[12549,12591],[12593,12686],[12688,12773],[12783,12830],[12832,12871],[12880,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510],[94176,94180],[94192,94198],[94208,101589],[101631,101662],[101760,101874],[110576,110579],[110581,110587],[110589,110590],[110592,110882],[110898,110898],[110928,110930],[110933,110933],[110948,110951],[110960,111355],[119552,119638],[119648,119670],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128728],[128732,128735],[128747,128748],[128756,128764],[128992,129003],[129008,129008],[129292,129338],[129340,129349],[129351,129535],[129648,129660],[129664,129674],[129678,129734],[129736,129736],[129741,129756],[129759,129770],[129775,129784],[131072,196605],[196608,262141]],e0=[[35,35],[42,42],[48,57],[169,169],[174,174],[8252,8252],[8265,8265],[8482,8482],[8505,8505],[8596,8601],[8617,8618],[8986,8987],[9e3,9e3],[9167,9167],[9193,9203],[9208,9210],[9410,9410],[9642,9643],[9654,9654],[9664,9664],[9723,9726],[9728,9732],[9742,9742],[9745,9745],[9748,9749],[9752,9752],[9757,9757],[9760,9760],[9762,9763],[9766,9766],[9770,9770],[9774,9775],[9784,9786],[9792,9792],[9794,9794],[9800,9811],[9823,9824],[9827,9827],[9829,9830],[9832,9832],[9851,9851],[9854,9855],[9874,9879],[9881,9881],[9883,9884],[9888,9889],[9895,9895],[9898,9899],[9904,9905],[9917,9918],[9924,9925],[9928,9928],[9934,9935],[9937,9937],[9939,9940],[9961,9962],[9968,9973],[9975,9978],[9981,9981],[9986,9986],[9989,9989],[9992,9997],[9999,9999],[10002,10002],[10004,10004],[10006,10006],[10013,10013],[10017,10017],[10024,10024],[10035,10036],[10052,10052],[10055,10055],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10083,10084],[10133,10135],[10145,10145],[10160,10160],[10175,10175],[10548,10549],[11013,11015],[11035,11036],[11088,11088],[11093,11093],[12336,12336],[12349,12349],[12951,12951],[12953,12953],[126980,126980],[127183,127183],[127344,127345],[127358,127359],[127374,127374],[127377,127386],[127462,127487],[127489,127490],[127514,127514],[127535,127535],[127538,127546],[127568,127569],[127744,127777],[127780,127891],[127894,127895],[127897,127899],[127902,127984],[127987,127989],[127991,128253],[128255,128317],[128329,128334],[128336,128359],[128367,128368],[128371,128378],[128391,128391],[128394,128397],[128400,128400],[128405,128406],[128420,128421],[128424,128424],[128433,128434],[128444,128444],[128450,128452],[128465,128467],[128476,128478],[128481,128481],[128483,128483],[128488,128488],[128495,128495],[128499,128499],[128506,128591],[128640,128709],[128715,128722],[128725,128728],[128732,128741],[128745,128745],[128747,128748],[128752,128752],[128755,128764],[128992,129003],[129008,129008],[129292,129338],[129340,129349],[129351,129535],[129648,129660],[129664,129674],[129678,129734],[129736,129736],[129741,129756],[129759,129770],[129775,129784]],t0=[[8986,8987],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127462,127487],[127489,127489],[127514,127514],[127535,127535],[127538,127542],[127544,127546],[127568,127569],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128728],[128732,128735],[128747,128748],[128756,128764],[128992,129003],[129008,129008],[129292,129338],[129340,129349],[129351,129535],[129648,129660],[129664,129674],[129678,129734],[129736,129736],[129741,129756],[129759,129770],[129775,129784]],r0=[[169,169],[174,174],[8252,8252],[8265,8265],[8482,8482],[8505,8505],[8596,8601],[8617,8618],[8986,8987],[9e3,9e3],[9167,9167],[9193,9203],[9208,9210],[9410,9410],[9642,9643],[9654,9654],[9664,9664],[9723,9726],[9728,9732],[9742,9742],[9745,9745],[9748,9749],[9752,9752],[9757,9757],[9760,9760],[9762,9763],[9766,9766],[9770,9770],[9774,9775],[9784,9786],[9792,9792],[9794,9794],[9800,9811],[9823,9824],[9827,9827],[9829,9830],[9832,9832],[9851,9851],[9854,9855],[9874,9879],[9881,9881],[9883,9884],[9888,9889],[9895,9895],[9898,9899],[9904,9905],[9917,9918],[9924,9925],[9928,9928],[9934,9935],[9937,9937],[9939,9940],[9961,9962],[9968,9973],[9975,9978],[9981,9981],[9986,9986],[9989,9989],[9992,9997],[9999,9999],[10002,10002],[10004,10004],[10006,10006],[10013,10013],[10017,10017],[10024,10024],[10035,10036],[10052,10052],[10055,10055],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10083,10084],[10133,10135],[10145,10145],[10160,10160],[10175,10175],[10548,10549],[11013,11015],[11035,11036],[11088,11088],[11093,11093],[12336,12336],[12349,12349],[12951,12951],[12953,12953],[126980,126980],[127020,127023],[127124,127135],[127151,127152],[127168,127168],[127183,127184],[127222,127231],[127344,127345],[127358,127359],[127374,127374],[127377,127386],[127406,127461],[127489,127503],[127514,127514],[127535,127535],[127538,127546],[127548,127551],[127561,127583],[127590,127777],[127780,127891],[127894,127895],[127897,127899],[127902,127984],[127987,127989],[127991,127994],[128e3,128253],[128255,128317],[128329,128334],[128336,128359],[128367,128368],[128371,128378],[128391,128391],[128394,128397],[128400,128400],[128405,128406],[128420,128421],[128424,128424],[128433,128434],[128444,128444],[128450,128452],[128465,128467],[128476,128478],[128481,128481],[128483,128483],[128488,128488],[128495,128495],[128499,128499],[128506,128591],[128640,128709],[128715,128722],[128725,128741],[128745,128745],[128747,128752],[128755,128767],[128986,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129199],[129212,129215],[129218,129231],[129241,129279],[129292,129338],[129340,129349],[129351,129535],[129624,129631],[129646,129791],[130048,131069]],n0=[[13,13]],u0=[[10,10]],s0=[[0,9],[11,12],[14,31],[127,159],[173,173],[1564,1564],[6158,6158],[8203,8203],[8206,8207],[8232,8238],[8288,8303],[65279,65279],[65520,65531],[78896,78911],[113824,113827],[119155,119162],[917504,917535],[917632,917759],[918e3,921599]],i0=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1552,1562],[1611,1631],[1648,1648],[1750,1756],[1759,1764],[1767,1768],[1770,1773],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2199,2207],[2250,2273],[2275,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2494,2494],[2497,2500],[2509,2509],[2519,2519],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2878,2879],[2881,2884],[2893,2893],[2901,2903],[2914,2915],[2946,2946],[3006,3006],[3008,3008],[3021,3021],[3031,3031],[3072,3072],[3076,3076],[3132,3132],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3264],[3266,3266],[3270,3272],[3274,3277],[3285,3286],[3298,3299],[3328,3329],[3387,3388],[3390,3390],[3393,3396],[3405,3405],[3415,3415],[3426,3427],[3457,3457],[3530,3530],[3535,3535],[3538,3540],[3542,3542],[3551,3551],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3790],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4957,4959],[5906,5909],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6159,6159],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6877],[6880,6891],[6912,6915],[6964,6973],[6978,6980],[7019,7027],[7040,7041],[7074,7077],[7080,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7155],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7679],[8204,8204],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12335],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43052,43052],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43347,43347],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43456,43456],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65438,65439],[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[68969,68973],[69291,69292],[69370,69375],[69446,69456],[69506,69509],[69633,69633],[69688,69702],[69744,69744],[69747,69748],[69759,69761],[69811,69814],[69817,69818],[69826,69826],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70080,70080],[70089,70092],[70095,70095],[70191,70193],[70196,70199],[70206,70206],[70209,70209],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70462,70462],[70464,70464],[70477,70477],[70487,70487],[70502,70508],[70512,70516],[70584,70584],[70587,70592],[70594,70594],[70597,70597],[70599,70601],[70606,70608],[70610,70610],[70625,70626],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70832,70832],[70835,70840],[70842,70842],[70845,70845],[70847,70848],[70850,70851],[71087,71087],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71351],[71453,71453],[71455,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[71984,71984],[71995,71998],[72003,72003],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72544,72544],[72546,72548],[72550,72550],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[73472,73473],[73526,73530],[73536,73538],[73562,73562],[78912,78912],[78919,78933],[90398,90409],[90413,90415],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[94180,94180],[94192,94193],[113821,113822],[118528,118573],[118576,118598],[119141,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123023,123023],[123184,123190],[123566,123566],[123628,123631],[124140,124143],[124398,124399],[124643,124643],[124646,124646],[124654,124655],[124661,124661],[125136,125142],[125252,125258],[127995,127999],[917536,917631],[917760,917999]],o0=[[8205,8205]],C0=[[127462,127487]],E0=[[1536,1541],[1757,1757],[1807,1807],[2192,2193],[2274,2274],[3406,3406],[69821,69821],[69837,69837],[70082,70083],[70609,70609],[71999,71999],[72001,72001],[72324,72329],[73030,73030],[73474,73474]],l0=[[2307,2307],[2363,2363],[2366,2368],[2377,2380],[2382,2383],[2434,2435],[2495,2496],[2503,2504],[2507,2508],[2563,2563],[2622,2624],[2691,2691],[2750,2752],[2761,2761],[2763,2764],[2818,2819],[2880,2880],[2887,2888],[2891,2892],[3007,3007],[3009,3010],[3014,3016],[3018,3020],[3073,3075],[3137,3140],[3202,3203],[3262,3262],[3265,3265],[3267,3268],[3315,3315],[3330,3331],[3391,3392],[3398,3400],[3402,3404],[3458,3459],[3536,3537],[3544,3550],[3570,3571],[3635,3635],[3763,3763],[3902,3903],[3967,3967],[4145,4145],[4155,4156],[4182,4183],[4228,4228],[6070,6070],[6078,6085],[6087,6088],[6435,6438],[6441,6443],[6448,6449],[6451,6456],[6681,6682],[6741,6741],[6743,6743],[6765,6770],[6916,6916],[6974,6977],[7042,7042],[7073,7073],[7078,7079],[7143,7143],[7146,7148],[7150,7150],[7204,7211],[7220,7221],[7393,7393],[7415,7415],[43043,43044],[43047,43047],[43136,43137],[43188,43203],[43346,43346],[43395,43395],[43444,43445],[43450,43451],[43454,43455],[43567,43568],[43571,43572],[43597,43597],[43755,43755],[43758,43759],[43765,43765],[44003,44004],[44006,44007],[44009,44010],[44012,44012],[69632,69632],[69634,69634],[69762,69762],[69808,69810],[69815,69816],[69932,69932],[69957,69958],[70018,70018],[70067,70069],[70079,70079],[70094,70094],[70188,70190],[70194,70195],[70368,70370],[70402,70403],[70463,70463],[70465,70468],[70471,70472],[70475,70476],[70498,70499],[70585,70586],[70602,70602],[70604,70605],[70709,70711],[70720,70721],[70725,70725],[70833,70834],[70841,70841],[70843,70844],[70846,70846],[70849,70849],[71088,71089],[71096,71099],[71102,71102],[71216,71218],[71227,71228],[71230,71230],[71340,71340],[71342,71343],[71454,71454],[71462,71462],[71724,71726],[71736,71736],[71985,71989],[71991,71992],[72e3,72e3],[72002,72002],[72145,72147],[72156,72159],[72164,72164],[72249,72249],[72279,72280],[72343,72343],[72545,72545],[72549,72549],[72551,72551],[72751,72751],[72766,72766],[72873,72873],[72881,72881],[72884,72884],[73098,73102],[73107,73108],[73110,73110],[73461,73462],[73475,73475],[73524,73525],[73534,73535],[90410,90412],[94033,94087]],N0=[[4352,4447],[43360,43388]],_0=[[4448,4519],[55216,55238],[93539,93539],[93543,93546]],I0=[[4520,4607],[55243,55291]],O0=[[44032,44032],[44060,44060],[44088,44088],[44116,44116],[44144,44144],[44172,44172],[44200,44200],[44228,44228],[44256,44256],[44284,44284],[44312,44312],[44340,44340],[44368,44368],[44396,44396],[44424,44424],[44452,44452],[44480,44480],[44508,44508],[44536,44536],[44564,44564],[44592,44592],[44620,44620],[44648,44648],[44676,44676],[44704,44704],[44732,44732],[44760,44760],[44788,44788],[44816,44816],[44844,44844],[44872,44872],[44900,44900],[44928,44928],[44956,44956],[44984,44984],[45012,45012],[45040,45040],[45068,45068],[45096,45096],[45124,45124],[45152,45152],[45180,45180],[45208,45208],[45236,45236],[45264,45264],[45292,45292],[45320,45320],[45348,45348],[45376,45376],[45404,45404],[45432,45432],[45460,45460],[45488,45488],[45516,45516],[45544,45544],[45572,45572],[45600,45600],[45628,45628],[45656,45656],[45684,45684],[45712,45712],[45740,45740],[45768,45768],[45796,45796],[45824,45824],[45852,45852],[45880,45880],[45908,45908],[45936,45936],[45964,45964],[45992,45992],[46020,46020],[46048,46048],[46076,46076],[46104,46104],[46132,46132],[46160,46160],[46188,46188],[46216,46216],[46244,46244],[46272,46272],[46300,46300],[46328,46328],[46356,46356],[46384,46384],[46412,46412],[46440,46440],[46468,46468],[46496,46496],[46524,46524],[46552,46552],[46580,46580],[46608,46608],[46636,46636],[46664,46664],[46692,46692],[46720,46720],[46748,46748],[46776,46776],[46804,46804],[46832,46832],[46860,46860],[46888,46888],[46916,46916],[46944,46944],[46972,46972],[47e3,47e3],[47028,47028],[47056,47056],[47084,47084],[47112,47112],[47140,47140],[47168,47168],[47196,47196],[47224,47224],[47252,47252],[47280,47280],[47308,47308],[47336,47336],[47364,47364],[47392,47392],[47420,47420],[47448,47448],[47476,47476],[47504,47504],[47532,47532],[47560,47560],[47588,47588],[47616,47616],[47644,47644],[47672,47672],[47700,47700],[47728,47728],[47756,47756],[47784,47784],[47812,47812],[47840,47840],[47868,47868],[47896,47896],[47924,47924],[47952,47952],[47980,47980],[48008,48008],[48036,48036],[48064,48064],[48092,48092],[48120,48120],[48148,48148],[48176,48176],[48204,48204],[48232,48232],[48260,48260],[48288,48288],[48316,48316],[48344,48344],[48372,48372],[48400,48400],[48428,48428],[48456,48456],[48484,48484],[48512,48512],[48540,48540],[48568,48568],[48596,48596],[48624,48624],[48652,48652],[48680,48680],[48708,48708],[48736,48736],[48764,48764],[48792,48792],[48820,48820],[48848,48848],[48876,48876],[48904,48904],[48932,48932],[48960,48960],[48988,48988],[49016,49016],[49044,49044],[49072,49072],[49100,49100],[49128,49128],[49156,49156],[49184,49184],[49212,49212],[49240,49240],[49268,49268],[49296,49296],[49324,49324],[49352,49352],[49380,49380],[49408,49408],[49436,49436],[49464,49464],[49492,49492],[49520,49520],[49548,49548],[49576,49576],[49604,49604],[49632,49632],[49660,49660],[49688,49688],[49716,49716],[49744,49744],[49772,49772],[49800,49800],[49828,49828],[49856,49856],[49884,49884],[49912,49912],[49940,49940],[49968,49968],[49996,49996],[50024,50024],[50052,50052],[50080,50080],[50108,50108],[50136,50136],[50164,50164],[50192,50192],[50220,50220],[50248,50248],[50276,50276],[50304,50304],[50332,50332],[50360,50360],[50388,50388],[50416,50416],[50444,50444],[50472,50472],[50500,50500],[50528,50528],[50556,50556],[50584,50584],[50612,50612],[50640,50640],[50668,50668],[50696,50696],[50724,50724],[50752,50752],[50780,50780],[50808,50808],[50836,50836],[50864,50864],[50892,50892],[50920,50920],[50948,50948],[50976,50976],[51004,51004],[51032,51032],[51060,51060],[51088,51088],[51116,51116],[51144,51144],[51172,51172],[51200,51200],[51228,51228],[51256,51256],[51284,51284],[51312,51312],[51340,51340],[51368,51368],[51396,51396],[51424,51424],[51452,51452],[51480,51480],[51508,51508],[51536,51536],[51564,51564],[51592,51592],[51620,51620],[51648,51648],[51676,51676],[51704,51704],[51732,51732],[51760,51760],[51788,51788],[51816,51816],[51844,51844],[51872,51872],[51900,51900],[51928,51928],[51956,51956],[51984,51984],[52012,52012],[52040,52040],[52068,52068],[52096,52096],[52124,52124],[52152,52152],[52180,52180],[52208,52208],[52236,52236],[52264,52264],[52292,52292],[52320,52320],[52348,52348],[52376,52376],[52404,52404],[52432,52432],[52460,52460],[52488,52488],[52516,52516],[52544,52544],[52572,52572],[52600,52600],[52628,52628],[52656,52656],[52684,52684],[52712,52712],[52740,52740],[52768,52768],[52796,52796],[52824,52824],[52852,52852],[52880,52880],[52908,52908],[52936,52936],[52964,52964],[52992,52992],[53020,53020],[53048,53048],[53076,53076],[53104,53104],[53132,53132],[53160,53160],[53188,53188],[53216,53216],[53244,53244],[53272,53272],[53300,53300],[53328,53328],[53356,53356],[53384,53384],[53412,53412],[53440,53440],[53468,53468],[53496,53496],[53524,53524],[53552,53552],[53580,53580],[53608,53608],[53636,53636],[53664,53664],[53692,53692],[53720,53720],[53748,53748],[53776,53776],[53804,53804],[53832,53832],[53860,53860],[53888,53888],[53916,53916],[53944,53944],[53972,53972],[54e3,54e3],[54028,54028],[54056,54056],[54084,54084],[54112,54112],[54140,54140],[54168,54168],[54196,54196],[54224,54224],[54252,54252],[54280,54280],[54308,54308],[54336,54336],[54364,54364],[54392,54392],[54420,54420],[54448,54448],[54476,54476],[54504,54504],[54532,54532],[54560,54560],[54588,54588],[54616,54616],[54644,54644],[54672,54672],[54700,54700],[54728,54728],[54756,54756],[54784,54784],[54812,54812],[54840,54840],[54868,54868],[54896,54896],[54924,54924],[54952,54952],[54980,54980],[55008,55008],[55036,55036],[55064,55064],[55092,55092],[55120,55120],[55148,55148],[55176,55176]],R0=[[44033,44059],[44061,44087],[44089,44115],[44117,44143],[44145,44171],[44173,44199],[44201,44227],[44229,44255],[44257,44283],[44285,44311],[44313,44339],[44341,44367],[44369,44395],[44397,44423],[44425,44451],[44453,44479],[44481,44507],[44509,44535],[44537,44563],[44565,44591],[44593,44619],[44621,44647],[44649,44675],[44677,44703],[44705,44731],[44733,44759],[44761,44787],[44789,44815],[44817,44843],[44845,44871],[44873,44899],[44901,44927],[44929,44955],[44957,44983],[44985,45011],[45013,45039],[45041,45067],[45069,45095],[45097,45123],[45125,45151],[45153,45179],[45181,45207],[45209,45235],[45237,45263],[45265,45291],[45293,45319],[45321,45347],[45349,45375],[45377,45403],[45405,45431],[45433,45459],[45461,45487],[45489,45515],[45517,45543],[45545,45571],[45573,45599],[45601,45627],[45629,45655],[45657,45683],[45685,45711],[45713,45739],[45741,45767],[45769,45795],[45797,45823],[45825,45851],[45853,45879],[45881,45907],[45909,45935],[45937,45963],[45965,45991],[45993,46019],[46021,46047],[46049,46075],[46077,46103],[46105,46131],[46133,46159],[46161,46187],[46189,46215],[46217,46243],[46245,46271],[46273,46299],[46301,46327],[46329,46355],[46357,46383],[46385,46411],[46413,46439],[46441,46467],[46469,46495],[46497,46523],[46525,46551],[46553,46579],[46581,46607],[46609,46635],[46637,46663],[46665,46691],[46693,46719],[46721,46747],[46749,46775],[46777,46803],[46805,46831],[46833,46859],[46861,46887],[46889,46915],[46917,46943],[46945,46971],[46973,46999],[47001,47027],[47029,47055],[47057,47083],[47085,47111],[47113,47139],[47141,47167],[47169,47195],[47197,47223],[47225,47251],[47253,47279],[47281,47307],[47309,47335],[47337,47363],[47365,47391],[47393,47419],[47421,47447],[47449,47475],[47477,47503],[47505,47531],[47533,47559],[47561,47587],[47589,47615],[47617,47643],[47645,47671],[47673,47699],[47701,47727],[47729,47755],[47757,47783],[47785,47811],[47813,47839],[47841,47867],[47869,47895],[47897,47923],[47925,47951],[47953,47979],[47981,48007],[48009,48035],[48037,48063],[48065,48091],[48093,48119],[48121,48147],[48149,48175],[48177,48203],[48205,48231],[48233,48259],[48261,48287],[48289,48315],[48317,48343],[48345,48371],[48373,48399],[48401,48427],[48429,48455],[48457,48483],[48485,48511],[48513,48539],[48541,48567],[48569,48595],[48597,48623],[48625,48651],[48653,48679],[48681,48707],[48709,48735],[48737,48763],[48765,48791],[48793,48819],[48821,48847],[48849,48875],[48877,48903],[48905,48931],[48933,48959],[48961,48987],[48989,49015],[49017,49043],[49045,49071],[49073,49099],[49101,49127],[49129,49155],[49157,49183],[49185,49211],[49213,49239],[49241,49267],[49269,49295],[49297,49323],[49325,49351],[49353,49379],[49381,49407],[49409,49435],[49437,49463],[49465,49491],[49493,49519],[49521,49547],[49549,49575],[49577,49603],[49605,49631],[49633,49659],[49661,49687],[49689,49715],[49717,49743],[49745,49771],[49773,49799],[49801,49827],[49829,49855],[49857,49883],[49885,49911],[49913,49939],[49941,49967],[49969,49995],[49997,50023],[50025,50051],[50053,50079],[50081,50107],[50109,50135],[50137,50163],[50165,50191],[50193,50219],[50221,50247],[50249,50275],[50277,50303],[50305,50331],[50333,50359],[50361,50387],[50389,50415],[50417,50443],[50445,50471],[50473,50499],[50501,50527],[50529,50555],[50557,50583],[50585,50611],[50613,50639],[50641,50667],[50669,50695],[50697,50723],[50725,50751],[50753,50779],[50781,50807],[50809,50835],[50837,50863],[50865,50891],[50893,50919],[50921,50947],[50949,50975],[50977,51003],[51005,51031],[51033,51059],[51061,51087],[51089,51115],[51117,51143],[51145,51171],[51173,51199],[51201,51227],[51229,51255],[51257,51283],[51285,51311],[51313,51339],[51341,51367],[51369,51395],[51397,51423],[51425,51451],[51453,51479],[51481,51507],[51509,51535],[51537,51563],[51565,51591],[51593,51619],[51621,51647],[51649,51675],[51677,51703],[51705,51731],[51733,51759],[51761,51787],[51789,51815],[51817,51843],[51845,51871],[51873,51899],[51901,51927],[51929,51955],[51957,51983],[51985,52011],[52013,52039],[52041,52067],[52069,52095],[52097,52123],[52125,52151],[52153,52179],[52181,52207],[52209,52235],[52237,52263],[52265,52291],[52293,52319],[52321,52347],[52349,52375],[52377,52403],[52405,52431],[52433,52459],[52461,52487],[52489,52515],[52517,52543],[52545,52571],[52573,52599],[52601,52627],[52629,52655],[52657,52683],[52685,52711],[52713,52739],[52741,52767],[52769,52795],[52797,52823],[52825,52851],[52853,52879],[52881,52907],[52909,52935],[52937,52963],[52965,52991],[52993,53019],[53021,53047],[53049,53075],[53077,53103],[53105,53131],[53133,53159],[53161,53187],[53189,53215],[53217,53243],[53245,53271],[53273,53299],[53301,53327],[53329,53355],[53357,53383],[53385,53411],[53413,53439],[53441,53467],[53469,53495],[53497,53523],[53525,53551],[53553,53579],[53581,53607],[53609,53635],[53637,53663],[53665,53691],[53693,53719],[53721,53747],[53749,53775],[53777,53803],[53805,53831],[53833,53859],[53861,53887],[53889,53915],[53917,53943],[53945,53971],[53973,53999],[54001,54027],[54029,54055],[54057,54083],[54085,54111],[54113,54139],[54141,54167],[54169,54195],[54197,54223],[54225,54251],[54253,54279],[54281,54307],[54309,54335],[54337,54363],[54365,54391],[54393,54419],[54421,54447],[54449,54475],[54477,54503],[54505,54531],[54533,54559],[54561,54587],[54589,54615],[54617,54643],[54645,54671],[54673,54699],[54701,54727],[54729,54755],[54757,54783],[54785,54811],[54813,54839],[54841,54867],[54869,54895],[54897,54923],[54925,54951],[54953,54979],[54981,55007],[55009,55035],[55037,55063],[55065,55091],[55093,55119],[55121,55147],[55149,55175],[55177,55203]],T0=[[2325,2361],[2392,2399],[2424,2431],[2453,2472],[2474,2480],[2482,2482],[2486,2489],[2524,2525],[2527,2527],[2544,2545],[2709,2728],[2730,2736],[2738,2739],[2741,2745],[2809,2809],[2837,2856],[2858,2864],[2866,2867],[2869,2873],[2908,2909],[2911,2911],[2929,2929],[3093,3112],[3114,3129],[3160,3162],[3349,3386],[4096,4138],[4159,4159],[4176,4181],[4186,4189],[4193,4193],[4197,4198],[4206,4208],[4213,4225],[4238,4238],[6016,6067],[6688,6740],[6923,6924],[6931,6963],[6981,6988],[7043,7072],[7086,7087],[7099,7101],[43401,43403],[43407,43442],[43488,43492],[43495,43503],[43514,43518],[43616,43631],[43633,43635],[43642,43642],[43646,43647],[43744,43754],[43968,43994],[68096,68096],[68112,68115],[68117,68119],[68121,68149],[69891,69926],[69956,69956],[69959,69959],[70528,70537],[70539,70539],[70542,70542],[70544,70581],[71936,71942],[71945,71945],[71948,71955],[71957,71958],[71960,71983],[72192,72192],[72203,72242],[72272,72272],[72284,72323],[73476,73488],[73490,73523]],B0=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1552,1562],[1611,1631],[1648,1648],[1750,1756],[1759,1764],[1767,1768],[1770,1773],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2199,2207],[2250,2273],[2275,2306],[2362,2362],[2364,2364],[2369,2376],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2494,2494],[2497,2500],[2519,2519],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2878,2879],[2881,2884],[2901,2903],[2914,2915],[2946,2946],[3006,3006],[3008,3008],[3021,3021],[3031,3031],[3072,3072],[3076,3076],[3132,3132],[3134,3136],[3142,3144],[3146,3148],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3264],[3266,3266],[3270,3272],[3274,3277],[3285,3286],[3298,3299],[3328,3329],[3387,3388],[3390,3390],[3393,3396],[3415,3415],[3426,3427],[3457,3457],[3530,3530],[3535,3535],[3538,3540],[3542,3542],[3551,3551],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3790],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4154,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4957,4959],[5906,5909],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6097],[6099,6099],[6109,6109],[6155,6157],[6159,6159],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6877],[6880,6891],[6912,6915],[6964,6973],[6978,6979],[7019,7027],[7040,7041],[7074,7077],[7080,7082],[7084,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7155],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7679],[8205,8205],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12335],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43052,43052],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43347,43347],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65438,65439],[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68325,68326],[68900,68903],[68969,68973],[69291,69292],[69370,69375],[69446,69456],[69506,69509],[69633,69633],[69688,69702],[69744,69744],[69747,69748],[69759,69761],[69811,69814],[69817,69818],[69826,69826],[69888,69890],[69927,69931],[69933,69938],[69940,69940],[70003,70003],[70016,70017],[70070,70078],[70080,70080],[70089,70092],[70095,70095],[70191,70193],[70196,70199],[70206,70206],[70209,70209],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70462,70462],[70464,70464],[70477,70477],[70487,70487],[70502,70508],[70512,70516],[70584,70584],[70587,70592],[70594,70594],[70597,70597],[70599,70601],[70606,70607],[70610,70610],[70625,70626],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70832,70832],[70835,70840],[70842,70842],[70845,70845],[70847,70848],[70850,70851],[71087,71087],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71351],[71453,71453],[71455,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[71984,71984],[71995,71997],[72003,72003],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72273,72278],[72281,72283],[72330,72342],[72344,72344],[72544,72544],[72546,72548],[72550,72550],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[73472,73473],[73526,73530],[73536,73537],[73562,73562],[78912,78912],[78919,78933],[90398,90409],[90413,90415],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[94180,94180],[94192,94193],[113821,113822],[118528,118573],[118576,118598],[119141,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123023,123023],[123184,123190],[123566,123566],[123628,123631],[124140,124143],[124398,124399],[124643,124643],[124646,124646],[124654,124655],[124661,124661],[125136,125142],[125252,125258],[127995,127999],[917536,917631],[917760,917999]],G0=[[2381,2381],[2509,2509],[2765,2765],[2893,2893],[3149,3149],[3405,3405],[4153,4153],[6098,6098],[6752,6752],[6980,6980],[7083,7083],[43456,43456],[43766,43766],[68159,68159],[69939,69939],[70608,70608],[71998,71998],[72263,72263],[72345,72345],[73538,73538]];S.exports={UNICODE_VERSION:b0,ZERO_WIDTH:a0,WIDE:d0,EMOJI:e0,EMOJI_PRESENTATION:t0,EXTENDED_PICTOGRAPHIC:r0,GCB_CR:n0,GCB_LF:u0,GCB_CONTROL:s0,GCB_EXTEND:i0,GCB_ZWJ:o0,GCB_REGIONAL_INDICATOR:C0,GCB_PREPEND:E0,GCB_SPACING_MARK:l0,GCB_L:N0,GCB_V:_0,GCB_T:I0,GCB_LV:O0,GCB_LVT:R0,INCB_CONSONANT:T0,INCB_EXTEND:B0,INCB_LINKER:G0}});var l=n((lx,g)=>{"use strict";function A0(x,c){let f=0,b=c.length-1;if(b<0||x<c[0][0]||x>c[b][1])return!1;for(;b>=f;){let a=Math.floor((f+b)/2),d=c[a];if(x>d[1])f=a+1;else if(x<d[0])b=a-1;else return!0}return!1}g.exports={inRanges:A0}});var K=n((Nx,q)=>{"use strict";var{EXTENDED_PICTOGRAPHIC:w,GCB_CONTROL:h0,GCB_CR:D0,GCB_EXTEND:L0,GCB_L:m0,GCB_LF:P0,GCB_LV:V0,GCB_LVT:S0,GCB_PREPEND:g0,GCB_REGIONAL_INDICATOR:w0,GCB_SPACING_MARK:W0,GCB_T:M0,GCB_V:X0,GCB_ZWJ:j0,INCB_CONSONANT:J0,INCB_EXTEND:q0,INCB_LINKER:K0}=E(),{inRanges:e}=l(),U0=0,T=1,B=2,M=3,G=4,A=5,u=6,X=7,j=8,N=9,i=10,o=11,_=12,I=13,H0=0,O=1,J=2,R=3;function Z0(x){let c=Array.from(x,r=>r.codePointAt(0));if(c.length===0)return[];let f=c.map(Y0),b=c.map(z0),a=[],d=0,t=f[0]===u?1:0;for(let r=1;r<c.length;r+=1){let L=y0(c,f,b,r,t);L&&(a.push(c.slice(d,r)),d=r),t=f[r]===u?L?1:t+1:0}return a.push(c.slice(d)),a}function y0(x,c,f,b,a){let d=c[b-1],t=c[b];return d===T&&t===B?!1:W(d)||W(t)?!0:d===N&&(t===N||t===i||t===_||t===I)||(d===_||d===i)&&(t===i||t===o)||(d===I||d===o)&&t===o||t===G||t===A||t===j||d===X||F0(f,b)||k0(x,c,b)?!1:d===u&&t===u?a%2===0:!0}function F0(x,c){if(x[c]!==O)return!1;let f=c-1,b=!1;for(;f>=0&&(x[f]===J||x[f]===R);)x[f]===R&&(b=!0),f-=1;return b&&f>=0&&x[f]===O}function k0(x,c,f){if(!e(x[f],w)||c[f-1]!==A)return!1;let b=f-2;for(;b>=0&&c[b]===G;)b-=1;return b>=0&&e(x[b],w)}function Y0(x){return e(x,D0)?T:e(x,P0)?B:e(x,h0)?M:e(x,L0)?G:e(x,j0)?A:e(x,w0)?u:e(x,g0)?X:e(x,W0)?j:e(x,m0)?N:e(x,X0)?i:e(x,M0)?o:e(x,V0)?_:e(x,S0)?I:U0}function z0(x){return e(x,J0)?O:e(x,q0)?J:e(x,K0)?R:H0}function W(x){return x===T||x===B||x===M}q.exports={splitGraphemeCodePoints:Z0}});var Z=n((_x,H)=>{"use strict";var{EMOJI:Q0,EMOJI_PRESENTATION:$0,EXTENDED_PICTOGRAPHIC:v0,UNICODE_VERSION:p0,WIDE:xx,ZERO_WIDTH:cx}=E(),{splitGraphemeCodePoints:fx}=K(),{inRanges:s}=l(),bx=65038,U=65039,ax=8205,dx=8419;function ex(x,c){if(typeof x!="string")return h(x,c);let f=tx(x);if(f!==-1)return f;let b=0;for(let a of fx(x)){let d=rx(a,c);if(d<0)return-1;b+=d}return b}function tx(x){for(let c=0;c<x.length;c+=1){let f=x.charCodeAt(c);if(f<32||f>126)return-1}return x.length}function rx(x,c){if(nx(x))return 2;let f=0;for(let b of x){let a=h(b,c);if(a<0)return-1;f+=a}return f}function h(x,c){return x===0?c.nul:x<32||x>=127&&x<160?c.control:s(x,cx)?0:s(x,xx)?2:1}function nx(x){if(x.includes(bx)&&!x.includes(U))return!1;if(x.some(f=>s(f,Q0))&&x.includes(U)||x.includes(dx)&&x.some(ux)||x.some(f=>s(f,$0)))return!0;if(x.includes(ax)){let f=0;for(let b of x)s(b,v0)&&(f+=1);if(f>=2)return!0}return!1}function ux(x){return x===35||x===42||x>=48&&x<=57}H.exports={UNICODE_VERSION:p0,codePointWidth:h,measure:ex}});var Y=n((Ix,k)=>{"use strict";var sx=V(),{measure:y,UNICODE_VERSION:ix}=Z(),F={nul:0,control:0};function D(x){return y(x,F)}D.config=function(x){return x=sx(x,F),function(f){return y(f,x)}};Object.defineProperty(D,"unicodeVersion",{value:ix,enumerable:!1});k.exports=D});var C=c0(Y(),1),Ox=C.default.config,Rx=C.default.unicodeVersion;var Tx=C.default;export{Ox as config,Tx as default,Rx as unicodeVersion};
|
package/examples/esm.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
npm install @stackline/wcwidth@1.0.0
|
package/index.d.cts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function wcwidth(value?: unknown): number
|
|
2
|
+
|
|
3
|
+
declare namespace wcwidth {
|
|
4
|
+
interface Options {
|
|
5
|
+
nul?: number
|
|
6
|
+
control?: number
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface ConfiguredWcwidth {
|
|
10
|
+
(value?: unknown): number
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function config(options?: Options | null): ConfiguredWcwidth
|
|
14
|
+
const unicodeVersion: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export = wcwidth
|
package/index.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface WcwidthOptions {
|
|
2
|
+
nul?: number
|
|
3
|
+
control?: number
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface ConfiguredWcwidth {
|
|
7
|
+
(value?: unknown): number
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface Wcwidth {
|
|
11
|
+
(value?: unknown): number
|
|
12
|
+
config(options?: WcwidthOptions | null): ConfiguredWcwidth
|
|
13
|
+
readonly unicodeVersion: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare const wcwidth: Wcwidth
|
|
17
|
+
export declare const config: Wcwidth['config']
|
|
18
|
+
export declare const unicodeVersion: string
|
|
19
|
+
export default wcwidth
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function wcwidth(value?: unknown): number
|
|
2
|
+
|
|
3
|
+
declare namespace wcwidth {
|
|
4
|
+
interface Options {
|
|
5
|
+
nul?: number
|
|
6
|
+
control?: number
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface ConfiguredWcwidth {
|
|
10
|
+
(value?: unknown): number
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function config(options?: Options | null): ConfiguredWcwidth
|
|
14
|
+
const unicodeVersion: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export = wcwidth
|
package/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const applyDefaults = require('./lib/defaults')
|
|
4
|
+
const { measure, UNICODE_VERSION } = require('./lib/width')
|
|
5
|
+
|
|
6
|
+
const DEFAULTS = {
|
|
7
|
+
nul: 0,
|
|
8
|
+
control: 0
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function wcwidth(value) {
|
|
12
|
+
return measure(value, DEFAULTS)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
wcwidth.config = function (options) {
|
|
16
|
+
options = applyDefaults(options, DEFAULTS)
|
|
17
|
+
|
|
18
|
+
return function wcwidth(value) {
|
|
19
|
+
return measure(value, options)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
Object.defineProperty(wcwidth, 'unicodeVersion', {
|
|
24
|
+
value: UNICODE_VERSION,
|
|
25
|
+
enumerable: false
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
module.exports = wcwidth
|
package/index.mjs
ADDED
package/lib/defaults.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Deliberately not strict: defaults@1.0.4 silently ignored writes to frozen
|
|
2
|
+
// objects and truthy primitives. The public module stays strict while this
|
|
3
|
+
// small compatibility helper preserves that behavior without dependencies.
|
|
4
|
+
function applyDefaults(options, values) {
|
|
5
|
+
options = options || {}
|
|
6
|
+
Object.keys(values).forEach(function fillDefault(key) {
|
|
7
|
+
if (typeof options[key] === 'undefined') options[key] = values[key]
|
|
8
|
+
})
|
|
9
|
+
return options
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
module.exports = applyDefaults
|
package/lib/graphemes.js
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const {
|
|
4
|
+
EXTENDED_PICTOGRAPHIC,
|
|
5
|
+
GCB_CONTROL,
|
|
6
|
+
GCB_CR,
|
|
7
|
+
GCB_EXTEND,
|
|
8
|
+
GCB_L,
|
|
9
|
+
GCB_LF,
|
|
10
|
+
GCB_LV,
|
|
11
|
+
GCB_LVT,
|
|
12
|
+
GCB_PREPEND,
|
|
13
|
+
GCB_REGIONAL_INDICATOR,
|
|
14
|
+
GCB_SPACING_MARK,
|
|
15
|
+
GCB_T,
|
|
16
|
+
GCB_V,
|
|
17
|
+
GCB_ZWJ,
|
|
18
|
+
INCB_CONSONANT,
|
|
19
|
+
INCB_EXTEND,
|
|
20
|
+
INCB_LINKER
|
|
21
|
+
} = require('./unicode-tables')
|
|
22
|
+
const { inRanges } = require('./ranges')
|
|
23
|
+
|
|
24
|
+
const OTHER = 0
|
|
25
|
+
const CR = 1
|
|
26
|
+
const LF = 2
|
|
27
|
+
const CONTROL = 3
|
|
28
|
+
const EXTEND = 4
|
|
29
|
+
const ZWJ = 5
|
|
30
|
+
const REGIONAL_INDICATOR = 6
|
|
31
|
+
const PREPEND = 7
|
|
32
|
+
const SPACING_MARK = 8
|
|
33
|
+
const L = 9
|
|
34
|
+
const V = 10
|
|
35
|
+
const T = 11
|
|
36
|
+
const LV = 12
|
|
37
|
+
const LVT = 13
|
|
38
|
+
|
|
39
|
+
const INCB_NONE = 0
|
|
40
|
+
const INCB_CONSONANT_VALUE = 1
|
|
41
|
+
const INCB_EXTEND_VALUE = 2
|
|
42
|
+
const INCB_LINKER_VALUE = 3
|
|
43
|
+
|
|
44
|
+
function splitGraphemeCodePoints(string) {
|
|
45
|
+
const points = Array.from(string, (character) => character.codePointAt(0))
|
|
46
|
+
if (points.length === 0) return []
|
|
47
|
+
|
|
48
|
+
const properties = points.map(graphemeProperty)
|
|
49
|
+
const indicProperties = points.map(indicConjunctProperty)
|
|
50
|
+
const clusters = []
|
|
51
|
+
let start = 0
|
|
52
|
+
let regionalIndicatorRun = properties[0] === REGIONAL_INDICATOR ? 1 : 0
|
|
53
|
+
|
|
54
|
+
for (let index = 1; index < points.length; index += 1) {
|
|
55
|
+
const breaks = shouldBreak(points, properties, indicProperties, index, regionalIndicatorRun)
|
|
56
|
+
if (breaks) {
|
|
57
|
+
clusters.push(points.slice(start, index))
|
|
58
|
+
start = index
|
|
59
|
+
}
|
|
60
|
+
regionalIndicatorRun = properties[index] === REGIONAL_INDICATOR
|
|
61
|
+
? (breaks ? 1 : regionalIndicatorRun + 1)
|
|
62
|
+
: 0
|
|
63
|
+
}
|
|
64
|
+
clusters.push(points.slice(start))
|
|
65
|
+
return clusters
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function shouldBreak(points, properties, indicProperties, index, regionalIndicatorRun) {
|
|
69
|
+
const previous = properties[index - 1]
|
|
70
|
+
const current = properties[index]
|
|
71
|
+
|
|
72
|
+
// GB3
|
|
73
|
+
if (previous === CR && current === LF) return false
|
|
74
|
+
// GB4 and GB5
|
|
75
|
+
if (isControl(previous) || isControl(current)) return true
|
|
76
|
+
// GB6, GB7 and GB8
|
|
77
|
+
if (previous === L && (current === L || current === V || current === LV || current === LVT)) return false
|
|
78
|
+
if ((previous === LV || previous === V) && (current === V || current === T)) return false
|
|
79
|
+
if ((previous === LVT || previous === T) && current === T) return false
|
|
80
|
+
// GB9, GB9a and GB9b
|
|
81
|
+
if (current === EXTEND || current === ZWJ) return false
|
|
82
|
+
if (current === SPACING_MARK) return false
|
|
83
|
+
if (previous === PREPEND) return false
|
|
84
|
+
// GB9c
|
|
85
|
+
if (isIndicConjunct(indicProperties, index)) return false
|
|
86
|
+
// GB11
|
|
87
|
+
if (isEmojiZwjSequence(points, properties, index)) return false
|
|
88
|
+
// GB12 and GB13
|
|
89
|
+
if (previous === REGIONAL_INDICATOR && current === REGIONAL_INDICATOR) {
|
|
90
|
+
return regionalIndicatorRun % 2 === 0
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// GB999
|
|
94
|
+
return true
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function isIndicConjunct(properties, index) {
|
|
98
|
+
if (properties[index] !== INCB_CONSONANT_VALUE) return false
|
|
99
|
+
|
|
100
|
+
let cursor = index - 1
|
|
101
|
+
let linkerSeen = false
|
|
102
|
+
while (cursor >= 0 &&
|
|
103
|
+
(properties[cursor] === INCB_EXTEND_VALUE || properties[cursor] === INCB_LINKER_VALUE)) {
|
|
104
|
+
if (properties[cursor] === INCB_LINKER_VALUE) linkerSeen = true
|
|
105
|
+
cursor -= 1
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return linkerSeen && cursor >= 0 && properties[cursor] === INCB_CONSONANT_VALUE
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function isEmojiZwjSequence(points, properties, index) {
|
|
112
|
+
if (!inRanges(points[index], EXTENDED_PICTOGRAPHIC) || properties[index - 1] !== ZWJ) return false
|
|
113
|
+
|
|
114
|
+
let cursor = index - 2
|
|
115
|
+
while (cursor >= 0 && properties[cursor] === EXTEND) cursor -= 1
|
|
116
|
+
return cursor >= 0 && inRanges(points[cursor], EXTENDED_PICTOGRAPHIC)
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function graphemeProperty(point) {
|
|
120
|
+
if (inRanges(point, GCB_CR)) return CR
|
|
121
|
+
if (inRanges(point, GCB_LF)) return LF
|
|
122
|
+
if (inRanges(point, GCB_CONTROL)) return CONTROL
|
|
123
|
+
if (inRanges(point, GCB_EXTEND)) return EXTEND
|
|
124
|
+
if (inRanges(point, GCB_ZWJ)) return ZWJ
|
|
125
|
+
if (inRanges(point, GCB_REGIONAL_INDICATOR)) return REGIONAL_INDICATOR
|
|
126
|
+
if (inRanges(point, GCB_PREPEND)) return PREPEND
|
|
127
|
+
if (inRanges(point, GCB_SPACING_MARK)) return SPACING_MARK
|
|
128
|
+
if (inRanges(point, GCB_L)) return L
|
|
129
|
+
if (inRanges(point, GCB_V)) return V
|
|
130
|
+
if (inRanges(point, GCB_T)) return T
|
|
131
|
+
if (inRanges(point, GCB_LV)) return LV
|
|
132
|
+
if (inRanges(point, GCB_LVT)) return LVT
|
|
133
|
+
return OTHER
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function indicConjunctProperty(point) {
|
|
137
|
+
if (inRanges(point, INCB_CONSONANT)) return INCB_CONSONANT_VALUE
|
|
138
|
+
if (inRanges(point, INCB_EXTEND)) return INCB_EXTEND_VALUE
|
|
139
|
+
if (inRanges(point, INCB_LINKER)) return INCB_LINKER_VALUE
|
|
140
|
+
return INCB_NONE
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function isControl(property) {
|
|
144
|
+
return property === CR || property === LF || property === CONTROL
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
module.exports = { splitGraphemeCodePoints }
|
package/lib/ranges.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
function inRanges(value, ranges) {
|
|
4
|
+
let minimum = 0
|
|
5
|
+
let maximum = ranges.length - 1
|
|
6
|
+
|
|
7
|
+
if (maximum < 0 || value < ranges[0][0] || value > ranges[maximum][1]) {
|
|
8
|
+
return false
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
while (maximum >= minimum) {
|
|
12
|
+
const middle = Math.floor((minimum + maximum) / 2)
|
|
13
|
+
const range = ranges[middle]
|
|
14
|
+
if (value > range[1]) minimum = middle + 1
|
|
15
|
+
else if (value < range[0]) maximum = middle - 1
|
|
16
|
+
else return true
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return false
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
module.exports = { inRanges }
|