@univerjs/engine-render 0.1.0-alpha.3 → 0.1.0-beta.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/lib/cjs/index.js +3 -3
- package/lib/es/index.js +3238 -3250
- package/lib/types/basics/const.d.ts +7 -1
- package/lib/types/basics/draw.d.ts +1 -0
- package/lib/types/components/docs/common/index.d.ts +1 -1
- package/lib/types/components/docs/text-selection-render-manager.d.ts +14 -14
- package/lib/types/components/sheets/spreadsheet.d.ts +1 -6
- package/lib/types/thin-scene.d.ts +4 -0
- package/lib/types/viewport.d.ts +1 -0
- package/lib/umd/index.js +3 -3
- package/package.json +3 -3
- /package/lib/types/components/docs/common/{range.d.ts → text-range.d.ts} +0 -0
package/lib/cjs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Xt=Object.defineProperty;var zt=(r,n,t)=>n in r?Xt(r,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[n]=t;var _=(r,n,t)=>(zt(r,typeof n!="symbol"?n+"":n,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@univerjs/core"),s2=require("@wendellhu/redi"),p1=require("rxjs");var R6=(r=>(r.RECT="rect",r.CIRCLE="circle",r.PATH="path",r))(R6||{}),S1=(r=>(r.PointerMove="PointerMove",r.PointerDown="PointerDown",r.PointerUp="PointerUp",r.PointerOut="PointerOut",r.PointerLeave="PointerLeave",r.PointerOver="PointerOver",r.PointerEnter="PointerEnter",r.wheel="MouseWheel",r.KeyDown="KeyDown",r.KeyUp="KeyUp",r))(S1||{}),W7=(r=>(r[r.XY=0]="XY",r[r.X=1]="X",r[r.Y=2]="Y",r))(W7||{});const x6=1,Z2='"Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif',Y7={lines:[],drawings:new Map,height:0,st:0,ed:0,marginLeft:0},Wt={...Y7,marginTop:20},Yt={...Y7,marginBottom:20},j7="0",m6=1,U7=14;var i1=(r=>(r.DEFAULT="default",r.AUTO="auto",r.CROSSHAIR="crosshair",r.POINTER="pointer",r.MOVE="move",r.EAST_RESIZE="e-resize",r.NORTH_EAST_RESIZE="ne-resize",r.NORTH_WEST_RESIZE="nw-resize",r.NORTH_RESIZE="n-resize",r.SOUTH_EAST_RESIZE="se-resize",r.SOUTH_WEST_RESIZE="sw-resize",r.SOUTH_RESIZE="s-resize",r.WEST_RESIZE="w-resize",r.TEXT="text",r.WAIT="wait",r.HELP="help",r.CELL="cell",r.NONE="none",r.VERTICAL_TEXT="vertical-text",r.NO_DROP="no-drop",r.GRAB="grab",r.GRABBING="grabbing",r.ALL_SCROLL="all-scroll",r.COLUMN_RESIZE="col-resize",r.ROW_RESIZE="row-resize",r.PROGRESS="progress",r.NOT_ALLOWED="not-allowed",r.ZOOM_IN="zoom-in",r.ZOOM_OUT="zoom-out",r))(i1||{}),V7=(r=>(r[r.noClip=0]="noClip",r[r.DOC_SIZE=1]="DOC_SIZE",r[r.CONTENT_SIZE_LEFT=2]="CONTENT_SIZE_LEFT",r[r.CONTENT_SIZE_CENTER=3]="CONTENT_SIZE_CENTER",r[r.CONTENT_SIZE_Right=4]="CONTENT_SIZE_Right",r))(V7||{});const j1="rgb(0,0,0)";var e1=(r=>(r.TOP="t",r.BOTTOM="b",r.LEFT="l",r.RIGHT="r",r))(e1||{}),C2=(r=>(r[r.UP=0]="UP",r[r.DOWN=1]="DOWN",r))(C2||{}),P=(r=>(r.ENGINE="Engine",r.SCENE="Scene",r.BASE_OBJECT="BaseObject",r.SCENE_VIEWER="SceneViewer",r.CANVAS="Canvas",r.VIEWPORT="Viewport",r.LAYER="Layer",r.GROUP="Group",r))(P||{});const jt=1e3,G7=2e3,g1=.5;var n1=(r=>(r[r.translate=0]="translate",r[r.resize=1]="resize",r[r.scale=2]="scale",r[r.skew=3]="skew",r[r.flip=4]="flip",r[r.all=5]="all",r))(n1||{});class Ut{isEmpty(){return this._isEmpty()}toString(n){if(this.isEmpty())throw new Error("Output is empty.");return this._toString(n)}toRegExp(n){return new RegExp(this.toString(n),n)}}class y1 extends Ut{constructor(...n){super(),this.data=[];for(const t of n)t instanceof y1?this.data.push(...t.data):this.data.push(Gt(t));this._unique()}union(...n){return new y1(this,...n)}subtract(...n){const t=this.data.slice(),e=[];let s=0;const{data:i}=new y1(...n);for(;t.length!==0;){const o=t.shift(),[a,c]=o;let l;do{l=!0;const u=i[s];if(u===void 0){e.push(o);break}const[h,g]=u;g<a?(l=!1,s++):c<h?e.push(o):h<=a&&g<c?(s++,t.unshift([g+1,c])):a<h&&g<c?(s++,e.push([a,h-1]),t.unshift([g+1,c])):a<h&&c<=g&&e.push([a,h-1])}while(!l)}return new y1(...e)}intersect(...n){return this.subtract(this.subtract(...n))}_isEmpty(){return this.data.length===0}_toString(n){return qt(this.data,n)}_unique(){this.data.sort(Kt);const n=[];let t=null;for(const e of this.data)t===null||t[1]+1<e[0]?(n.push(e),t=e):(n.splice(-1,1,[Math.min(e[0],t[0]),Math.max(e[1],t[1])]),t=n[n.length-1]);this.data=n}}const M6=(...r)=>new y1(...r);function Vt(r){if(r.length!==1){const n=`${r.length} (${JSON.stringify(r)})`;throw new Error(`Expected length = 1, but received ${n}.`)}return r.charCodeAt(0)}function Gt(r){if(typeof r=="number"&&(r<0||r>1114111))throw new Error(`Invalid unicode code point detected: ${r<0?r:`0x${r.toString(16)}`}`);const[n]=[r].map(t=>typeof t!="object"?[t,t]:t).map(t=>t.map(e=>typeof e=="string"?Vt(e):e));return n}function Kt(r,n){return r[0]-n[0]}function qt(r,n=""){if(n.includes("u"))return g7(r,!0);const{normal:t,surrogate:e}=Zt(r),s=[];return t.length!==0&&s.push(g7(t,!1)),s.push(...Jt(e)),s.join("|")}function g7(r,n){return`[${r.map(([e,s])=>e===s?m2(e,n):`${m2(e,n)}-${m2(s,n)}`).join("")}]`}function Jt(r){const n=[];if(r.entire.data.length!==0){const t=r.entire.toString(),e=`[${[56320,57343].map(s=>m2(s,!1)).join("-")}]`;n.push(`${t}${e}`)}for(const{h:t,l:e}of r.partial){const s=m2(t,!1),i=e.toString();n.push(`${s}${i}`)}return n}function Zt(r){const n=[],t=[];for(let e=0;e<r.length;e++){const s=r[e],[i,o]=s;if(i>=65536){t.push(...r.slice(e));break}if(o>=65536){n.push([i,65535]),t.push([65536,o],...r.slice(e+1));break}n.push(s)}return{normal:n,surrogate:Qt(t)}}function Qt(r){const n=[],t=[];for(const[i,o]of r){const a=D7(i),c=D7(o);if(a.h===c.h){s(a.h,a.l,c.l);continue}a.l===56320?e(a.h):s(a.h,a.l,57343);for(let l=a.h+1;l<c.h;l++)e(l);c.l===57343?e(c.h):s(c.h,56320,c.l)}return{entire:new y1(...n),partial:t.map(({h:i,l:o})=>({h:i,l:new y1(...o)}))};function e(i){n.push(i)}function s(i,o,a){const c=t[t.length-1];c!==void 0&&c.h===i?c.l.push([o,a]):t.push({h:i,l:[[o,a]]})}}function D7(r){return{h:Math.floor((r-65536)/1024)+55296,l:(r-65536)%1024+56320}}function m2(r,n){const t=r.toString(16);return n?`\\u{${t}}`:`\\u${"0".repeat(4-t.length)}${t}`}const te=[[0,127]],ee=[[48,57],[65,70],[97,102]],ne=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,837,[880,884],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],1369,[1376,1416],[1456,1469],1471,[1473,1474],[1476,1477],1479,[1488,1514],[1519,1522],[1552,1562],[1568,1623],[1625,1631],[1646,1747],[1749,1756],[1761,1768],[1773,1775],[1786,1788],1791,[1808,1855],[1869,1969],[1994,2026],[2036,2037],2042,[2048,2071],[2074,2092],[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2260,2271],[2275,2281],[2288,2363],[2365,2380],[2382,2384],[2389,2403],[2417,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2493,2500],[2503,2504],[2507,2508],2510,2519,[2524,2525],[2527,2531],[2544,2545],2556,[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2622,2626],[2631,2632],[2635,2636],2641,[2649,2652],2654,[2672,2677],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2749,2757],[2759,2761],[2763,2764],2768,[2784,2787],[2809,2812],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2877,2884],[2887,2888],[2891,2892],[2902,2903],[2908,2909],[2911,2915],2929,[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3020],3024,3031,[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3133,3140],[3142,3144],[3146,3148],[3157,3158],[3160,3162],3165,[3168,3171],[3200,3203],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3261,3268],[3270,3272],[3274,3276],[3285,3286],[3293,3294],[3296,3299],[3313,3315],[3328,3340],[3342,3344],[3346,3386],[3389,3396],[3398,3400],[3402,3404],3406,[3412,3415],[3423,3427],[3450,3455],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3535,3540],3542,[3544,3551],[3570,3571],[3585,3642],[3648,3654],3661,[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3769],[3771,3773],[3776,3780],3782,3789,[3804,3807],3840,[3904,3911],[3913,3948],[3953,3971],[3976,3991],[3993,4028],[4096,4150],4152,[4155,4159],[4176,4239],[4250,4253],[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5907],[5919,5939],[5952,5971],[5984,5996],[5998,6e3],[6002,6003],[6016,6067],[6070,6088],6103,6108,[6176,6264],[6272,6314],[6320,6389],[6400,6430],[6432,6443],[6448,6456],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6683],[6688,6750],[6753,6772],6823,[6847,6848],[6860,6862],[6912,6963],[6965,6979],[6981,6988],[7040,7081],[7084,7087],[7098,7141],[7143,7153],[7168,7222],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7655,7668],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8505],[8508,8511],[8517,8521],8526,[8544,8584],[9398,9449],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11744,11775],11823,[12293,12295],[12321,12329],[12337,12341],[12344,12348],[12353,12438],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42612,42619],[42623,42735],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43013],[43015,43047],[43072,43123],[43136,43203],43205,[43250,43255],43259,[43261,43263],[43274,43306],[43312,43346],[43360,43388],[43392,43442],[43444,43455],43471,[43488,43503],[43514,43518],[43520,43574],[43584,43597],[43616,43638],[43642,43710],43712,43714,[43739,43741],[43744,43759],[43762,43765],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44010],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],[64285,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],[66176,66204],[66208,66256],[66304,66335],[66349,66378],[66384,66426],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68903],[69248,69289],[69291,69292],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69632,69701],[69745,69749],[69760,69816],69826,[69840,69864],[69888,69938],[69956,69959],[69968,70002],70006,[70016,70079],[70081,70084],[70094,70095],70106,70108,[70144,70161],[70163,70196],70199,[70206,70209],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70376],[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70461,70468],[70471,70472],[70475,70476],70480,70487,[70493,70499],[70656,70721],[70723,70725],[70727,70730],[70751,70753],[70784,70849],[70852,70853],70855,[71040,71093],[71096,71102],[71128,71133],[71168,71230],71232,71236,[71296,71349],71352,[71424,71450],[71453,71466],[71488,71494],[71680,71736],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,71996],[71999,72002],[72096,72103],[72106,72151],[72154,72159],72161,[72163,72164],[72192,72242],[72245,72254],[72272,72343],72349,[72368,72440],[72704,72712],[72714,72758],[72760,72766],72768,[72818,72847],[72850,72871],[72873,72886],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73025],73027,[73030,73031],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73110],73112,[73440,73462],[73472,73488],[73490,73530],[73534,73536],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],[94031,94087],[94095,94111],[94176,94177],94179,[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],113822,[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125255,125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[127280,127305],[127312,127337],[127344,127369],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],se=[[0,1114111]],ie=[[0,887],[890,895],[900,906],908,[910,929],[931,1327],[1329,1366],[1369,1418],[1421,1423],[1425,1479],[1488,1514],[1519,1524],[1536,1805],[1807,1866],[1869,1969],[1984,2042],[2045,2093],[2096,2110],[2112,2139],2142,[2144,2154],[2160,2190],[2192,2193],[2200,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2558],[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2678],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2801],[2809,2815],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2935],[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3066],[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3191,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315],[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3407],[3412,3427],[3430,3455],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3572],[3585,3642],[3647,3675],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807],[3840,3911],[3913,3948],[3953,3991],[3993,4028],[4030,4044],[4046,4058],[4096,4293],4295,4301,[4304,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4988],[4992,5017],[5024,5109],[5112,5117],[5120,5788],[5792,5880],[5888,5909],[5919,5942],[5952,5971],[5984,5996],[5998,6e3],[6002,6003],[6016,6109],[6112,6121],[6128,6137],[6144,6169],[6176,6264],[6272,6314],[6320,6389],[6400,6430],[6432,6443],[6448,6459],6464,[6468,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6622,6683],[6686,6750],[6752,6780],[6783,6793],[6800,6809],[6816,6829],[6832,6862],[6912,6988],[6992,7038],[7040,7155],[7164,7223],[7227,7241],[7245,7304],[7312,7354],[7357,7367],[7376,7418],[7424,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],[8192,8292],[8294,8305],[8308,8334],[8336,8348],[8352,8384],[8400,8432],[8448,8587],[8592,9254],[9280,9290],[9312,11123],[11126,11157],[11159,11507],[11513,11557],11559,11565,[11568,11623],[11631,11632],[11647,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11744,11869],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12351],[12353,12438],[12441,12543],[12549,12591],[12593,12686],[12688,12771],[12784,12830],[12832,42124],[42128,42182],[42192,42539],[42560,42743],[42752,42954],[42960,42961],42963,[42965,42969],[42994,43052],[43056,43065],[43072,43127],[43136,43205],[43214,43225],[43232,43347],[43359,43388],[43392,43469],[43471,43481],[43486,43518],[43520,43574],[43584,43597],[43600,43609],[43612,43714],[43739,43766],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43883],[43888,44013],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[55296,64109],[64112,64217],[64256,64262],[64275,64279],[64285,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64450],[64467,64911],[64914,64967],64975,[65008,65049],[65056,65106],[65108,65126],[65128,65131],[65136,65140],[65142,65276],65279,[65281,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65504,65510],[65512,65518],[65529,65533],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65792,65794],[65799,65843],[65847,65934],[65936,65948],65952,[66e3,66045],[66176,66204],[66208,66256],[66272,66299],[66304,66339],[66349,66378],[66384,66426],[66432,66461],[66463,66499],[66504,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67871,67897],67903,[67968,68023],[68028,68047],[68050,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],[68159,68168],[68176,68184],[68192,68255],[68288,68326],[68331,68342],[68352,68405],[68409,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68903],[68912,68921],[69216,69246],[69248,69289],[69291,69293],[69296,69297],[69373,69415],[69424,69465],[69488,69513],[69552,69579],[69600,69622],[69632,69709],[69714,69749],[69759,69826],69837,[69840,69864],[69872,69881],[69888,69940],[69942,69959],[69968,70006],[70016,70111],[70113,70132],[70144,70161],[70163,70209],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313],[70320,70378],[70384,70393],[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70459,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516],[70656,70747],[70749,70753],[70784,70855],[70864,70873],[71040,71093],[71096,71133],[71168,71236],[71248,71257],[71264,71276],[71296,71353],[71360,71369],[71424,71450],[71453,71467],[71472,71494],[71680,71739],[71840,71922],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72006],[72016,72025],[72096,72103],[72106,72151],[72154,72164],[72192,72263],[72272,72354],[72368,72440],[72448,72457],[72704,72712],[72714,72758],[72760,72773],[72784,72812],[72816,72847],[72850,72871],[72873,72886],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129],[73440,73464],[73472,73488],[73490,73530],[73534,73561],73648,[73664,73713],[73727,74649],[74752,74862],[74864,74868],[74880,75075],[77712,77810],[77824,78933],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92782,92862],[92864,92873],[92880,92909],[92912,92917],[92928,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071],[93760,93850],[93952,94026],[94031,94087],[94095,94111],[94176,94180],[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113820,113827],[118528,118573],[118576,118598],[118608,118723],[118784,119029],[119040,119078],[119081,119274],[119296,119365],[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,121483],[121499,121503],[121505,121519],[122624,122654],[122661,122666],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123136,123180],[123184,123197],[123200,123209],[123214,123215],[123536,123566],[123584,123641],123647,[124112,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125127,125142],[125184,125259],[125264,125273],[125278,125279],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743],917505,[917536,917631],[917760,917999],[983040,1048573],[1048576,1114109]],re=[1564,[8206,8207],[8234,8238],[8294,8297]],oe=[[40,41],60,62,91,93,123,125,171,187,[3898,3901],[5787,5788],[8249,8250],[8261,8262],[8317,8318],[8333,8334],8512,[8705,8708],[8712,8717],8721,[8725,8726],[8730,8733],[8735,8738],8740,8742,[8747,8755],8761,[8763,8780],[8786,8789],[8799,8800],8802,[8804,8811],[8814,8844],[8847,8850],8856,[8866,8867],[8870,8888],[8894,8895],[8905,8909],[8912,8913],[8918,8941],[8944,8959],[8968,8971],[8992,8993],[9001,9002],[10088,10101],10176,[10179,10182],[10184,10185],[10187,10189],[10195,10198],[10204,10206],[10210,10223],[10627,10648],[10651,10656],[10658,10671],10680,[10688,10693],10697,[10702,10706],[10708,10709],[10712,10716],10721,[10723,10725],[10728,10729],[10740,10745],[10748,10749],[10762,10780],[10782,10785],10788,10790,10793,[10795,10798],[10804,10805],[10812,10814],[10839,10840],[10852,10853],[10858,10861],[10863,10864],[10867,10868],[10873,10915],[10918,10925],[10927,10966],10972,10974,[10978,10982],[10988,10990],10995,[10999,11003],11005,11262,[11778,11781],[11785,11786],[11788,11789],[11804,11805],[11808,11817],[11861,11868],[12296,12305],[12308,12315],[65113,65118],[65124,65125],[65288,65289],65308,65310,65339,65341,65371,65373,[65375,65376],[65378,65379],120539,120597,120655,120713,120771],ae=[39,46,58,94,96,168,173,175,180,[183,184],[688,879],[884,885],890,[900,901],903,[1155,1161],1369,1375,[1425,1469],1471,[1473,1474],[1476,1477],1479,1524,[1536,1541],[1552,1562],1564,1600,[1611,1631],1648,[1750,1757],[1759,1768],[1770,1773],1807,1809,[1840,1866],[1958,1968],[2027,2037],2042,2045,[2070,2093],[2137,2139],2184,[2192,2193],[2200,2207],[2249,2306],2362,2364,[2369,2376],2381,[2385,2391],[2402,2403],2417,2433,2492,[2497,2500],2509,[2530,2531],2558,[2561,2562],2620,[2625,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2690],2748,[2753,2757],[2759,2760],2765,[2786,2787],[2810,2815],2817,2876,2879,[2881,2884],2893,[2901,2902],[2914,2915],2946,3008,3021,3072,3076,3132,[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],3201,3260,3263,3270,[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],3405,[3426,3427],3457,3530,[3538,3540],3542,3633,[3636,3642],[3654,3662],3761,[3764,3772],3782,[3784,3790],[3864,3865],3893,3895,3897,[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],4226,[4229,4230],4237,4253,4348,[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],6086,[6089,6099],6103,6109,[6155,6159],6211,[6277,6278],6313,[6432,6434],[6439,6440],6450,[6457,6459],[6679,6680],6683,6742,[6744,6750],6752,6754,[6757,6764],[6771,6780],6783,6823,[6832,6862],[6912,6915],6964,[6966,6970],6972,6978,[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],7142,[7144,7145],7149,[7151,7153],[7212,7219],[7222,7223],[7288,7293],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7468,7530],7544,[7579,7679],8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[8203,8207],[8216,8217],8228,8231,[8234,8238],[8288,8292],[8294,8303],8305,8319,[8336,8348],[8400,8432],[11388,11389],[11503,11505],11631,11647,[11744,11775],11823,12293,[12330,12333],[12337,12341],12347,[12441,12446],[12540,12542],40981,[42232,42237],42508,[42607,42610],[42612,42621],42623,[42652,42655],[42736,42737],[42752,42785],42864,[42888,42890],[42994,42996],[43e3,43001],43010,43014,43019,[43045,43046],43052,[43204,43205],[43232,43249],43263,[43302,43309],[43335,43345],[43392,43394],43443,[43446,43449],[43452,43453],43471,[43493,43494],[43561,43566],[43569,43570],[43573,43574],43587,43596,43632,43644,43696,[43698,43700],[43703,43704],[43710,43711],43713,43741,[43756,43757],[43763,43764],43766,[43867,43871],[43881,43883],44005,44008,44013,64286,[64434,64450],[65024,65039],65043,[65056,65071],65106,65109,65279,65287,65294,65306,65342,65344,65392,[65438,65439],65507,[65529,65531],66045,66272,[66422,66426],[67456,67461],[67463,67504],[67506,67514],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],69633,[69688,69702],69744,[69747,69748],[69759,69761],[69811,69814],[69817,69818],69821,69826,69837,[69888,69890],[69927,69931],[69933,69940],70003,[70016,70017],[70070,70078],[70089,70092],70095,[70191,70193],70196,[70198,70199],70206,70209,70367,[70371,70378],[70400,70401],[70459,70460],70464,[70502,70508],[70512,70516],[70712,70719],[70722,70724],70726,70750,[70835,70840],70842,[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],71229,[71231,71232],71339,71341,[71344,71349],71351,[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[71995,71996],71998,72003,[72148,72151],[72154,72155],72160,[72193,72202],[72243,72248],[72251,72254],72263,[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],72767,[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73104,73105],73109,73111,[73459,73460],[73472,73473],[73526,73530],73536,73538,[78896,78912],[78919,78933],[92912,92916],[92976,92982],[92992,92995],94031,[94095,94111],[94176,94177],[94179,94180],[110576,110579],[110581,110587],[110589,110590],[113821,113822],[113824,113827],[118528,118573],[118576,118598],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123184,123197],123566,[123628,123631],[124139,124143],[125136,125142],[125252,125259],[127995,127999],917505,[917536,917631],[917760,917999]],ce=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,442],[444,447],[452,659],[661,696],[704,705],[736,740],837,[880,883],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],[1376,1416],[4256,4293],4295,4301,[4304,4346],[4348,4351],[5024,5109],[5112,5117],[7296,7304],[7312,7354],[7357,7359],[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8500],8505,[8508,8511],[8517,8521],8526,[8544,8575],[8579,8580],[9398,9449],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[42560,42605],[42624,42653],[42786,42887],[42891,42894],[42896,42954],[42960,42961],42963,[42965,42969],[42994,42998],[43e3,43002],[43824,43866],[43868,43881],[43888,43967],[64256,64262],[64275,64279],[65313,65338],[65345,65370],[66560,66639],[66736,66771],[66776,66811],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],67456,[67459,67461],[67463,67504],[67506,67514],[68736,68786],[68800,68850],[71840,71903],[93760,93823],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122633],[122635,122654],[122661,122666],[122928,122989],[125184,125251],[127280,127305],[127312,127337],[127344,127369]],le=[[65,90],181,[192,214],[216,223],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,[329,330],332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,383,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,[452,453],[455,456],[458,459],461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,[497,498],500,[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,837,880,882,886,895,902,[904,906],908,[910,911],[913,929],[931,939],962,[975,977],[981,982],984,986,988,990,992,994,996,998,1e3,1002,1004,1006,[1008,1009],[1012,1013],1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],1415,[4256,4293],4295,4301,[5112,5117],[7296,7304],[7312,7354],[7357,7359],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,[7834,7835],7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],[8064,8111],[8114,8116],[8119,8124],[8130,8132],[8135,8140],[8152,8155],[8168,8172],[8178,8180],[8183,8188],8486,[8490,8491],8498,[8544,8559],8579,[9398,9423],[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11390,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,42997,[43888,43967],[64256,64262],[64275,64279],[65313,65338],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[68736,68786],[71840,71871],[93760,93791],[125184,125217]],ue=[[65,90],[97,122],181,[192,214],[216,246],[248,311],[313,396],[398,410],[412,425],[428,441],[444,445],447,[452,544],[546,563],[570,596],[598,599],601,[603,604],[608,609],611,[613,614],[616,620],623,[625,626],629,637,640,[642,643],[647,652],658,[669,670],837,[880,883],[886,887],[891,893],895,902,[904,906],908,[910,929],[931,977],[981,1013],[1015,1019],[1021,1153],[1162,1327],[1329,1366],[1377,1415],[4256,4293],4295,4301,[4304,4346],[4349,4351],[5024,5109],[5112,5117],[7296,7304],[7312,7354],[7357,7359],7545,7549,7566,[7680,7835],7838,[7840,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8486,[8490,8491],8498,8526,[8544,8575],[8579,8580],[9398,9449],[11264,11376],[11378,11379],[11381,11382],[11390,11491],[11499,11502],[11506,11507],[11520,11557],11559,11565,[42560,42605],[42624,42651],[42786,42799],[42802,42863],[42873,42887],[42891,42893],[42896,42900],[42902,42926],[42928,42954],[42960,42961],[42966,42969],[42997,42998],43859,[43888,43967],[64256,64262],[64275,64279],[65313,65338],[65345,65370],[66560,66639],[66736,66771],[66776,66811],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68736,68786],[68800,68850],[71840,71903],[93760,93823],[125184,125251]],he=[[65,90],[192,214],[216,222],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,[452,453],[455,456],[458,459],461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,[497,498],500,[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,880,882,886,895,902,[904,906],908,[910,911],[913,929],[931,939],975,984,986,988,990,992,994,996,998,1e3,1002,1004,1006,1012,1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],[4256,4293],4295,4301,[5024,5109],[7312,7354],[7357,7359],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],[8072,8079],[8088,8095],[8104,8111],[8120,8124],[8136,8140],[8152,8155],[8168,8172],[8184,8188],8486,[8490,8491],8498,[8544,8559],8579,[9398,9423],[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11390,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,42997,[65313,65338],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[68736,68786],[71840,71871],[93760,93791],[125184,125217]],_e=[[65,90],160,168,170,173,175,[178,181],[184,186],[188,190],[192,214],[216,223],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,[306,308],310,313,315,317,[319,321],323,325,327,[329,330],332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,383,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,[452,461],463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,[497,500],[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,[688,696],[728,733],[736,740],[832,833],[835,837],847,880,882,884,886,890,[894,895],[900,906],908,[910,911],[913,929],[931,939],962,[975,982],984,986,988,990,992,994,996,998,1e3,1002,1004,1006,[1008,1010],[1012,1013],1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],1415,1564,[1653,1656],[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3635,3763,[3804,3805],3852,3907,3917,3922,3927,3932,3945,3955,[3957,3961],3969,3987,3997,4002,4007,4012,4025,[4256,4293],4295,4301,4348,[4447,4448],[5112,5117],[6068,6069],[6155,6159],[7296,7304],[7312,7354],[7357,7359],[7468,7470],[7472,7482],[7484,7501],[7503,7530],7544,[7579,7615],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,[7834,7835],7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],8049,8051,8053,8055,8057,8059,8061,[8064,8111],[8114,8116],[8119,8132],[8135,8143],8147,[8152,8155],[8157,8159],8163,[8168,8175],[8178,8180],[8183,8190],[8192,8207],8209,8215,[8228,8230],[8234,8239],[8243,8244],[8246,8247],8252,8254,[8263,8265],8279,[8287,8305],[8308,8334],[8336,8348],8360,[8448,8451],[8453,8455],[8457,8467],[8469,8470],[8473,8477],[8480,8482],8484,8486,8488,[8490,8493],[8495,8505],[8507,8512],[8517,8521],[8528,8575],8579,8585,[8748,8749],[8751,8752],[9001,9002],[9312,9450],10764,[10868,10870],10972,[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11388,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,11631,11935,12019,[12032,12245],12288,12342,[12344,12346],[12443,12444],12447,12543,[12593,12686],[12690,12703],[12800,12830],[12832,12871],[12880,12926],[12928,13311],42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,[42652,42653],42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42864,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,[42994,42997],[43e3,43001],[43868,43871],43881,[43888,43967],[63744,64013],64016,64018,[64021,64030],64032,64034,[64037,64038],[64042,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65024,65049],[65072,65092],[65095,65106],[65108,65126],[65128,65131],[65136,65138],65140,[65142,65276],65279,[65281,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65504,65510],[65512,65518],[65520,65528],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[67457,67461],[67463,67504],[67506,67514],[68736,68786],[71840,71871],[93760,93791],[113824,113827],[119134,119140],[119155,119162],[119227,119232],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,120831],[122928,122989],[125184,125217],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[127232,127242],[127248,127278],[127280,127311],[127338,127340],127376,[127488,127490],[127504,127547],[127552,127560],[127568,127569],[130032,130041],[194560,195101],[917504,921599]],de=[[97,122],181,[223,246],[248,255],257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,311,314,316,318,320,322,324,326,[328,329],331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,[382,384],387,389,392,396,402,405,[409,410],414,417,419,421,424,429,432,436,438,441,445,447,452,[454,455],[457,458],460,462,464,466,468,470,472,474,[476,477],479,481,483,485,487,489,491,493,[495,497],499,501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,547,549,551,553,555,557,559,561,563,572,[575,576],578,583,585,587,589,[591,596],[598,599],601,[603,604],[608,609],611,[613,614],[616,620],623,[625,626],629,637,640,[642,643],[647,652],658,[669,670],837,881,883,887,[891,893],912,[940,974],[976,977],[981,983],985,987,989,991,993,995,997,999,1001,1003,1005,[1007,1011],1013,1016,1019,[1072,1119],1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,[1230,1231],1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,[1377,1415],[5112,5117],[7296,7304],7545,7549,7566,7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,[7829,7835],7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8071],[8080,8087],[8096,8103],[8112,8116],[8118,8119],8126,[8130,8132],[8134,8135],[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],8526,[8560,8575],8580,[9424,9449],[11312,11359],11361,[11365,11366],11368,11370,11372,11379,11382,11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,11491,11500,11502,11507,[11520,11557],11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,42651,42787,42789,42791,42793,42795,42797,42799,42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,42863,42874,42876,42879,42881,42883,42885,42887,42892,42897,[42899,42900],42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42933,42935,42937,42939,42941,42943,42945,42947,42952,42954,42961,42967,42969,42998,43859,[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68800,68850],[71872,71903],[93792,93823],[125218,125251]],fe=[[97,122],181,[223,246],[248,255],257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,311,314,316,318,320,322,324,326,[328,329],331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,[382,384],387,389,392,396,402,405,[409,410],414,417,419,421,424,429,432,436,438,441,445,447,[453,454],[456,457],[459,460],462,464,466,468,470,472,474,[476,477],479,481,483,485,487,489,491,493,[495,496],[498,499],501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,547,549,551,553,555,557,559,561,563,572,[575,576],578,583,585,587,589,[591,596],[598,599],601,[603,604],[608,609],611,[613,614],[616,620],623,[625,626],629,637,640,[642,643],[647,652],658,[669,670],837,881,883,887,[891,893],912,[940,974],[976,977],[981,983],985,987,989,991,993,995,997,999,1001,1003,1005,[1007,1011],1013,1016,1019,[1072,1119],1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,[1230,1231],1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,[1377,1415],[4304,4346],[4349,4351],[5112,5117],[7296,7304],7545,7549,7566,7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,[7829,7835],7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8116],[8118,8119],8124,8126,[8130,8132],[8134,8135],8140,[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],8188,8526,[8560,8575],8580,[9424,9449],[11312,11359],11361,[11365,11366],11368,11370,11372,11379,11382,11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,11491,11500,11502,11507,[11520,11557],11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,42651,42787,42789,42791,42793,42795,42797,42799,42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,42863,42874,42876,42879,42881,42883,42885,42887,42892,42897,[42899,42900],42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42933,42935,42937,42939,42941,42943,42945,42947,42952,42954,42961,42967,42969,42998,43859,[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68800,68850],[71872,71903],[93792,93823],[125218,125251]],ge=[[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3907,3917,3922,3927,3932,3945,3958,3960,3987,3997,4002,4007,4012,4025,10972,64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64334],[119134,119140],[119227,119232]],De=[45,1418,1470,5120,6150,[8208,8213],8275,8315,8331,8722,11799,11802,[11834,11835],11840,11869,12316,12336,12448,[65073,65074],65112,65123,65293,69293],pe=[173,847,1564,[4447,4448],[6068,6069],[6155,6159],[8203,8207],[8234,8238],[8288,8303],12644,[65024,65039],65279,65440,[65520,65528],[113824,113827],[119155,119162],[917504,921599]],me=[329,1651,3959,3961,[6051,6052],[8298,8303],[9001,9002],917505],be=[94,96,168,175,180,[183,184],[688,846],[848,855],[861,866],[884,885],890,[900,901],[1155,1159],1369,[1425,1441],[1443,1469],1471,[1473,1474],1476,[1611,1618],[1623,1624],[1759,1760],[1765,1766],[1770,1772],[1840,1866],[1958,1968],[2027,2037],[2072,2073],[2200,2207],[2249,2258],[2275,2302],2364,2381,[2385,2388],2417,2492,2509,2620,2637,2748,2765,[2813,2815],2876,2893,2901,3021,3132,3149,3260,3277,[3387,3388],3405,3530,[3655,3660],3662,3770,[3784,3788],[3864,3865],3893,3895,3897,[3902,3903],[3970,3972],[3974,3975],4038,4151,[4153,4154],[4195,4196],[4201,4205],[4231,4237],4239,[4250,4251],[4957,4959],[5908,5909],[6089,6099],6109,[6457,6459],[6773,6780],6783,[6832,6846],[6849,6859],6964,6980,[7019,7027],[7082,7083],[7222,7223],[7288,7293],[7376,7400],7405,7412,[7415,7417],[7468,7530],[7620,7631],[7669,7679],8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[11503,11505],11823,[12330,12335],[12441,12444],12540,42607,[42620,42621],42623,[42652,42653],[42736,42737],[42752,42785],[42888,42890],[43e3,43001],43204,[43232,43249],[43307,43310],43347,43443,43456,43493,[43643,43645],[43711,43714],43766,[43867,43871],[43881,43883],[44012,44013],64286,[65056,65071],65342,65344,65392,[65438,65439],65507,66272,[67456,67461],[67463,67504],[67506,67514],[68325,68326],[68898,68903],[69373,69375],[69446,69456],[69506,69509],69702,69744,[69817,69818],[69939,69940],70003,70080,[70090,70092],[70197,70198],[70377,70378],70460,70477,[70502,70508],[70512,70516],70722,70726,[70850,70851],[71103,71104],71231,[71350,71351],71467,[71737,71738],[71997,71998],72003,72160,72244,72263,72345,72767,73026,[73028,73029],73111,[78919,78933],[92912,92916],[92976,92982],[94095,94111],[94192,94193],[110576,110579],[110581,110587],[110589,110590],[118528,118573],[118576,118598],[119143,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[122928,122989],[123184,123190],123566,[123628,123631],[125136,125142],[125252,125254],[125256,125258]],ve=[35,42,[48,57],169,174,8252,8265,8482,8505,[8596,8601],[8617,8618],[8986,8987],9e3,9167,[9193,9203],[9208,9210],9410,[9642,9643],9654,9664,[9723,9726],[9728,9732],9742,9745,[9748,9749],9752,9757,9760,[9762,9763],9766,9770,[9774,9775],[9784,9786],9792,9794,[9800,9811],[9823,9824],9827,[9829,9830],9832,9851,[9854,9855],[9874,9879],9881,[9883,9884],[9888,9889],9895,[9898,9899],[9904,9905],[9917,9918],[9924,9925],9928,[9934,9935],9937,[9939,9940],[9961,9962],[9968,9973],[9975,9978],9981,9986,9989,[9992,9997],9999,10002,10004,10006,10013,10017,10024,[10035,10036],10052,10055,10060,10062,[10067,10069],10071,[10083,10084],[10133,10135],10145,10160,10175,[10548,10549],[11013,11015],[11035,11036],11088,11093,12336,12349,12951,12953,126980,127183,[127344,127345],[127358,127359],127374,[127377,127386],[127462,127487],[127489,127490],127514,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,[128394,128397],128400,[128405,128406],[128420,128421],128424,[128433,128434],128444,[128450,128452],[128465,128467],[128476,128478],128481,128483,128488,128495,128499,[128506,128591],[128640,128709],[128715,128722],[128725,128727],[128732,128741],128745,[128747,128748],128752,[128755,128764],[128992,129003],129008,[129292,129338],[129340,129349],[129351,129535],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784]],Ce=[35,42,[48,57],8205,8419,65039,[127462,127487],[127995,127999],[129456,129459],[917536,917631]],Se=[[127995,127999]],Ee=[9757,9977,[9994,9997],127877,[127938,127940],127943,[127946,127948],[128066,128067],[128070,128080],[128102,128120],128124,[128129,128131],[128133,128135],128143,128145,128170,[128372,128373],128378,128400,[128405,128406],[128581,128583],[128587,128591],128675,[128692,128694],128704,128716,129292,129295,[129304,129311],129318,[129328,129337],[129340,129342],129399,[129461,129462],[129464,129465],129467,[129485,129487],[129489,129501],[129731,129733],[129776,129784]],ye=[[8986,8987],[9193,9196],9200,9203,[9725,9726],[9748,9749],[9800,9811],9855,9875,9889,[9898,9899],[9917,9918],[9924,9925],9934,9940,9962,[9970,9971],9973,9978,9981,9989,[9994,9995],10024,10060,10062,[10067,10069],10071,[10133,10135],10160,10175,[11035,11036],11088,11093,126980,127183,127374,[127377,127386],[127462,127487],127489,127514,127535,[127538,127542],[127544,127546],[127568,127569],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],127988,[127992,128062],128064,[128066,128252],[128255,128317],[128331,128334],[128336,128359],128378,[128405,128406],128420,[128507,128591],[128640,128709],128716,[128720,128722],[128725,128727],[128732,128735],[128747,128748],[128756,128764],[128992,129003],129008,[129292,129338],[129340,129349],[129351,129535],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784]],Te=[836,[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3907,3917,3922,3927,3932,3945,3955,[3957,3958],3960,3969,3987,3997,4002,4007,4012,4025,10972,64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64334],[119134,119140],[119227,119232]],Fe=[[192,197],[199,207],[209,214],[217,221],[224,229],[231,239],[241,246],[249,253],[255,271],[274,293],[296,304],[308,311],[313,318],[323,328],[332,337],[340,357],[360,382],[416,417],[431,432],[461,476],[478,483],[486,496],[500,501],[504,539],[542,543],[550,563],836,[901,902],[904,906],908,[910,912],[938,944],[970,974],[979,980],[1024,1025],1027,1031,[1036,1038],1049,1081,[1104,1105],1107,1111,[1116,1118],[1142,1143],[1217,1218],[1232,1235],[1238,1239],[1242,1247],[1250,1255],[1258,1269],[1272,1273],[1570,1574],1728,1730,1747,2345,2353,2356,[2392,2399],[2507,2508],[2524,2525],2527,2611,2614,[2649,2651],2654,2888,[2891,2892],[2908,2909],2964,[3018,3020],3144,3264,[3271,3272],[3274,3275],[3402,3404],3546,[3548,3550],3907,3917,3922,3927,3932,3945,3955,[3957,3958],3960,3969,3987,3997,4002,4007,4012,4025,4134,6918,6920,6922,6924,6926,6930,6971,6973,[6976,6977],6979,[7680,7833],7835,[7840,7929],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],[8129,8132],[8134,8147],[8150,8155],[8157,8174],[8178,8180],[8182,8188],8491,[8602,8603],8622,[8653,8655],8708,8713,8716,8740,8742,8769,8772,8775,8777,8800,8802,[8813,8817],[8820,8821],[8824,8825],[8832,8833],[8836,8837],[8840,8841],[8876,8879],[8928,8931],[8938,8941],10972,12364,12366,12368,12370,12372,12374,12376,12378,12380,12382,12384,12386,12389,12391,12393,[12400,12401],[12403,12404],[12406,12407],[12409,12410],[12412,12413],12436,12446,12460,12462,12464,12466,12468,12470,12472,12474,12476,12478,12480,12482,12485,12487,12489,[12496,12497],[12499,12500],[12502,12503],[12505,12506],[12508,12509],12532,[12535,12538],12542,[44032,55203],64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64334],69786,69788,69803,[69934,69935],[70475,70476],[70843,70844],70846,[71098,71099],71992,[119134,119140],[119227,119232]],Oe=[168,175,180,184,[188,190],[306,307],[319,320],329,[452,460],[497,499],[728,733],836,890,[900,901],1415,[1653,1656],[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3635,3763,[3804,3805],3907,3917,3922,3927,3932,3945,3955,[3957,3961],3969,3987,3997,4002,4007,4012,4025,7834,8125,[8127,8129],[8141,8143],[8157,8159],[8173,8174],[8189,8190],8215,[8229,8230],[8243,8244],[8246,8247],8252,8254,[8263,8265],8279,8360,[8448,8449],8451,[8453,8454],8457,8470,[8480,8482],8507,[8528,8543],[8545,8547],[8549,8552],[8554,8555],[8561,8563],[8565,8568],[8570,8571],8585,[8748,8749],[8751,8752],[9321,9397],10764,[10868,10870],10972,[12443,12444],12447,12543,[12800,12830],[12832,12867],[12880,12895],[12924,12925],[12977,13007],[13055,13311],[64256,64262],[64275,64279],64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335],64477,[64490,64507],[64512,64829],[64848,64911],[64914,64967],[65008,65020],65049,65072,[65097,65100],[65136,65138],65140,[65142,65151],[65269,65276],65507,[119134,119140],[119227,119232],[127232,127242],[127248,127274],[127277,127278],[127306,127311],[127338,127340],127376,[127488,127489],[127552,127560]],we=[168,175,180,184,[188,190],[192,197],[199,207],[209,214],[217,221],[224,229],[231,239],[241,246],[249,253],[255,271],[274,293],[296,304],[306,311],[313,320],[323,329],[332,337],[340,357],[360,382],[416,417],[431,432],[452,476],[478,483],[486,501],[504,539],[542,543],[550,563],[728,733],836,890,[900,902],[904,906],908,[910,912],[938,944],[970,974],[979,980],[1024,1025],1027,1031,[1036,1038],1049,1081,[1104,1105],1107,1111,[1116,1118],[1142,1143],[1217,1218],[1232,1235],[1238,1239],[1242,1247],[1250,1255],[1258,1269],[1272,1273],1415,[1570,1574],[1653,1656],1728,1730,1747,2345,2353,2356,[2392,2399],[2507,2508],[2524,2525],2527,2611,2614,[2649,2651],2654,2888,[2891,2892],[2908,2909],2964,[3018,3020],3144,3264,[3271,3272],[3274,3275],[3402,3404],3546,[3548,3550],3635,3763,[3804,3805],3907,3917,3922,3927,3932,3945,3955,[3957,3961],3969,3987,3997,4002,4007,4012,4025,4134,6918,6920,6922,6924,6926,6930,6971,6973,[6976,6977],6979,[7680,7835],[7840,7929],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8125],[8127,8132],[8134,8147],[8150,8155],[8157,8174],[8178,8180],[8182,8190],8215,[8229,8230],[8243,8244],[8246,8247],8252,8254,[8263,8265],8279,8360,[8448,8449],8451,[8453,8454],8457,8470,[8480,8482],8491,8507,[8528,8543],[8545,8547],[8549,8552],[8554,8555],[8561,8563],[8565,8568],[8570,8571],8585,[8602,8603],8622,[8653,8655],8708,8713,8716,8740,8742,[8748,8749],[8751,8752],8769,8772,8775,8777,8800,8802,[8813,8817],[8820,8821],[8824,8825],[8832,8833],[8836,8837],[8840,8841],[8876,8879],[8928,8931],[8938,8941],[9321,9397],10764,[10868,10870],10972,12364,12366,12368,12370,12372,12374,12376,12378,12380,12382,12384,12386,12389,12391,12393,[12400,12401],[12403,12404],[12406,12407],[12409,12410],[12412,12413],12436,[12443,12444],[12446,12447],12460,12462,12464,12466,12468,12470,12472,12474,12476,12478,12480,12482,12485,12487,12489,[12496,12497],[12499,12500],[12502,12503],[12505,12506],[12508,12509],12532,[12535,12538],[12542,12543],[12800,12830],[12832,12867],[12880,12895],[12910,12926],[12977,13007],[13055,13311],[44032,55203],[64256,64262],[64275,64279],64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335],[64420,64421],[64432,64433],64477,[64490,64507],[64512,64829],[64848,64911],[64914,64967],[65008,65020],65049,65072,[65097,65100],[65136,65138],65140,[65142,65151],[65153,65164],[65269,65276],65507,69786,69788,69803,[69934,69935],[70475,70476],[70843,70844],70846,[71098,71099],71992,[119134,119140],[119227,119232],[127232,127242],[127248,127274],[127277,127278],[127306,127311],[127338,127340],127376,[127488,127489],127507,[127552,127560]],Be=[169,174,8252,8265,8482,8505,[8596,8601],[8617,8618],[8986,8987],9e3,9096,9167,[9193,9203],[9208,9210],9410,[9642,9643],9654,9664,[9723,9726],[9728,9733],[9735,9746],[9748,9861],[9872,9989],[9992,10002],10004,10006,10013,10017,10024,[10035,10036],10052,10055,10060,10062,[10067,10069],10071,[10083,10087],[10133,10135],10145,10160,10175,[10548,10549],[11013,11015],[11035,11036],11088,11093,12336,12349,12951,12953,[126976,127231],[127245,127247],127279,[127340,127345],[127358,127359],127374,[127377,127386],[127405,127461],[127489,127503],127514,127535,[127538,127546],[127548,127551],[127561,127994],[128e3,128317],[128326,128591],[128640,128767],[128884,128895],[128981,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129279],[129292,129338],[129340,129349],[129351,129791],[130048,131069]],Ae=[183,[720,721],1600,2042,2901,3654,3782,6154,6211,6823,7222,7291,12293,[12337,12341],[12445,12446],[12540,12542],40981,42508,43471,43494,43632,43741,[43763,43764],65392,[67457,67458],70493,[71110,71112],72344,[92994,92995],[94176,94177],94179,[123196,123197],[125252,125254]],Re=[[832,833],[835,836],884,894,903,[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3907,3917,3922,3927,3932,3945,3955,[3957,3958],3960,3969,3987,3997,4002,4007,4012,4025,8049,8051,8053,8055,8057,8059,8061,8123,8126,8137,8139,8147,8155,8163,8171,[8174,8175],8185,8187,8189,[8192,8193],8486,[8490,8491],[9001,9002],10972,[63744,64013],64016,64018,[64021,64030],64032,64034,[64037,64038],[64042,64109],[64112,64217],64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64334],[119134,119140],[119227,119232],[194560,195101]],xe=[[32,126],[160,172],[174,767],[880,887],[890,895],[900,906],908,[910,929],[931,1154],[1162,1327],[1329,1366],[1369,1418],[1421,1423],1470,1472,1475,1478,[1488,1514],[1519,1524],[1542,1551],1563,[1565,1610],[1632,1647],[1649,1749],1758,[1765,1766],1769,[1774,1805],1808,[1810,1839],[1869,1957],1969,[1984,2026],[2036,2042],[2046,2069],2074,2084,2088,[2096,2110],[2112,2136],2142,[2144,2154],[2160,2190],[2208,2249],[2307,2361],2363,[2365,2368],[2377,2380],[2382,2384],[2392,2401],[2404,2432],[2434,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,[2495,2496],[2503,2504],[2507,2508],2510,[2524,2525],[2527,2529],[2534,2557],2563,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2622,2624],[2649,2652],2654,[2662,2671],[2674,2676],2678,2691,[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2749,2752],2761,[2763,2764],2768,[2784,2785],[2790,2801],2809,[2818,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,2880,[2887,2888],[2891,2892],[2908,2909],[2911,2913],[2918,2935],2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3007,[3009,3010],[3014,3016],[3018,3020],3024,[3046,3066],[3073,3075],[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3137,3140],[3160,3162],3165,[3168,3169],[3174,3183],[3191,3200],[3202,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3261,3262],[3264,3265],[3267,3268],[3271,3272],[3274,3275],[3293,3294],[3296,3297],[3302,3311],[3313,3315],[3330,3340],[3342,3344],[3346,3386],3389,[3391,3392],[3398,3400],[3402,3404],[3406,3407],[3412,3414],[3416,3425],[3430,3455],[3458,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3536,3537],[3544,3550],[3558,3567],[3570,3572],[3585,3632],[3634,3635],[3647,3654],[3663,3675],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],3782,[3792,3801],[3804,3807],[3840,3863],[3866,3892],3894,3896,[3898,3911],[3913,3948],3967,3973,[3976,3980],[4030,4037],[4039,4044],[4046,4058],[4096,4140],4145,4152,[4155,4156],[4159,4183],[4186,4189],[4193,4208],[4213,4225],[4227,4228],[4231,4236],[4238,4252],[4254,4293],4295,4301,[4304,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4960,4988],[4992,5017],[5024,5109],[5112,5117],[5120,5788],[5792,5880],[5888,5905],5909,[5919,5937],[5940,5942],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6070,[6078,6085],[6087,6088],[6100,6108],[6112,6121],[6128,6137],[6144,6154],[6160,6169],[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6435,6438],[6441,6443],[6448,6449],[6451,6456],6464,[6468,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6622,6678],[6681,6682],[6686,6741],6743,6753,[6755,6756],[6765,6770],[6784,6793],[6800,6809],[6816,6829],[6916,6963],6971,[6973,6977],[6979,6988],[6992,7018],[7028,7038],[7042,7073],[7078,7079],7082,[7086,7141],7143,[7146,7148],7150,[7154,7155],[7164,7211],[7220,7221],[7227,7241],[7245,7304],[7312,7354],[7357,7367],7379,7393,[7401,7404],[7406,7411],[7413,7415],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],[8192,8202],[8208,8231],[8239,8287],[8304,8305],[8308,8334],[8336,8348],[8352,8384],[8448,8587],[8592,9254],[9280,9290],[9312,11123],[11126,11157],[11159,11502],[11506,11507],[11513,11557],11559,11565,[11568,11623],[11631,11632],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11776,11869],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12336,12351],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12771],[12784,12830],[12832,42124],[42128,42182],[42192,42539],[42560,42606],42611,[42622,42653],[42656,42735],[42738,42743],[42752,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43044],[43047,43051],[43056,43065],[43072,43127],[43136,43203],[43214,43225],[43250,43262],[43264,43301],[43310,43334],[43346,43347],[43359,43388],[43395,43442],[43444,43445],[43450,43451],[43454,43469],[43471,43481],[43486,43492],[43494,43518],[43520,43560],[43567,43568],[43571,43572],[43584,43586],[43588,43595],43597,[43600,43609],[43612,43643],[43645,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43755],[43758,43765],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43883],[43888,44004],[44006,44007],[44009,44012],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64450],[64467,64911],[64914,64967],64975,[65008,65023],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65136,65140],[65142,65276],[65281,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65504,65510],[65512,65518],[65532,65533],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65792,65794],[65799,65843],[65847,65934],[65936,65948],65952,[66e3,66044],[66176,66204],[66208,66256],[66273,66299],[66304,66339],[66349,66378],[66384,66421],[66432,66461],[66463,66499],[66504,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67871,67897],67903,[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],[68176,68184],[68192,68255],[68288,68324],[68331,68342],[68352,68405],[68409,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68899],[68912,68921],[69216,69246],[69248,69289],69293,[69296,69297],[69376,69415],[69424,69445],[69457,69465],[69488,69505],[69510,69513],[69552,69579],[69600,69622],69632,[69634,69687],[69703,69709],[69714,69743],[69745,69746],69749,[69762,69810],[69815,69816],[69819,69820],[69822,69825],[69840,69864],[69872,69881],[69891,69926],69932,[69942,69959],[69968,70002],[70004,70006],[70018,70069],[70079,70088],[70093,70094],[70096,70111],[70113,70132],[70144,70161],[70163,70190],[70194,70195],70197,[70200,70205],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313],[70320,70366],[70368,70370],[70384,70393],[70402,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70463,[70465,70468],[70471,70472],[70475,70477],70480,[70493,70499],[70656,70711],[70720,70721],70725,[70727,70747],70749,[70751,70753],[70784,70831],[70833,70834],70841,[70843,70844],70846,70849,[70852,70855],[70864,70873],[71040,71086],[71088,71089],[71096,71099],71102,[71105,71131],[71168,71218],[71227,71228],71230,[71233,71236],[71248,71257],[71264,71276],[71296,71338],71340,[71342,71343],71350,[71352,71353],[71360,71369],[71424,71450],[71456,71457],71462,[71472,71494],[71680,71726],71736,71739,[71840,71922],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],[71985,71989],[71991,71992],71997,[71999,72002],[72004,72006],[72016,72025],[72096,72103],[72106,72147],[72156,72159],[72161,72164],72192,[72203,72242],[72249,72250],[72255,72262],72272,[72279,72280],[72284,72329],72343,[72346,72354],[72368,72440],[72448,72457],[72704,72712],[72714,72751],72766,[72768,72773],[72784,72812],[72816,72847],72873,72881,72884,[72960,72966],[72968,72969],[72971,73008],73030,[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73107,73108],73110,73112,[73120,73129],[73440,73458],[73461,73464],[73474,73488],[73490,73525],[73534,73535],73537,[73539,73561],73648,[73664,73713],[73727,74649],[74752,74862],[74864,74868],[74880,75075],[77712,77810],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92782,92862],[92864,92873],[92880,92909],92917,[92928,92975],[92983,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071],[93760,93850],[93952,94026],[94032,94087],[94099,94111],[94176,94179],[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],113820,113823,[118608,118723],[118784,119029],[119040,119078],[119081,119140],119142,[119146,119149],[119171,119172],[119180,119209],[119214,119274],[119296,119361],119365,[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121483],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],[123200,123209],[123214,123215],[123536,123565],[123584,123627],[123632,123641],123647,[124112,124139],[124144,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125127,125135],[125184,125251],125259,[125264,125273],[125278,125279],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],Me=[[768,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2306],2362,2364,[2369,2376],2381,[2385,2391],[2402,2403],2433,2492,2494,[2497,2500],2509,2519,[2530,2531],2558,[2561,2562],2620,[2625,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2690],2748,[2753,2757],[2759,2760],2765,[2786,2787],[2810,2815],2817,2876,[2878,2879],[2881,2884],2893,[2901,2903],[2914,2915],2946,3006,3008,3021,3031,3072,3076,3132,[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],3201,3260,3263,3266,3270,[3276,3277],[3285,3286],[3298,3299],[3328,3329],[3387,3388],3390,[3393,3396],3405,3415,[3426,3427],3457,3530,3535,[3538,3540],3542,3551,3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],4226,[4229,4230],4237,4253,[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],6086,[6089,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6434],[6439,6440],6450,[6457,6459],[6679,6680],6683,6742,[6744,6750],6752,6754,[6757,6764],[6771,6780],6783,[6832,6862],[6912,6915],[6964,6970],6972,6978,[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],7142,[7144,7145],7149,[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7616,7679],8204,[8400,8432],[11503,11505],11647,[11744,11775],[12330,12335],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43045,43046],43052,[43204,43205],[43232,43249],43263,[43302,43309],[43335,43345],[43392,43394],43443,[43446,43449],[43452,43453],43493,[43561,43566],[43569,43570],[43573,43574],43587,43596,43644,43696,[43698,43700],[43703,43704],[43710,43711],43713,[43756,43757],43766,44005,44008,44013,64286,[65024,65039],[65056,65071],[65438,65439],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],69633,[69688,69702],69744,[69747,69748],[69759,69761],[69811,69814],[69817,69818],69826,[69888,69890],[69927,69931],[69933,69940],70003,[70016,70017],[70070,70078],[70089,70092],70095,[70191,70193],70196,[70198,70199],70206,70209,70367,[70371,70378],[70400,70401],[70459,70460],70462,70464,70487,[70502,70508],[70512,70516],[70712,70719],[70722,70724],70726,70750,70832,[70835,70840],70842,70845,[70847,70848],[70850,70851],71087,[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],71229,[71231,71232],71339,71341,[71344,71349],71351,[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],71984,[71995,71996],71998,72003,[72148,72151],[72154,72155],72160,[72193,72202],[72243,72248],[72251,72254],72263,[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],72767,[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73104,73105],73109,73111,[73459,73460],[73472,73473],[73526,73530],73536,73538,78912,[78919,78933],[92912,92916],[92976,92982],94031,[94095,94098],94180,[113821,113822],[118528,118573],[118576,118598],119141,[119143,119145],[119150,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[917536,917631],[917760,917999]],Le=[2381,2509,2637,2765,2893,3021,3149,3277,[3387,3388],3405,3530,3642,3770,3972,[4153,4154],[5908,5909],5940,6098,6752,6980,[7082,7083],[7154,7155],11647,43014,43052,43204,43347,43456,43766,44013,68159,69702,69744,69759,69817,[69939,69940],70080,70197,70378,70477,70722,70850,71103,71231,71350,71467,71737,[71997,71998],72160,72244,72263,72345,72767,[73028,73029],73111,[73537,73538]],Ie=[[48,57],[65,70],[97,102],[65296,65305],[65313,65318],[65345,65350]],Pe=[45,173,1418,6150,[8208,8209],11799,12539,65123,65293,65381],$e=[[12272,12273],[12276,12283]],ke=[[12274,12275]],Ne=[[48,57],[65,90],95,[97,122],170,181,183,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[768,884],[886,887],[890,893],895,[902,906],908,[910,929],[931,1013],[1015,1153],[1155,1159],[1162,1327],[1329,1366],1369,[1376,1416],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1488,1514],[1519,1522],[1552,1562],[1568,1641],[1646,1747],[1749,1756],[1759,1768],[1770,1788],1791,[1808,1866],[1869,1969],[1984,2037],2042,2045,[2048,2093],[2112,2139],[2144,2154],[2160,2183],[2185,2190],[2200,2273],[2275,2403],[2406,2415],[2417,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2545],2556,2558,[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2677],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2799],[2809,2815],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2927],2929,[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3055],[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3200,3203],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315],[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3406],[3412,3415],[3423,3427],[3430,3439],[3450,3455],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3571],[3585,3642],[3648,3662],[3664,3673],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807],3840,[3864,3865],[3872,3881],3893,3895,3897,[3902,3911],[3913,3948],[3953,3972],[3974,3991],[3993,4028],4038,[4096,4169],[4176,4253],[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4959],[4969,4977],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5909],[5919,5940],[5952,5971],[5984,5996],[5998,6e3],[6002,6003],[6016,6099],6103,[6108,6109],[6112,6121],[6155,6157],[6159,6169],[6176,6264],[6272,6314],[6320,6389],[6400,6430],[6432,6443],[6448,6459],[6470,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6656,6683],[6688,6750],[6752,6780],[6783,6793],[6800,6809],6823,[6832,6845],[6847,6862],[6912,6988],[6992,7001],[7019,7027],[7040,7155],[7168,7223],[7232,7241],[7245,7293],[7296,7304],[7312,7354],[7357,7359],[7376,7378],[7380,7418],[7424,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],[8255,8256],8276,8305,8319,[8336,8348],[8400,8412],8417,[8421,8432],8450,8455,[8458,8467],8469,[8472,8477],8484,8486,8488,[8490,8505],[8508,8511],[8517,8521],8526,[8544,8584],[11264,11492],[11499,11507],[11520,11557],11559,11565,[11568,11623],11631,[11647,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11744,11775],[12293,12295],[12321,12335],[12337,12341],[12344,12348],[12353,12438],[12441,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42539],[42560,42607],[42612,42621],[42623,42737],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43047],43052,[43072,43123],[43136,43205],[43216,43225],[43232,43255],43259,[43261,43309],[43312,43347],[43360,43388],[43392,43456],[43471,43481],[43488,43518],[43520,43574],[43584,43597],[43600,43609],[43616,43638],[43642,43714],[43739,43741],[43744,43759],[43762,43766],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44010],[44012,44013],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],[64285,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65024,65039],[65056,65071],[65075,65076],[65101,65103],[65136,65140],[65142,65276],[65296,65305],[65313,65338],65343,[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],66045,[66176,66204],[66208,66256],66272,[66304,66335],[66349,66378],[66384,66426],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],68159,[68192,68220],[68224,68252],[68288,68295],[68297,68326],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68903],[68912,68921],[69248,69289],[69291,69292],[69296,69297],[69373,69404],69415,[69424,69456],[69488,69509],[69552,69572],[69600,69622],[69632,69702],[69734,69749],[69759,69818],69826,[69840,69864],[69872,69881],[69888,69940],[69942,69951],[69956,69959],[69968,70003],70006,[70016,70084],[70089,70092],[70094,70106],70108,[70144,70161],[70163,70199],[70206,70209],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70378],[70384,70393],[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70459,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516],[70656,70730],[70736,70745],[70750,70753],[70784,70853],70855,[70864,70873],[71040,71093],[71096,71104],[71128,71133],[71168,71232],71236,[71248,71257],[71296,71352],[71360,71369],[71424,71450],[71453,71467],[71472,71481],[71488,71494],[71680,71738],[71840,71913],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72003],[72016,72025],[72096,72103],[72106,72151],[72154,72161],[72163,72164],[72192,72254],72263,[72272,72345],72349,[72368,72440],[72704,72712],[72714,72758],[72760,72768],[72784,72793],[72818,72847],[72850,72871],[72873,72886],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129],[73440,73462],[73472,73488],[73490,73530],[73534,73538],[73552,73561],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78912,78933],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92784,92862],[92864,92873],[92880,92909],[92912,92916],[92928,92982],[92992,92995],[93008,93017],[93027,93047],[93053,93071],[93760,93823],[93952,94026],[94031,94087],[94095,94111],[94176,94177],[94179,94180],[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113821,113822],[118528,118573],[118576,118598],[119141,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[120782,120831],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122624,122654],[122661,122666],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123136,123180],[123184,123197],[123200,123209],123214,[123536,123566],[123584,123641],[124112,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125136,125142],[125184,125259],[125264,125273],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[130032,130041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743],[917760,917999]],He=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[880,884],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],1369,[1376,1416],[1488,1514],[1519,1522],[1568,1610],[1646,1647],[1649,1747],1749,[1765,1766],[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2036,2037],2042,[2048,2069],2074,2084,2088,[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2308,2361],2365,2384,[2392,2401],[2417,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3585,3632],[3634,3635],[3648,3654],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],3782,[3804,3807],3840,[3904,3911],[3913,3948],[3976,3980],[4096,4138],4159,[4176,4181],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6103,6108,[6176,6264],[6272,6312],6314,[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],6823,[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8472,8477],8484,8486,8488,[8490,8505],[8508,8511],[8517,8521],8526,[8544,8584],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[12293,12295],[12321,12329],[12337,12341],[12344,12348],[12353,12438],[12443,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42623,42653],[42656,42735],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],43471,[43488,43492],[43494,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43638],43642,[43646,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43741],[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44002],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],[66176,66204],[66208,66256],[66304,66335],[66349,66378],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71424,71450],[71488,71494],[71680,71723],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],94032,[94099,94111],[94176,94177],94179,[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],Xe=[[12294,12295],[12321,12329],[12344,12346],[13312,19903],[19968,40959],[63744,64109],[64112,64217],94180,[94208,100343],[100352,101589],[101632,101640],[110960,111355],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],ze=[[8204,8205]],We=[[3648,3652],[3776,3780],[6581,6583],6586,[43701,43702],43705,[43707,43708]],Ye=[[97,122],170,181,186,[223,246],[248,255],257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,[311,312],314,316,318,320,322,324,326,[328,329],331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,[382,384],387,389,392,[396,397],402,405,[409,411],414,417,419,421,424,[426,427],429,432,436,438,[441,442],[445,447],454,457,460,462,464,466,468,470,472,474,[476,477],479,481,483,485,487,489,491,493,[495,496],499,501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,545,547,549,551,553,555,557,559,561,[563,569],572,[575,576],578,583,585,587,589,[591,659],[661,696],[704,705],[736,740],837,881,883,887,[890,893],912,[940,974],[976,977],[981,983],985,987,989,991,993,995,997,999,1001,1003,1005,[1007,1011],1013,1016,[1019,1020],[1072,1119],1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,[1230,1231],1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,[1376,1416],[4304,4346],[4348,4351],[5112,5117],[7296,7304],[7424,7615],7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,[7829,7837],7839,7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8071],[8080,8087],[8096,8103],[8112,8116],[8118,8119],8126,[8130,8132],[8134,8135],[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],8305,8319,[8336,8348],8458,[8462,8463],8467,8495,8500,8505,[8508,8509],[8518,8521],8526,[8560,8575],8580,[9424,9449],[11312,11359],11361,[11365,11366],11368,11370,11372,11377,[11379,11380],[11382,11389],11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,[11491,11492],11500,11502,11507,[11520,11557],11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,[42651,42653],42787,42789,42791,42793,42795,42797,[42799,42801],42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,[42863,42872],42874,42876,42879,42881,42883,42885,42887,42892,42894,42897,[42899,42901],42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42927,42933,42935,42937,42939,42941,42943,42945,42947,42952,42954,42961,42963,42965,42967,42969,[42994,42996],42998,[43e3,43002],[43824,43866],[43868,43881],[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[66967,66977],[66979,66993],[66995,67001],[67003,67004],67456,[67459,67461],[67463,67504],[67506,67514],[68800,68850],[71872,71903],[93792,93823],[119834,119859],[119886,119892],[119894,119911],[119938,119963],[119990,119993],119995,[119997,120003],[120005,120015],[120042,120067],[120094,120119],[120146,120171],[120198,120223],[120250,120275],[120302,120327],[120354,120379],[120406,120431],[120458,120485],[120514,120538],[120540,120545],[120572,120596],[120598,120603],[120630,120654],[120656,120661],[120688,120712],[120714,120719],[120746,120770],[120772,120777],120779,[122624,122633],[122635,122654],[122661,122666],[122928,122989],[125218,125251]],je=[43,[60,62],94,124,126,172,177,215,247,[976,978],981,[1008,1009],[1012,1014],[1542,1544],8214,[8242,8244],8256,8260,8274,[8289,8292],[8314,8318],[8330,8334],[8400,8412],8417,[8421,8422],[8427,8431],8450,8455,[8458,8467],8469,[8472,8477],8484,[8488,8489],[8492,8493],[8495,8497],[8499,8504],[8508,8521],8523,[8592,8615],[8617,8622],[8624,8625],[8630,8631],[8636,8667],8669,[8676,8677],[8692,8959],[8968,8971],[8992,8993],9084,[9115,9141],9143,9168,[9180,9186],[9632,9633],[9646,9655],[9660,9665],[9670,9671],[9674,9675],[9679,9683],9698,9700,[9703,9708],[9720,9727],[9733,9734],9792,9794,[9824,9827],[9837,9839],[10176,10239],[10496,11007],[11056,11076],[11079,11084],64297,[65121,65126],65128,65291,[65308,65310],65340,65342,65372,65374,65506,[65513,65516],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,120831],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705]],Ue=[[64976,65007],[65534,65535],[131070,131071],[196606,196607],[262142,262143],[327678,327679],[393214,393215],[458750,458751],[524286,524287],[589822,589823],[655358,655359],[720894,720895],[786430,786431],[851966,851967],[917502,917503],[983038,983039],[1048574,1048575],[1114110,1114111]],Ve=[837,[1456,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1623],[1625,1631],1648,[1750,1756],[1761,1764],[1767,1768],1773,1809,[1840,1855],[1958,1968],[2070,2071],[2075,2083],[2085,2087],[2089,2092],[2260,2271],[2275,2281],[2288,2307],[2362,2363],[2366,2380],[2382,2383],[2389,2391],[2402,2403],[2433,2435],[2494,2500],[2503,2504],[2507,2508],2519,[2530,2531],[2561,2563],[2622,2626],[2631,2632],[2635,2636],2641,[2672,2673],2677,[2689,2691],[2750,2757],[2759,2761],[2763,2764],[2786,2787],[2810,2812],[2817,2819],[2878,2884],[2887,2888],[2891,2892],[2902,2903],[2914,2915],2946,[3006,3010],[3014,3016],[3018,3020],3031,[3072,3076],[3134,3140],[3142,3144],[3146,3148],[3157,3158],[3170,3171],[3201,3203],[3262,3268],[3270,3272],[3274,3276],[3285,3286],[3298,3299],3315,[3328,3331],[3390,3396],[3398,3400],[3402,3404],3415,[3426,3427],[3457,3459],[3535,3540],3542,[3544,3551],[3570,3571],3633,[3636,3642],3661,3761,[3764,3769],[3771,3772],3789,[3953,3971],[3981,3991],[3993,4028],[4139,4150],4152,[4155,4158],[4182,4185],[4190,4192],[4194,4196],[4199,4205],[4209,4212],[4226,4237],4239,[4250,4253],[5906,5907],[5938,5939],[5970,5971],[6002,6003],[6070,6088],[6277,6278],6313,[6432,6443],[6448,6456],[6679,6683],[6741,6750],[6753,6772],[6847,6848],[6860,6862],[6912,6916],[6965,6979],[7040,7042],[7073,7081],[7084,7085],[7143,7153],[7204,7222],[7655,7668],[9398,9449],[11744,11775],[42612,42619],[42654,42655],43010,43019,[43043,43047],[43136,43137],[43188,43203],43205,43263,[43302,43306],[43335,43346],[43392,43395],[43444,43455],43493,[43561,43574],43587,[43596,43597],[43643,43645],43696,[43698,43700],[43703,43704],43710,[43755,43759],43765,[44003,44010],64286,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68900,68903],[69291,69292],[69632,69634],[69688,69701],[69747,69748],[69760,69762],[69808,69816],69826,[69888,69890],[69927,69938],[69957,69958],[70016,70018],[70067,70079],[70094,70095],[70188,70196],70199,70206,70209,[70367,70376],[70400,70403],[70462,70468],[70471,70472],[70475,70476],70487,[70498,70499],[70709,70721],[70723,70725],[70832,70849],[71087,71093],[71096,71102],[71132,71133],[71216,71230],71232,[71339,71349],[71453,71466],[71724,71736],[71984,71989],[71991,71992],[71995,71996],72e3,72002,[72145,72151],[72154,72159],72164,[72193,72202],[72245,72249],[72251,72254],[72273,72283],[72330,72343],[72751,72758],[72760,72766],[72850,72871],[72873,72886],[73009,73014],73018,[73020,73021],[73023,73025],73027,73031,[73098,73102],[73104,73105],[73107,73110],[73459,73462],[73472,73473],73475,[73524,73530],[73534,73536],94031,[94033,94087],[94095,94098],[94192,94193],113822,[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,125255,[127280,127305],[127312,127337],[127344,127369]],Ge=[847,[4447,4448],[6068,6069],8293,12644,65440,[65520,65528],917504,[917506,917535],[917632,917759],[918e3,921599]],Ke=[2494,2519,2878,2903,3006,3031,3266,[3285,3286],3390,3415,3535,3551,6965,8204,[12334,12335],[65438,65439],70462,70487,70832,70845,71087,71984,119141,[119150,119154],[917536,917631]],qe=[183,903,[4969,4977],6618],Je=[[6277,6278],8472,8494,[12443,12444]],Ze=[170,186,[688,696],[704,705],[736,740],837,890,4348,[7468,7530],7544,[7579,7615],8305,8319,[8336,8348],[8560,8575],[9424,9449],[11388,11389],[42652,42653],42864,[42994,42996],[43e3,43001],[43868,43871],43881,67456,[67459,67461],[67463,67504],[67506,67514],[122928,122989]],Qe=[94,[976,978],981,[1008,1009],[1012,1013],8214,[8242,8244],8256,[8289,8292],[8317,8318],[8333,8334],[8400,8412],8417,[8421,8422],[8427,8431],8450,8455,[8458,8467],8469,[8473,8477],8484,[8488,8489],[8492,8493],[8495,8497],[8499,8504],[8508,8511],[8517,8521],[8597,8601],[8604,8607],[8609,8610],[8612,8613],8615,[8617,8621],[8624,8625],[8630,8631],[8636,8653],[8656,8657],8659,[8661,8667],8669,[8676,8677],[8968,8971],[9140,9141],9143,9168,9186,[9632,9633],[9646,9654],[9660,9664],[9670,9671],[9674,9675],[9679,9683],9698,9700,[9703,9708],[9733,9734],9792,9794,[9824,9827],[9837,9838],[10181,10182],[10214,10223],[10627,10648],[10712,10715],[10748,10749],65121,65123,65128,65340,65342,[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[120782,120831],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651]],t0=[[8544,8559],[9398,9423],[127280,127305],[127312,127337],[127344,127369]],e0=[[33,47],[58,64],[91,94],96,[123,126],[161,167],169,[171,172],174,[176,177],182,187,191,215,247,[8208,8231],[8240,8254],[8257,8275],[8277,8286],[8592,9311],[9472,10101],[10132,11263],[11776,11903],[12289,12291],[12296,12320],12336,[64830,64831],[65093,65094]],n0=[[9,13],32,133,[8206,8207],[8232,8233]],s0=[[1536,1541],1757,1807,[2192,2193],2274,69821,69837],i0=[34,39,171,187,[8216,8223],[8249,8250],11842,[12300,12303],[12317,12319],[65089,65092],65282,65287,[65378,65379]],r0=[[11904,11929],[11931,12019],[12032,12245]],o0=[[127462,127487]],a0=[33,46,63,1417,[1565,1567],1748,[1792,1794],2041,2103,2105,[2109,2110],[2404,2405],[4170,4171],4962,[4967,4968],5742,[5941,5942],6147,6153,[6468,6469],[6824,6827],[7002,7003],[7006,7007],[7037,7038],[7227,7228],[7294,7295],[8252,8253],[8263,8265],11822,11836,[11859,11860],12290,42239,[42510,42511],42739,42743,[43126,43127],[43214,43215],43311,[43464,43465],[43613,43615],[43760,43761],44011,65106,[65110,65111],65281,65294,65311,65377,[68182,68183],[69461,69465],[69510,69513],[69703,69704],[69822,69825],[69953,69955],[70085,70086],70093,[70110,70111],[70200,70201],[70203,70204],70313,[70731,70732],[71106,71107],[71113,71127],[71233,71234],[71484,71486],72004,72006,[72258,72259],[72347,72348],[72769,72770],[73463,73464],[73539,73540],[92782,92783],92917,[92983,92984],92996,93848,113823,121480],c0=[[105,106],303,585,616,669,690,1011,1110,1112,7522,7574,7588,7592,7725,7883,8305,[8520,8521],11388,[119842,119843],[119894,119895],[119946,119947],[119998,119999],[120050,120051],[120102,120103],[120154,120155],[120206,120207],[120258,120259],[120310,120311],[120362,120363],[120414,120415],[120466,120467],122650,[122956,122957],122984],l0=[33,44,46,[58,59],63,894,903,1417,1475,1548,1563,[1565,1567],1748,[1792,1802],1804,[2040,2041],[2096,2110],2142,[2404,2405],[3674,3675],3848,[3853,3858],[4170,4171],[4961,4968],5742,[5867,5869],[5941,5942],[6100,6102],6106,[6146,6149],[6152,6153],[6468,6469],[6824,6827],[7002,7003],[7005,7007],[7037,7038],[7227,7231],[7294,7295],[8252,8253],[8263,8265],11822,11836,11841,11852,[11854,11855],[11859,11860],[12289,12290],[42238,42239],[42509,42511],[42739,42743],[43126,43127],[43214,43215],43311,[43463,43465],[43613,43615],43743,[43760,43761],44011,[65104,65106],[65108,65111],65281,65292,65294,[65306,65307],65311,65377,65380,66463,66512,67671,67871,[68182,68183],[68336,68341],[68410,68415],[68505,68508],[69461,69465],[69510,69513],[69703,69709],[69822,69825],[69953,69955],[70085,70086],70093,[70110,70111],[70200,70204],70313,[70731,70733],[70746,70747],[71106,71109],[71113,71127],[71233,71234],[71484,71486],72004,72006,[72258,72259],[72347,72348],[72353,72354],[72769,72771],72817,[73463,73464],[73539,73540],[74864,74868],[92782,92783],92917,[92983,92985],92996,[93847,93848],113823,[121479,121482]],u0=[[13312,19903],[19968,40959],[64014,64015],64017,[64019,64020],64031,64033,[64035,64036],[64039,64041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[196608,201546],[201552,205743]],h0=[[65,90],[192,214],[216,222],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,452,455,458,461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,497,500,[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,880,882,886,895,902,[904,906],908,[910,911],[913,929],[931,939],975,[978,980],984,986,988,990,992,994,996,998,1e3,1002,1004,1006,1012,1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],[4256,4293],4295,4301,[5024,5109],[7312,7354],[7357,7359],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],[8120,8123],[8136,8139],[8152,8155],[8168,8172],[8184,8187],8450,8455,[8459,8461],[8464,8466],8469,[8473,8477],8484,8486,8488,[8490,8493],[8496,8499],[8510,8511],8517,[8544,8559],8579,[9398,9423],[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11390,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,42997,[65313,65338],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[68736,68786],[71840,71871],[93760,93791],[119808,119833],[119860,119885],[119912,119937],119964,[119966,119967],119970,[119973,119974],[119977,119980],[119982,119989],[120016,120041],[120068,120069],[120071,120074],[120077,120084],[120086,120092],[120120,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120172,120197],[120224,120249],[120276,120301],[120328,120353],[120380,120405],[120432,120457],[120488,120512],[120546,120570],[120604,120628],[120662,120686],[120720,120744],120778,[125184,125217],[127280,127305],[127312,127337],[127344,127369]],_0=[[6155,6157],6159,[65024,65039],[917760,917999]],d0=[[9,13],32,133,160,5760,[8192,8202],[8232,8233],8239,8287,12288],f0=[[48,57],[65,90],95,[97,122],170,181,183,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[768,884],[886,887],[891,893],895,[902,906],908,[910,929],[931,1013],[1015,1153],[1155,1159],[1162,1327],[1329,1366],1369,[1376,1416],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1488,1514],[1519,1522],[1552,1562],[1568,1641],[1646,1747],[1749,1756],[1759,1768],[1770,1788],1791,[1808,1866],[1869,1969],[1984,2037],2042,2045,[2048,2093],[2112,2139],[2144,2154],[2160,2183],[2185,2190],[2200,2273],[2275,2403],[2406,2415],[2417,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2545],2556,2558,[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2677],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2799],[2809,2815],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2927],2929,[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3055],[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3200,3203],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315],[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3406],[3412,3415],[3423,3427],[3430,3439],[3450,3455],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3571],[3585,3642],[3648,3662],[3664,3673],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807],3840,[3864,3865],[3872,3881],3893,3895,3897,[3902,3911],[3913,3948],[3953,3972],[3974,3991],[3993,4028],4038,[4096,4169],[4176,4253],[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4959],[4969,4977],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5909],[5919,5940],[5952,5971],[5984,5996],[5998,6e3],[6002,6003],[6016,6099],6103,[6108,6109],[6112,6121],[6155,6157],[6159,6169],[6176,6264],[6272,6314],[6320,6389],[6400,6430],[6432,6443],[6448,6459],[6470,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6656,6683],[6688,6750],[6752,6780],[6783,6793],[6800,6809],6823,[6832,6845],[6847,6862],[6912,6988],[6992,7001],[7019,7027],[7040,7155],[7168,7223],[7232,7241],[7245,7293],[7296,7304],[7312,7354],[7357,7359],[7376,7378],[7380,7418],[7424,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],[8255,8256],8276,8305,8319,[8336,8348],[8400,8412],8417,[8421,8432],8450,8455,[8458,8467],8469,[8472,8477],8484,8486,8488,[8490,8505],[8508,8511],[8517,8521],8526,[8544,8584],[11264,11492],[11499,11507],[11520,11557],11559,11565,[11568,11623],11631,[11647,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11744,11775],[12293,12295],[12321,12335],[12337,12341],[12344,12348],[12353,12438],[12441,12442],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42539],[42560,42607],[42612,42621],[42623,42737],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43047],43052,[43072,43123],[43136,43205],[43216,43225],[43232,43255],43259,[43261,43309],[43312,43347],[43360,43388],[43392,43456],[43471,43481],[43488,43518],[43520,43574],[43584,43597],[43600,43609],[43616,43638],[43642,43714],[43739,43741],[43744,43759],[43762,43766],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44010],[44012,44013],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],[64285,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64605],[64612,64829],[64848,64911],[64914,64967],[65008,65017],[65024,65039],[65056,65071],[65075,65076],[65101,65103],65137,65139,65143,65145,65147,65149,[65151,65276],[65296,65305],[65313,65338],65343,[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],66045,[66176,66204],[66208,66256],66272,[66304,66335],[66349,66378],[66384,66426],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],68159,[68192,68220],[68224,68252],[68288,68295],[68297,68326],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68903],[68912,68921],[69248,69289],[69291,69292],[69296,69297],[69373,69404],69415,[69424,69456],[69488,69509],[69552,69572],[69600,69622],[69632,69702],[69734,69749],[69759,69818],69826,[69840,69864],[69872,69881],[69888,69940],[69942,69951],[69956,69959],[69968,70003],70006,[70016,70084],[70089,70092],[70094,70106],70108,[70144,70161],[70163,70199],[70206,70209],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70378],[70384,70393],[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70459,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516],[70656,70730],[70736,70745],[70750,70753],[70784,70853],70855,[70864,70873],[71040,71093],[71096,71104],[71128,71133],[71168,71232],71236,[71248,71257],[71296,71352],[71360,71369],[71424,71450],[71453,71467],[71472,71481],[71488,71494],[71680,71738],[71840,71913],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72003],[72016,72025],[72096,72103],[72106,72151],[72154,72161],[72163,72164],[72192,72254],72263,[72272,72345],72349,[72368,72440],[72704,72712],[72714,72758],[72760,72768],[72784,72793],[72818,72847],[72850,72871],[72873,72886],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129],[73440,73462],[73472,73488],[73490,73530],[73534,73538],[73552,73561],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78912,78933],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92784,92862],[92864,92873],[92880,92909],[92912,92916],[92928,92982],[92992,92995],[93008,93017],[93027,93047],[93053,93071],[93760,93823],[93952,94026],[94031,94087],[94095,94111],[94176,94177],[94179,94180],[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113821,113822],[118528,118573],[118576,118598],[119141,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[120782,120831],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122624,122654],[122661,122666],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123136,123180],[123184,123197],[123200,123209],123214,[123536,123566],[123584,123641],[124112,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125136,125142],[125184,125259],[125264,125273],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[130032,130041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743],[917760,917999]],g0=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[880,884],[886,887],[891,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],1369,[1376,1416],[1488,1514],[1519,1522],[1568,1610],[1646,1647],[1649,1747],1749,[1765,1766],[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2036,2037],2042,[2048,2069],2074,2084,2088,[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2308,2361],2365,2384,[2392,2401],[2417,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3585,3632],3634,[3648,3654],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],3762,3773,[3776,3780],3782,[3804,3807],3840,[3904,3911],[3913,3948],[3976,3980],[4096,4138],4159,[4176,4181],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6103,6108,[6176,6264],[6272,6312],6314,[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],6823,[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8472,8477],8484,8486,8488,[8490,8505],[8508,8511],[8517,8521],8526,[8544,8584],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[12293,12295],[12321,12329],[12337,12341],[12344,12348],[12353,12438],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42623,42653],[42656,42735],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],43471,[43488,43492],[43494,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43638],43642,[43646,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43741],[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44002],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64605],[64612,64829],[64848,64911],[64914,64967],[65008,65017],65137,65139,65143,65145,65147,65149,[65151,65276],[65313,65338],[65345,65370],[65382,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],[66176,66204],[66208,66256],[66304,66335],[66349,66378],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71424,71450],[71488,71494],[71680,71723],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],94032,[94099,94111],[94176,94177],94179,[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],D0=Object.freeze(Object.defineProperty({__proto__:null,ASCII:te,ASCII_Hex_Digit:ee,Alphabetic:ne,Any:se,Assigned:ie,Bidi_Control:re,Bidi_Mirrored:oe,Case_Ignorable:ae,Cased:ce,Changes_When_Casefolded:le,Changes_When_Casemapped:ue,Changes_When_Lowercased:he,Changes_When_NFKC_Casefolded:_e,Changes_When_Titlecased:de,Changes_When_Uppercased:fe,Composition_Exclusion:ge,Dash:De,Default_Ignorable_Code_Point:pe,Deprecated:me,Diacritic:be,Emoji:ve,Emoji_Component:Ce,Emoji_Modifier:Se,Emoji_Modifier_Base:Ee,Emoji_Presentation:ye,Expands_On_NFC:Te,Expands_On_NFD:Fe,Expands_On_NFKC:Oe,Expands_On_NFKD:we,Extended_Pictographic:Be,Extender:Ae,Full_Composition_Exclusion:Re,Grapheme_Base:xe,Grapheme_Extend:Me,Grapheme_Link:Le,Hex_Digit:Ie,Hyphen:Pe,IDS_Binary_Operator:$e,IDS_Trinary_Operator:ke,ID_Continue:Ne,ID_Start:He,Ideographic:Xe,Join_Control:ze,Logical_Order_Exception:We,Lowercase:Ye,Math:je,Noncharacter_Code_Point:Ue,Other_Alphabetic:Ve,Other_Default_Ignorable_Code_Point:Ge,Other_Grapheme_Extend:Ke,Other_ID_Continue:qe,Other_ID_Start:Je,Other_Lowercase:Ze,Other_Math:Qe,Other_Uppercase:t0,Pattern_Syntax:e0,Pattern_White_Space:n0,Prepended_Concatenation_Mark:s0,Quotation_Mark:i0,Radical:r0,Regional_Indicator:o0,Sentence_Terminal:a0,Soft_Dotted:c0,Terminal_Punctuation:l0,Unified_Ideograph:u0,Uppercase:h0,Variation_Selector:_0,White_Space:d0,XID_Continue:f0,XID_Start:g0},Symbol.toStringTag,{value:"Module"})),p0=[[65,90],[97,122],181,[192,214],[216,246],[248,442],[444,447],[452,659],[661,687],[880,883],[886,887],[891,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],[1376,1416],[4256,4293],4295,4301,[4304,4346],[4349,4351],[5024,5109],[5112,5117],[7296,7304],[7312,7354],[7357,7359],[7424,7467],[7531,7543],[7545,7578],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8500],8505,[8508,8511],[8517,8521],8526,[8579,8580],[11264,11387],[11390,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[42560,42605],[42624,42651],[42786,42863],[42865,42887],[42891,42894],[42896,42954],[42960,42961],42963,[42965,42969],[42997,42998],43002,[43824,43866],[43872,43880],[43888,43967],[64256,64262],[64275,64279],[65313,65338],[65345,65370],[66560,66639],[66736,66771],[66776,66811],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68736,68786],[68800,68850],[71840,71903],[93760,93823],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122633],[122635,122654],[122661,122666],[125184,125251]],m0=[41,93,125,3899,3901,5788,8262,8318,8334,8969,8971,9002,10089,10091,10093,10095,10097,10099,10101,10182,10215,10217,10219,10221,10223,10628,10630,10632,10634,10636,10638,10640,10642,10644,10646,10648,10713,10715,10749,11811,11813,11815,11817,11862,11864,11866,11868,12297,12299,12301,12303,12305,12309,12311,12313,12315,[12318,12319],64830,65048,65078,65080,65082,65084,65086,65088,65090,65092,65096,65114,65116,65118,65289,65341,65373,65376,65379],b0=[95,[8255,8256],8276,[65075,65076],[65101,65103],65343],v0=[[0,31],[127,159]],C0=[36,[162,165],1423,1547,[2046,2047],[2546,2547],2555,2801,3065,3647,6107,[8352,8384],43064,65020,65129,65284,[65504,65505],[65509,65510],[73693,73696],123647,126128],S0=[45,1418,1470,5120,6150,[8208,8213],11799,11802,[11834,11835],11840,11869,12316,12336,12448,[65073,65074],65112,65123,65293,69293],E0=[[48,57],[1632,1641],[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2662,2671],[2790,2799],[2918,2927],[3046,3055],[3174,3183],[3302,3311],[3430,3439],[3558,3567],[3664,3673],[3792,3801],[3872,3881],[4160,4169],[4240,4249],[6112,6121],[6160,6169],[6470,6479],[6608,6617],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],[42528,42537],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[65296,65305],[66720,66729],[68912,68921],[69734,69743],[69872,69881],[69942,69951],[70096,70105],[70384,70393],[70736,70745],[70864,70873],[71248,71257],[71360,71369],[71472,71481],[71904,71913],[72016,72025],[72784,72793],[73040,73049],[73120,73129],[73552,73561],[92768,92777],[92864,92873],[93008,93017],[120782,120831],[123200,123209],[123632,123641],[124144,124153],[125264,125273],[130032,130041]],y0=[[1160,1161],6846,[8413,8416],[8418,8420],[42608,42610]],T0=[187,8217,8221,8250,11779,11781,11786,11789,11805,11809],F0=[173,[1536,1541],1564,1757,1807,[2192,2193],2274,6158,[8203,8207],[8234,8238],[8288,8292],[8294,8303],65279,[65529,65531],69821,69837,[78896,78911],[113824,113827],[119155,119162],917505,[917536,917631]],O0=[171,8216,[8219,8220],8223,8249,11778,11780,11785,11788,11804,11808],w0=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[880,884],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],1369,[1376,1416],[1488,1514],[1519,1522],[1568,1610],[1646,1647],[1649,1747],1749,[1765,1766],[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2036,2037],2042,[2048,2069],2074,2084,2088,[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2308,2361],2365,2384,[2392,2401],[2417,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3585,3632],[3634,3635],[3648,3654],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],3782,[3804,3807],3840,[3904,3911],[3913,3948],[3976,3980],[4096,4138],4159,[4176,4181],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5873,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6103,6108,[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],6823,[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8505],[8508,8511],[8517,8521],8526,[8579,8580],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],11823,[12293,12294],[12337,12341],[12347,12348],[12353,12438],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42623,42653],[42656,42725],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],43471,[43488,43492],[43494,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43638],43642,[43646,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43741],[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44002],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[66176,66204],[66208,66256],[66304,66335],[66349,66368],[66370,66377],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71424,71450],[71488,71494],[71680,71723],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],94032,[94099,94111],[94176,94177],94179,[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],B0=[[5870,5872],[8544,8578],[8581,8584],12295,[12321,12329],[12344,12346],[42726,42735],[65856,65908],66369,66378,[66513,66517],[74752,74862]],A0=[8232],R0=[[97,122],181,[223,246],[248,255],257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,[311,312],314,316,318,320,322,324,326,[328,329],331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,[382,384],387,389,392,[396,397],402,405,[409,411],414,417,419,421,424,[426,427],429,432,436,438,[441,442],[445,447],454,457,460,462,464,466,468,470,472,474,[476,477],479,481,483,485,487,489,491,493,[495,496],499,501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,545,547,549,551,553,555,557,559,561,[563,569],572,[575,576],578,583,585,587,589,[591,659],[661,687],881,883,887,[891,893],912,[940,974],[976,977],[981,983],985,987,989,991,993,995,997,999,1001,1003,1005,[1007,1011],1013,1016,[1019,1020],[1072,1119],1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,[1230,1231],1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,[1376,1416],[4304,4346],[4349,4351],[5112,5117],[7296,7304],[7424,7467],[7531,7543],[7545,7578],7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,[7829,7837],7839,7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8071],[8080,8087],[8096,8103],[8112,8116],[8118,8119],8126,[8130,8132],[8134,8135],[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],8458,[8462,8463],8467,8495,8500,8505,[8508,8509],[8518,8521],8526,8580,[11312,11359],11361,[11365,11366],11368,11370,11372,11377,[11379,11380],[11382,11387],11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,[11491,11492],11500,11502,11507,[11520,11557],11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,42651,42787,42789,42791,42793,42795,42797,[42799,42801],42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,42863,[42865,42872],42874,42876,42879,42881,42883,42885,42887,42892,42894,42897,[42899,42901],42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42927,42933,42935,42937,42939,42941,42943,42945,42947,42952,42954,42961,42963,42965,42967,42969,42998,43002,[43824,43866],[43872,43880],[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68800,68850],[71872,71903],[93792,93823],[119834,119859],[119886,119892],[119894,119911],[119938,119963],[119990,119993],119995,[119997,120003],[120005,120015],[120042,120067],[120094,120119],[120146,120171],[120198,120223],[120250,120275],[120302,120327],[120354,120379],[120406,120431],[120458,120485],[120514,120538],[120540,120545],[120572,120596],[120598,120603],[120630,120654],[120656,120661],[120688,120712],[120714,120719],[120746,120770],[120772,120777],120779,[122624,122633],[122635,122654],[122661,122666],[125218,125251]],x0=[[768,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2307],[2362,2364],[2366,2383],[2385,2391],[2402,2403],[2433,2435],2492,[2494,2500],[2503,2504],[2507,2509],2519,[2530,2531],2558,[2561,2563],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2691],2748,[2750,2757],[2759,2761],[2763,2765],[2786,2787],[2810,2815],[2817,2819],2876,[2878,2884],[2887,2888],[2891,2893],[2901,2903],[2914,2915],2946,[3006,3010],[3014,3016],[3018,3021],3031,[3072,3076],3132,[3134,3140],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3203],3260,[3262,3268],[3270,3272],[3274,3277],[3285,3286],[3298,3299],3315,[3328,3331],[3387,3388],[3390,3396],[3398,3400],[3402,3405],3415,[3426,3427],[3457,3459],3530,[3535,3540],3542,[3544,3551],[3570,3571],3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3902,3903],[3953,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4139,4158],[4182,4185],[4190,4192],[4194,4196],[4199,4205],[4209,4212],[4226,4237],4239,[4250,4253],[4957,4959],[5906,5909],[5938,5940],[5970,5971],[6002,6003],[6068,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6443],[6448,6459],[6679,6683],[6741,6750],[6752,6780],6783,[6832,6862],[6912,6916],[6964,6980],[7019,7027],[7040,7042],[7073,7085],[7142,7155],[7204,7223],[7376,7378],[7380,7400],7405,7412,[7415,7417],[7616,7679],[8400,8432],[11503,11505],11647,[11744,11775],[12330,12335],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43043,43047],43052,[43136,43137],[43188,43205],[43232,43249],43263,[43302,43309],[43335,43347],[43392,43395],[43443,43456],43493,[43561,43574],43587,[43596,43597],[43643,43645],43696,[43698,43700],[43703,43704],[43710,43711],43713,[43755,43759],[43765,43766],[44003,44010],[44012,44013],64286,[65024,65039],[65056,65071],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],[69632,69634],[69688,69702],69744,[69747,69748],[69759,69762],[69808,69818],69826,[69888,69890],[69927,69940],[69957,69958],70003,[70016,70018],[70067,70080],[70089,70092],[70094,70095],[70188,70199],70206,70209,[70367,70378],[70400,70403],[70459,70460],[70462,70468],[70471,70472],[70475,70477],70487,[70498,70499],[70502,70508],[70512,70516],[70709,70726],70750,[70832,70851],[71087,71093],[71096,71104],[71132,71133],[71216,71232],[71339,71351],[71453,71467],[71724,71738],[71984,71989],[71991,71992],[71995,71998],72e3,[72002,72003],[72145,72151],[72154,72160],72164,[72193,72202],[72243,72249],[72251,72254],72263,[72273,72283],[72330,72345],[72751,72758],[72760,72767],[72850,72871],[72873,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73098,73102],[73104,73105],[73107,73111],[73459,73462],[73472,73473],73475,[73524,73530],[73534,73538],78912,[78919,78933],[92912,92916],[92976,92982],94031,[94033,94087],[94095,94098],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,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[917760,917999]],M0=[43,[60,62],124,126,172,177,215,247,1014,[1542,1544],8260,8274,[8314,8316],[8330,8332],8472,[8512,8516],8523,[8592,8596],[8602,8603],8608,8611,8614,8622,[8654,8655],8658,8660,[8692,8959],[8992,8993],9084,[9115,9139],[9180,9185],9655,9665,[9720,9727],9839,[10176,10180],[10183,10213],[10224,10239],[10496,10626],[10649,10711],[10716,10747],[10750,11007],[11056,11076],[11079,11084],64297,65122,[65124,65126],65291,[65308,65310],65372,65374,65506,[65513,65516],120513,120539,120571,120597,120629,120655,120687,120713,120745,120771,[126704,126705]],L0=[[688,705],[710,721],[736,740],748,750,884,890,1369,1600,[1765,1766],[2036,2037],2042,2074,2084,2088,2249,2417,3654,3782,4348,6103,6211,6823,[7288,7293],[7468,7530],7544,[7579,7615],8305,8319,[8336,8348],[11388,11389],11631,11823,12293,[12337,12341],12347,[12445,12446],[12540,12542],40981,[42232,42237],42508,42623,[42652,42653],[42775,42783],42864,42888,[42994,42996],[43e3,43001],43471,43494,43632,43741,[43763,43764],[43868,43871],43881,65392,[65438,65439],[67456,67461],[67463,67504],[67506,67514],[92992,92995],[94099,94111],[94176,94177],94179,[110576,110579],[110581,110587],[110589,110590],[122928,122989],[123191,123197],124139,125259],I0=[94,96,168,175,180,184,[706,709],[722,735],[741,747],749,[751,767],885,[900,901],2184,8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[12443,12444],[42752,42774],[42784,42785],[42889,42890],43867,[43882,43883],[64434,64450],65342,65344,65507,[127995,127999]],P0=[[768,879],[1155,1159],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2306],2362,2364,[2369,2376],2381,[2385,2391],[2402,2403],2433,2492,[2497,2500],2509,[2530,2531],2558,[2561,2562],2620,[2625,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2690],2748,[2753,2757],[2759,2760],2765,[2786,2787],[2810,2815],2817,2876,2879,[2881,2884],2893,[2901,2902],[2914,2915],2946,3008,3021,3072,3076,3132,[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],3201,3260,3263,3270,[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],3405,[3426,3427],3457,3530,[3538,3540],3542,3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],4226,[4229,4230],4237,4253,[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],6086,[6089,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6434],[6439,6440],6450,[6457,6459],[6679,6680],6683,6742,[6744,6750],6752,6754,[6757,6764],[6771,6780],6783,[6832,6845],[6847,6862],[6912,6915],6964,[6966,6970],6972,6978,[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],7142,[7144,7145],7149,[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7616,7679],[8400,8412],8417,[8421,8432],[11503,11505],11647,[11744,11775],[12330,12333],[12441,12442],42607,[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43045,43046],43052,[43204,43205],[43232,43249],43263,[43302,43309],[43335,43345],[43392,43394],43443,[43446,43449],[43452,43453],43493,[43561,43566],[43569,43570],[43573,43574],43587,43596,43644,43696,[43698,43700],[43703,43704],[43710,43711],43713,[43756,43757],43766,44005,44008,44013,64286,[65024,65039],[65056,65071],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],69633,[69688,69702],69744,[69747,69748],[69759,69761],[69811,69814],[69817,69818],69826,[69888,69890],[69927,69931],[69933,69940],70003,[70016,70017],[70070,70078],[70089,70092],70095,[70191,70193],70196,[70198,70199],70206,70209,70367,[70371,70378],[70400,70401],[70459,70460],70464,[70502,70508],[70512,70516],[70712,70719],[70722,70724],70726,70750,[70835,70840],70842,[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],71229,[71231,71232],71339,71341,[71344,71349],71351,[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[71995,71996],71998,72003,[72148,72151],[72154,72155],72160,[72193,72202],[72243,72248],[72251,72254],72263,[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],72767,[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73104,73105],73109,73111,[73459,73460],[73472,73473],[73526,73530],73536,73538,78912,[78919,78933],[92912,92916],[92976,92982],94031,[94095,94098],94180,[113821,113822],[118528,118573],[118576,118598],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[917760,917999]],$0=[[48,57],[178,179],185,[188,190],[1632,1641],[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2548,2553],[2662,2671],[2790,2799],[2918,2927],[2930,2935],[3046,3058],[3174,3183],[3192,3198],[3302,3311],[3416,3422],[3430,3448],[3558,3567],[3664,3673],[3792,3801],[3872,3891],[4160,4169],[4240,4249],[4969,4988],[5870,5872],[6112,6121],[6128,6137],[6160,6169],[6470,6479],[6608,6618],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],8304,[8308,8313],[8320,8329],[8528,8578],[8581,8585],[9312,9371],[9450,9471],[10102,10131],11517,12295,[12321,12329],[12344,12346],[12690,12693],[12832,12841],[12872,12879],[12881,12895],[12928,12937],[12977,12991],[42528,42537],[42726,42735],[43056,43061],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[65296,65305],[65799,65843],[65856,65912],[65930,65931],[66273,66299],[66336,66339],66369,66378,[66513,66517],[66720,66729],[67672,67679],[67705,67711],[67751,67759],[67835,67839],[67862,67867],[68028,68029],[68032,68047],[68050,68095],[68160,68168],[68221,68222],[68253,68255],[68331,68335],[68440,68447],[68472,68479],[68521,68527],[68858,68863],[68912,68921],[69216,69246],[69405,69414],[69457,69460],[69573,69579],[69714,69743],[69872,69881],[69942,69951],[70096,70105],[70113,70132],[70384,70393],[70736,70745],[70864,70873],[71248,71257],[71360,71369],[71472,71483],[71904,71922],[72016,72025],[72784,72812],[73040,73049],[73120,73129],[73552,73561],[73664,73684],[74752,74862],[92768,92777],[92864,92873],[93008,93017],[93019,93025],[93824,93846],[119488,119507],[119520,119539],[119648,119672],[120782,120831],[123200,123209],[123632,123641],[124144,124153],[125127,125135],[125264,125273],[126065,126123],[126125,126127],[126129,126132],[126209,126253],[126255,126269],[127232,127244],[130032,130041]],k0=[40,91,123,3898,3900,5787,8218,8222,8261,8317,8333,8968,8970,9001,10088,10090,10092,10094,10096,10098,10100,10181,10214,10216,10218,10220,10222,10627,10629,10631,10633,10635,10637,10639,10641,10643,10645,10647,10712,10714,10748,11810,11812,11814,11816,11842,11861,11863,11865,11867,12296,12298,12300,12302,12304,12308,12310,12312,12314,12317,64831,65047,65077,65079,65081,65083,65085,65087,65089,65091,65095,65113,65115,65117,65288,65339,65371,65375,65378],N0=[[0,31],[127,159],173,[888,889],[896,899],907,909,930,1328,[1367,1368],[1419,1420],1424,[1480,1487],[1515,1518],[1525,1541],1564,1757,[1806,1807],[1867,1868],[1970,1983],[2043,2044],[2094,2095],2111,[2140,2141],2143,[2155,2159],[2191,2199],2274,2436,[2445,2446],[2449,2450],2473,2481,[2483,2485],[2490,2491],[2501,2502],[2505,2506],[2511,2518],[2520,2523],2526,[2532,2533],[2559,2560],2564,[2571,2574],[2577,2578],2601,2609,2612,2615,[2618,2619],2621,[2627,2630],[2633,2634],[2638,2640],[2642,2648],2653,[2655,2661],[2679,2688],2692,2702,2706,2729,2737,2740,[2746,2747],2758,2762,[2766,2767],[2769,2783],[2788,2789],[2802,2808],2816,2820,[2829,2830],[2833,2834],2857,2865,2868,[2874,2875],[2885,2886],[2889,2890],[2894,2900],[2904,2907],2910,[2916,2917],[2936,2945],2948,[2955,2957],2961,[2966,2968],2971,2973,[2976,2978],[2981,2983],[2987,2989],[3002,3005],[3011,3013],3017,[3022,3023],[3025,3030],[3032,3045],[3067,3071],3085,3089,3113,[3130,3131],3141,3145,[3150,3156],3159,[3163,3164],[3166,3167],[3172,3173],[3184,3190],3213,3217,3241,3252,[3258,3259],3269,3273,[3278,3284],[3287,3292],3295,[3300,3301],3312,[3316,3327],3341,3345,3397,3401,[3408,3411],[3428,3429],3456,3460,[3479,3481],3506,3516,[3518,3519],[3527,3529],[3531,3534],3541,3543,[3552,3557],[3568,3569],[3573,3584],[3643,3646],[3676,3712],3715,3717,3723,3748,3750,[3774,3775],3781,3783,3791,[3802,3803],[3808,3839],3912,[3949,3952],3992,4029,4045,[4059,4095],4294,[4296,4300],[4302,4303],4681,[4686,4687],4695,4697,[4702,4703],4745,[4750,4751],4785,[4790,4791],4799,4801,[4806,4807],4823,4881,[4886,4887],[4955,4956],[4989,4991],[5018,5023],[5110,5111],[5118,5119],[5789,5791],[5881,5887],[5910,5918],[5943,5951],[5972,5983],5997,6001,[6004,6015],[6110,6111],[6122,6127],[6138,6143],6158,[6170,6175],[6265,6271],[6315,6319],[6390,6399],6431,[6444,6447],[6460,6463],[6465,6467],[6510,6511],[6517,6527],[6572,6575],[6602,6607],[6619,6621],[6684,6685],6751,[6781,6782],[6794,6799],[6810,6815],[6830,6831],[6863,6911],[6989,6991],7039,[7156,7163],[7224,7226],[7242,7244],[7305,7311],[7355,7356],[7368,7375],[7419,7423],[7958,7959],[7966,7967],[8006,8007],[8014,8015],8024,8026,8028,8030,[8062,8063],8117,8133,[8148,8149],8156,[8176,8177],8181,8191,[8203,8207],[8234,8238],[8288,8303],[8306,8307],8335,[8349,8351],[8385,8399],[8433,8447],[8588,8591],[9255,9279],[9291,9311],[11124,11125],11158,[11508,11512],11558,[11560,11564],[11566,11567],[11624,11630],[11633,11646],[11671,11679],11687,11695,11703,11711,11719,11727,11735,11743,[11870,11903],11930,[12020,12031],[12246,12271],[12284,12287],12352,[12439,12440],[12544,12548],12592,12687,[12772,12783],12831,[42125,42127],[42183,42191],[42540,42559],[42744,42751],[42955,42959],42962,42964,[42970,42993],[43053,43055],[43066,43071],[43128,43135],[43206,43213],[43226,43231],[43348,43358],[43389,43391],43470,[43482,43485],43519,[43575,43583],[43598,43599],[43610,43611],[43715,43738],[43767,43776],[43783,43784],[43791,43792],[43799,43807],43815,43823,[43884,43887],[44014,44015],[44026,44031],[55204,55215],[55239,55242],[55292,63743],[64110,64111],[64218,64255],[64263,64274],[64280,64284],64311,64317,64319,64322,64325,[64451,64466],[64912,64913],[64968,64974],[64976,65007],[65050,65055],65107,65127,[65132,65135],65141,[65277,65280],[65471,65473],[65480,65481],[65488,65489],[65496,65497],[65501,65503],65511,[65519,65531],[65534,65535],65548,65575,65595,65598,[65614,65615],[65630,65663],[65787,65791],[65795,65798],[65844,65846],65935,[65949,65951],[65953,65999],[66046,66175],[66205,66207],[66257,66271],[66300,66303],[66340,66348],[66379,66383],[66427,66431],66462,[66500,66503],[66518,66559],[66718,66719],[66730,66735],[66772,66775],[66812,66815],[66856,66863],[66916,66926],66939,66955,66963,66966,66978,66994,67002,[67005,67071],[67383,67391],[67414,67423],[67432,67455],67462,67505,[67515,67583],[67590,67591],67593,67638,[67641,67643],[67645,67646],67670,[67743,67750],[67760,67807],67827,[67830,67834],[67868,67870],[67898,67902],[67904,67967],[68024,68027],[68048,68049],68100,[68103,68107],68116,68120,[68150,68151],[68155,68158],[68169,68175],[68185,68191],[68256,68287],[68327,68330],[68343,68351],[68406,68408],[68438,68439],[68467,68471],[68498,68504],[68509,68520],[68528,68607],[68681,68735],[68787,68799],[68851,68857],[68904,68911],[68922,69215],69247,69290,[69294,69295],[69298,69372],[69416,69423],[69466,69487],[69514,69551],[69580,69599],[69623,69631],[69710,69713],[69750,69758],69821,[69827,69839],[69865,69871],[69882,69887],69941,[69960,69967],[70007,70015],70112,[70133,70143],70162,[70210,70271],70279,70281,70286,70302,[70314,70319],[70379,70383],[70394,70399],70404,[70413,70414],[70417,70418],70441,70449,70452,70458,[70469,70470],[70473,70474],[70478,70479],[70481,70486],[70488,70492],[70500,70501],[70509,70511],[70517,70655],70748,[70754,70783],[70856,70863],[70874,71039],[71094,71095],[71134,71167],[71237,71247],[71258,71263],[71277,71295],[71354,71359],[71370,71423],[71451,71452],[71468,71471],[71495,71679],[71740,71839],[71923,71934],[71943,71944],[71946,71947],71956,71959,71990,[71993,71994],[72007,72015],[72026,72095],[72104,72105],[72152,72153],[72165,72191],[72264,72271],[72355,72367],[72441,72447],[72458,72703],72713,72759,[72774,72783],[72813,72815],[72848,72849],72872,[72887,72959],72967,72970,[73015,73017],73019,73022,[73032,73039],[73050,73055],73062,73065,73103,73106,[73113,73119],[73130,73439],[73465,73471],73489,[73531,73533],[73562,73647],[73649,73663],[73714,73726],[74650,74751],74863,[74869,74879],[75076,77711],[77811,77823],[78896,78911],[78934,82943],[83527,92159],[92729,92735],92767,[92778,92781],92863,[92874,92879],[92910,92911],[92918,92927],[92998,93007],93018,93026,[93048,93052],[93072,93759],[93851,93951],[94027,94030],[94088,94094],[94112,94175],[94181,94191],[94194,94207],[100344,100351],[101590,101631],[101641,110575],110580,110588,110591,[110883,110897],[110899,110927],[110931,110932],[110934,110947],[110952,110959],[111356,113663],[113771,113775],[113789,113791],[113801,113807],[113818,113819],[113824,118527],[118574,118575],[118599,118607],[118724,118783],[119030,119039],[119079,119080],[119155,119162],[119275,119295],[119366,119487],[119508,119519],[119540,119551],[119639,119647],[119673,119807],119893,119965,[119968,119969],[119971,119972],[119975,119976],119981,119994,119996,120004,120070,[120075,120076],120085,120093,120122,120127,120133,[120135,120137],120145,[120486,120487],[120780,120781],[121484,121498],121504,[121520,122623],[122655,122660],[122667,122879],122887,[122905,122906],122914,122917,[122923,122927],[122990,123022],[123024,123135],[123181,123183],[123198,123199],[123210,123213],[123216,123535],[123567,123583],[123642,123646],[123648,124111],[124154,124895],124903,124908,124911,124927,[125125,125126],[125143,125183],[125260,125263],[125274,125277],[125280,126064],[126133,126208],[126270,126463],126468,126496,126499,[126501,126502],126504,126515,126520,126522,[126524,126529],[126531,126534],126536,126538,126540,126544,126547,[126549,126550],126552,126554,126556,126558,126560,126563,[126565,126566],126571,126579,126584,126589,126591,126602,[126620,126624],126628,126634,[126652,126703],[126706,126975],[127020,127023],[127124,127135],[127151,127152],127168,127184,[127222,127231],[127406,127461],[127491,127503],[127548,127551],[127561,127567],[127570,127583],[127590,127743],[128728,128731],[128749,128751],[128765,128767],[128887,128890],[128986,128991],[129004,129007],[129009,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129199],[129202,129279],[129620,129631],[129646,129647],[129661,129663],[129673,129679],129726,[129734,129741],[129756,129759],[129769,129775],[129785,129791],129939,[129995,130031],[130042,131071],[173792,173823],[177978,177983],[178206,178207],[183970,183983],[191457,194559],[195102,196607],[201547,201551],[205744,917759],[918e3,1114111]],H0=[170,186,443,[448,451],660,[1488,1514],[1519,1522],[1568,1599],[1601,1610],[1646,1647],[1649,1747],1749,[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2048,2069],[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2248],[2308,2361],2365,2384,[2392,2401],[2418,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3585,3632],[3634,3635],[3648,3653],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],[3804,3807],3840,[3904,3911],[3913,3948],[3976,3980],[4096,4138],4159,[4176,4181],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4352,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5873,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6108,[6176,6210],[6212,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7287],[7401,7404],[7406,7411],[7413,7414],7418,[8501,8504],[11568,11623],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],12294,12348,[12353,12438],12447,[12449,12538],12543,[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,40980],[40982,42124],[42192,42231],[42240,42507],[42512,42527],[42538,42539],42606,[42656,42725],42895,42999,[43003,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],[43488,43492],[43495,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43631],[43633,43638],43642,[43646,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43740],[43744,43754],43762,[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43968,44002],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65382,65391],[65393,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[66176,66204],[66208,66256],[66304,66335],[66349,66368],[66370,66377],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66640,66717],[66816,66855],[66864,66915],[67072,67382],[67392,67413],[67424,67431],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71424,71450],[71488,71494],[71680,71723],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[93027,93047],[93053,93071],[93952,94026],94032,[94208,100343],[100352,101589],[101632,101640],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],122634,[123136,123180],123214,[123536,123565],[123584,123627],[124112,124138],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],X0=[[178,179],185,[188,190],[2548,2553],[2930,2935],[3056,3058],[3192,3198],[3416,3422],[3440,3448],[3882,3891],[4969,4988],[6128,6137],6618,8304,[8308,8313],[8320,8329],[8528,8543],8585,[9312,9371],[9450,9471],[10102,10131],11517,[12690,12693],[12832,12841],[12872,12879],[12881,12895],[12928,12937],[12977,12991],[43056,43061],[65799,65843],[65909,65912],[65930,65931],[66273,66299],[66336,66339],[67672,67679],[67705,67711],[67751,67759],[67835,67839],[67862,67867],[68028,68029],[68032,68047],[68050,68095],[68160,68168],[68221,68222],[68253,68255],[68331,68335],[68440,68447],[68472,68479],[68521,68527],[68858,68863],[69216,69246],[69405,69414],[69457,69460],[69573,69579],[69714,69733],[70113,70132],[71482,71483],[71914,71922],[72794,72812],[73664,73684],[93019,93025],[93824,93846],[119488,119507],[119520,119539],[119648,119672],[125127,125135],[126065,126123],[126125,126127],[126129,126132],[126209,126253],[126255,126269],[127232,127244]],z0=[[33,35],[37,39],42,44,[46,47],[58,59],[63,64],92,161,167,[182,183],191,894,903,[1370,1375],1417,1472,1475,1478,[1523,1524],[1545,1546],[1548,1549],1563,[1565,1567],[1642,1645],1748,[1792,1805],[2039,2041],[2096,2110],2142,[2404,2405],2416,2557,2678,2800,3191,3204,3572,3663,[3674,3675],[3844,3858],3860,3973,[4048,4052],[4057,4058],[4170,4175],4347,[4960,4968],5742,[5867,5869],[5941,5942],[6100,6102],[6104,6106],[6144,6149],[6151,6154],[6468,6469],[6686,6687],[6816,6822],[6824,6829],[7002,7008],[7037,7038],[7164,7167],[7227,7231],[7294,7295],[7360,7367],7379,[8214,8215],[8224,8231],[8240,8248],[8251,8254],[8257,8259],[8263,8273],8275,[8277,8286],[11513,11516],[11518,11519],11632,[11776,11777],[11782,11784],11787,[11790,11798],[11800,11801],11803,[11806,11807],[11818,11822],[11824,11833],[11836,11839],11841,[11843,11855],[11858,11860],[12289,12291],12349,12539,[42238,42239],[42509,42511],42611,42622,[42738,42743],[43124,43127],[43214,43215],[43256,43258],43260,[43310,43311],43359,[43457,43469],[43486,43487],[43612,43615],[43742,43743],[43760,43761],44011,[65040,65046],65049,65072,[65093,65094],[65097,65100],[65104,65106],[65108,65111],[65119,65121],65128,[65130,65131],[65281,65283],[65285,65287],65290,65292,[65294,65295],[65306,65307],[65311,65312],65340,65377,[65380,65381],[65792,65794],66463,66512,66927,67671,67871,67903,[68176,68184],68223,[68336,68342],[68409,68415],[68505,68508],[69461,69465],[69510,69513],[69703,69709],[69819,69820],[69822,69825],[69952,69955],[70004,70005],[70085,70088],70093,70107,[70109,70111],[70200,70205],70313,[70731,70735],[70746,70747],70749,70854,[71105,71127],[71233,71235],[71264,71276],71353,[71484,71486],71739,[72004,72006],72162,[72255,72262],[72346,72348],[72350,72354],[72448,72457],[72769,72773],[72816,72817],[73463,73464],[73539,73551],73727,[74864,74868],[77809,77810],[92782,92783],92917,[92983,92987],92996,[93847,93850],94178,113823,[121479,121483],[125278,125279]],W0=[166,169,174,176,1154,[1421,1422],[1550,1551],1758,1769,[1789,1790],2038,2554,2928,[3059,3064],3066,3199,3407,3449,[3841,3843],3859,[3861,3863],[3866,3871],3892,3894,3896,[4030,4037],[4039,4044],[4046,4047],[4053,4056],[4254,4255],[5008,5017],5741,6464,[6622,6655],[7009,7018],[7028,7036],[8448,8449],[8451,8454],[8456,8457],8468,[8470,8471],[8478,8483],8485,8487,8489,8494,[8506,8507],8522,[8524,8525],8527,[8586,8587],[8597,8601],[8604,8607],[8609,8610],[8612,8613],[8615,8621],[8623,8653],[8656,8657],8659,[8661,8691],[8960,8967],[8972,8991],[8994,9e3],[9003,9083],[9085,9114],[9140,9179],[9186,9254],[9280,9290],[9372,9449],[9472,9654],[9656,9664],[9666,9719],[9728,9838],[9840,10087],[10132,10175],[10240,10495],[11008,11055],[11077,11078],[11085,11123],[11126,11157],[11159,11263],[11493,11498],[11856,11857],[11904,11929],[11931,12019],[12032,12245],[12272,12283],12292,[12306,12307],12320,[12342,12343],[12350,12351],[12688,12689],[12694,12703],[12736,12771],[12800,12830],[12842,12871],12880,[12896,12927],[12938,12976],[12992,13311],[19904,19967],[42128,42182],[43048,43051],[43062,43063],43065,[43639,43641],[64832,64847],64975,[65021,65023],65508,65512,[65517,65518],[65532,65533],[65847,65855],[65913,65929],[65932,65934],[65936,65948],65952,[66e3,66044],[67703,67704],68296,71487,[73685,73692],[73697,73713],[92988,92991],92997,113820,[118608,118723],[118784,119029],[119040,119078],[119081,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119274],[119296,119361],119365,[119552,119638],[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121478],123215,126124,126254,[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127245,127405],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127994],[128e3,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994]],Y0=[8233],j0=[[57344,63743],[983040,1048573],[1048576,1114109]],U0=[[33,35],[37,42],[44,47],[58,59],[63,64],[91,93],95,123,125,161,167,171,[182,183],187,191,894,903,[1370,1375],[1417,1418],1470,1472,1475,1478,[1523,1524],[1545,1546],[1548,1549],1563,[1565,1567],[1642,1645],1748,[1792,1805],[2039,2041],[2096,2110],2142,[2404,2405],2416,2557,2678,2800,3191,3204,3572,3663,[3674,3675],[3844,3858],3860,[3898,3901],3973,[4048,4052],[4057,4058],[4170,4175],4347,[4960,4968],5120,5742,[5787,5788],[5867,5869],[5941,5942],[6100,6102],[6104,6106],[6144,6154],[6468,6469],[6686,6687],[6816,6822],[6824,6829],[7002,7008],[7037,7038],[7164,7167],[7227,7231],[7294,7295],[7360,7367],7379,[8208,8231],[8240,8259],[8261,8273],[8275,8286],[8317,8318],[8333,8334],[8968,8971],[9001,9002],[10088,10101],[10181,10182],[10214,10223],[10627,10648],[10712,10715],[10748,10749],[11513,11516],[11518,11519],11632,[11776,11822],[11824,11855],[11858,11869],[12289,12291],[12296,12305],[12308,12319],12336,12349,12448,12539,[42238,42239],[42509,42511],42611,42622,[42738,42743],[43124,43127],[43214,43215],[43256,43258],43260,[43310,43311],43359,[43457,43469],[43486,43487],[43612,43615],[43742,43743],[43760,43761],44011,[64830,64831],[65040,65049],[65072,65106],[65108,65121],65123,65128,[65130,65131],[65281,65283],[65285,65290],[65292,65295],[65306,65307],[65311,65312],[65339,65341],65343,65371,65373,[65375,65381],[65792,65794],66463,66512,66927,67671,67871,67903,[68176,68184],68223,[68336,68342],[68409,68415],[68505,68508],69293,[69461,69465],[69510,69513],[69703,69709],[69819,69820],[69822,69825],[69952,69955],[70004,70005],[70085,70088],70093,70107,[70109,70111],[70200,70205],70313,[70731,70735],[70746,70747],70749,70854,[71105,71127],[71233,71235],[71264,71276],71353,[71484,71486],71739,[72004,72006],72162,[72255,72262],[72346,72348],[72350,72354],[72448,72457],[72769,72773],[72816,72817],[73463,73464],[73539,73551],73727,[74864,74868],[77809,77810],[92782,92783],92917,[92983,92987],92996,[93847,93850],94178,113823,[121479,121483],[125278,125279]],V0=[32,160,5760,[8192,8202],[8232,8233],8239,8287,12288],G0=[32,160,5760,[8192,8202],8239,8287,12288],K0=[2307,2363,[2366,2368],[2377,2380],[2382,2383],[2434,2435],[2494,2496],[2503,2504],[2507,2508],2519,2563,[2622,2624],2691,[2750,2752],2761,[2763,2764],[2818,2819],2878,2880,[2887,2888],[2891,2892],2903,[3006,3007],[3009,3010],[3014,3016],[3018,3020],3031,[3073,3075],[3137,3140],[3202,3203],3262,[3264,3268],[3271,3272],[3274,3275],[3285,3286],3315,[3330,3331],[3390,3392],[3398,3400],[3402,3404],3415,[3458,3459],[3535,3537],[3544,3551],[3570,3571],[3902,3903],3967,[4139,4140],4145,4152,[4155,4156],[4182,4183],[4194,4196],[4199,4205],[4227,4228],[4231,4236],4239,[4250,4252],5909,5940,6070,[6078,6085],[6087,6088],[6435,6438],[6441,6443],[6448,6449],[6451,6456],[6681,6682],6741,6743,6753,[6755,6756],[6765,6770],6916,6965,6971,[6973,6977],[6979,6980],7042,7073,[7078,7079],7082,7143,[7146,7148],7150,[7154,7155],[7204,7211],[7220,7221],7393,7415,[12334,12335],[43043,43044],43047,[43136,43137],[43188,43203],[43346,43347],43395,[43444,43445],[43450,43451],[43454,43456],[43567,43568],[43571,43572],43597,43643,43645,43755,[43758,43759],43765,[44003,44004],[44006,44007],[44009,44010],44012,69632,69634,69762,[69808,69810],[69815,69816],69932,[69957,69958],70018,[70067,70069],[70079,70080],70094,[70188,70190],[70194,70195],70197,[70368,70370],[70402,70403],[70462,70463],[70465,70468],[70471,70472],[70475,70477],70487,[70498,70499],[70709,70711],[70720,70721],70725,[70832,70834],70841,[70843,70846],70849,[71087,71089],[71096,71099],71102,[71216,71218],[71227,71228],71230,71340,[71342,71343],71350,[71456,71457],71462,[71724,71726],71736,[71984,71989],[71991,71992],71997,72e3,72002,[72145,72147],[72156,72159],72164,72249,[72279,72280],72343,72751,72766,72873,72881,72884,[73098,73102],[73107,73108],73110,[73461,73462],73475,[73524,73525],[73534,73535],73537,[94033,94087],[94192,94193],[119141,119142],[119149,119154]],q0=[[55296,57343]],J0=[36,43,[60,62],94,96,124,126,[162,166],[168,169],172,[174,177],180,184,215,247,[706,709],[722,735],[741,747],749,[751,767],885,[900,901],1014,1154,[1421,1423],[1542,1544],1547,[1550,1551],1758,1769,[1789,1790],2038,[2046,2047],2184,[2546,2547],[2554,2555],2801,2928,[3059,3066],3199,3407,3449,3647,[3841,3843],3859,[3861,3863],[3866,3871],3892,3894,3896,[4030,4037],[4039,4044],[4046,4047],[4053,4056],[4254,4255],[5008,5017],5741,6107,6464,[6622,6655],[7009,7018],[7028,7036],8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],8260,8274,[8314,8316],[8330,8332],[8352,8384],[8448,8449],[8451,8454],[8456,8457],8468,[8470,8472],[8478,8483],8485,8487,8489,8494,[8506,8507],[8512,8516],[8522,8525],8527,[8586,8587],[8592,8967],[8972,9e3],[9003,9254],[9280,9290],[9372,9449],[9472,10087],[10132,10180],[10183,10213],[10224,10626],[10649,10711],[10716,10747],[10750,11123],[11126,11157],[11159,11263],[11493,11498],[11856,11857],[11904,11929],[11931,12019],[12032,12245],[12272,12283],12292,[12306,12307],12320,[12342,12343],[12350,12351],[12443,12444],[12688,12689],[12694,12703],[12736,12771],[12800,12830],[12842,12871],12880,[12896,12927],[12938,12976],[12992,13311],[19904,19967],[42128,42182],[42752,42774],[42784,42785],[42889,42890],[43048,43051],[43062,43065],[43639,43641],43867,[43882,43883],64297,[64434,64450],[64832,64847],64975,[65020,65023],65122,[65124,65126],65129,65284,65291,[65308,65310],65342,65344,65372,65374,[65504,65510],[65512,65518],[65532,65533],[65847,65855],[65913,65929],[65932,65934],[65936,65948],65952,[66e3,66044],[67703,67704],68296,71487,[73685,73713],[92988,92991],92997,113820,[118608,118723],[118784,119029],[119040,119078],[119081,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119274],[119296,119361],119365,[119552,119638],120513,120539,120571,120597,120629,120655,120687,120713,120745,120771,[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121478],123215,123647,126124,126128,126254,[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127245,127405],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994]],Z0=[453,456,459,498,[8072,8079],[8088,8095],[8104,8111],8124,8140,8188],Q0=[[888,889],[896,899],907,909,930,1328,[1367,1368],[1419,1420],1424,[1480,1487],[1515,1518],[1525,1535],1806,[1867,1868],[1970,1983],[2043,2044],[2094,2095],2111,[2140,2141],2143,[2155,2159],2191,[2194,2199],2436,[2445,2446],[2449,2450],2473,2481,[2483,2485],[2490,2491],[2501,2502],[2505,2506],[2511,2518],[2520,2523],2526,[2532,2533],[2559,2560],2564,[2571,2574],[2577,2578],2601,2609,2612,2615,[2618,2619],2621,[2627,2630],[2633,2634],[2638,2640],[2642,2648],2653,[2655,2661],[2679,2688],2692,2702,2706,2729,2737,2740,[2746,2747],2758,2762,[2766,2767],[2769,2783],[2788,2789],[2802,2808],2816,2820,[2829,2830],[2833,2834],2857,2865,2868,[2874,2875],[2885,2886],[2889,2890],[2894,2900],[2904,2907],2910,[2916,2917],[2936,2945],2948,[2955,2957],2961,[2966,2968],2971,2973,[2976,2978],[2981,2983],[2987,2989],[3002,3005],[3011,3013],3017,[3022,3023],[3025,3030],[3032,3045],[3067,3071],3085,3089,3113,[3130,3131],3141,3145,[3150,3156],3159,[3163,3164],[3166,3167],[3172,3173],[3184,3190],3213,3217,3241,3252,[3258,3259],3269,3273,[3278,3284],[3287,3292],3295,[3300,3301],3312,[3316,3327],3341,3345,3397,3401,[3408,3411],[3428,3429],3456,3460,[3479,3481],3506,3516,[3518,3519],[3527,3529],[3531,3534],3541,3543,[3552,3557],[3568,3569],[3573,3584],[3643,3646],[3676,3712],3715,3717,3723,3748,3750,[3774,3775],3781,3783,3791,[3802,3803],[3808,3839],3912,[3949,3952],3992,4029,4045,[4059,4095],4294,[4296,4300],[4302,4303],4681,[4686,4687],4695,4697,[4702,4703],4745,[4750,4751],4785,[4790,4791],4799,4801,[4806,4807],4823,4881,[4886,4887],[4955,4956],[4989,4991],[5018,5023],[5110,5111],[5118,5119],[5789,5791],[5881,5887],[5910,5918],[5943,5951],[5972,5983],5997,6001,[6004,6015],[6110,6111],[6122,6127],[6138,6143],[6170,6175],[6265,6271],[6315,6319],[6390,6399],6431,[6444,6447],[6460,6463],[6465,6467],[6510,6511],[6517,6527],[6572,6575],[6602,6607],[6619,6621],[6684,6685],6751,[6781,6782],[6794,6799],[6810,6815],[6830,6831],[6863,6911],[6989,6991],7039,[7156,7163],[7224,7226],[7242,7244],[7305,7311],[7355,7356],[7368,7375],[7419,7423],[7958,7959],[7966,7967],[8006,8007],[8014,8015],8024,8026,8028,8030,[8062,8063],8117,8133,[8148,8149],8156,[8176,8177],8181,8191,8293,[8306,8307],8335,[8349,8351],[8385,8399],[8433,8447],[8588,8591],[9255,9279],[9291,9311],[11124,11125],11158,[11508,11512],11558,[11560,11564],[11566,11567],[11624,11630],[11633,11646],[11671,11679],11687,11695,11703,11711,11719,11727,11735,11743,[11870,11903],11930,[12020,12031],[12246,12271],[12284,12287],12352,[12439,12440],[12544,12548],12592,12687,[12772,12783],12831,[42125,42127],[42183,42191],[42540,42559],[42744,42751],[42955,42959],42962,42964,[42970,42993],[43053,43055],[43066,43071],[43128,43135],[43206,43213],[43226,43231],[43348,43358],[43389,43391],43470,[43482,43485],43519,[43575,43583],[43598,43599],[43610,43611],[43715,43738],[43767,43776],[43783,43784],[43791,43792],[43799,43807],43815,43823,[43884,43887],[44014,44015],[44026,44031],[55204,55215],[55239,55242],[55292,55295],[64110,64111],[64218,64255],[64263,64274],[64280,64284],64311,64317,64319,64322,64325,[64451,64466],[64912,64913],[64968,64974],[64976,65007],[65050,65055],65107,65127,[65132,65135],65141,[65277,65278],65280,[65471,65473],[65480,65481],[65488,65489],[65496,65497],[65501,65503],65511,[65519,65528],[65534,65535],65548,65575,65595,65598,[65614,65615],[65630,65663],[65787,65791],[65795,65798],[65844,65846],65935,[65949,65951],[65953,65999],[66046,66175],[66205,66207],[66257,66271],[66300,66303],[66340,66348],[66379,66383],[66427,66431],66462,[66500,66503],[66518,66559],[66718,66719],[66730,66735],[66772,66775],[66812,66815],[66856,66863],[66916,66926],66939,66955,66963,66966,66978,66994,67002,[67005,67071],[67383,67391],[67414,67423],[67432,67455],67462,67505,[67515,67583],[67590,67591],67593,67638,[67641,67643],[67645,67646],67670,[67743,67750],[67760,67807],67827,[67830,67834],[67868,67870],[67898,67902],[67904,67967],[68024,68027],[68048,68049],68100,[68103,68107],68116,68120,[68150,68151],[68155,68158],[68169,68175],[68185,68191],[68256,68287],[68327,68330],[68343,68351],[68406,68408],[68438,68439],[68467,68471],[68498,68504],[68509,68520],[68528,68607],[68681,68735],[68787,68799],[68851,68857],[68904,68911],[68922,69215],69247,69290,[69294,69295],[69298,69372],[69416,69423],[69466,69487],[69514,69551],[69580,69599],[69623,69631],[69710,69713],[69750,69758],[69827,69836],[69838,69839],[69865,69871],[69882,69887],69941,[69960,69967],[70007,70015],70112,[70133,70143],70162,[70210,70271],70279,70281,70286,70302,[70314,70319],[70379,70383],[70394,70399],70404,[70413,70414],[70417,70418],70441,70449,70452,70458,[70469,70470],[70473,70474],[70478,70479],[70481,70486],[70488,70492],[70500,70501],[70509,70511],[70517,70655],70748,[70754,70783],[70856,70863],[70874,71039],[71094,71095],[71134,71167],[71237,71247],[71258,71263],[71277,71295],[71354,71359],[71370,71423],[71451,71452],[71468,71471],[71495,71679],[71740,71839],[71923,71934],[71943,71944],[71946,71947],71956,71959,71990,[71993,71994],[72007,72015],[72026,72095],[72104,72105],[72152,72153],[72165,72191],[72264,72271],[72355,72367],[72441,72447],[72458,72703],72713,72759,[72774,72783],[72813,72815],[72848,72849],72872,[72887,72959],72967,72970,[73015,73017],73019,73022,[73032,73039],[73050,73055],73062,73065,73103,73106,[73113,73119],[73130,73439],[73465,73471],73489,[73531,73533],[73562,73647],[73649,73663],[73714,73726],[74650,74751],74863,[74869,74879],[75076,77711],[77811,77823],[78934,82943],[83527,92159],[92729,92735],92767,[92778,92781],92863,[92874,92879],[92910,92911],[92918,92927],[92998,93007],93018,93026,[93048,93052],[93072,93759],[93851,93951],[94027,94030],[94088,94094],[94112,94175],[94181,94191],[94194,94207],[100344,100351],[101590,101631],[101641,110575],110580,110588,110591,[110883,110897],[110899,110927],[110931,110932],[110934,110947],[110952,110959],[111356,113663],[113771,113775],[113789,113791],[113801,113807],[113818,113819],[113828,118527],[118574,118575],[118599,118607],[118724,118783],[119030,119039],[119079,119080],[119275,119295],[119366,119487],[119508,119519],[119540,119551],[119639,119647],[119673,119807],119893,119965,[119968,119969],[119971,119972],[119975,119976],119981,119994,119996,120004,120070,[120075,120076],120085,120093,120122,120127,120133,[120135,120137],120145,[120486,120487],[120780,120781],[121484,121498],121504,[121520,122623],[122655,122660],[122667,122879],122887,[122905,122906],122914,122917,[122923,122927],[122990,123022],[123024,123135],[123181,123183],[123198,123199],[123210,123213],[123216,123535],[123567,123583],[123642,123646],[123648,124111],[124154,124895],124903,124908,124911,124927,[125125,125126],[125143,125183],[125260,125263],[125274,125277],[125280,126064],[126133,126208],[126270,126463],126468,126496,126499,[126501,126502],126504,126515,126520,126522,[126524,126529],[126531,126534],126536,126538,126540,126544,126547,[126549,126550],126552,126554,126556,126558,126560,126563,[126565,126566],126571,126579,126584,126589,126591,126602,[126620,126624],126628,126634,[126652,126703],[126706,126975],[127020,127023],[127124,127135],[127151,127152],127168,127184,[127222,127231],[127406,127461],[127491,127503],[127548,127551],[127561,127567],[127570,127583],[127590,127743],[128728,128731],[128749,128751],[128765,128767],[128887,128890],[128986,128991],[129004,129007],[129009,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129199],[129202,129279],[129620,129631],[129646,129647],[129661,129663],[129673,129679],129726,[129734,129741],[129756,129759],[129769,129775],[129785,129791],129939,[129995,130031],[130042,131071],[173792,173823],[177978,177983],[178206,178207],[183970,183983],[191457,194559],[195102,196607],[201547,201551],[205744,917504],[917506,917535],[917632,917759],[918e3,983039],[1048574,1048575],[1114110,1114111]],t3=[[65,90],[192,214],[216,222],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,452,455,458,461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,497,500,[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,880,882,886,895,902,[904,906],908,[910,911],[913,929],[931,939],975,[978,980],984,986,988,990,992,994,996,998,1e3,1002,1004,1006,1012,1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],[4256,4293],4295,4301,[5024,5109],[7312,7354],[7357,7359],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],[8120,8123],[8136,8139],[8152,8155],[8168,8172],[8184,8187],8450,8455,[8459,8461],[8464,8466],8469,[8473,8477],8484,8486,8488,[8490,8493],[8496,8499],[8510,8511],8517,8579,[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11390,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,42997,[65313,65338],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[68736,68786],[71840,71871],[93760,93791],[119808,119833],[119860,119885],[119912,119937],119964,[119966,119967],119970,[119973,119974],[119977,119980],[119982,119989],[120016,120041],[120068,120069],[120071,120074],[120077,120084],[120086,120092],[120120,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120172,120197],[120224,120249],[120276,120301],[120328,120353],[120380,120405],[120432,120457],[120488,120512],[120546,120570],[120604,120628],[120662,120686],[120720,120744],120778,[125184,125217]],e3=Object.freeze(Object.defineProperty({__proto__:null,Cased_Letter:p0,Close_Punctuation:m0,Connector_Punctuation:b0,Control:v0,Currency_Symbol:C0,Dash_Punctuation:S0,Decimal_Number:E0,Enclosing_Mark:y0,Final_Punctuation:T0,Format:F0,Initial_Punctuation:O0,Letter:w0,Letter_Number:B0,Line_Separator:A0,Lowercase_Letter:R0,Mark:x0,Math_Symbol:M0,Modifier_Letter:L0,Modifier_Symbol:I0,Nonspacing_Mark:P0,Number:$0,Open_Punctuation:k0,Other:N0,Other_Letter:H0,Other_Number:X0,Other_Punctuation:z0,Other_Symbol:W0,Paragraph_Separator:Y0,Private_Use:j0,Punctuation:U0,Separator:V0,Space_Separator:G0,Spacing_Mark:K0,Surrogate:q0,Symbol:J0,Titlecase_Letter:Z0,Unassigned:Q0,Uppercase_Letter:t3},Symbol.toStringTag,{value:"Module"})),n3=[1544,1547,1549,[1563,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],1969,[2144,2154],[2160,2190],[2208,2249],[64336,64450],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[68864,68899],[69424,69445],[69457,69465],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651]],s3=[[1536,1541],[1632,1641],[1643,1644],1757,[2192,2193],2274,[68912,68921],[69216,69246]],i3=[[0,8],[14,27],[127,132],[134,159],173,6158,[8203,8205],[8288,8292],[8298,8303],65279,[113824,113827],[119155,119162],917505,[917536,917631]],r3=[44,[46,47],58,160,1548,8239,8260,65104,65106,65109,65292,[65294,65295],65306],o3=[[48,57],[178,179],185,[1776,1785],8304,[8308,8313],[8320,8329],[9352,9371],[65296,65305],[66273,66299],[120782,120831],[127232,127242],[130032,130041]],a3=[43,45,[8314,8315],[8330,8331],8722,64297,[65122,65123],65291,65293],c3=[[35,37],[162,165],[176,177],1423,[1545,1546],1642,[2546,2547],2555,2801,3065,3647,6107,[8240,8244],[8352,8384],8494,8723,[43064,43065],65119,[65129,65130],[65283,65285],[65504,65505],[65509,65510],[73693,73696],123647],l3=[8296],u3=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,696],[699,705],[720,721],[736,740],750,[880,883],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1154],[1162,1327],[1329,1366],[1369,1417],[2307,2361],2363,[2365,2368],[2377,2380],[2382,2384],[2392,2401],[2404,2432],[2434,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2493,2496],[2503,2504],[2507,2508],2510,2519,[2524,2525],[2527,2529],[2534,2545],[2548,2554],[2556,2557],2563,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2622,2624],[2649,2652],2654,[2662,2671],[2674,2676],2678,2691,[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2749,2752],2761,[2763,2764],2768,[2784,2785],[2790,2800],2809,[2818,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2877,2878],2880,[2887,2888],[2891,2892],2903,[2908,2909],[2911,2913],[2918,2935],2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3007],[3009,3010],[3014,3016],[3018,3020],3024,3031,[3046,3058],[3073,3075],[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3137,3140],[3160,3162],3165,[3168,3169],[3174,3183],3191,[3199,3200],[3202,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3261,3268],[3270,3272],[3274,3275],[3285,3286],[3293,3294],[3296,3297],[3302,3311],[3313,3315],[3330,3340],[3342,3344],[3346,3386],[3389,3392],[3398,3400],[3402,3404],[3406,3407],[3412,3425],[3430,3455],[3458,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3535,3537],[3544,3551],[3558,3567],[3570,3572],[3585,3632],[3634,3635],[3648,3654],[3663,3675],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],3782,[3792,3801],[3804,3807],[3840,3863],[3866,3892],3894,3896,[3902,3911],[3913,3948],3967,3973,[3976,3980],[4030,4037],[4039,4044],[4046,4058],[4096,4140],4145,4152,[4155,4156],[4159,4183],[4186,4189],[4193,4208],[4213,4225],[4227,4228],[4231,4236],[4238,4252],[4254,4293],4295,4301,[4304,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4960,4988],[4992,5007],[5024,5109],[5112,5117],[5121,5759],[5761,5786],[5792,5880],[5888,5905],5909,[5919,5937],[5940,5942],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6070,[6078,6085],[6087,6088],[6100,6106],6108,[6112,6121],[6160,6169],[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6435,6438],[6441,6443],[6448,6449],[6451,6456],[6470,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6656,6678],[6681,6682],[6686,6741],6743,6753,[6755,6756],[6765,6770],[6784,6793],[6800,6809],[6816,6829],[6916,6963],6965,6971,[6973,6977],[6979,6988],[6992,7018],[7028,7038],[7042,7073],[7078,7079],7082,[7086,7141],7143,[7146,7148],7150,[7154,7155],[7164,7211],[7220,7221],[7227,7241],[7245,7304],[7312,7354],[7357,7367],7379,7393,[7401,7404],[7406,7411],[7413,7415],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8206,8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8505],[8508,8511],[8517,8521],[8526,8527],[8544,8584],[9014,9082],9109,[9372,9449],9900,[10240,10495],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],[11631,11632],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[12293,12295],[12321,12329],[12334,12335],[12337,12341],[12344,12348],[12353,12438],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12688,12735],[12784,12828],[12832,12879],[12896,12923],[12927,12976],[12992,13003],[13008,13174],[13179,13277],[13280,13310],[13312,19903],[19968,42124],[42192,42508],[42512,42539],[42560,42606],[42624,42653],[42656,42735],[42738,42743],[42786,42887],[42889,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43044],43047,[43056,43063],[43072,43123],[43136,43203],[43214,43225],[43250,43262],[43264,43301],[43310,43334],[43346,43347],[43359,43388],[43395,43442],[43444,43445],[43450,43451],[43454,43469],[43471,43481],[43486,43492],[43494,43518],[43520,43560],[43567,43568],[43571,43572],[43584,43586],[43588,43595],43597,[43600,43609],[43612,43643],[43645,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43755],[43758,43765],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43881],[43888,44004],[44006,44007],[44009,44012],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[55296,64109],[64112,64217],[64256,64262],[64275,64279],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],65792,65794,[65799,65843],[65847,65855],[65933,65934],[66e3,66044],[66176,66204],[66208,66256],[66304,66339],[66349,66378],[66384,66421],[66432,66461],[66463,66499],[66504,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],69632,[69634,69687],[69703,69709],[69734,69743],[69745,69746],69749,[69762,69810],[69815,69816],[69819,69825],69837,[69840,69864],[69872,69881],[69891,69926],69932,[69942,69959],[69968,70002],[70004,70006],[70018,70069],[70079,70088],[70093,70094],[70096,70111],[70113,70132],[70144,70161],[70163,70190],[70194,70195],70197,[70200,70205],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313],[70320,70366],[70368,70370],[70384,70393],[70402,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70461,70463],[70465,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70656,70711],[70720,70721],70725,[70727,70747],70749,[70751,70753],[70784,70834],70841,[70843,70846],70849,[70852,70855],[70864,70873],[71040,71089],[71096,71099],71102,[71105,71131],[71168,71218],[71227,71228],71230,[71233,71236],[71248,71257],[71296,71338],71340,[71342,71343],71350,[71352,71353],[71360,71369],[71424,71450],[71456,71457],71462,[71472,71494],[71680,71726],71736,71739,[71840,71922],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],71997,[71999,72002],[72004,72006],[72016,72025],[72096,72103],[72106,72147],[72156,72159],[72161,72164],72192,[72199,72200],[72203,72242],[72249,72250],[72255,72262],72272,[72279,72280],[72284,72329],72343,[72346,72354],[72368,72440],[72448,72457],[72704,72712],[72714,72751],[72766,72773],[72784,72812],[72816,72847],72873,72881,72884,[72960,72966],[72968,72969],[72971,73008],73030,[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73107,73108],73110,73112,[73120,73129],[73440,73458],[73461,73464],[73474,73488],[73490,73525],[73534,73535],73537,[73539,73561],73648,[73664,73684],[73727,74649],[74752,74862],[74864,74868],[74880,75075],[77712,77810],[77824,78911],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92782,92862],[92864,92873],[92880,92909],92917,[92928,92975],[92983,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071],[93760,93850],[93952,94026],[94032,94087],[94099,94111],[94176,94177],94179,[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],113820,113823,[118608,118723],[118784,119029],[119040,119078],[119081,119142],[119146,119154],[119171,119172],[119180,119209],[119214,119272],[119488,119507],[119520,119539],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120538],[120540,120596],[120598,120654],[120656,120712],[120714,120770],[120772,120779],[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121483],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],[123200,123209],[123214,123215],[123536,123565],[123584,123627],[123632,123641],[124112,124139],[124144,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[127248,127278],[127280,127337],[127344,127404],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743],[983040,1048573],[1048576,1114109]],h3=[8234],_3=[8294],d3=[8237],f3=[[768,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2306],2362,2364,[2369,2376],2381,[2385,2391],[2402,2403],2433,2492,[2497,2500],2509,[2530,2531],2558,[2561,2562],2620,[2625,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2690],2748,[2753,2757],[2759,2760],2765,[2786,2787],[2810,2815],2817,2876,2879,[2881,2884],2893,[2901,2902],[2914,2915],2946,3008,3021,3072,3076,3132,[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],3201,3260,[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],3405,[3426,3427],3457,3530,[3538,3540],3542,3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],4226,[4229,4230],4237,4253,[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],6086,[6089,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6434],[6439,6440],6450,[6457,6459],[6679,6680],6683,6742,[6744,6750],6752,6754,[6757,6764],[6771,6780],6783,[6832,6862],[6912,6915],6964,[6966,6970],6972,6978,[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],7142,[7144,7145],7149,[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7616,7679],[8400,8432],[11503,11505],11647,[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43045,43046],43052,[43204,43205],[43232,43249],43263,[43302,43309],[43335,43345],[43392,43394],43443,[43446,43449],[43452,43453],43493,[43561,43566],[43569,43570],[43573,43574],43587,43596,43644,43696,[43698,43700],[43703,43704],[43710,43711],43713,[43756,43757],43766,44005,44008,44013,64286,[65024,65039],[65056,65071],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],69633,[69688,69702],69744,[69747,69748],[69759,69761],[69811,69814],[69817,69818],69826,[69888,69890],[69927,69931],[69933,69940],70003,[70016,70017],[70070,70078],[70089,70092],70095,[70191,70193],70196,[70198,70199],70206,70209,70367,[70371,70378],[70400,70401],[70459,70460],70464,[70502,70508],[70512,70516],[70712,70719],[70722,70724],70726,70750,[70835,70840],70842,[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],71229,[71231,71232],71339,71341,[71344,71349],71351,[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[71995,71996],71998,72003,[72148,72151],[72154,72155],72160,[72193,72198],[72201,72202],[72243,72248],[72251,72254],72263,[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73104,73105],73109,73111,[73459,73460],[73472,73473],[73526,73530],73536,73538,78912,[78919,78933],[92912,92916],[92976,92982],94031,[94095,94098],94180,[113821,113822],[118528,118573],[118576,118598],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[917760,917999]],g3=[[33,34],[38,42],[59,64],[91,96],[123,126],161,[166,169],[171,172],[174,175],180,[182,184],[187,191],215,247,[697,698],[706,719],[722,735],[741,749],[751,767],[884,885],894,[900,901],903,1014,1418,[1421,1422],[1542,1543],[1550,1551],1758,1769,[2038,2041],[3059,3064],3066,[3192,3198],[3898,3901],[5008,5017],5120,[5787,5788],[6128,6137],[6144,6154],6464,[6468,6469],[6622,6655],8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[8208,8231],[8245,8259],[8261,8286],[8316,8318],[8332,8334],[8448,8449],[8451,8454],[8456,8457],8468,[8470,8472],[8478,8483],8485,8487,8489,[8506,8507],[8512,8516],[8522,8525],[8528,8543],[8585,8587],[8592,8721],[8724,9013],[9083,9108],[9110,9254],[9280,9290],[9312,9351],[9450,9899],[9901,10239],[10496,11123],[11126,11157],[11159,11263],[11493,11498],[11513,11519],[11776,11869],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12289,12292],[12296,12320],12336,[12342,12343],[12349,12351],[12443,12444],12448,12539,[12736,12771],[12829,12830],[12880,12895],[12924,12926],[12977,12991],[13004,13007],[13175,13178],[13278,13279],13311,[19904,19967],[42128,42182],[42509,42511],42611,[42622,42623],[42752,42785],42888,[43048,43051],[43124,43127],[43882,43883],[64830,64847],64975,[65021,65023],[65040,65049],[65072,65103],65105,65108,[65110,65118],[65120,65121],[65124,65126],65128,65131,[65281,65282],[65286,65290],[65307,65312],[65339,65344],[65371,65381],[65506,65508],[65512,65518],[65529,65533],65793,[65856,65932],[65936,65948],65952,67871,[68409,68415],[69714,69733],[71264,71276],[73685,73692],[73697,73713],94178,[119273,119274],[119296,119361],119365,[119552,119638],120539,120597,120655,120713,120771,[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127243,127247],127279,[127338,127343],127405,[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994]],D3=[10,13,[28,30],133,8233],p3=[8236],m3=[8297],b3=[1470,1472,1475,1478,[1488,1514],[1519,1524],[1984,2026],[2036,2037],2042,[2046,2069],2074,2084,2088,[2096,2110],[2112,2136],2142,8207,64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67872,67897],67903,[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],[68176,68184],[68192,68255],[68288,68324],[68331,68342],[68352,68405],[68416,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68863],[69248,69289],69293,[69296,69297],[69376,69415],[69488,69505],[69510,69513],[69552,69579],[69600,69622],[124928,125124],[125127,125135],[125184,125251],125259,[125264,125273],[125278,125279]],v3=[8235],C3=[8295],S3=[8238],E3=[9,11,31],y3=[12,32,5760,[8192,8202],8232,8287,12288],T3=Object.freeze(Object.defineProperty({__proto__:null,Arabic_Letter:n3,Arabic_Number:s3,Boundary_Neutral:i3,Common_Separator:r3,European_Number:o3,European_Separator:a3,European_Terminator:c3,First_Strong_Isolate:l3,Left_To_Right:u3,Left_To_Right_Embedding:h3,Left_To_Right_Isolate:_3,Left_To_Right_Override:d3,Nonspacing_Mark:f3,Other_Neutral:g3,Paragraph_Separator:D3,Pop_Directional_Format:p3,Pop_Directional_Isolate:m3,Right_To_Left:b3,Right_To_Left_Embedding:v3,Right_To_Left_Isolate:C3,Right_To_Left_Override:S3,Segment_Separator:E3,White_Space:y3},Symbol.toStringTag,{value:"Module"})),F3=[[125184,125259],[125264,125273],[125278,125279]],O3=[[71424,71450],[71453,71467],[71472,71494]],w3=[[82944,83526]],B3=[[1536,1540],[1542,1547],[1549,1562],[1564,1566],[1568,1599],[1601,1610],[1622,1647],[1649,1756],[1758,1791],[1872,1919],[2160,2190],[2192,2193],[2200,2273],[2275,2303],[64336,64450],[64467,64829],[64832,64911],[64914,64967],64975,[65008,65023],[65136,65140],[65142,65276],[69216,69246],[69373,69375],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705]],A3=[[1329,1366],[1369,1418],[1421,1423],[64275,64279]],R3=[[68352,68405],[68409,68415]],x3=[[6912,6988],[6992,7038]],M3=[[42656,42743],[92160,92728]],L3=[[92880,92909],[92912,92917]],I3=[[7104,7155],[7164,7167]],P3=[[2432,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2558]],$3=[[72704,72712],[72714,72758],[72760,72773],[72784,72812]],k3=[[746,747],[12549,12591],[12704,12735]],N3=[[69632,69709],[69714,69749],69759],H3=[[10240,10495]],X3=[[6656,6683],[6686,6687]],z3=[[5952,5971]],W3=[[5120,5759],[6320,6389],[72368,72383]],Y3=[[66208,66256]],j3=[[66864,66915],66927],U3=[[69888,69940],[69942,69959]],V3=[[43520,43574],[43584,43597],[43600,43609],[43612,43615]],G3=[[5024,5109],[5112,5117],[43888,43967]],K3=[[69552,69579]],q3=[[0,64],[91,96],[123,169],[171,185],[187,191],215,247,[697,735],[741,745],[748,767],884,894,901,903,1541,1548,1563,1567,1600,1757,2274,[2404,2405],3647,[4053,4056],4347,[5867,5869],[5941,5942],[6146,6147],6149,7379,7393,[7401,7404],[7406,7411],[7413,7415],7418,[8192,8203],[8206,8292],[8294,8304],[8308,8318],[8320,8334],[8352,8384],[8448,8485],[8487,8489],[8492,8497],[8499,8525],[8527,8543],[8585,8587],[8592,9254],[9280,9290],[9312,10239],[10496,11123],[11126,11157],[11159,11263],[11776,11869],[12272,12283],[12288,12292],12294,[12296,12320],[12336,12343],[12348,12351],[12443,12444],12448,[12539,12540],[12688,12703],[12736,12771],[12832,12895],[12927,13007],13055,[13144,13311],[19904,19967],[42752,42785],[42888,42890],[43056,43065],43310,43471,43867,[43882,43883],[64830,64831],[65040,65049],[65072,65106],[65108,65126],[65128,65131],65279,[65281,65312],[65339,65344],[65371,65381],65392,[65438,65439],[65504,65510],[65512,65518],[65529,65533],[65792,65794],[65799,65843],[65847,65855],[65936,65948],[66e3,66044],[66273,66299],[113824,113827],[118608,118723],[118784,119029],[119040,119078],[119081,119142],[119146,119162],[119171,119172],[119180,119209],[119214,119274],[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,120831],[126065,126132],[126209,126269],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127462,127487],[127489,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],917505,[917536,917631]],J3=[[994,1007],[11392,11507],[11513,11519]],Z3=[[73728,74649],[74752,74862],[74864,74868],[74880,75075]],Q3=[[67584,67589],67592,[67594,67637],[67639,67640],67644,67647],t8=[[77712,77810]],e8=[[1024,1156],[1159,1327],[7296,7304],7467,7544,[11744,11775],[42560,42655],[65070,65071],[122928,122989],123023],n8=[[66560,66639]],s8=[[2304,2384],[2389,2403],[2406,2431],[43232,43263],[72448,72457]],i8=[[71936,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72006],[72016,72025]],r8=[[71680,71739]],o8=[[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113820,113823]],a8=[[77824,78933]],c8=[[66816,66855]],l8=[[69600,69622]],u8=[[4608,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4988],[4992,5017],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[124896,124902],[124904,124907],[124909,124910],[124912,124926]],h8=[[4256,4293],4295,4301,[4304,4346],[4348,4351],[7312,7354],[7357,7359],[11520,11557],11559,11565],_8=[[11264,11359],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922]],d8=[[66352,66378]],f8=[[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70460,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516]],g8=[[880,883],[885,887],[890,893],895,900,902,[904,906],908,[910,929],[931,993],[1008,1023],[7462,7466],[7517,7521],[7526,7530],7615,[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],8486,43877,[65856,65934],65952,[119296,119365]],D8=[[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2801],[2809,2815]],p8=[[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129]],m8=[[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2678]],b8=[[11904,11929],[11931,12019],[12032,12245],12293,12295,[12321,12329],[12344,12347],[13312,19903],[19968,40959],[63744,64109],[64112,64217],[94178,94179],[94192,94193],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],v8=[[4352,4607],[12334,12335],[12593,12686],[12800,12830],[12896,12926],[43360,43388],[44032,55203],[55216,55238],[55243,55291],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500]],C8=[[68864,68903],[68912,68921]],S8=[[5920,5940]],E8=[[67808,67826],[67828,67829],[67835,67839]],y8=[[1425,1479],[1488,1514],[1519,1524],[64285,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335]],T8=[[12353,12438],[12445,12447],[110593,110879],110898,[110928,110930],127488],F8=[[67648,67669],[67671,67679]],O8=[[768,879],[1157,1158],[1611,1621],1648,[2385,2388],[6832,6862],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7616,7679],[8204,8205],[8400,8432],[12330,12333],[12441,12442],[65024,65039],[65056,65069],66045,66272,70459,[118528,118573],[118576,118598],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[917760,917999]],w8=[[68448,68466],[68472,68479]],B8=[[68416,68437],[68440,68447]],A8=[[43392,43469],[43472,43481],[43486,43487]],R8=[[69760,69826],69837],x8=[[3200,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315]],M8=[[12449,12538],[12541,12543],[12784,12799],[13008,13054],[13056,13143],[65382,65391],[65393,65437],[110576,110579],[110581,110587],[110589,110590],110592,[110880,110882],110933,[110948,110951]],L8=[[73472,73488],[73490,73530],[73534,73561]],I8=[[43264,43309],43311],P8=[[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],[68159,68168],[68176,68184]],$8=[94180,[101120,101589]],k8=[[6016,6109],[6112,6121],[6128,6137],[6624,6655]],N8=[[70144,70161],[70163,70209]],H8=[[70320,70378],[70384,70393]],X8=[[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807]],z8=[[65,90],[97,122],170,186,[192,214],[216,246],[248,696],[736,740],[7424,7461],[7468,7516],[7522,7525],[7531,7543],[7545,7614],[7680,7935],8305,8319,[8336,8348],[8490,8491],8498,8526,[8544,8584],[11360,11391],[42786,42887],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43007],[43824,43866],[43868,43876],[43878,43881],[64256,64262],[65313,65338],[65345,65370],[67456,67461],[67463,67504],[67506,67514],[122624,122654],[122661,122666]],W8=[[7168,7223],[7227,7241],[7245,7247]],Y8=[[6400,6430],[6432,6443],[6448,6459],6464,[6468,6479]],j8=[[67072,67382],[67392,67413],[67424,67431]],U8=[[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786]],V8=[[42192,42239],73648],G8=[[66176,66204]],K8=[[67872,67897],67903],q8=[[69968,70006]],J8=[[73440,73464]],Z8=[[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3407],[3412,3427],[3430,3455]],Q8=[[2112,2139],2142],t9=[[68288,68326],[68331,68342]],e9=[[72816,72847],[72850,72871],[72873,72886]],n9=[[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049]],s9=[[93760,93850]],i9=[[43744,43766],[43968,44013],[44016,44025]],r9=[[124928,125124],[125127,125142]],o9=[[68e3,68023],[68028,68047],[68050,68095]],a9=[[67968,67999]],c9=[[93952,94026],[94031,94087],[94095,94111]],l9=[[71168,71236],[71248,71257]],u9=[[6144,6145],6148,[6150,6169],[6176,6264],[6272,6314],[71264,71276]],h9=[[92736,92766],[92768,92777],[92782,92783]],_9=[[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313]],d9=[[4096,4255],[43488,43518],[43616,43647]],f9=[[67712,67742],[67751,67759]],g9=[[124112,124153]],D9=[[72096,72103],[72106,72151],[72154,72164]],p9=[[6528,6571],[6576,6601],[6608,6618],[6622,6623]],m9=[[70656,70747],[70749,70753]],b9=[[1984,2042],[2045,2047]],v9=[94177,[110960,111355]],C9=[[123136,123180],[123184,123197],[123200,123209],[123214,123215]],S9=[[5760,5788]],E9=[[7248,7295]],y9=[[68736,68786],[68800,68850],[68858,68863]],T9=[[66304,66339],[66349,66351]],F9=[[68224,68255]],O9=[[66384,66426]],w9=[[66464,66499],[66504,66517]],B9=[[69376,69415]],A9=[[68192,68223]],R9=[[68608,68680]],x9=[[69488,69513]],M9=[[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2935]],L9=[[66736,66771],[66776,66811]],I9=[[66688,66717],[66720,66729]],P9=[[92928,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071]],$9=[[67680,67711]],k9=[[72384,72440]],N9=[[43072,43127]],H9=[[67840,67867],67871],X9=[[68480,68497],[68505,68508],[68521,68527]],z9=[[43312,43347],43359],W9=[[5792,5866],[5870,5880]],Y9=[[2048,2093],[2096,2110]],j9=[[43136,43205],[43214,43225]],U9=[[70016,70111]],V9=[[66640,66687]],G9=[[71040,71093],[71096,71133]],K9=[[120832,121483],[121499,121503],[121505,121519]],q9=[[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3572],[70113,70132]],J9=[[69424,69465]],Z9=[[69840,69864],[69872,69881]],Q9=[[72272,72354]],t5=[[7040,7103],[7360,7367]],e5=[[43008,43052]],n5=[[1792,1805],[1807,1866],[1869,1871],[2144,2154]],s5=[[5888,5909],5919],i5=[[5984,5996],[5998,6e3],[6002,6003]],r5=[[6480,6509],[6512,6516]],o5=[[6688,6750],[6752,6780],[6783,6793],[6800,6809],[6816,6829]],a5=[[43648,43714],[43739,43743]],c5=[[71296,71353],[71360,71369]],l5=[[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3066],[73664,73713],73727],u5=[[92784,92862],[92864,92873]],h5=[94176,[94208,100343],[100352,101119],[101632,101640]],_5=[[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3191,3199]],d5=[[1920,1969]],f5=[[3585,3642],[3648,3675]],g5=[[3840,3911],[3913,3948],[3953,3991],[3993,4028],[4030,4044],[4046,4052],[4057,4058]],D5=[[11568,11623],[11631,11632],11647],p5=[[70784,70855],[70864,70873]],m5=[[123536,123566]],b5=[[66432,66461],66463],v5=[[42240,42539]],C5=[[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004]],S5=[[123584,123641],123647],E5=[[71840,71922],71935],y5=[[69248,69289],[69291,69293],[69296,69297]],T5=[[40960,42124],[42128,42182]],F5=[[72192,72263]],O5=Object.freeze(Object.defineProperty({__proto__:null,Adlam:F3,Ahom:O3,Anatolian_Hieroglyphs:w3,Arabic:B3,Armenian:A3,Avestan:R3,Balinese:x3,Bamum:M3,Bassa_Vah:L3,Batak:I3,Bengali:P3,Bhaiksuki:$3,Bopomofo:k3,Brahmi:N3,Braille:H3,Buginese:X3,Buhid:z3,Canadian_Aboriginal:W3,Carian:Y3,Caucasian_Albanian:j3,Chakma:U3,Cham:V3,Cherokee:G3,Chorasmian:K3,Common:q3,Coptic:J3,Cuneiform:Z3,Cypriot:Q3,Cypro_Minoan:t8,Cyrillic:e8,Deseret:n8,Devanagari:s8,Dives_Akuru:i8,Dogra:r8,Duployan:o8,Egyptian_Hieroglyphs:a8,Elbasan:c8,Elymaic:l8,Ethiopic:u8,Georgian:h8,Glagolitic:_8,Gothic:d8,Grantha:f8,Greek:g8,Gujarati:D8,Gunjala_Gondi:p8,Gurmukhi:m8,Han:b8,Hangul:v8,Hanifi_Rohingya:C8,Hanunoo:S8,Hatran:E8,Hebrew:y8,Hiragana:T8,Imperial_Aramaic:F8,Inherited:O8,Inscriptional_Pahlavi:w8,Inscriptional_Parthian:B8,Javanese:A8,Kaithi:R8,Kannada:x8,Katakana:M8,Kawi:L8,Kayah_Li:I8,Kharoshthi:P8,Khitan_Small_Script:$8,Khmer:k8,Khojki:N8,Khudawadi:H8,Lao:X8,Latin:z8,Lepcha:W8,Limbu:Y8,Linear_A:j8,Linear_B:U8,Lisu:V8,Lycian:G8,Lydian:K8,Mahajani:q8,Makasar:J8,Malayalam:Z8,Mandaic:Q8,Manichaean:t9,Marchen:e9,Masaram_Gondi:n9,Medefaidrin:s9,Meetei_Mayek:i9,Mende_Kikakui:r9,Meroitic_Cursive:o9,Meroitic_Hieroglyphs:a9,Miao:c9,Modi:l9,Mongolian:u9,Mro:h9,Multani:_9,Myanmar:d9,Nabataean:f9,Nag_Mundari:g9,Nandinagari:D9,New_Tai_Lue:p9,Newa:m9,Nko:b9,Nushu:v9,Nyiakeng_Puachue_Hmong:C9,Ogham:S9,Ol_Chiki:E9,Old_Hungarian:y9,Old_Italic:T9,Old_North_Arabian:F9,Old_Permic:O9,Old_Persian:w9,Old_Sogdian:B9,Old_South_Arabian:A9,Old_Turkic:R9,Old_Uyghur:x9,Oriya:M9,Osage:L9,Osmanya:I9,Pahawh_Hmong:P9,Palmyrene:$9,Pau_Cin_Hau:k9,Phags_Pa:N9,Phoenician:H9,Psalter_Pahlavi:X9,Rejang:z9,Runic:W9,Samaritan:Y9,Saurashtra:j9,Sharada:U9,Shavian:V9,Siddham:G9,SignWriting:K9,Sinhala:q9,Sogdian:J9,Sora_Sompeng:Z9,Soyombo:Q9,Sundanese:t5,Syloti_Nagri:e5,Syriac:n5,Tagalog:s5,Tagbanwa:i5,Tai_Le:r5,Tai_Tham:o5,Tai_Viet:a5,Takri:c5,Tamil:l5,Tangsa:u5,Tangut:h5,Telugu:_5,Thaana:d5,Thai:f5,Tibetan:g5,Tifinagh:D5,Tirhuta:p5,Toto:m5,Ugaritic:b5,Vai:v5,Vithkuqi:C5,Wancho:S5,Warang_Citi:E5,Yezidi:y5,Yi:T5,Zanabazar_Square:F5},Symbol.toStringTag,{value:"Module"})),w5=[1567,1600,[125184,125259],[125264,125273],[125278,125279]],B5=[[71424,71450],[71453,71467],[71472,71494]],A5=[[82944,83526]],R5=[[1536,1540],[1542,1756],[1758,1791],[1872,1919],[2160,2190],[2192,2193],[2200,2273],[2275,2303],[64336,64450],[64467,64911],[64914,64967],64975,[65008,65023],[65136,65140],[65142,65276],[66272,66299],[69216,69246],[69373,69375],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705]],x5=[[1329,1366],[1369,1418],[1421,1423],[64275,64279]],M5=[[68352,68405],[68409,68415]],L5=[[6912,6988],[6992,7038]],I5=[[42656,42743],[92160,92728]],P5=[[92880,92909],[92912,92917]],$5=[[7104,7155],[7164,7167]],k5=[[2385,2386],[2404,2405],[2432,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2558],7376,7378,[7381,7382],7384,7393,7402,7405,7410,[7413,7415],43249],N5=[[72704,72712],[72714,72758],[72760,72773],[72784,72812]],H5=[[746,747],[12289,12291],[12296,12305],[12307,12319],[12330,12333],12336,12343,12539,[12549,12591],[12704,12735],[65093,65094],[65377,65381]],X5=[[69632,69709],[69714,69749],69759],z5=[[10240,10495]],W5=[[6656,6683],[6686,6687],43471],Y5=[[5941,5942],[5952,5971]],j5=[[5120,5759],[6320,6389],[72368,72383]],U5=[[66208,66256]],V5=[[66864,66915],66927],G5=[[2534,2543],[4160,4169],[69888,69940],[69942,69959]],K5=[[43520,43574],[43584,43597],[43600,43609],[43612,43615]],q5=[[5024,5109],[5112,5117],[43888,43967]],J5=[[69552,69579]],Z5=[[0,64],[91,96],[123,169],[171,185],[187,191],215,247,[697,735],[741,745],[748,767],884,894,901,903,1541,1757,2274,3647,[4053,4056],[5867,5869],[8192,8203],[8206,8238],[8240,8292],[8294,8304],[8308,8318],[8320,8334],[8352,8384],[8448,8485],[8487,8489],[8492,8497],[8499,8525],[8527,8543],[8585,8587],[8592,9254],[9280,9290],[9312,10239],[10496,11123],[11126,11157],[11159,11263],[11776,11842],[11844,11869],[12272,12283],12288,12292,12306,12320,12342,[12872,12895],12927,[12977,12991],[13004,13007],[13169,13178],[13184,13279],13311,[19904,19967],[42760,42785],[42888,42890],43867,[43882,43883],[65040,65049],[65072,65092],[65095,65106],[65108,65126],[65128,65131],65279,[65281,65312],[65339,65344],[65371,65376],[65504,65510],[65512,65518],[65529,65533],[65936,65948],[66e3,66044],[118608,118723],[118784,119029],[119040,119078],[119081,119142],[119146,119162],[119171,119172],[119180,119209],[119214,119274],[119488,119507],[119520,119539],[119552,119638],[119666,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,120831],[126065,126132],[126209,126269],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127462,127487],[127489,127490],[127504,127547],[127552,127560],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],917505,[917536,917631]],Q5=[[994,1007],[11392,11507],[11513,11519],[66272,66299]],tn=[[73728,74649],[74752,74862],[74864,74868],[74880,75075]],en=[[65792,65794],[65799,65843],[65847,65855],[67584,67589],67592,[67594,67637],[67639,67640],67644,67647],nn=[[65792,65793],[77712,77810]],sn=[[1024,1327],[7296,7304],7467,7544,7672,[11744,11775],11843,[42560,42655],[65070,65071],[122928,122989],123023],rn=[[66560,66639]],on=[[2304,2386],[2389,2431],[7376,7414],[7416,7417],8432,[43056,43065],[43232,43263],[72448,72457]],an=[[71936,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72006],[72016,72025]],cn=[[2404,2415],[43056,43065],[71680,71739]],ln=[[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113820,113827]],un=[[77824,78933]],hn=[[66816,66855]],_n=[[69600,69622]],dn=[[4608,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4988],[4992,5017],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[124896,124902],[124904,124907],[124909,124910],[124912,124926]],fn=[[4256,4293],4295,4301,[4304,4351],[7312,7354],[7357,7359],[11520,11557],11559,11565],gn=[1156,1159,[11264,11359],11843,42607,[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922]],Dn=[[66352,66378]],pn=[[2385,2386],[2404,2405],[3046,3059],7376,[7378,7379],[7410,7412],[7416,7417],8432,[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70459,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516],[73680,73681],73683],mn=[834,837,[880,883],[885,887],[890,893],895,900,902,[904,906],908,[910,929],[931,993],[1008,1023],[7462,7466],[7517,7521],[7526,7530],[7615,7617],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],8486,43877,[65856,65934],65952,[119296,119365]],bn=[[2385,2386],[2404,2405],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2801],[2809,2815],[43056,43065]],vn=[[2404,2405],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129]],Cn=[[2385,2386],[2404,2405],[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2678],[43056,43065]],Sn=[[11904,11929],[11931,12019],[12032,12245],[12289,12291],[12293,12305],[12307,12319],[12321,12333],12336,[12343,12351],12539,[12688,12703],[12736,12771],[12832,12871],[12928,12976],[12992,13003],13055,[13144,13168],[13179,13183],[13280,13310],[13312,19903],[19968,40959],[42752,42759],[63744,64109],[64112,64217],[65093,65094],[65377,65381],[94178,94179],[94192,94193],[119648,119665],[127568,127569],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],En=[[4352,4607],[12289,12291],[12296,12305],[12307,12319],[12334,12336],12343,12539,[12593,12686],[12800,12830],[12896,12926],[43360,43388],[44032,55203],[55216,55238],[55243,55291],[65093,65094],[65377,65381],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500]],yn=[1548,1563,1567,1600,1748,[68864,68903],[68912,68921]],Tn=[[5920,5942]],Fn=[[67808,67826],[67828,67829],[67835,67839]],On=[[1425,1479],[1488,1514],[1519,1524],[64285,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335]],wn=[[12289,12291],[12296,12305],[12307,12319],[12336,12341],12343,[12348,12349],[12353,12438],[12441,12448],[12539,12540],[65093,65094],[65377,65381],65392,[65438,65439],[110593,110879],110898,[110928,110930],127488],Bn=[[67648,67669],[67671,67679]],An=[[768,833],[835,836],[838,866],[2387,2388],[6832,6862],[7618,7671],7673,[7675,7679],[8204,8205],[8400,8431],[65024,65039],[65056,65069],66045,[118528,118573],[118576,118598],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[917760,917999]],Rn=[[68448,68466],[68472,68479]],xn=[[68416,68437],[68440,68447]],Mn=[[43392,43469],[43471,43481],[43486,43487]],Ln=[[2406,2415],[43056,43065],[69760,69826],69837],In=[[2385,2386],[2404,2405],[3200,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315],7376,7378,7386,7410,7412,[43056,43061]],Pn=[[12289,12291],[12296,12305],[12307,12319],[12336,12341],12343,[12348,12349],[12441,12444],[12448,12543],[12784,12799],[13008,13054],[13056,13143],[65093,65094],[65377,65439],[110576,110579],[110581,110587],[110589,110590],110592,[110880,110882],110933,[110948,110951]],$n=[[73472,73488],[73490,73530],[73534,73561]],kn=[[43264,43311]],Nn=[[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],[68159,68168],[68176,68184]],Hn=[94180,[101120,101589]],Xn=[[6016,6109],[6112,6121],[6128,6137],[6624,6655]],zn=[[2790,2799],[43056,43065],[70144,70161],[70163,70209]],Wn=[[2404,2405],[43056,43065],[70320,70378],[70384,70393]],Yn=[[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807]],jn=[[65,90],[97,122],170,186,[192,214],[216,246],[248,696],[736,740],[867,879],[1157,1158],[2385,2386],4347,[7424,7461],[7468,7516],[7522,7525],[7531,7543],[7545,7614],[7680,7935],8239,8305,8319,[8336,8348],8432,[8490,8491],8498,8526,[8544,8584],[11360,11391],[42752,42759],[42786,42887],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43007],43310,[43824,43866],[43868,43876],[43878,43881],[64256,64262],[65313,65338],[65345,65370],[67456,67461],[67463,67504],[67506,67514],[122624,122654],[122661,122666]],Un=[[7168,7223],[7227,7241],[7245,7247]],Vn=[2405,[6400,6430],[6432,6443],[6448,6459],6464,[6468,6479]],Gn=[[65799,65843],[67072,67382],[67392,67413],[67424,67431]],Kn=[[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65792,65794],[65799,65843],[65847,65855]],qn=[[42192,42239],73648],Jn=[[66176,66204]],Zn=[[67872,67897],67903],Qn=[[2404,2415],[43056,43065],[69968,70006]],ts=[[73440,73464]],es=[[2385,2386],[2404,2405],[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3407],[3412,3427],[3430,3455],7386,[43056,43058]],ns=[1600,[2112,2139],2142],ss=[1600,[68288,68326],[68331,68342]],is=[[72816,72847],[72850,72871],[72873,72886]],rs=[[2404,2405],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049]],os=[[93760,93850]],as=[[43744,43766],[43968,44013],[44016,44025]],cs=[[124928,125124],[125127,125142]],ls=[[68e3,68023],[68028,68047],[68050,68095]],us=[[67968,67999]],hs=[[93952,94026],[94031,94087],[94095,94111]],_s=[[43056,43065],[71168,71236],[71248,71257]],ds=[[6144,6169],[6176,6264],[6272,6314],8239,[71264,71276]],fs=[[92736,92766],[92768,92777],[92782,92783]],gs=[[2662,2671],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313]],Ds=[[4096,4255],43310,[43488,43518],[43616,43647]],ps=[[67712,67742],[67751,67759]],ms=[[124112,124153]],bs=[[2404,2405],[3302,3311],7401,7410,7418,[43056,43061],[72096,72103],[72106,72151],[72154,72164]],vs=[[6528,6571],[6576,6601],[6608,6618],[6622,6623]],Cs=[[70656,70747],[70749,70753]],Ss=[1548,1563,1567,[1984,2042],[2045,2047],[64830,64831]],Es=[94177,[110960,111355]],ys=[[123136,123180],[123184,123197],[123200,123209],[123214,123215]],Ts=[[5760,5788]],Fs=[[7248,7295]],Os=[[68736,68786],[68800,68850],[68858,68863]],ws=[[66304,66339],[66349,66351]],Bs=[[68224,68255]],As=[1155,[66384,66426]],Rs=[[66464,66499],[66504,66517]],xs=[[69376,69415]],Ms=[[68192,68223]],Ls=[[68608,68680]],Is=[1600,68338,[69488,69513]],Ps=[[2385,2386],[2404,2405],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2935],7386,7410],$s=[[66736,66771],[66776,66811]],ks=[[66688,66717],[66720,66729]],Ns=[[92928,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071]],Hs=[[67680,67711]],Xs=[[72384,72440]],zs=[[6146,6147],6149,[43072,43127]],Ws=[[67840,67867],67871],Ys=[1600,[68480,68497],[68505,68508],[68521,68527]],js=[[43312,43347],43359],Us=[[5792,5866],[5870,5880]],Vs=[[2048,2093],[2096,2110]],Gs=[[43136,43205],[43214,43225]],Ks=[2385,7383,7385,[7388,7389],7392,[70016,70111]],qs=[[66640,66687]],Js=[[71040,71093],[71096,71133]],Zs=[[120832,121483],[121499,121503],[121505,121519]],Qs=[[2404,2405],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3572],[70113,70132]],ti=[1600,[69424,69465]],ei=[[69840,69864],[69872,69881]],ni=[[72272,72354]],si=[[7040,7103],[7360,7367]],ii=[[2404,2405],[2534,2543],[43008,43052]],ri=[1548,[1563,1564],1567,1600,[1611,1621],1648,[1792,1805],[1807,1866],[1869,1871],[2144,2154],7672,7674],oi=[[5888,5909],5919,[5941,5942]],ai=[[5941,5942],[5984,5996],[5998,6e3],[6002,6003]],ci=[[4160,4169],[6480,6509],[6512,6516]],li=[[6688,6750],[6752,6780],[6783,6793],[6800,6809],[6816,6829]],ui=[[43648,43714],[43739,43743]],hi=[[2404,2405],[43056,43065],[71296,71353],[71360,71369]],_i=[[2385,2386],[2404,2405],[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3066],7386,43251,70401,70403,[70459,70460],[73664,73713],73727],di=[[92784,92862],[92864,92873]],fi=[94176,[94208,100343],[100352,101119],[101632,101640]],gi=[[2385,2386],[2404,2405],[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3191,3199],7386,7410],Di=[1548,[1563,1564],1567,[1632,1641],[1920,1969],65010,65021],pi=[[3585,3642],[3648,3675]],mi=[[3840,3911],[3913,3948],[3953,3991],[3993,4028],[4030,4044],[4046,4052],[4057,4058]],bi=[[11568,11623],[11631,11632],11647],vi=[[2385,2386],[2404,2405],7410,[43056,43065],[70784,70855],[70864,70873]],Ci=[[123536,123566]],Si=[[66432,66461],66463],Ei=[[42240,42539]],yi=[[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004]],Ti=[[123584,123641],123647],Fi=[[71840,71922],71935],Oi=[1548,1563,1567,[1632,1641],[69248,69289],[69291,69293],[69296,69297]],wi=[[12289,12290],[12296,12305],[12308,12315],12539,[40960,42124],[42128,42182],[65377,65381]],Bi=[[72192,72263]],Ai=Object.freeze(Object.defineProperty({__proto__:null,Adlam:w5,Ahom:B5,Anatolian_Hieroglyphs:A5,Arabic:R5,Armenian:x5,Avestan:M5,Balinese:L5,Bamum:I5,Bassa_Vah:P5,Batak:$5,Bengali:k5,Bhaiksuki:N5,Bopomofo:H5,Brahmi:X5,Braille:z5,Buginese:W5,Buhid:Y5,Canadian_Aboriginal:j5,Carian:U5,Caucasian_Albanian:V5,Chakma:G5,Cham:K5,Cherokee:q5,Chorasmian:J5,Common:Z5,Coptic:Q5,Cuneiform:tn,Cypriot:en,Cypro_Minoan:nn,Cyrillic:sn,Deseret:rn,Devanagari:on,Dives_Akuru:an,Dogra:cn,Duployan:ln,Egyptian_Hieroglyphs:un,Elbasan:hn,Elymaic:_n,Ethiopic:dn,Georgian:fn,Glagolitic:gn,Gothic:Dn,Grantha:pn,Greek:mn,Gujarati:bn,Gunjala_Gondi:vn,Gurmukhi:Cn,Han:Sn,Hangul:En,Hanifi_Rohingya:yn,Hanunoo:Tn,Hatran:Fn,Hebrew:On,Hiragana:wn,Imperial_Aramaic:Bn,Inherited:An,Inscriptional_Pahlavi:Rn,Inscriptional_Parthian:xn,Javanese:Mn,Kaithi:Ln,Kannada:In,Katakana:Pn,Kawi:$n,Kayah_Li:kn,Kharoshthi:Nn,Khitan_Small_Script:Hn,Khmer:Xn,Khojki:zn,Khudawadi:Wn,Lao:Yn,Latin:jn,Lepcha:Un,Limbu:Vn,Linear_A:Gn,Linear_B:Kn,Lisu:qn,Lycian:Jn,Lydian:Zn,Mahajani:Qn,Makasar:ts,Malayalam:es,Mandaic:ns,Manichaean:ss,Marchen:is,Masaram_Gondi:rs,Medefaidrin:os,Meetei_Mayek:as,Mende_Kikakui:cs,Meroitic_Cursive:ls,Meroitic_Hieroglyphs:us,Miao:hs,Modi:_s,Mongolian:ds,Mro:fs,Multani:gs,Myanmar:Ds,Nabataean:ps,Nag_Mundari:ms,Nandinagari:bs,New_Tai_Lue:vs,Newa:Cs,Nko:Ss,Nushu:Es,Nyiakeng_Puachue_Hmong:ys,Ogham:Ts,Ol_Chiki:Fs,Old_Hungarian:Os,Old_Italic:ws,Old_North_Arabian:Bs,Old_Permic:As,Old_Persian:Rs,Old_Sogdian:xs,Old_South_Arabian:Ms,Old_Turkic:Ls,Old_Uyghur:Is,Oriya:Ps,Osage:$s,Osmanya:ks,Pahawh_Hmong:Ns,Palmyrene:Hs,Pau_Cin_Hau:Xs,Phags_Pa:zs,Phoenician:Ws,Psalter_Pahlavi:Ys,Rejang:js,Runic:Us,Samaritan:Vs,Saurashtra:Gs,Sharada:Ks,Shavian:qs,Siddham:Js,SignWriting:Zs,Sinhala:Qs,Sogdian:ti,Sora_Sompeng:ei,Soyombo:ni,Sundanese:si,Syloti_Nagri:ii,Syriac:ri,Tagalog:oi,Tagbanwa:ai,Tai_Le:ci,Tai_Tham:li,Tai_Viet:ui,Takri:hi,Tamil:_i,Tangsa:di,Tangut:fi,Telugu:gi,Thaana:Di,Thai:pi,Tibetan:mi,Tifinagh:bi,Tirhuta:vi,Toto:Ci,Ugaritic:Si,Vai:Ei,Vithkuqi:yi,Wancho:Ti,Warang_Citi:Fi,Yezidi:Oi,Yi:wi,Zanabazar_Square:Bi},Symbol.toStringTag,{value:"Module"})),Ri=[],xi=[],Mi=[],Li=[],Ii=Object.freeze(Object.defineProperty({__proto__:null,C:Ri,F:xi,S:Mi,T:Li},Symbol.toStringTag,{value:"Module"})),Pi=[[125184,125279]],$i=[[65792,65855]],ki=[[71424,71503]],Ni=[[128768,128895]],Hi=[[64256,64335]],Xi=[[82944,83583]],zi=[[119296,119375]],Wi=[[65856,65935]],Yi=[[65936,65999]],ji=[[1536,1791]],Ui=[[2208,2303]],Vi=[[126464,126719]],Gi=[[64336,65023]],Ki=[[65136,65279]],qi=[[1872,1919]],Ji=[[1328,1423]],Zi=[[8592,8703]],Qi=[[68352,68415]],tr=[[6912,7039]],er=[[42656,42751]],nr=[[92160,92735]],sr=[[0,127]],ir=[[92880,92927]],rr=[[7104,7167]],or=[[2432,2559]],ar=[[72704,72815]],cr=[[9600,9631]],lr=[[12544,12591]],ur=[[12704,12735]],hr=[[9472,9599]],_r=[[69632,69759]],dr=[[10240,10495]],fr=[[6656,6687]],gr=[[5952,5983]],Dr=[[118784,119039]],pr=[[13056,13311]],mr=[[65072,65103]],br=[[63744,64255]],vr=[[194560,195103]],Cr=[[11904,12031]],Sr=[[12736,12783]],Er=[[12288,12351]],yr=[[19968,40959]],Tr=[[13312,19903]],Fr=[[131072,173791]],Or=[[173824,177983]],wr=[[177984,178207]],Br=[[178208,183983]],Ar=[[183984,191471]],Rr=[[66208,66271]],xr=[[66864,66927]],Mr=[[69888,69967]],Lr=[[43520,43615]],Ir=[[5024,5119]],Pr=[[43888,43967]],$r=[[129536,129647]],kr=[[768,879]],Nr=[[6832,6911]],Hr=[[8400,8447]],Xr=[[7616,7679]],zr=[[65056,65071]],Wr=[[43056,43071]],Yr=[[9216,9279]],jr=[[11392,11519]],Ur=[[66272,66303]],Vr=[[119648,119679]],Gr=[[73728,74751]],Kr=[[74752,74879]],qr=[[8352,8399]],Jr=[[67584,67647]],Zr=[[1024,1279]],Qr=[[11744,11775]],to=[[42560,42655]],eo=[[7296,7311]],no=[[1280,1327]],so=[[66560,66639]],io=[[2304,2431]],ro=[[43232,43263]],oo=[[9984,10175]],ao=[[71680,71759]],co=[[127024,127135]],lo=[[113664,113823]],uo=[[74880,75087]],ho=[[77824,78895]],_o=[[66816,66863]],fo=[[128512,128591]],go=[[127232,127487]],Do=[[9312,9471]],po=[[12800,13055]],mo=[[127488,127743]],bo=[[4608,4991]],vo=[[11648,11743]],Co=[[43776,43823]],So=[[4992,5023]],Eo=[[8192,8303]],yo=[[9632,9727]],To=[[128896,129023]],Fo=[[4256,4351]],Oo=[[7312,7359]],wo=[[11520,11567]],Bo=[[11264,11359]],Ao=[[122880,122927]],Ro=[[66352,66383]],xo=[[70400,70527]],Mo=[[880,1023]],Lo=[[7936,8191]],Io=[[2688,2815]],Po=[[73056,73135]],$o=[[2560,2687]],ko=[[65280,65519]],No=[[12592,12687]],Ho=[[4352,4607]],Xo=[[43360,43391]],zo=[[55216,55295]],Wo=[[44032,55215]],Yo=[[68864,68927]],jo=[[5920,5951]],Uo=[[67808,67839]],Vo=[[1424,1535]],Go=[[56192,56319]],Ko=[[55296,56191]],qo=[[12352,12447]],Jo=[[592,687]],Zo=[[12272,12287]],Qo=[[94176,94207]],ta=[[67648,67679]],ea=[[126064,126143]],na=[[68448,68479]],sa=[[68416,68447]],ia=[[43392,43487]],ra=[[69760,69839]],oa=[[110848,110895]],aa=[[110592,110847]],ca=[[12688,12703]],la=[[12032,12255]],ua=[[3200,3327]],ha=[[12448,12543]],_a=[[12784,12799]],da=[[43264,43311]],fa=[[68096,68191]],ga=[[6016,6143]],Da=[[6624,6655]],pa=[[70144,70223]],ma=[[70320,70399]],ba=[[3712,3839]],va=[[128,255]],Ca=[[256,383]],Sa=[[7680,7935]],Ea=[[384,591]],ya=[[11360,11391]],Ta=[[42784,43007]],Fa=[[43824,43887]],Oa=[[7168,7247]],wa=[[8448,8527]],Ba=[[6400,6479]],Aa=[[67072,67455]],Ra=[[65664,65791]],xa=[[65536,65663]],Ma=[[42192,42239]],La=[[56320,57343]],Ia=[[66176,66207]],Pa=[[67872,67903]],$a=[[69968,70015]],ka=[[126976,127023]],Na=[[73440,73471]],Ha=[[3328,3455]],Xa=[[2112,2143]],za=[[68288,68351]],Wa=[[72816,72895]],Ya=[[72960,73055]],ja=[[119808,120831]],Ua=[[8704,8959]],Va=[[119520,119551]],Ga=[[93760,93855]],Ka=[[43968,44031]],qa=[[43744,43775]],Ja=[[124928,125151]],Za=[[68e3,68095]],Qa=[[67968,67999]],tc=[[93952,94111]],ec=[[10176,10223]],nc=[[10624,10751]],sc=[[9728,9983]],ic=[[11008,11263]],rc=[[127744,128511]],oc=[[8960,9215]],ac=[[71168,71263]],cc=[[42752,42783]],lc=[[6144,6319]],uc=[[71264,71295]],hc=[[92736,92783]],_c=[[70272,70319]],dc=[[119040,119295]],fc=[[4096,4255]],gc=[[43616,43647]],Dc=[[43488,43519]],pc=[[1984,2047]],mc=[[67712,67759]],bc=[[6528,6623]],vc=[[70656,70783]],Cc=[[8528,8591]],Sc=[[110960,111359]],Ec=[[5760,5791]],yc=[[7248,7295]],Tc=[[68736,68863]],Fc=[[66304,66351]],Oc=[[68224,68255]],wc=[[66384,66431]],Bc=[[66464,66527]],Ac=[[69376,69423]],Rc=[[68192,68223]],xc=[[68608,68687]],Mc=[[9280,9311]],Lc=[[2816,2943]],Ic=[[128592,128639]],Pc=[[66736,66815]],$c=[[66688,66735]],kc=[[92928,93071]],Nc=[[67680,67711]],Hc=[[72384,72447]],Xc=[[43072,43135]],zc=[[66e3,66047]],Wc=[[67840,67871]],Yc=[[7424,7551]],jc=[[7552,7615]],Uc=[[127136,127231]],Vc=[[57344,63743]],Gc=[[68480,68527]],Kc=[[43312,43359]],qc=[[69216,69247]],Jc=[[5792,5887]],Zc=[[2048,2111]],Qc=[[43136,43231]],tl=[[70016,70111]],el=[[66640,66687]],nl=[[113824,113839]],sl=[[71040,71167]],il=[[3456,3583]],rl=[[70112,70143]],ol=[[65104,65135]],al=[[69424,69487]],cl=[[69840,69887]],ll=[[72272,72367]],ul=[[688,767]],hl=[[65520,65535]],_l=[[7040,7103]],dl=[[7360,7375]],fl=[[8304,8351]],gl=[[10224,10239]],Dl=[[10496,10623]],pl=[[129024,129279]],ml=[[10752,11007]],bl=[[11776,11903]],vl=[[129280,129535]],Cl=[[983040,1048575]],Sl=[[1048576,1114111]],El=[[120832,121519]],yl=[[43008,43055]],Tl=[[1792,1871]],Fl=[[2144,2159]],Ol=[[5888,5919]],wl=[[5984,6015]],Bl=[[917504,917631]],Al=[[6480,6527]],Rl=[[6688,6831]],xl=[[43648,43743]],Ml=[[119552,119647]],Ll=[[71296,71375]],Il=[[2944,3071]],Pl=[[94208,100351]],$l=[[100352,101119]],kl=[[3072,3199]],Nl=[[1920,1983]],Hl=[[3584,3711]],Xl=[[3840,4095]],zl=[[11568,11647]],Wl=[[70784,70879]],Yl=[[128640,128767]],jl=[[66432,66463]],Ul=[[5120,5759]],Vl=[[6320,6399]],Gl=[[42240,42559]],Kl=[[65024,65039]],ql=[[917760,917999]],Jl=[[7376,7423]],Zl=[[65040,65055]],Ql=[[71840,71935]],tu=[[42128,42191]],eu=[[40960,42127]],nu=[[19904,19967]],su=[[72192,72271]],iu=[[2160,2207],[66928,67007],[67456,67519],[69248,69375],[69488,69631],[71936,72031],[72096,72191],[72368,72383],[72448,72543],[73472,73567],[73648,73727],[77712,77823],[78896,78943],[92784,92879],[101120,101759],[110576,110591],[110896,110959],[118528,118735],[119488,119519],[122624,122879],[122928,123023],[123136,123215],[123536,123647],[124112,124159],[124896,124927],[126208,126287],[129648,130047],[196608,205743]],ru=Object.freeze(Object.defineProperty({__proto__:null,Adlam:Pi,Aegean_Numbers:$i,Ahom:ki,Alchemical_Symbols:Ni,Alphabetic_Presentation_Forms:Hi,Anatolian_Hieroglyphs:Xi,Ancient_Greek_Musical_Notation:zi,Ancient_Greek_Numbers:Wi,Ancient_Symbols:Yi,Arabic:ji,Arabic_Extended_A:Ui,Arabic_Mathematical_Alphabetic_Symbols:Vi,Arabic_Presentation_Forms_A:Gi,Arabic_Presentation_Forms_B:Ki,Arabic_Supplement:qi,Armenian:Ji,Arrows:Zi,Avestan:Qi,Balinese:tr,Bamum:er,Bamum_Supplement:nr,Basic_Latin:sr,Bassa_Vah:ir,Batak:rr,Bengali:or,Bhaiksuki:ar,Block_Elements:cr,Bopomofo:lr,Bopomofo_Extended:ur,Box_Drawing:hr,Brahmi:_r,Braille_Patterns:dr,Buginese:fr,Buhid:gr,Byzantine_Musical_Symbols:Dr,CJK_Compatibility:pr,CJK_Compatibility_Forms:mr,CJK_Compatibility_Ideographs:br,CJK_Compatibility_Ideographs_Supplement:vr,CJK_Radicals_Supplement:Cr,CJK_Strokes:Sr,CJK_Symbols_And_Punctuation:Er,CJK_Unified_Ideographs:yr,CJK_Unified_Ideographs_Extension_A:Tr,CJK_Unified_Ideographs_Extension_B:Fr,CJK_Unified_Ideographs_Extension_C:Or,CJK_Unified_Ideographs_Extension_D:wr,CJK_Unified_Ideographs_Extension_E:Br,CJK_Unified_Ideographs_Extension_F:Ar,Carian:Rr,Caucasian_Albanian:xr,Chakma:Mr,Cham:Lr,Cherokee:Ir,Cherokee_Supplement:Pr,Chess_Symbols:$r,Combining_Diacritical_Marks:kr,Combining_Diacritical_Marks_Extended:Nr,Combining_Diacritical_Marks_For_Symbols:Hr,Combining_Diacritical_Marks_Supplement:Xr,Combining_Half_Marks:zr,Common_Indic_Number_Forms:Wr,Control_Pictures:Yr,Coptic:jr,Coptic_Epact_Numbers:Ur,Counting_Rod_Numerals:Vr,Cuneiform:Gr,Cuneiform_Numbers_And_Punctuation:Kr,Currency_Symbols:qr,Cypriot_Syllabary:Jr,Cyrillic:Zr,Cyrillic_Extended_A:Qr,Cyrillic_Extended_B:to,Cyrillic_Extended_C:eo,Cyrillic_Supplement:no,Deseret:so,Devanagari:io,Devanagari_Extended:ro,Dingbats:oo,Dogra:ao,Domino_Tiles:co,Duployan:lo,Early_Dynastic_Cuneiform:uo,Egyptian_Hieroglyphs:ho,Elbasan:_o,Emoticons:fo,Enclosed_Alphanumeric_Supplement:go,Enclosed_Alphanumerics:Do,Enclosed_CJK_Letters_And_Months:po,Enclosed_Ideographic_Supplement:mo,Ethiopic:bo,Ethiopic_Extended:vo,Ethiopic_Extended_A:Co,Ethiopic_Supplement:So,General_Punctuation:Eo,Geometric_Shapes:yo,Geometric_Shapes_Extended:To,Georgian:Fo,Georgian_Extended:Oo,Georgian_Supplement:wo,Glagolitic:Bo,Glagolitic_Supplement:Ao,Gothic:Ro,Grantha:xo,Greek_And_Coptic:Mo,Greek_Extended:Lo,Gujarati:Io,Gunjala_Gondi:Po,Gurmukhi:$o,Halfwidth_And_Fullwidth_Forms:ko,Hangul_Compatibility_Jamo:No,Hangul_Jamo:Ho,Hangul_Jamo_Extended_A:Xo,Hangul_Jamo_Extended_B:zo,Hangul_Syllables:Wo,Hanifi_Rohingya:Yo,Hanunoo:jo,Hatran:Uo,Hebrew:Vo,High_Private_Use_Surrogates:Go,High_Surrogates:Ko,Hiragana:qo,IPA_Extensions:Jo,Ideographic_Description_Characters:Zo,Ideographic_Symbols_And_Punctuation:Qo,Imperial_Aramaic:ta,Indic_Siyaq_Numbers:ea,Inscriptional_Pahlavi:na,Inscriptional_Parthian:sa,Javanese:ia,Kaithi:ra,Kana_Extended_A:oa,Kana_Supplement:aa,Kanbun:ca,Kangxi_Radicals:la,Kannada:ua,Katakana:ha,Katakana_Phonetic_Extensions:_a,Kayah_Li:da,Kharoshthi:fa,Khmer:ga,Khmer_Symbols:Da,Khojki:pa,Khudawadi:ma,Lao:ba,Latin_1_Supplement:va,Latin_Extended_A:Ca,Latin_Extended_Additional:Sa,Latin_Extended_B:Ea,Latin_Extended_C:ya,Latin_Extended_D:Ta,Latin_Extended_E:Fa,Lepcha:Oa,Letterlike_Symbols:wa,Limbu:Ba,Linear_A:Aa,Linear_B_Ideograms:Ra,Linear_B_Syllabary:xa,Lisu:Ma,Low_Surrogates:La,Lycian:Ia,Lydian:Pa,Mahajani:$a,Mahjong_Tiles:ka,Makasar:Na,Malayalam:Ha,Mandaic:Xa,Manichaean:za,Marchen:Wa,Masaram_Gondi:Ya,Mathematical_Alphanumeric_Symbols:ja,Mathematical_Operators:Ua,Mayan_Numerals:Va,Medefaidrin:Ga,Meetei_Mayek:Ka,Meetei_Mayek_Extensions:qa,Mende_Kikakui:Ja,Meroitic_Cursive:Za,Meroitic_Hieroglyphs:Qa,Miao:tc,Miscellaneous_Mathematical_Symbols_A:ec,Miscellaneous_Mathematical_Symbols_B:nc,Miscellaneous_Symbols:sc,Miscellaneous_Symbols_And_Arrows:ic,Miscellaneous_Symbols_And_Pictographs:rc,Miscellaneous_Technical:oc,Modi:ac,Modifier_Tone_Letters:cc,Mongolian:lc,Mongolian_Supplement:uc,Mro:hc,Multani:_c,Musical_Symbols:dc,Myanmar:fc,Myanmar_Extended_A:gc,Myanmar_Extended_B:Dc,NKo:pc,Nabataean:mc,New_Tai_Lue:bc,Newa:vc,Number_Forms:Cc,Nushu:Sc,Ogham:Ec,Ol_Chiki:yc,Old_Hungarian:Tc,Old_Italic:Fc,Old_North_Arabian:Oc,Old_Permic:wc,Old_Persian:Bc,Old_Sogdian:Ac,Old_South_Arabian:Rc,Old_Turkic:xc,Optical_Character_Recognition:Mc,Oriya:Lc,Ornamental_Dingbats:Ic,Osage:Pc,Osmanya:$c,Pahawh_Hmong:kc,Palmyrene:Nc,Pau_Cin_Hau:Hc,Phags_Pa:Xc,Phaistos_Disc:zc,Phoenician:Wc,Phonetic_Extensions:Yc,Phonetic_Extensions_Supplement:jc,Playing_Cards:Uc,Private_Use_Area:Vc,Psalter_Pahlavi:Gc,Rejang:Kc,Rumi_Numeral_Symbols:qc,Runic:Jc,Samaritan:Zc,Saurashtra:Qc,Sharada:tl,Shavian:el,Shorthand_Format_Controls:nl,Siddham:sl,Sinhala:il,Sinhala_Archaic_Numbers:rl,Small_Form_Variants:ol,Sogdian:al,Sora_Sompeng:cl,Soyombo:ll,Spacing_Modifier_Letters:ul,Specials:hl,Sundanese:_l,Sundanese_Supplement:dl,Superscripts_And_Subscripts:fl,Supplemental_Arrows_A:gl,Supplemental_Arrows_B:Dl,Supplemental_Arrows_C:pl,Supplemental_Mathematical_Operators:ml,Supplemental_Punctuation:bl,Supplemental_Symbols_And_Pictographs:vl,Supplementary_Private_Use_Area_A:Cl,Supplementary_Private_Use_Area_B:Sl,Sutton_SignWriting:El,Syloti_Nagri:yl,Syriac:Tl,Syriac_Supplement:Fl,Tagalog:Ol,Tagbanwa:wl,Tags:Bl,Tai_Le:Al,Tai_Tham:Rl,Tai_Viet:xl,Tai_Xuan_Jing_Symbols:Ml,Takri:Ll,Tamil:Il,Tangut:Pl,Tangut_Components:$l,Telugu:kl,Thaana:Nl,Thai:Hl,Tibetan:Xl,Tifinagh:zl,Tirhuta:Wl,Transport_And_Map_Symbols:Yl,Ugaritic:jl,Unified_Canadian_Aboriginal_Syllabics:Ul,Unified_Canadian_Aboriginal_Syllabics_Extended:Vl,Vai:Gl,Variation_Selectors:Kl,Variation_Selectors_Supplement:ql,Vedic_Extensions:Jl,Vertical_Forms:Zl,Warang_Citi:Ql,Yi_Radicals:tu,Yi_Syllables:eu,Yijing_Hexagram_Symbols:nu,Zanabazar_Square:su,undefined:iu},Symbol.toStringTag,{value:"Module"})),ou=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),au=[41,93,125,3899,3901,5788,8262,8318,8334,8969,8971,9002,10089,10091,10093,10095,10097,10099,10101,10182,10215,10217,10219,10221,10223,10628,10630,10632,10634,10636,10638,10640,10642,10644,10646,10648,10713,10715,10749,11811,11813,11815,11817,11862,11864,11866,11868,12297,12299,12301,12303,12305,12309,12311,12313,12315,65114,65116,65118,65289,65341,65373,65376,65379],cu=[[0,39],[42,90],92,[94,122],124,[126,3897],[3902,5786],[5789,8260],[8263,8316],[8319,8332],[8335,8967],[8972,9e3],[9003,10087],[10102,10180],[10183,10213],[10224,10626],[10649,10711],[10716,10747],[10750,11809],[11818,11860],[11869,12295],[12306,12307],[12316,65112],[65119,65287],[65290,65338],65340,[65342,65370],65372,65374,65377,[65380,1114111]],lu=[40,91,123,3898,3900,5787,8261,8317,8333,8968,8970,9001,10088,10090,10092,10094,10096,10098,10100,10181,10214,10216,10218,10220,10222,10627,10629,10631,10633,10635,10637,10639,10641,10643,10645,10647,10712,10714,10748,11810,11812,11814,11816,11861,11863,11865,11867,12296,12298,12300,12302,12304,12308,12310,12312,12314,65113,65115,65117,65288,65339,65371,65375,65378],uu=Object.freeze(Object.defineProperty({__proto__:null,Close:au,None:cu,Open:lu},Symbol.toStringTag,{value:"Module"})),hu=[35,38,42,[60,62],[64,90],[94,122],126,166,169,172,[174,175],181,[192,214],[216,246],[248,710],[718,719],[721,727],732,734,[736,767],[880,887],[890,893],895,[900,906],908,[910,929],[931,1154],[1162,1327],[1329,1366],[1369,1416],[1421,1422],1472,1475,[1523,1524],[1536,1544],[1550,1551],[1568,1610],[1645,1647],[1649,1747],1749,[1757,1758],[1765,1766],1769,[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],1969,[1994,2026],[2036,2039],2042,[2048,2069],2074,2084,2088,[2096,2110],[2112,2136],2142,[2144,2154],[2160,2190],[2192,2193],[2208,2249],2274,[2308,2361],2365,2384,[2392,2401],[2416,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],[2548,2552],2554,[2556,2557],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],2678,[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2800,2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],[2928,2935],2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3056,3064],3066,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],[3192,3200],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,[3406,3407],[3412,3414],[3416,3425],[3440,3448],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3572,3663,3840,3845,3859,[3861,3863],[3866,3871],[3882,3891],3894,3896,[3904,3911],[3913,3948],[3976,3980],[4032,4037],[4039,4044],[4046,4047],[4052,4056],[4172,4175],[4256,4293],4295,4301,[4304,4351],[4608,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],4960,[4962,4988],[4992,5017],[5024,5109],[5112,5117],[5121,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],6105,[6128,6137],[6144,6145],6151,6154,[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],6464,[6624,6678],[6686,6687],[6917,6963],[6981,6988],7004,[7009,7018],[7028,7036],[7043,7072],[7086,7087],[7098,7141],[7164,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7367],7379,[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8188],8190,8215,[8226,8227],8248,[8254,8259],[8266,8277],8284,[8289,8292],[8304,8305],[8309,8316],8320,[8325,8332],[8336,8348],[8448,8450],8452,[8454,8456],[8458,8466],[8468,8469],[8471,8480],[8483,8490],[8492,8531],[8534,8538],[8540,8541],8543,[8556,8559],[8570,8584],[8586,8587],[8602,8657],8659,[8661,8703],8705,[8708,8710],[8713,8714],[8716,8718],8720,8724,[8726,8729],[8731,8732],[8737,8738],8740,8742,8749,[8751,8755],[8760,8763],[8766,8775],[8777,8779],[8781,8785],[8787,8799],[8802,8803],[8808,8809],[8812,8813],[8816,8833],[8836,8837],[8840,8852],[8854,8856],[8858,8868],[8870,8894],[8896,8942],[8944,8967],[8972,8977],[8979,8985],[8988,9e3],[9003,9199],[9204,9254],[9280,9290],9471,[9548,9551],[9589,9599],[9616,9617],[9622,9631],9634,[9642,9649],[9652,9653],[9656,9659],[9662,9663],[9666,9669],[9673,9674],[9676,9677],[9682,9697],[9702,9710],[9712,9727],9732,[9735,9736],[9738,9741],[9744,9747],9753,[9760,9784],[9788,9791],9793,[9795,9823],9826,9830,9835,9838,[9840,9854],[9856,9885],[9888,9916],9934,9954,[9956,9959],[9989,9991],[9998,10070],[10072,10074],10081,[10085,10087],[10132,10180],[10183,10213],[10224,10626],[10649,10711],[10716,10747],[10750,11092],[11098,11123],[11126,11157],[11159,11502],[11506,11507],11517,[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],11798,[11802,11803],[11806,11807],11823,11826,[11829,11833],11839,11851,11853,[11856,11858],[19904,19967],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],42611,[42622,42653],[42656,42735],42738,[42752,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43048,43051],[43056,43063],43065,[43072,43123],[43138,43187],[43250,43259],[43261,43262],[43274,43301],[43312,43334],43359,[43396,43442],[43457,43462],[43466,43469],43471,[43486,43487],[43520,43560],[43584,43586],[43588,43595],43612,[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43883],[43888,44002],[64256,64262],[64275,64279],64297,[64336,64450],[64467,64829],[64832,64911],[64914,64967],64975,[65008,65019],[65021,65023],[65136,65140],[65142,65276],[65512,65518],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65799,65843],[65847,65934],[65936,65948],65952,[66e3,66044],[66176,66204],[66208,66256],[66273,66299],[66304,66339],[66349,66378],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67672,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67872,67897],67903,[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],68184,[68192,68255],[68288,68324],[68331,68335],[68352,68405],[68416,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68899],[69216,69246],[69248,69289],[69296,69297],[69376,69415],[69424,69445],[69457,69465],[69488,69505],[69510,69513],[69552,69579],[69600,69622],[69635,69687],[69705,69709],[69714,69733],[69745,69746],69749,[69763,69807],[69819,69821],69837,[69840,69864],[69891,69926],69956,69959,[69968,70002],70004,70006,[70019,70066],[70081,70084],70087,70093,70106,70108,[70113,70132],[70144,70161],[70163,70187],70202,70205,[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],70735,70749,[70751,70753],[70784,70831],[70852,70855],[71040,71086],[71110,71112],[71128,71131],[71168,71215],[71235,71236],[71296,71338],[71352,71353],[71680,71723],71739,[71840,71903],[71914,71922],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72256,72262,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72794,72812],[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],[73463,73464],73474,[73476,73488],[73490,73523],73648,[73664,73692],[73697,73713],[73728,74649],[74752,74862],[74880,75075],[77712,77810],[77824,78423],[78430,78465],[78467,78469],[78474,78712],[78716,78895],[78913,78918],[82944,83405],[83408,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92986,92995],92997,[93019,93025],[93027,93047],[93053,93071],[93760,93846],[93849,93850],[93952,94026],94032,[94099,94111],[101120,101589],[110576,110579],[110581,110587],[110589,110590],[113664,113770],[113776,113788],[113792,113800],[113808,113817],113820,[118608,118723],[118784,119029],[119040,119078],[119081,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119274],[119296,119361],119365,[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121478],121483,[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],[123214,123215],[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125127,125135],[125184,125251],125259,[126065,126123],[126125,126127],[126129,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705],[127278,127279],[127338,127340],[127900,127901],[127925,127926],127932,128160,128162,128164,128175,[128177,128178],[128256,128262],[128279,128292],[128306,128329],[128468,128475],[128500,128505],[128592,128629],[128636,128639],[128768,128883],[128896,128980],[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129280,129291],[129536,129619],[129792,129938],[129940,129994]],_u=[[167,168],170,[178,179],[182,186],[188,190],215,247,711,[713,715],717,720,[728,731],733,[8213,8214],[8224,8225],8251,8308,8319,[8321,8324],8453,8467,[8481,8482],8491,[8532,8533],8539,8542,[8544,8555],[8560,8569],8585,[8592,8601],8658,8660,8704,[8706,8707],[8711,8712],8715,8719,8721,8725,8730,[8733,8736],8739,8741,[8743,8748],8750,[8756,8759],[8764,8765],8776,8780,8786,[8800,8801],[8804,8807],[8810,8811],[8814,8815],[8834,8835],[8838,8839],8853,8857,8869,8895,8978,[9312,9470],[9472,9547],[9552,9588],[9600,9615],[9618,9621],[9632,9633],[9635,9641],[9650,9651],[9654,9655],[9660,9661],[9664,9665],[9670,9672],9675,[9678,9681],[9698,9701],9711,[9733,9734],9737,[9742,9743],[9750,9751],9792,9794,[9824,9825],[9827,9829],9831,[9833,9834],[9836,9837],9839,[9886,9887],[9929,9932],9938,[9941,9943],[9946,9947],[9949,9950],9955,[9960,9961],[9963,9968],9974,[9979,9980],10071,[10102,10131],[11093,11097],[12872,12879],65533,[127232,127244],[127248,127277],[127280,127337],[127344,127404]],du=[9,124,173,1418,1470,[2404,2405],[3674,3675],3851,3892,3967,3973,[4030,4031],4050,[4170,4171],4961,5120,5760,[5867,5869],[5941,5942],[6100,6101],6104,6106,[6148,6149],[7002,7003],[7005,7008],[7037,7038],[7227,7231],[7294,7295],[8192,8198],[8200,8202],8208,[8210,8211],8231,8278,[8280,8283],[8285,8287],[11514,11516],11519,11632,[11790,11797],11799,11801,[11818,11821],[11824,11825],[11827,11828],[11836,11838],[11840,11841],[11843,11850],11852,[11854,11855],11869,12288,[42238,42239],42509,42511,[42739,42743],[43214,43215],[43310,43311],[43463,43465],[43613,43615],[43760,43761],44011,[65792,65794],66463,66512,67671,67871,[68176,68183],[68336,68341],[68409,68415],69293,[69703,69704],[69822,69825],[69952,69955],[70085,70086],70088,[70109,70111],[70200,70201],[70203,70204],70313,[70731,70734],[70746,70747],[71106,71107],[71113,71127],[71233,71234],[71484,71486],[72004,72006],[72257,72260],[72346,72348],[72353,72354],[72769,72773],[73539,73540],73727,[74864,74868],[92782,92783],92917,[92983,92985],92996,[93847,93848],113823,[121479,121482]],fu=[180,712,716,735,3191,3204,[3841,3844],[3846,3847],[3849,3850],[4048,4049],4051,6150,8189,[43124,43125],43260,70005,70107,71105,[71264,71276],72162,72255,72261,[72350,72352],[72448,72457],72816],gu=[8212,[11834,11835]],Du=[47],pu=[13],mu=[41,93],bu=[125,3899,3901,5788,8262,8318,8334,8969,8971,9002,10089,10091,10093,10095,10097,10099,10101,10182,10215,10217,10219,10221,10223,10628,10630,10632,10634,10636,10638,10640,10642,10644,10646,10648,10713,10715,10749,11811,11813,11815,11817,11862,11864,11866,11868,[12289,12290],12297,12299,12301,12303,12305,12309,12311,12313,12315,[12318,12319],64830,[65041,65042],65048,65078,65080,65082,65084,65086,65088,65090,65092,65096,65104,65106,65114,65116,65118,65289,65292,65294,65341,65373,[65376,65377],[65379,65380],[78427,78429],78466,78471,78473,[78714,78715],78904,78909,78911,83407],vu=[[0,8],[14,31],[127,132],[134,159],[768,846],[848,859],[867,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],1564,[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2307],[2362,2364],[2366,2383],[2385,2391],[2402,2403],[2433,2435],2492,[2494,2500],[2503,2504],[2507,2509],2519,[2530,2531],2558,[2561,2563],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2691],2748,[2750,2757],[2759,2761],[2763,2765],[2786,2787],[2810,2815],[2817,2819],2876,[2878,2884],[2887,2888],[2891,2893],[2901,2903],[2914,2915],2946,[3006,3010],[3014,3016],[3018,3021],3031,[3072,3076],3132,[3134,3140],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3203],3260,[3262,3268],[3270,3272],[3274,3277],[3285,3286],[3298,3299],3315,[3328,3331],[3387,3388],[3390,3396],[3398,3400],[3402,3405],3415,[3426,3427],[3457,3459],3530,[3535,3540],3542,[3544,3551],[3570,3571],[3864,3865],3893,3895,3897,[3902,3903],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4957,4959],[5906,5909],[5938,5940],[5970,5971],[6002,6003],[6155,6157],6159,[6277,6278],6313,[6432,6443],[6448,6459],[6679,6683],6783,[6832,6862],[6912,6916],[6964,6980],[7019,7027],[7040,7042],[7073,7085],[7142,7155],[7204,7223],[7376,7378],[7380,7400],7405,7412,[7415,7417],[7616,7628],[7630,7675],[7677,7679],8204,[8206,8207],[8234,8238],[8294,8303],[8400,8432],[11503,11505],11647,[11744,11775],[12330,12335],12341,[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43043,43047],43052,[43136,43137],[43188,43205],[43232,43249],43263,[43302,43309],[43335,43347],[43392,43395],[43443,43456],[43561,43574],43587,[43596,43597],[43755,43759],[43765,43766],[44003,44010],[44012,44013],64286,[65024,65039],[65056,65071],[65529,65531],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],[69632,69634],[69688,69702],69744,[69747,69748],[69759,69762],[69808,69818],69826,[69888,69890],[69927,69940],[69957,69958],70003,[70016,70018],[70067,70080],[70089,70092],[70094,70095],[70188,70199],70206,70209,[70367,70378],[70400,70403],[70459,70460],[70462,70468],[70471,70472],[70475,70477],70487,[70498,70499],[70502,70508],[70512,70516],[70709,70726],70750,[70832,70851],[71087,71093],[71096,71104],[71132,71133],[71216,71232],[71339,71351],[71724,71738],[71984,71989],[71991,71992],[71995,71998],72e3,[72002,72003],[72145,72151],[72154,72160],72164,[72193,72202],[72243,72249],[72251,72254],72263,[72273,72283],[72330,72345],[72751,72758],[72760,72767],[72850,72871],[72873,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73098,73102],[73104,73105],[73107,73111],[73459,73462],[73472,73473],73475,[73524,73530],[73534,73538],78912,[78919,78933],[92912,92916],[92976,92982],94031,[94033,94087],[94095,94098],[94192,94193],[113821,113822],[113824,113827],[118528,118573],[118576,118598],[119141,119145],[119149,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],917505,[917536,917631],[917760,917999]],Cu=[[3585,3642],[3648,3662],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3804,3807],[4096,4159],[4176,4239],[4250,4255],[6016,6099],6103,[6108,6109],[6480,6509],[6512,6516],[6528,6571],[6576,6601],6618,[6622,6623],[6688,6750],[6752,6780],[6816,6829],[43488,43503],[43514,43518],[43616,43714],[43739,43743],[71424,71450],[71453,71467],[71482,71483],[71487,71494]],Su=[12353,12355,12357,12359,12361,12387,12419,12421,12423,12430,[12437,12438],12449,12451,12453,12455,12457,12483,12515,12517,12519,12526,[12533,12534],12540,[12784,12799],[65383,65392],110898,[110928,110930],110933,[110948,110951]],Eu=[65532],yu=[9757,9977,[9994,9997],127877,[127938,127940],127943,[127946,127948],[128066,128067],[128070,128080],[128102,128120],128124,[128129,128131],[128133,128135],128143,128145,128170,[128372,128373],128378,128400,[128405,128406],[128581,128583],[128587,128591],128675,[128692,128694],128704,128716,129292,129295,[129304,129311],129318,[129328,129337],[129340,129342],129399,[129461,129462],[129464,129465],129467,[129485,129487],[129489,129501],[129731,129733],[129776,129784]],Tu=[[127995,127999]],Fu=[33,63,1478,1563,[1565,1567],1748,2041,[3853,3857],3860,[6146,6147],[6152,6153],[6468,6469],[10082,10083],11513,11518,11822,[11859,11860],42510,[43126,43127],[65045,65046],[65110,65111],65281,65311,[71108,71109],72817],Ou=[160,847,[860,866],3848,3852,3858,[4057,4058],6158,7629,7676,8199,8209,8239,[78896,78902],[78905,78907],94180],wu=[44032,44060,44088,44116,44144,44172,44200,44228,44256,44284,44312,44340,44368,44396,44424,44452,44480,44508,44536,44564,44592,44620,44648,44676,44704,44732,44760,44788,44816,44844,44872,44900,44928,44956,44984,45012,45040,45068,45096,45124,45152,45180,45208,45236,45264,45292,45320,45348,45376,45404,45432,45460,45488,45516,45544,45572,45600,45628,45656,45684,45712,45740,45768,45796,45824,45852,45880,45908,45936,45964,45992,46020,46048,46076,46104,46132,46160,46188,46216,46244,46272,46300,46328,46356,46384,46412,46440,46468,46496,46524,46552,46580,46608,46636,46664,46692,46720,46748,46776,46804,46832,46860,46888,46916,46944,46972,47e3,47028,47056,47084,47112,47140,47168,47196,47224,47252,47280,47308,47336,47364,47392,47420,47448,47476,47504,47532,47560,47588,47616,47644,47672,47700,47728,47756,47784,47812,47840,47868,47896,47924,47952,47980,48008,48036,48064,48092,48120,48148,48176,48204,48232,48260,48288,48316,48344,48372,48400,48428,48456,48484,48512,48540,48568,48596,48624,48652,48680,48708,48736,48764,48792,48820,48848,48876,48904,48932,48960,48988,49016,49044,49072,49100,49128,49156,49184,49212,49240,49268,49296,49324,49352,49380,49408,49436,49464,49492,49520,49548,49576,49604,49632,49660,49688,49716,49744,49772,49800,49828,49856,49884,49912,49940,49968,49996,50024,50052,50080,50108,50136,50164,50192,50220,50248,50276,50304,50332,50360,50388,50416,50444,50472,50500,50528,50556,50584,50612,50640,50668,50696,50724,50752,50780,50808,50836,50864,50892,50920,50948,50976,51004,51032,51060,51088,51116,51144,51172,51200,51228,51256,51284,51312,51340,51368,51396,51424,51452,51480,51508,51536,51564,51592,51620,51648,51676,51704,51732,51760,51788,51816,51844,51872,51900,51928,51956,51984,52012,52040,52068,52096,52124,52152,52180,52208,52236,52264,52292,52320,52348,52376,52404,52432,52460,52488,52516,52544,52572,52600,52628,52656,52684,52712,52740,52768,52796,52824,52852,52880,52908,52936,52964,52992,53020,53048,53076,53104,53132,53160,53188,53216,53244,53272,53300,53328,53356,53384,53412,53440,53468,53496,53524,53552,53580,53608,53636,53664,53692,53720,53748,53776,53804,53832,53860,53888,53916,53944,53972,54e3,54028,54056,54084,54112,54140,54168,54196,54224,54252,54280,54308,54336,54364,54392,54420,54448,54476,54504,54532,54560,54588,54616,54644,54672,54700,54728,54756,54784,54812,54840,54868,54896,54924,54952,54980,55008,55036,55064,55092,55120,55148,55176],Bu=[[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]],Au=[[1488,1514],[1519,1522],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335]],Ru=[45],xu=[[8986,8987],[9200,9203],[9728,9731],[9748,9749],9752,[9754,9756],[9758,9759],[9785,9787],9832,9855,[9917,9928],9933,[9935,9937],[9939,9940],[9944,9945],9948,[9951,9953],9962,[9969,9973],[9975,9976],9978,[9981,9988],[9992,9993],10084,[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12291,12292],[12294,12295],[12306,12307],[12320,12329],[12336,12340],[12342,12346],[12349,12351],12354,12356,12358,12360,[12362,12386],[12388,12418],12420,12422,[12424,12429],[12431,12436],12447,12450,12452,12454,12456,[12458,12482],[12484,12514],12516,12518,[12520,12525],[12527,12532],[12535,12538],12543,[12549,12591],[12593,12686],[12688,12771],[12800,12830],[12832,12871],[12880,19903],[19968,40980],[40982,42124],[42128,42182],[63744,64255],[65072,65076],[65093,65094],[65097,65103],65105,65112,[65119,65126],65128,65131,[65282,65283],[65286,65287],[65290,65291],65293,[65295,65305],[65308,65310],[65312,65338],65340,[65342,65370],65372,65374,65382,[65393,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65506,65508],[73541,73551],[94208,100343],[100352,101119],[101632,101640],[110592,110882],[110960,111355],[126976,127231],[127245,127247],[127341,127343],[127405,127461],[127488,127876],[127878,127899],[127902,127924],[127927,127931],[127933,127937],[127941,127942],[127944,127945],[127949,127994],[128e3,128065],[128068,128069],[128081,128101],[128121,128123],[128125,128128],128132,[128136,128142],128144,[128146,128159],128161,128163,[128165,128169],[128171,128174],128176,[128179,128255],[128263,128278],[128293,128305],[128330,128371],[128374,128377],[128379,128399],[128401,128404],[128407,128467],[128476,128499],[128506,128580],[128584,128586],[128640,128674],[128676,128691],[128695,128703],[128705,128715],[128717,128767],[128884,128895],[128981,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129279],[129293,129294],[129296,129303],[129312,129317],[129319,129327],[129338,129339],[129343,129398],[129400,129460],129463,129466,[129468,129484],129488,[129502,129535],[129620,129730],[129734,129775],[129785,129791],[130048,131069],[131072,196605],[196608,262141]],Mu=[44,46,[58,59],894,1417,[1548,1549],2040,8260,65040,[65043,65044]],Lu=[[8228,8230],8943,65049,68342],Iu=[[4352,4447],[43360,43388]],Pu=[[4520,4607],[55243,55291]],$u=[[4448,4519],[55216,55238]],ku=[10],Nu=[[11,12],[8232,8233]],Hu=[133],Xu=[6102,[8252,8253],[8263,8265],12293,12316,[12347,12348],[12443,12446],12448,12539,[12541,12542],40981,[65108,65109],[65306,65307],65381,[65438,65439],[94176,94179],[128633,128635]],zu=[[48,57],[1632,1641],[1643,1644],[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2662,2671],[2790,2799],[2918,2927],[3046,3055],[3174,3183],[3302,3311],[3430,3439],[3558,3567],[3664,3673],[3792,3801],[3872,3881],[4160,4169],[4240,4249],[6112,6121],[6160,6169],[6470,6479],[6608,6617],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],[42528,42537],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[66720,66729],[68912,68921],[69734,69743],[69872,69881],[69942,69951],[70096,70105],[70384,70393],[70736,70745],[70864,70873],[71248,71257],[71360,71369],[71472,71481],[71904,71913],[72016,72025],[72784,72793],[73040,73049],[73120,73129],[73552,73561],[92768,92777],[92864,92873],[93008,93017],[120782,120831],[123200,123209],[123632,123641],[124144,124153],[125264,125273],[130032,130041]],Wu=[40,91,123,161,191,3898,3900,5787,8218,8222,8261,8317,8333,8968,8970,9001,10088,10090,10092,10094,10096,10098,10100,10181,10214,10216,10218,10220,10222,10627,10629,10631,10633,10635,10637,10639,10641,10643,10645,10647,10712,10714,10748,11800,11810,11812,11814,11816,11842,11861,11863,11865,11867,12296,12298,12300,12302,12304,12308,12310,12312,12314,12317,64831,65047,65077,65079,65081,65083,65085,65087,65089,65091,65095,65113,65115,65117,65288,65339,65371,65375,65378,[78424,78426],78470,78472,78713,78903,78908,78910,83406,[125278,125279]],Yu=[37,162,176,[1545,1547],1642,[2546,2547],2553,3449,[8240,8247],8279,8359,8374,8379,8382,8384,8451,8457,43064,65020,65130,65285,65504,[73693,73696],126124,126128],ju=[36,43,92,[163,165],177,1423,[2046,2047],2555,2801,3065,3647,6107,[8352,8358],[8360,8373],[8375,8378],[8380,8381],8383,[8385,8399],8470,[8722,8723],65129,65284,65505,[65509,65510],123647],Uu=[34,39,171,187,[8216,8217],[8219,8221],8223,[8249,8250],[10075,10080],[11776,11789],[11804,11805],[11808,11809],[128630,128632]],Vu=[[127462,127487]],Gu=[32],Ku=[[55296,57343]],qu=[[888,889],[896,899],907,909,930,1328,[1367,1368],[1419,1420],1424,[1480,1487],[1515,1518],[1525,1535],1806,[1867,1868],[1970,1983],[2043,2044],[2094,2095],2111,[2140,2141],2143,[2155,2159],2191,[2194,2199],2436,[2445,2446],[2449,2450],2473,2481,[2483,2485],[2490,2491],[2501,2502],[2505,2506],[2511,2518],[2520,2523],2526,[2532,2533],[2559,2560],2564,[2571,2574],[2577,2578],2601,2609,2612,2615,[2618,2619],2621,[2627,2630],[2633,2634],[2638,2640],[2642,2648],2653,[2655,2661],[2679,2688],2692,2702,2706,2729,2737,2740,[2746,2747],2758,2762,[2766,2767],[2769,2783],[2788,2789],[2802,2808],2816,2820,[2829,2830],[2833,2834],2857,2865,2868,[2874,2875],[2885,2886],[2889,2890],[2894,2900],[2904,2907],2910,[2916,2917],[2936,2945],2948,[2955,2957],2961,[2966,2968],2971,2973,[2976,2978],[2981,2983],[2987,2989],[3002,3005],[3011,3013],3017,[3022,3023],[3025,3030],[3032,3045],[3067,3071],3085,3089,3113,[3130,3131],3141,3145,[3150,3156],3159,[3163,3164],[3166,3167],[3172,3173],[3184,3190],3213,3217,3241,3252,[3258,3259],3269,3273,[3278,3284],[3287,3292],3295,[3300,3301],3312,[3316,3327],3341,3345,3397,3401,[3408,3411],[3428,3429],3456,3460,[3479,3481],3506,3516,[3518,3519],[3527,3529],[3531,3534],3541,3543,[3552,3557],[3568,3569],[3573,3584],[3643,3646],[3676,3712],3715,3717,3723,3748,3750,[3774,3775],3781,3783,3791,[3802,3803],[3808,3839],3912,[3949,3952],3992,4029,4045,[4059,4095],4294,[4296,4300],[4302,4303],4681,[4686,4687],4695,4697,[4702,4703],4745,[4750,4751],4785,[4790,4791],4799,4801,[4806,4807],4823,4881,[4886,4887],[4955,4956],[4989,4991],[5018,5023],[5110,5111],[5118,5119],[5789,5791],[5881,5887],[5910,5918],[5943,5951],[5972,5983],5997,6001,[6004,6015],[6110,6111],[6122,6127],[6138,6143],[6170,6175],[6265,6271],[6315,6319],[6390,6399],6431,[6444,6447],[6460,6463],[6465,6467],[6510,6511],[6517,6527],[6572,6575],[6602,6607],[6619,6621],[6684,6685],6751,[6781,6782],[6794,6799],[6810,6815],[6830,6831],[6863,6911],[6989,6991],7039,[7156,7163],[7224,7226],[7242,7244],[7305,7311],[7355,7356],[7368,7375],[7419,7423],[7958,7959],[7966,7967],[8006,8007],[8014,8015],8024,8026,8028,8030,[8062,8063],8117,8133,[8148,8149],8156,[8176,8177],8181,8191,8293,[8306,8307],8335,[8349,8351],[8433,8447],[8588,8591],[9255,9279],[9291,9311],[11124,11125],11158,[11508,11512],11558,[11560,11564],[11566,11567],[11624,11630],[11633,11646],[11671,11679],11687,11695,11703,11711,11719,11727,11735,11743,[11870,11903],11930,[12020,12031],[12246,12271],[12284,12287],12352,[12439,12440],[12544,12548],12592,12687,[12772,12783],12831,[42125,42127],[42183,42191],[42540,42559],[42744,42751],[42955,42959],42962,42964,[42970,42993],[43053,43055],[43066,43071],[43128,43135],[43206,43213],[43226,43231],[43348,43358],[43389,43391],43470,[43482,43485],43519,[43575,43583],[43598,43599],[43610,43611],[43715,43738],[43767,43776],[43783,43784],[43791,43792],[43799,43807],43815,43823,[43884,43887],[44014,44015],[44026,44031],[55204,55215],[55239,55242],[55292,55295],[57344,63743],[64263,64274],[64280,64284],64311,64317,64319,64322,64325,[64451,64466],[64912,64913],[64968,64974],[64976,65007],[65050,65055],65107,65127,[65132,65135],65141,[65277,65278],65280,[65471,65473],[65480,65481],[65488,65489],[65496,65497],[65501,65503],65511,[65519,65528],[65534,65535],65548,65575,65595,65598,[65614,65615],[65630,65663],[65787,65791],[65795,65798],[65844,65846],65935,[65949,65951],[65953,65999],[66046,66175],[66205,66207],[66257,66271],[66300,66303],[66340,66348],[66379,66383],[66427,66431],66462,[66500,66503],[66518,66559],[66718,66719],[66730,66735],[66772,66775],[66812,66815],[66856,66863],[66916,66926],66939,66955,66963,66966,66978,66994,67002,[67005,67071],[67383,67391],[67414,67423],[67432,67455],67462,67505,[67515,67583],[67590,67591],67593,67638,[67641,67643],[67645,67646],67670,[67743,67750],[67760,67807],67827,[67830,67834],[67868,67870],[67898,67902],[67904,67967],[68024,68027],[68048,68049],68100,[68103,68107],68116,68120,[68150,68151],[68155,68158],[68169,68175],[68185,68191],[68256,68287],[68327,68330],[68343,68351],[68406,68408],[68438,68439],[68467,68471],[68498,68504],[68509,68520],[68528,68607],[68681,68735],[68787,68799],[68851,68857],[68904,68911],[68922,69215],69247,69290,[69294,69295],[69298,69372],[69416,69423],[69466,69487],[69514,69551],[69580,69599],[69623,69631],[69710,69713],[69750,69758],[69827,69836],[69838,69839],[69865,69871],[69882,69887],69941,[69960,69967],[70007,70015],70112,[70133,70143],70162,[70210,70271],70279,70281,70286,70302,[70314,70319],[70379,70383],[70394,70399],70404,[70413,70414],[70417,70418],70441,70449,70452,70458,[70469,70470],[70473,70474],[70478,70479],[70481,70486],[70488,70492],[70500,70501],[70509,70511],[70517,70655],70748,[70754,70783],[70856,70863],[70874,71039],[71094,71095],[71134,71167],[71237,71247],[71258,71263],[71277,71295],[71354,71359],[71370,71423],[71451,71452],[71468,71471],[71495,71679],[71740,71839],[71923,71934],[71943,71944],[71946,71947],71956,71959,71990,[71993,71994],[72007,72015],[72026,72095],[72104,72105],[72152,72153],[72165,72191],[72264,72271],[72355,72367],[72441,72447],[72458,72703],72713,72759,[72774,72783],[72813,72815],[72848,72849],72872,[72887,72959],72967,72970,[73015,73017],73019,73022,[73032,73039],[73050,73055],73062,73065,73103,73106,[73113,73119],[73130,73439],[73465,73471],73489,[73531,73533],[73562,73647],[73649,73663],[73714,73726],[74650,74751],74863,[74869,74879],[75076,77711],[77811,77823],[78934,82943],[83527,92159],[92729,92735],92767,[92778,92781],92863,[92874,92879],[92910,92911],[92918,92927],[92998,93007],93018,93026,[93048,93052],[93072,93759],[93851,93951],[94027,94030],[94088,94094],[94112,94175],[94181,94191],[94194,94207],[100344,100351],[101590,101631],[101641,110575],110580,110588,110591,[110883,110897],[110899,110927],[110931,110932],[110934,110947],[110952,110959],[111356,113663],[113771,113775],[113789,113791],[113801,113807],[113818,113819],[113828,118527],[118574,118575],[118599,118607],[118724,118783],[119030,119039],[119079,119080],[119275,119295],[119366,119487],[119508,119519],[119540,119551],[119639,119647],[119673,119807],119893,119965,[119968,119969],[119971,119972],[119975,119976],119981,119994,119996,120004,120070,[120075,120076],120085,120093,120122,120127,120133,[120135,120137],120145,[120486,120487],[120780,120781],[121484,121498],121504,[121520,122623],[122655,122660],[122667,122879],122887,[122905,122906],122914,122917,[122923,122927],[122990,123022],[123024,123135],[123181,123183],[123198,123199],[123210,123213],[123216,123535],[123567,123583],[123642,123646],[123648,124111],[124154,124895],124903,124908,124911,124927,[125125,125126],[125143,125183],[125260,125263],[125274,125277],[125280,126064],[126133,126208],[126270,126463],126468,126496,126499,[126501,126502],126504,126515,126520,126522,[126524,126529],[126531,126534],126536,126538,126540,126544,126547,[126549,126550],126552,126554,126556,126558,126560,126563,[126565,126566],126571,126579,126584,126589,126591,126602,[126620,126624],126628,126634,[126652,126703],[126706,126975],[131070,131071],[196606,196607],[262142,917504],[917506,917535],[917632,917759],[918e3,1114111]],Ju=[8288,65279],Zu=[8205],Qu=[8203],th=Object.freeze(Object.defineProperty({__proto__:null,Alphabetic:hu,Ambiguous:_u,Break_After:du,Break_Before:fu,Break_Both:gu,Break_Symbols:Du,Carriage_Return:pu,Close_Parenthesis:mu,Close_Punctuation:bu,Combining_Mark:vu,Complex_Context:Cu,Conditional_Japanese_Starter:Su,Contingent_Break:Eu,E_Base:yu,E_Modifier:Tu,Exclamation:Fu,Glue:Ou,H2:wu,H3:Bu,Hebrew_Letter:Au,Hyphen:Ru,Ideographic:xu,Infix_Numeric:Mu,Inseparable:Lu,JL:Iu,JT:Pu,JV:$u,Line_Feed:ku,Mandatory_Break:Nu,Next_Line:Hu,Nonstarter:Xu,Numeric:zu,Open_Punctuation:Wu,Postfix_Numeric:Yu,Prefix_Numeric:ju,Quotation:Uu,Regional_Indicator:Vu,Space:Gu,Surrogate:Ku,Unknown:qu,Word_Joiner:Ju,ZWJ:Zu,ZWSpace:Qu},Symbol.toStringTag,{value:"Module"})),eh=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,727],[734,767],[880,884],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],[1369,1372],1374,[1376,1416],1418,1523,[1568,1610],[1646,1647],[1649,1747],1749,[1765,1766],[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2036,2037],2042,[2048,2069],2074,2084,2088,[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2308,2361],2365,2384,[2392,2401],[2417,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3840,[3904,3911],[3913,3948],[3976,3980],[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6656,6678],[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8505],[8508,8511],[8517,8521],8526,[8544,8584],[9398,9449],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],11823,12293,[12347,12348],[12549,12591],[12593,12686],[12704,12735],[40960,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42623,42653],[42656,42735],[42760,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],43471,[43520,43560],[43584,43586],[43588,43595],[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43881],[43888,44002],[44032,55203],[55216,55238],[55243,55291],[64256,64262],[64275,64279],[64336,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65313,65338],[65345,65370],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],[66176,66204],[66208,66256],[66304,66335],[66349,66378],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71680,71723],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],94032,[94099,94111],[94176,94177],94179,[113664,113770],[113776,113788],[113792,113800],[113808,113817],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[127280,127305],[127312,127337],[127344,127369]],nh=[13],sh=[34],ih=[[768,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2307],[2362,2364],[2366,2383],[2385,2391],[2402,2403],[2433,2435],2492,[2494,2500],[2503,2504],[2507,2509],2519,[2530,2531],2558,[2561,2563],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2691],2748,[2750,2757],[2759,2761],[2763,2765],[2786,2787],[2810,2815],[2817,2819],2876,[2878,2884],[2887,2888],[2891,2893],[2901,2903],[2914,2915],2946,[3006,3010],[3014,3016],[3018,3021],3031,[3072,3076],3132,[3134,3140],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3203],3260,[3262,3268],[3270,3272],[3274,3277],[3285,3286],[3298,3299],3315,[3328,3331],[3387,3388],[3390,3396],[3398,3400],[3402,3405],3415,[3426,3427],[3457,3459],3530,[3535,3540],3542,[3544,3551],[3570,3571],3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3902,3903],[3953,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4139,4158],[4182,4185],[4190,4192],[4194,4196],[4199,4205],[4209,4212],[4226,4237],4239,[4250,4253],[4957,4959],[5906,5909],[5938,5940],[5970,5971],[6002,6003],[6068,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6443],[6448,6459],[6679,6683],[6741,6750],[6752,6780],6783,[6832,6862],[6912,6916],[6964,6980],[7019,7027],[7040,7042],[7073,7085],[7142,7155],[7204,7223],[7376,7378],[7380,7400],7405,7412,[7415,7417],[7616,7679],8204,[8400,8432],[11503,11505],11647,[11744,11775],[12330,12335],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43043,43047],43052,[43136,43137],[43188,43205],[43232,43249],43263,[43302,43309],[43335,43347],[43392,43395],[43443,43456],43493,[43561,43574],43587,[43596,43597],[43643,43645],43696,[43698,43700],[43703,43704],[43710,43711],43713,[43755,43759],[43765,43766],[44003,44010],[44012,44013],64286,[65024,65039],[65056,65071],[65438,65439],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],[69632,69634],[69688,69702],69744,[69747,69748],[69759,69762],[69808,69818],69826,[69888,69890],[69927,69940],[69957,69958],70003,[70016,70018],[70067,70080],[70089,70092],[70094,70095],[70188,70199],70206,70209,[70367,70378],[70400,70403],[70459,70460],[70462,70468],[70471,70472],[70475,70477],70487,[70498,70499],[70502,70508],[70512,70516],[70709,70726],70750,[70832,70851],[71087,71093],[71096,71104],[71132,71133],[71216,71232],[71339,71351],[71453,71467],[71724,71738],[71984,71989],[71991,71992],[71995,71998],72e3,[72002,72003],[72145,72151],[72154,72160],72164,[72193,72202],[72243,72249],[72251,72254],72263,[72273,72283],[72330,72345],[72751,72758],[72760,72767],[72850,72871],[72873,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73098,73102],[73104,73105],[73107,73111],[73459,73462],[73472,73473],73475,[73524,73530],[73534,73538],78912,[78919,78933],[92912,92916],[92976,92982],94031,[94033,94087],[94095,94098],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,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[127995,127999],[917536,917631],[917760,917999]],rh=[95,8239,[8255,8256],8276,[65075,65076],[65101,65103],65343],oh=[173,[1536,1541],1564,1757,1807,[2192,2193],2274,6158,[8206,8207],[8234,8238],[8288,8292],[8294,8303],65279,[65529,65531],69821,69837,[78896,78911],[113824,113827],[119155,119162],917505],ah=[[1488,1514],[1519,1522],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335]],ch=[[12337,12341],[12443,12444],[12448,12538],[12540,12543],[12784,12799],[13008,13054],[13056,13143],[65382,65437],[110576,110579],[110581,110587],[110589,110590],110592,[110880,110882],110933,[110948,110951]],lh=[10],uh=[58,183,903,1375,1524,8231,65043,65109,65306],hh=[44,59,894,1417,[1548,1549],1644,2040,8260,65040,65044,65104,65108,65292,65307],_h=[46,[8216,8217],8228,65106,65287,65294],dh=[[11,12],133,[8232,8233]],fh=[[48,57],[1632,1641],1643,[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2662,2671],[2790,2799],[2918,2927],[3046,3055],[3174,3183],[3302,3311],[3430,3439],[3558,3567],[3664,3673],[3792,3801],[3872,3881],[4160,4169],[4240,4249],[6112,6121],[6160,6169],[6470,6479],[6608,6617],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],[42528,42537],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[65296,65305],[66720,66729],[68912,68921],[69734,69743],[69872,69881],[69942,69951],[70096,70105],[70384,70393],[70736,70745],[70864,70873],[71248,71257],[71360,71369],[71472,71481],[71904,71913],[72016,72025],[72784,72793],[73040,73049],[73120,73129],[73552,73561],[92768,92777],[92864,92873],[93008,93017],[120782,120831],[123200,123209],[123632,123641],[124144,124153],[125264,125273],[130032,130041]],gh=[[0,9],[14,31],33,[35,38],[40,43],45,47,[60,64],[91,94],96,[123,132],[134,159],[161,169],[171,172],[174,180],182,[184,185],[187,191],215,247,[728,733],885,[888,889],[896,901],907,909,930,1014,1154,1328,[1367,1368],1373,[1419,1424],1470,1472,1475,1478,[1480,1487],[1515,1518],[1525,1535],[1542,1547],[1550,1551],1563,[1565,1567],1642,1645,1748,1769,[1789,1790],[1792,1806],[1867,1868],[1970,1983],[2038,2039],2041,[2043,2044],[2046,2047],[2094,2111],[2140,2143],[2155,2159],2184,2191,[2194,2199],[2404,2405],2416,2436,[2445,2446],[2449,2450],2473,2481,[2483,2485],[2490,2491],[2501,2502],[2505,2506],[2511,2518],[2520,2523],2526,[2532,2533],[2546,2555],2557,[2559,2560],2564,[2571,2574],[2577,2578],2601,2609,2612,2615,[2618,2619],2621,[2627,2630],[2633,2634],[2638,2640],[2642,2648],2653,[2655,2661],[2678,2688],2692,2702,2706,2729,2737,2740,[2746,2747],2758,2762,[2766,2767],[2769,2783],[2788,2789],[2800,2808],2816,2820,[2829,2830],[2833,2834],2857,2865,2868,[2874,2875],[2885,2886],[2889,2890],[2894,2900],[2904,2907],2910,[2916,2917],2928,[2930,2945],2948,[2955,2957],2961,[2966,2968],2971,2973,[2976,2978],[2981,2983],[2987,2989],[3002,3005],[3011,3013],3017,[3022,3023],[3025,3030],[3032,3045],[3056,3071],3085,3089,3113,[3130,3131],3141,3145,[3150,3156],3159,[3163,3164],[3166,3167],[3172,3173],[3184,3199],3204,3213,3217,3241,3252,[3258,3259],3269,3273,[3278,3284],[3287,3292],3295,[3300,3301],3312,[3316,3327],3341,3345,3397,3401,[3407,3411],[3416,3422],[3428,3429],[3440,3449],3456,3460,[3479,3481],3506,3516,[3518,3519],[3527,3529],[3531,3534],3541,3543,[3552,3557],[3568,3569],[3572,3632],[3634,3635],[3643,3654],3663,[3674,3760],[3762,3763],[3773,3783],3791,[3802,3839],[3841,3863],[3866,3871],[3882,3892],3894,3896,[3898,3901],3912,[3949,3952],3973,3992,[4029,4037],[4039,4095],4130,4136,4159,[4170,4175],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4254,4255],4294,[4296,4300],[4302,4303],4347,4681,[4686,4687],4695,4697,[4702,4703],4745,[4750,4751],4785,[4790,4791],4799,4801,[4806,4807],4823,4881,[4886,4887],[4955,4956],[4960,4991],[5008,5023],[5110,5111],[5118,5120],[5741,5742],[5787,5791],[5867,5869],[5881,5887],[5910,5918],[5941,5951],[5972,5983],5997,6001,[6004,6015],[6100,6102],[6104,6107],[6110,6111],[6122,6154],[6170,6175],[6265,6271],[6315,6319],[6390,6399],6431,[6444,6447],[6460,6469],[6510,6511],[6517,6527],[6570,6575],[6602,6607],[6619,6655],[6684,6740],6751,[6781,6782],[6794,6799],[6810,6831],[6863,6911],[6989,6991],[7002,7018],[7028,7039],[7156,7167],[7224,7231],[7242,7244],[7294,7295],[7305,7311],[7355,7356],[7360,7375],7379,[7419,7423],[7958,7959],[7966,7967],[8006,8007],[8014,8015],8024,8026,8028,8030,[8062,8063],8117,8125,[8127,8129],8133,[8141,8143],[8148,8149],[8156,8159],[8173,8177],8181,[8189,8191],8199,[8208,8215],[8218,8227],[8229,8230],[8240,8254],[8257,8259],[8261,8275],[8277,8286],8293,8304,[8306,8318],[8320,8335],[8349,8399],[8433,8449],[8451,8454],[8456,8457],8468,[8470,8472],[8478,8483],8485,8487,8489,8494,[8506,8507],[8512,8516],[8522,8525],[8527,8543],[8585,9397],[9450,9756],[9758,9791],9793,[9795,9876],[9879,9976],[9978,9991],9993,[9998,10083],[10085,11263],[11493,11498],[11508,11519],11558,[11560,11564],[11566,11567],[11624,11630],[11632,11646],[11671,11679],11687,11695,11703,11711,11719,11727,11735,11743,[11776,11822],[11824,12287],[12289,12292],[12294,12329],12336,[12342,12346],[12349,12440],[12445,12447],12539,[12544,12548],12592,[12687,12703],[12736,12783],[12800,13007],13055,[13144,40959],[42125,42191],[42238,42239],[42509,42511],[42540,42559],42611,42622,[42738,42759],[42955,42959],42962,42964,[42970,42993],[43048,43051],[43053,43071],[43124,43135],[43206,43215],[43226,43231],[43256,43258],43260,[43310,43311],[43348,43359],[43389,43391],[43457,43470],[43482,43492],[43494,43503],[43514,43519],[43575,43583],[43598,43599],[43610,43642],[43646,43695],43697,[43701,43702],[43705,43709],43712,[43714,43743],[43760,43761],[43767,43776],[43783,43784],[43791,43792],[43799,43807],43815,43823,[43882,43887],44011,[44014,44015],[44026,44031],[55204,55215],[55239,55242],[55292,64047],[64107,64255],[64263,64274],[64280,64284],64297,64311,64317,64319,64322,64325,[64434,64466],[64830,64847],[64912,64913],[64968,65007],[65020,65023],[65041,65042],[65045,65055],[65072,65074],[65077,65100],65105,65107,[65110,65135],65141,[65277,65278],[65280,65286],[65288,65291],65293,65295,[65308,65312],[65339,65342],65344,[65371,65381],[65471,65473],[65480,65481],[65488,65489],[65496,65497],[65501,65528],[65532,65535],65548,65575,65595,65598,[65614,65615],[65630,65663],[65787,65855],[65909,66044],[66046,66175],[66205,66207],[66257,66271],[66273,66303],[66336,66348],[66379,66383],[66427,66431],[66462,66463],[66500,66503],66512,[66518,66559],[66718,66719],[66730,66735],[66772,66775],[66812,66815],[66856,66863],[66916,66927],66939,66955,66963,66966,66978,66994,67002,[67005,67071],[67383,67391],[67414,67423],[67432,67455],67462,67505,[67515,67583],[67590,67591],67593,67638,[67641,67643],[67645,67646],[67670,67679],[67703,67711],[67743,67807],67827,[67830,67839],[67862,67871],[67898,67967],[68024,68029],[68032,68095],68100,[68103,68107],68116,68120,[68150,68151],[68155,68158],[68160,68191],[68221,68223],[68253,68287],68296,[68327,68351],[68406,68415],[68438,68447],[68467,68479],[68498,68607],[68681,68735],[68787,68799],[68851,68863],[68904,68911],[68922,69247],69290,[69293,69295],[69298,69372],[69405,69414],[69416,69423],[69457,69487],[69510,69551],[69573,69599],[69623,69631],[69703,69733],[69750,69758],[69819,69820],[69822,69825],[69827,69836],[69838,69839],[69865,69871],[69882,69887],69941,[69952,69955],[69960,69967],[70004,70005],[70007,70015],[70085,70088],70093,70107,[70109,70143],70162,[70200,70205],[70210,70271],70279,70281,70286,70302,[70313,70319],[70379,70383],[70394,70399],70404,[70413,70414],[70417,70418],70441,70449,70452,70458,[70469,70470],[70473,70474],[70478,70479],[70481,70486],[70488,70492],[70500,70501],[70509,70511],[70517,70655],[70731,70735],[70746,70749],[70754,70783],70854,[70856,70863],[70874,71039],[71094,71095],[71105,71127],[71134,71167],[71233,71235],[71237,71247],[71258,71295],[71353,71359],[71370,71452],[71468,71471],[71482,71679],[71739,71839],[71914,71934],[71943,71944],[71946,71947],71956,71959,71990,[71993,71994],[72004,72015],[72026,72095],[72104,72105],[72152,72153],72162,[72165,72191],[72255,72262],[72264,72271],[72346,72348],[72350,72367],[72441,72703],72713,72759,[72769,72783],[72794,72817],[72848,72849],72872,[72887,72959],72967,72970,[73015,73017],73019,73022,[73032,73039],[73050,73055],73062,73065,73103,73106,[73113,73119],[73130,73439],[73463,73471],73489,[73531,73533],[73539,73551],[73562,73647],[73649,73727],[74650,74751],[74863,74879],[75076,77711],[77809,77823],[78934,82943],[83527,92159],[92729,92735],92767,[92778,92783],92863,[92874,92879],[92910,92911],[92917,92927],[92983,92991],[92996,93007],[93018,93026],[93048,93052],[93072,93759],[93824,93951],[94027,94030],[94088,94094],[94112,94175],94178,[94181,94191],[94194,110575],110580,110588,110591,[110593,110879],[110883,110932],[110934,110947],[110952,113663],[113771,113775],[113789,113791],[113801,113807],[113818,113820],113823,[113828,118527],[118574,118575],[118599,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119361],[119365,119807],119893,119965,[119968,119969],[119971,119972],[119975,119976],119981,119994,119996,120004,120070,[120075,120076],120085,120093,120122,120127,120133,[120135,120137],120145,[120486,120487],120513,120539,120571,120597,120629,120655,120687,120713,120745,120771,[120780,120781],[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121498],121504,[121520,122623],[122655,122660],[122667,122879],122887,[122905,122906],122914,122917,[122923,122927],[122990,123022],[123024,123135],[123181,123183],[123198,123199],[123210,123213],[123215,123535],[123567,123583],[123642,124111],[124154,124895],124903,124908,124911,124927,[125125,125135],[125143,125183],[125260,125263],[125274,126463],126468,126496,126499,[126501,126502],126504,126515,126520,126522,[126524,126529],[126531,126534],126536,126538,126540,126544,126547,[126549,126550],126552,126554,126556,126558,126560,126563,[126565,126566],126571,126579,126584,126589,126591,126602,[126620,126624],126628,126634,[126652,127279],[127306,127311],[127338,127343],[127370,127461],[127488,127751],[127753,127805],[127807,127858],[127860,127876],[127878,127890],[127892,127907],[127909,127911],[127913,127937],[127941,127942],[127944,127945],[127949,127978],127980,[127982,127994],[128e3,128065],[128068,128069],[128081,128101],[128106,128109],128111,[128121,128123],[128125,128128],128132,[128136,128138],[128140,128169],[128171,128186],[128189,128294],[128296,128299],[128301,128371],[128374,128377],[128379,128399],[128401,128404],[128407,128487],[128489,128580],[128584,128586],[128592,128639],[128641,128657],[128659,128674],[128676,128691],[128695,128703],[128705,128715],[128717,129303],[129312,129317],[129319,129327],[129338,129339],[129343,129488],[129502,130031],[130042,917504],[917506,917535],[917632,917759],[918e3,1114111]],Dh=[[127462,127487]],ph=[39],mh=[32,5760,[8192,8198],[8200,8202],8287,12288],bh=[8205],vh=Object.freeze(Object.defineProperty({__proto__:null,ALetter:eh,CR:nh,Double_Quote:sh,Extend:ih,ExtendNumLet:rh,Format:oh,Hebrew_Letter:ah,Katakana:ch,LF:lh,MidLetter:uh,MidNum:hh,MidNumLet:_h,Newline:dh,Numeric:fh,Other:gh,Regional_Indicator:Dh,Single_Quote:ph,WSegSpace:mh,ZWJ:bh},Symbol.toStringTag,{value:"Module"})),Ch=Object.freeze(Object.defineProperty({__proto__:null,Bidi_Class:T3,Bidi_Mirroring_Glyph:ou,Bidi_Paired_Bracket_Type:uu,Binary_Property:D0,Block:ru,Case_Folding:Ii,General_Category:e3,Line_Break:th,Script:O5,Script_Extensions:Ai,Word_Break:vh},Symbol.toStringTag,{value:"Module"}));function K7(r){const n=Object.keys(r);if(n.length===0)throw new Error("Expected at least one category, but received 0.");if(n.some(e=>{const s=r[e];return s===void 0||s.length===0}))throw new Error("Expected at least one sub category, but received 0.");return n.map(e=>{const i=r[e].map(o=>Sh(e,o));return new y1().union(...i)}).reduce((e,s)=>e.intersect(s))}function Sh(r,n){const e=Ch[r][n];return new y1().union(...e)}const L6=K7({Script:["Han","Katakana","Hiragana","Hangul","Bopomofo"],General_Category:["Other_Letter","Letter_Number","Other_Symbol","Modifier_Letter"]}),Eh=K7({Block:["CJK_Compatibility","CJK_Symbols_And_Punctuation","Vertical_Forms","CJK_Compatibility_Forms","Small_Form_Variants","Halfwidth_And_Fullwidth_Forms","Ideographic_Description_Characters","Kanbun","CJK_Strokes","Enclosed_CJK_Letters_And_Months"]}).subtract(L6),yh=M6(L6,Eh);function Th(){return M6(yh)}function Fh(){return M6(L6)}const p7=r=>({sbr:.5,sbo:r,spr:.5,spo:r});class B1{static get globalFontMeasureCache(){return this._globalFontMeasureCache}static setFontMeasureCache(n,t,e){this._globalFontMeasureCache.has(n)||this._globalFontMeasureCache.set(n,new Map);const s=this._globalFontMeasureCache.get(n);s&&s.set(t,e)}static clearFontMeasureCache(n){var e;const t=n.split("/");if(t.length===1){const s=t[0];this._globalFontMeasureCache.delete(s)}else if(t.length===2){const s=t[0],i=t[1];(e=this._globalFontMeasureCache.get(s))==null||e.delete(i)}else return!1;return!0}static getFontMeasureCache(n,t){var e;return(e=this._globalFontMeasureCache.get(n))==null?void 0:e.get(t)}static autoCleanFontMeasureCache(n=1e6){let t=0,e=!1;for(const s of this._globalFontMeasureCache){const[,i]=s;if(t+=i.size,t>n){e=!0;break}}if(e){let s=0;for(const i of this._globalFontMeasureCache){const[o,a]=i;if(s+=a.size,s>n/2){const c=s-n/2;this._clearMeasureCache(c,a);break}this._globalFontMeasureCache.delete(o)}return!0}return!1}static getBaselineOffsetInfo(n,t){if(this._fontDataMap.size===0)return p7(t);const e=n.split(",");for(let s of e){s=s.replace(/'/g,"");const i=this._fontDataMap.get(s);if(!i)continue;const{subscriptSizeRatio:o,subscriptOffset:a,superscriptSizeRatio:c,superscriptOffset:l}=i;return{sbr:o,sbo:a*t,spr:c,spo:l*t}}return p7(t)}static getTextSizeByDom(n,t){if(t in this._getTextHeightCache)return this._getTextHeightCache[t];let e=document.getElementById("universheetTextSizeTest");const s="float:left;white-space:nowrap;visibility:hidden;margin:0;padding:0;";e||(e=document.createElement("span"),e.id="universheetTextSizeTest",document.getElementsByTagName("body")[0].appendChild(e)),e.style.cssText+=`${s};${t}`,e.innerText=n;const i=e.getBoundingClientRect(),o={width:i.width,height:i.height};return this._getTextHeightCache[t]=o,o}static getTextSize(n,t){const{fontString:e,fontSize:s,fontFamily:i}=t;let o=this._getBoundingBoxByFont(i,s);if(!o){const a=this.getMeasureText(n,e);o=this._calculateBoundingBoxByMeasureText(a,s)}return o}static getMeasureText(n,t){if(!this._context){const g=document.createElement("canvas");this._context=g.getContext("2d")}const e=this._context,s=this.getFontMeasureCache(t,n);if(s!=null)return s;e.font=t;const i=e.measureText(n),{width:o,fontBoundingBoxAscent:a,fontBoundingBoxDescent:c,actualBoundingBoxAscent:l,actualBoundingBoxDescent:u}=i,h={width:o,fontBoundingBoxAscent:a,fontBoundingBoxDescent:c,actualBoundingBoxAscent:l,actualBoundingBoxDescent:u};if(a==null||c==null||Number.isNaN(a)||Number.isNaN(c)){const g=this.getTextSizeByDom(j7,t).height;e.textBaseline==="top"?(h.fontBoundingBoxAscent=h.actualBoundingBoxAscent=g,h.fontBoundingBoxDescent=h.actualBoundingBoxDescent=0):e.textBaseline==="middle"?(h.fontBoundingBoxDescent=h.actualBoundingBoxDescent=g/2,h.fontBoundingBoxAscent=h.actualBoundingBoxAscent=g/2):(h.fontBoundingBoxDescent=h.actualBoundingBoxDescent=0,h.fontBoundingBoxAscent=h.actualBoundingBoxAscent=g)}return this.setFontMeasureCache(t,n,h),h}static _clearMeasureCache(n,t){let e=0;for(const s of t){const[i]=s;if(e>n)break;t.delete(i),e++}return!0}static _getBoundingBoxByFont(n,t=28,e=""){const s=this._fontDataMap.get(n);if(!s)return;const{notDefWidth:i,ascender:o,descender:a,typoAscender:c,typoDescender:l,strikeoutPosition:u,subscriptSizeRatio:h,subscriptOffset:g,superscriptSizeRatio:p,superscriptOffset:m,hdmxData:v,glyphHorizonMap:b}=s,S=v==null?void 0:v.indexOf(Math.floor(t)),E=b.get(e.charCodeAt(0));let y=i;if(E){const{width:T,pixelsPerEm:F=[]}=E;S?y=F[S]:y=T}return{width:y*t,ba:o*t,bd:a*t,aba:c*t,abd:l*t,sp:u*t,sbr:h,sbo:g*t,spr:p,spo:m*t}}static _calculateBoundingBoxByMeasureText(n,t){const{width:e,fontBoundingBoxAscent:s,fontBoundingBoxDescent:i,actualBoundingBoxAscent:o,actualBoundingBoxDescent:a}=n;return{width:e,ba:s,bd:i,aba:o,abd:a,sp:(s+i)/2,sbr:.5,sbo:t,spr:.5,spo:t}}}_(B1,"_getTextHeightCache",{}),_(B1,"_context"),_(B1,"_fontDataMap",new Map),_(B1,"_globalFontMeasureCache",new Map);const q7=180,Oh=Math.PI/q7,wh=q7/Math.PI,m7="rgb(",Bh="rgba(",c1=(r,n)=>r?n!=null?`${Bh+r.join(",")},${n})`:`${m7+r.join(",")})`:`${m7}0,0,0)`,Ah=100,A1=(r,n)=>{if(f.Tools.isNumber(r))return r;if(n&&r&&f.Tools.isString(r)&&r.substr(r.length-1,1)==="%"){const t=parseFloat(r)/Ah;return n*t}return 0},Rh=16,S2=(r,n)=>(n||(n=window),n.requestPostAnimationFrame?n.requestPostAnimationFrame(r):n.requestAnimationFrame?n.requestAnimationFrame(r):n.msRequestAnimationFrame?n.msRequestAnimationFrame(r):n.webkitRequestAnimationFrame?n.webkitRequestAnimationFrame(r):n.mozRequestAnimationFrame?n.mozRequestAnimationFrame(r):n.oRequestAnimationFrame?n.oRequestAnimationFrame(r):setTimeout(r,Rh)),J7=(r,n)=>(n||(n=window),n.requestPostAnimationFrame?n.cancelPostAnimationFrame(r):n.requestAnimationFrame?n.cancelAnimationFrame(r):n.msRequestAnimationFrame?n.msCancelAnimationFrame(r):n.webkitRequestAnimationFrame?n.webkitCancelAnimationFrame(r):n.mozRequestAnimationFrame?n.mozCancelAnimationFrame(r):n.oRequestAnimationFrame?n.oCancelAnimationFrame(r):clearTimeout(r)),I6=()=>{const r=document.createElement("canvas");try{r.style=r.style||{}}catch(n){console.error(n)}return r},xh=()=>document.createElement("img"),Z7=r=>r*wh,x1=r=>r*Oh,b6=()=>{let r="pointer";return typeof window<"u"&&!window.PointerEvent&&typeof navigator<"u"&&(r="mouse"),f.Tools.isTablet()&&!f.Tools.isIPhone()&&!(document&&"ontouchend"in document)&&(r="mouse"),r},Q7=()=>f.Tools.getBrowserType()==="safari",Mh=4,t4=(r="obj",n=Mh)=>{const t=window.navigator.userAgent.replace(/[^a-zA-Z0-9]/g,"").split("");let e="";for(let i=0;i<n;i++)e+=t[Math.round(Math.random()*(t.length-1))];const s=new Date().getTime();return`${r}_${e}_${s}`};function P1(r){return Object.prototype.toString.apply(r)}function Q2(r){return P1(r)==="[object Function]"}function Lh(r){return P1(r)==="[object Date]"}function Ih(r){return P1(r)==="[object RegExp]"}function Ph(r){return P1(r)==="[object Array]"}function v6(r){return P1(r)==="[object String]"}function $h(r){return P1(r)==="[object Number]"}function kh(r){return P1(r)==="[object Object]"}function z2(r,n){return n=10**n,Math.round(r*n)/n}function K(r,n){return Math.round(r*n)/n}function E2(r,n){const t="Arial";if(!r){const h=`13px ${t}`;return{fontCache:h,fontString:h,fontSize:13,fontFamily:t}}let s=f.FontStyleType.ITALIC;(r.it===0||r.it===void 0)&&(s=f.FontStyleType.NORMAL);let i=f.FontStyleType.BOLD;(r.bl===0||r.bl===void 0)&&(i=f.FontStyleType.NORMAL);let o=13;r.fs&&(o=Math.ceil(r.fs));let a=t;if(r.ff){let h=r.ff;h=h.replace(/"/g,"").replace(/'/g,""),h.indexOf(" ")>-1&&(h=`"${h}"`),h==null&&(h=t),a=h}const{va:c}=r;if(c===f.BaselineOffset.SUBSCRIPT||c===f.BaselineOffset.SUPERSCRIPT){const h=B1.getBaselineOffsetInfo(a,o),{sbr:g,spr:p}=h;o*=c===f.BaselineOffset.SUBSCRIPT?g:p}const l=`${s} ${i} ${o}px ${a}`,u=`${l}, ${Z2} `;return{fontCache:l,fontString:u,fontSize:o,fontFamily:a}}function Nh(r){return r.measureText("田").actualBoundingBoxAscent!=null}const Hh=Fh().toRegExp();function W2(r){return Hh.test(r)}const Xh=Th().toRegExp();function t6(r){return Xh.test(r)}function zh(r){return!!/[\u0000-\u024F]/gi.exec(r)}function Wh(r){return!!/[\u0000-\u007F]/gi.exec(r)}function Yh(r){return!!/[\u0080-\u00FF]/gi.exec(r)}function jh(r){return!!/[\u0100-\u017F]/gi.exec(r)}function Uh(r){return!!/[\u0180-\u024F]/gi.exec(r)}const P6=/^(?:[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?))/g;function e4(r){return P6.test(r)}function $6(r){return/[\u0600-\u06FF]|[\u0750-\u0750]|[\u0870-\u08FF]|[\uFB50-\uFDFF]|[\uFE70-\uFEFF]/gi.test(r)}function k6(r){return/[\u0180-\u024F]/gi.test(r)}function n4(r){return/\s+/g.test(r)}const b7=1e3;let P2;function B2(){if(P2)return P2;let r=56;for(;r<b7*2;r++)if(matchMedia(`(max-resolution: ${r}dpi)`).matches===!0)return r;return P2=r,setTimeout(()=>{P2=null},b7),r}const s4=72,Vh=25.4;function Gh(r){return r/(s4/B2())}function Kh(r){return r*(s4/B2())}function qh(r){return r*(B2()/Vh)}function Jh(r){return r*B2()}function G1(r){const{scaleX:n=1,scaleY:t=1}=r;return Math.max(n,t)}function z1(r,n,t,e){const s=r-1,i=n-1,o=t[s]||0,a=t[r]||t[t.length-1],c=e[i]||0,l=e[n]||e[e.length-1];return{startY:o,endY:a,startX:c,endX:l}}function i2(r,n,t,e,s){let{startY:i,endY:o,startX:a,endX:c}=z1(r,n,t,e);const{isMerged:l,isMergedMainCell:u,startRow:h,startColumn:g,endRow:p,endColumn:m}=e6(r,n,s);let v={startRow:h,startColumn:g,endRow:p,endColumn:m,startY:0,endY:0,startX:0,endX:0};const b=t.length-1,S=e.length-1;if(l&&h!==-1&&g!==-1){const E=t[h-1]||0,y=t[p]||t[b],T=e[g-1]||0,F=e[m]||e[S];v={...v,startY:E,endY:y,startX:T,endX:F}}else if(!l&&p!==-1&&m!==-1){const E=t[p]||t[b],y=e[m]||e[S];v={...v,startY:i,endY:E,startX:a,endX:y}}return{isMerged:l,isMergedMainCell:u,actualRow:r,actualColumn:n,startY:i,endY:o,startX:a,endX:c,mergeInfo:v}}function e6(r,n,t){let e=!1,s=!1,i=r,o=n,a=r,c=n;if(t==null)return{actualRow:r,actualColumn:n,isMergedMainCell:s,isMerged:e,endRow:i,endColumn:o,startRow:a,startColumn:c};for(let l=0;l<t.length;l++){const{startRow:u,endRow:h,startColumn:g,endColumn:p}=t[l];if(r===u&&n===g){i=h,o=p,a=u,c=g,s=!0;break}if(r>=u&&r<=h&&n>=g&&n<=p){i=h,o=p,a=u,c=g,e=!0;break}}return{actualRow:r,actualColumn:n,isMergedMainCell:s,isMerged:e,endRow:i,endColumn:o,startRow:a,startColumn:c}}function i4(r,n,t,e){let s=!1;for(let i=n;i<=t;i++){const{isMerged:o,isMergedMainCell:a}=e6(r,i,e);if(!o&&!a){s=!0;break}}return s}function C6(r,n,t,e,s){const{startY:i,endY:o,startX:a,endX:c}=r;return r.startY=i+t,r.endY=o+t,r.startX=a+n,r.endX=c+n,{...r}}function r4(r,n){return!(r.left>n.right||r.top>n.bottom||n.left>r.right||n.top>r.bottom)}function o4(r){const n=document.createElement("style");document.head.appendChild(n);const t=n.sheet;for(const e of r)t==null||t.insertRule(e,t.cssRules.length)}function a4(r){for(let n=0,t=document.head.childNodes.length;n<t;n++){const e=document.head.childNodes[n];if(e.nodeName==="STYLE"&&e.textContent&&e.textContent.indexOf(r)>-1)return!0}return!1}function H1(r){return Number(r.replace(/px/gi,""))}function c4(r){const n=getComputedStyle(r),{borderTopWidth:t,borderLeftWidth:e,borderRightWidth:s,borderBottomWidth:i,width:o,height:a}=n;return{top:H1(t),left:H1(e),right:H1(s),bottom:H1(i),width:H1(o),height:H1(a)}}class B{constructor(n=0,t=0){this.x=n,this.y=t}static Zero(){return new B(0,0)}static One(){return new B(1,1)}static FromArray(n,t=0){return new B(n[t],n[t+1])}static FromArrayToRef(n,t,e){e.x=n[t],e.y=n[t+1]}static CatmullRom(n,t,e,s,i){const o=i*i,a=i*o,c=.5*(2*t.x+(-n.x+e.x)*i+(2*n.x-5*t.x+4*e.x-s.x)*o+(-n.x+3*t.x-3*e.x+s.x)*a),l=.5*(2*t.y+(-n.y+e.y)*i+(2*n.y-5*t.y+4*e.y-s.y)*o+(-n.y+3*t.y-3*e.y+s.y)*a);return new B(c,l)}static Clamp(n,t,e){let s=n.x;s=s>e.x?e.x:s,s=s<t.x?t.x:s;let i=n.y;return i=i>e.y?e.y:i,i=i<t.y?t.y:i,new B(s,i)}static Hermite(n,t,e,s,i){const o=i*i,a=i*o,c=2*a-3*o+1,l=-2*a+3*o,u=a-2*o+i,h=a-o,g=n.x*c+e.x*l+t.x*u+s.x*h,p=n.y*c+e.y*l+t.y*u+s.y*h;return new B(g,p)}static Hermite1stDerivative(n,t,e,s,i){const o=B.Zero();return this.Hermite1stDerivativeToRef(n,t,e,s,i,o),o}static Hermite1stDerivativeToRef(n,t,e,s,i,o){const a=i*i;o.x=(a-i)*6*n.x+(3*a-4*i+1)*t.x+(-a+i)*6*e.x+(3*a-2*i)*s.x,o.y=(a-i)*6*n.y+(3*a-4*i+1)*t.y+(-a+i)*6*e.y+(3*a-2*i)*s.y}static Lerp(n,t,e){const s=n.x+(t.x-n.x)*e,i=n.y+(t.y-n.y)*e;return new B(s,i)}static Dot(n,t){return n.x*t.x+n.y*t.y}static Normalize(n){const t=B.Zero();return this.NormalizeToRef(n,t),t}static NormalizeToRef(n,t){const e=n.length();e!==0&&(t.x=n.x/e,t.y=n.y/e)}static Minimize(n,t){const e=n.x<t.x?n.x:t.x,s=n.y<t.y?n.y:t.y;return new B(e,s)}static Maximize(n,t){const e=n.x>t.x?n.x:t.x,s=n.y>t.y?n.y:t.y;return new B(e,s)}static PointInTriangle(n,t,e,s){const i=.5*(-e.y*s.x+t.y*(-e.x+s.x)+t.x*(e.y-s.y)+e.x*s.y),o=i<0?-1:1,a=(t.y*s.x-t.x*s.y+(s.y-t.y)*n.x+(t.x-s.x)*n.y)*o,c=(t.x*e.y-t.y*e.x+(t.y-e.y)*n.x+(e.x-t.x)*n.y)*o;return a>0&&c>0&&a+c<2*i*o}static Distance(n,t){return Math.sqrt(B.DistanceSquared(n,t))}static DistanceSquared(n,t){const e=n.x-t.x,s=n.y-t.y;return e*e+s*s}static Center(n,t){return B.CenterToRef(n,t,B.Zero())}static CenterToRef(n,t,e){return e.copyFromFloats((n.x+t.x)/2,(n.y+t.y)/2)}static DistanceOfPointFromSegment(n,t,e){const s=B.DistanceSquared(t,e);if(s===0)return B.Distance(n,t);const i=e.subtract(t),o=Math.max(0,Math.min(1,B.Dot(n.subtract(t),i)/s)),a=t.add(i.multiplyByFloats(o,o));return B.Distance(n,a)}static create(n,t){return new B(n,t)}toString(){return`{X: ${this.x} Y: ${this.y}}`}getClassName(){return"Vector2"}getHashCode(){let n=this.x|0;return n=n*397^(this.y|0),n}toArray(n,t=0){return n[t]=this.x,n[t+1]=this.y,this}fromArray(n,t=0){return B.FromArrayToRef(n,t,this),this}asArray(){const n=new Array;return this.toArray(n,0),n}copyFrom(n){return this.x=n.x,this.y=n.y,this}copyFromFloats(n,t){return this.x=n,this.y=t,this}set(n,t){return this.copyFromFloats(n,t)}add(n){return new B(this.x+n.x,this.y+n.y)}addToRef(n,t){return t.x=this.x+n.x,t.y=this.y+n.y,this}addByPoint(n,t){return new B(this.x+n,this.y+t)}addInPlace(n){return this.x+=n.x,this.y+=n.y,this}subtract(n){return new B(this.x-n.x,this.y-n.y)}subtractByPoint(n,t){return new B(this.x-n,this.y-t)}subtractToRef(n,t){return t.x=this.x-n.x,t.y=this.y-n.y,this}subtractInPlace(n){return this.x-=n.x,this.y-=n.y,this}multiplyInPlace(n){return this.x*=n.x,this.y*=n.y,this}multiply(n){return new B(this.x*n.x,this.y*n.y)}multiplyToRef(n,t){return t.x=this.x*n.x,t.y=this.y*n.y,this}multiplyByFloats(n,t){return new B(this.x*n,this.y*t)}divide(n){return new B(this.x/n.x,this.y/n.y)}divideToRef(n,t){return t.x=this.x/n.x,t.y=this.y/n.y,this}divideInPlace(n){return this.divideToRef(n,this)}negate(){return new B(-this.x,-this.y)}negateInPlace(){return this.x*=-1,this.y*=-1,this}negateToRef(n){return n.copyFromFloats(this.x*-1,this.y*-1)}scaleInPlace(n){return this.x*=n,this.y*=n,this}scale(n){const t=new B(0,0);return this.scaleToRef(n,t),t}scaleToRef(n,t){return t.x=this.x*n,t.y=this.y*n,this}scaleAndAddToRef(n,t){return t.x+=this.x*n,t.y+=this.y*n,this}equals(n){return n&&this.x===n.x&&this.y===n.y}floor(){return new B(Math.floor(this.x),Math.floor(this.y))}fract(){return new B(this.x-Math.floor(this.x),this.y-Math.floor(this.y))}rotate(n){const t=Math.cos(n),e=Math.sin(n),s=t*this.x-e*this.y,i=e*this.x+t*this.y;return this.x=s,this.y=i,this}rotateToRef(n,t){const e=Math.cos(n),s=Math.sin(n);return t.x=e*this.x-s*this.y,t.y=s*this.x+e*this.y,this}rotateByPoint(n,t=B.create(0,0)){const e=Math.cos(n),s=Math.sin(n),i=t.x+(this.x-t.x)*e-(this.y-t.y)*s,o=t.y+(this.x-t.x)*s+(this.y-t.y)*e;return this.x=i,this.y=o,this}transformCoordinateOnRotate(n){const t=Math.sqrt(this.x**2+this.y**2),e=Math.atan2(this.y,this.x),s=-n+e;return this.x=t*Math.cos(s),this.y=t*Math.sin(s),this}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}lengthSquared(){return this.x*this.x+this.y*this.y}normalize(){return B.NormalizeToRef(this,this),this}clone(){return new B(this.x,this.y)}}const $2=[1,0,0,1,0,0];class o1{constructor(n=$2){_(this,"dirty",!1);_(this,"_m");this._m=n&&n.slice()||$2}static create(n=$2){return new this(n)}reset(){this._m[0]=1,this._m[1]=0,this._m[2]=0,this._m[3]=1,this._m[4]=0,this._m[5]=0}copy(){return new o1(this._m)}copyInto(n){n._m[0]=this._m[0],n._m[1]=this._m[1],n._m[2]=this._m[2],n._m[3]=this._m[3],n._m[4]=this._m[4],n._m[5]=this._m[5]}applyPoint(n,t=!1){const e=this._m,s=e[0]*n.x+e[2]*n.y,i=e[1]*n.x+e[3]*n.y;return t?new B(s,i):new B(s+e[4],i+e[5])}translate(n,t){return this._m[4]+=this._m[0]*n+this._m[2]*t,this._m[5]+=this._m[1]*n+this._m[3]*t,this}scale(n,t){return this._m[0]*=n,this._m[1]*=n,this._m[2]*=t,this._m[3]*=t,this}rotate(n){const t=x1(n),e=Math.cos(t),s=Math.sin(t),i=this._m[0]*e+this._m[2]*s,o=this._m[1]*e+this._m[3]*s,a=this._m[0]*-s+this._m[2]*e,c=this._m[1]*-s+this._m[3]*e;return this._m[0]=i,this._m[1]=o,this._m[2]=a,this._m[3]=c,this}getTranslation(){return{x:this._m[4],y:this._m[5]}}skew(n,t){const e=this._m[0]+this._m[2]*t,s=this._m[1]+this._m[3]*t,i=this._m[2]+this._m[0]*n,o=this._m[3]+this._m[1]*n;return this._m[0]=e,this._m[1]=s,this._m[2]=i,this._m[3]=o,this}multiply(n){const t=this._m[0]*n._m[0]+this._m[2]*n._m[1],e=this._m[1]*n._m[0]+this._m[3]*n._m[1],s=this._m[0]*n._m[2]+this._m[2]*n._m[3],i=this._m[1]*n._m[2]+this._m[3]*n._m[3],o=this._m[0]*n._m[4]+this._m[2]*n._m[5]+this._m[4],a=this._m[1]*n._m[4]+this._m[3]*n._m[5]+this._m[5];return this._m[0]=t,this._m[1]=e,this._m[2]=s,this._m[3]=i,this._m[4]=o,this._m[5]=a,this}invert(){const n=1/(this._m[0]*this._m[3]-this._m[1]*this._m[2]),t=this._m[3]*n,e=-this._m[1]*n,s=-this._m[2]*n,i=this._m[0]*n,o=n*(this._m[2]*this._m[5]-this._m[3]*this._m[4]),a=n*(this._m[1]*this._m[4]-this._m[0]*this._m[5]);return this._m[0]=t,this._m[1]=e,this._m[2]=s,this._m[3]=i,this._m[4]=o,this._m[5]=a,this}getMatrix(){return this._m}getMatrixByAccurate(n=3){return this._m.map(t=>z2(t,n))}setAbsolutePosition(n){const t=this._m[0],e=this._m[1],s=this._m[2],i=this._m[3],o=this._m[4],a=this._m[5],c=(t*(n.y-a)-e*(n.x-o))/(t*i-e*s),l=(n.x-o-s*c)/t;return this.translate(l,c)}decompose(){const n=this._m[0],t=this._m[1],e=this._m[2],s=this._m[3],i=this._m[4],o=this._m[5],a=n*s-t*e,c={x:i,y:o,angle:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(n!==0||t!==0){const l=Math.sqrt(n*n+t*t);c.angle=t>0?Math.acos(n/l):-Math.acos(n/l),c.scaleX=l,c.scaleY=a/l,c.skewX=(n*e+t*s)/a,c.skewY=0}else if(e!==0||s!==0){const l=Math.sqrt(e*e+s*s);c.angle=Math.PI/2-(s>0?Math.acos(-e/l):-Math.acos(e/l)),c.scaleX=a/l,c.scaleY=l,c.skewX=0,c.skewY=(n*e+t*s)/a}return c.angle=Z7(c.angle),c}makeBoundingBoxFromPoints(n){if(this)for(let u=0;u<n.length;u++)n[u]=this.applyPoint(n[u]);const t=[n[0].x,n[1].x,n[2].x,n[3].x],e=Math.min(...t),i=Math.max(...t)-e,o=[n[0].y,n[1].y,n[2].y,n[3].y],a=Math.min(...o),l=Math.max(...o)-a;return{left:e,top:a,width:i,height:l,points:n}}composeMatrix(n){const t=new o1([1,0,0,1,n.left||0,n.top||0]);return n.angle&&t.rotate(n.angle),(n.scaleX!==1||n.scaleY!==1||n.skewX||n.skewY||n.flipX||n.flipY)&&t.multiply(this._calcDimensionsMatrix(n)),this._m=t.getMatrix(),this}clone(){return new o1([...this._m])}_calcDimensionsMatrix(n){const t=n.scaleX??1,e=n.scaleY??1,s=new o1([n.flipX?-t:t,0,0,n.flipY?-e:e,0,0]);return n.skewX&&s.multiply(new o1([1,0,Math.tan(x1(n.skewX)),1,0,0])),n.skewY&&s.multiply(new o1([1,Math.tan(x1(n.skewY)),0,1,0,0])),s}}const Y2=["top","left","width","height","angle","scaleX","scaleY","skewX","skewY","flipX","flipY","strokeWidth"];class M1{constructor(n){_(this,"groupKey");_(this,"isInGroup",!1);_(this,"onTransformChangeObservable",new f.Observable);_(this,"onPointerDownObserver",new f.Observable);_(this,"onPointerMoveObserver",new f.Observable);_(this,"onPointerUpObserver",new f.Observable);_(this,"onDblclickObserver",new f.Observable);_(this,"onTripleClickObserver",new f.Observable);_(this,"onMouseWheelObserver",new f.Observable);_(this,"onPointerOutObserver",new f.Observable);_(this,"onPointerLeaveObserver",new f.Observable);_(this,"onPointerOverObserver",new f.Observable);_(this,"onPointerEnterObserver",new f.Observable);_(this,"onIsAddedToParentObserver",new f.Observable);_(this,"onDisposeObserver",new f.Observable);_(this,"_oKey");_(this,"_dirty",!0);_(this,"_top",0);_(this,"_topOrigin",0);_(this,"_left",0);_(this,"_leftOrigin",0);_(this,"_width",0);_(this,"_widthOrigin",0);_(this,"_height",0);_(this,"_heightOrigin",0);_(this,"_angle",0);_(this,"_scaleX",1);_(this,"_scaleY",1);_(this,"_skewX",0);_(this,"_skewY",0);_(this,"_flipX",!1);_(this,"_flipY",!1);_(this,"_strokeWidth",0);_(this,"_parent");_(this,"_zIndex",0);_(this,"_evented",!0);_(this,"_visible",!0);_(this,"_debounceParentDirty",!0);_(this,"_transform",new o1);_(this,"_cursor",i1.DEFAULT);_(this,"_isTransformer",!1);_(this,"_forceRender",!1);_(this,"_layer");n?this._oKey=n:this._oKey=t4()}get transform(){return this._transform}get topOrigin(){return this._topOrigin}get leftOrigin(){return this._leftOrigin}get widthOrigin(){return this._widthOrigin}get heightOrigin(){return this._heightOrigin}get classType(){return P.BASE_OBJECT}get top(){return this._top}get left(){return this._left}get width(){return this._width}get height(){return this._height}get strokeWidth(){return this._strokeWidth}get angle(){return this._angle}get scaleX(){return this._scaleX}get scaleY(){return this._scaleY}get ancestorScaleX(){var t;const n=((t=this.getParent())==null?void 0:t.ancestorScaleX)||1;return this.scaleX*n}get ancestorScaleY(){var t;const n=((t=this.getParent())==null?void 0:t.ancestorScaleY)||1;return this.scaleY*n}get skewX(){return this._skewX}get skewY(){return this._skewY}get flipX(){return this._flipX}get flipY(){return this._flipY}get parent(){return this._parent}get oKey(){return this._oKey}get zIndex(){return this._zIndex}get evented(){return this._evented}get visible(){return this._visible}get debounceParentDirty(){return this._debounceParentDirty}get isTransformer(){return this._isTransformer}get cursor(){return this._cursor}get layer(){return this._layer}set transform(n){this._transform=n}set zIndex(n){this._zIndex=n}set parent(n){this._parent=n}set evented(n){this._evented=n}set debounceParentDirty(n){this._debounceParentDirty=n}set isTransformer(n){this._isTransformer=n}set cursor(n){this.setCursor(n)}set layer(n){this._layer=n}set top(n){var t;this._topOrigin=n,this._top=A1(n,(t=this._parent)==null?void 0:t.height)}set left(n){var t;this._leftOrigin=n,this._left=A1(n,(t=this._parent)==null?void 0:t.width)}set width(n){var t;this._widthOrigin=n,this._width=A1(n,(t=this._parent)==null?void 0:t.width)}set height(n){var t;this._heightOrigin=n,this._height=A1(n,(t=this._parent)==null?void 0:t.height)}set strokeWidth(n){this._strokeWidth=n}set angle(n){this._angle=n}set scaleX(n){this._scaleX=n}set scaleY(n){this._scaleY=n}set skewX(n){this._skewX=n}set flipY(n){this._flipY=n}set flipX(n){this._flipX=n}set skewY(n){this._skewY=n}makeDirty(n=!0){if(this._dirty=n,n){if(this._layer==null){this._dirty=!1;return}typeof this._layer.debounceParentTimeout=="function"&&this._layer.debounceParentTimeout(),this._layer.debounceParentTimeout=f.requestImmediateMacroTask(()=>{var t;(t=this._layer)==null||t.makeDirty(n)})}return this}makeDirtyNoDebounce(n=!0){var t;return this._dirty=n,n&&((t=this._layer)==null||t.makeDirty(n)),this}isDirty(){return this._dirty}translate(n,t){const e=this.top;t!==void 0&&(this.top=t);const s=this.left;return n!==void 0&&(this.left=n),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.translate,value:{top:this._top,left:this._left},preValue:{top:e,left:s}}),this}resize(n,t){const e=this.width;n!==void 0&&(this.width=n);const s=this.height;return t!==void 0&&(this.height=t),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.resize,value:{width:this._width,height:this._height},preValue:{width:e,height:s}}),this}scale(n,t){const e=this.scaleX;n!==void 0&&(this.scaleX=n);const s=this.scaleY;return t!==void 0&&(this.scaleY=t),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.scale,value:{scaleX:this._scaleX,scaleY:this._scaleY},preValue:{scaleX:e,scaleY:s}}),this}skew(n,t){const e=n;n!==void 0&&(this.skewX=n);const s=t;return t!==void 0&&(this.skewY=t),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.skew,value:{skewX:this._skewX,skewY:this._skewY},preValue:{skewX:e,skewY:s}}),this}flip(n,t){const e=n;n!==void 0&&(this.flipX=n);const s=t;return t!==void 0&&(this.flipY=t),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.flip,value:{flipX:this._flipX,flipY:this._flipY},preValue:{flipX:e,flipY:s}}),this}transformByState(n){const t=Object.keys(n),e={};if(t.length!==0)return t.forEach(s=>{n[s]!==void 0&&(e[s]=this[s],this[s]=n[s])}),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.all,value:n,preValue:e}),this}isRender(n){return this._forceRender?!1:n&&!this.isInGroup}getParent(){return this._parent}getState(){return{left:this.left,top:this.top,width:this.width,height:this.height,scaleX:this.scaleX,scaleY:this.scaleY,angle:this.angle,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY}}hide(){this._visible=!1,this._makeDirtyMix()}show(){this._visible=!0,this._makeDirtyMix()}render(n,t){}isHit(n){const t=this._getInverseCoord(n);return t.x>=-this.strokeWidth/2&&t.x<=this.width+this.strokeWidth/2&&t.y>=-this.strokeWidth/2&&t.y<=this.height+this.strokeWidth/2}on(n,t){return this[`on${n}Observer`].add(t.bind(this))}off(n,t){this[`on${n}Observer`].remove(t)}clear(n){this[`on${n}Observer`].clear()}triggerPointerMove(n){var t,e;return(t=this.onPointerMoveObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerPointerMove(n),!1)}triggerPointerDown(n){var t,e;return(t=this.onPointerDownObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerPointerDown(n),!1)}triggerPointerUp(n){var t,e;return(t=this.onPointerUpObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerPointerUp(n),!1)}triggerDblclick(n){var t,e;return(t=this.onDblclickObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerDblclick(n),!1)}triggerTripleClick(n){var t,e;return(t=this.onTripleClickObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerTripleClick(n),!1)}triggerMouseWheel(n){var t,e;return(t=this.onMouseWheelObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerMouseWheel(n),!1)}triggerPointerOut(n){var t,e;return(t=this.onPointerOutObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerPointerOut(n),!1)}triggerPointerLeave(n){var t,e;return(t=this.onPointerLeaveObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerPointerLeave(n),!1)}triggerPointerOver(n){var t;return this.onPointerOverObserver.notifyObservers(n)?!0:((t=this._parent)==null||t.triggerPointerOver(n),!1)}triggerPointerEnter(n){var t,e;return(t=this.onPointerEnterObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerPointerEnter(n),!1)}dispose(){var n;this.onPointerDownObserver.clear(),this.onPointerMoveObserver.clear(),this.onPointerUpObserver.clear(),this.onMouseWheelObserver.clear(),this.onPointerOutObserver.clear(),this.onPointerLeaveObserver.clear(),this.onPointerOverObserver.clear(),this.onPointerEnterObserver.clear(),this.onDblclickObserver.clear(),this.onTripleClickObserver.clear(),this.onIsAddedToParentObserver.clear(),(n=this.parent)==null||n.removeObject(this),this.onDisposeObserver.notifyObservers(this)}toJson(){const n={};return Y2.forEach(t=>{this[t]&&(n[t]=this[t])}),n}getScene(){let n=this.parent;if(n!=null){if(n.classType===P.SCENE)return n;for(;n;){if(n.classType===P.SCENE)return n;n=n.getParent()}}}resetCursor(){var n;(n=this.getScene())==null||n.resetCursor()}setCursor(n){var t;this._cursor=n,(t=this.getScene())==null||t.setCursor(n)}getEngine(){let n=this.getParent();for(;n!=null;){if(n===P.ENGINE)return n;n=n.getParent()}return null}getObjects(){return[]}_getInverseCoord(n){return this._transform.clone().invert().applyPoint(n)}_setTransForm(){const n=o1.create().composeMatrix({left:this.left+this.strokeWidth/2,top:this.top+this.strokeWidth/2,scaleX:this.scaleX,scaleY:this.scaleY,angle:this.angle,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY});this.transform=n,this._makeDirtyMix()}_makeDirtyMix(){this.debounceParentDirty?this.makeDirty(!0):this.makeDirtyNoDebounce(!0)}}var l4=(r=>(r[r.SPAN=0]="SPAN",r[r.DIVIDE=1]="DIVIDE",r[r.LINE=2]="LINE",r[r.COLUMN=3]="COLUMN",r[r.SECTION=4]="SECTION",r[r.PAGE=5]="PAGE",r[r.DRAWING=6]="DRAWING",r[r.BULLET=7]="BULLET",r[r.HEADER=8]="HEADER",r[r.FOOTER=9]="FOOTER",r[r.ALL=10]="ALL",r))(l4||{}),r2=(r=>(r[r.SECTION=0]="SECTION",r[r.PAGE=1]="PAGE",r[r.COLUMN=2]="COLUMN",r))(r2||{}),A2=(r=>(r[r.PARAGRAPH=0]="PARAGRAPH",r[r.BLOCK=1]="BLOCK",r))(A2||{}),a1=(r=>(r[r.LETTER=0]="LETTER",r[r.WORD=1]="WORD",r[r.LIST=2]="LIST",r[r.PLACEHOLDER=3]="PLACEHOLDER",r[r.TAB=4]="TAB",r[r.IMAGE=5]="IMAGE",r[r.AT=6]="AT",r[r.MATH=7]="MATH",r[r.MULTI_LINE=8]="MULTI_LINE",r[r.CUSTOM=9]="CUSTOM",r))(a1||{}),b1=(r=>(r[r.VERTICAL=0]="VERTICAL",r[r.HORIZONTAL=1]="HORIZONTAL",r[r.AUTO=2]="AUTO",r))(b1||{});function Zh(r){var e;const n=r==null?void 0:r.parent;return n==null?!1:((e=n.spanGroup[0])==null?void 0:e.spanType)===a1.LIST}function Qh(r,n){const t=u4(r,n);if(t==null)return!1;const{paragraphStyle:e}=t;return e==null?!1:f.checkParagraphHasIndentByStyle(e)}function t_(r){const n=r==null?void 0:r.parent,t=n==null?void 0:n.parent,e=n==null?void 0:n.spanGroup,s=t==null?void 0:t.divides;if(e&&r&&s&&n){const i=e.indexOf(r);if(s.indexOf(n)===s.length-1&&i===e.length-1)return!0}return!1}function e_(r){const n=r==null?void 0:r.parent,t=n==null?void 0:n.parent,e=n==null?void 0:n.spanGroup,s=t==null?void 0:t.divides;if(e&&r&&s&&n){const i=e.indexOf(r),o=s.indexOf(n);if(o===0&&i===0||o===0&&i===1&&e[0].spanType===a1.LIST)return!0}return!1}function u4(r,n){var s;const t=(s=r==null?void 0:r.parent)==null?void 0:s.parent;if(t==null||n==null)return;const e=n.paragraphs;if(e!=null){for(const i of e)if(i.startIndex===t.paragraphIndex)return i}}function n_(r){return r==null?!1:[f.DataStreamTreeTokenType.PARAGRAPH,f.DataStreamTreeTokenType.TAB,f.DataStreamTreeTokenType.SECTION_BREAK].indexOf(r.streamType)!==-1||r.content===f.DataStreamTreeTokenType.SPACE}function s_(r,n){return r==null||n==null||r.parent==null||n.parent==null?!1:r.parent.parent===n.parent.parent}function N6(){let r=1;const t=I6().getContext("2d");return r=(()=>{const e=window.devicePixelRatio||1,s=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return e/s})(),r<1?1:Math.ceil(r*10)/10}function H6(r,n,t){let e=0,s=0,i=0,o=0;const{startX:a,startY:c,endX:l,endY:u}=t;n===e1.TOP?(e=a,s=c,i=l,o=c):n===e1.BOTTOM?(e=a,s=u,i=l,o=u):n===e1.LEFT?(e=a,s=c,i=a,o=u):n===e1.RIGHT&&(e=l,s=c,i=l,o=u),r.beginPath(),r.moveTo(e,s),r.lineTo(i,o),r.stroke()}function h4(r,n,t,e,s){let i=0,o=0,a=0,c=0;const{startX:l,startY:u,endX:h,endY:g}=t;n===e1.TOP?(i=l,o=u,a=h,c=u):n===e1.BOTTOM?(i=l,o=g,a=h,c=g):n===e1.LEFT?(i=l,o=u,a=l,c=g):n===e1.RIGHT&&(i=h,o=u,a=h,c=g),r.beginPath(),r.clearRect(i-1/e,o-1/s,a-i+2/e,c-o+2/s)}function X6(r,n){n===f.BorderStyleTypes.HAIR?r.setLineDash([1,2]):n===f.BorderStyleTypes.DASH_DOT_DOT||n===f.BorderStyleTypes.MEDIUM_DASH_DOT_DOT?r.setLineDash([2,2,5,2,2]):n===f.BorderStyleTypes.DASH_DOT||n===f.BorderStyleTypes.MEDIUM_DASH_DOT||n===f.BorderStyleTypes.SLANT_DASH_DOT?r.setLineDash([2,5,2]):n===f.BorderStyleTypes.DOTTED?r.setLineDash([2]):n===f.BorderStyleTypes.DASHED||n===f.BorderStyleTypes.MEDIUM_DASHED?r.setLineDash([3]):r.setLineDash([0])}function _4(){const r=L1(1);return r-Math.floor(r)}function L1(r){return Math.ceil(r/N6()*100)/100}function z6(r){let n=L1(1);return r===f.BorderStyleTypes.MEDIUM||r===f.BorderStyleTypes.MEDIUM_DASH_DOT||r===f.BorderStyleTypes.MEDIUM_DASHED||r===f.BorderStyleTypes.MEDIUM_DASH_DOT_DOT?n=L1(2):r===f.BorderStyleTypes.THICK&&(n=L1(3)),n}function y2(r,n,t,e,s=B.create(0,0)){const i=r.add(n).rotateByPoint(e),o=i.subtract(n),a=e-t;return o.rotateByPoint(a,i).add(s).transformCoordinateOnRotate(a)}function d4(r){return r>0?C2.DOWN:C2.UP}function W6(r,n,t){var m;const e=[];let s=0,i=0,o=0,a=0,c=0;const l=d4(t),u=r.length;t=Math.abs(t);const h=Math.tan(t),g=Math.sin(t),p=Math.cos(t);if(l===C2.UP){let v=0;for(let b=0;b<u;b++){const S=r[b],{lineHeight:E=0}=S;v+=b===0?0:E;const y=n*g+E*p;e.push(v/h),y>i&&(i=y),b===0&&(o+=E*g,c+=E*p)}o+=v/g+n*p,c-=i}else{let v=0,b=-1;const S=[];for(let T=u-1;T>=0;T--){const F=r[T],{lineHeight:O=0}=F,w=O/h,R=(n+w)*g;S.unshift(O/h),R>i&&(i=R,v=w,b=T),T===0?o+=O*g:T===u-1?o+=n*p+O/g:o+=O/g}let E=((m=r[b])==null?void 0:m.lineHeight)||0,y=0;for(let T=b+1;T<=u-1;T++){const F=r[T],{lineHeight:O=0}=F;E+=O,y+=S[T]||0,e[T]=-y}y=0;for(let T=b-1;T>=0;T--){const F=r[T],{lineHeight:O=0}=F;y+=S[T+1]||0,e[T]=y,s+=O}e[b]=0,u===1&&(o+=n*p),a=E/g-v*p}return{rotateTranslateXList:e,rotatedHeight:i,rotatedWidth:o,fixOffsetX:a,fixOffsetY:c,rotateTranslateY:s}}function i_(){const r=.5-_4();return{left:r,top:r}}var f4=(r=>(r[r.PointerMove=0]="PointerMove",r[r.PointerDown=1]="PointerDown",r[r.PointerUp=2]="PointerUp",r[r.Dblclick=3]="Dblclick",r[r.Keyboard=4]="Keyboard",r))(f4||{});class k2{}_(k2,"DOM_DELTA_PIXEL",0),_(k2,"DOM_DELTA_LINE",1),_(k2,"DOM_DELTA_PAGE",2);var d1=(r=>(r[r.Generic=0]="Generic",r[r.Keyboard=1]="Keyboard",r[r.Mouse=2]="Mouse",r[r.Touch=3]="Touch",r))(d1||{}),M=(r=>(r[r.Horizontal=0]="Horizontal",r[r.Vertical=1]="Vertical",r[r.LeftClick=2]="LeftClick",r[r.MiddleClick=3]="MiddleClick",r[r.RightClick=4]="RightClick",r[r.BrowserBack=5]="BrowserBack",r[r.BrowserForward=6]="BrowserForward",r[r.MouseWheelX=7]="MouseWheelX",r[r.MouseWheelY=8]="MouseWheelY",r[r.MouseWheelZ=9]="MouseWheelZ",r[r.DeltaHorizontal=10]="DeltaHorizontal",r[r.DeltaVertical=11]="DeltaVertical",r[r.FakeMove=12]="FakeMove",r))(M||{});const g4=[new B(0,0),new B(1,1)];class D4{constructor(n=g4){this._lines=n}intersection(n){if(this._lines.length<1||n.length<1)return;const t=[];for(let e=1;e<this._lines.length;e++){const s=this._lines[e-1],i=this._lines[e];for(let o=1;o<n.length;o++){const a=this._lines[e-1],c=this._lines[e],l=this._intersection({from:s,to:i},{from:a,to:c});l&&t.push(l)}}return t}_intersection(n,t){const e=n.from,s=n.to,i=t.from,o=t.to,a=(e.x-i.x)*(s.y-i.y)-(e.y-i.y)*(s.x-i.x),c=(e.x-o.x)*(s.y-o.y)-(e.y-o.y)*(s.x-o.x);if(a*c>=0)return!1;const l=(i.x-e.x)*(o.y-e.y)-(i.y-e.y)*(o.x-e.x),u=l+a-c;if(l*u>=0)return!1;const h=l/(c-a),g=h*(s.x-e.x),p=h*(s.y-e.y);return new B(e.x+g,e.y+p)}}class p4{constructor(n=30){_(this,"_enabled",!0);_(this,"_rollingFrameTime");_(this,"_lastFrameTimeMs");this._rollingFrameTime=new m4(n)}get averageFrameTime(){return this._rollingFrameTime.average}get averageFrameTimeVariance(){return this._rollingFrameTime.variance}get instantaneousFrameTime(){return this._rollingFrameTime.history(0)}get averageFPS(){return 1e3/this._rollingFrameTime.average}get instantaneousFPS(){const n=this._rollingFrameTime.history(0);return n===0?0:1e3/n}get isSaturated(){return this._rollingFrameTime.isSaturated()}get isEnabled(){return this._enabled}sampleFrame(n=this.Now()){if(this._enabled){if(this._lastFrameTimeMs!=null){const t=n-this._lastFrameTimeMs;this._rollingFrameTime.add(t)}this._lastFrameTimeMs=n}}Now(){return performance&&performance.now?performance.now():Date.now()}enable(){this._enabled=!0}disable(){this._enabled=!1,this._lastFrameTimeMs=null}reset(){this._lastFrameTimeMs=null,this._rollingFrameTime.reset()}}class m4{constructor(n){_(this,"average",0);_(this,"variance",0);_(this,"_samples",[]);_(this,"_sampleCount",0);_(this,"_pos",0);_(this,"_m2",0);this._samples=new Array(n),this.reset()}add(n){let t;if(this.isSaturated()){const e=this._samples[this._pos];t=e-this.average,this.average-=t/(this._sampleCount-1),this._m2-=t*(e-this.average)}else this._sampleCount++;t=n-this.average,this.average+=t/this._sampleCount,this._m2+=t*(n-this.average),this.variance=this._m2/(this._sampleCount-1),this._samples[this._pos]=n,this._pos++,this._pos%=this._samples.length}history(n){if(n>=this._sampleCount||n>=this._samples.length)return 0;const t=this._wrapPosition(this._pos-1);return this._samples[this._wrapPosition(t-n)]}isSaturated(){return this._sampleCount>=this._samples.length}reset(){this.average=0,this.variance=0,this._sampleCount=0,this._pos=0,this._m2=0}_wrapPosition(n){const t=this._samples.length;return(n%t+t)%t}}const T2={strokeWidth:1,stroke:"rgba(0,0,0, 0)",strokeActive:"rgba(0,0,0, 1)",fill:"rgba(0, 0, 0, 0.2)"};var b2=(r=>(r.NONE="none",r.BACKWARD="backward",r.FORWARD="forward",r))(b2||{});function n2(r){const n=r.getScene(),t=r.getViewportByCoord(n),e=0,s=0;if(!t)return{scrollX:e,scrollY:s};const i=t.getActualScroll(t.scrollX,t.scrollY);return{scrollX:i.x,scrollY:i.y}}class l2{constructor(n){_(this,"isCache",!1);_(this,"_pixelRatio",1);_(this,"_canvasEle");_(this,"_context");_(this,"_width",0);_(this,"_height",0);n=n||{},this._canvasEle=I6(),this._canvasEle.style.padding="0",this._canvasEle.style.margin="0",this._canvasEle.style.border="0",this._canvasEle.style.background="transparent",this._canvasEle.style.position="absolute",this._canvasEle.style.top="0",this._canvasEle.style.left="0",this._canvasEle.tabIndex=1,this._canvasEle.style.touchAction="none",this._canvasEle.style.outline="0",this._context=this._canvasEle.getContext("2d"),this.setSize(n.width,n.height,n.pixelRatio)}getCanvasEle(){return this._canvasEle}getContext(){return this._context}getPixelRatio(){return this._pixelRatio}getWidth(){return this._width}getHeight(){return this._height}setSize(n,t,e){this._pixelRatio=e||N6(),n&&(this._width=n,this._canvasEle.width=n*this._pixelRatio,this._canvasEle.style.width=`${n}px`),t&&(this._height=t,this._canvasEle.height=t*this._pixelRatio,this._canvasEle.style.height=`${t}px`),this.getContext().setTransform(this._pixelRatio,0,0,this._pixelRatio,0,0)}setPixelRatio(n){this._width===0||this._height===0||(n<1&&(n=1),this.setSize(this._width,this._height,n))}dispose(){this.clear(),this._canvasEle.remove()}clear(){this.getContext().clearRect(0,0,this._width*this._pixelRatio,this._height*this._pixelRatio)}toDataURL(n,t){try{return this._canvasEle.toDataURL(n,t)}catch{try{return this._canvasEle.toDataURL()}catch(s){const{message:i}=s;return console.error(`Unable to get data URL. ${i} For more info read https://universheet.net/docs/Canvas.html.`),""}}}}class r_ extends l2{constructor(n={width:0,height:0}){super(n),this.setSize(n.width,n.height)}}class o_ extends l2{constructor(t={width:0,height:0}){super(t);_(this,"hitCanvas",!0);this.setSize(t.width,t.height)}}class Y6 extends M1{constructor(){super(...arguments);_(this,"_extensions",new Map)}get extensions(){return this._extensions}register(...t){for(const e of t)e.parent=this,this._extensions.set(e.uKey,e)}unRegister(...t){for(const e of t)this._extensions.delete(e)}getExtensionsByOrder(){const t=Array.from(this._extensions.values());return t.sort(f.sortRules),t}getExtensionByKey(t){return this._extensions.get(t)}draw(t,e){}}function b4(){return[]}function v4(r,n,t){return a_(r,n,t)}function a_(r,n,t){return t===f.GlyphType.DECIMAL?v7(r,n):t===f.GlyphType.ZERO_DECIMAL?c_(r,n):t===f.GlyphType.UPPER_ALPHA?l_(r,n):t===f.GlyphType.ALPHA?u_(r,n):t===f.GlyphType.UPPER_ROMAN?h_(r,n):t===f.GlyphType.ROMAN?__(r,n):v7(r,n)}function v7(r,n){return(r+n).toString()}function c_(r,n){const t=r+n;return t<10?`0${t}`:t.toString()}function l_(r,n){return f.numberToListABC(r+n-1,!0)}function u_(r,n){return f.numberToListABC(r+n-1,!1)}function h_(r,n){return C4(r+n,!0)}function __(r,n){return C4(r+n,!1)}function C4(r,n=!1){const t={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1};let s={m:1e3,cm:900,d:500,cd:400,c:100,xc:90,l:50,xl:40,x:10,ix:9,v:5,iv:4,i:1};n&&(s=t);let i="";for(const o in s)for(;r>=s[o];)i+=o,r-=s[o];return i}function S4(r,n,t,e){var h,g;if(!r||!n)return;const{listId:s,listType:i,nestingLevel:o=0,textStyle:a}=r,c=n[i];return!c||!c.nestingLevel?S6(s,(h=t==null?void 0:t[o])==null?void 0:h.startIndexItem):c.nestingLevel[o]?d_(s,o,c.nestingLevel,t,a):S6(s,(g=t==null?void 0:t[o])==null?void 0:g.startIndexItem)}function S6(r,n=1){return{listId:r,symbol:"●",ts:{ff:"Arial",fs:9},startIndexItem:n,bBox:{width:8.4560546875,ba:7,bd:-1,aba:7,abd:-1,sp:-2,sbr:.5,sbo:0,spr:.5,spo:0},indentFirstLine:0,hanging:21,indentStart:0}}function d_(r,n,t,e,s,i){var F;const o=t[n],{bulletAlignment:a,glyphFormat:c,textStyle:l,startNumber:u,glyphType:h,glyphSymbol:g,indentFirstLine:p,hanging:m,indentStart:v}=o,b={...s,...l},S=E2(b);let E;g?E=g:E=f_(c,n,t,e);const y=B1.getTextSize(E,S),T=((F=e==null?void 0:e[n])==null?void 0:F.startIndexItem)??1;return{listId:r,symbol:E,ts:b,fontStyle:S,startIndexItem:T+1,bBox:y,nestingLevel:o,bulletAlign:a,bulletType:g?!1:!!h,indentFirstLine:p,hanging:m,indentStart:v}}function f_(r,n,t,e){var a;const s=r.split("%"),o=[s[0]];for(let c=1;c<s.length;c++){const l=s[c],{level:u,suffix:h}=D_(l);let g=((a=e==null?void 0:e[u])==null?void 0:a.startIndexItem)||1;u!==n&&(e==null?void 0:e[u])!==null&&(g-=1);const p=g_(g,t[u]);o.push(p,h)}return o.join("")}function g_(r=1,n){const{startNumber:t,glyphType:e,glyphSymbol:s}=n;return s||(e?v4(r,t,e):"●")}function D_(r){if(r==="")return{level:0,suffix:""};const n=r.split("");let t="",e="",s=!1;const i=/[0-9]/g;return n.forEach(o=>{!s&&i.test(`${t}${o}`)?t+=o:(s=!0,e+=o)}),{level:parseInt(t)-1,suffix:e}}function E4(r,n,t,e,s){return[]}function U1(r){return r[r.length-1]}function u2(r){var n;return(n=r.sections)==null?void 0:n[r.sections.length-1]}function p_(r){const n=u2(r).columns;return n==null?void 0:n[n.length-1]}function y4(r){var t;const n=(t=F2(r))==null?void 0:t.column.lines;return n==null?void 0:n[n.length-1]}function T4(r){return r.lines[r.lines.length-1]}function m_(r){const{pageWidth:n,marginLeft:t,marginRight:e}=r;return n-t-e}function b_(r){const n=r.parent,t=n==null?void 0:n.lines.indexOf(r);if(!(!t||t===-1||t-1<0))return n==null?void 0:n.lines[t-1]}function v_(r){var t;const n=(t=r.parent)==null?void 0:t.parent;if(n)return n}function F2(r){const n=u2(r);for(let t=0;t<n.columns.length;t++){const e=n.columns[t];if(!e.isFull)return{column:e,isLast:t===n.columns.length-1,index:t}}}function j6(r){const n=y4(r);if(n)for(let t=0;t<n.divides.length;t++){const e=n.divides[t];if(!e.isFull)return{divide:e,isLast:t===n.divides.length-1,index:t}}}function C_(r,n){const t=r.divides.indexOf(n);if(t!==-1)return r.divides[t+1]}function S_(r){if(r)for(let n=0;n<r.divides.length;n++){const t=r.divides[n],e=r.divides[n+1];if(t.spanGroup.length===0||!e||e.spanGroup.length===0)return t}}function E_(r){var t;const n=(t=j6(r))==null?void 0:t.divide.spanGroup;return n==null?void 0:n[n.length-1]}function F4(r){const n=u2(r),t=n.columns.length;for(let e=0;e<t;e++)if(!n.columns[e].isFull)return!1;return!0}function y_(r){if(r.sections.length>1)return!1;const n=u2(r),t=n.columns.length;for(let e=0;e<t;e++){const s=n.columns[e];if(!O4(s))return!1}return!0}function O4(r){const n=r.lines;if(n.length>1)return!1;const t=n[n.length-1];return T_(t)}function T_(r){if(!r)return!0;for(let n=0;n<r.divides.length;n++){const t=r.divides[n].spanGroup.length;if(t>1)return!1;if(t===1){const e=r.divides[n].spanGroup[0],{spanType:s}=e;if(s!==a1.TAB&&s!==a1.LIST)return!1}}return!0}function F_(){}function R1(r,n){if(r instanceof Object){const{v:t,u:e}=r;return e===f.NumberUnitType.POINT?t:t*n}return r}function n6(r=0,n,t=f.GridType.LINES,e=f.BooleanNumber.TRUE){let s=1;return U6(t,e)&&(s=r),s*=n,s}function U6(r=f.GridType.LINES,n=f.BooleanNumber.FALSE){return n===f.BooleanNumber.TRUE&&(r===f.GridType.LINES_AND_CHARS||r===f.GridType.SNAP_TO_CHARS)}function V6(r,n){const{paragraphStyle:t={}}=n,{linePitch:e=15.6,gridType:s=f.GridType.LINES,paragraphLineGapDefault:i=0}=r,{lineSpacing:o=1,spacingRule:a=f.SpacingRule.AUTO,snapToGrid:c=f.BooleanNumber.TRUE}=t;return{paragraphLineGapDefault:i,linePitch:e,gridType:s,lineSpacing:o,spacingRule:a,snapToGrid:c}}function w4(r,n){const{paragraphStyle:t={}}=n,{charSpace:e=0,gridType:s=f.GridType.LINES,defaultTabStop:i=36,documentTextStyle:o={}}=r,{fs:a=U7}=o,{snapToGrid:c=f.BooleanNumber.TRUE}=t;return{charSpace:e,documentFontSize:a,defaultTabStop:i,gridType:s,snapToGrid:c}}function j2(r,n=-1){r[0];let t=n;for(const e of r){const{sections:s}=e,i=t;let o=i,a=-1/0,c=0;for(const l of s){const{columns:u}=l,h=o;let g=h,p=-1/0,m=0;for(const v of u){const{lines:b}=v,S=g;let E=S,y=0,T=-1/0,F=null;for(const O of b){const{divides:w,lineHeight:R}=O,x=E;let $=x,A=0,k=0;y+=R;const N=w.length;for(let I=0;I<N;I++){const L=w[I],{spanGroup:X}=L,H=$;let z=H;for(const Y of X){const J=Y.spanType===a1.LIST?0:Y.count;z+=J;const W=Y.bBox,{ba:j}=W;k=Math.max(k,j),I===N-1&&(A+=Y.width)}I===N-1&&(A+=L.left),X.length!==0&&(L.st=H===0?0:H+1,L.ed=z>=L.st?z:L.st,$=L.ed)}O.st=x===0?0:x+1,O.ed=$>=O.st?$:O.st,O.width=A,O.asc=k,T=Math.max(T,A),O.top=((F==null?void 0:F.top)||0)+((F==null?void 0:F.lineHeight)||0),F=O,E=O.ed}v.st=S===0?0:S+1,v.ed=E>=v.st?E:v.st,v.height=y,v.width=T,m+=T,p=Math.max(p,v.height),g=v.ed}l.st=h===0?0:h+1,l.ed=g>=l.st?g:l.st,l.height=p,c+=p,a=Math.max(a,m),o=l.ed}e.st=i===0?0:i+1,e.ed=o>=e.st?o:e.st,e.height=c,e.width=a,t=e.ed}}function O_(r,n){for(const t of r){const{sections:e}=t;for(const s of e){const{columns:i}=s;for(const o of i){const{lines:a}=o;for(const c of a){const{divides:l,lineHeight:u}=c,h=l.length;for(let g=0;g<h;g++){const p=l[g],{spanGroup:m}=p;for(const v of m)n&&Q2(n)&&n(v)}}}}}}function B4(r,n){for(const t of r){const{sections:e}=t;for(const s of e){const{columns:i}=s;for(const o of i){const{lines:a}=o;for(const c of a)n&&Q2(n)&&n(c)}}}}function A4(r,n){for(const t of r){const{sections:e}=t;for(const s of e){const{columns:i}=s;for(const o of i)n&&Q2(n)&&n(o)}}}function R4(r,n,t,e,s=!1){const{relativeFrom:i,align:o,posOffset:a,percent:c}=r;if(o!=null)if(o===f.AlignTypeH.INSIDE||o===f.AlignTypeH.OUTSIDE)i===f.ObjectRelativeFromH.MARGIN||f.ObjectRelativeFromH.PAGE;else{if(i===f.ObjectRelativeFromH.COLUMN){const{width:l,left:u}=n;let h=0;return o===f.AlignTypeH.LEFT?h=u:o===f.AlignTypeH.RIGHT?h=u+l-e:o===f.AlignTypeH.CENTER&&(h=u+l/2-e/2),h}if(i!==f.ObjectRelativeFromH.LEFT_MARGIN){if(i!==f.ObjectRelativeFromH.MARGIN){if(i!==f.ObjectRelativeFromH.RIGHT_MARGIN){if(i!==f.ObjectRelativeFromH.INSIDE_MARGIN){if(i!==f.ObjectRelativeFromH.OUTSIDE_MARGIN){if(i===f.ObjectRelativeFromH.PAGE){const{pageWidth:l}=t;let u=0;return o===f.AlignTypeH.RIGHT?u=l-e:o===f.AlignTypeH.CENTER&&(u=l/2-e/2),u}}}}}}}else if(a){const{pageWidth:l,marginLeft:u,marginRight:h}=t,g=l-h;let p=0;return i===f.ObjectRelativeFromH.COLUMN?p=(s?0:(n==null?void 0:n.left)||0)+a:i===f.ObjectRelativeFromH.LEFT_MARGIN||(i===f.ObjectRelativeFromH.MARGIN?p=a+u:i===f.ObjectRelativeFromH.RIGHT_MARGIN||i===f.ObjectRelativeFromH.INSIDE_MARGIN||i===f.ObjectRelativeFromH.OUTSIDE_MARGIN||i===f.ObjectRelativeFromH.PAGE&&(p=a)),p+e>g&&(p=g-e),p}else if(c){const{pageWidth:l,marginLeft:u,marginRight:h}=t;if(i!==f.ObjectRelativeFromH.LEFT_MARGIN){if(i!==f.ObjectRelativeFromH.MARGIN){if(i!==f.ObjectRelativeFromH.RIGHT_MARGIN){if(i!==f.ObjectRelativeFromH.INSIDE_MARGIN){if(i!==f.ObjectRelativeFromH.OUTSIDE_MARGIN){if(i===f.ObjectRelativeFromH.PAGE)return c*l}}}}}}}function x4(r,n,t,e,s,i,o=!1){const{relativeFrom:a,align:c,posOffset:l,percent:u}=r;if(c!=null){if(a===f.ObjectRelativeFromV.LINE){let h=0;return c===f.AlignTypeV.BOTTOM?h=t+e-s:c===f.AlignTypeV.TOP?h=t:c===f.AlignTypeV.CENTER&&(h=t+e/2-s/2),h}if(a!==f.ObjectRelativeFromV.TOP_MARGIN){if(a!==f.ObjectRelativeFromV.MARGIN){if(a!==f.ObjectRelativeFromV.BOTTOM_MARGIN){if(a!==f.ObjectRelativeFromV.INSIDE_MARGIN){if(a!==f.ObjectRelativeFromV.OUTSIDE_MARGIN){if(a===f.ObjectRelativeFromV.PAGE){const{pageHeight:h}=n;let g=0;return c===f.AlignTypeV.BOTTOM?g=h-s:c===f.AlignTypeV.CENTER&&(g=h/2-s/2),g}}}}}}}else if(l){let h=0;return a===f.ObjectRelativeFromV.LINE?h=t||0+l:a===f.ObjectRelativeFromV.TOP_MARGIN||a===f.ObjectRelativeFromV.MARGIN||a===f.ObjectRelativeFromV.BOTTOM_MARGIN||a===f.ObjectRelativeFromV.INSIDE_MARGIN||a===f.ObjectRelativeFromV.OUTSIDE_MARGIN||(a===f.ObjectRelativeFromV.PAGE?h=l:a===f.ObjectRelativeFromV.PARAGRAPH&&(h=(o?0:i??t)+l)),h}else if(u){const{pageHeight:h,marginBottom:g,marginTop:p}=n;if(a!==f.ObjectRelativeFromV.TOP_MARGIN){if(a!==f.ObjectRelativeFromV.MARGIN){if(a!==f.ObjectRelativeFromV.BOTTOM_MARGIN){if(a!==f.ObjectRelativeFromV.INSIDE_MARGIN){if(a!==f.ObjectRelativeFromV.OUTSIDE_MARGIN){if(a===f.ObjectRelativeFromV.PAGE)return u*h}}}}}}}function M4(r){const n=r.spanGroup;let t=0;for(const e of n)t+=e.width;return t}const E6=new f.ObjectMatrix;function L4(){E6.reset()}function V1(r,n,t,e,s){const{startIndex:i}=t,o=n.getTextRun(r+i)||{ts:{},st:0,ed:0},{ts:a={},st:c,ed:l}=o,u=E6.getValue(c,l);if(u)return u;const{gridType:h=f.GridType.LINES,charSpace:g=0,documentTextStyle:p={},pageSize:m={width:1/0,height:1/0},marginRight:v=0,marginLeft:b=0,localeService:S}=e,{snapToGrid:E=f.BooleanNumber.TRUE}=s,y=E2(a),T={...p,...a},F=m.width||1/0-b-v,O={fontStyle:y,textStyle:T,charSpace:g,gridType:h,snapToGrid:E,pageWidth:F};return E6.setValue(c,l,O),O}function I4(r,n,t){return s6(a1.WORD,r,n,t)}function R2(r,n,t){return s6(a1.LETTER,r,n,t)}function P4(r,n){return s6(a1.TAB,f.DataStreamTreeTokenType.TAB,r,n)}function s6(r,n,t,e){const{fontStyle:s,textStyle:i,charSpace:o=1,gridType:a=f.GridType.LINES,snapToGrid:c=f.BooleanNumber.FALSE}=t,l=[f.DataStreamTreeTokenType.SECTION_BREAK,f.DataStreamTreeTokenType.TABLE_START,f.DataStreamTreeTokenType.TABLE_END,f.DataStreamTreeTokenType.TABLE_ROW_START,f.DataStreamTreeTokenType.TABLE_ROW_END,f.DataStreamTreeTokenType.TABLE_CELL_START,f.DataStreamTreeTokenType.TABLE_CELL_END,f.DataStreamTreeTokenType.CUSTOM_RANGE_START,f.DataStreamTreeTokenType.CUSTOM_RANGE_END,f.DataStreamTreeTokenType.COLUMN_BREAK,f.DataStreamTreeTokenType.PAGE_BREAK,f.DataStreamTreeTokenType.DOCS_END,f.DataStreamTreeTokenType.CUSTOM_BLOCK];let u=f.DataStreamTreeTokenType.LETTER;if(l.indexOf(n)>-1)return{content:"",ts:i,fontStyle:s,width:0,bBox:{width:0,ba:0,bd:0,aba:0,abd:0,sp:0,sbr:0,sbo:0,spr:0,spo:0},paddingLeft:0,left:0,spanType:a1.PLACEHOLDER,streamType:n,count:1};n===f.DataStreamTreeTokenType.PARAGRAPH&&(u=f.DataStreamTreeTokenType.PARAGRAPH);const h=B1.getTextSize(n,s),{width:g=0}=h;let p=e??g,m=0;return U6(a,c)&&(p=g+(t6(n)?o:o/2),a===f.GridType.SNAP_TO_CHARS&&(m=(p-g)/2)),{content:n,ts:i,fontStyle:s,width:p,bBox:h,paddingLeft:m,left:0,spanType:r,streamType:u,count:n.length}}function $4(r,n,t){const{bBox:e,symbol:s,ts:i,fontStyle:o,bulletAlign:a=f.BulletAlignment.START,bulletType:c=!1}=n,l=e.width,u=Math.ceil(l/t);let h=(u<2?2:u)*t,g=0;c&&(a===f.BulletAlignment.CENTER?(g=-l/2,h-=g):a===f.BulletAlignment.END&&(g=-l,h-=g));const p=B_(r,n);return{content:s,ts:i,fontStyle:o,width:h,paddingLeft:0,bBox:p,left:g,spanType:a1.LIST,streamType:f.DataStreamTreeTokenType.LETTER,count:0}}function k4(r,n=0){const t=r.length;let e;for(let s=0;s<t;s++){const i=r[s];i.left=e?e.left+e.width:n,e=i}}function w_(r,n=0){r.left=n}function N2(r,n,t=0){k4(n,t);for(const e of n)e.parent=r;r.spanGroup.push(...n)}function B_(r,n){const{ba:t,bd:e}=r.bBox,{ba:s,bd:i}=n.bBox;return t+e>s+i?r.bBox:n.bBox}function N4(r,n){if(r==null)return!1;const{content:t}=r,{content:e}=n;if(t==null||e==null)return!1;const s=/[a-z\d]/i;return s.test(t)&&W2(e)||W2(t)&&s.test(e)}function H4(r,n,t,e,s,i){const o=[];let a=0;for(let c=0;c<n.length;c++){const l=n[c];if(n4(l))break;const u=V1(r+c,t,e,s,i),h=R2(l,u);o.push(h),a++}return{step:a,spanGroup:o}}function X4(r,n,t,e,s,i){const o=V1(r,t,e,s,i),a=[];let c=0;for(let l=0;l<n.length;l++){const u=n[l];if($6(u))a.unshift(u),c++;else break}return{step:c,spanGroup:[R2(a.join(""),o)]}}function z4(r,n,t,e,s,i){const o=V1(r,t,e,s,i),a=n.match(P6);return{step:a[0].length,spanGroup:[R2(a[0],o)]}}function W4(r,n,t,e,s,i){const o=V1(r,t,e,s,i),a=[];let c=0;for(let l=0;l<n.length;l++){const u=n[l];if(k6(u))a.push(u),c++;else break}return{step:c,spanGroup:[I4(a.join(""),o)]}}function Y4(r,n,t,e,s=0,i=!1,o,a,c){const{lineHeight:l=15.6,lineTop:u=0,contentHeight:h=0,paddingLeft:g=0,paddingRight:p=0,paddingTop:m=0,paddingBottom:v=0,marginTop:b=0,spaceBelowApply:S=0}=t,E=P_(n,r);E.lineIndex=s,E.paragraphStart=i,E.contentHeight=h,E.top=u,E.lineHeight=l,E.paddingTop=m,E.paddingBottom=v,E.marginTop=b,E.spaceBelowApply=S,E.divides=A_(l,u,e,g,p,o,a,c);for(const y of E.divides)y.parent=E;return E}function j4(r=15.6,n=0,t,e,s){let i=n;return e==null||e.forEach(o=>{const a=u6(o,r,n);a&&(i=Math.max(i,a))}),s==null||s.forEach(o=>{const a=u6(o,r,n);a&&(i=Math.max(i,a))}),t==null||t.forEach(o=>{const a=u6(o,r,n);a&&(i=Math.max(i,a))}),i}function u6(r,n,t){const{aTop:e,height:s,aLeft:i,width:o,angle:a=0,drawingOrigin:c}=r,{layoutType:l,distT:u=0,distB:h=0}=c;if(l!==f.PositionedObjectLayoutType.WRAP_TOP_AND_BOTTOM)return;if(a===0){const m=e-u,v=s+h;return m+v<t||m>n+t?void 0:m+s}let{top:g=0,height:p=0}=V4(a,i,o,e,s);if(g-=u,p+=h,!(g+p<t||g>n+t))return g+p}function A_(r,n,t,e,s,i,o,a){const c=[];return c.push({left:0,width:e},{left:t-s,width:s}),o==null||o.forEach((l,u)=>{const h=h6(l,r,n,t);h&&c.push(h)}),a==null||a.forEach((l,u)=>{const h=h6(l,r,n,t);h&&c.push(h)}),i==null||i.forEach((l,u)=>{const h=h6(l,r,n,t);h&&c.push(h)}),I_(t,c)}function U4(r,n){r.isFull=n}function R_(r,n){r.marginBottom=n}function x_(r){}function h6(r,n,t,e){const{aTop:s,height:i,aLeft:o,width:a,angle:c=0,drawingOrigin:l}=r,{layoutType:u}=l;if(u===f.PositionedObjectLayoutType.WRAP_NONE||u===f.PositionedObjectLayoutType.WRAP_TOP_AND_BOTTOM)return;if(u===f.PositionedObjectLayoutType.WRAP_POLYGON){const{start:g=[0,0],lineTo:p}=l;if(!p)return;const m=[];m.push(new B(g[0],g[1]));for(let v=0;v<p.length;v++){const b=p[v];m.push(new B(b[0],b[1]))}if(c!==0){const v=new o1().rotate(c);for(let b=0;b<m.length;b++){const S=m[b];m[b]=v.applyPoint(S)}}return C7(m,t,n,e)}if(c===0)return S7(s,i,o,a,t,n,e,l);const h=V4(c,o,a,s,i);if(u===f.PositionedObjectLayoutType.WRAP_SQUARE){const{left:g,width:p,top:m,height:v}=h;return S7(m,v,g,p,t,n,e,l)}return C7(h.points,t,n,e)}function V4(r,n,t,e,s){const i=new o1().rotate(r),o=new B(n,e),a=new B(n,e+s),c=new B(n+t,e),l=new B(n+t,e+s);return i.makeBoundingBoxFromPoints([o,a,c,l])}function C7(r,n,t,e){const s=new D4(r),i=s.intersection([new B(0,n),new B(e,n)]),o=s.intersection([new B(0,n+t),new B(e,n+t)]);if(!i&&!o)return;const a=M_([...r,...i||[],...o||[]]);return{left:a.min,width:a.max}}function M_(r,n=0){const t=[];for(let e=0;e<r.length;e++){const s=r[e];n===0?t.push(s.x):t.push(s.y)}return{max:Math.max(...t),min:Math.min(...t)}}function S7(r,n,t,e,s,i,o,a){const{layoutType:c,wrapText:l=f.WrapTextType.BOTH_SIDES,distL:u=0,distR:h=0,distT:g=0,distB:p=0}=a,m=r-(c===f.PositionedObjectLayoutType.WRAP_SQUARE?g:0),v=n+(c===f.PositionedObjectLayoutType.WRAP_SQUARE?p:0);if(m+v<s||m>i+s)return;let b=t-u,S=e+h;const E=L_(l,b,S,o);return E===1?S=o-b:E===2&&(b=0,S=t+e+h),{left:b,width:S}}function L_(r,n,t,e){let s=0;return r===f.WrapTextType.LEFT?s=1:r===f.WrapTextType.RIGHT?s=2:r===f.WrapTextType.LARGEST&&(n>e-n-t?s=1:s=2),s}function I_(r,n){n.sort((i,o)=>i.left>o.left?1:-1);const t=[];let e=0;const s=n.length;for(let i=0;i<s;i++){const o=n[i],{left:a,width:c}=o;if(a>e){let l=a-e;l=l<r?l:r-e;const u=E7(e,l);t.push(u)}if(e=Math.max(a+c,e),i===s-1&&a+c<r){const l=E7(a+c,r-a-c);t.push(l)}}return t}function E7(r,n){return{spanGroup:[],width:n,left:r,paddingLeft:0,isFull:!1,st:0,ed:0}}function P_(r,n){return{paragraphIndex:n,type:r,divides:[],lineHeight:0,contentHeight:0,top:0,asc:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0,spaceBelowApply:0,divideLen:0,st:-1,ed:-1,lineIndex:0,paragraphStart:!1}}function G4(r,n,t,e){if(e)if(e.has(r)){const s=e.get(r);s==null||s.elements.push(n)}else e.set(r,{elements:[n],paragraphIndex:r,top:t})}function G6(r,n,t,e,s,i){const o=[],a=new Map;for(const c of n.children){let l=[],u=t;o.length>0&&(u=o[o.length-1]),c.nodeType===f.DataStreamTreeNodeType.PARAGRAPH?l=ut(r,c,u,e,s):(c.nodeType,f.DataStreamTreeNodeType.TABLE),l.length===0&&(l=b4()),$_(o,l)}return{pages:o,renderedBlockIdMap:a}}function $_(r,n){const t=r.length-1,e=r[t],s=n[0];e===s&&n.splice(0,1),r.push(...n)}function k_(){}function K6(r=[],n=f.ColumnSeparatorType.NONE,t=0,e=0,s=1/0,i=1/0){const o=[];let a=0,c=0;if(r.length===0)o.push(_6(e,s,0,f.ColumnSeparatorType.NONE));else for(let u=0;u<r.length;u++){const{width:h,paddingEnd:g}=r[u];c=g,a=h,o.push(_6(e,a,c,n)),e+=a+c,u===r.length-1&&(a=s!==1/0?s-a:h,c=0,o.push(_6(e,a,c,n)))}const l={columns:o,colCount:(r==null?void 0:r.length)||1,height:i,top:t,st:0,ed:0};return o.forEach(u=>{u.parent=l}),l}function q6(r,n){r.isFull=n}function _6(r,n,t,e){return{lines:[],left:r,width:n,height:0,spaceWidth:t,separator:e,st:0,ed:0,drawingLRIds:[],isFull:!1}}function o2(r,n,t=1,e=r2.SECTION){var _1,v1,D1,l1;const s=N_(),{pageNumberStart:i=1,pageSize:o={width:1/0,height:1/0},pageOrient:a=f.PageOrientType.PORTRAIT,headerIds:c={},footerIds:l={},useFirstPageHeaderFooter:u,useEvenPageHeaderFooter:h,footerTreeMap:g,headerTreeMap:p,columnProperties:m=[],columnSeparatorType:v,marginTop:b=0,marginBottom:S=0,marginHeader:E=0,marginFooter:y=0,marginLeft:T=0,marginRight:F=0,renderConfig:O={}}=r,{skeHeaders:w,skeFooters:R}=n,{width:x=1/0,height:$=1/0}=o;s.pageNumber=t,s.pageNumberStart=i,s.renderConfig=O,s.marginLeft=T,s.marginRight=F,s.breakType=e,s.pageWidth=x,s.width=0,s.pageHeight=$,s.height=0,s.pageOrient=a;const{defaultHeaderId:A,evenPageHeaderId:k,firstPageHeaderId:N}=c,{defaultFooterId:I,evenPageFooterId:L,firstPageFooterId:X}=l;let H=A??"",z=I??"";t===i&&u?(H=N??"",z=X??""):t%2===0&&h&&(H=k??"",z=L??"");let Y,J;H&&((_1=w.get(H))!=null&&_1.has(x)?Y=(v1=w.get(H))==null?void 0:v1.get(x):p&&p.has(H)&&(Y=y7(p.get(H),r,n),w.set(H,new Map([[x,Y]]))),s.headerId=H),z&&((D1=R.get(z))!=null&&D1.has(x)?J=(l1=R.get(z))==null?void 0:l1.get(x):g&&g.has(z)&&(J=y7(g.get(z),r,n),R.set(H,new Map([[x,J]]))),s.footerId=z),s.marginTop=T7(b,E,Y),s.marginBottom=T7(S,y,J);const W=s.sections,j=W[W.length-1],{marginTop:G,marginBottom:s1,marginLeft:t1,marginRight:Z}=s,Q=x-t1-Z,U=$-G-s1;let V=0;j&&(V=j.top+j.height);const r1=K6(m,v,V,0,Q,U-V);return r1.parent=s,W.push(r1),s}function N_(){return{sections:[],headerId:"",footerId:"",pageWidth:0,pageHeight:0,pageOrient:f.PageOrientType.PORTRAIT,pageNumber:1,pageNumberStart:1,verticalAlign:!1,angle:0,width:0,height:0,marginLeft:0,marginRight:0,marginTop:0,marginBottom:0,breakType:r2.SECTION,st:0,ed:0,skeDrawings:new Map}}function y7(r,n,t,e=!0){const{lists:s,footerTreeMap:i,headerTreeMap:o,localeService:a,pageSize:c,marginLeft:l=0,marginRight:u=0,drawings:h,marginTop:g=0,marginBottom:p=0,marginHeader:m=0,marginFooter:v=0}=n,b=(c==null?void 0:c.width)||1/0,S={lists:s,footerTreeMap:i,headerTreeMap:o,pageSize:{width:b-l-u,height:1/0},localeService:a,drawings:h},E=o2(S,t),y=G6(r,r.children[0],E,S,t).pages[0];j2([y]);const T=y.sections[0].columns[0],F=T.height||0,{skeDrawings:O,st:w,ed:R}=y,x={lines:T.lines,skeDrawings:O,height:F,st:w,ed:R,marginLeft:l,marginRight:u};return e?{...x,marginTop:H_(g,m,F)}:{...x,marginBottom:X_(p,v,F)}}function T7(r,n,t){return!t||t.lines.length===0?r:Math.max(r,n,(t==null?void 0:t.height)||0)}function H_(r,n,t){const e=Math.max(r,n);return t>e?0:e-t}function X_(r,n,t){const e=Math.max(r,n);return t>e?0:e-t}function y6(r,n,t,e,s=!1){if(s)if(e.bulletSkeleton){const{bulletSkeleton:i,paragraphStyle:o={}}=e,{gridType:a=f.GridType.LINES,charSpace:c=0,defaultTabStop:l=1}=t,{snapToGrid:u=f.BooleanNumber.TRUE}=o,h=n6(c,l,a,u);G_(o,i,h);const g=$4(r[0],i,h);W1([g,...r],n,t,e,s)}else W1(r,n,t,e,s);else U2(r,n,t,e,s);return[...n]}function U2(r,n,t,e,s=!1,i=!0,o){var l;const a=U1(n),c=j6(a);if(c){const u=F7(r),{divide:h}=c,g=(l=h==null?void 0:h.spanGroup)==null?void 0:l[h.spanGroup.length-1],p=(g==null?void 0:g.width)||0,m=(g==null?void 0:g.left)||0,v=N4(g,r[0]);let b=0,S=p+m;if(v&&i){const E=W2(g.content),y=" ";b=B1.getTextSize(y,E?r[0].fontStyle:g.fontStyle).width,S+=b,g.width+=b}if(S+u>h.width)if(U4(h,!0),c.isLast&&r.length===1&&(r[0].content===f.DataStreamTreeTokenType.SPACE||r[0].content===f.DataStreamTreeTokenType.PARAGRAPH))N2(h,r,S);else if((h==null?void 0:h.spanGroup.length)===0){const E=[];for(;r.length&&(E.push(r.shift()),!(F7(E)>h.width)););N2(h,E,S),r.length&&W1(r,n,t,e,s,o)}else W1(r,n,t,e,s,o);else{const E=h.parent,y=U_(r);if(E&&y&&!K_(E)){const{paragraphLineGapDefault:T,linePitch:F,lineSpacing:O,spacingRule:w,snapToGrid:R,gridType:x}=V6(t,e),{boundingBoxAscent:$,boundingBoxDescent:A}=y,k=$+A,{contentHeight:N}=J4(k,T,F,x,O,w,R);if(E.contentHeight<N){const I=V_(E),L=I.length;let X=[],H=1;L>2&&I[0].spanType===a1.LIST?(X=[I[0],I[1]],H=2):X=[I[0]];const z=E.parent,{paragraphStart:Y}=z==null?void 0:z.lines.pop();W1(X,n,t,e,Y,$+A);for(let J=H;J<I.length;J++)U2([I[J]],n,t,e,s,!1);U2(r,n,t,e,s,!1);return}}N2(h,r,S)}}else W1(r,n,t,e,s,o)}function W1(r,n,t,e,s=!1,i){var k1,q1,O1,J1,N1;let o=U1(n),a=F2(o);if((!a||!a.column)&&(q4(r,n,t,e),o=U1(n),a=F2(o)),!a)return;const c=a.column,l=T4(c),{ba:u,bd:h}=r[0].bBox,g=i||u+h,{paragraphStyle:p={},paragraphAffectSkeDrawings:m,skeHeaders:v,skeFooters:b,drawingAnchor:S,paragraphIndex:E}=e,{spaceAbove:y=0,spaceBelow:T=0,indentFirstLine:F=0,hanging:O=0,indentStart:w=0,indentEnd:R=0}=p,{paragraphLineGapDefault:x,linePitch:$,lineSpacing:A,spacingRule:k,snapToGrid:N,gridType:I}=V6(t,e),{paddingTop:L,paddingBottom:X,contentHeight:H,lineSpacingApply:z}=J4(g,x,$,I,A,k,N),{marginTop:Y,spaceBelowApply:J}=W_(z,y,T,s,l),W=Y+L+H+X;let j=c.parent;j||(j=u2(o));const G=(l==null?void 0:l.lineHeight)||0,s1=(l==null?void 0:l.top)||0,t1=G+s1,{pageWidth:Z,headerId:Q,footerId:U}=o,V=(q1=(k1=v==null?void 0:v.get(Q))==null?void 0:k1.get(Z))==null?void 0:q1.skeDrawings,r1=(J1=(O1=b==null?void 0:b.get(U))==null?void 0:O1.get(Z))==null?void 0:J1.skeDrawings;Y_(t1,W,c,(N1=S==null?void 0:S.get(E))==null?void 0:N1.top,m);const _1=j4(W,t1,o.skeDrawings,V,r1);if(W+_1>j.height&&c.lines.length>0&&o.sections.length>0){q6(c,!0),K4(r,n,t,e,s,i);return}const v1=l?l.lineIndex+1:0,{charSpace:D1,defaultTabStop:l1}=w4(t,e),T1=n6(D1,l1,I,N),{paddingLeft:$1,paddingRight:K1,changeBulletWidth:u1}=z_(r[0],F,O,w,R,T1);u1.state&&(r[0].width=u1.hangingNumber);const F1=Y4(E,A2.PARAGRAPH,{lineHeight:W,contentHeight:H,lineTop:_1,paddingLeft:$1,paddingRight:K1,paddingTop:L,paddingBottom:X,marginTop:Y,spaceBelowApply:J},c.width,v1,s,o.skeDrawings,V,r1);c.lines.push(F1),F1.parent=c,G4(E,F1,t1,S),U2(r,n,t,e,s,!0,i)}function K4(r,n,t,e,s=!1,i){const o=U1(n);F4(o)===!0?q4(r,n,t,e,s,i):W1(r,n,t,e,s,i)}function q4(r,n,t,e,s=!1,i){const o=U1(n),{skeHeaders:a,skeFooters:c}=e;n.push(o2(t,{skeHeaders:a,skeFooters:c},o==null?void 0:o.pageNumber)),K4(r,n,t,e,s,i)}function z_(r,n=0,t=0,e=0,s=0,i){const{spanType:o=a1.LETTER,bBox:a}=r,c=R1(n,i),l=R1(t,i),u=R1(e,i),h=R1(s,i);let g=u;const p=h,m={state:!1,hangingNumber:0};if(o===a1.LIST){const{width:v}=a;c>0?g+=c:l>0&&l>v&&(m.state=!0,m.hangingNumber=l)}else g+=l;return{paddingLeft:g,paddingRight:p,changeBulletWidth:m}}function W_(r=0,n=0,t=0,e,s){let i=0,o=0;if(!e)return{marginTop:i,spaceBelowApply:o};if(i=R1(n,r),o=R1(t,r),s){const{spaceBelowApply:a}=s;a>i&&(i=0,s.lineHeight+=a,s.marginBottom=a)}return{marginTop:i,spaceBelowApply:o}}function J4(r,n,t,e,s,i,o){let a=n,c=n;if(e===f.GridType.DEFAULT||o===f.BooleanNumber.FALSE)return i===f.SpacingRule.AUTO?{paddingTop:a,paddingBottom:c,contentHeight:s*r,lineSpacingApply:r}:{paddingTop:a,paddingBottom:c,contentHeight:Math.max(s,r),lineSpacingApply:s};let l=0;return i===f.SpacingRule.AUTO?l=s*t:l=s,r+n*2<l&&(a=c=(l-r)/2),{paddingTop:a,paddingBottom:c,contentHeight:r,lineSpacingApply:l}}function Y_(r,n,t,e,s){var c;if(!s)return;const i=(c=t.parent)==null?void 0:c.parent;if(!i)return;const o=new Map,a=j_(t);s.forEach(l=>{if(!l)return;const{initialState:u,drawingOrigin:h}=l;if(u||!h)return;const{objectTransform:g}=h,{positionH:p,positionV:m,size:v,angle:b}=g,{width:S=0,height:E=0}=v;l.aLeft=R4(p,t,i,S,a)||0,l.aTop=x4(m,i,r,n,E,e,a)||0,l.width=S,l.height=E,l.angle=b,l.initialState=!0,o.set(l.objectId,l)}),i.skeDrawings=new Map([...i.skeDrawings,...o])}function j_(r){const n=r.parent;if(!n)return!1;const t=n==null?void 0:n.columns;if(!t)return!1;const e=t.length;for(let s=e-1;s>=0;s--){const o=t[s].lines,a=o.length;if(!(a<=0)){for(let c=a-1;c>=0;c--)if(o[c].paragraphStart)return!1}}return!0}function F7(r){const n=r.length;let t=0;for(let e=0;e<n;e++){const s=r[e];t+=s.width}return t}function U_(r){const n=r.length;let t=-1/0,e;for(let s=0;s<n;s++){const i=r[s],{ba:o,bd:a}=i.bBox;t<o+a&&(e={boundingBoxAscent:o,boundingBoxDescent:a}),t=o+a}return e}function V_(r){const n=r.divides,t=n.length,e=[];for(let s=0;s<t;s++){const i=n[s];e.push(...i.spanGroup)}return e}function G_(r,n,t){const{hanging:e,indentStart:s}=r,{hanging:i,indentStart:o}=n;e===void 0&&(r.hanging=i),s===void 0&&(r.indentStart=R1(o||0,t)-R1(i||0,t))}function K_(r){return!r.divides[0].spanGroup[0]}function Z4(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var J6=0,Q4=-3;function O2(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function q_(r,n){this.source=r,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=n,this.destLen=0,this.ltree=new O2,this.dtree=new O2}var tt=new O2,et=new O2,Z6=new Uint8Array(30),Q6=new Uint16Array(30),nt=new Uint8Array(30),st=new Uint16Array(30),J_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),O7=new O2,C1=new Uint8Array(320);function it(r,n,t,e){var s,i;for(s=0;s<t;++s)r[s]=0;for(s=0;s<30-t;++s)r[s+t]=s/t|0;for(i=e,s=0;s<30;++s)n[s]=i,i+=1<<r[s]}function Z_(r,n){var t;for(t=0;t<7;++t)r.table[t]=0;for(r.table[7]=24,r.table[8]=152,r.table[9]=112,t=0;t<24;++t)r.trans[t]=256+t;for(t=0;t<144;++t)r.trans[24+t]=t;for(t=0;t<8;++t)r.trans[168+t]=280+t;for(t=0;t<112;++t)r.trans[176+t]=144+t;for(t=0;t<5;++t)n.table[t]=0;for(n.table[5]=32,t=0;t<32;++t)n.trans[t]=t}var w7=new Uint16Array(16);function d6(r,n,t,e){var s,i;for(s=0;s<16;++s)r.table[s]=0;for(s=0;s<e;++s)r.table[n[t+s]]++;for(r.table[0]=0,i=0,s=0;s<16;++s)w7[s]=i,i+=r.table[s];for(s=0;s<e;++s)n[t+s]&&(r.trans[w7[n[t+s]]++]=s)}function Q_(r){r.bitcount--||(r.tag=r.source[r.sourceIndex++],r.bitcount=7);var n=r.tag&1;return r.tag>>>=1,n}function E1(r,n,t){if(!n)return t;for(;r.bitcount<24;)r.tag|=r.source[r.sourceIndex++]<<r.bitcount,r.bitcount+=8;var e=r.tag&65535>>>16-n;return r.tag>>>=n,r.bitcount-=n,e+t}function T6(r,n){for(;r.bitcount<24;)r.tag|=r.source[r.sourceIndex++]<<r.bitcount,r.bitcount+=8;var t=0,e=0,s=0,i=r.tag;do e=2*e+(i&1),i>>>=1,++s,t+=n.table[s],e-=n.table[s];while(e>=0);return r.tag=i,r.bitcount-=s,n.trans[t+e]}function td(r,n,t){var e,s,i,o,a,c;for(e=E1(r,5,257),s=E1(r,5,1),i=E1(r,4,4),o=0;o<19;++o)C1[o]=0;for(o=0;o<i;++o){var l=E1(r,3,0);C1[J_[o]]=l}for(d6(O7,C1,0,19),a=0;a<e+s;){var u=T6(r,O7);switch(u){case 16:var h=C1[a-1];for(c=E1(r,2,3);c;--c)C1[a++]=h;break;case 17:for(c=E1(r,3,3);c;--c)C1[a++]=0;break;case 18:for(c=E1(r,7,11);c;--c)C1[a++]=0;break;default:C1[a++]=u;break}}d6(n,C1,0,e),d6(t,C1,e,s)}function B7(r,n,t){for(;;){var e=T6(r,n);if(e===256)return J6;if(e<256)r.dest[r.destLen++]=e;else{var s,i,o,a;for(e-=257,s=E1(r,Z6[e],Q6[e]),i=T6(r,t),o=r.destLen-E1(r,nt[i],st[i]),a=o;a<o+s;++a)r.dest[r.destLen++]=r.dest[a]}}}function ed(r){for(var n,t,e;r.bitcount>8;)r.sourceIndex--,r.bitcount-=8;if(n=r.source[r.sourceIndex+1],n=256*n+r.source[r.sourceIndex],t=r.source[r.sourceIndex+3],t=256*t+r.source[r.sourceIndex+2],n!==(~t&65535))return Q4;for(r.sourceIndex+=4,e=n;e;--e)r.dest[r.destLen++]=r.source[r.sourceIndex++];return r.bitcount=0,J6}function nd(r,n){var t=new q_(r,n),e,s,i;do{switch(e=Q_(t),s=E1(t,2,0),s){case 0:i=ed(t);break;case 1:i=B7(t,tt,et);break;case 2:td(t,t.ltree,t.dtree),i=B7(t,t.ltree,t.dtree);break;default:i=Q4}if(i!==J6)throw new Error("Data error")}while(!e);return t.destLen<t.dest.length?typeof t.dest.slice=="function"?t.dest.slice(0,t.destLen):t.dest.subarray(0,t.destLen):t.dest}Z_(tt,et);it(Z6,Q6,4,3);it(nt,st,2,1);Z6[28]=0;Q6[28]=258;var sd=nd;const id=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,A7=(r,n,t)=>{let e=r[n];r[n]=r[t],r[t]=e},rd=r=>{const n=r.length;for(let t=0;t<n;t+=4)A7(r,t,t+3),A7(r,t+1,t+2)},od=r=>{id&&rd(r)};var ad={swap32LE:od};const R7=sd,{swap32LE:cd}=ad,t7=11,Y1=5,ld=t7-Y1,ud=65536>>t7,hd=1<<ld,_d=hd-1,H2=2,dd=1<<Y1,f6=dd-1,rt=65536>>Y1,fd=1024>>Y1,gd=rt+fd,Dd=gd,pd=32,md=Dd+pd,bd=1<<H2;class vd{constructor(n){const t=typeof n.readUInt32BE=="function"&&typeof n.slice=="function";if(t||n instanceof Uint8Array){let e;if(t)this.highStart=n.readUInt32LE(0),this.errorValue=n.readUInt32LE(4),e=n.readUInt32LE(8),n=n.slice(12);else{const s=new DataView(n.buffer);this.highStart=s.getUint32(0,!0),this.errorValue=s.getUint32(4,!0),e=s.getUint32(8,!0),n=n.subarray(12)}n=R7(n,new Uint8Array(e)),n=R7(n,new Uint8Array(e)),cd(n),this.data=new Uint32Array(n.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=n)}get(n){let t;return n<0||n>1114111?this.errorValue:n<55296||n>56319&&n<=65535?(t=(this.data[n>>Y1]<<H2)+(n&f6),this.data[t]):n<=65535?(t=(this.data[rt+(n-55296>>Y1)]<<H2)+(n&f6),this.data[t]):n<this.highStart?(t=this.data[md-ud+(n>>t7)],t=this.data[t+(n>>Y1&_d)],t=(t<<H2)+(n&f6),this.data[t]):this.data[this.data.length-bd]}}var Cd=vd;const Sd=Z4(Cd);var ot={};(function(r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(t){var e=typeof Uint8Array<"u"?Uint8Array:Array,s=43,i=47,o=48,a=97,c=65,l=45,u=95;function h(m){var v=m.charCodeAt(0);if(v===s||v===l)return 62;if(v===i||v===u)return 63;if(v<o)return-1;if(v<o+10)return v-o+26+26;if(v<c+26)return v-c;if(v<a+26)return v-a+26}function g(m){var v,b,S,E,y,T;if(m.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var F=m.length;y=m.charAt(F-2)==="="?2:m.charAt(F-1)==="="?1:0,T=new e(m.length*3/4-y),S=y>0?m.length-4:m.length;var O=0;function w(R){T[O++]=R}for(v=0,b=0;v<S;v+=4,b+=3)E=h(m.charAt(v))<<18|h(m.charAt(v+1))<<12|h(m.charAt(v+2))<<6|h(m.charAt(v+3)),w((E&16711680)>>16),w((E&65280)>>8),w(E&255);return y===2?(E=h(m.charAt(v))<<2|h(m.charAt(v+1))>>4,w(E&255)):y===1&&(E=h(m.charAt(v))<<10|h(m.charAt(v+1))<<4|h(m.charAt(v+2))>>2,w(E>>8&255),w(E&255)),T}function p(m){var v,b=m.length%3,S="",E,y;function T(O){return n.charAt(O)}function F(O){return T(O>>18&63)+T(O>>12&63)+T(O>>6&63)+T(O&63)}for(v=0,y=m.length-b;v<y;v+=3)E=(m[v]<<16)+(m[v+1]<<8)+m[v+2],S+=F(E);switch(b){case 1:E=m[m.length-1],S+=T(E>>2),S+=T(E<<4&63),S+="==";break;case 2:E=(m[m.length-2]<<8)+m[m.length-1],S+=T(E>>10),S+=T(E>>4&63),S+=T(E<<2&63),S+="=";break}return S}t.toByteArray=g,t.fromByteArray=p})(r)})(ot);const Ed=Z4(ot);var at={};const yd=5,x7=12,Td=13,Fd=16,Od=17,wd=22,M7=28,L7=31,Bd=33,X2=34,Ad=35,g6=36,F6=37,ct=38,Rd=39,xd=40,p2=41,Md=42,d=0,D=1,q=2,lt=3,C=4,Ld=[[C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,lt,C,C,C,C,C,C,C,C,C,C,C],[d,C,C,D,D,C,C,C,C,D,D,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,C,C,C,C,D,D,D,D,D,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[C,C,C,D,D,D,C,C,C,D,D,D,D,D,D,D,D,D,D,D,C,q,C,D,D,D,D,D,D,D,D,D,D],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,D,D,D,D,D,D,C,q,C,D,D,D,D,D,D,D,D,D,D],[d,C,C,D,D,D,C,C,C,d,d,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,d,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,d,D,d,D,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,d,D,D,D,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,d,d,D,D,D,D,D,D,D,d,d,C,q,C,D,D,D,D,D,d,D,D,D,d],[D,C,C,D,D,D,C,C,C,d,d,D,D,D,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,d,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,d,D,C,C,C,d,d,D,d,d,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,d,D,C,C,C,d,d,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,D,D,D,D,D,D,C,q,C,D,D,D,D,D,D,D,D,D,d],[d,C,C,D,D,D,C,C,C,d,d,d,d,d,d,D,D,D,d,C,C,q,C,d,d,d,d,d,d,d,d,D,d],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,C,d,d,d,d,d,d,d,d,d,d,d,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,D,D,D,D,D,D,C,q,C,D,D,D,D,D,D,D,D,D,D],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,D,D,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,d,D,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,q,C,D,D,D,D,d,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,D,D,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,d,D,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,d,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,d,d,D,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,D,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,d,D,D,D,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,d,C,C,C,d,d,d,d,d,d,d,d,d,d,d,C,q,C,d,d,d,d,d,d,d,d,D,d]],Id=Ed.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/"),Pd=new Sd(Id),I7=function(r){switch(r){case Bd:return x7;case Rd:case xd:case Md:return x7;case Ad:return yd;default:return r}},P7=function(r){switch(r){case F6:case ct:return X2;case p2:return wd;default:return r}};class D6{constructor(n,t=!1){this.position=n,this.required=t}}class $d{nextCodePoint(){const n=this.string.charCodeAt(this.pos++),t=this.string.charCodeAt(this.pos);return 55296<=n&&n<=56319&&56320<=t&&t<=57343?(this.pos++,(n-55296)*1024+(t-56320)+65536):n}nextCharClass(){return I7(Pd.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case p2:return!1;case X2:case F6:case ct:return this.curClass=X2,!1;case g6:return this.curClass=g6,!1}return null}getPairTableBreak(n){let t=!1;switch(Ld[this.curClass][this.nextClass]){case d:t=!0;break;case D:t=n===p2;break;case q:if(t=n===p2,!t)return t=!1,t;break;case lt:if(n!==p2)return t;break}return this.LB8a&&(t=!1),this.LB21a&&(this.curClass===Fd||this.curClass===Od)?(t=!1,this.LB21a=!1):this.LB21a=this.curClass===Td,this.curClass===M7?(this.LB30a++,this.LB30a==2&&this.nextClass===M7&&(t=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,t}nextBreak(){if(this.curClass==null){let n=this.nextCharClass();this.curClass=P7(n),this.nextClass=n,this.LB8a=n===L7,this.LB30a=0}for(;this.pos<this.string.length;){this.lastPos=this.pos;const n=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===X2||this.curClass===g6&&this.nextClass!==F6)return this.curClass=P7(I7(this.nextClass)),new D6(this.lastPos,!0);let t=this.getSimpleBreak();if(t===null&&(t=this.getPairTableBreak(n)),this.LB8a=this.nextClass===L7,t)return new D6(this.lastPos)}return this.lastPos<this.string.length?(this.lastPos=this.string.length,new D6(this.string.length)):null}constructor(n){this.string=n,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}}at=$d;function ut(r,n,t,e,s){const{gridType:i=f.GridType.LINES,charSpace:o=0,defaultTabStop:a=10.5,pageSize:c={width:1/0,height:1/0},marginRight:l=0,marginLeft:u=0,lists:h,drawings:g={},localeService:p}=e,{endIndex:m,startIndex:v,content:b="",blocks:S=[]}=n,E=r.getParagraph(m)||{startIndex:0},{paragraphStyle:y={},bullet:T}=E,{skeHeaders:F,skeFooters:O,skeListLevel:w,drawingAnchor:R}=s,x=new Map,$={paragraphIndex:m,paragraphStyle:y,paragraphAffectSkeDrawings:x,skeHeaders:F,skeFooters:O,drawingAnchor:R},A=kd(T,w),k=S4(T,h,A);Nd(T,k,w),$.bulletSkeleton=k;const{horizontalAlign:N=f.HorizontalAlign.UNSPECIFIED,snapToGrid:I=f.BooleanNumber.TRUE}=y;let L=[t];const X=new Map;for(let J=0,W=S.length;J<W;J++){const j=S[J],G=r.getCustomBlock(j);if(G==null)continue;X.set(j,G);const s1=G.blockId,t1=g[s1];t1.layoutType!==f.PositionedObjectLayoutType.INLINE&&x.set(s1,Hd(t1))}L4();const H=new at(b);let z=0,Y;for(;Y=H.nextBreak();){let W=b.slice(z,Y.position),j=z,G=[],s1=z===0;const t1=()=>{G.length!==0&&(L=y6(G,L,e,$,s1),G=[],s1=!1)};for(;W.length>0;){const Z=W[0],Q=j+v;if(Z===f.DataStreamTreeTokenType.TAB){const U=V1(j,r,n,e,y),V=n6(o,a,i,I),r1=P4(U,V);t1(),L=y6([r1],L,e,$,s1),j++,W=W.substring(1);continue}if(/\s/.test(Z)||t6(Z)){const U=V1(j,r,n,e,y),V=R2(Z,U);G.push(V),j++,W=W.substring(1)}else if(e4(W)){const{step:U,spanGroup:V}=z4(j,W,r,n,e,y);G.push(...V),j+=U,W=W.substring(U)}else if($6(Z)){const{step:U,spanGroup:V}=X4(j,W,r,n,e,y);G.push(...V),j+=U,W=W.substring(U)}else if(k6(Z)){const{step:U,spanGroup:V}=W4(j,W,r,n,e,y);G.push(...V),j+=U,W=W.substring(U)}else{const{step:U,spanGroup:V}=H4(j,W,r,n,e,y);G.push(...V),j+=U,W=W.substring(U)}if(Z===f.DataStreamTreeTokenType.CUSTOM_BLOCK){let U=X.get(Q);if(U==null&&(U=r.getCustomBlock(Q)),U!=null){const V=U.blockId;g[V].layoutType===f.PositionedObjectLayoutType.INLINE&&(L=E4())}}else if(Z===f.DataStreamTreeTokenType.PAGE_BREAK)t1(),L.push(o2(e,s,$7(L[L.length-1]),r2.PAGE)),x.clear();else if(Z===f.DataStreamTreeTokenType.COLUMN_BREAK){t1();const U=L[L.length-1],V=F2(U);V&&!V.isLast?q6(V.column,!0):L.push(o2(e,s,$7(U),r2.COLUMN))}}t1(),z=Y.position}return B4(L,J=>{Xd(J,N)}),L}function kd(r,n){if(!r||!n)return;const{listId:t,nestingLevel:e}=r,s=n==null?void 0:n.get(t);let i=e;i<0&&(i=0);const o=[];for(let a=i;a>=0;a--){const c=s==null?void 0:s[a];o[a]=c||null}return o}function Nd(r,n,t){if(!r||!n)return;const{listId:e,nestingLevel:s}=r,i=[...(t==null?void 0:t.get(e))||[]];i[s]=n,i.splice(s+1),t==null||t.set(e,i)}function Hd(r){return{objectId:r.objectId,aLeft:0,aTop:0,width:0,height:0,angle:0,initialState:!1,drawingOrigin:r}}function $7(r){return r.pageNumber+1}function Xd(r,n){if(n===f.HorizontalAlign.UNSPECIFIED||n===f.HorizontalAlign.LEFT)return;const{divides:t}=r,e=t.length;for(let s=0;s<e;s++){const i=t[s],{width:o}=i,a=M4(i);o!==1/0&&(n===f.HorizontalAlign.CENTER?i.paddingLeft=(o-a)/2:n===f.HorizontalAlign.RIGHT?i.paddingLeft=o-a:f.HorizontalAlign.JUSTIFIED)}}function zd(r=0,n,t=f.ColumnSeparatorType.NONE,e=1/0){const{left:s,width:i,spaceWidth:o}=Wd(r,n,e);return{lines:[],left:s,width:i,height:0,spaceWidth:o,separator:t,st:0,ed:0,drawingLRIds:[],isFull:!1}}function Wd(r=0,n,t){let e=0,s=0,i=0;for(let o=0;o<=r;o++){const{width:a,paddingEnd:c}=n[o];o===n.length-1?(e=t===1/0?t-e:a,s=0):(s=c,e=a,i+=e+s)}return{width:e,spaceWidth:s,left:i-e-s}}class w2{constructor(){_(this,"_translateX",0);_(this,"_translateY",0);_(this,"_translateSaveList",[])}get x(){return this._translateX}get y(){return this._translateY}reset(){this.translateBy(0,0),this._translateSaveList=[]}translateBy(n=0,t=0){this._translateX=n,this._translateY=t}translate(n=0,t=0){this._translateX+=n,this._translateY+=t}translateSave(){this._translateSaveList.push({x:this._translateX,y:this._translateY})}translateRestore(){const n=this._translateSaveList.pop();n&&(this._translateX=n.x,this._translateY=n.y)}translatePagePadding(n){const{marginTop:t=0,marginBottom:e=0,marginLeft:s=0,marginRight:i=0}=n;this.translate(s,t)}restorePagePadding(n){const{marginTop:t=0,marginBottom:e=0,marginLeft:s=0,marginRight:i=0}=n;this.translate(-s,-t)}translatePage(n,t=b1.VERTICAL,e=0,s=0,i=0,o=0){const{sections:a,marginTop:c=0,marginBottom:l=0,marginLeft:u=0,marginRight:h=0,pageWidth:g,pageHeight:p,width:m,height:v,pageNumber:b=1,renderConfig:S={}}=n;let E=0,y=0;return t===b1.VERTICAL?E+=p+s:t===b1.HORIZONTAL&&(y+=g+e),this.translate(y,E),{x:y,y:E}}translateSection(n){const{top:t=0}=n;return this.translate(0,t),{x:0,y:t}}translateColumn(n){const{left:t}=n;return this.translate(t,0),{x:t,y:0}}translateLine(n,t=!1){const{top:e,marginBottom:s=0,marginTop:i=0,paddingTop:o=0,paddingBottom:a=0}=n,c=e+(t===!0?i:0)+o;return this.translate(0,c),{x:0,y:c}}translateDivide(n){const{left:t,paddingLeft:e}=n,s=t+e;return this.translate(s,0),{x:s,y:0}}translateSpan(n){const{left:t}=n;return this.translate(t,0),{x:t,y:0}}}var ht=(r=>(r[r.NORMAL=0]="NORMAL",r[r.START=1]="START",r[r.END=2]="END",r))(ht||{}),v2=(r=>(r[r.page=0]="page",r[r.section=1]="section",r[r.column=2]="column",r[r.line=3]="line",r[r.divide=4]="divide",r[r.span=5]="span",r))(v2||{});const X1={page:0,section:1,column:2,line:3,divide:4,span:5};function e7(r,n){return r.page>n.page?!1:r.page<n.page?!0:r.section>n.section?!1:r.section<n.section?!0:r.column>n.column?!1:r.column<n.column?!0:r.line>n.line?!1:r.line<n.line?!0:r.divide>n.divide?!1:r.divide<n.divide?!0:r.span>n.span?!1:(r.span<n.span,!0)}function V2(r,n){return e7(r,n)?{start:r,end:n}:{start:n,end:r}}function O6(r){const n=r.length;if(n===0)return;const t=r[0],e=r[n-1],s=r.length===1&&t.collapsed;return{startOffset:t.startOffset,endOffset:e.endOffset,collapsed:s}}function Yd(r,n,t,e){let s=e,i=e;for(let o=0;o<r.length;o++){const c=r[o].count;o<n&&(s+=c),o<t&&(i+=c)}return{startOffset:s,endOffset:i}}class _t{constructor(n,t){_(this,"_liquid",new w2);_(this,"_currentStartState",{page:0,section:0,column:0,line:0,divide:0,span:0});_(this,"_currentEndState",{page:0,section:0,column:0,line:0,divide:0,span:0});this._documentOffsetConfig=n,this._docSkeleton=t}getRangePointData(n,t){const e=[],s=[],i=[];if(n==null||t==null)return{borderBoxPointGroup:e,contentBoxPointGroup:s,cursorList:i};const{start:o,end:a}=V2(n,t);return this._selectionIterator(o,a,(c,l,u,h,g,p)=>{const{lineHeight:m,marginTop:v,contentHeight:b}=p,{spanGroup:S,st:E}=g,{x:y,y:T}=this._liquid;let F,O;const w=S[c],R=S[l],x=(w==null?void 0:w.left)||0,$=(w==null?void 0:w.width)||0,A=(R==null?void 0:R.left)||0,k=(R==null?void 0:R.width)||0,N=(w==null?void 0:w.spanType)===a1.LIST,{startOffset:I,endOffset:L}=Yd(S,c,l,E),X=o.span===c&&u?o.isBack:!0,H=a.span===l&&h?a.isBack:!1,z=o===a;if(c===0&&l===S.length-1)F={startX:y+x+(N?$:0),startY:T,endX:y+A+k,endY:T+m},O={startX:y+x+(N?$:0),startY:T+v,endX:y+A+k,endY:T+v+b};else{const Y=X&&!N;F={startX:y+x+(Y?0:$),startY:T,endX:y+A+(H?0:k),endY:T+m},O={startX:y+x+(Y?0:$),startY:T+v,endX:y+A+(H?0:k),endY:T+v+b}}e.push(this._pushToPoints(F)),s.push(this._pushToPoints(O)),i.push({startOffset:X?I:I+w.count,endOffset:H?L:L+R.count,collapsed:z})}),{borderBoxPointGroup:e,contentBoxPointGroup:s,cursorList:i}}_resetCurrentNodePositionState(){this._currentStartState={page:0,section:0,column:0,line:0,divide:0,span:0},this._currentEndState={page:0,section:0,column:0,line:0,divide:0,span:0}}_setNodePositionState(n=0,t,e,s){s===t?this._currentStartState[n]=1:this._currentStartState[n]=0,s===e?this._currentEndState[n]=2:this._currentEndState[n]=0}_checkPreviousNodePositionState(n,t=!0){let e=n,s;for(;e>=0;){const i=v2[e];let o;if(t?o=this._currentStartState[i]:o=this._currentEndState[i],o===void 0)return;if(s===void 0&&(s=o),o!==s)return 0;e--}return s}_getSelectionRuler(n,t,e,s,i){let o=0,a=s;const c=v2[n],l=v2[n+1];if(l===null||c===null)return{start_next:o,end_next:a};const u=t[c],h=e[c];this._setNodePositionState(c,u,h,i);const g=this._checkPreviousNodePositionState(n),p=this._checkPreviousNodePositionState(n,!1);return g===1&&(o=t[l]),p===2&&(a=e[l]),{start_next:o,end_next:a}}_pushToPoints(n){const{startX:t,startY:e,endX:s,endY:i}=n,o=[];return o.push({x:t,y:e}),o.push({x:s,y:e}),o.push({x:s,y:i}),o.push({x:t,y:i}),o.push({x:t,y:e}),o}_selectionIterator(n,t,e){const s=this._docSkeleton;if(!s)return[];this._liquid.reset();const i=s.getSkeletonData();if(i==null)return[];const o=i.pages,{page:a}=n,{page:c}=t;if(this._resetCurrentNodePositionState(),this._documentOffsetConfig==null)return[];const{pageLayoutType:l,pageMarginLeft:u,pageMarginTop:h}=this._documentOffsetConfig;for(let g=0;g<=a-1;g++){const p=o[g];this._liquid.translatePage(p,l,u,h)}for(let g=a;g<=c;g++){const p=o[g],m=p.sections,{start_next:v,end_next:b}=this._getSelectionRuler(X1.page,n,t,m.length-1,g);this._liquid.translateSave(),this._liquid.translatePagePadding(p);for(let S=v;S<=b;S++){const E=m[S],y=E.columns,{start_next:T,end_next:F}=this._getSelectionRuler(X1.section,n,t,y.length-1,S);this._liquid.translateSection(E);for(let O=T;O<=F;O++){const w=y[O],R=w.lines,{start_next:x,end_next:$}=this._getSelectionRuler(X1.column,n,t,R.length-1,O);this._liquid.translateColumn(w);for(let A=x;A<=$;A++){const k=R[A],{divides:N}=k,{start_next:I,end_next:L}=this._getSelectionRuler(X1.line,n,t,N.length-1,A);this._liquid.translateSave(),this._liquid.translateLine(k);for(let X=I;X<=L;X++){const H=N[X];this._liquid.translateSave(),this._liquid.translateDivide(H);const z=H.spanGroup,{start_next:Y,end_next:J}=this._getSelectionRuler(X1.divide,n,t,z.length-1,X);let W=!1,j=!1;g===a&&S===v&&O===T&&A===x&&X===I&&(W=!0),g===c&&S===b&&O===F&&A===$&&X===L&&(j=!0),e&&e(Y,J,W,j,H,k,w,E,p),this._liquid.translateRestore()}this._liquid.translateRestore()}}}this._liquid.translateRestore(),this._liquid.translatePage(p,l,u,h)}}}const dt=["hoverCursor","moveCursor","fillRule","globalCompositeOperation","paintFirst","stroke","strokeScaleEnabled","fill","fillAfterStrokeEnabled","hitStrokeWidth","strokeLineJoin","strokeLineCap","shadowColor","shadowBlur","shadowOffset","shadowOffsetX","shadowOffsetY","shadowOpacity","shadowEnabled","shadowForStrokeEnabled","strokeDashArray","strokeDashOffset","strokeMiterLimit"];class h2 extends M1{constructor(t,e){super(t);_(this,"_hoverCursor");_(this,"_moveCursor",null);_(this,"_fillRule","nonzero");_(this,"_globalCompositeOperation","source-over");_(this,"_paintFirst","fill");_(this,"_stroke");_(this,"_strokeScaleEnabled",!1);_(this,"_fill");_(this,"_fillAfterStrokeEnabled",!1);_(this,"_hitStrokeWidth",0);_(this,"_strokeLineJoin","round");_(this,"_strokeLineCap","round");_(this,"_shadowColor");_(this,"_shadowBlur",0);_(this,"_shadowOffset");_(this,"_shadowOffsetX",0);_(this,"_shadowOffsetY",0);_(this,"_shadowOpacity",0);_(this,"_shadowEnabled",!1);_(this,"_shadowForStrokeEnabled",!1);_(this,"_strokeDashArray");_(this,"_strokeDashOffset",0);_(this,"_strokeMiterLimit",0);_(this,"_type",R6.RECT);this._initialProps(e)}get hoverCursor(){return this._hoverCursor}get moveCursor(){return this._moveCursor}get fillRule(){return this._fillRule}get globalCompositeOperation(){return this._globalCompositeOperation}get paintFirst(){return this._paintFirst}get stroke(){return this._stroke}get strokeScaleEnabled(){return this._strokeScaleEnabled}get fill(){return this._fill}get fillAfterStrokeEnabled(){return this._fillAfterStrokeEnabled}get hitStrokeWidth(){return this._hitStrokeWidth}get strokeLineJoin(){return this._strokeLineJoin}get strokeLineCap(){return this._strokeLineCap}get shadowColor(){return this._shadowColor}get shadowBlur(){return this._shadowBlur}get shadowOffset(){return this._shadowOffset}get shadowOffsetX(){return this._shadowOffsetX}get shadowOffsetY(){return this._shadowOffsetY}get shadowOpacity(){return this._shadowOpacity}get shadowEnabled(){return this._shadowEnabled}get shadowForStrokeEnabled(){return this._shadowForStrokeEnabled}get strokeDashArray(){return this._strokeDashArray}get strokeDashOffset(){return this._strokeDashOffset}get strokeMiterLimit(){return this._strokeMiterLimit}static drawWith(t,e){}static _renderPaintInOrder(t,e){e.paintFirst==="stroke"?(this._renderStroke(t,e),this._renderFill(t,e)):(this._renderFill(t,e),this._renderStroke(t,e))}static _renderFill(t,e){e.fill&&(t.save(),this.__setFillStyles(t,e),e.fillRule==="evenodd"?t.fill("evenodd"):t.fill(),t.restore())}static _renderStroke(t,e){const{stroke:s,strokeWidth:i,shadowEnabled:o,shadowForStrokeEnabled:a,strokeScaleEnabled:c,parent:l}=e;let{scaleX:u,scaleY:h}=e;if(!(!s||i===0)){if(o&&!a&&this.__removeShadow(t),t.save(),c&&l){const g=this.__getObjectScaling();t.scale(1/g.scaleX,1/g.scaleY)}else c&&(u=u??1,h=h??1,t.scale(1/u,1/h));this.__setLineDash(t),this.__setStrokeStyles(t,e),t.stroke(),t.restore()}}static __getObjectScaling(){return{scaleX:1,scaleY:1}}static __removeShadow(t){}static __setFillStyles(t,e){t.fillStyle=e.fill}static __setStrokeStyles(t,e){const{strokeWidth:s,strokeLineCap:i,strokeDashOffset:o,strokeLineJoin:a,strokeMiterLimit:c,stroke:l}=e;t.lineWidth=s,t.lineCap=i,t.lineDashOffset=o,t.lineJoin=a,t.miterLimit=c,t.strokeStyle=l}static __setLineDash(t){}render(t,e){if(!this.visible)return this.makeDirty(!1),this;if(this.isRender()){const{top:i,left:o,bottom:a,right:c}=e.viewBound;if(this.width+this.strokeWidth<o||c<0||this.height+this.strokeWidth<i||a<0)return this}const s=this.transform.getMatrix();return t.save(),t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._draw(t),t.restore(),this.makeDirty(!1),this}setProps(t){if(!t)return;const e=Object.keys(t);if(e.length!==0)return e.forEach(s=>{if(t[s]===void 0)return!0;Y2.indexOf(s)===-1&&(this[`_${s}`]=t[s])}),this.makeDirty(!0),this}toJson(){const t={};return dt.forEach(e=>{this[e]&&(t[e]=this[e])}),{...super.toJson(),...t}}_draw(t){}_initialProps(t){if(!t)return;const e=Object.keys(t);if(e.length===0)return;const s={};let i=!1;e.forEach(o=>{if(t[o]===void 0)return!0;Y2.indexOf(o)>-1?(s[o]=t[o],i=!0):this[`_${o}`]=t[o]}),i&&this.transformByState(s),this.makeDirty(!0)}}const ft=["radius"];class f1 extends h2{constructor(t,e){super(t,e);_(this,"_radius",0);e!=null&&e.radius&&(this._radius=e.radius)}get radius(){return this._radius}static drawWith(t,e){let{radius:s,width:i,height:o}=e;if(s=s??0,i=i??30,o=o??30,t.beginPath(),e.strokeDashArray&&t.setLineDash(e.strokeDashArray),!s)t.rect(0,0,i,o);else{let a=0,c=0,l=0,u=0;a=c=l=u=Math.min(s,i/2,o/2),t.moveTo(a,0),t.lineTo(i-c,0),t.arc(i-c,c,c,Math.PI*3/2,0,!1),t.lineTo(i,o-u),t.arc(i-u,o-u,u,0,Math.PI/2,!1),t.lineTo(l,o),t.arc(l,o-l,l,Math.PI/2,Math.PI,!1),t.lineTo(0,a),t.arc(a,a,a,Math.PI,Math.PI*3/2,!1)}t.closePath(),this._renderPaintInOrder(t,e)}toJson(){const t={};return ft.forEach(e=>{this[e]&&(t[e]=this[e])}),{...super.toJson(),...t}}_draw(t){f1.drawWith(t,this)}}const gt=["pointsGroup"];class i6 extends h2{constructor(t,e){super(t,e);_(this,"_pointsGroup");this._pointsGroup=(e==null?void 0:e.pointsGroup)||[[]],this._setFixBoundingBox(),this.onTransformChangeObservable.add(s=>{const{type:i,value:o,preValue:a}=s;(i===n1.resize||i===n1.all)&&this.resizePolygon(a)})}get pointsGroup(){return this._pointsGroup}static drawWith(t,e){let{pointsGroup:s}=e;s=s??[[]],e.strokeDashArray&&t.setLineDash(e.strokeDashArray),t.beginPath();for(const i of s){t.moveTo(i[0].x,i[0].y);for(let o=1;o<i.length;o++){const a=i[o];t.lineTo(a.x,a.y)}}t.closePath(),this._renderPaintInOrder(t,e)}updatePointGroup(t){this._pointsGroup=t,this._setFixBoundingBox()}resizePolygon(t){const{left:e,top:s,width:i,height:o}=this._getSelfRect(),{width:a,height:c}=t;let l,u;a?l=this.width-a:l=0,c?u=this.height-c:u=0;const h=l/i,g=u/o;this.scaleX+=h,this.scaleY+=g,this.left=this.left-e*h,this.top=this.top-s*g,this._setTransForm()}toJson(){const t={};return gt.forEach(e=>{this[e]&&(t[e]=this[e])}),{...super.toJson(),...t}}getState(){const{left:t,top:e,width:s,height:i}=this.getRect();return{left:t,top:e,width:s,height:i,scaleX:this.scaleX,scaleY:this.scaleY,angle:this.angle,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY}}getRect(){const{left:t,top:e,width:s,height:i}=this._getSelfRect();return{left:t*this.scaleX+this.left,top:e*this.scaleY+this.top,width:s*this.scaleX,height:i*this.scaleY}}_draw(t){i6.drawWith(t,this)}_setFixBoundingBox(){const{width:t,height:e,left:s,top:i}=this._getSelfRect();this.left=this.left+s,this.top=this.top+i,this.width=t,this.height=e;const o=this.pointsGroup;for(const a of o)for(const c of a)c.x-=s,c.y-=i;this._setTransForm()}_getSelfRect(){const t=this.pointsGroup;let e=t[0][0].x,s=t[0][0].x,i=t[0][0].y,o=t[0][0].y;for(const a of t)for(const c of a)e=Math.min(e,c.x),s=Math.max(s,c.x),i=Math.min(i,c.y),o=Math.max(o,c.y);return{left:e,top:i,width:s-e,height:o-i}}}const jd="__TestSelectionRange__",Ud="__TestSelectionAnchor__",k7=6;function Dt(r,n,t,e){const{startOffset:s,endOffset:i,style:o=T2}=n,a=t.findNodePositionByCharIndex(s),c=s!==i?t.findNodePositionByCharIndex(i):null,l=new G2(r,e,t,a,c,o);return l.refresh(),l}class G2{constructor(n,t,e,s,i,o=T2){_(this,"_current",!1);_(this,"_rangeShape");_(this,"_anchorShape");_(this,"_cursorList",[]);this._scene=n,this._documentOffsetConfig=t,this._docSkeleton=e,this.anchorNodePosition=s,this.focusNodePosition=i,this.style=o}get startOffset(){const{startOffset:n}=O6(this._cursorList)??{},t=this._docSkeleton.getViewModel().getBody();if(n==null||t==null)return n;const e=t.dataStream.length-2;return Math.min(e,n)}get endOffset(){const{endOffset:n}=O6(this._cursorList)??{},t=this._docSkeleton.getViewModel().getBody();if(n==null||t==null)return n;const e=t.dataStream.length-2;return Math.min(n,e)}get collapsed(){const{startOffset:n,endOffset:t}=this;return n!=null&&n===t}get startNodePosition(){if(this.anchorNodePosition==null)return null;if(this.focusNodePosition==null)return this.anchorNodePosition;const{start:n}=V2(this.anchorNodePosition,this.focusNodePosition);return n}get endNodePosition(){if(this.anchorNodePosition==null)return this.focusNodePosition;if(this.focusNodePosition==null)return null;const{end:n}=V2(this.anchorNodePosition,this.focusNodePosition);return n}get direction(){const{collapsed:n,anchorNodePosition:t,focusNodePosition:e}=this;return n||t==null||e==null?b2.NONE:e7(t,e)?b2.FORWARD:b2.BACKWARD}getAnchor(){return this._anchorShape}activeStatic(){var n,t;(t=this._anchorShape)==null||t.setProps({stroke:((n=this.style)==null?void 0:n.strokeActive)||c1(f.COLORS.black,1)})}deactivateStatic(){var n,t;(t=this._anchorShape)==null||t.setProps({stroke:((n=this.style)==null?void 0:n.stroke)||c1(f.COLORS.black,0)})}isActive(){return this._current===!0}activate(){this._current=!0}deactivate(){this._current=!1}dispose(){var n,t;(n=this._rangeShape)==null||n.dispose(),this._rangeShape=null,(t=this._anchorShape)==null||t.dispose(),this._anchorShape=null}isIntersection(n){const{startOffset:t,endOffset:e}=this,{startOffset:s,endOffset:i}=n;return t==null||e==null||s==null||i==null?!1:t<=i&&e>=s}refresh(){var u,h;const{_documentOffsetConfig:n,_docSkeleton:t}=this,e=this.anchorNodePosition,s=this.focusNodePosition;if((u=this._anchorShape)==null||u.hide(),(h=this._rangeShape)==null||h.hide(),this._isEmpty())return;const{docsLeft:i,docsTop:o}=n,a=new _t(n,t);if(this._isCollapsed()){const{contentBoxPointGroup:g,cursorList:p}=a.getRangePointData(e,e);this._setCursorList(p),g.length>0&&this._createOrUpdateAnchor(g,i,o);return}const{borderBoxPointGroup:c,cursorList:l}=a.getRangePointData(e,s);this._setCursorList(l),c.length>0&&this._createOrUpdateRange(c,i,o)}_isEmpty(){return this.anchorNodePosition==null&&this.focusNodePosition==null}_isCollapsed(){const n=this.anchorNodePosition,t=this.focusNodePosition;if(n!=null&&t==null)return!0;if(n==null||t==null)return!1;const e=Object.keys(X1);for(const s of e){const i=n[s],o=t[s];if(i!==o)return!1}return n.isBack===t.isBack}_createOrUpdateRange(n,t,e){var o;if(this._rangeShape){this._rangeShape.translate(t,e),this._rangeShape.updatePointGroup(n),this._rangeShape.show();return}const s=.2,i=new i6(jd+f.Tools.generateRandomId(k7),{pointsGroup:n,fill:((o=this.style)==null?void 0:o.fill)||c1(f.COLORS.black,s),left:t,top:e,evented:!1,debounceParentDirty:!1});this._rangeShape=i,this._scene.addObject(i,2)}_getAnchorBounding(n){const t=n[0],e=t[0],s=t[2],{x:i,y:o}=e,{x:a,y:c}=s;return{left:i,top:o,width:a-i,height:c-o}}_createOrUpdateAnchor(n,t,e){var l,u;const s=this._getAnchorBounding(n),{left:i,top:o,height:a}=s;if(this._anchorShape){this._anchorShape.transformByState({left:i+t,top:o+e,height:a}),this._anchorShape.show();return}const c=new f1(Ud+f.Tools.generateRandomId(k7),{left:i+t,top:o+e,height:a,strokeWidth:((l=this.style)==null?void 0:l.strokeWidth)||1,stroke:((u=this.style)==null?void 0:u.stroke)||c1(f.COLORS.black,0),evented:!1});this._anchorShape=c,this._scene.addObject(c,2)}_setCursorList(n){n.length!==0&&(this._cursorList=n)}}var Vd=Object.defineProperty,Gd=Object.getOwnPropertyDescriptor,Kd=(r,n,t,e)=>{for(var s=e>1?void 0:e?Gd(n,t):n,i=r.length-1,o;i>=0;i--)(o=r[i])&&(s=(e?o(n,t,s):o(s))||s);return e&&s&&Vd(n,t,s),s},qd=(r,n)=>(t,e)=>n(t,e,r);exports.Skeleton=class extends f.Disposable{constructor(t){super();_(this,"_fontLocale");_(this,"_dirty",!0);this._localService=t,this._localeInitial()}get dirty(){return this._dirty}getFontLocale(){return this._fontLocale}makeDirty(t){this._dirty=t}_localeInitial(){}};exports.Skeleton=Kd([qd(0,s2.Inject(f.LocaleService))],exports.Skeleton);const Jd={columnProperties:[],columnSeparatorType:f.ColumnSeparatorType.NONE,sectionType:f.SectionType.SECTION_TYPE_UNSPECIFIED,startIndex:0};var pt=(r=>(r.PENDING="pending",r.CALCULATING="calculating",r.READY="ready",r.INVALID="invalid",r))(pt||{});class a2 extends exports.Skeleton{constructor(t,e){super(e);_(this,"_skeletonData");_(this,"_renderedBlockIdMap",new Map);_(this,"_findLiquid",new w2);this._docViewModel=t}static create(t,e){return new a2(t,e)}getViewModel(){return this._docViewModel}calculate(t){this.dirty&&(this._skeletonData=this._createSkeleton(t))}getSkeletonData(){return this._skeletonData}getActualSize(){const t=this.getSkeletonData();let e=-1/0,s=0;return t==null||t.pages.forEach(i=>{const{width:o,height:a}=i;e=Math.max(e,o),s+=a}),{actualWidth:e,actualHeight:s}}_getPageActualWidth(t){let e=-1/0;for(const s of t.sections)for(const i of s.columns)for(const o of i.lines){let a=0;for(const c of o.divides)for(const l of c.spanGroup)a+=l.width;e=Math.max(e,a)}return e}getPageSize(){return this.getViewModel().getDataModel().documentStyle.pageSize}findPositionBySpan(t){const e=t.parent,s=e==null?void 0:e.parent,i=s==null?void 0:s.parent,o=i==null?void 0:i.parent,a=o==null?void 0:o.parent,c=this.getSkeletonData();if(!e||!i||!o||!a||!c)return;const l=e.spanGroup.indexOf(t),u=s.divides.indexOf(e),h=i.lines.indexOf(s),g=o.columns.indexOf(i),p=a.sections.indexOf(o),m=c.pages.indexOf(a);return{span:l,divide:u,line:h,column:g,section:p,page:m}}findNodePositionByCharIndex(t,e=!0){const s=this._findNodeIterator(t);if(s==null)return;const i=this.getSkeletonData();if(!i)return;const o=i.pages,{span:a,divide:c,line:l,column:u,section:h,page:g}=s;return{span:c.spanGroup.indexOf(a),divide:l.divides.indexOf(c),line:u.lines.indexOf(l),column:h.columns.indexOf(u),section:g.sections.indexOf(h),page:o.indexOf(g),isBack:e}}findNodeByCharIndex(t){const e=this._findNodeIterator(t);return e==null?void 0:e.span}findSpanByPosition(t){if(t==null)return;const e=this.getSkeletonData();if(e==null)return;const{divide:s,line:i,column:o,section:a,page:c,isBack:l}=t;let{span:u}=t;l===!0&&(u-=1),u=u<0?0:u;const h=e.pages[c].sections[a].columns[o].lines[i].divides[s].spanGroup;return h[u].spanType===a1.LIST?h[u+1]:h[u]}findNodeByCoord(t,e,s,i){const{x:o,y:a}=t;this._findLiquid.reset();const c=this.getSkeletonData();if(c==null)return;const l=c.pages;let u=[],h=[],g=1/0;for(let p=0,m=l.length;p<m;p++){const v=l[p];this._findLiquid.translatePagePadding(v);const b=v.sections;for(const S of b){const{columns:E,height:y}=S;this._findLiquid.translateSection(S);for(const T of E){const{lines:F,width:O}=T;this._findLiquid.translateColumn(T);const w=F.length;for(let R=0;R<w;R++){const x=F[R],{divides:$,type:A,lineHeight:k=0}=x;if(A!==A2.BLOCK){this._findLiquid.translateSave(),this._findLiquid.translateLine(x);const{y:N}=this._findLiquid,I=N,L=N+k,X=Math.abs(a-L),H=$.length;for(let z=0;z<H;z++){const Y=$[z],{spanGroup:J,width:W}=Y;this._findLiquid.translateSave(),this._findLiquid.translateDivide(Y);const{x:j}=this._findLiquid;for(const G of J){if(!G.content||G.content.length===0)continue;const{width:s1,left:t1}=G,Z=j+t1,Q=j+t1+s1,U=Math.abs(o-Q);if(a>=I&&a<=L){if(o>=Z&&o<=Q)return{node:G,ratioX:o/(Z+Q),ratioY:a/(I+L)};g!==-1/0&&(u=[],h=[]),u.push({node:G,ratioX:o/(Z+Q),ratioY:a/(I+L)}),h.push(U),g=-1/0;continue}X<g&&(g=X,u=[],h=[]),X===g&&(u.push({node:G,ratioX:o/(Z+Q),ratioY:a/(I+L)}),h.push(U))}this._findLiquid.translateRestore()}this._findLiquid.translateRestore()}}}}this._findLiquid.restorePagePadding(v),this._translatePage(v,e,s,i)}return this._getNearestNode(u,h)}_getNearestNode(t,e){const s=Math.min(...e),i=e.indexOf(s);return t[i]}_getPageBoundingBox(t,e){const{pageWidth:s,pageHeight:i}=t,{x:o,y:a}=this._findLiquid;let c=-1,l=-1;return e===b1.VERTICAL?(c=s,l=a+i):e===b1.HORIZONTAL&&(c=o+s,l=i),{startX:o,startY:a,endX:c,endY:l}}_translatePage(t,e,s,i){this._findLiquid.translatePage(t,e,s,i)}_createSkeleton(t){var U;const e={width:1/0,height:1/0},s=this.getViewModel(),{headerTreeMap:i,footerTreeMap:o}=s,{documentStyle:a,drawings:c,lists:l={}}=s.getDataModel(),u={...f.PRESET_LIST_TYPE,...l},{pageNumberStart:h=1,pageSize:g=e,pageOrient:p=f.PageOrientType.PORTRAIT,defaultHeaderId:m,defaultFooterId:v,evenPageHeaderId:b,evenPageFooterId:S,firstPageHeaderId:E,firstPageFooterId:y,useFirstPageHeaderFooter:T,useEvenPageHeaderFooter:F,marginTop:O=0,marginBottom:w=0,marginRight:R=0,marginLeft:x=0,marginHeader:$=0,marginFooter:A=0,charSpace:k=0,linePitch:N=15.6,gridType:I=f.GridType.LINES,paragraphLineGapDefault:L=0,defaultTabStop:X=10.5,textStyle:H={fs:14},renderConfig:z={horizontalAlign:f.HorizontalAlign.UNSPECIFIED,verticalAlign:f.VerticalAlign.UNSPECIFIED,centerAngle:0,vertexAngle:0,wrapStrategy:f.WrapStrategy.UNSPECIFIED}}=a,Y=this._getNullSke(),J={headerTreeMap:i,footerTreeMap:o,lists:u,drawings:c,charSpace:k,linePitch:N,gridType:I,localeService:this._localService,paragraphLineGapDefault:L,defaultTabStop:X,documentTextStyle:H},{skeHeaders:W,skeFooters:j,skeListLevel:G,drawingAnchor:s1}=Y,t1={skeHeaders:W,skeFooters:j,skeListLevel:G,drawingAnchor:s1},Z=[];Y.pages=Z;const Q=this.getViewModel();Q.resetCache();for(let V=0,r1=Q.children.length;V<r1;V++){const _1=Q.children[V],v1=Q.getSectionBreak(_1.endIndex)||Jd,{pageNumberStart:D1=h,pageSize:l1=g,pageOrient:T1=p,marginTop:$1=O,marginBottom:K1=w,marginRight:u1=R,marginLeft:F1=x,marginHeader:k1=$,marginFooter:q1=A,defaultHeaderId:O1=m,defaultFooterId:J1=v,evenPageHeaderId:N1=b,evenPageFooterId:L2=S,firstPageHeaderId:o6=E,firstPageFooterId:a6=y,useFirstPageHeaderFooter:f2=T,useEvenPageHeaderFooter:g2=F,columnProperties:D2=[],columnSeparatorType:I2=f.ColumnSeparatorType.NONE,contentDirection:c6,sectionType:Z1,textDirection:Pt,renderConfig:$t=z}=v1,l6=Q.children[V+1],h7=(U=Q.getSectionBreak(l6==null?void 0:l6.endIndex))==null?void 0:U.sectionType,kt={defaultHeaderId:O1,evenPageHeaderId:N1,firstPageHeaderId:o6},Nt={defaultFooterId:J1,evenPageFooterId:L2,firstPageFooterId:a6};l1.width===null&&(l1.width=1/0),l1.height===null&&(l1.height=1/0);const _7={pageNumberStart:D1,pageSize:l1,pageOrient:T1,marginTop:$1,marginBottom:K1,marginRight:u1,marginLeft:F1,marginHeader:k1,marginFooter:q1,headerIds:kt,footerIds:Nt,useFirstPageHeaderFooter:f2,useEvenPageHeaderFooter:g2,columnProperties:D2,columnSeparatorType:I2,contentDirection:c6,sectionType:Z1,sectionTypeNext:h7,textDirection:Pt,renderConfig:$t,...J};let Q1=U1(Z),d7=!1;Z1===f.SectionType.CONTINUOUS?(j2(Z),this._addNewSectionByContinuous(Q1,D2,I2),d7=!0):Q1=o2(_7,t1,Q1==null?void 0:Q1.pageNumber);const Ht=G6(Q,_1,Q1,_7,t1,this._renderedBlockIdMap);h7===f.SectionType.CONTINUOUS&&D2.length>0;const{pages:f7}=Ht;d7&&f7.splice(0,1),Z.push(...f7)}return j2(Z),this._setPageParent(Z,Y),Y}_setPageParent(t,e){for(const s of t)s.parent=e}_addNewSectionByContinuous(t,e,s){const i=t.sections,o=i[i.length-1],{pageWidth:a,pageHeight:c,marginTop:l,marginBottom:u,marginLeft:h,marginRight:g}=t,p=a-h-g,m=c-l-u,v=((o==null?void 0:o.top)||0)+((o==null?void 0:o.height)||0),b=K6(e,s,v,0,p,m-v);b.parent=t,i.push(b)}_getNullSke(){return{pages:[],left:0,top:0,st:0,skeHeaders:new Map,skeFooters:new Map,skeListLevel:new Map,drawingAnchor:new Map}}_findNodeIterator(t){const e=this.getSkeletonData();if(!e)return;const s=e.pages;for(const i of s){const{sections:o,st:a,ed:c}=i;if(!(t<a||t>c))for(const l of o){const{columns:u,st:h,ed:g}=l;if(!(t<h||t>g))for(const p of u){const{lines:m,st:v,ed:b}=p;if(!(t<v||t>b))for(const S of m){const{divides:E,st:y,ed:T}=S,F=E.length;if(!(t<y||t>T))for(let O=0;O<F;O++){const w=E[O],{spanGroup:R,st:x,ed:$}=w;if(t<x||t>$)continue;let A=t-x;for(const k of R)if(A-=k.count,A<0)return{page:i,section:l,column:p,line:S,divide:w,span:k}}}}}}}}class n7{constructor(){_(this,"uKey","");_(this,"type");_(this,"zIndex",0);_(this,"parent");_(this,"translateX",0);_(this,"translateY",0);_(this,"extensionOffset",{})}draw(n,t,e,s){}clearCache(){}_getScale(n){return G1(n)}}const x2=f.Registry.create(),s7=f.Registry.create(),i7=f.Registry.create(),_2=f.Registry.create();var w6=(r=>(r[r.SPAN=0]="SPAN",r[r.LINE=1]="LINE",r))(w6||{});class r6 extends n7{constructor(){super(...arguments);_(this,"type",0);_(this,"translateX",0);_(this,"translateY",0)}}const Zd="DefaultDocsBackgroundExtension",Qd=10;let tf=class extends r6{constructor(){super(...arguments);_(this,"uKey",Zd);_(this,"zIndex",Qd);_(this,"_preBackgroundColor","")}draw(t,e,s){var g;const i=(g=s.parent)==null?void 0:g.parent;if(!i)return;const{contentHeight:o=0}=i,{ts:a,width:c}=s;if(!a)return;const{bg:l}=a;if(!l)return;const u=f.getColorStyle(l),{spanStartPoint:h=B.create(0,0)}=this.extensionOffset;u&&(t.fillStyle=u,t.fillRect(h.x-.5,h.y,c+1,o+1))}clearCache(){this._preBackgroundColor=""}};_2.add(new tf);const ef="DefaultDocsBorderExtension";let nf=class extends r6{constructor(){super(...arguments);_(this,"uKey",ef);_(this,"zIndex",30);_(this,"_preBorderStyle");_(this,"_preBorderColor","")}draw(t,e,s){var v;const i=(v=s.parent)==null?void 0:v.parent;if(!i)return;const{asc:o=0,lineHeight:a=0}=i,{ts:c,left:l,width:u}=s;if(!c)return;const{bd:h}=c;if(!h)return;const g=this._getScale(e),p=this._createBorderCache(h);t.save(),t.translate(g1/g,g1/g);const{spanStartPoint:m=B.create(0,0)}=this.extensionOffset;for(const b of p.keys()){const S=p.get(b);if(!S)continue;const{s:E,cl:y}=S,T=f.getColorStyle(y)||j1;E!==this._preBorderStyle&&(X6(t,E),t.lineWidth=z6(E)/g,this._preBorderStyle=E),T!==this._preBorderColor&&(t.strokeStyle=T||j1,this._preBorderColor=T),H6(t,b,{startX:K(m.x,g),startY:K(m.y,g),endX:K(m.x+u,g),endY:K(m.y+a,g)})}t.restore()}clearCache(){this._preBorderStyle=null,this._preBorderColor=""}_createBorderCache(t){const{t:e,b:s,l:i,r:o}=t,a=new Map;return e&&a.set(e1.TOP,e),s&&a.set(e1.BOTTOM,s),i&&a.set(e1.LEFT,i),o&&a.set(e1.RIGHT,o),a}};_2.add(new nf);const sf="DefaultDocsFontAndBaseLineExtension",rf=20;class of extends r6{constructor(){super(...arguments);_(this,"uKey",sf);_(this,"zIndex",rf);_(this,"_preFontString","");_(this,"_preFontColor","")}draw(t,e,s){var m;if(!((m=s.parent)==null?void 0:m.parent))return;const{ts:o,content:a,fontStyle:c,bBox:l}=s,{spanPointWithFont:u=B.create(0,0)}=this.extensionOffset;if(a==null)return;if(!o){this._fillText(t,s,u);return}this._preFontString!==(c==null?void 0:c.fontString)&&(t.font=this._preFontString=(c==null?void 0:c.fontString)||"");const{cl:h,va:g}=o,p=f.getColorStyle(h)||j1;if(p&&this._preFontColor!==p&&(t.fillStyle=p),g===f.BaselineOffset.SUBSCRIPT||g===f.BaselineOffset.SUPERSCRIPT){let v=0;g===f.BaselineOffset.SUPERSCRIPT&&(v=-l.sbo),u.y+=v}this._fillText(t,s,u)}_fillText(t,e,s){const{renderConfig:i,spanStartPoint:o,centerPoint:a}=this.extensionOffset,{content:c,width:l,bBox:u}=e,{aba:h,abd:g}=u;if(c==null||o==null||a==null)return;const{vertexAngle:p,centerAngle:m}=i??{},v=90;p===v&&m===v&&!t6(c)?(t.save(),t.translate(o.x+a.x,o.y+a.y),t.rotate(Math.PI/2),t.translate(-l/2,(h+g)/2-g),t.fillText(c,0,0),t.restore()):t.fillText(c,s.x,s.y)}clearCache(){this._preFontString="",this._preFontColor=""}}_2.add(new of);const af="DefaultDocsLineExtension",cf=40;class lf extends r6{constructor(){super(...arguments);_(this,"uKey",af);_(this,"zIndex",cf);_(this,"_preBackgroundColor","")}draw(t,e,s){var v;const i=(v=s.parent)==null?void 0:v.parent;if(!i)return;const{contentHeight:o=0}=i,{ts:a,bBox:c}=s;if(!a)return;const{sp:l}=c,u=G1(e),h=.5,{ul:g,st:p,ol:m}=a;if(g){const b=o+m6-h;this._drawLine(t,s,g,b,u)}if(p){const b=l-h;this._drawLine(t,s,p,b,u)}if(m){const b=-m6-h;this._drawLine(t,s,m,b,u)}}clearCache(){this._preBackgroundColor=""}_drawLine(t,e,s,i,o){const{s:a,cl:c,t:l}=s;if(a===f.BooleanNumber.TRUE){const{originTranslate:u=B.create(0,0),alignOffset:h=B.create(0,0),renderConfig:g={}}=this.extensionOffset,{left:p,width:m}=e,{centerAngle:v=0,vertexAngle:b=0}=g,S=x1(v),E=x1(b);t.save(),t.translate(g1/o,g1/o),t.beginPath();const y=f.getColorStyle(c)||j1;t.strokeStyle=y,this._setLineType(t,l||f.TextDecoration.SINGLE);const T=y2(u.addByPoint(p,i),B.create(0,0),S,E,h),F=y2(u.addByPoint(p+m,i),B.create(0,0),S,E,h);t.moveTo(K(T.x,o),K(T.y,o)),t.lineTo(K(F.x,o),K(F.y,o)),t.stroke(),t.restore()}}_setLineType(t,e){e===f.TextDecoration.DASH_DOT_DOT_HEAVY||e===f.TextDecoration.DOT_DOT_DASH?t.setLineDash([2,2,5,2,2]):e===f.TextDecoration.DASH_DOT_HEAVY||e===f.TextDecoration.DOT_DASH?t.setLineDash([2,5,2]):e===f.TextDecoration.DOTTED||e===f.TextDecoration.DOTTED_HEAVY?t.setLineDash([2]):e===f.TextDecoration.DASH||e===f.TextDecoration.DASHED_HEAVY?t.setLineDash([3]):e===f.TextDecoration.DASH_LONG||e===f.TextDecoration.DASH_LONG_HEAVY?t.setLineDash([6]):t.setLineDash([0])}_getLineWidth(t){let e=1;return t===f.TextDecoration.WAVY_HEAVY||t===f.TextDecoration.DASHED_HEAVY||t===f.TextDecoration.DOTTED_HEAVY||t===f.TextDecoration.DASH_DOT_HEAVY||t===f.TextDecoration.DASH_LONG_HEAVY||t===f.TextDecoration.DASH_DOT_DOT_HEAVY?e=2:t===f.TextDecoration.THICK&&(e=3),e}}_2.add(new lf);class uf extends Y6{constructor(t,e){super(t);_(this,"pageMarginLeft",0);_(this,"pageMarginTop",0);_(this,"pageLayoutType",b1.VERTICAL);this._skeleton=e}getSkeleton(){return this._skeleton}setSkeleton(t){this._skeleton=t}render(t,e){if(!this.visible)return this.makeDirty(!1),this;if(!this._skeleton)return;const s=this.transform.getMatrix();t.save(),t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._draw(t,e),t.restore()}getParentScale(){if(!this.parent)return{scaleX:1,scaleY:1};let{scaleX:t=1,scaleY:e=1}=this.parent;return this.parent.classType===P.SCENE&&(t=this.parent.ancestorScaleX||1,e=this.parent.ancestorScaleY||1),{scaleX:t,scaleY:e}}scrollBySelection(){}syncSelection(){}remainActiveSelection(){}findNodeByCoord(t,e){}findCoordByNode(t){}_getBounding(t){}_draw(t,e){}}class M2 extends uf{constructor(t,e,s){super(t,e);_(this,"onPageRenderObservable",new f.Observable);_(this,"docsLeft",0);_(this,"docsTop",0);_(this,"_drawLiquid");_(this,"_findLiquid");_(this,"_skeletonObserver");this.setConfig(s),this._drawLiquid=new w2,this._findLiquid=new w2,this._initialDefaultExtension(),this.makeDirty(!0)}static create(t,e,s){return new M2(t,e,s)}setConfig(t){this.pageMarginLeft=(t==null?void 0:t.pageMarginLeft)||17,this.pageMarginTop=(t==null?void 0:t.pageMarginTop)||14,this.pageLayoutType=(t==null?void 0:t.pageLayoutType)||b1.VERTICAL}getOffsetConfig(){const{transform:t,pageLayoutType:e,pageMarginLeft:s,pageMarginTop:i,left:o,top:a}=this;return{documentTransform:t,pageLayoutType:e,pageMarginLeft:s,pageMarginTop:i,docsLeft:o,docsTop:a}}getEngine(){return this.getScene().getEngine()}draw(t,e){var g;if(!this.getSkeleton())return;this._drawLiquid.reset();const i=(g=this.getSkeleton())==null?void 0:g.getSkeletonData();if(i==null)return;this._drawLiquid.reset();const{pages:o}=i,a=this.getParentScale(),c=G1(a),l=this.getExtensionsByOrder();for(const p of l)p.clearCache();let u=0,h=0;for(let p=0,m=o.length;p<m;p++){const v=o[p],{sections:b,marginTop:S=0,marginBottom:E=0,marginLeft:y=0,marginRight:T=0,width:F,height:O,renderConfig:w={}}=v,{verticalAlign:R=f.VerticalAlign.TOP,horizontalAlign:x=f.HorizontalAlign.LEFT,centerAngle:$=0,vertexAngle:A=0,wrapStrategy:k=f.WrapStrategy.UNSPECIFIED}=w,N=this._horizontalHandler(F*c,y*c,T*c,x),I=this._verticalHandler(O*c,S*c,E*c,R),L=B.create(N/c,I/c),X=x1($),H=x1(A),z=H-X;this.onPageRenderObservable.notifyObservers({page:v,pageLeft:h,pageTop:u,ctx:t}),this._startRotation(t,z);for(const W of b){const{columns:j}=W;this._drawLiquid.translateSection(W);for(const G of j){const{lines:s1,width:t1}=G;this._drawLiquid.translateColumn(G);const Z=s1.length;let Q,U=null;if(H!==0){const{rotateTranslateXList:V,rotatedHeight:r1,rotatedWidth:_1,fixOffsetX:v1,fixOffsetY:D1,rotateTranslateY:l1}=W6(s1,t1,H);let T1=_1;r1>this.height&&k!==f.WrapStrategy.WRAP&&(k===f.WrapStrategy.OVERFLOW||H>0)&&(T1=this.height/Math.tan(Math.abs(H)));const $1=this._horizontalHandler(T1,y,T,x);let u1=this._verticalHandler(r1,S,E,R)-D1;r1>this.height&&(H<0?u1=this.height-(r1+D1):u1=-D1),Q=B.create($1+v1,u1),this._drawLiquid.translate(0,-l1),U=V}else Q=L;for(let V=0;V<Z;V++){const r1=s1[V],{divides:_1,asc:v1=0,type:D1,lineHeight:l1=0}=r1,T1=v1,$1=T1*Math.sin(X),K1=T1*Math.cos(X);if(D1===A2.BLOCK)for(const u1 of l)u1.type===w6.LINE&&(u1.extensionOffset={alignOffset:Q,renderConfig:w},u1.draw(t,a,r1));else{this._drawLiquid.translateSave(),this._drawLiquid.translateLine(r1,!0),U&&this._drawLiquid.translate(U[V]);const u1=_1.length;for(let F1=0;F1<u1;F1++){const k1=_1[F1],{spanGroup:q1}=k1;this._drawLiquid.translateSave(),this._drawLiquid.translateDivide(k1);for(const O1 of q1){if(!O1.content||O1.content.length===0)continue;const{width:J1,left:N1,paddingLeft:L2}=O1,{x:o6,y:a6}=this._drawLiquid,f2=B.create(o6,a6),g2=B.create(J1/2,l1/2),D2=y2(f2.addByPoint(N1+L2,0),g2,X,H,Q),I2=y2(f2.addByPoint(N1+$1+L2,K1),g2,X,H,Q),c6={originTranslate:f2,spanStartPoint:D2,spanPointWithFont:I2,centerPoint:g2,alignOffset:Q,renderConfig:w};for(const Z1 of l)Z1.type===w6.SPAN&&(Z1.extensionOffset=c6,Z1.draw(t,a,O1))}this._drawLiquid.translateRestore()}this._drawLiquid.translateRestore()}}}}this._resetRotation(t,z);const{x:Y,y:J}=this._drawLiquid.translatePage(v,this.pageLayoutType,this.pageMarginLeft,this.pageMarginTop);h+=Y,u+=J}}changeSkeleton(t){return this.setSkeleton(t),this}_draw(t,e){this.draw(t,e)}_horizontalHandler(t,e,s,i){let o=0;return i===f.HorizontalAlign.CENTER?o=(this.width-t)/2:i===f.HorizontalAlign.RIGHT?o=this.width-t-s:o=e,o}_verticalHandler(t,e,s,i){let o=0;return i===f.VerticalAlign.MIDDLE?o=(this.height-t)/2:i===f.VerticalAlign.BOTTOM?o=this.height-t-s:o=e,o}_startRotation(t,e){t.rotate(e||0)}_resetRotation(t,e){t.rotate(-e||0)}_initialDefaultExtension(){_2.getData().forEach(t=>{this.register(t)})}}class hf{}function _f(r){const n=r.getBoundingClientRect(),t=document.body,e=document.documentElement,s=window.pageYOffset||e.scrollTop||t.scrollTop,i=window.pageXOffset||e.scrollLeft||t.scrollLeft,o=e.clientTop||t.clientTop,a=e.clientLeft||t.clientLeft,c=n.top+s-o,l=n.left+i-a;return{top:c,left:l}}var mt=(r=>(r[r.ALL=0]="ALL",r[r.X=1]="X",r[r.Y=2]="Y",r[r.NONE=3]="NONE",r))(mt||{});class c2{constructor(n,t=0,e,s=.05,i=.05){_(this,"_requestNewFrameNumber",-1);_(this,"_viewport");_(this,"_offsetX",0);_(this,"_offsetY",0);_(this,"_moveX",0);_(this,"_moveY",0);_(this,"_scrollX",0);_(this,"_scrollY",0);_(this,"_scrollFunction");this._scene=n,this._scrollTimerType=t,this._padding=e,this._smoothRatioX=s,this._smoothRatioY=i,this._padding||(this._padding={t:20,b:20,l:46,r:60})}static create(n,t=0,e){return new c2(n,t,e)}startScroll(n,t,e){this._offsetX=n,this._offsetY=t,this._moveX=n,this._moveY=t,e!=null?this._viewport=e:this._viewport=this.getViewportByCoord(this._scene),this._runRenderLoop()}_scroll(n){const t=(n==null?void 0:n.top)||0,e=t+((n==null?void 0:n.height)||0),s=(n==null?void 0:n.left)||0,i=s+((n==null?void 0:n.width)||0),{t:o=0,b:a=0,r:c=0,l=0}=this._padding;let u=0,h=0,g=!1;if(this._scrollTimerType!==2&&(this._moveX<s+l&&(u=(this._moveX-s-l)*this._smoothRatioX,g=!0),this._moveX>i-c&&(u=(this._moveX-i+c)*this._smoothRatioX,g=!0)),this._scrollTimerType!==1&&(this._moveY<t+o&&(h=(this._moveY-t-o)*this._smoothRatioY,g=!0),this._moveY>e-a&&(h=(this._moveY-e+a)*this._smoothRatioY,g=!0)),!g)return;const p=n==null?void 0:n.scrollBy({x:u,y:h}),m=n==null?void 0:n.getActualScroll(u,h);if(this._scrollX=(m==null?void 0:m.x)||0,this._scrollY=(m==null?void 0:m.y)||0,p){const v=this._findAncestorScene(n==null?void 0:n.scene),b=this.getViewportByCoord(v);b&&this._scroll(b)}}scrolling(n,t,e){this._moveX=n,this._moveY=t,this._scrollFunction=e}stopScroll(){J7(this._requestNewFrameNumber)}dispose(){this.stopScroll(),delete this._scrollFunction}getViewportByCoord(n){return n==null?void 0:n.getActiveViewportByRelativeCoord(B.FromArray([this._offsetX,this._offsetY]))}getScene(){return this._scene}_runRenderLoop(){this._scroll(this._viewport),this._scrollFunction&&this._scrollFunction(this._scrollX,this._scrollY),this._requestNewFrameNumber=S2(this._runRenderLoop.bind(this))}_findAncestorScene(n){let t=n==null?void 0:n.getParent();for(;t;){if(t.classType===P.SCENE)return t;t=(t==null?void 0:t.getParent)&&(t==null?void 0:t.getParent())}}}function bt(r){const n=r==null?void 0:r.getCanvasElement();if(!n)return{left:0,top:0};const{top:t,left:e}=_f(n);return{left:e,top:t}}function N7(r){var c;const n=(c=r.parent)==null?void 0:c.parent,t=n==null?void 0:n.parent;if(n==null||t==null)return;const{paragraphIndex:e}=n,s=t.lines.filter(l=>l.paragraphIndex===e);let i=-1,o="",a=!1;for(const l of s)for(const u of l.divides)for(const h of u.spanGroup)a||(i+=h.count),h===r&&(a=!0),o+=h.count>0?h.content:"";return{st:s[0].st,ed:e,content:o,nodeIndex:i}}class df extends f.RxDisposable{constructor(t,e,s){super();_(this,"_onInputBefore$",new p1.BehaviorSubject(null));_(this,"onInputBefore$",this._onInputBefore$.asObservable());_(this,"_onKeydown$",new p1.BehaviorSubject(null));_(this,"onKeydown$",this._onKeydown$.asObservable());_(this,"_onInput$",new p1.BehaviorSubject(null));_(this,"onInput$",this._onInput$.asObservable());_(this,"_onCompositionstart$",new p1.BehaviorSubject(null));_(this,"onCompositionstart$",this._onCompositionstart$.asObservable());_(this,"_onCompositionupdate$",new p1.BehaviorSubject(null));_(this,"onCompositionupdate$",this._onCompositionupdate$.asObservable());_(this,"_onCompositionend$",new p1.BehaviorSubject(null));_(this,"onCompositionend$",this._onCompositionend$.asObservable());_(this,"_onSelectionStart$",new p1.BehaviorSubject(null));_(this,"onSelectionStart$",this._onSelectionStart$.asObservable());_(this,"_onPaste$",new p1.BehaviorSubject(null));_(this,"onPaste$",this._onPaste$.asObservable());_(this,"_textSelectionInner$",new p1.BehaviorSubject(null));_(this,"textSelectionInner$",this._textSelectionInner$.asObservable());_(this,"_container");_(this,"_inputParent");_(this,"_input");_(this,"_cursor");_(this,"_moveObserver");_(this,"_upObserver");_(this,"_viewportScrollX",0);_(this,"_viewportScrollY",0);_(this,"_rangeList",[]);_(this,"_currentSegmentId","");_(this,"_documentOffsetConfig",{documentTransform:new o1,pageLayoutType:b1.VERTICAL,pageMarginLeft:0,pageMarginTop:0,docsLeft:0,docsTop:0});_(this,"_selectionStyle",T2);_(this,"_isSelectionEnabled",!0);_(this,"_viewPortObserverMap",new Map);_(this,"_isIMEInputApply",!1);_(this,"_activeViewport");this._docSkeleton=t,this._scene=e,this._initDOM(),this._docSkeleton&&this._scene&&this.changeRuntime(this._docSkeleton,this._scene,s)}__getEditorContainer(){return this._container}getViewPort(){return this._activeViewport}setSegment(t){this._currentSegmentId=t}setStyle(t=T2){this._selectionStyle=t}resetStyle(){this.setStyle()}enableSelection(){this._isSelectionEnabled=!0}disableSelection(){this._isSelectionEnabled=!1}addTextRanges(t){const{_scene:e,_docSkeleton:s,_documentOffsetConfig:i}=this;for(const o of t){const a=Dt(e,o,s,i);this._add(a)}this._textSelectionInner$.next({textRanges:this._getAllTextRanges(),segmentId:this._currentSegmentId,style:this._selectionStyle}),this._updateDomCursorPositionAndSize(),this._scrollToSelection()}sync(){this._updateDomCursorPositionAndSize()}activate(t,e){this._container.style.left=`${t}px`,this._container.style.top=`${e}px`,this._container.style.zIndex="1000",this._cursor.style.animation="univer_cursor_blinkStyle 1s steps(1) infinite",this._cursor.style.display="revert",this.focus()}focus(){this._input.focus()}blur(){this._input.blur()}deactivate(){this._container.style.left="0px",this._container.style.top="0px",this._cursor.style.animation="",this._cursor.style.display="none"}changeRuntime(t,e,s,i){t!==this._docSkeleton&&this.removeAllTextRanges(),this._docSkeleton=t,this._scene=e,this._activeViewport=s||e.getViewports()[0],i&&(this._documentOffsetConfig=i)}handleDblClick(t,e,s){if(!this._scene||!this._isSelectionEnabled)return;s!=null&&(this._activeViewport=s),this._documentOffsetConfig=e;const{offsetX:i,offsetY:o}=t,a=this._findNodeByCoord(i,o);if(a==null||a.node==null)return;const c=N7(a.node);if(c==null)return;const{content:l,st:u,nodeIndex:h}=c;if(h===-1||Intl.Segmenter==null)return;const p=new Intl.Segmenter(void 0,{granularity:"word"}).segment(l);let m=-1/0,v=-1/0;for(const{segment:b,index:S,isWordLike:E}of p)if(S<=h&&h<S+b.length&&E){m=S+u,v=S+u+b.length;break}if(Number.isFinite(m)&&Number.isFinite(v)){this.removeAllTextRanges();const b=[{startOffset:m,endOffset:v}];this.addTextRanges(b)}}handleTripleClick(t,e,s){if(!this._scene||!this._isSelectionEnabled)return;s!=null&&(this._activeViewport=s),this._documentOffsetConfig=e;const{offsetX:i,offsetY:o}=t,a=this._findNodeByCoord(i,o);if(a==null||a.node==null)return;const c=N7(a.node);if(c==null)return;this.removeAllTextRanges();const{st:l,ed:u}=c,h=[{startOffset:l,endOffset:u,collapsed:l===u}];this.addTextRanges(h)}eventTrigger(t,e,s){var v;if(!this._scene||!this._isSelectionEnabled)return;s!=null&&(this._activeViewport=s),this._documentOffsetConfig=e;const i=this._scene,{offsetX:o,offsetY:a}=t;this._attachScrollEvent(s||i.getActiveViewportByCoord(B.FromArray([o,a])));const c=this._findNodeByCoord(o,a),l=this._getNodePosition(c);if(l==null){this._removeAllTextRanges();return}if((c==null?void 0:c.node.streamType)===f.DataStreamTreeTokenType.PARAGRAPH&&(l.isBack=!0),t.ctrlKey||this._isEmpty()){const b=new G2(i,e,this._docSkeleton,l);this._addTextRange(b)}else this._updateTextRangePosition(l);this._activeSelectionRefresh(),i.disableEvent();const u=c2.create(i);u.startScroll(o,a);const{scrollX:h,scrollY:g}=n2(u);this._viewportScrollX=h,this._viewportScrollY=g,this._onSelectionStart$.next((v=this._getActiveRangeInstance())==null?void 0:v.startNodePosition);let p=o,m=a;this._moveObserver=i.onPointerMoveObserver.add(b=>{const{offsetX:S,offsetY:E}=b;i.setCursor(i1.TEXT),!(Math.sqrt((S-p)**2+(E-m)**2)<3)&&(this._moving(S,E,u),u.scrolling(S,E,()=>{this._moving(S,E,u)}),p=S,m=E)}),this._upObserver=i.onPointerUpObserver.add(()=>{i.onPointerMoveObserver.remove(this._moveObserver),i.onPointerUpObserver.remove(this._upObserver),i.enableEvent(),this._textSelectionInner$.next({textRanges:this._getAllTextRanges(),segmentId:this._currentSegmentId,style:this._selectionStyle}),u.dispose(),this._updateDomCursorPositionAndSize()})}removeAllTextRanges(){this._removeAllTextRanges(),this.deactivate()}_getAllTextRanges(){return this._rangeList}_getActiveRange(){const t=this._rangeList.find(l=>l.isActive());if(t==null)return null;const{startOffset:e,endOffset:s,collapsed:i,startNodePosition:o,endNodePosition:a,direction:c}=t;return e==null||s==null?null:{startOffset:e,endOffset:s,collapsed:i,startNodePosition:o,endNodePosition:a,direction:c,segmentId:this._currentSegmentId,style:this._selectionStyle}}_add(t){t!=null&&(this._addTextRange(t),t.refresh())}_getActiveRangeInstance(){return this._rangeList.find(t=>t.isActive())}dispose(){super.dispose(),this._detachEvent(),this._container.remove()}_initDOM(){const t=document.createElement("div");t.style.position="fixed",t.style.left="0px",t.style.top="0px";const e=document.createElement("div"),s=document.createElement("div"),i=document.createElement("div");e.appendChild(s),t.appendChild(e),t.appendChild(i),this._container=t,this._inputParent=e,this._input=s,this._cursor=i,this._initInput(),this._initDOMCursor(),this._initInputEvents(),document.body.appendChild(t)}_initInput(){this._inputParent.style.cssText=`
|
|
1
|
+
"use strict";var zt=Object.defineProperty;var Wt=(r,n,t)=>n in r?zt(r,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[n]=t;var _=(r,n,t)=>(Wt(r,typeof n!="symbol"?n+"":n,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@univerjs/core"),n2=require("@wendellhu/redi"),p1=require("rxjs");var A6=(r=>(r.RECT="rect",r.CIRCLE="circle",r.PATH="path",r))(A6||{}),C1=(r=>(r.PointerMove="PointerMove",r.PointerDown="PointerDown",r.PointerUp="PointerUp",r.PointerOut="PointerOut",r.PointerLeave="PointerLeave",r.PointerOver="PointerOver",r.PointerEnter="PointerEnter",r.wheel="MouseWheel",r.KeyDown="KeyDown",r.KeyUp="KeyUp",r))(C1||{}),z7=(r=>(r[r.XY=0]="XY",r[r.X=1]="X",r[r.Y=2]="Y",r))(z7||{});const R6=1,J2='"Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif',W7={lines:[],drawings:new Map,height:0,st:0,ed:0,marginLeft:0},Yt={...W7,marginTop:20},jt={...W7,marginBottom:20},Y7="0",p6=1,j7=14;var i1=(r=>(r.DEFAULT="default",r.AUTO="auto",r.CROSSHAIR="crosshair",r.POINTER="pointer",r.MOVE="move",r.EAST_RESIZE="e-resize",r.NORTH_EAST_RESIZE="ne-resize",r.NORTH_WEST_RESIZE="nw-resize",r.NORTH_RESIZE="n-resize",r.SOUTH_EAST_RESIZE="se-resize",r.SOUTH_WEST_RESIZE="sw-resize",r.SOUTH_RESIZE="s-resize",r.WEST_RESIZE="w-resize",r.TEXT="text",r.WAIT="wait",r.HELP="help",r.CELL="cell",r.NONE="none",r.VERTICAL_TEXT="vertical-text",r.NO_DROP="no-drop",r.GRAB="grab",r.GRABBING="grabbing",r.ALL_SCROLL="all-scroll",r.COLUMN_RESIZE="col-resize",r.ROW_RESIZE="row-resize",r.PROGRESS="progress",r.NOT_ALLOWED="not-allowed",r.ZOOM_IN="zoom-in",r.ZOOM_OUT="zoom-out",r))(i1||{}),U7=(r=>(r[r.noClip=0]="noClip",r[r.DOC_SIZE=1]="DOC_SIZE",r[r.CONTENT_SIZE_LEFT=2]="CONTENT_SIZE_LEFT",r[r.CONTENT_SIZE_CENTER=3]="CONTENT_SIZE_CENTER",r[r.CONTENT_SIZE_Right=4]="CONTENT_SIZE_Right",r))(U7||{});const Y1="rgb(0,0,0)";var J=(r=>(r.TOP="t",r.BOTTOM="b",r.LEFT="l",r.RIGHT="r",r.TL_BR="tl_br",r.TL_BC="tl_bc",r.TL_MR="tl_mr",r.BL_TR="bl_tr",r.ML_TR="ml_tr",r.BC_TR="bc_tr",r))(J||{}),v2=(r=>(r[r.UP=0]="UP",r[r.DOWN=1]="DOWN",r))(v2||{}),N=(r=>(r.ENGINE="Engine",r.SCENE="Scene",r.BASE_OBJECT="BaseObject",r.SCENE_VIEWER="SceneViewer",r.CANVAS="Canvas",r.VIEWPORT="Viewport",r.LAYER="Layer",r.GROUP="Group",r))(N||{});const Ut=1e3,V7=2e3,g1=.5;var n1=(r=>(r[r.translate=0]="translate",r[r.resize=1]="resize",r[r.scale=2]="scale",r[r.skew=3]="skew",r[r.flip=4]="flip",r[r.all=5]="all",r))(n1||{});class Vt{isEmpty(){return this._isEmpty()}toString(n){if(this.isEmpty())throw new Error("Output is empty.");return this._toString(n)}toRegExp(n){return new RegExp(this.toString(n),n)}}class E1 extends Vt{constructor(...n){super(),this.data=[];for(const t of n)t instanceof E1?this.data.push(...t.data):this.data.push(Kt(t));this._unique()}union(...n){return new E1(this,...n)}subtract(...n){const t=this.data.slice(),e=[];let s=0;const{data:i}=new E1(...n);for(;t.length!==0;){const o=t.shift(),[a,c]=o;let l;do{l=!0;const u=i[s];if(u===void 0){e.push(o);break}const[h,g]=u;g<a?(l=!1,s++):c<h?e.push(o):h<=a&&g<c?(s++,t.unshift([g+1,c])):a<h&&g<c?(s++,e.push([a,h-1]),t.unshift([g+1,c])):a<h&&c<=g&&e.push([a,h-1])}while(!l)}return new E1(...e)}intersect(...n){return this.subtract(this.subtract(...n))}_isEmpty(){return this.data.length===0}_toString(n){return Jt(this.data,n)}_unique(){this.data.sort(qt);const n=[];let t=null;for(const e of this.data)t===null||t[1]+1<e[0]?(n.push(e),t=e):(n.splice(-1,1,[Math.min(e[0],t[0]),Math.max(e[1],t[1])]),t=n[n.length-1]);this.data=n}}const x6=(...r)=>new E1(...r);function Gt(r){if(r.length!==1){const n=`${r.length} (${JSON.stringify(r)})`;throw new Error(`Expected length = 1, but received ${n}.`)}return r.charCodeAt(0)}function Kt(r){if(typeof r=="number"&&(r<0||r>1114111))throw new Error(`Invalid unicode code point detected: ${r<0?r:`0x${r.toString(16)}`}`);const[n]=[r].map(t=>typeof t!="object"?[t,t]:t).map(t=>t.map(e=>typeof e=="string"?Gt(e):e));return n}function qt(r,n){return r[0]-n[0]}function Jt(r,n=""){if(n.includes("u"))return f7(r,!0);const{normal:t,surrogate:e}=Qt(r),s=[];return t.length!==0&&s.push(f7(t,!1)),s.push(...Zt(e)),s.join("|")}function f7(r,n){return`[${r.map(([e,s])=>e===s?p2(e,n):`${p2(e,n)}-${p2(s,n)}`).join("")}]`}function Zt(r){const n=[];if(r.entire.data.length!==0){const t=r.entire.toString(),e=`[${[56320,57343].map(s=>p2(s,!1)).join("-")}]`;n.push(`${t}${e}`)}for(const{h:t,l:e}of r.partial){const s=p2(t,!1),i=e.toString();n.push(`${s}${i}`)}return n}function Qt(r){const n=[],t=[];for(let e=0;e<r.length;e++){const s=r[e],[i,o]=s;if(i>=65536){t.push(...r.slice(e));break}if(o>=65536){n.push([i,65535]),t.push([65536,o],...r.slice(e+1));break}n.push(s)}return{normal:n,surrogate:te(t)}}function te(r){const n=[],t=[];for(const[i,o]of r){const a=g7(i),c=g7(o);if(a.h===c.h){s(a.h,a.l,c.l);continue}a.l===56320?e(a.h):s(a.h,a.l,57343);for(let l=a.h+1;l<c.h;l++)e(l);c.l===57343?e(c.h):s(c.h,56320,c.l)}return{entire:new E1(...n),partial:t.map(({h:i,l:o})=>({h:i,l:new E1(...o)}))};function e(i){n.push(i)}function s(i,o,a){const c=t[t.length-1];c!==void 0&&c.h===i?c.l.push([o,a]):t.push({h:i,l:[[o,a]]})}}function g7(r){return{h:Math.floor((r-65536)/1024)+55296,l:(r-65536)%1024+56320}}function p2(r,n){const t=r.toString(16);return n?`\\u{${t}}`:`\\u${"0".repeat(4-t.length)}${t}`}const ee=[[0,127]],ne=[[48,57],[65,70],[97,102]],se=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,837,[880,884],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],1369,[1376,1416],[1456,1469],1471,[1473,1474],[1476,1477],1479,[1488,1514],[1519,1522],[1552,1562],[1568,1623],[1625,1631],[1646,1747],[1749,1756],[1761,1768],[1773,1775],[1786,1788],1791,[1808,1855],[1869,1969],[1994,2026],[2036,2037],2042,[2048,2071],[2074,2092],[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2260,2271],[2275,2281],[2288,2363],[2365,2380],[2382,2384],[2389,2403],[2417,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2493,2500],[2503,2504],[2507,2508],2510,2519,[2524,2525],[2527,2531],[2544,2545],2556,[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2622,2626],[2631,2632],[2635,2636],2641,[2649,2652],2654,[2672,2677],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2749,2757],[2759,2761],[2763,2764],2768,[2784,2787],[2809,2812],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2877,2884],[2887,2888],[2891,2892],[2902,2903],[2908,2909],[2911,2915],2929,[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3020],3024,3031,[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3133,3140],[3142,3144],[3146,3148],[3157,3158],[3160,3162],3165,[3168,3171],[3200,3203],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3261,3268],[3270,3272],[3274,3276],[3285,3286],[3293,3294],[3296,3299],[3313,3315],[3328,3340],[3342,3344],[3346,3386],[3389,3396],[3398,3400],[3402,3404],3406,[3412,3415],[3423,3427],[3450,3455],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3535,3540],3542,[3544,3551],[3570,3571],[3585,3642],[3648,3654],3661,[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3769],[3771,3773],[3776,3780],3782,3789,[3804,3807],3840,[3904,3911],[3913,3948],[3953,3971],[3976,3991],[3993,4028],[4096,4150],4152,[4155,4159],[4176,4239],[4250,4253],[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5907],[5919,5939],[5952,5971],[5984,5996],[5998,6e3],[6002,6003],[6016,6067],[6070,6088],6103,6108,[6176,6264],[6272,6314],[6320,6389],[6400,6430],[6432,6443],[6448,6456],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6683],[6688,6750],[6753,6772],6823,[6847,6848],[6860,6862],[6912,6963],[6965,6979],[6981,6988],[7040,7081],[7084,7087],[7098,7141],[7143,7153],[7168,7222],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7655,7668],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8505],[8508,8511],[8517,8521],8526,[8544,8584],[9398,9449],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11744,11775],11823,[12293,12295],[12321,12329],[12337,12341],[12344,12348],[12353,12438],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42612,42619],[42623,42735],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43013],[43015,43047],[43072,43123],[43136,43203],43205,[43250,43255],43259,[43261,43263],[43274,43306],[43312,43346],[43360,43388],[43392,43442],[43444,43455],43471,[43488,43503],[43514,43518],[43520,43574],[43584,43597],[43616,43638],[43642,43710],43712,43714,[43739,43741],[43744,43759],[43762,43765],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44010],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],[64285,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],[66176,66204],[66208,66256],[66304,66335],[66349,66378],[66384,66426],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68903],[69248,69289],[69291,69292],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69632,69701],[69745,69749],[69760,69816],69826,[69840,69864],[69888,69938],[69956,69959],[69968,70002],70006,[70016,70079],[70081,70084],[70094,70095],70106,70108,[70144,70161],[70163,70196],70199,[70206,70209],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70376],[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70461,70468],[70471,70472],[70475,70476],70480,70487,[70493,70499],[70656,70721],[70723,70725],[70727,70730],[70751,70753],[70784,70849],[70852,70853],70855,[71040,71093],[71096,71102],[71128,71133],[71168,71230],71232,71236,[71296,71349],71352,[71424,71450],[71453,71466],[71488,71494],[71680,71736],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,71996],[71999,72002],[72096,72103],[72106,72151],[72154,72159],72161,[72163,72164],[72192,72242],[72245,72254],[72272,72343],72349,[72368,72440],[72704,72712],[72714,72758],[72760,72766],72768,[72818,72847],[72850,72871],[72873,72886],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73025],73027,[73030,73031],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73110],73112,[73440,73462],[73472,73488],[73490,73530],[73534,73536],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],[94031,94087],[94095,94111],[94176,94177],94179,[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],113822,[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125255,125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[127280,127305],[127312,127337],[127344,127369],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],ie=[[0,1114111]],re=[[0,887],[890,895],[900,906],908,[910,929],[931,1327],[1329,1366],[1369,1418],[1421,1423],[1425,1479],[1488,1514],[1519,1524],[1536,1805],[1807,1866],[1869,1969],[1984,2042],[2045,2093],[2096,2110],[2112,2139],2142,[2144,2154],[2160,2190],[2192,2193],[2200,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2558],[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2678],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2801],[2809,2815],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2935],[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3066],[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3191,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315],[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3407],[3412,3427],[3430,3455],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3572],[3585,3642],[3647,3675],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807],[3840,3911],[3913,3948],[3953,3991],[3993,4028],[4030,4044],[4046,4058],[4096,4293],4295,4301,[4304,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4988],[4992,5017],[5024,5109],[5112,5117],[5120,5788],[5792,5880],[5888,5909],[5919,5942],[5952,5971],[5984,5996],[5998,6e3],[6002,6003],[6016,6109],[6112,6121],[6128,6137],[6144,6169],[6176,6264],[6272,6314],[6320,6389],[6400,6430],[6432,6443],[6448,6459],6464,[6468,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6622,6683],[6686,6750],[6752,6780],[6783,6793],[6800,6809],[6816,6829],[6832,6862],[6912,6988],[6992,7038],[7040,7155],[7164,7223],[7227,7241],[7245,7304],[7312,7354],[7357,7367],[7376,7418],[7424,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],[8192,8292],[8294,8305],[8308,8334],[8336,8348],[8352,8384],[8400,8432],[8448,8587],[8592,9254],[9280,9290],[9312,11123],[11126,11157],[11159,11507],[11513,11557],11559,11565,[11568,11623],[11631,11632],[11647,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11744,11869],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12351],[12353,12438],[12441,12543],[12549,12591],[12593,12686],[12688,12771],[12784,12830],[12832,42124],[42128,42182],[42192,42539],[42560,42743],[42752,42954],[42960,42961],42963,[42965,42969],[42994,43052],[43056,43065],[43072,43127],[43136,43205],[43214,43225],[43232,43347],[43359,43388],[43392,43469],[43471,43481],[43486,43518],[43520,43574],[43584,43597],[43600,43609],[43612,43714],[43739,43766],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43883],[43888,44013],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[55296,64109],[64112,64217],[64256,64262],[64275,64279],[64285,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64450],[64467,64911],[64914,64967],64975,[65008,65049],[65056,65106],[65108,65126],[65128,65131],[65136,65140],[65142,65276],65279,[65281,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65504,65510],[65512,65518],[65529,65533],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65792,65794],[65799,65843],[65847,65934],[65936,65948],65952,[66e3,66045],[66176,66204],[66208,66256],[66272,66299],[66304,66339],[66349,66378],[66384,66426],[66432,66461],[66463,66499],[66504,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67871,67897],67903,[67968,68023],[68028,68047],[68050,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],[68159,68168],[68176,68184],[68192,68255],[68288,68326],[68331,68342],[68352,68405],[68409,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68903],[68912,68921],[69216,69246],[69248,69289],[69291,69293],[69296,69297],[69373,69415],[69424,69465],[69488,69513],[69552,69579],[69600,69622],[69632,69709],[69714,69749],[69759,69826],69837,[69840,69864],[69872,69881],[69888,69940],[69942,69959],[69968,70006],[70016,70111],[70113,70132],[70144,70161],[70163,70209],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313],[70320,70378],[70384,70393],[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70459,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516],[70656,70747],[70749,70753],[70784,70855],[70864,70873],[71040,71093],[71096,71133],[71168,71236],[71248,71257],[71264,71276],[71296,71353],[71360,71369],[71424,71450],[71453,71467],[71472,71494],[71680,71739],[71840,71922],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72006],[72016,72025],[72096,72103],[72106,72151],[72154,72164],[72192,72263],[72272,72354],[72368,72440],[72448,72457],[72704,72712],[72714,72758],[72760,72773],[72784,72812],[72816,72847],[72850,72871],[72873,72886],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129],[73440,73464],[73472,73488],[73490,73530],[73534,73561],73648,[73664,73713],[73727,74649],[74752,74862],[74864,74868],[74880,75075],[77712,77810],[77824,78933],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92782,92862],[92864,92873],[92880,92909],[92912,92917],[92928,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071],[93760,93850],[93952,94026],[94031,94087],[94095,94111],[94176,94180],[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113820,113827],[118528,118573],[118576,118598],[118608,118723],[118784,119029],[119040,119078],[119081,119274],[119296,119365],[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,121483],[121499,121503],[121505,121519],[122624,122654],[122661,122666],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123136,123180],[123184,123197],[123200,123209],[123214,123215],[123536,123566],[123584,123641],123647,[124112,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125127,125142],[125184,125259],[125264,125273],[125278,125279],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743],917505,[917536,917631],[917760,917999],[983040,1048573],[1048576,1114109]],oe=[1564,[8206,8207],[8234,8238],[8294,8297]],ae=[[40,41],60,62,91,93,123,125,171,187,[3898,3901],[5787,5788],[8249,8250],[8261,8262],[8317,8318],[8333,8334],8512,[8705,8708],[8712,8717],8721,[8725,8726],[8730,8733],[8735,8738],8740,8742,[8747,8755],8761,[8763,8780],[8786,8789],[8799,8800],8802,[8804,8811],[8814,8844],[8847,8850],8856,[8866,8867],[8870,8888],[8894,8895],[8905,8909],[8912,8913],[8918,8941],[8944,8959],[8968,8971],[8992,8993],[9001,9002],[10088,10101],10176,[10179,10182],[10184,10185],[10187,10189],[10195,10198],[10204,10206],[10210,10223],[10627,10648],[10651,10656],[10658,10671],10680,[10688,10693],10697,[10702,10706],[10708,10709],[10712,10716],10721,[10723,10725],[10728,10729],[10740,10745],[10748,10749],[10762,10780],[10782,10785],10788,10790,10793,[10795,10798],[10804,10805],[10812,10814],[10839,10840],[10852,10853],[10858,10861],[10863,10864],[10867,10868],[10873,10915],[10918,10925],[10927,10966],10972,10974,[10978,10982],[10988,10990],10995,[10999,11003],11005,11262,[11778,11781],[11785,11786],[11788,11789],[11804,11805],[11808,11817],[11861,11868],[12296,12305],[12308,12315],[65113,65118],[65124,65125],[65288,65289],65308,65310,65339,65341,65371,65373,[65375,65376],[65378,65379],120539,120597,120655,120713,120771],ce=[39,46,58,94,96,168,173,175,180,[183,184],[688,879],[884,885],890,[900,901],903,[1155,1161],1369,1375,[1425,1469],1471,[1473,1474],[1476,1477],1479,1524,[1536,1541],[1552,1562],1564,1600,[1611,1631],1648,[1750,1757],[1759,1768],[1770,1773],1807,1809,[1840,1866],[1958,1968],[2027,2037],2042,2045,[2070,2093],[2137,2139],2184,[2192,2193],[2200,2207],[2249,2306],2362,2364,[2369,2376],2381,[2385,2391],[2402,2403],2417,2433,2492,[2497,2500],2509,[2530,2531],2558,[2561,2562],2620,[2625,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2690],2748,[2753,2757],[2759,2760],2765,[2786,2787],[2810,2815],2817,2876,2879,[2881,2884],2893,[2901,2902],[2914,2915],2946,3008,3021,3072,3076,3132,[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],3201,3260,3263,3270,[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],3405,[3426,3427],3457,3530,[3538,3540],3542,3633,[3636,3642],[3654,3662],3761,[3764,3772],3782,[3784,3790],[3864,3865],3893,3895,3897,[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],4226,[4229,4230],4237,4253,4348,[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],6086,[6089,6099],6103,6109,[6155,6159],6211,[6277,6278],6313,[6432,6434],[6439,6440],6450,[6457,6459],[6679,6680],6683,6742,[6744,6750],6752,6754,[6757,6764],[6771,6780],6783,6823,[6832,6862],[6912,6915],6964,[6966,6970],6972,6978,[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],7142,[7144,7145],7149,[7151,7153],[7212,7219],[7222,7223],[7288,7293],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7468,7530],7544,[7579,7679],8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[8203,8207],[8216,8217],8228,8231,[8234,8238],[8288,8292],[8294,8303],8305,8319,[8336,8348],[8400,8432],[11388,11389],[11503,11505],11631,11647,[11744,11775],11823,12293,[12330,12333],[12337,12341],12347,[12441,12446],[12540,12542],40981,[42232,42237],42508,[42607,42610],[42612,42621],42623,[42652,42655],[42736,42737],[42752,42785],42864,[42888,42890],[42994,42996],[43e3,43001],43010,43014,43019,[43045,43046],43052,[43204,43205],[43232,43249],43263,[43302,43309],[43335,43345],[43392,43394],43443,[43446,43449],[43452,43453],43471,[43493,43494],[43561,43566],[43569,43570],[43573,43574],43587,43596,43632,43644,43696,[43698,43700],[43703,43704],[43710,43711],43713,43741,[43756,43757],[43763,43764],43766,[43867,43871],[43881,43883],44005,44008,44013,64286,[64434,64450],[65024,65039],65043,[65056,65071],65106,65109,65279,65287,65294,65306,65342,65344,65392,[65438,65439],65507,[65529,65531],66045,66272,[66422,66426],[67456,67461],[67463,67504],[67506,67514],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],69633,[69688,69702],69744,[69747,69748],[69759,69761],[69811,69814],[69817,69818],69821,69826,69837,[69888,69890],[69927,69931],[69933,69940],70003,[70016,70017],[70070,70078],[70089,70092],70095,[70191,70193],70196,[70198,70199],70206,70209,70367,[70371,70378],[70400,70401],[70459,70460],70464,[70502,70508],[70512,70516],[70712,70719],[70722,70724],70726,70750,[70835,70840],70842,[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],71229,[71231,71232],71339,71341,[71344,71349],71351,[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[71995,71996],71998,72003,[72148,72151],[72154,72155],72160,[72193,72202],[72243,72248],[72251,72254],72263,[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],72767,[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73104,73105],73109,73111,[73459,73460],[73472,73473],[73526,73530],73536,73538,[78896,78912],[78919,78933],[92912,92916],[92976,92982],[92992,92995],94031,[94095,94111],[94176,94177],[94179,94180],[110576,110579],[110581,110587],[110589,110590],[113821,113822],[113824,113827],[118528,118573],[118576,118598],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123184,123197],123566,[123628,123631],[124139,124143],[125136,125142],[125252,125259],[127995,127999],917505,[917536,917631],[917760,917999]],le=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,442],[444,447],[452,659],[661,696],[704,705],[736,740],837,[880,883],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],[1376,1416],[4256,4293],4295,4301,[4304,4346],[4348,4351],[5024,5109],[5112,5117],[7296,7304],[7312,7354],[7357,7359],[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8500],8505,[8508,8511],[8517,8521],8526,[8544,8575],[8579,8580],[9398,9449],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[42560,42605],[42624,42653],[42786,42887],[42891,42894],[42896,42954],[42960,42961],42963,[42965,42969],[42994,42998],[43e3,43002],[43824,43866],[43868,43881],[43888,43967],[64256,64262],[64275,64279],[65313,65338],[65345,65370],[66560,66639],[66736,66771],[66776,66811],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],67456,[67459,67461],[67463,67504],[67506,67514],[68736,68786],[68800,68850],[71840,71903],[93760,93823],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122633],[122635,122654],[122661,122666],[122928,122989],[125184,125251],[127280,127305],[127312,127337],[127344,127369]],ue=[[65,90],181,[192,214],[216,223],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,[329,330],332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,383,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,[452,453],[455,456],[458,459],461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,[497,498],500,[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,837,880,882,886,895,902,[904,906],908,[910,911],[913,929],[931,939],962,[975,977],[981,982],984,986,988,990,992,994,996,998,1e3,1002,1004,1006,[1008,1009],[1012,1013],1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],1415,[4256,4293],4295,4301,[5112,5117],[7296,7304],[7312,7354],[7357,7359],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,[7834,7835],7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],[8064,8111],[8114,8116],[8119,8124],[8130,8132],[8135,8140],[8152,8155],[8168,8172],[8178,8180],[8183,8188],8486,[8490,8491],8498,[8544,8559],8579,[9398,9423],[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11390,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,42997,[43888,43967],[64256,64262],[64275,64279],[65313,65338],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[68736,68786],[71840,71871],[93760,93791],[125184,125217]],he=[[65,90],[97,122],181,[192,214],[216,246],[248,311],[313,396],[398,410],[412,425],[428,441],[444,445],447,[452,544],[546,563],[570,596],[598,599],601,[603,604],[608,609],611,[613,614],[616,620],623,[625,626],629,637,640,[642,643],[647,652],658,[669,670],837,[880,883],[886,887],[891,893],895,902,[904,906],908,[910,929],[931,977],[981,1013],[1015,1019],[1021,1153],[1162,1327],[1329,1366],[1377,1415],[4256,4293],4295,4301,[4304,4346],[4349,4351],[5024,5109],[5112,5117],[7296,7304],[7312,7354],[7357,7359],7545,7549,7566,[7680,7835],7838,[7840,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8486,[8490,8491],8498,8526,[8544,8575],[8579,8580],[9398,9449],[11264,11376],[11378,11379],[11381,11382],[11390,11491],[11499,11502],[11506,11507],[11520,11557],11559,11565,[42560,42605],[42624,42651],[42786,42799],[42802,42863],[42873,42887],[42891,42893],[42896,42900],[42902,42926],[42928,42954],[42960,42961],[42966,42969],[42997,42998],43859,[43888,43967],[64256,64262],[64275,64279],[65313,65338],[65345,65370],[66560,66639],[66736,66771],[66776,66811],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68736,68786],[68800,68850],[71840,71903],[93760,93823],[125184,125251]],_e=[[65,90],[192,214],[216,222],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,[452,453],[455,456],[458,459],461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,[497,498],500,[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,880,882,886,895,902,[904,906],908,[910,911],[913,929],[931,939],975,984,986,988,990,992,994,996,998,1e3,1002,1004,1006,1012,1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],[4256,4293],4295,4301,[5024,5109],[7312,7354],[7357,7359],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],[8072,8079],[8088,8095],[8104,8111],[8120,8124],[8136,8140],[8152,8155],[8168,8172],[8184,8188],8486,[8490,8491],8498,[8544,8559],8579,[9398,9423],[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11390,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,42997,[65313,65338],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[68736,68786],[71840,71871],[93760,93791],[125184,125217]],de=[[65,90],160,168,170,173,175,[178,181],[184,186],[188,190],[192,214],[216,223],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,[306,308],310,313,315,317,[319,321],323,325,327,[329,330],332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,383,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,[452,461],463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,[497,500],[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,[688,696],[728,733],[736,740],[832,833],[835,837],847,880,882,884,886,890,[894,895],[900,906],908,[910,911],[913,929],[931,939],962,[975,982],984,986,988,990,992,994,996,998,1e3,1002,1004,1006,[1008,1010],[1012,1013],1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],1415,1564,[1653,1656],[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3635,3763,[3804,3805],3852,3907,3917,3922,3927,3932,3945,3955,[3957,3961],3969,3987,3997,4002,4007,4012,4025,[4256,4293],4295,4301,4348,[4447,4448],[5112,5117],[6068,6069],[6155,6159],[7296,7304],[7312,7354],[7357,7359],[7468,7470],[7472,7482],[7484,7501],[7503,7530],7544,[7579,7615],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,[7834,7835],7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],8049,8051,8053,8055,8057,8059,8061,[8064,8111],[8114,8116],[8119,8132],[8135,8143],8147,[8152,8155],[8157,8159],8163,[8168,8175],[8178,8180],[8183,8190],[8192,8207],8209,8215,[8228,8230],[8234,8239],[8243,8244],[8246,8247],8252,8254,[8263,8265],8279,[8287,8305],[8308,8334],[8336,8348],8360,[8448,8451],[8453,8455],[8457,8467],[8469,8470],[8473,8477],[8480,8482],8484,8486,8488,[8490,8493],[8495,8505],[8507,8512],[8517,8521],[8528,8575],8579,8585,[8748,8749],[8751,8752],[9001,9002],[9312,9450],10764,[10868,10870],10972,[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11388,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,11631,11935,12019,[12032,12245],12288,12342,[12344,12346],[12443,12444],12447,12543,[12593,12686],[12690,12703],[12800,12830],[12832,12871],[12880,12926],[12928,13311],42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,[42652,42653],42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42864,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,[42994,42997],[43e3,43001],[43868,43871],43881,[43888,43967],[63744,64013],64016,64018,[64021,64030],64032,64034,[64037,64038],[64042,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65024,65049],[65072,65092],[65095,65106],[65108,65126],[65128,65131],[65136,65138],65140,[65142,65276],65279,[65281,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65504,65510],[65512,65518],[65520,65528],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[67457,67461],[67463,67504],[67506,67514],[68736,68786],[71840,71871],[93760,93791],[113824,113827],[119134,119140],[119155,119162],[119227,119232],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,120831],[122928,122989],[125184,125217],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[127232,127242],[127248,127278],[127280,127311],[127338,127340],127376,[127488,127490],[127504,127547],[127552,127560],[127568,127569],[130032,130041],[194560,195101],[917504,921599]],fe=[[97,122],181,[223,246],[248,255],257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,311,314,316,318,320,322,324,326,[328,329],331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,[382,384],387,389,392,396,402,405,[409,410],414,417,419,421,424,429,432,436,438,441,445,447,452,[454,455],[457,458],460,462,464,466,468,470,472,474,[476,477],479,481,483,485,487,489,491,493,[495,497],499,501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,547,549,551,553,555,557,559,561,563,572,[575,576],578,583,585,587,589,[591,596],[598,599],601,[603,604],[608,609],611,[613,614],[616,620],623,[625,626],629,637,640,[642,643],[647,652],658,[669,670],837,881,883,887,[891,893],912,[940,974],[976,977],[981,983],985,987,989,991,993,995,997,999,1001,1003,1005,[1007,1011],1013,1016,1019,[1072,1119],1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,[1230,1231],1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,[1377,1415],[5112,5117],[7296,7304],7545,7549,7566,7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,[7829,7835],7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8071],[8080,8087],[8096,8103],[8112,8116],[8118,8119],8126,[8130,8132],[8134,8135],[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],8526,[8560,8575],8580,[9424,9449],[11312,11359],11361,[11365,11366],11368,11370,11372,11379,11382,11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,11491,11500,11502,11507,[11520,11557],11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,42651,42787,42789,42791,42793,42795,42797,42799,42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,42863,42874,42876,42879,42881,42883,42885,42887,42892,42897,[42899,42900],42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42933,42935,42937,42939,42941,42943,42945,42947,42952,42954,42961,42967,42969,42998,43859,[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68800,68850],[71872,71903],[93792,93823],[125218,125251]],ge=[[97,122],181,[223,246],[248,255],257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,311,314,316,318,320,322,324,326,[328,329],331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,[382,384],387,389,392,396,402,405,[409,410],414,417,419,421,424,429,432,436,438,441,445,447,[453,454],[456,457],[459,460],462,464,466,468,470,472,474,[476,477],479,481,483,485,487,489,491,493,[495,496],[498,499],501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,547,549,551,553,555,557,559,561,563,572,[575,576],578,583,585,587,589,[591,596],[598,599],601,[603,604],[608,609],611,[613,614],[616,620],623,[625,626],629,637,640,[642,643],[647,652],658,[669,670],837,881,883,887,[891,893],912,[940,974],[976,977],[981,983],985,987,989,991,993,995,997,999,1001,1003,1005,[1007,1011],1013,1016,1019,[1072,1119],1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,[1230,1231],1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,[1377,1415],[4304,4346],[4349,4351],[5112,5117],[7296,7304],7545,7549,7566,7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,[7829,7835],7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8116],[8118,8119],8124,8126,[8130,8132],[8134,8135],8140,[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],8188,8526,[8560,8575],8580,[9424,9449],[11312,11359],11361,[11365,11366],11368,11370,11372,11379,11382,11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,11491,11500,11502,11507,[11520,11557],11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,42651,42787,42789,42791,42793,42795,42797,42799,42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,42863,42874,42876,42879,42881,42883,42885,42887,42892,42897,[42899,42900],42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42933,42935,42937,42939,42941,42943,42945,42947,42952,42954,42961,42967,42969,42998,43859,[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68800,68850],[71872,71903],[93792,93823],[125218,125251]],De=[[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3907,3917,3922,3927,3932,3945,3958,3960,3987,3997,4002,4007,4012,4025,10972,64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64334],[119134,119140],[119227,119232]],pe=[45,1418,1470,5120,6150,[8208,8213],8275,8315,8331,8722,11799,11802,[11834,11835],11840,11869,12316,12336,12448,[65073,65074],65112,65123,65293,69293],me=[173,847,1564,[4447,4448],[6068,6069],[6155,6159],[8203,8207],[8234,8238],[8288,8303],12644,[65024,65039],65279,65440,[65520,65528],[113824,113827],[119155,119162],[917504,921599]],be=[329,1651,3959,3961,[6051,6052],[8298,8303],[9001,9002],917505],ve=[94,96,168,175,180,[183,184],[688,846],[848,855],[861,866],[884,885],890,[900,901],[1155,1159],1369,[1425,1441],[1443,1469],1471,[1473,1474],1476,[1611,1618],[1623,1624],[1759,1760],[1765,1766],[1770,1772],[1840,1866],[1958,1968],[2027,2037],[2072,2073],[2200,2207],[2249,2258],[2275,2302],2364,2381,[2385,2388],2417,2492,2509,2620,2637,2748,2765,[2813,2815],2876,2893,2901,3021,3132,3149,3260,3277,[3387,3388],3405,3530,[3655,3660],3662,3770,[3784,3788],[3864,3865],3893,3895,3897,[3902,3903],[3970,3972],[3974,3975],4038,4151,[4153,4154],[4195,4196],[4201,4205],[4231,4237],4239,[4250,4251],[4957,4959],[5908,5909],[6089,6099],6109,[6457,6459],[6773,6780],6783,[6832,6846],[6849,6859],6964,6980,[7019,7027],[7082,7083],[7222,7223],[7288,7293],[7376,7400],7405,7412,[7415,7417],[7468,7530],[7620,7631],[7669,7679],8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[11503,11505],11823,[12330,12335],[12441,12444],12540,42607,[42620,42621],42623,[42652,42653],[42736,42737],[42752,42785],[42888,42890],[43e3,43001],43204,[43232,43249],[43307,43310],43347,43443,43456,43493,[43643,43645],[43711,43714],43766,[43867,43871],[43881,43883],[44012,44013],64286,[65056,65071],65342,65344,65392,[65438,65439],65507,66272,[67456,67461],[67463,67504],[67506,67514],[68325,68326],[68898,68903],[69373,69375],[69446,69456],[69506,69509],69702,69744,[69817,69818],[69939,69940],70003,70080,[70090,70092],[70197,70198],[70377,70378],70460,70477,[70502,70508],[70512,70516],70722,70726,[70850,70851],[71103,71104],71231,[71350,71351],71467,[71737,71738],[71997,71998],72003,72160,72244,72263,72345,72767,73026,[73028,73029],73111,[78919,78933],[92912,92916],[92976,92982],[94095,94111],[94192,94193],[110576,110579],[110581,110587],[110589,110590],[118528,118573],[118576,118598],[119143,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[122928,122989],[123184,123190],123566,[123628,123631],[125136,125142],[125252,125254],[125256,125258]],Ce=[35,42,[48,57],169,174,8252,8265,8482,8505,[8596,8601],[8617,8618],[8986,8987],9e3,9167,[9193,9203],[9208,9210],9410,[9642,9643],9654,9664,[9723,9726],[9728,9732],9742,9745,[9748,9749],9752,9757,9760,[9762,9763],9766,9770,[9774,9775],[9784,9786],9792,9794,[9800,9811],[9823,9824],9827,[9829,9830],9832,9851,[9854,9855],[9874,9879],9881,[9883,9884],[9888,9889],9895,[9898,9899],[9904,9905],[9917,9918],[9924,9925],9928,[9934,9935],9937,[9939,9940],[9961,9962],[9968,9973],[9975,9978],9981,9986,9989,[9992,9997],9999,10002,10004,10006,10013,10017,10024,[10035,10036],10052,10055,10060,10062,[10067,10069],10071,[10083,10084],[10133,10135],10145,10160,10175,[10548,10549],[11013,11015],[11035,11036],11088,11093,12336,12349,12951,12953,126980,127183,[127344,127345],[127358,127359],127374,[127377,127386],[127462,127487],[127489,127490],127514,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,[128394,128397],128400,[128405,128406],[128420,128421],128424,[128433,128434],128444,[128450,128452],[128465,128467],[128476,128478],128481,128483,128488,128495,128499,[128506,128591],[128640,128709],[128715,128722],[128725,128727],[128732,128741],128745,[128747,128748],128752,[128755,128764],[128992,129003],129008,[129292,129338],[129340,129349],[129351,129535],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784]],Se=[35,42,[48,57],8205,8419,65039,[127462,127487],[127995,127999],[129456,129459],[917536,917631]],Ee=[[127995,127999]],ye=[9757,9977,[9994,9997],127877,[127938,127940],127943,[127946,127948],[128066,128067],[128070,128080],[128102,128120],128124,[128129,128131],[128133,128135],128143,128145,128170,[128372,128373],128378,128400,[128405,128406],[128581,128583],[128587,128591],128675,[128692,128694],128704,128716,129292,129295,[129304,129311],129318,[129328,129337],[129340,129342],129399,[129461,129462],[129464,129465],129467,[129485,129487],[129489,129501],[129731,129733],[129776,129784]],Te=[[8986,8987],[9193,9196],9200,9203,[9725,9726],[9748,9749],[9800,9811],9855,9875,9889,[9898,9899],[9917,9918],[9924,9925],9934,9940,9962,[9970,9971],9973,9978,9981,9989,[9994,9995],10024,10060,10062,[10067,10069],10071,[10133,10135],10160,10175,[11035,11036],11088,11093,126980,127183,127374,[127377,127386],[127462,127487],127489,127514,127535,[127538,127542],[127544,127546],[127568,127569],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],127988,[127992,128062],128064,[128066,128252],[128255,128317],[128331,128334],[128336,128359],128378,[128405,128406],128420,[128507,128591],[128640,128709],128716,[128720,128722],[128725,128727],[128732,128735],[128747,128748],[128756,128764],[128992,129003],129008,[129292,129338],[129340,129349],[129351,129535],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784]],Fe=[836,[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3907,3917,3922,3927,3932,3945,3955,[3957,3958],3960,3969,3987,3997,4002,4007,4012,4025,10972,64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64334],[119134,119140],[119227,119232]],Oe=[[192,197],[199,207],[209,214],[217,221],[224,229],[231,239],[241,246],[249,253],[255,271],[274,293],[296,304],[308,311],[313,318],[323,328],[332,337],[340,357],[360,382],[416,417],[431,432],[461,476],[478,483],[486,496],[500,501],[504,539],[542,543],[550,563],836,[901,902],[904,906],908,[910,912],[938,944],[970,974],[979,980],[1024,1025],1027,1031,[1036,1038],1049,1081,[1104,1105],1107,1111,[1116,1118],[1142,1143],[1217,1218],[1232,1235],[1238,1239],[1242,1247],[1250,1255],[1258,1269],[1272,1273],[1570,1574],1728,1730,1747,2345,2353,2356,[2392,2399],[2507,2508],[2524,2525],2527,2611,2614,[2649,2651],2654,2888,[2891,2892],[2908,2909],2964,[3018,3020],3144,3264,[3271,3272],[3274,3275],[3402,3404],3546,[3548,3550],3907,3917,3922,3927,3932,3945,3955,[3957,3958],3960,3969,3987,3997,4002,4007,4012,4025,4134,6918,6920,6922,6924,6926,6930,6971,6973,[6976,6977],6979,[7680,7833],7835,[7840,7929],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],[8129,8132],[8134,8147],[8150,8155],[8157,8174],[8178,8180],[8182,8188],8491,[8602,8603],8622,[8653,8655],8708,8713,8716,8740,8742,8769,8772,8775,8777,8800,8802,[8813,8817],[8820,8821],[8824,8825],[8832,8833],[8836,8837],[8840,8841],[8876,8879],[8928,8931],[8938,8941],10972,12364,12366,12368,12370,12372,12374,12376,12378,12380,12382,12384,12386,12389,12391,12393,[12400,12401],[12403,12404],[12406,12407],[12409,12410],[12412,12413],12436,12446,12460,12462,12464,12466,12468,12470,12472,12474,12476,12478,12480,12482,12485,12487,12489,[12496,12497],[12499,12500],[12502,12503],[12505,12506],[12508,12509],12532,[12535,12538],12542,[44032,55203],64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64334],69786,69788,69803,[69934,69935],[70475,70476],[70843,70844],70846,[71098,71099],71992,[119134,119140],[119227,119232]],we=[168,175,180,184,[188,190],[306,307],[319,320],329,[452,460],[497,499],[728,733],836,890,[900,901],1415,[1653,1656],[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3635,3763,[3804,3805],3907,3917,3922,3927,3932,3945,3955,[3957,3961],3969,3987,3997,4002,4007,4012,4025,7834,8125,[8127,8129],[8141,8143],[8157,8159],[8173,8174],[8189,8190],8215,[8229,8230],[8243,8244],[8246,8247],8252,8254,[8263,8265],8279,8360,[8448,8449],8451,[8453,8454],8457,8470,[8480,8482],8507,[8528,8543],[8545,8547],[8549,8552],[8554,8555],[8561,8563],[8565,8568],[8570,8571],8585,[8748,8749],[8751,8752],[9321,9397],10764,[10868,10870],10972,[12443,12444],12447,12543,[12800,12830],[12832,12867],[12880,12895],[12924,12925],[12977,13007],[13055,13311],[64256,64262],[64275,64279],64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335],64477,[64490,64507],[64512,64829],[64848,64911],[64914,64967],[65008,65020],65049,65072,[65097,65100],[65136,65138],65140,[65142,65151],[65269,65276],65507,[119134,119140],[119227,119232],[127232,127242],[127248,127274],[127277,127278],[127306,127311],[127338,127340],127376,[127488,127489],[127552,127560]],Be=[168,175,180,184,[188,190],[192,197],[199,207],[209,214],[217,221],[224,229],[231,239],[241,246],[249,253],[255,271],[274,293],[296,304],[306,311],[313,320],[323,329],[332,337],[340,357],[360,382],[416,417],[431,432],[452,476],[478,483],[486,501],[504,539],[542,543],[550,563],[728,733],836,890,[900,902],[904,906],908,[910,912],[938,944],[970,974],[979,980],[1024,1025],1027,1031,[1036,1038],1049,1081,[1104,1105],1107,1111,[1116,1118],[1142,1143],[1217,1218],[1232,1235],[1238,1239],[1242,1247],[1250,1255],[1258,1269],[1272,1273],1415,[1570,1574],[1653,1656],1728,1730,1747,2345,2353,2356,[2392,2399],[2507,2508],[2524,2525],2527,2611,2614,[2649,2651],2654,2888,[2891,2892],[2908,2909],2964,[3018,3020],3144,3264,[3271,3272],[3274,3275],[3402,3404],3546,[3548,3550],3635,3763,[3804,3805],3907,3917,3922,3927,3932,3945,3955,[3957,3961],3969,3987,3997,4002,4007,4012,4025,4134,6918,6920,6922,6924,6926,6930,6971,6973,[6976,6977],6979,[7680,7835],[7840,7929],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8125],[8127,8132],[8134,8147],[8150,8155],[8157,8174],[8178,8180],[8182,8190],8215,[8229,8230],[8243,8244],[8246,8247],8252,8254,[8263,8265],8279,8360,[8448,8449],8451,[8453,8454],8457,8470,[8480,8482],8491,8507,[8528,8543],[8545,8547],[8549,8552],[8554,8555],[8561,8563],[8565,8568],[8570,8571],8585,[8602,8603],8622,[8653,8655],8708,8713,8716,8740,8742,[8748,8749],[8751,8752],8769,8772,8775,8777,8800,8802,[8813,8817],[8820,8821],[8824,8825],[8832,8833],[8836,8837],[8840,8841],[8876,8879],[8928,8931],[8938,8941],[9321,9397],10764,[10868,10870],10972,12364,12366,12368,12370,12372,12374,12376,12378,12380,12382,12384,12386,12389,12391,12393,[12400,12401],[12403,12404],[12406,12407],[12409,12410],[12412,12413],12436,[12443,12444],[12446,12447],12460,12462,12464,12466,12468,12470,12472,12474,12476,12478,12480,12482,12485,12487,12489,[12496,12497],[12499,12500],[12502,12503],[12505,12506],[12508,12509],12532,[12535,12538],[12542,12543],[12800,12830],[12832,12867],[12880,12895],[12910,12926],[12977,13007],[13055,13311],[44032,55203],[64256,64262],[64275,64279],64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335],[64420,64421],[64432,64433],64477,[64490,64507],[64512,64829],[64848,64911],[64914,64967],[65008,65020],65049,65072,[65097,65100],[65136,65138],65140,[65142,65151],[65153,65164],[65269,65276],65507,69786,69788,69803,[69934,69935],[70475,70476],[70843,70844],70846,[71098,71099],71992,[119134,119140],[119227,119232],[127232,127242],[127248,127274],[127277,127278],[127306,127311],[127338,127340],127376,[127488,127489],127507,[127552,127560]],Ae=[169,174,8252,8265,8482,8505,[8596,8601],[8617,8618],[8986,8987],9e3,9096,9167,[9193,9203],[9208,9210],9410,[9642,9643],9654,9664,[9723,9726],[9728,9733],[9735,9746],[9748,9861],[9872,9989],[9992,10002],10004,10006,10013,10017,10024,[10035,10036],10052,10055,10060,10062,[10067,10069],10071,[10083,10087],[10133,10135],10145,10160,10175,[10548,10549],[11013,11015],[11035,11036],11088,11093,12336,12349,12951,12953,[126976,127231],[127245,127247],127279,[127340,127345],[127358,127359],127374,[127377,127386],[127405,127461],[127489,127503],127514,127535,[127538,127546],[127548,127551],[127561,127994],[128e3,128317],[128326,128591],[128640,128767],[128884,128895],[128981,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129279],[129292,129338],[129340,129349],[129351,129791],[130048,131069]],Re=[183,[720,721],1600,2042,2901,3654,3782,6154,6211,6823,7222,7291,12293,[12337,12341],[12445,12446],[12540,12542],40981,42508,43471,43494,43632,43741,[43763,43764],65392,[67457,67458],70493,[71110,71112],72344,[92994,92995],[94176,94177],94179,[123196,123197],[125252,125254]],xe=[[832,833],[835,836],884,894,903,[2392,2399],[2524,2525],2527,2611,2614,[2649,2651],2654,[2908,2909],3907,3917,3922,3927,3932,3945,3955,[3957,3958],3960,3969,3987,3997,4002,4007,4012,4025,8049,8051,8053,8055,8057,8059,8061,8123,8126,8137,8139,8147,8155,8163,8171,[8174,8175],8185,8187,8189,[8192,8193],8486,[8490,8491],[9001,9002],10972,[63744,64013],64016,64018,[64021,64030],64032,64034,[64037,64038],[64042,64109],[64112,64217],64285,64287,[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64334],[119134,119140],[119227,119232],[194560,195101]],Me=[[32,126],[160,172],[174,767],[880,887],[890,895],[900,906],908,[910,929],[931,1154],[1162,1327],[1329,1366],[1369,1418],[1421,1423],1470,1472,1475,1478,[1488,1514],[1519,1524],[1542,1551],1563,[1565,1610],[1632,1647],[1649,1749],1758,[1765,1766],1769,[1774,1805],1808,[1810,1839],[1869,1957],1969,[1984,2026],[2036,2042],[2046,2069],2074,2084,2088,[2096,2110],[2112,2136],2142,[2144,2154],[2160,2190],[2208,2249],[2307,2361],2363,[2365,2368],[2377,2380],[2382,2384],[2392,2401],[2404,2432],[2434,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,[2495,2496],[2503,2504],[2507,2508],2510,[2524,2525],[2527,2529],[2534,2557],2563,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2622,2624],[2649,2652],2654,[2662,2671],[2674,2676],2678,2691,[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2749,2752],2761,[2763,2764],2768,[2784,2785],[2790,2801],2809,[2818,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,2880,[2887,2888],[2891,2892],[2908,2909],[2911,2913],[2918,2935],2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3007,[3009,3010],[3014,3016],[3018,3020],3024,[3046,3066],[3073,3075],[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3137,3140],[3160,3162],3165,[3168,3169],[3174,3183],[3191,3200],[3202,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3261,3262],[3264,3265],[3267,3268],[3271,3272],[3274,3275],[3293,3294],[3296,3297],[3302,3311],[3313,3315],[3330,3340],[3342,3344],[3346,3386],3389,[3391,3392],[3398,3400],[3402,3404],[3406,3407],[3412,3414],[3416,3425],[3430,3455],[3458,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3536,3537],[3544,3550],[3558,3567],[3570,3572],[3585,3632],[3634,3635],[3647,3654],[3663,3675],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],3782,[3792,3801],[3804,3807],[3840,3863],[3866,3892],3894,3896,[3898,3911],[3913,3948],3967,3973,[3976,3980],[4030,4037],[4039,4044],[4046,4058],[4096,4140],4145,4152,[4155,4156],[4159,4183],[4186,4189],[4193,4208],[4213,4225],[4227,4228],[4231,4236],[4238,4252],[4254,4293],4295,4301,[4304,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4960,4988],[4992,5017],[5024,5109],[5112,5117],[5120,5788],[5792,5880],[5888,5905],5909,[5919,5937],[5940,5942],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6070,[6078,6085],[6087,6088],[6100,6108],[6112,6121],[6128,6137],[6144,6154],[6160,6169],[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6435,6438],[6441,6443],[6448,6449],[6451,6456],6464,[6468,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6622,6678],[6681,6682],[6686,6741],6743,6753,[6755,6756],[6765,6770],[6784,6793],[6800,6809],[6816,6829],[6916,6963],6971,[6973,6977],[6979,6988],[6992,7018],[7028,7038],[7042,7073],[7078,7079],7082,[7086,7141],7143,[7146,7148],7150,[7154,7155],[7164,7211],[7220,7221],[7227,7241],[7245,7304],[7312,7354],[7357,7367],7379,7393,[7401,7404],[7406,7411],[7413,7415],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],[8192,8202],[8208,8231],[8239,8287],[8304,8305],[8308,8334],[8336,8348],[8352,8384],[8448,8587],[8592,9254],[9280,9290],[9312,11123],[11126,11157],[11159,11502],[11506,11507],[11513,11557],11559,11565,[11568,11623],[11631,11632],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11776,11869],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12336,12351],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12771],[12784,12830],[12832,42124],[42128,42182],[42192,42539],[42560,42606],42611,[42622,42653],[42656,42735],[42738,42743],[42752,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43044],[43047,43051],[43056,43065],[43072,43127],[43136,43203],[43214,43225],[43250,43262],[43264,43301],[43310,43334],[43346,43347],[43359,43388],[43395,43442],[43444,43445],[43450,43451],[43454,43469],[43471,43481],[43486,43492],[43494,43518],[43520,43560],[43567,43568],[43571,43572],[43584,43586],[43588,43595],43597,[43600,43609],[43612,43643],[43645,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43755],[43758,43765],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43883],[43888,44004],[44006,44007],[44009,44012],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64450],[64467,64911],[64914,64967],64975,[65008,65023],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65136,65140],[65142,65276],[65281,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65504,65510],[65512,65518],[65532,65533],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65792,65794],[65799,65843],[65847,65934],[65936,65948],65952,[66e3,66044],[66176,66204],[66208,66256],[66273,66299],[66304,66339],[66349,66378],[66384,66421],[66432,66461],[66463,66499],[66504,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67871,67897],67903,[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],[68176,68184],[68192,68255],[68288,68324],[68331,68342],[68352,68405],[68409,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68899],[68912,68921],[69216,69246],[69248,69289],69293,[69296,69297],[69376,69415],[69424,69445],[69457,69465],[69488,69505],[69510,69513],[69552,69579],[69600,69622],69632,[69634,69687],[69703,69709],[69714,69743],[69745,69746],69749,[69762,69810],[69815,69816],[69819,69820],[69822,69825],[69840,69864],[69872,69881],[69891,69926],69932,[69942,69959],[69968,70002],[70004,70006],[70018,70069],[70079,70088],[70093,70094],[70096,70111],[70113,70132],[70144,70161],[70163,70190],[70194,70195],70197,[70200,70205],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313],[70320,70366],[70368,70370],[70384,70393],[70402,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70463,[70465,70468],[70471,70472],[70475,70477],70480,[70493,70499],[70656,70711],[70720,70721],70725,[70727,70747],70749,[70751,70753],[70784,70831],[70833,70834],70841,[70843,70844],70846,70849,[70852,70855],[70864,70873],[71040,71086],[71088,71089],[71096,71099],71102,[71105,71131],[71168,71218],[71227,71228],71230,[71233,71236],[71248,71257],[71264,71276],[71296,71338],71340,[71342,71343],71350,[71352,71353],[71360,71369],[71424,71450],[71456,71457],71462,[71472,71494],[71680,71726],71736,71739,[71840,71922],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],[71985,71989],[71991,71992],71997,[71999,72002],[72004,72006],[72016,72025],[72096,72103],[72106,72147],[72156,72159],[72161,72164],72192,[72203,72242],[72249,72250],[72255,72262],72272,[72279,72280],[72284,72329],72343,[72346,72354],[72368,72440],[72448,72457],[72704,72712],[72714,72751],72766,[72768,72773],[72784,72812],[72816,72847],72873,72881,72884,[72960,72966],[72968,72969],[72971,73008],73030,[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73107,73108],73110,73112,[73120,73129],[73440,73458],[73461,73464],[73474,73488],[73490,73525],[73534,73535],73537,[73539,73561],73648,[73664,73713],[73727,74649],[74752,74862],[74864,74868],[74880,75075],[77712,77810],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92782,92862],[92864,92873],[92880,92909],92917,[92928,92975],[92983,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071],[93760,93850],[93952,94026],[94032,94087],[94099,94111],[94176,94179],[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],113820,113823,[118608,118723],[118784,119029],[119040,119078],[119081,119140],119142,[119146,119149],[119171,119172],[119180,119209],[119214,119274],[119296,119361],119365,[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121483],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],[123200,123209],[123214,123215],[123536,123565],[123584,123627],[123632,123641],123647,[124112,124139],[124144,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125127,125135],[125184,125251],125259,[125264,125273],[125278,125279],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],Le=[[768,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2306],2362,2364,[2369,2376],2381,[2385,2391],[2402,2403],2433,2492,2494,[2497,2500],2509,2519,[2530,2531],2558,[2561,2562],2620,[2625,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2690],2748,[2753,2757],[2759,2760],2765,[2786,2787],[2810,2815],2817,2876,[2878,2879],[2881,2884],2893,[2901,2903],[2914,2915],2946,3006,3008,3021,3031,3072,3076,3132,[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],3201,3260,3263,3266,3270,[3276,3277],[3285,3286],[3298,3299],[3328,3329],[3387,3388],3390,[3393,3396],3405,3415,[3426,3427],3457,3530,3535,[3538,3540],3542,3551,3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],4226,[4229,4230],4237,4253,[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],6086,[6089,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6434],[6439,6440],6450,[6457,6459],[6679,6680],6683,6742,[6744,6750],6752,6754,[6757,6764],[6771,6780],6783,[6832,6862],[6912,6915],[6964,6970],6972,6978,[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],7142,[7144,7145],7149,[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7616,7679],8204,[8400,8432],[11503,11505],11647,[11744,11775],[12330,12335],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43045,43046],43052,[43204,43205],[43232,43249],43263,[43302,43309],[43335,43345],[43392,43394],43443,[43446,43449],[43452,43453],43493,[43561,43566],[43569,43570],[43573,43574],43587,43596,43644,43696,[43698,43700],[43703,43704],[43710,43711],43713,[43756,43757],43766,44005,44008,44013,64286,[65024,65039],[65056,65071],[65438,65439],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],69633,[69688,69702],69744,[69747,69748],[69759,69761],[69811,69814],[69817,69818],69826,[69888,69890],[69927,69931],[69933,69940],70003,[70016,70017],[70070,70078],[70089,70092],70095,[70191,70193],70196,[70198,70199],70206,70209,70367,[70371,70378],[70400,70401],[70459,70460],70462,70464,70487,[70502,70508],[70512,70516],[70712,70719],[70722,70724],70726,70750,70832,[70835,70840],70842,70845,[70847,70848],[70850,70851],71087,[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],71229,[71231,71232],71339,71341,[71344,71349],71351,[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],71984,[71995,71996],71998,72003,[72148,72151],[72154,72155],72160,[72193,72202],[72243,72248],[72251,72254],72263,[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],72767,[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73104,73105],73109,73111,[73459,73460],[73472,73473],[73526,73530],73536,73538,78912,[78919,78933],[92912,92916],[92976,92982],94031,[94095,94098],94180,[113821,113822],[118528,118573],[118576,118598],119141,[119143,119145],[119150,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[917536,917631],[917760,917999]],Ie=[2381,2509,2637,2765,2893,3021,3149,3277,[3387,3388],3405,3530,3642,3770,3972,[4153,4154],[5908,5909],5940,6098,6752,6980,[7082,7083],[7154,7155],11647,43014,43052,43204,43347,43456,43766,44013,68159,69702,69744,69759,69817,[69939,69940],70080,70197,70378,70477,70722,70850,71103,71231,71350,71467,71737,[71997,71998],72160,72244,72263,72345,72767,[73028,73029],73111,[73537,73538]],Pe=[[48,57],[65,70],[97,102],[65296,65305],[65313,65318],[65345,65350]],$e=[45,173,1418,6150,[8208,8209],11799,12539,65123,65293,65381],ke=[[12272,12273],[12276,12283]],Ne=[[12274,12275]],He=[[48,57],[65,90],95,[97,122],170,181,183,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[768,884],[886,887],[890,893],895,[902,906],908,[910,929],[931,1013],[1015,1153],[1155,1159],[1162,1327],[1329,1366],1369,[1376,1416],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1488,1514],[1519,1522],[1552,1562],[1568,1641],[1646,1747],[1749,1756],[1759,1768],[1770,1788],1791,[1808,1866],[1869,1969],[1984,2037],2042,2045,[2048,2093],[2112,2139],[2144,2154],[2160,2183],[2185,2190],[2200,2273],[2275,2403],[2406,2415],[2417,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2545],2556,2558,[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2677],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2799],[2809,2815],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2927],2929,[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3055],[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3200,3203],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315],[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3406],[3412,3415],[3423,3427],[3430,3439],[3450,3455],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3571],[3585,3642],[3648,3662],[3664,3673],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807],3840,[3864,3865],[3872,3881],3893,3895,3897,[3902,3911],[3913,3948],[3953,3972],[3974,3991],[3993,4028],4038,[4096,4169],[4176,4253],[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4959],[4969,4977],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5909],[5919,5940],[5952,5971],[5984,5996],[5998,6e3],[6002,6003],[6016,6099],6103,[6108,6109],[6112,6121],[6155,6157],[6159,6169],[6176,6264],[6272,6314],[6320,6389],[6400,6430],[6432,6443],[6448,6459],[6470,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6656,6683],[6688,6750],[6752,6780],[6783,6793],[6800,6809],6823,[6832,6845],[6847,6862],[6912,6988],[6992,7001],[7019,7027],[7040,7155],[7168,7223],[7232,7241],[7245,7293],[7296,7304],[7312,7354],[7357,7359],[7376,7378],[7380,7418],[7424,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],[8255,8256],8276,8305,8319,[8336,8348],[8400,8412],8417,[8421,8432],8450,8455,[8458,8467],8469,[8472,8477],8484,8486,8488,[8490,8505],[8508,8511],[8517,8521],8526,[8544,8584],[11264,11492],[11499,11507],[11520,11557],11559,11565,[11568,11623],11631,[11647,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11744,11775],[12293,12295],[12321,12335],[12337,12341],[12344,12348],[12353,12438],[12441,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42539],[42560,42607],[42612,42621],[42623,42737],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43047],43052,[43072,43123],[43136,43205],[43216,43225],[43232,43255],43259,[43261,43309],[43312,43347],[43360,43388],[43392,43456],[43471,43481],[43488,43518],[43520,43574],[43584,43597],[43600,43609],[43616,43638],[43642,43714],[43739,43741],[43744,43759],[43762,43766],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44010],[44012,44013],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],[64285,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65024,65039],[65056,65071],[65075,65076],[65101,65103],[65136,65140],[65142,65276],[65296,65305],[65313,65338],65343,[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],66045,[66176,66204],[66208,66256],66272,[66304,66335],[66349,66378],[66384,66426],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],68159,[68192,68220],[68224,68252],[68288,68295],[68297,68326],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68903],[68912,68921],[69248,69289],[69291,69292],[69296,69297],[69373,69404],69415,[69424,69456],[69488,69509],[69552,69572],[69600,69622],[69632,69702],[69734,69749],[69759,69818],69826,[69840,69864],[69872,69881],[69888,69940],[69942,69951],[69956,69959],[69968,70003],70006,[70016,70084],[70089,70092],[70094,70106],70108,[70144,70161],[70163,70199],[70206,70209],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70378],[70384,70393],[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70459,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516],[70656,70730],[70736,70745],[70750,70753],[70784,70853],70855,[70864,70873],[71040,71093],[71096,71104],[71128,71133],[71168,71232],71236,[71248,71257],[71296,71352],[71360,71369],[71424,71450],[71453,71467],[71472,71481],[71488,71494],[71680,71738],[71840,71913],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72003],[72016,72025],[72096,72103],[72106,72151],[72154,72161],[72163,72164],[72192,72254],72263,[72272,72345],72349,[72368,72440],[72704,72712],[72714,72758],[72760,72768],[72784,72793],[72818,72847],[72850,72871],[72873,72886],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129],[73440,73462],[73472,73488],[73490,73530],[73534,73538],[73552,73561],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78912,78933],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92784,92862],[92864,92873],[92880,92909],[92912,92916],[92928,92982],[92992,92995],[93008,93017],[93027,93047],[93053,93071],[93760,93823],[93952,94026],[94031,94087],[94095,94111],[94176,94177],[94179,94180],[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113821,113822],[118528,118573],[118576,118598],[119141,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[120782,120831],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122624,122654],[122661,122666],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123136,123180],[123184,123197],[123200,123209],123214,[123536,123566],[123584,123641],[124112,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125136,125142],[125184,125259],[125264,125273],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[130032,130041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743],[917760,917999]],Xe=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[880,884],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],1369,[1376,1416],[1488,1514],[1519,1522],[1568,1610],[1646,1647],[1649,1747],1749,[1765,1766],[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2036,2037],2042,[2048,2069],2074,2084,2088,[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2308,2361],2365,2384,[2392,2401],[2417,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3585,3632],[3634,3635],[3648,3654],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],3782,[3804,3807],3840,[3904,3911],[3913,3948],[3976,3980],[4096,4138],4159,[4176,4181],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6103,6108,[6176,6264],[6272,6312],6314,[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],6823,[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8472,8477],8484,8486,8488,[8490,8505],[8508,8511],[8517,8521],8526,[8544,8584],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[12293,12295],[12321,12329],[12337,12341],[12344,12348],[12353,12438],[12443,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42623,42653],[42656,42735],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],43471,[43488,43492],[43494,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43638],43642,[43646,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43741],[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44002],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],[66176,66204],[66208,66256],[66304,66335],[66349,66378],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71424,71450],[71488,71494],[71680,71723],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],94032,[94099,94111],[94176,94177],94179,[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],ze=[[12294,12295],[12321,12329],[12344,12346],[13312,19903],[19968,40959],[63744,64109],[64112,64217],94180,[94208,100343],[100352,101589],[101632,101640],[110960,111355],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],We=[[8204,8205]],Ye=[[3648,3652],[3776,3780],[6581,6583],6586,[43701,43702],43705,[43707,43708]],je=[[97,122],170,181,186,[223,246],[248,255],257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,[311,312],314,316,318,320,322,324,326,[328,329],331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,[382,384],387,389,392,[396,397],402,405,[409,411],414,417,419,421,424,[426,427],429,432,436,438,[441,442],[445,447],454,457,460,462,464,466,468,470,472,474,[476,477],479,481,483,485,487,489,491,493,[495,496],499,501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,545,547,549,551,553,555,557,559,561,[563,569],572,[575,576],578,583,585,587,589,[591,659],[661,696],[704,705],[736,740],837,881,883,887,[890,893],912,[940,974],[976,977],[981,983],985,987,989,991,993,995,997,999,1001,1003,1005,[1007,1011],1013,1016,[1019,1020],[1072,1119],1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,[1230,1231],1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,[1376,1416],[4304,4346],[4348,4351],[5112,5117],[7296,7304],[7424,7615],7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,[7829,7837],7839,7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8071],[8080,8087],[8096,8103],[8112,8116],[8118,8119],8126,[8130,8132],[8134,8135],[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],8305,8319,[8336,8348],8458,[8462,8463],8467,8495,8500,8505,[8508,8509],[8518,8521],8526,[8560,8575],8580,[9424,9449],[11312,11359],11361,[11365,11366],11368,11370,11372,11377,[11379,11380],[11382,11389],11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,[11491,11492],11500,11502,11507,[11520,11557],11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,[42651,42653],42787,42789,42791,42793,42795,42797,[42799,42801],42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,[42863,42872],42874,42876,42879,42881,42883,42885,42887,42892,42894,42897,[42899,42901],42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42927,42933,42935,42937,42939,42941,42943,42945,42947,42952,42954,42961,42963,42965,42967,42969,[42994,42996],42998,[43e3,43002],[43824,43866],[43868,43881],[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[66967,66977],[66979,66993],[66995,67001],[67003,67004],67456,[67459,67461],[67463,67504],[67506,67514],[68800,68850],[71872,71903],[93792,93823],[119834,119859],[119886,119892],[119894,119911],[119938,119963],[119990,119993],119995,[119997,120003],[120005,120015],[120042,120067],[120094,120119],[120146,120171],[120198,120223],[120250,120275],[120302,120327],[120354,120379],[120406,120431],[120458,120485],[120514,120538],[120540,120545],[120572,120596],[120598,120603],[120630,120654],[120656,120661],[120688,120712],[120714,120719],[120746,120770],[120772,120777],120779,[122624,122633],[122635,122654],[122661,122666],[122928,122989],[125218,125251]],Ue=[43,[60,62],94,124,126,172,177,215,247,[976,978],981,[1008,1009],[1012,1014],[1542,1544],8214,[8242,8244],8256,8260,8274,[8289,8292],[8314,8318],[8330,8334],[8400,8412],8417,[8421,8422],[8427,8431],8450,8455,[8458,8467],8469,[8472,8477],8484,[8488,8489],[8492,8493],[8495,8497],[8499,8504],[8508,8521],8523,[8592,8615],[8617,8622],[8624,8625],[8630,8631],[8636,8667],8669,[8676,8677],[8692,8959],[8968,8971],[8992,8993],9084,[9115,9141],9143,9168,[9180,9186],[9632,9633],[9646,9655],[9660,9665],[9670,9671],[9674,9675],[9679,9683],9698,9700,[9703,9708],[9720,9727],[9733,9734],9792,9794,[9824,9827],[9837,9839],[10176,10239],[10496,11007],[11056,11076],[11079,11084],64297,[65121,65126],65128,65291,[65308,65310],65340,65342,65372,65374,65506,[65513,65516],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,120831],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705]],Ve=[[64976,65007],[65534,65535],[131070,131071],[196606,196607],[262142,262143],[327678,327679],[393214,393215],[458750,458751],[524286,524287],[589822,589823],[655358,655359],[720894,720895],[786430,786431],[851966,851967],[917502,917503],[983038,983039],[1048574,1048575],[1114110,1114111]],Ge=[837,[1456,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1623],[1625,1631],1648,[1750,1756],[1761,1764],[1767,1768],1773,1809,[1840,1855],[1958,1968],[2070,2071],[2075,2083],[2085,2087],[2089,2092],[2260,2271],[2275,2281],[2288,2307],[2362,2363],[2366,2380],[2382,2383],[2389,2391],[2402,2403],[2433,2435],[2494,2500],[2503,2504],[2507,2508],2519,[2530,2531],[2561,2563],[2622,2626],[2631,2632],[2635,2636],2641,[2672,2673],2677,[2689,2691],[2750,2757],[2759,2761],[2763,2764],[2786,2787],[2810,2812],[2817,2819],[2878,2884],[2887,2888],[2891,2892],[2902,2903],[2914,2915],2946,[3006,3010],[3014,3016],[3018,3020],3031,[3072,3076],[3134,3140],[3142,3144],[3146,3148],[3157,3158],[3170,3171],[3201,3203],[3262,3268],[3270,3272],[3274,3276],[3285,3286],[3298,3299],3315,[3328,3331],[3390,3396],[3398,3400],[3402,3404],3415,[3426,3427],[3457,3459],[3535,3540],3542,[3544,3551],[3570,3571],3633,[3636,3642],3661,3761,[3764,3769],[3771,3772],3789,[3953,3971],[3981,3991],[3993,4028],[4139,4150],4152,[4155,4158],[4182,4185],[4190,4192],[4194,4196],[4199,4205],[4209,4212],[4226,4237],4239,[4250,4253],[5906,5907],[5938,5939],[5970,5971],[6002,6003],[6070,6088],[6277,6278],6313,[6432,6443],[6448,6456],[6679,6683],[6741,6750],[6753,6772],[6847,6848],[6860,6862],[6912,6916],[6965,6979],[7040,7042],[7073,7081],[7084,7085],[7143,7153],[7204,7222],[7655,7668],[9398,9449],[11744,11775],[42612,42619],[42654,42655],43010,43019,[43043,43047],[43136,43137],[43188,43203],43205,43263,[43302,43306],[43335,43346],[43392,43395],[43444,43455],43493,[43561,43574],43587,[43596,43597],[43643,43645],43696,[43698,43700],[43703,43704],43710,[43755,43759],43765,[44003,44010],64286,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68900,68903],[69291,69292],[69632,69634],[69688,69701],[69747,69748],[69760,69762],[69808,69816],69826,[69888,69890],[69927,69938],[69957,69958],[70016,70018],[70067,70079],[70094,70095],[70188,70196],70199,70206,70209,[70367,70376],[70400,70403],[70462,70468],[70471,70472],[70475,70476],70487,[70498,70499],[70709,70721],[70723,70725],[70832,70849],[71087,71093],[71096,71102],[71132,71133],[71216,71230],71232,[71339,71349],[71453,71466],[71724,71736],[71984,71989],[71991,71992],[71995,71996],72e3,72002,[72145,72151],[72154,72159],72164,[72193,72202],[72245,72249],[72251,72254],[72273,72283],[72330,72343],[72751,72758],[72760,72766],[72850,72871],[72873,72886],[73009,73014],73018,[73020,73021],[73023,73025],73027,73031,[73098,73102],[73104,73105],[73107,73110],[73459,73462],[73472,73473],73475,[73524,73530],[73534,73536],94031,[94033,94087],[94095,94098],[94192,94193],113822,[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,125255,[127280,127305],[127312,127337],[127344,127369]],Ke=[847,[4447,4448],[6068,6069],8293,12644,65440,[65520,65528],917504,[917506,917535],[917632,917759],[918e3,921599]],qe=[2494,2519,2878,2903,3006,3031,3266,[3285,3286],3390,3415,3535,3551,6965,8204,[12334,12335],[65438,65439],70462,70487,70832,70845,71087,71984,119141,[119150,119154],[917536,917631]],Je=[183,903,[4969,4977],6618],Ze=[[6277,6278],8472,8494,[12443,12444]],Qe=[170,186,[688,696],[704,705],[736,740],837,890,4348,[7468,7530],7544,[7579,7615],8305,8319,[8336,8348],[8560,8575],[9424,9449],[11388,11389],[42652,42653],42864,[42994,42996],[43e3,43001],[43868,43871],43881,67456,[67459,67461],[67463,67504],[67506,67514],[122928,122989]],t0=[94,[976,978],981,[1008,1009],[1012,1013],8214,[8242,8244],8256,[8289,8292],[8317,8318],[8333,8334],[8400,8412],8417,[8421,8422],[8427,8431],8450,8455,[8458,8467],8469,[8473,8477],8484,[8488,8489],[8492,8493],[8495,8497],[8499,8504],[8508,8511],[8517,8521],[8597,8601],[8604,8607],[8609,8610],[8612,8613],8615,[8617,8621],[8624,8625],[8630,8631],[8636,8653],[8656,8657],8659,[8661,8667],8669,[8676,8677],[8968,8971],[9140,9141],9143,9168,9186,[9632,9633],[9646,9654],[9660,9664],[9670,9671],[9674,9675],[9679,9683],9698,9700,[9703,9708],[9733,9734],9792,9794,[9824,9827],[9837,9838],[10181,10182],[10214,10223],[10627,10648],[10712,10715],[10748,10749],65121,65123,65128,65340,65342,[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[120782,120831],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651]],e0=[[8544,8559],[9398,9423],[127280,127305],[127312,127337],[127344,127369]],n0=[[33,47],[58,64],[91,94],96,[123,126],[161,167],169,[171,172],174,[176,177],182,187,191,215,247,[8208,8231],[8240,8254],[8257,8275],[8277,8286],[8592,9311],[9472,10101],[10132,11263],[11776,11903],[12289,12291],[12296,12320],12336,[64830,64831],[65093,65094]],s0=[[9,13],32,133,[8206,8207],[8232,8233]],i0=[[1536,1541],1757,1807,[2192,2193],2274,69821,69837],r0=[34,39,171,187,[8216,8223],[8249,8250],11842,[12300,12303],[12317,12319],[65089,65092],65282,65287,[65378,65379]],o0=[[11904,11929],[11931,12019],[12032,12245]],a0=[[127462,127487]],c0=[33,46,63,1417,[1565,1567],1748,[1792,1794],2041,2103,2105,[2109,2110],[2404,2405],[4170,4171],4962,[4967,4968],5742,[5941,5942],6147,6153,[6468,6469],[6824,6827],[7002,7003],[7006,7007],[7037,7038],[7227,7228],[7294,7295],[8252,8253],[8263,8265],11822,11836,[11859,11860],12290,42239,[42510,42511],42739,42743,[43126,43127],[43214,43215],43311,[43464,43465],[43613,43615],[43760,43761],44011,65106,[65110,65111],65281,65294,65311,65377,[68182,68183],[69461,69465],[69510,69513],[69703,69704],[69822,69825],[69953,69955],[70085,70086],70093,[70110,70111],[70200,70201],[70203,70204],70313,[70731,70732],[71106,71107],[71113,71127],[71233,71234],[71484,71486],72004,72006,[72258,72259],[72347,72348],[72769,72770],[73463,73464],[73539,73540],[92782,92783],92917,[92983,92984],92996,93848,113823,121480],l0=[[105,106],303,585,616,669,690,1011,1110,1112,7522,7574,7588,7592,7725,7883,8305,[8520,8521],11388,[119842,119843],[119894,119895],[119946,119947],[119998,119999],[120050,120051],[120102,120103],[120154,120155],[120206,120207],[120258,120259],[120310,120311],[120362,120363],[120414,120415],[120466,120467],122650,[122956,122957],122984],u0=[33,44,46,[58,59],63,894,903,1417,1475,1548,1563,[1565,1567],1748,[1792,1802],1804,[2040,2041],[2096,2110],2142,[2404,2405],[3674,3675],3848,[3853,3858],[4170,4171],[4961,4968],5742,[5867,5869],[5941,5942],[6100,6102],6106,[6146,6149],[6152,6153],[6468,6469],[6824,6827],[7002,7003],[7005,7007],[7037,7038],[7227,7231],[7294,7295],[8252,8253],[8263,8265],11822,11836,11841,11852,[11854,11855],[11859,11860],[12289,12290],[42238,42239],[42509,42511],[42739,42743],[43126,43127],[43214,43215],43311,[43463,43465],[43613,43615],43743,[43760,43761],44011,[65104,65106],[65108,65111],65281,65292,65294,[65306,65307],65311,65377,65380,66463,66512,67671,67871,[68182,68183],[68336,68341],[68410,68415],[68505,68508],[69461,69465],[69510,69513],[69703,69709],[69822,69825],[69953,69955],[70085,70086],70093,[70110,70111],[70200,70204],70313,[70731,70733],[70746,70747],[71106,71109],[71113,71127],[71233,71234],[71484,71486],72004,72006,[72258,72259],[72347,72348],[72353,72354],[72769,72771],72817,[73463,73464],[73539,73540],[74864,74868],[92782,92783],92917,[92983,92985],92996,[93847,93848],113823,[121479,121482]],h0=[[13312,19903],[19968,40959],[64014,64015],64017,[64019,64020],64031,64033,[64035,64036],[64039,64041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[196608,201546],[201552,205743]],_0=[[65,90],[192,214],[216,222],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,452,455,458,461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,497,500,[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,880,882,886,895,902,[904,906],908,[910,911],[913,929],[931,939],975,[978,980],984,986,988,990,992,994,996,998,1e3,1002,1004,1006,1012,1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],[4256,4293],4295,4301,[5024,5109],[7312,7354],[7357,7359],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],[8120,8123],[8136,8139],[8152,8155],[8168,8172],[8184,8187],8450,8455,[8459,8461],[8464,8466],8469,[8473,8477],8484,8486,8488,[8490,8493],[8496,8499],[8510,8511],8517,[8544,8559],8579,[9398,9423],[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11390,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,42997,[65313,65338],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[68736,68786],[71840,71871],[93760,93791],[119808,119833],[119860,119885],[119912,119937],119964,[119966,119967],119970,[119973,119974],[119977,119980],[119982,119989],[120016,120041],[120068,120069],[120071,120074],[120077,120084],[120086,120092],[120120,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120172,120197],[120224,120249],[120276,120301],[120328,120353],[120380,120405],[120432,120457],[120488,120512],[120546,120570],[120604,120628],[120662,120686],[120720,120744],120778,[125184,125217],[127280,127305],[127312,127337],[127344,127369]],d0=[[6155,6157],6159,[65024,65039],[917760,917999]],f0=[[9,13],32,133,160,5760,[8192,8202],[8232,8233],8239,8287,12288],g0=[[48,57],[65,90],95,[97,122],170,181,183,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[768,884],[886,887],[891,893],895,[902,906],908,[910,929],[931,1013],[1015,1153],[1155,1159],[1162,1327],[1329,1366],1369,[1376,1416],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1488,1514],[1519,1522],[1552,1562],[1568,1641],[1646,1747],[1749,1756],[1759,1768],[1770,1788],1791,[1808,1866],[1869,1969],[1984,2037],2042,2045,[2048,2093],[2112,2139],[2144,2154],[2160,2183],[2185,2190],[2200,2273],[2275,2403],[2406,2415],[2417,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2545],2556,2558,[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2677],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2799],[2809,2815],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2927],2929,[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3055],[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3200,3203],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315],[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3406],[3412,3415],[3423,3427],[3430,3439],[3450,3455],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3571],[3585,3642],[3648,3662],[3664,3673],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807],3840,[3864,3865],[3872,3881],3893,3895,3897,[3902,3911],[3913,3948],[3953,3972],[3974,3991],[3993,4028],4038,[4096,4169],[4176,4253],[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4959],[4969,4977],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5909],[5919,5940],[5952,5971],[5984,5996],[5998,6e3],[6002,6003],[6016,6099],6103,[6108,6109],[6112,6121],[6155,6157],[6159,6169],[6176,6264],[6272,6314],[6320,6389],[6400,6430],[6432,6443],[6448,6459],[6470,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6656,6683],[6688,6750],[6752,6780],[6783,6793],[6800,6809],6823,[6832,6845],[6847,6862],[6912,6988],[6992,7001],[7019,7027],[7040,7155],[7168,7223],[7232,7241],[7245,7293],[7296,7304],[7312,7354],[7357,7359],[7376,7378],[7380,7418],[7424,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],[8255,8256],8276,8305,8319,[8336,8348],[8400,8412],8417,[8421,8432],8450,8455,[8458,8467],8469,[8472,8477],8484,8486,8488,[8490,8505],[8508,8511],[8517,8521],8526,[8544,8584],[11264,11492],[11499,11507],[11520,11557],11559,11565,[11568,11623],11631,[11647,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[11744,11775],[12293,12295],[12321,12335],[12337,12341],[12344,12348],[12353,12438],[12441,12442],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42539],[42560,42607],[42612,42621],[42623,42737],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43047],43052,[43072,43123],[43136,43205],[43216,43225],[43232,43255],43259,[43261,43309],[43312,43347],[43360,43388],[43392,43456],[43471,43481],[43488,43518],[43520,43574],[43584,43597],[43600,43609],[43616,43638],[43642,43714],[43739,43741],[43744,43759],[43762,43766],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44010],[44012,44013],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],[64285,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64605],[64612,64829],[64848,64911],[64914,64967],[65008,65017],[65024,65039],[65056,65071],[65075,65076],[65101,65103],65137,65139,65143,65145,65147,65149,[65151,65276],[65296,65305],[65313,65338],65343,[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],66045,[66176,66204],[66208,66256],66272,[66304,66335],[66349,66378],[66384,66426],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],68159,[68192,68220],[68224,68252],[68288,68295],[68297,68326],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68903],[68912,68921],[69248,69289],[69291,69292],[69296,69297],[69373,69404],69415,[69424,69456],[69488,69509],[69552,69572],[69600,69622],[69632,69702],[69734,69749],[69759,69818],69826,[69840,69864],[69872,69881],[69888,69940],[69942,69951],[69956,69959],[69968,70003],70006,[70016,70084],[70089,70092],[70094,70106],70108,[70144,70161],[70163,70199],[70206,70209],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70378],[70384,70393],[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70459,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516],[70656,70730],[70736,70745],[70750,70753],[70784,70853],70855,[70864,70873],[71040,71093],[71096,71104],[71128,71133],[71168,71232],71236,[71248,71257],[71296,71352],[71360,71369],[71424,71450],[71453,71467],[71472,71481],[71488,71494],[71680,71738],[71840,71913],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72003],[72016,72025],[72096,72103],[72106,72151],[72154,72161],[72163,72164],[72192,72254],72263,[72272,72345],72349,[72368,72440],[72704,72712],[72714,72758],[72760,72768],[72784,72793],[72818,72847],[72850,72871],[72873,72886],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129],[73440,73462],[73472,73488],[73490,73530],[73534,73538],[73552,73561],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78912,78933],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92784,92862],[92864,92873],[92880,92909],[92912,92916],[92928,92982],[92992,92995],[93008,93017],[93027,93047],[93053,93071],[93760,93823],[93952,94026],[94031,94087],[94095,94111],[94176,94177],[94179,94180],[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113821,113822],[118528,118573],[118576,118598],[119141,119145],[119149,119154],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[120782,120831],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122624,122654],[122661,122666],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[122928,122989],123023,[123136,123180],[123184,123197],[123200,123209],123214,[123536,123566],[123584,123641],[124112,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125136,125142],[125184,125259],[125264,125273],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[130032,130041],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743],[917760,917999]],D0=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[880,884],[886,887],[891,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],1369,[1376,1416],[1488,1514],[1519,1522],[1568,1610],[1646,1647],[1649,1747],1749,[1765,1766],[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2036,2037],2042,[2048,2069],2074,2084,2088,[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2308,2361],2365,2384,[2392,2401],[2417,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3585,3632],3634,[3648,3654],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],3762,3773,[3776,3780],3782,[3804,3807],3840,[3904,3911],[3913,3948],[3976,3980],[4096,4138],4159,[4176,4181],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6103,6108,[6176,6264],[6272,6312],6314,[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],6823,[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8472,8477],8484,8486,8488,[8490,8505],[8508,8511],[8517,8521],8526,[8544,8584],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[12293,12295],[12321,12329],[12337,12341],[12344,12348],[12353,12438],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42623,42653],[42656,42735],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],43471,[43488,43492],[43494,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43638],43642,[43646,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43741],[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44002],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64605],[64612,64829],[64848,64911],[64914,64967],[65008,65017],65137,65139,65143,65145,65147,65149,[65151,65276],[65313,65338],[65345,65370],[65382,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],[66176,66204],[66208,66256],[66304,66335],[66349,66378],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71424,71450],[71488,71494],[71680,71723],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],94032,[94099,94111],[94176,94177],94179,[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],p0=Object.freeze(Object.defineProperty({__proto__:null,ASCII:ee,ASCII_Hex_Digit:ne,Alphabetic:se,Any:ie,Assigned:re,Bidi_Control:oe,Bidi_Mirrored:ae,Case_Ignorable:ce,Cased:le,Changes_When_Casefolded:ue,Changes_When_Casemapped:he,Changes_When_Lowercased:_e,Changes_When_NFKC_Casefolded:de,Changes_When_Titlecased:fe,Changes_When_Uppercased:ge,Composition_Exclusion:De,Dash:pe,Default_Ignorable_Code_Point:me,Deprecated:be,Diacritic:ve,Emoji:Ce,Emoji_Component:Se,Emoji_Modifier:Ee,Emoji_Modifier_Base:ye,Emoji_Presentation:Te,Expands_On_NFC:Fe,Expands_On_NFD:Oe,Expands_On_NFKC:we,Expands_On_NFKD:Be,Extended_Pictographic:Ae,Extender:Re,Full_Composition_Exclusion:xe,Grapheme_Base:Me,Grapheme_Extend:Le,Grapheme_Link:Ie,Hex_Digit:Pe,Hyphen:$e,IDS_Binary_Operator:ke,IDS_Trinary_Operator:Ne,ID_Continue:He,ID_Start:Xe,Ideographic:ze,Join_Control:We,Logical_Order_Exception:Ye,Lowercase:je,Math:Ue,Noncharacter_Code_Point:Ve,Other_Alphabetic:Ge,Other_Default_Ignorable_Code_Point:Ke,Other_Grapheme_Extend:qe,Other_ID_Continue:Je,Other_ID_Start:Ze,Other_Lowercase:Qe,Other_Math:t0,Other_Uppercase:e0,Pattern_Syntax:n0,Pattern_White_Space:s0,Prepended_Concatenation_Mark:i0,Quotation_Mark:r0,Radical:o0,Regional_Indicator:a0,Sentence_Terminal:c0,Soft_Dotted:l0,Terminal_Punctuation:u0,Unified_Ideograph:h0,Uppercase:_0,Variation_Selector:d0,White_Space:f0,XID_Continue:g0,XID_Start:D0},Symbol.toStringTag,{value:"Module"})),m0=[[65,90],[97,122],181,[192,214],[216,246],[248,442],[444,447],[452,659],[661,687],[880,883],[886,887],[891,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],[1376,1416],[4256,4293],4295,4301,[4304,4346],[4349,4351],[5024,5109],[5112,5117],[7296,7304],[7312,7354],[7357,7359],[7424,7467],[7531,7543],[7545,7578],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8500],8505,[8508,8511],[8517,8521],8526,[8579,8580],[11264,11387],[11390,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[42560,42605],[42624,42651],[42786,42863],[42865,42887],[42891,42894],[42896,42954],[42960,42961],42963,[42965,42969],[42997,42998],43002,[43824,43866],[43872,43880],[43888,43967],[64256,64262],[64275,64279],[65313,65338],[65345,65370],[66560,66639],[66736,66771],[66776,66811],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68736,68786],[68800,68850],[71840,71903],[93760,93823],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122633],[122635,122654],[122661,122666],[125184,125251]],b0=[41,93,125,3899,3901,5788,8262,8318,8334,8969,8971,9002,10089,10091,10093,10095,10097,10099,10101,10182,10215,10217,10219,10221,10223,10628,10630,10632,10634,10636,10638,10640,10642,10644,10646,10648,10713,10715,10749,11811,11813,11815,11817,11862,11864,11866,11868,12297,12299,12301,12303,12305,12309,12311,12313,12315,[12318,12319],64830,65048,65078,65080,65082,65084,65086,65088,65090,65092,65096,65114,65116,65118,65289,65341,65373,65376,65379],v0=[95,[8255,8256],8276,[65075,65076],[65101,65103],65343],C0=[[0,31],[127,159]],S0=[36,[162,165],1423,1547,[2046,2047],[2546,2547],2555,2801,3065,3647,6107,[8352,8384],43064,65020,65129,65284,[65504,65505],[65509,65510],[73693,73696],123647,126128],E0=[45,1418,1470,5120,6150,[8208,8213],11799,11802,[11834,11835],11840,11869,12316,12336,12448,[65073,65074],65112,65123,65293,69293],y0=[[48,57],[1632,1641],[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2662,2671],[2790,2799],[2918,2927],[3046,3055],[3174,3183],[3302,3311],[3430,3439],[3558,3567],[3664,3673],[3792,3801],[3872,3881],[4160,4169],[4240,4249],[6112,6121],[6160,6169],[6470,6479],[6608,6617],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],[42528,42537],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[65296,65305],[66720,66729],[68912,68921],[69734,69743],[69872,69881],[69942,69951],[70096,70105],[70384,70393],[70736,70745],[70864,70873],[71248,71257],[71360,71369],[71472,71481],[71904,71913],[72016,72025],[72784,72793],[73040,73049],[73120,73129],[73552,73561],[92768,92777],[92864,92873],[93008,93017],[120782,120831],[123200,123209],[123632,123641],[124144,124153],[125264,125273],[130032,130041]],T0=[[1160,1161],6846,[8413,8416],[8418,8420],[42608,42610]],F0=[187,8217,8221,8250,11779,11781,11786,11789,11805,11809],O0=[173,[1536,1541],1564,1757,1807,[2192,2193],2274,6158,[8203,8207],[8234,8238],[8288,8292],[8294,8303],65279,[65529,65531],69821,69837,[78896,78911],[113824,113827],[119155,119162],917505,[917536,917631]],w0=[171,8216,[8219,8220],8223,8249,11778,11780,11785,11788,11804,11808],B0=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,705],[710,721],[736,740],748,750,[880,884],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],1369,[1376,1416],[1488,1514],[1519,1522],[1568,1610],[1646,1647],[1649,1747],1749,[1765,1766],[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2036,2037],2042,[2048,2069],2074,2084,2088,[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2308,2361],2365,2384,[2392,2401],[2417,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3585,3632],[3634,3635],[3648,3654],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],3782,[3804,3807],3840,[3904,3911],[3913,3948],[3976,3980],[4096,4138],4159,[4176,4181],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5873,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6103,6108,[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],6823,[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8505],[8508,8511],[8517,8521],8526,[8579,8580],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],11823,[12293,12294],[12337,12341],[12347,12348],[12353,12438],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42623,42653],[42656,42725],[42775,42783],[42786,42888],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],43471,[43488,43492],[43494,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43638],43642,[43646,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43741],[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43866],[43868,43881],[43888,44002],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],[64256,64262],[64275,64279],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[66176,66204],[66208,66256],[66304,66335],[66349,66368],[66370,66377],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71424,71450],[71488,71494],[71680,71723],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],94032,[94099,94111],[94176,94177],94179,[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],A0=[[5870,5872],[8544,8578],[8581,8584],12295,[12321,12329],[12344,12346],[42726,42735],[65856,65908],66369,66378,[66513,66517],[74752,74862]],R0=[8232],x0=[[97,122],181,[223,246],[248,255],257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,[311,312],314,316,318,320,322,324,326,[328,329],331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,378,380,[382,384],387,389,392,[396,397],402,405,[409,411],414,417,419,421,424,[426,427],429,432,436,438,[441,442],[445,447],454,457,460,462,464,466,468,470,472,474,[476,477],479,481,483,485,487,489,491,493,[495,496],499,501,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,545,547,549,551,553,555,557,559,561,[563,569],572,[575,576],578,583,585,587,589,[591,659],[661,687],881,883,887,[891,893],912,[940,974],[976,977],[981,983],985,987,989,991,993,995,997,999,1001,1003,1005,[1007,1011],1013,1016,[1019,1020],[1072,1119],1121,1123,1125,1127,1129,1131,1133,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197,1199,1201,1203,1205,1207,1209,1211,1213,1215,1218,1220,1222,1224,1226,1228,[1230,1231],1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263,1265,1267,1269,1271,1273,1275,1277,1279,1281,1283,1285,1287,1289,1291,1293,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,[1376,1416],[4304,4346],[4349,4351],[5112,5117],[7296,7304],[7424,7467],[7531,7543],[7545,7578],7681,7683,7685,7687,7689,7691,7693,7695,7697,7699,7701,7703,7705,7707,7709,7711,7713,7715,7717,7719,7721,7723,7725,7727,7729,7731,7733,7735,7737,7739,7741,7743,7745,7747,7749,7751,7753,7755,7757,7759,7761,7763,7765,7767,7769,7771,7773,7775,7777,7779,7781,7783,7785,7787,7789,7791,7793,7795,7797,7799,7801,7803,7805,7807,7809,7811,7813,7815,7817,7819,7821,7823,7825,7827,[7829,7837],7839,7841,7843,7845,7847,7849,7851,7853,7855,7857,7859,7861,7863,7865,7867,7869,7871,7873,7875,7877,7879,7881,7883,7885,7887,7889,7891,7893,7895,7897,7899,7901,7903,7905,7907,7909,7911,7913,7915,7917,7919,7921,7923,7925,7927,7929,7931,7933,[7935,7943],[7952,7957],[7968,7975],[7984,7991],[8e3,8005],[8016,8023],[8032,8039],[8048,8061],[8064,8071],[8080,8087],[8096,8103],[8112,8116],[8118,8119],8126,[8130,8132],[8134,8135],[8144,8147],[8150,8151],[8160,8167],[8178,8180],[8182,8183],8458,[8462,8463],8467,8495,8500,8505,[8508,8509],[8518,8521],8526,8580,[11312,11359],11361,[11365,11366],11368,11370,11372,11377,[11379,11380],[11382,11387],11393,11395,11397,11399,11401,11403,11405,11407,11409,11411,11413,11415,11417,11419,11421,11423,11425,11427,11429,11431,11433,11435,11437,11439,11441,11443,11445,11447,11449,11451,11453,11455,11457,11459,11461,11463,11465,11467,11469,11471,11473,11475,11477,11479,11481,11483,11485,11487,11489,[11491,11492],11500,11502,11507,[11520,11557],11559,11565,42561,42563,42565,42567,42569,42571,42573,42575,42577,42579,42581,42583,42585,42587,42589,42591,42593,42595,42597,42599,42601,42603,42605,42625,42627,42629,42631,42633,42635,42637,42639,42641,42643,42645,42647,42649,42651,42787,42789,42791,42793,42795,42797,[42799,42801],42803,42805,42807,42809,42811,42813,42815,42817,42819,42821,42823,42825,42827,42829,42831,42833,42835,42837,42839,42841,42843,42845,42847,42849,42851,42853,42855,42857,42859,42861,42863,[42865,42872],42874,42876,42879,42881,42883,42885,42887,42892,42894,42897,[42899,42901],42903,42905,42907,42909,42911,42913,42915,42917,42919,42921,42927,42933,42935,42937,42939,42941,42943,42945,42947,42952,42954,42961,42963,42965,42967,42969,42998,43002,[43824,43866],[43872,43880],[43888,43967],[64256,64262],[64275,64279],[65345,65370],[66600,66639],[66776,66811],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[68800,68850],[71872,71903],[93792,93823],[119834,119859],[119886,119892],[119894,119911],[119938,119963],[119990,119993],119995,[119997,120003],[120005,120015],[120042,120067],[120094,120119],[120146,120171],[120198,120223],[120250,120275],[120302,120327],[120354,120379],[120406,120431],[120458,120485],[120514,120538],[120540,120545],[120572,120596],[120598,120603],[120630,120654],[120656,120661],[120688,120712],[120714,120719],[120746,120770],[120772,120777],120779,[122624,122633],[122635,122654],[122661,122666],[125218,125251]],M0=[[768,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2307],[2362,2364],[2366,2383],[2385,2391],[2402,2403],[2433,2435],2492,[2494,2500],[2503,2504],[2507,2509],2519,[2530,2531],2558,[2561,2563],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2691],2748,[2750,2757],[2759,2761],[2763,2765],[2786,2787],[2810,2815],[2817,2819],2876,[2878,2884],[2887,2888],[2891,2893],[2901,2903],[2914,2915],2946,[3006,3010],[3014,3016],[3018,3021],3031,[3072,3076],3132,[3134,3140],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3203],3260,[3262,3268],[3270,3272],[3274,3277],[3285,3286],[3298,3299],3315,[3328,3331],[3387,3388],[3390,3396],[3398,3400],[3402,3405],3415,[3426,3427],[3457,3459],3530,[3535,3540],3542,[3544,3551],[3570,3571],3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3902,3903],[3953,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4139,4158],[4182,4185],[4190,4192],[4194,4196],[4199,4205],[4209,4212],[4226,4237],4239,[4250,4253],[4957,4959],[5906,5909],[5938,5940],[5970,5971],[6002,6003],[6068,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6443],[6448,6459],[6679,6683],[6741,6750],[6752,6780],6783,[6832,6862],[6912,6916],[6964,6980],[7019,7027],[7040,7042],[7073,7085],[7142,7155],[7204,7223],[7376,7378],[7380,7400],7405,7412,[7415,7417],[7616,7679],[8400,8432],[11503,11505],11647,[11744,11775],[12330,12335],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43043,43047],43052,[43136,43137],[43188,43205],[43232,43249],43263,[43302,43309],[43335,43347],[43392,43395],[43443,43456],43493,[43561,43574],43587,[43596,43597],[43643,43645],43696,[43698,43700],[43703,43704],[43710,43711],43713,[43755,43759],[43765,43766],[44003,44010],[44012,44013],64286,[65024,65039],[65056,65071],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],[69632,69634],[69688,69702],69744,[69747,69748],[69759,69762],[69808,69818],69826,[69888,69890],[69927,69940],[69957,69958],70003,[70016,70018],[70067,70080],[70089,70092],[70094,70095],[70188,70199],70206,70209,[70367,70378],[70400,70403],[70459,70460],[70462,70468],[70471,70472],[70475,70477],70487,[70498,70499],[70502,70508],[70512,70516],[70709,70726],70750,[70832,70851],[71087,71093],[71096,71104],[71132,71133],[71216,71232],[71339,71351],[71453,71467],[71724,71738],[71984,71989],[71991,71992],[71995,71998],72e3,[72002,72003],[72145,72151],[72154,72160],72164,[72193,72202],[72243,72249],[72251,72254],72263,[72273,72283],[72330,72345],[72751,72758],[72760,72767],[72850,72871],[72873,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73098,73102],[73104,73105],[73107,73111],[73459,73462],[73472,73473],73475,[73524,73530],[73534,73538],78912,[78919,78933],[92912,92916],[92976,92982],94031,[94033,94087],[94095,94098],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,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[917760,917999]],L0=[43,[60,62],124,126,172,177,215,247,1014,[1542,1544],8260,8274,[8314,8316],[8330,8332],8472,[8512,8516],8523,[8592,8596],[8602,8603],8608,8611,8614,8622,[8654,8655],8658,8660,[8692,8959],[8992,8993],9084,[9115,9139],[9180,9185],9655,9665,[9720,9727],9839,[10176,10180],[10183,10213],[10224,10239],[10496,10626],[10649,10711],[10716,10747],[10750,11007],[11056,11076],[11079,11084],64297,65122,[65124,65126],65291,[65308,65310],65372,65374,65506,[65513,65516],120513,120539,120571,120597,120629,120655,120687,120713,120745,120771,[126704,126705]],I0=[[688,705],[710,721],[736,740],748,750,884,890,1369,1600,[1765,1766],[2036,2037],2042,2074,2084,2088,2249,2417,3654,3782,4348,6103,6211,6823,[7288,7293],[7468,7530],7544,[7579,7615],8305,8319,[8336,8348],[11388,11389],11631,11823,12293,[12337,12341],12347,[12445,12446],[12540,12542],40981,[42232,42237],42508,42623,[42652,42653],[42775,42783],42864,42888,[42994,42996],[43e3,43001],43471,43494,43632,43741,[43763,43764],[43868,43871],43881,65392,[65438,65439],[67456,67461],[67463,67504],[67506,67514],[92992,92995],[94099,94111],[94176,94177],94179,[110576,110579],[110581,110587],[110589,110590],[122928,122989],[123191,123197],124139,125259],P0=[94,96,168,175,180,184,[706,709],[722,735],[741,747],749,[751,767],885,[900,901],2184,8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[12443,12444],[42752,42774],[42784,42785],[42889,42890],43867,[43882,43883],[64434,64450],65342,65344,65507,[127995,127999]],$0=[[768,879],[1155,1159],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2306],2362,2364,[2369,2376],2381,[2385,2391],[2402,2403],2433,2492,[2497,2500],2509,[2530,2531],2558,[2561,2562],2620,[2625,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2690],2748,[2753,2757],[2759,2760],2765,[2786,2787],[2810,2815],2817,2876,2879,[2881,2884],2893,[2901,2902],[2914,2915],2946,3008,3021,3072,3076,3132,[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],3201,3260,3263,3270,[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],3405,[3426,3427],3457,3530,[3538,3540],3542,3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],4226,[4229,4230],4237,4253,[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],6086,[6089,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6434],[6439,6440],6450,[6457,6459],[6679,6680],6683,6742,[6744,6750],6752,6754,[6757,6764],[6771,6780],6783,[6832,6845],[6847,6862],[6912,6915],6964,[6966,6970],6972,6978,[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],7142,[7144,7145],7149,[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7616,7679],[8400,8412],8417,[8421,8432],[11503,11505],11647,[11744,11775],[12330,12333],[12441,12442],42607,[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43045,43046],43052,[43204,43205],[43232,43249],43263,[43302,43309],[43335,43345],[43392,43394],43443,[43446,43449],[43452,43453],43493,[43561,43566],[43569,43570],[43573,43574],43587,43596,43644,43696,[43698,43700],[43703,43704],[43710,43711],43713,[43756,43757],43766,44005,44008,44013,64286,[65024,65039],[65056,65071],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],69633,[69688,69702],69744,[69747,69748],[69759,69761],[69811,69814],[69817,69818],69826,[69888,69890],[69927,69931],[69933,69940],70003,[70016,70017],[70070,70078],[70089,70092],70095,[70191,70193],70196,[70198,70199],70206,70209,70367,[70371,70378],[70400,70401],[70459,70460],70464,[70502,70508],[70512,70516],[70712,70719],[70722,70724],70726,70750,[70835,70840],70842,[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],71229,[71231,71232],71339,71341,[71344,71349],71351,[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[71995,71996],71998,72003,[72148,72151],[72154,72155],72160,[72193,72202],[72243,72248],[72251,72254],72263,[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],72767,[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73104,73105],73109,73111,[73459,73460],[73472,73473],[73526,73530],73536,73538,78912,[78919,78933],[92912,92916],[92976,92982],94031,[94095,94098],94180,[113821,113822],[118528,118573],[118576,118598],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[917760,917999]],k0=[[48,57],[178,179],185,[188,190],[1632,1641],[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2548,2553],[2662,2671],[2790,2799],[2918,2927],[2930,2935],[3046,3058],[3174,3183],[3192,3198],[3302,3311],[3416,3422],[3430,3448],[3558,3567],[3664,3673],[3792,3801],[3872,3891],[4160,4169],[4240,4249],[4969,4988],[5870,5872],[6112,6121],[6128,6137],[6160,6169],[6470,6479],[6608,6618],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],8304,[8308,8313],[8320,8329],[8528,8578],[8581,8585],[9312,9371],[9450,9471],[10102,10131],11517,12295,[12321,12329],[12344,12346],[12690,12693],[12832,12841],[12872,12879],[12881,12895],[12928,12937],[12977,12991],[42528,42537],[42726,42735],[43056,43061],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[65296,65305],[65799,65843],[65856,65912],[65930,65931],[66273,66299],[66336,66339],66369,66378,[66513,66517],[66720,66729],[67672,67679],[67705,67711],[67751,67759],[67835,67839],[67862,67867],[68028,68029],[68032,68047],[68050,68095],[68160,68168],[68221,68222],[68253,68255],[68331,68335],[68440,68447],[68472,68479],[68521,68527],[68858,68863],[68912,68921],[69216,69246],[69405,69414],[69457,69460],[69573,69579],[69714,69743],[69872,69881],[69942,69951],[70096,70105],[70113,70132],[70384,70393],[70736,70745],[70864,70873],[71248,71257],[71360,71369],[71472,71483],[71904,71922],[72016,72025],[72784,72812],[73040,73049],[73120,73129],[73552,73561],[73664,73684],[74752,74862],[92768,92777],[92864,92873],[93008,93017],[93019,93025],[93824,93846],[119488,119507],[119520,119539],[119648,119672],[120782,120831],[123200,123209],[123632,123641],[124144,124153],[125127,125135],[125264,125273],[126065,126123],[126125,126127],[126129,126132],[126209,126253],[126255,126269],[127232,127244],[130032,130041]],N0=[40,91,123,3898,3900,5787,8218,8222,8261,8317,8333,8968,8970,9001,10088,10090,10092,10094,10096,10098,10100,10181,10214,10216,10218,10220,10222,10627,10629,10631,10633,10635,10637,10639,10641,10643,10645,10647,10712,10714,10748,11810,11812,11814,11816,11842,11861,11863,11865,11867,12296,12298,12300,12302,12304,12308,12310,12312,12314,12317,64831,65047,65077,65079,65081,65083,65085,65087,65089,65091,65095,65113,65115,65117,65288,65339,65371,65375,65378],H0=[[0,31],[127,159],173,[888,889],[896,899],907,909,930,1328,[1367,1368],[1419,1420],1424,[1480,1487],[1515,1518],[1525,1541],1564,1757,[1806,1807],[1867,1868],[1970,1983],[2043,2044],[2094,2095],2111,[2140,2141],2143,[2155,2159],[2191,2199],2274,2436,[2445,2446],[2449,2450],2473,2481,[2483,2485],[2490,2491],[2501,2502],[2505,2506],[2511,2518],[2520,2523],2526,[2532,2533],[2559,2560],2564,[2571,2574],[2577,2578],2601,2609,2612,2615,[2618,2619],2621,[2627,2630],[2633,2634],[2638,2640],[2642,2648],2653,[2655,2661],[2679,2688],2692,2702,2706,2729,2737,2740,[2746,2747],2758,2762,[2766,2767],[2769,2783],[2788,2789],[2802,2808],2816,2820,[2829,2830],[2833,2834],2857,2865,2868,[2874,2875],[2885,2886],[2889,2890],[2894,2900],[2904,2907],2910,[2916,2917],[2936,2945],2948,[2955,2957],2961,[2966,2968],2971,2973,[2976,2978],[2981,2983],[2987,2989],[3002,3005],[3011,3013],3017,[3022,3023],[3025,3030],[3032,3045],[3067,3071],3085,3089,3113,[3130,3131],3141,3145,[3150,3156],3159,[3163,3164],[3166,3167],[3172,3173],[3184,3190],3213,3217,3241,3252,[3258,3259],3269,3273,[3278,3284],[3287,3292],3295,[3300,3301],3312,[3316,3327],3341,3345,3397,3401,[3408,3411],[3428,3429],3456,3460,[3479,3481],3506,3516,[3518,3519],[3527,3529],[3531,3534],3541,3543,[3552,3557],[3568,3569],[3573,3584],[3643,3646],[3676,3712],3715,3717,3723,3748,3750,[3774,3775],3781,3783,3791,[3802,3803],[3808,3839],3912,[3949,3952],3992,4029,4045,[4059,4095],4294,[4296,4300],[4302,4303],4681,[4686,4687],4695,4697,[4702,4703],4745,[4750,4751],4785,[4790,4791],4799,4801,[4806,4807],4823,4881,[4886,4887],[4955,4956],[4989,4991],[5018,5023],[5110,5111],[5118,5119],[5789,5791],[5881,5887],[5910,5918],[5943,5951],[5972,5983],5997,6001,[6004,6015],[6110,6111],[6122,6127],[6138,6143],6158,[6170,6175],[6265,6271],[6315,6319],[6390,6399],6431,[6444,6447],[6460,6463],[6465,6467],[6510,6511],[6517,6527],[6572,6575],[6602,6607],[6619,6621],[6684,6685],6751,[6781,6782],[6794,6799],[6810,6815],[6830,6831],[6863,6911],[6989,6991],7039,[7156,7163],[7224,7226],[7242,7244],[7305,7311],[7355,7356],[7368,7375],[7419,7423],[7958,7959],[7966,7967],[8006,8007],[8014,8015],8024,8026,8028,8030,[8062,8063],8117,8133,[8148,8149],8156,[8176,8177],8181,8191,[8203,8207],[8234,8238],[8288,8303],[8306,8307],8335,[8349,8351],[8385,8399],[8433,8447],[8588,8591],[9255,9279],[9291,9311],[11124,11125],11158,[11508,11512],11558,[11560,11564],[11566,11567],[11624,11630],[11633,11646],[11671,11679],11687,11695,11703,11711,11719,11727,11735,11743,[11870,11903],11930,[12020,12031],[12246,12271],[12284,12287],12352,[12439,12440],[12544,12548],12592,12687,[12772,12783],12831,[42125,42127],[42183,42191],[42540,42559],[42744,42751],[42955,42959],42962,42964,[42970,42993],[43053,43055],[43066,43071],[43128,43135],[43206,43213],[43226,43231],[43348,43358],[43389,43391],43470,[43482,43485],43519,[43575,43583],[43598,43599],[43610,43611],[43715,43738],[43767,43776],[43783,43784],[43791,43792],[43799,43807],43815,43823,[43884,43887],[44014,44015],[44026,44031],[55204,55215],[55239,55242],[55292,63743],[64110,64111],[64218,64255],[64263,64274],[64280,64284],64311,64317,64319,64322,64325,[64451,64466],[64912,64913],[64968,64974],[64976,65007],[65050,65055],65107,65127,[65132,65135],65141,[65277,65280],[65471,65473],[65480,65481],[65488,65489],[65496,65497],[65501,65503],65511,[65519,65531],[65534,65535],65548,65575,65595,65598,[65614,65615],[65630,65663],[65787,65791],[65795,65798],[65844,65846],65935,[65949,65951],[65953,65999],[66046,66175],[66205,66207],[66257,66271],[66300,66303],[66340,66348],[66379,66383],[66427,66431],66462,[66500,66503],[66518,66559],[66718,66719],[66730,66735],[66772,66775],[66812,66815],[66856,66863],[66916,66926],66939,66955,66963,66966,66978,66994,67002,[67005,67071],[67383,67391],[67414,67423],[67432,67455],67462,67505,[67515,67583],[67590,67591],67593,67638,[67641,67643],[67645,67646],67670,[67743,67750],[67760,67807],67827,[67830,67834],[67868,67870],[67898,67902],[67904,67967],[68024,68027],[68048,68049],68100,[68103,68107],68116,68120,[68150,68151],[68155,68158],[68169,68175],[68185,68191],[68256,68287],[68327,68330],[68343,68351],[68406,68408],[68438,68439],[68467,68471],[68498,68504],[68509,68520],[68528,68607],[68681,68735],[68787,68799],[68851,68857],[68904,68911],[68922,69215],69247,69290,[69294,69295],[69298,69372],[69416,69423],[69466,69487],[69514,69551],[69580,69599],[69623,69631],[69710,69713],[69750,69758],69821,[69827,69839],[69865,69871],[69882,69887],69941,[69960,69967],[70007,70015],70112,[70133,70143],70162,[70210,70271],70279,70281,70286,70302,[70314,70319],[70379,70383],[70394,70399],70404,[70413,70414],[70417,70418],70441,70449,70452,70458,[70469,70470],[70473,70474],[70478,70479],[70481,70486],[70488,70492],[70500,70501],[70509,70511],[70517,70655],70748,[70754,70783],[70856,70863],[70874,71039],[71094,71095],[71134,71167],[71237,71247],[71258,71263],[71277,71295],[71354,71359],[71370,71423],[71451,71452],[71468,71471],[71495,71679],[71740,71839],[71923,71934],[71943,71944],[71946,71947],71956,71959,71990,[71993,71994],[72007,72015],[72026,72095],[72104,72105],[72152,72153],[72165,72191],[72264,72271],[72355,72367],[72441,72447],[72458,72703],72713,72759,[72774,72783],[72813,72815],[72848,72849],72872,[72887,72959],72967,72970,[73015,73017],73019,73022,[73032,73039],[73050,73055],73062,73065,73103,73106,[73113,73119],[73130,73439],[73465,73471],73489,[73531,73533],[73562,73647],[73649,73663],[73714,73726],[74650,74751],74863,[74869,74879],[75076,77711],[77811,77823],[78896,78911],[78934,82943],[83527,92159],[92729,92735],92767,[92778,92781],92863,[92874,92879],[92910,92911],[92918,92927],[92998,93007],93018,93026,[93048,93052],[93072,93759],[93851,93951],[94027,94030],[94088,94094],[94112,94175],[94181,94191],[94194,94207],[100344,100351],[101590,101631],[101641,110575],110580,110588,110591,[110883,110897],[110899,110927],[110931,110932],[110934,110947],[110952,110959],[111356,113663],[113771,113775],[113789,113791],[113801,113807],[113818,113819],[113824,118527],[118574,118575],[118599,118607],[118724,118783],[119030,119039],[119079,119080],[119155,119162],[119275,119295],[119366,119487],[119508,119519],[119540,119551],[119639,119647],[119673,119807],119893,119965,[119968,119969],[119971,119972],[119975,119976],119981,119994,119996,120004,120070,[120075,120076],120085,120093,120122,120127,120133,[120135,120137],120145,[120486,120487],[120780,120781],[121484,121498],121504,[121520,122623],[122655,122660],[122667,122879],122887,[122905,122906],122914,122917,[122923,122927],[122990,123022],[123024,123135],[123181,123183],[123198,123199],[123210,123213],[123216,123535],[123567,123583],[123642,123646],[123648,124111],[124154,124895],124903,124908,124911,124927,[125125,125126],[125143,125183],[125260,125263],[125274,125277],[125280,126064],[126133,126208],[126270,126463],126468,126496,126499,[126501,126502],126504,126515,126520,126522,[126524,126529],[126531,126534],126536,126538,126540,126544,126547,[126549,126550],126552,126554,126556,126558,126560,126563,[126565,126566],126571,126579,126584,126589,126591,126602,[126620,126624],126628,126634,[126652,126703],[126706,126975],[127020,127023],[127124,127135],[127151,127152],127168,127184,[127222,127231],[127406,127461],[127491,127503],[127548,127551],[127561,127567],[127570,127583],[127590,127743],[128728,128731],[128749,128751],[128765,128767],[128887,128890],[128986,128991],[129004,129007],[129009,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129199],[129202,129279],[129620,129631],[129646,129647],[129661,129663],[129673,129679],129726,[129734,129741],[129756,129759],[129769,129775],[129785,129791],129939,[129995,130031],[130042,131071],[173792,173823],[177978,177983],[178206,178207],[183970,183983],[191457,194559],[195102,196607],[201547,201551],[205744,917759],[918e3,1114111]],X0=[170,186,443,[448,451],660,[1488,1514],[1519,1522],[1568,1599],[1601,1610],[1646,1647],[1649,1747],1749,[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2048,2069],[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2248],[2308,2361],2365,2384,[2392,2401],[2418,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3585,3632],[3634,3635],[3648,3653],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],[3804,3807],3840,[3904,3911],[3913,3948],[3976,3980],[4096,4138],4159,[4176,4181],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4352,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5873,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6108,[6176,6210],[6212,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6480,6509],[6512,6516],[6528,6571],[6576,6601],[6656,6678],[6688,6740],[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7287],[7401,7404],[7406,7411],[7413,7414],7418,[8501,8504],[11568,11623],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],12294,12348,[12353,12438],12447,[12449,12538],12543,[12549,12591],[12593,12686],[12704,12735],[12784,12799],[13312,19903],[19968,40980],[40982,42124],[42192,42231],[42240,42507],[42512,42527],[42538,42539],42606,[42656,42725],42895,42999,[43003,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],[43488,43492],[43495,43503],[43514,43518],[43520,43560],[43584,43586],[43588,43595],[43616,43631],[43633,43638],43642,[43646,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43740],[43744,43754],43762,[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43968,44002],[44032,55203],[55216,55238],[55243,55291],[63744,64109],[64112,64217],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65382,65391],[65393,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[66176,66204],[66208,66256],[66304,66335],[66349,66368],[66370,66377],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66640,66717],[66816,66855],[66864,66915],[67072,67382],[67392,67413],[67424,67431],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71424,71450],[71488,71494],[71680,71723],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[93027,93047],[93053,93071],[93952,94026],94032,[94208,100343],[100352,101589],[101632,101640],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],122634,[123136,123180],123214,[123536,123565],[123584,123627],[124112,124138],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],z0=[[178,179],185,[188,190],[2548,2553],[2930,2935],[3056,3058],[3192,3198],[3416,3422],[3440,3448],[3882,3891],[4969,4988],[6128,6137],6618,8304,[8308,8313],[8320,8329],[8528,8543],8585,[9312,9371],[9450,9471],[10102,10131],11517,[12690,12693],[12832,12841],[12872,12879],[12881,12895],[12928,12937],[12977,12991],[43056,43061],[65799,65843],[65909,65912],[65930,65931],[66273,66299],[66336,66339],[67672,67679],[67705,67711],[67751,67759],[67835,67839],[67862,67867],[68028,68029],[68032,68047],[68050,68095],[68160,68168],[68221,68222],[68253,68255],[68331,68335],[68440,68447],[68472,68479],[68521,68527],[68858,68863],[69216,69246],[69405,69414],[69457,69460],[69573,69579],[69714,69733],[70113,70132],[71482,71483],[71914,71922],[72794,72812],[73664,73684],[93019,93025],[93824,93846],[119488,119507],[119520,119539],[119648,119672],[125127,125135],[126065,126123],[126125,126127],[126129,126132],[126209,126253],[126255,126269],[127232,127244]],W0=[[33,35],[37,39],42,44,[46,47],[58,59],[63,64],92,161,167,[182,183],191,894,903,[1370,1375],1417,1472,1475,1478,[1523,1524],[1545,1546],[1548,1549],1563,[1565,1567],[1642,1645],1748,[1792,1805],[2039,2041],[2096,2110],2142,[2404,2405],2416,2557,2678,2800,3191,3204,3572,3663,[3674,3675],[3844,3858],3860,3973,[4048,4052],[4057,4058],[4170,4175],4347,[4960,4968],5742,[5867,5869],[5941,5942],[6100,6102],[6104,6106],[6144,6149],[6151,6154],[6468,6469],[6686,6687],[6816,6822],[6824,6829],[7002,7008],[7037,7038],[7164,7167],[7227,7231],[7294,7295],[7360,7367],7379,[8214,8215],[8224,8231],[8240,8248],[8251,8254],[8257,8259],[8263,8273],8275,[8277,8286],[11513,11516],[11518,11519],11632,[11776,11777],[11782,11784],11787,[11790,11798],[11800,11801],11803,[11806,11807],[11818,11822],[11824,11833],[11836,11839],11841,[11843,11855],[11858,11860],[12289,12291],12349,12539,[42238,42239],[42509,42511],42611,42622,[42738,42743],[43124,43127],[43214,43215],[43256,43258],43260,[43310,43311],43359,[43457,43469],[43486,43487],[43612,43615],[43742,43743],[43760,43761],44011,[65040,65046],65049,65072,[65093,65094],[65097,65100],[65104,65106],[65108,65111],[65119,65121],65128,[65130,65131],[65281,65283],[65285,65287],65290,65292,[65294,65295],[65306,65307],[65311,65312],65340,65377,[65380,65381],[65792,65794],66463,66512,66927,67671,67871,67903,[68176,68184],68223,[68336,68342],[68409,68415],[68505,68508],[69461,69465],[69510,69513],[69703,69709],[69819,69820],[69822,69825],[69952,69955],[70004,70005],[70085,70088],70093,70107,[70109,70111],[70200,70205],70313,[70731,70735],[70746,70747],70749,70854,[71105,71127],[71233,71235],[71264,71276],71353,[71484,71486],71739,[72004,72006],72162,[72255,72262],[72346,72348],[72350,72354],[72448,72457],[72769,72773],[72816,72817],[73463,73464],[73539,73551],73727,[74864,74868],[77809,77810],[92782,92783],92917,[92983,92987],92996,[93847,93850],94178,113823,[121479,121483],[125278,125279]],Y0=[166,169,174,176,1154,[1421,1422],[1550,1551],1758,1769,[1789,1790],2038,2554,2928,[3059,3064],3066,3199,3407,3449,[3841,3843],3859,[3861,3863],[3866,3871],3892,3894,3896,[4030,4037],[4039,4044],[4046,4047],[4053,4056],[4254,4255],[5008,5017],5741,6464,[6622,6655],[7009,7018],[7028,7036],[8448,8449],[8451,8454],[8456,8457],8468,[8470,8471],[8478,8483],8485,8487,8489,8494,[8506,8507],8522,[8524,8525],8527,[8586,8587],[8597,8601],[8604,8607],[8609,8610],[8612,8613],[8615,8621],[8623,8653],[8656,8657],8659,[8661,8691],[8960,8967],[8972,8991],[8994,9e3],[9003,9083],[9085,9114],[9140,9179],[9186,9254],[9280,9290],[9372,9449],[9472,9654],[9656,9664],[9666,9719],[9728,9838],[9840,10087],[10132,10175],[10240,10495],[11008,11055],[11077,11078],[11085,11123],[11126,11157],[11159,11263],[11493,11498],[11856,11857],[11904,11929],[11931,12019],[12032,12245],[12272,12283],12292,[12306,12307],12320,[12342,12343],[12350,12351],[12688,12689],[12694,12703],[12736,12771],[12800,12830],[12842,12871],12880,[12896,12927],[12938,12976],[12992,13311],[19904,19967],[42128,42182],[43048,43051],[43062,43063],43065,[43639,43641],[64832,64847],64975,[65021,65023],65508,65512,[65517,65518],[65532,65533],[65847,65855],[65913,65929],[65932,65934],[65936,65948],65952,[66e3,66044],[67703,67704],68296,71487,[73685,73692],[73697,73713],[92988,92991],92997,113820,[118608,118723],[118784,119029],[119040,119078],[119081,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119274],[119296,119361],119365,[119552,119638],[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121478],123215,126124,126254,[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127245,127405],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127994],[128e3,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994]],j0=[8233],U0=[[57344,63743],[983040,1048573],[1048576,1114109]],V0=[[33,35],[37,42],[44,47],[58,59],[63,64],[91,93],95,123,125,161,167,171,[182,183],187,191,894,903,[1370,1375],[1417,1418],1470,1472,1475,1478,[1523,1524],[1545,1546],[1548,1549],1563,[1565,1567],[1642,1645],1748,[1792,1805],[2039,2041],[2096,2110],2142,[2404,2405],2416,2557,2678,2800,3191,3204,3572,3663,[3674,3675],[3844,3858],3860,[3898,3901],3973,[4048,4052],[4057,4058],[4170,4175],4347,[4960,4968],5120,5742,[5787,5788],[5867,5869],[5941,5942],[6100,6102],[6104,6106],[6144,6154],[6468,6469],[6686,6687],[6816,6822],[6824,6829],[7002,7008],[7037,7038],[7164,7167],[7227,7231],[7294,7295],[7360,7367],7379,[8208,8231],[8240,8259],[8261,8273],[8275,8286],[8317,8318],[8333,8334],[8968,8971],[9001,9002],[10088,10101],[10181,10182],[10214,10223],[10627,10648],[10712,10715],[10748,10749],[11513,11516],[11518,11519],11632,[11776,11822],[11824,11855],[11858,11869],[12289,12291],[12296,12305],[12308,12319],12336,12349,12448,12539,[42238,42239],[42509,42511],42611,42622,[42738,42743],[43124,43127],[43214,43215],[43256,43258],43260,[43310,43311],43359,[43457,43469],[43486,43487],[43612,43615],[43742,43743],[43760,43761],44011,[64830,64831],[65040,65049],[65072,65106],[65108,65121],65123,65128,[65130,65131],[65281,65283],[65285,65290],[65292,65295],[65306,65307],[65311,65312],[65339,65341],65343,65371,65373,[65375,65381],[65792,65794],66463,66512,66927,67671,67871,67903,[68176,68184],68223,[68336,68342],[68409,68415],[68505,68508],69293,[69461,69465],[69510,69513],[69703,69709],[69819,69820],[69822,69825],[69952,69955],[70004,70005],[70085,70088],70093,70107,[70109,70111],[70200,70205],70313,[70731,70735],[70746,70747],70749,70854,[71105,71127],[71233,71235],[71264,71276],71353,[71484,71486],71739,[72004,72006],72162,[72255,72262],[72346,72348],[72350,72354],[72448,72457],[72769,72773],[72816,72817],[73463,73464],[73539,73551],73727,[74864,74868],[77809,77810],[92782,92783],92917,[92983,92987],92996,[93847,93850],94178,113823,[121479,121483],[125278,125279]],G0=[32,160,5760,[8192,8202],[8232,8233],8239,8287,12288],K0=[32,160,5760,[8192,8202],8239,8287,12288],q0=[2307,2363,[2366,2368],[2377,2380],[2382,2383],[2434,2435],[2494,2496],[2503,2504],[2507,2508],2519,2563,[2622,2624],2691,[2750,2752],2761,[2763,2764],[2818,2819],2878,2880,[2887,2888],[2891,2892],2903,[3006,3007],[3009,3010],[3014,3016],[3018,3020],3031,[3073,3075],[3137,3140],[3202,3203],3262,[3264,3268],[3271,3272],[3274,3275],[3285,3286],3315,[3330,3331],[3390,3392],[3398,3400],[3402,3404],3415,[3458,3459],[3535,3537],[3544,3551],[3570,3571],[3902,3903],3967,[4139,4140],4145,4152,[4155,4156],[4182,4183],[4194,4196],[4199,4205],[4227,4228],[4231,4236],4239,[4250,4252],5909,5940,6070,[6078,6085],[6087,6088],[6435,6438],[6441,6443],[6448,6449],[6451,6456],[6681,6682],6741,6743,6753,[6755,6756],[6765,6770],6916,6965,6971,[6973,6977],[6979,6980],7042,7073,[7078,7079],7082,7143,[7146,7148],7150,[7154,7155],[7204,7211],[7220,7221],7393,7415,[12334,12335],[43043,43044],43047,[43136,43137],[43188,43203],[43346,43347],43395,[43444,43445],[43450,43451],[43454,43456],[43567,43568],[43571,43572],43597,43643,43645,43755,[43758,43759],43765,[44003,44004],[44006,44007],[44009,44010],44012,69632,69634,69762,[69808,69810],[69815,69816],69932,[69957,69958],70018,[70067,70069],[70079,70080],70094,[70188,70190],[70194,70195],70197,[70368,70370],[70402,70403],[70462,70463],[70465,70468],[70471,70472],[70475,70477],70487,[70498,70499],[70709,70711],[70720,70721],70725,[70832,70834],70841,[70843,70846],70849,[71087,71089],[71096,71099],71102,[71216,71218],[71227,71228],71230,71340,[71342,71343],71350,[71456,71457],71462,[71724,71726],71736,[71984,71989],[71991,71992],71997,72e3,72002,[72145,72147],[72156,72159],72164,72249,[72279,72280],72343,72751,72766,72873,72881,72884,[73098,73102],[73107,73108],73110,[73461,73462],73475,[73524,73525],[73534,73535],73537,[94033,94087],[94192,94193],[119141,119142],[119149,119154]],J0=[[55296,57343]],Z0=[36,43,[60,62],94,96,124,126,[162,166],[168,169],172,[174,177],180,184,215,247,[706,709],[722,735],[741,747],749,[751,767],885,[900,901],1014,1154,[1421,1423],[1542,1544],1547,[1550,1551],1758,1769,[1789,1790],2038,[2046,2047],2184,[2546,2547],[2554,2555],2801,2928,[3059,3066],3199,3407,3449,3647,[3841,3843],3859,[3861,3863],[3866,3871],3892,3894,3896,[4030,4037],[4039,4044],[4046,4047],[4053,4056],[4254,4255],[5008,5017],5741,6107,6464,[6622,6655],[7009,7018],[7028,7036],8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],8260,8274,[8314,8316],[8330,8332],[8352,8384],[8448,8449],[8451,8454],[8456,8457],8468,[8470,8472],[8478,8483],8485,8487,8489,8494,[8506,8507],[8512,8516],[8522,8525],8527,[8586,8587],[8592,8967],[8972,9e3],[9003,9254],[9280,9290],[9372,9449],[9472,10087],[10132,10180],[10183,10213],[10224,10626],[10649,10711],[10716,10747],[10750,11123],[11126,11157],[11159,11263],[11493,11498],[11856,11857],[11904,11929],[11931,12019],[12032,12245],[12272,12283],12292,[12306,12307],12320,[12342,12343],[12350,12351],[12443,12444],[12688,12689],[12694,12703],[12736,12771],[12800,12830],[12842,12871],12880,[12896,12927],[12938,12976],[12992,13311],[19904,19967],[42128,42182],[42752,42774],[42784,42785],[42889,42890],[43048,43051],[43062,43065],[43639,43641],43867,[43882,43883],64297,[64434,64450],[64832,64847],64975,[65020,65023],65122,[65124,65126],65129,65284,65291,[65308,65310],65342,65344,65372,65374,[65504,65510],[65512,65518],[65532,65533],[65847,65855],[65913,65929],[65932,65934],[65936,65948],65952,[66e3,66044],[67703,67704],68296,71487,[73685,73713],[92988,92991],92997,113820,[118608,118723],[118784,119029],[119040,119078],[119081,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119274],[119296,119361],119365,[119552,119638],120513,120539,120571,120597,120629,120655,120687,120713,120745,120771,[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121478],123215,123647,126124,126128,126254,[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127245,127405],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994]],Q0=[453,456,459,498,[8072,8079],[8088,8095],[8104,8111],8124,8140,8188],t3=[[888,889],[896,899],907,909,930,1328,[1367,1368],[1419,1420],1424,[1480,1487],[1515,1518],[1525,1535],1806,[1867,1868],[1970,1983],[2043,2044],[2094,2095],2111,[2140,2141],2143,[2155,2159],2191,[2194,2199],2436,[2445,2446],[2449,2450],2473,2481,[2483,2485],[2490,2491],[2501,2502],[2505,2506],[2511,2518],[2520,2523],2526,[2532,2533],[2559,2560],2564,[2571,2574],[2577,2578],2601,2609,2612,2615,[2618,2619],2621,[2627,2630],[2633,2634],[2638,2640],[2642,2648],2653,[2655,2661],[2679,2688],2692,2702,2706,2729,2737,2740,[2746,2747],2758,2762,[2766,2767],[2769,2783],[2788,2789],[2802,2808],2816,2820,[2829,2830],[2833,2834],2857,2865,2868,[2874,2875],[2885,2886],[2889,2890],[2894,2900],[2904,2907],2910,[2916,2917],[2936,2945],2948,[2955,2957],2961,[2966,2968],2971,2973,[2976,2978],[2981,2983],[2987,2989],[3002,3005],[3011,3013],3017,[3022,3023],[3025,3030],[3032,3045],[3067,3071],3085,3089,3113,[3130,3131],3141,3145,[3150,3156],3159,[3163,3164],[3166,3167],[3172,3173],[3184,3190],3213,3217,3241,3252,[3258,3259],3269,3273,[3278,3284],[3287,3292],3295,[3300,3301],3312,[3316,3327],3341,3345,3397,3401,[3408,3411],[3428,3429],3456,3460,[3479,3481],3506,3516,[3518,3519],[3527,3529],[3531,3534],3541,3543,[3552,3557],[3568,3569],[3573,3584],[3643,3646],[3676,3712],3715,3717,3723,3748,3750,[3774,3775],3781,3783,3791,[3802,3803],[3808,3839],3912,[3949,3952],3992,4029,4045,[4059,4095],4294,[4296,4300],[4302,4303],4681,[4686,4687],4695,4697,[4702,4703],4745,[4750,4751],4785,[4790,4791],4799,4801,[4806,4807],4823,4881,[4886,4887],[4955,4956],[4989,4991],[5018,5023],[5110,5111],[5118,5119],[5789,5791],[5881,5887],[5910,5918],[5943,5951],[5972,5983],5997,6001,[6004,6015],[6110,6111],[6122,6127],[6138,6143],[6170,6175],[6265,6271],[6315,6319],[6390,6399],6431,[6444,6447],[6460,6463],[6465,6467],[6510,6511],[6517,6527],[6572,6575],[6602,6607],[6619,6621],[6684,6685],6751,[6781,6782],[6794,6799],[6810,6815],[6830,6831],[6863,6911],[6989,6991],7039,[7156,7163],[7224,7226],[7242,7244],[7305,7311],[7355,7356],[7368,7375],[7419,7423],[7958,7959],[7966,7967],[8006,8007],[8014,8015],8024,8026,8028,8030,[8062,8063],8117,8133,[8148,8149],8156,[8176,8177],8181,8191,8293,[8306,8307],8335,[8349,8351],[8385,8399],[8433,8447],[8588,8591],[9255,9279],[9291,9311],[11124,11125],11158,[11508,11512],11558,[11560,11564],[11566,11567],[11624,11630],[11633,11646],[11671,11679],11687,11695,11703,11711,11719,11727,11735,11743,[11870,11903],11930,[12020,12031],[12246,12271],[12284,12287],12352,[12439,12440],[12544,12548],12592,12687,[12772,12783],12831,[42125,42127],[42183,42191],[42540,42559],[42744,42751],[42955,42959],42962,42964,[42970,42993],[43053,43055],[43066,43071],[43128,43135],[43206,43213],[43226,43231],[43348,43358],[43389,43391],43470,[43482,43485],43519,[43575,43583],[43598,43599],[43610,43611],[43715,43738],[43767,43776],[43783,43784],[43791,43792],[43799,43807],43815,43823,[43884,43887],[44014,44015],[44026,44031],[55204,55215],[55239,55242],[55292,55295],[64110,64111],[64218,64255],[64263,64274],[64280,64284],64311,64317,64319,64322,64325,[64451,64466],[64912,64913],[64968,64974],[64976,65007],[65050,65055],65107,65127,[65132,65135],65141,[65277,65278],65280,[65471,65473],[65480,65481],[65488,65489],[65496,65497],[65501,65503],65511,[65519,65528],[65534,65535],65548,65575,65595,65598,[65614,65615],[65630,65663],[65787,65791],[65795,65798],[65844,65846],65935,[65949,65951],[65953,65999],[66046,66175],[66205,66207],[66257,66271],[66300,66303],[66340,66348],[66379,66383],[66427,66431],66462,[66500,66503],[66518,66559],[66718,66719],[66730,66735],[66772,66775],[66812,66815],[66856,66863],[66916,66926],66939,66955,66963,66966,66978,66994,67002,[67005,67071],[67383,67391],[67414,67423],[67432,67455],67462,67505,[67515,67583],[67590,67591],67593,67638,[67641,67643],[67645,67646],67670,[67743,67750],[67760,67807],67827,[67830,67834],[67868,67870],[67898,67902],[67904,67967],[68024,68027],[68048,68049],68100,[68103,68107],68116,68120,[68150,68151],[68155,68158],[68169,68175],[68185,68191],[68256,68287],[68327,68330],[68343,68351],[68406,68408],[68438,68439],[68467,68471],[68498,68504],[68509,68520],[68528,68607],[68681,68735],[68787,68799],[68851,68857],[68904,68911],[68922,69215],69247,69290,[69294,69295],[69298,69372],[69416,69423],[69466,69487],[69514,69551],[69580,69599],[69623,69631],[69710,69713],[69750,69758],[69827,69836],[69838,69839],[69865,69871],[69882,69887],69941,[69960,69967],[70007,70015],70112,[70133,70143],70162,[70210,70271],70279,70281,70286,70302,[70314,70319],[70379,70383],[70394,70399],70404,[70413,70414],[70417,70418],70441,70449,70452,70458,[70469,70470],[70473,70474],[70478,70479],[70481,70486],[70488,70492],[70500,70501],[70509,70511],[70517,70655],70748,[70754,70783],[70856,70863],[70874,71039],[71094,71095],[71134,71167],[71237,71247],[71258,71263],[71277,71295],[71354,71359],[71370,71423],[71451,71452],[71468,71471],[71495,71679],[71740,71839],[71923,71934],[71943,71944],[71946,71947],71956,71959,71990,[71993,71994],[72007,72015],[72026,72095],[72104,72105],[72152,72153],[72165,72191],[72264,72271],[72355,72367],[72441,72447],[72458,72703],72713,72759,[72774,72783],[72813,72815],[72848,72849],72872,[72887,72959],72967,72970,[73015,73017],73019,73022,[73032,73039],[73050,73055],73062,73065,73103,73106,[73113,73119],[73130,73439],[73465,73471],73489,[73531,73533],[73562,73647],[73649,73663],[73714,73726],[74650,74751],74863,[74869,74879],[75076,77711],[77811,77823],[78934,82943],[83527,92159],[92729,92735],92767,[92778,92781],92863,[92874,92879],[92910,92911],[92918,92927],[92998,93007],93018,93026,[93048,93052],[93072,93759],[93851,93951],[94027,94030],[94088,94094],[94112,94175],[94181,94191],[94194,94207],[100344,100351],[101590,101631],[101641,110575],110580,110588,110591,[110883,110897],[110899,110927],[110931,110932],[110934,110947],[110952,110959],[111356,113663],[113771,113775],[113789,113791],[113801,113807],[113818,113819],[113828,118527],[118574,118575],[118599,118607],[118724,118783],[119030,119039],[119079,119080],[119275,119295],[119366,119487],[119508,119519],[119540,119551],[119639,119647],[119673,119807],119893,119965,[119968,119969],[119971,119972],[119975,119976],119981,119994,119996,120004,120070,[120075,120076],120085,120093,120122,120127,120133,[120135,120137],120145,[120486,120487],[120780,120781],[121484,121498],121504,[121520,122623],[122655,122660],[122667,122879],122887,[122905,122906],122914,122917,[122923,122927],[122990,123022],[123024,123135],[123181,123183],[123198,123199],[123210,123213],[123216,123535],[123567,123583],[123642,123646],[123648,124111],[124154,124895],124903,124908,124911,124927,[125125,125126],[125143,125183],[125260,125263],[125274,125277],[125280,126064],[126133,126208],[126270,126463],126468,126496,126499,[126501,126502],126504,126515,126520,126522,[126524,126529],[126531,126534],126536,126538,126540,126544,126547,[126549,126550],126552,126554,126556,126558,126560,126563,[126565,126566],126571,126579,126584,126589,126591,126602,[126620,126624],126628,126634,[126652,126703],[126706,126975],[127020,127023],[127124,127135],[127151,127152],127168,127184,[127222,127231],[127406,127461],[127491,127503],[127548,127551],[127561,127567],[127570,127583],[127590,127743],[128728,128731],[128749,128751],[128765,128767],[128887,128890],[128986,128991],[129004,129007],[129009,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129199],[129202,129279],[129620,129631],[129646,129647],[129661,129663],[129673,129679],129726,[129734,129741],[129756,129759],[129769,129775],[129785,129791],129939,[129995,130031],[130042,131071],[173792,173823],[177978,177983],[178206,178207],[183970,183983],[191457,194559],[195102,196607],[201547,201551],[205744,917504],[917506,917535],[917632,917759],[918e3,983039],[1048574,1048575],[1114110,1114111]],e3=[[65,90],[192,214],[216,222],256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,313,315,317,319,321,323,325,327,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,[376,377],379,381,[385,386],388,[390,391],[393,395],[398,401],[403,404],[406,408],[412,413],[415,416],418,420,[422,423],425,428,[430,431],[433,435],437,[439,440],444,452,455,458,461,463,465,467,469,471,473,475,478,480,482,484,486,488,490,492,494,497,500,[502,504],506,508,510,512,514,516,518,520,522,524,526,528,530,532,534,536,538,540,542,544,546,548,550,552,554,556,558,560,562,[570,571],[573,574],577,[579,582],584,586,588,590,880,882,886,895,902,[904,906],908,[910,911],[913,929],[931,939],975,[978,980],984,986,988,990,992,994,996,998,1e3,1002,1004,1006,1012,1015,[1017,1018],[1021,1071],1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1162,1164,1166,1168,1170,1172,1174,1176,1178,1180,1182,1184,1186,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1210,1212,1214,[1216,1217],1219,1221,1223,1225,1227,1229,1232,1234,1236,1238,1240,1242,1244,1246,1248,1250,1252,1254,1256,1258,1260,1262,1264,1266,1268,1270,1272,1274,1276,1278,1280,1282,1284,1286,1288,1290,1292,1294,1296,1298,1300,1302,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1326,[1329,1366],[4256,4293],4295,4301,[5024,5109],[7312,7354],[7357,7359],7680,7682,7684,7686,7688,7690,7692,7694,7696,7698,7700,7702,7704,7706,7708,7710,7712,7714,7716,7718,7720,7722,7724,7726,7728,7730,7732,7734,7736,7738,7740,7742,7744,7746,7748,7750,7752,7754,7756,7758,7760,7762,7764,7766,7768,7770,7772,7774,7776,7778,7780,7782,7784,7786,7788,7790,7792,7794,7796,7798,7800,7802,7804,7806,7808,7810,7812,7814,7816,7818,7820,7822,7824,7826,7828,7838,7840,7842,7844,7846,7848,7850,7852,7854,7856,7858,7860,7862,7864,7866,7868,7870,7872,7874,7876,7878,7880,7882,7884,7886,7888,7890,7892,7894,7896,7898,7900,7902,7904,7906,7908,7910,7912,7914,7916,7918,7920,7922,7924,7926,7928,7930,7932,7934,[7944,7951],[7960,7965],[7976,7983],[7992,7999],[8008,8013],8025,8027,8029,8031,[8040,8047],[8120,8123],[8136,8139],[8152,8155],[8168,8172],[8184,8187],8450,8455,[8459,8461],[8464,8466],8469,[8473,8477],8484,8486,8488,[8490,8493],[8496,8499],[8510,8511],8517,8579,[11264,11311],11360,[11362,11364],11367,11369,11371,[11373,11376],11378,11381,[11390,11392],11394,11396,11398,11400,11402,11404,11406,11408,11410,11412,11414,11416,11418,11420,11422,11424,11426,11428,11430,11432,11434,11436,11438,11440,11442,11444,11446,11448,11450,11452,11454,11456,11458,11460,11462,11464,11466,11468,11470,11472,11474,11476,11478,11480,11482,11484,11486,11488,11490,11499,11501,11506,42560,42562,42564,42566,42568,42570,42572,42574,42576,42578,42580,42582,42584,42586,42588,42590,42592,42594,42596,42598,42600,42602,42604,42624,42626,42628,42630,42632,42634,42636,42638,42640,42642,42644,42646,42648,42650,42786,42788,42790,42792,42794,42796,42798,42802,42804,42806,42808,42810,42812,42814,42816,42818,42820,42822,42824,42826,42828,42830,42832,42834,42836,42838,42840,42842,42844,42846,42848,42850,42852,42854,42856,42858,42860,42862,42873,42875,[42877,42878],42880,42882,42884,42886,42891,42893,42896,42898,42902,42904,42906,42908,42910,42912,42914,42916,42918,42920,[42922,42926],[42928,42932],42934,42936,42938,42940,42942,42944,42946,[42948,42951],42953,42960,42966,42968,42997,[65313,65338],[66560,66599],[66736,66771],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[68736,68786],[71840,71871],[93760,93791],[119808,119833],[119860,119885],[119912,119937],119964,[119966,119967],119970,[119973,119974],[119977,119980],[119982,119989],[120016,120041],[120068,120069],[120071,120074],[120077,120084],[120086,120092],[120120,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120172,120197],[120224,120249],[120276,120301],[120328,120353],[120380,120405],[120432,120457],[120488,120512],[120546,120570],[120604,120628],[120662,120686],[120720,120744],120778,[125184,125217]],n3=Object.freeze(Object.defineProperty({__proto__:null,Cased_Letter:m0,Close_Punctuation:b0,Connector_Punctuation:v0,Control:C0,Currency_Symbol:S0,Dash_Punctuation:E0,Decimal_Number:y0,Enclosing_Mark:T0,Final_Punctuation:F0,Format:O0,Initial_Punctuation:w0,Letter:B0,Letter_Number:A0,Line_Separator:R0,Lowercase_Letter:x0,Mark:M0,Math_Symbol:L0,Modifier_Letter:I0,Modifier_Symbol:P0,Nonspacing_Mark:$0,Number:k0,Open_Punctuation:N0,Other:H0,Other_Letter:X0,Other_Number:z0,Other_Punctuation:W0,Other_Symbol:Y0,Paragraph_Separator:j0,Private_Use:U0,Punctuation:V0,Separator:G0,Space_Separator:K0,Spacing_Mark:q0,Surrogate:J0,Symbol:Z0,Titlecase_Letter:Q0,Unassigned:t3,Uppercase_Letter:e3},Symbol.toStringTag,{value:"Module"})),s3=[1544,1547,1549,[1563,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],1969,[2144,2154],[2160,2190],[2208,2249],[64336,64450],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[68864,68899],[69424,69445],[69457,69465],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651]],i3=[[1536,1541],[1632,1641],[1643,1644],1757,[2192,2193],2274,[68912,68921],[69216,69246]],r3=[[0,8],[14,27],[127,132],[134,159],173,6158,[8203,8205],[8288,8292],[8298,8303],65279,[113824,113827],[119155,119162],917505,[917536,917631]],o3=[44,[46,47],58,160,1548,8239,8260,65104,65106,65109,65292,[65294,65295],65306],a3=[[48,57],[178,179],185,[1776,1785],8304,[8308,8313],[8320,8329],[9352,9371],[65296,65305],[66273,66299],[120782,120831],[127232,127242],[130032,130041]],c3=[43,45,[8314,8315],[8330,8331],8722,64297,[65122,65123],65291,65293],l3=[[35,37],[162,165],[176,177],1423,[1545,1546],1642,[2546,2547],2555,2801,3065,3647,6107,[8240,8244],[8352,8384],8494,8723,[43064,43065],65119,[65129,65130],[65283,65285],[65504,65505],[65509,65510],[73693,73696],123647],u3=[8296],h3=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,696],[699,705],[720,721],[736,740],750,[880,883],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1154],[1162,1327],[1329,1366],[1369,1417],[2307,2361],2363,[2365,2368],[2377,2380],[2382,2384],[2392,2401],[2404,2432],[2434,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2493,2496],[2503,2504],[2507,2508],2510,2519,[2524,2525],[2527,2529],[2534,2545],[2548,2554],[2556,2557],2563,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2622,2624],[2649,2652],2654,[2662,2671],[2674,2676],2678,2691,[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2749,2752],2761,[2763,2764],2768,[2784,2785],[2790,2800],2809,[2818,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2877,2878],2880,[2887,2888],[2891,2892],2903,[2908,2909],[2911,2913],[2918,2935],2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3007],[3009,3010],[3014,3016],[3018,3020],3024,3031,[3046,3058],[3073,3075],[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3137,3140],[3160,3162],3165,[3168,3169],[3174,3183],3191,[3199,3200],[3202,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3261,3268],[3270,3272],[3274,3275],[3285,3286],[3293,3294],[3296,3297],[3302,3311],[3313,3315],[3330,3340],[3342,3344],[3346,3386],[3389,3392],[3398,3400],[3402,3404],[3406,3407],[3412,3425],[3430,3455],[3458,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],[3535,3537],[3544,3551],[3558,3567],[3570,3572],[3585,3632],[3634,3635],[3648,3654],[3663,3675],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3760],[3762,3763],3773,[3776,3780],3782,[3792,3801],[3804,3807],[3840,3863],[3866,3892],3894,3896,[3902,3911],[3913,3948],3967,3973,[3976,3980],[4030,4037],[4039,4044],[4046,4058],[4096,4140],4145,4152,[4155,4156],[4159,4183],[4186,4189],[4193,4208],[4213,4225],[4227,4228],[4231,4236],[4238,4252],[4254,4293],4295,4301,[4304,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4960,4988],[4992,5007],[5024,5109],[5112,5117],[5121,5759],[5761,5786],[5792,5880],[5888,5905],5909,[5919,5937],[5940,5942],[5952,5969],[5984,5996],[5998,6e3],[6016,6067],6070,[6078,6085],[6087,6088],[6100,6106],6108,[6112,6121],[6160,6169],[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6435,6438],[6441,6443],[6448,6449],[6451,6456],[6470,6509],[6512,6516],[6528,6571],[6576,6601],[6608,6618],[6656,6678],[6681,6682],[6686,6741],6743,6753,[6755,6756],[6765,6770],[6784,6793],[6800,6809],[6816,6829],[6916,6963],6965,6971,[6973,6977],[6979,6988],[6992,7018],[7028,7038],[7042,7073],[7078,7079],7082,[7086,7141],7143,[7146,7148],7150,[7154,7155],[7164,7211],[7220,7221],[7227,7241],[7245,7304],[7312,7354],[7357,7367],7379,7393,[7401,7404],[7406,7411],[7413,7415],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8206,8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8505],[8508,8511],[8517,8521],[8526,8527],[8544,8584],[9014,9082],9109,[9372,9449],9900,[10240,10495],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],[11631,11632],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[12293,12295],[12321,12329],[12334,12335],[12337,12341],[12344,12348],[12353,12438],[12445,12447],[12449,12538],[12540,12543],[12549,12591],[12593,12686],[12688,12735],[12784,12828],[12832,12879],[12896,12923],[12927,12976],[12992,13003],[13008,13174],[13179,13277],[13280,13310],[13312,19903],[19968,42124],[42192,42508],[42512,42539],[42560,42606],[42624,42653],[42656,42735],[42738,42743],[42786,42887],[42889,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43044],43047,[43056,43063],[43072,43123],[43136,43203],[43214,43225],[43250,43262],[43264,43301],[43310,43334],[43346,43347],[43359,43388],[43395,43442],[43444,43445],[43450,43451],[43454,43469],[43471,43481],[43486,43492],[43494,43518],[43520,43560],[43567,43568],[43571,43572],[43584,43586],[43588,43595],43597,[43600,43609],[43612,43643],[43645,43695],43697,[43701,43702],[43705,43709],43712,43714,[43739,43755],[43758,43765],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43881],[43888,44004],[44006,44007],[44009,44012],[44016,44025],[44032,55203],[55216,55238],[55243,55291],[55296,64109],[64112,64217],[64256,64262],[64275,64279],[65313,65338],[65345,65370],[65382,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],65792,65794,[65799,65843],[65847,65855],[65933,65934],[66e3,66044],[66176,66204],[66208,66256],[66304,66339],[66349,66378],[66384,66421],[66432,66461],[66463,66499],[66504,66517],[66560,66717],[66720,66729],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],69632,[69634,69687],[69703,69709],[69734,69743],[69745,69746],69749,[69762,69810],[69815,69816],[69819,69825],69837,[69840,69864],[69872,69881],[69891,69926],69932,[69942,69959],[69968,70002],[70004,70006],[70018,70069],[70079,70088],[70093,70094],[70096,70111],[70113,70132],[70144,70161],[70163,70190],[70194,70195],70197,[70200,70205],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313],[70320,70366],[70368,70370],[70384,70393],[70402,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70461,70463],[70465,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70656,70711],[70720,70721],70725,[70727,70747],70749,[70751,70753],[70784,70834],70841,[70843,70846],70849,[70852,70855],[70864,70873],[71040,71089],[71096,71099],71102,[71105,71131],[71168,71218],[71227,71228],71230,[71233,71236],[71248,71257],[71296,71338],71340,[71342,71343],71350,[71352,71353],[71360,71369],[71424,71450],[71456,71457],71462,[71472,71494],[71680,71726],71736,71739,[71840,71922],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],71997,[71999,72002],[72004,72006],[72016,72025],[72096,72103],[72106,72147],[72156,72159],[72161,72164],72192,[72199,72200],[72203,72242],[72249,72250],[72255,72262],72272,[72279,72280],[72284,72329],72343,[72346,72354],[72368,72440],[72448,72457],[72704,72712],[72714,72751],[72766,72773],[72784,72812],[72816,72847],72873,72881,72884,[72960,72966],[72968,72969],[72971,73008],73030,[73040,73049],[73056,73061],[73063,73064],[73066,73102],[73107,73108],73110,73112,[73120,73129],[73440,73458],[73461,73464],[73474,73488],[73490,73525],[73534,73535],73537,[73539,73561],73648,[73664,73684],[73727,74649],[74752,74862],[74864,74868],[74880,75075],[77712,77810],[77824,78911],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92768,92777],[92782,92862],[92864,92873],[92880,92909],92917,[92928,92975],[92983,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071],[93760,93850],[93952,94026],[94032,94087],[94099,94111],[94176,94177],94179,[94192,94193],[94208,100343],[100352,101589],[101632,101640],[110576,110579],[110581,110587],[110589,110590],[110592,110882],110898,[110928,110930],110933,[110948,110951],[110960,111355],[113664,113770],[113776,113788],[113792,113800],[113808,113817],113820,113823,[118608,118723],[118784,119029],[119040,119078],[119081,119142],[119146,119154],[119171,119172],[119180,119209],[119214,119272],[119488,119507],[119520,119539],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120538],[120540,120596],[120598,120654],[120656,120712],[120714,120770],[120772,120779],[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121483],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],[123200,123209],[123214,123215],[123536,123565],[123584,123627],[123632,123641],[124112,124139],[124144,124153],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[127248,127278],[127280,127337],[127344,127404],[127462,127490],[127504,127547],[127552,127560],[127568,127569],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743],[983040,1048573],[1048576,1114109]],_3=[8234],d3=[8294],f3=[8237],g3=[[768,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2306],2362,2364,[2369,2376],2381,[2385,2391],[2402,2403],2433,2492,[2497,2500],2509,[2530,2531],2558,[2561,2562],2620,[2625,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2690],2748,[2753,2757],[2759,2760],2765,[2786,2787],[2810,2815],2817,2876,2879,[2881,2884],2893,[2901,2902],[2914,2915],2946,3008,3021,3072,3076,3132,[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],3201,3260,[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],3405,[3426,3427],3457,3530,[3538,3540],3542,3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],4226,[4229,4230],4237,4253,[4957,4959],[5906,5908],[5938,5939],[5970,5971],[6002,6003],[6068,6069],[6071,6077],6086,[6089,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6434],[6439,6440],6450,[6457,6459],[6679,6680],6683,6742,[6744,6750],6752,6754,[6757,6764],[6771,6780],6783,[6832,6862],[6912,6915],6964,[6966,6970],6972,6978,[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],7142,[7144,7145],7149,[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7616,7679],[8400,8432],[11503,11505],11647,[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43045,43046],43052,[43204,43205],[43232,43249],43263,[43302,43309],[43335,43345],[43392,43394],43443,[43446,43449],[43452,43453],43493,[43561,43566],[43569,43570],[43573,43574],43587,43596,43644,43696,[43698,43700],[43703,43704],[43710,43711],43713,[43756,43757],43766,44005,44008,44013,64286,[65024,65039],[65056,65071],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],69633,[69688,69702],69744,[69747,69748],[69759,69761],[69811,69814],[69817,69818],69826,[69888,69890],[69927,69931],[69933,69940],70003,[70016,70017],[70070,70078],[70089,70092],70095,[70191,70193],70196,[70198,70199],70206,70209,70367,[70371,70378],[70400,70401],[70459,70460],70464,[70502,70508],[70512,70516],[70712,70719],[70722,70724],70726,70750,[70835,70840],70842,[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],71229,[71231,71232],71339,71341,[71344,71349],71351,[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[71995,71996],71998,72003,[72148,72151],[72154,72155],72160,[72193,72198],[72201,72202],[72243,72248],[72251,72254],72263,[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73104,73105],73109,73111,[73459,73460],[73472,73473],[73526,73530],73536,73538,78912,[78919,78933],[92912,92916],[92976,92982],94031,[94095,94098],94180,[113821,113822],[118528,118573],[118576,118598],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[917760,917999]],D3=[[33,34],[38,42],[59,64],[91,96],[123,126],161,[166,169],[171,172],[174,175],180,[182,184],[187,191],215,247,[697,698],[706,719],[722,735],[741,749],[751,767],[884,885],894,[900,901],903,1014,1418,[1421,1422],[1542,1543],[1550,1551],1758,1769,[2038,2041],[3059,3064],3066,[3192,3198],[3898,3901],[5008,5017],5120,[5787,5788],[6128,6137],[6144,6154],6464,[6468,6469],[6622,6655],8125,[8127,8129],[8141,8143],[8157,8159],[8173,8175],[8189,8190],[8208,8231],[8245,8259],[8261,8286],[8316,8318],[8332,8334],[8448,8449],[8451,8454],[8456,8457],8468,[8470,8472],[8478,8483],8485,8487,8489,[8506,8507],[8512,8516],[8522,8525],[8528,8543],[8585,8587],[8592,8721],[8724,9013],[9083,9108],[9110,9254],[9280,9290],[9312,9351],[9450,9899],[9901,10239],[10496,11123],[11126,11157],[11159,11263],[11493,11498],[11513,11519],[11776,11869],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12289,12292],[12296,12320],12336,[12342,12343],[12349,12351],[12443,12444],12448,12539,[12736,12771],[12829,12830],[12880,12895],[12924,12926],[12977,12991],[13004,13007],[13175,13178],[13278,13279],13311,[19904,19967],[42128,42182],[42509,42511],42611,[42622,42623],[42752,42785],42888,[43048,43051],[43124,43127],[43882,43883],[64830,64847],64975,[65021,65023],[65040,65049],[65072,65103],65105,65108,[65110,65118],[65120,65121],[65124,65126],65128,65131,[65281,65282],[65286,65290],[65307,65312],[65339,65344],[65371,65381],[65506,65508],[65512,65518],[65529,65533],65793,[65856,65932],[65936,65948],65952,67871,[68409,68415],[69714,69733],[71264,71276],[73685,73692],[73697,73713],94178,[119273,119274],[119296,119361],119365,[119552,119638],120539,120597,120655,120713,120771,[126704,126705],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127243,127247],127279,[127338,127343],127405,[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994]],p3=[10,13,[28,30],133,8233],m3=[8236],b3=[8297],v3=[1470,1472,1475,1478,[1488,1514],[1519,1524],[1984,2026],[2036,2037],2042,[2046,2069],2074,2084,2088,[2096,2110],[2112,2136],2142,8207,64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67872,67897],67903,[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],[68176,68184],[68192,68255],[68288,68324],[68331,68342],[68352,68405],[68416,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68863],[69248,69289],69293,[69296,69297],[69376,69415],[69488,69505],[69510,69513],[69552,69579],[69600,69622],[124928,125124],[125127,125135],[125184,125251],125259,[125264,125273],[125278,125279]],C3=[8235],S3=[8295],E3=[8238],y3=[9,11,31],T3=[12,32,5760,[8192,8202],8232,8287,12288],F3=Object.freeze(Object.defineProperty({__proto__:null,Arabic_Letter:s3,Arabic_Number:i3,Boundary_Neutral:r3,Common_Separator:o3,European_Number:a3,European_Separator:c3,European_Terminator:l3,First_Strong_Isolate:u3,Left_To_Right:h3,Left_To_Right_Embedding:_3,Left_To_Right_Isolate:d3,Left_To_Right_Override:f3,Nonspacing_Mark:g3,Other_Neutral:D3,Paragraph_Separator:p3,Pop_Directional_Format:m3,Pop_Directional_Isolate:b3,Right_To_Left:v3,Right_To_Left_Embedding:C3,Right_To_Left_Isolate:S3,Right_To_Left_Override:E3,Segment_Separator:y3,White_Space:T3},Symbol.toStringTag,{value:"Module"})),O3=[[125184,125259],[125264,125273],[125278,125279]],w3=[[71424,71450],[71453,71467],[71472,71494]],B3=[[82944,83526]],A3=[[1536,1540],[1542,1547],[1549,1562],[1564,1566],[1568,1599],[1601,1610],[1622,1647],[1649,1756],[1758,1791],[1872,1919],[2160,2190],[2192,2193],[2200,2273],[2275,2303],[64336,64450],[64467,64829],[64832,64911],[64914,64967],64975,[65008,65023],[65136,65140],[65142,65276],[69216,69246],[69373,69375],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705]],R3=[[1329,1366],[1369,1418],[1421,1423],[64275,64279]],x3=[[68352,68405],[68409,68415]],M3=[[6912,6988],[6992,7038]],L3=[[42656,42743],[92160,92728]],I3=[[92880,92909],[92912,92917]],P3=[[7104,7155],[7164,7167]],$3=[[2432,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2558]],k3=[[72704,72712],[72714,72758],[72760,72773],[72784,72812]],N3=[[746,747],[12549,12591],[12704,12735]],H3=[[69632,69709],[69714,69749],69759],X3=[[10240,10495]],z3=[[6656,6683],[6686,6687]],W3=[[5952,5971]],Y3=[[5120,5759],[6320,6389],[72368,72383]],j3=[[66208,66256]],U3=[[66864,66915],66927],V3=[[69888,69940],[69942,69959]],G3=[[43520,43574],[43584,43597],[43600,43609],[43612,43615]],K3=[[5024,5109],[5112,5117],[43888,43967]],q3=[[69552,69579]],J3=[[0,64],[91,96],[123,169],[171,185],[187,191],215,247,[697,735],[741,745],[748,767],884,894,901,903,1541,1548,1563,1567,1600,1757,2274,[2404,2405],3647,[4053,4056],4347,[5867,5869],[5941,5942],[6146,6147],6149,7379,7393,[7401,7404],[7406,7411],[7413,7415],7418,[8192,8203],[8206,8292],[8294,8304],[8308,8318],[8320,8334],[8352,8384],[8448,8485],[8487,8489],[8492,8497],[8499,8525],[8527,8543],[8585,8587],[8592,9254],[9280,9290],[9312,10239],[10496,11123],[11126,11157],[11159,11263],[11776,11869],[12272,12283],[12288,12292],12294,[12296,12320],[12336,12343],[12348,12351],[12443,12444],12448,[12539,12540],[12688,12703],[12736,12771],[12832,12895],[12927,13007],13055,[13144,13311],[19904,19967],[42752,42785],[42888,42890],[43056,43065],43310,43471,43867,[43882,43883],[64830,64831],[65040,65049],[65072,65106],[65108,65126],[65128,65131],65279,[65281,65312],[65339,65344],[65371,65381],65392,[65438,65439],[65504,65510],[65512,65518],[65529,65533],[65792,65794],[65799,65843],[65847,65855],[65936,65948],[66e3,66044],[66273,66299],[113824,113827],[118608,118723],[118784,119029],[119040,119078],[119081,119142],[119146,119162],[119171,119172],[119180,119209],[119214,119274],[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,120831],[126065,126132],[126209,126269],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127462,127487],[127489,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],917505,[917536,917631]],Z3=[[994,1007],[11392,11507],[11513,11519]],Q3=[[73728,74649],[74752,74862],[74864,74868],[74880,75075]],t8=[[67584,67589],67592,[67594,67637],[67639,67640],67644,67647],e8=[[77712,77810]],n8=[[1024,1156],[1159,1327],[7296,7304],7467,7544,[11744,11775],[42560,42655],[65070,65071],[122928,122989],123023],s8=[[66560,66639]],i8=[[2304,2384],[2389,2403],[2406,2431],[43232,43263],[72448,72457]],r8=[[71936,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72006],[72016,72025]],o8=[[71680,71739]],a8=[[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113820,113823]],c8=[[77824,78933]],l8=[[66816,66855]],u8=[[69600,69622]],h8=[[4608,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4988],[4992,5017],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[124896,124902],[124904,124907],[124909,124910],[124912,124926]],_8=[[4256,4293],4295,4301,[4304,4346],[4348,4351],[7312,7354],[7357,7359],[11520,11557],11559,11565],d8=[[11264,11359],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922]],f8=[[66352,66378]],g8=[[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70460,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516]],D8=[[880,883],[885,887],[890,893],895,900,902,[904,906],908,[910,929],[931,993],[1008,1023],[7462,7466],[7517,7521],[7526,7530],7615,[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],8486,43877,[65856,65934],65952,[119296,119365]],p8=[[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2801],[2809,2815]],m8=[[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129]],b8=[[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2678]],v8=[[11904,11929],[11931,12019],[12032,12245],12293,12295,[12321,12329],[12344,12347],[13312,19903],[19968,40959],[63744,64109],[64112,64217],[94178,94179],[94192,94193],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],C8=[[4352,4607],[12334,12335],[12593,12686],[12800,12830],[12896,12926],[43360,43388],[44032,55203],[55216,55238],[55243,55291],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500]],S8=[[68864,68903],[68912,68921]],E8=[[5920,5940]],y8=[[67808,67826],[67828,67829],[67835,67839]],T8=[[1425,1479],[1488,1514],[1519,1524],[64285,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335]],F8=[[12353,12438],[12445,12447],[110593,110879],110898,[110928,110930],127488],O8=[[67648,67669],[67671,67679]],w8=[[768,879],[1157,1158],[1611,1621],1648,[2385,2388],[6832,6862],[7376,7378],[7380,7392],[7394,7400],7405,7412,[7416,7417],[7616,7679],[8204,8205],[8400,8432],[12330,12333],[12441,12442],[65024,65039],[65056,65069],66045,66272,70459,[118528,118573],[118576,118598],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[917760,917999]],B8=[[68448,68466],[68472,68479]],A8=[[68416,68437],[68440,68447]],R8=[[43392,43469],[43472,43481],[43486,43487]],x8=[[69760,69826],69837],M8=[[3200,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315]],L8=[[12449,12538],[12541,12543],[12784,12799],[13008,13054],[13056,13143],[65382,65391],[65393,65437],[110576,110579],[110581,110587],[110589,110590],110592,[110880,110882],110933,[110948,110951]],I8=[[73472,73488],[73490,73530],[73534,73561]],P8=[[43264,43309],43311],$8=[[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],[68159,68168],[68176,68184]],k8=[94180,[101120,101589]],N8=[[6016,6109],[6112,6121],[6128,6137],[6624,6655]],H8=[[70144,70161],[70163,70209]],X8=[[70320,70378],[70384,70393]],z8=[[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807]],W8=[[65,90],[97,122],170,186,[192,214],[216,246],[248,696],[736,740],[7424,7461],[7468,7516],[7522,7525],[7531,7543],[7545,7614],[7680,7935],8305,8319,[8336,8348],[8490,8491],8498,8526,[8544,8584],[11360,11391],[42786,42887],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43007],[43824,43866],[43868,43876],[43878,43881],[64256,64262],[65313,65338],[65345,65370],[67456,67461],[67463,67504],[67506,67514],[122624,122654],[122661,122666]],Y8=[[7168,7223],[7227,7241],[7245,7247]],j8=[[6400,6430],[6432,6443],[6448,6459],6464,[6468,6479]],U8=[[67072,67382],[67392,67413],[67424,67431]],V8=[[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786]],G8=[[42192,42239],73648],K8=[[66176,66204]],q8=[[67872,67897],67903],J8=[[69968,70006]],Z8=[[73440,73464]],Q8=[[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3407],[3412,3427],[3430,3455]],t9=[[2112,2139],2142],e9=[[68288,68326],[68331,68342]],n9=[[72816,72847],[72850,72871],[72873,72886]],s9=[[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049]],i9=[[93760,93850]],r9=[[43744,43766],[43968,44013],[44016,44025]],o9=[[124928,125124],[125127,125142]],a9=[[68e3,68023],[68028,68047],[68050,68095]],c9=[[67968,67999]],l9=[[93952,94026],[94031,94087],[94095,94111]],u9=[[71168,71236],[71248,71257]],h9=[[6144,6145],6148,[6150,6169],[6176,6264],[6272,6314],[71264,71276]],_9=[[92736,92766],[92768,92777],[92782,92783]],d9=[[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313]],f9=[[4096,4255],[43488,43518],[43616,43647]],g9=[[67712,67742],[67751,67759]],D9=[[124112,124153]],p9=[[72096,72103],[72106,72151],[72154,72164]],m9=[[6528,6571],[6576,6601],[6608,6618],[6622,6623]],b9=[[70656,70747],[70749,70753]],v9=[[1984,2042],[2045,2047]],C9=[94177,[110960,111355]],S9=[[123136,123180],[123184,123197],[123200,123209],[123214,123215]],E9=[[5760,5788]],y9=[[7248,7295]],T9=[[68736,68786],[68800,68850],[68858,68863]],F9=[[66304,66339],[66349,66351]],O9=[[68224,68255]],w9=[[66384,66426]],B9=[[66464,66499],[66504,66517]],A9=[[69376,69415]],R9=[[68192,68223]],x9=[[68608,68680]],M9=[[69488,69513]],L9=[[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2935]],I9=[[66736,66771],[66776,66811]],P9=[[66688,66717],[66720,66729]],$9=[[92928,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071]],k9=[[67680,67711]],N9=[[72384,72440]],H9=[[43072,43127]],X9=[[67840,67867],67871],z9=[[68480,68497],[68505,68508],[68521,68527]],W9=[[43312,43347],43359],Y9=[[5792,5866],[5870,5880]],j9=[[2048,2093],[2096,2110]],U9=[[43136,43205],[43214,43225]],V9=[[70016,70111]],G9=[[66640,66687]],K9=[[71040,71093],[71096,71133]],q9=[[120832,121483],[121499,121503],[121505,121519]],J9=[[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3572],[70113,70132]],Z9=[[69424,69465]],Q9=[[69840,69864],[69872,69881]],t5=[[72272,72354]],e5=[[7040,7103],[7360,7367]],n5=[[43008,43052]],s5=[[1792,1805],[1807,1866],[1869,1871],[2144,2154]],i5=[[5888,5909],5919],r5=[[5984,5996],[5998,6e3],[6002,6003]],o5=[[6480,6509],[6512,6516]],a5=[[6688,6750],[6752,6780],[6783,6793],[6800,6809],[6816,6829]],c5=[[43648,43714],[43739,43743]],l5=[[71296,71353],[71360,71369]],u5=[[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3066],[73664,73713],73727],h5=[[92784,92862],[92864,92873]],_5=[94176,[94208,100343],[100352,101119],[101632,101640]],d5=[[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3191,3199]],f5=[[1920,1969]],g5=[[3585,3642],[3648,3675]],D5=[[3840,3911],[3913,3948],[3953,3991],[3993,4028],[4030,4044],[4046,4052],[4057,4058]],p5=[[11568,11623],[11631,11632],11647],m5=[[70784,70855],[70864,70873]],b5=[[123536,123566]],v5=[[66432,66461],66463],C5=[[42240,42539]],S5=[[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004]],E5=[[123584,123641],123647],y5=[[71840,71922],71935],T5=[[69248,69289],[69291,69293],[69296,69297]],F5=[[40960,42124],[42128,42182]],O5=[[72192,72263]],w5=Object.freeze(Object.defineProperty({__proto__:null,Adlam:O3,Ahom:w3,Anatolian_Hieroglyphs:B3,Arabic:A3,Armenian:R3,Avestan:x3,Balinese:M3,Bamum:L3,Bassa_Vah:I3,Batak:P3,Bengali:$3,Bhaiksuki:k3,Bopomofo:N3,Brahmi:H3,Braille:X3,Buginese:z3,Buhid:W3,Canadian_Aboriginal:Y3,Carian:j3,Caucasian_Albanian:U3,Chakma:V3,Cham:G3,Cherokee:K3,Chorasmian:q3,Common:J3,Coptic:Z3,Cuneiform:Q3,Cypriot:t8,Cypro_Minoan:e8,Cyrillic:n8,Deseret:s8,Devanagari:i8,Dives_Akuru:r8,Dogra:o8,Duployan:a8,Egyptian_Hieroglyphs:c8,Elbasan:l8,Elymaic:u8,Ethiopic:h8,Georgian:_8,Glagolitic:d8,Gothic:f8,Grantha:g8,Greek:D8,Gujarati:p8,Gunjala_Gondi:m8,Gurmukhi:b8,Han:v8,Hangul:C8,Hanifi_Rohingya:S8,Hanunoo:E8,Hatran:y8,Hebrew:T8,Hiragana:F8,Imperial_Aramaic:O8,Inherited:w8,Inscriptional_Pahlavi:B8,Inscriptional_Parthian:A8,Javanese:R8,Kaithi:x8,Kannada:M8,Katakana:L8,Kawi:I8,Kayah_Li:P8,Kharoshthi:$8,Khitan_Small_Script:k8,Khmer:N8,Khojki:H8,Khudawadi:X8,Lao:z8,Latin:W8,Lepcha:Y8,Limbu:j8,Linear_A:U8,Linear_B:V8,Lisu:G8,Lycian:K8,Lydian:q8,Mahajani:J8,Makasar:Z8,Malayalam:Q8,Mandaic:t9,Manichaean:e9,Marchen:n9,Masaram_Gondi:s9,Medefaidrin:i9,Meetei_Mayek:r9,Mende_Kikakui:o9,Meroitic_Cursive:a9,Meroitic_Hieroglyphs:c9,Miao:l9,Modi:u9,Mongolian:h9,Mro:_9,Multani:d9,Myanmar:f9,Nabataean:g9,Nag_Mundari:D9,Nandinagari:p9,New_Tai_Lue:m9,Newa:b9,Nko:v9,Nushu:C9,Nyiakeng_Puachue_Hmong:S9,Ogham:E9,Ol_Chiki:y9,Old_Hungarian:T9,Old_Italic:F9,Old_North_Arabian:O9,Old_Permic:w9,Old_Persian:B9,Old_Sogdian:A9,Old_South_Arabian:R9,Old_Turkic:x9,Old_Uyghur:M9,Oriya:L9,Osage:I9,Osmanya:P9,Pahawh_Hmong:$9,Palmyrene:k9,Pau_Cin_Hau:N9,Phags_Pa:H9,Phoenician:X9,Psalter_Pahlavi:z9,Rejang:W9,Runic:Y9,Samaritan:j9,Saurashtra:U9,Sharada:V9,Shavian:G9,Siddham:K9,SignWriting:q9,Sinhala:J9,Sogdian:Z9,Sora_Sompeng:Q9,Soyombo:t5,Sundanese:e5,Syloti_Nagri:n5,Syriac:s5,Tagalog:i5,Tagbanwa:r5,Tai_Le:o5,Tai_Tham:a5,Tai_Viet:c5,Takri:l5,Tamil:u5,Tangsa:h5,Tangut:_5,Telugu:d5,Thaana:f5,Thai:g5,Tibetan:D5,Tifinagh:p5,Tirhuta:m5,Toto:b5,Ugaritic:v5,Vai:C5,Vithkuqi:S5,Wancho:E5,Warang_Citi:y5,Yezidi:T5,Yi:F5,Zanabazar_Square:O5},Symbol.toStringTag,{value:"Module"})),B5=[1567,1600,[125184,125259],[125264,125273],[125278,125279]],A5=[[71424,71450],[71453,71467],[71472,71494]],R5=[[82944,83526]],x5=[[1536,1540],[1542,1756],[1758,1791],[1872,1919],[2160,2190],[2192,2193],[2200,2273],[2275,2303],[64336,64450],[64467,64911],[64914,64967],64975,[65008,65023],[65136,65140],[65142,65276],[66272,66299],[69216,69246],[69373,69375],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705]],M5=[[1329,1366],[1369,1418],[1421,1423],[64275,64279]],L5=[[68352,68405],[68409,68415]],I5=[[6912,6988],[6992,7038]],P5=[[42656,42743],[92160,92728]],$5=[[92880,92909],[92912,92917]],k5=[[7104,7155],[7164,7167]],N5=[[2385,2386],[2404,2405],[2432,2435],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],[2492,2500],[2503,2504],[2507,2510],2519,[2524,2525],[2527,2531],[2534,2558],7376,7378,[7381,7382],7384,7393,7402,7405,7410,[7413,7415],43249],H5=[[72704,72712],[72714,72758],[72760,72773],[72784,72812]],X5=[[746,747],[12289,12291],[12296,12305],[12307,12319],[12330,12333],12336,12343,12539,[12549,12591],[12704,12735],[65093,65094],[65377,65381]],z5=[[69632,69709],[69714,69749],69759],W5=[[10240,10495]],Y5=[[6656,6683],[6686,6687],43471],j5=[[5941,5942],[5952,5971]],U5=[[5120,5759],[6320,6389],[72368,72383]],V5=[[66208,66256]],G5=[[66864,66915],66927],K5=[[2534,2543],[4160,4169],[69888,69940],[69942,69959]],q5=[[43520,43574],[43584,43597],[43600,43609],[43612,43615]],J5=[[5024,5109],[5112,5117],[43888,43967]],Z5=[[69552,69579]],Q5=[[0,64],[91,96],[123,169],[171,185],[187,191],215,247,[697,735],[741,745],[748,767],884,894,901,903,1541,1757,2274,3647,[4053,4056],[5867,5869],[8192,8203],[8206,8238],[8240,8292],[8294,8304],[8308,8318],[8320,8334],[8352,8384],[8448,8485],[8487,8489],[8492,8497],[8499,8525],[8527,8543],[8585,8587],[8592,9254],[9280,9290],[9312,10239],[10496,11123],[11126,11157],[11159,11263],[11776,11842],[11844,11869],[12272,12283],12288,12292,12306,12320,12342,[12872,12895],12927,[12977,12991],[13004,13007],[13169,13178],[13184,13279],13311,[19904,19967],[42760,42785],[42888,42890],43867,[43882,43883],[65040,65049],[65072,65092],[65095,65106],[65108,65126],[65128,65131],65279,[65281,65312],[65339,65344],[65371,65376],[65504,65510],[65512,65518],[65529,65533],[65936,65948],[66e3,66044],[118608,118723],[118784,119029],[119040,119078],[119081,119142],[119146,119162],[119171,119172],[119180,119209],[119214,119274],[119488,119507],[119520,119539],[119552,119638],[119666,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120782,120831],[126065,126132],[126209,126269],[126976,127019],[127024,127123],[127136,127150],[127153,127167],[127169,127183],[127185,127221],[127232,127405],[127462,127487],[127489,127490],[127504,127547],[127552,127560],[127584,127589],[127744,128727],[128732,128748],[128752,128764],[128768,128886],[128891,128985],[128992,129003],129008,[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129200,129201],[129280,129619],[129632,129645],[129648,129660],[129664,129672],[129680,129725],[129727,129733],[129742,129755],[129760,129768],[129776,129784],[129792,129938],[129940,129994],[130032,130041],917505,[917536,917631]],tn=[[994,1007],[11392,11507],[11513,11519],[66272,66299]],en=[[73728,74649],[74752,74862],[74864,74868],[74880,75075]],nn=[[65792,65794],[65799,65843],[65847,65855],[67584,67589],67592,[67594,67637],[67639,67640],67644,67647],sn=[[65792,65793],[77712,77810]],rn=[[1024,1327],[7296,7304],7467,7544,7672,[11744,11775],11843,[42560,42655],[65070,65071],[122928,122989],123023],on=[[66560,66639]],an=[[2304,2386],[2389,2431],[7376,7414],[7416,7417],8432,[43056,43065],[43232,43263],[72448,72457]],cn=[[71936,71942],71945,[71948,71955],[71957,71958],[71960,71989],[71991,71992],[71995,72006],[72016,72025]],ln=[[2404,2415],[43056,43065],[71680,71739]],un=[[113664,113770],[113776,113788],[113792,113800],[113808,113817],[113820,113827]],hn=[[77824,78933]],_n=[[66816,66855]],dn=[[69600,69622]],fn=[[4608,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4957,4988],[4992,5017],[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[124896,124902],[124904,124907],[124909,124910],[124912,124926]],gn=[[4256,4293],4295,4301,[4304,4351],[7312,7354],[7357,7359],[11520,11557],11559,11565],Dn=[1156,1159,[11264,11359],11843,42607,[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922]],pn=[[66352,66378]],mn=[[2385,2386],[2404,2405],[3046,3059],7376,[7378,7379],[7410,7412],[7416,7417],8432,[70400,70403],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],[70459,70468],[70471,70472],[70475,70477],70480,70487,[70493,70499],[70502,70508],[70512,70516],[73680,73681],73683],bn=[834,837,[880,883],[885,887],[890,893],895,900,902,[904,906],908,[910,929],[931,993],[1008,1023],[7462,7466],[7517,7521],[7526,7530],[7615,7617],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],8486,43877,[65856,65934],65952,[119296,119365]],vn=[[2385,2386],[2404,2405],[2689,2691],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],[2748,2757],[2759,2761],[2763,2765],2768,[2784,2787],[2790,2801],[2809,2815],[43056,43065]],Cn=[[2404,2405],[73056,73061],[73063,73064],[73066,73102],[73104,73105],[73107,73112],[73120,73129]],Sn=[[2385,2386],[2404,2405],[2561,2563],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2649,2652],2654,[2662,2678],[43056,43065]],En=[[11904,11929],[11931,12019],[12032,12245],[12289,12291],[12293,12305],[12307,12319],[12321,12333],12336,[12343,12351],12539,[12688,12703],[12736,12771],[12832,12871],[12928,12976],[12992,13003],13055,[13144,13168],[13179,13183],[13280,13310],[13312,19903],[19968,40959],[42752,42759],[63744,64109],[64112,64217],[65093,65094],[65377,65381],[94178,94179],[94192,94193],[119648,119665],[127568,127569],[131072,173791],[173824,177977],[177984,178205],[178208,183969],[183984,191456],[194560,195101],[196608,201546],[201552,205743]],yn=[[4352,4607],[12289,12291],[12296,12305],[12307,12319],[12334,12336],12343,12539,[12593,12686],[12800,12830],[12896,12926],[43360,43388],[44032,55203],[55216,55238],[55243,55291],[65093,65094],[65377,65381],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500]],Tn=[1548,1563,1567,1600,1748,[68864,68903],[68912,68921]],Fn=[[5920,5942]],On=[[67808,67826],[67828,67829],[67835,67839]],wn=[[1425,1479],[1488,1514],[1519,1524],[64285,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335]],Bn=[[12289,12291],[12296,12305],[12307,12319],[12336,12341],12343,[12348,12349],[12353,12438],[12441,12448],[12539,12540],[65093,65094],[65377,65381],65392,[65438,65439],[110593,110879],110898,[110928,110930],127488],An=[[67648,67669],[67671,67679]],Rn=[[768,833],[835,836],[838,866],[2387,2388],[6832,6862],[7618,7671],7673,[7675,7679],[8204,8205],[8400,8431],[65024,65039],[65056,65069],66045,[118528,118573],[118576,118598],[119143,119145],[119163,119170],[119173,119179],[119210,119213],[917760,917999]],xn=[[68448,68466],[68472,68479]],Mn=[[68416,68437],[68440,68447]],Ln=[[43392,43469],[43471,43481],[43486,43487]],In=[[2406,2415],[43056,43065],[69760,69826],69837],Pn=[[2385,2386],[2404,2405],[3200,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],[3260,3268],[3270,3272],[3274,3277],[3285,3286],[3293,3294],[3296,3299],[3302,3311],[3313,3315],7376,7378,7386,7410,7412,[43056,43061]],$n=[[12289,12291],[12296,12305],[12307,12319],[12336,12341],12343,[12348,12349],[12441,12444],[12448,12543],[12784,12799],[13008,13054],[13056,13143],[65093,65094],[65377,65439],[110576,110579],[110581,110587],[110589,110590],110592,[110880,110882],110933,[110948,110951]],kn=[[73472,73488],[73490,73530],[73534,73561]],Nn=[[43264,43311]],Hn=[[68096,68099],[68101,68102],[68108,68115],[68117,68119],[68121,68149],[68152,68154],[68159,68168],[68176,68184]],Xn=[94180,[101120,101589]],zn=[[6016,6109],[6112,6121],[6128,6137],[6624,6655]],Wn=[[2790,2799],[43056,43065],[70144,70161],[70163,70209]],Yn=[[2404,2405],[43056,43065],[70320,70378],[70384,70393]],jn=[[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3792,3801],[3804,3807]],Un=[[65,90],[97,122],170,186,[192,214],[216,246],[248,696],[736,740],[867,879],[1157,1158],[2385,2386],4347,[7424,7461],[7468,7516],[7522,7525],[7531,7543],[7545,7614],[7680,7935],8239,8305,8319,[8336,8348],8432,[8490,8491],8498,8526,[8544,8584],[11360,11391],[42752,42759],[42786,42887],[42891,42954],[42960,42961],42963,[42965,42969],[42994,43007],43310,[43824,43866],[43868,43876],[43878,43881],[64256,64262],[65313,65338],[65345,65370],[67456,67461],[67463,67504],[67506,67514],[122624,122654],[122661,122666]],Vn=[[7168,7223],[7227,7241],[7245,7247]],Gn=[2405,[6400,6430],[6432,6443],[6448,6459],6464,[6468,6479]],Kn=[[65799,65843],[67072,67382],[67392,67413],[67424,67431]],qn=[[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65792,65794],[65799,65843],[65847,65855]],Jn=[[42192,42239],73648],Zn=[[66176,66204]],Qn=[[67872,67897],67903],ts=[[2404,2415],[43056,43065],[69968,70006]],es=[[73440,73464]],ns=[[2385,2386],[2404,2405],[3328,3340],[3342,3344],[3346,3396],[3398,3400],[3402,3407],[3412,3427],[3430,3455],7386,[43056,43058]],ss=[1600,[2112,2139],2142],is=[1600,[68288,68326],[68331,68342]],rs=[[72816,72847],[72850,72871],[72873,72886]],os=[[2404,2405],[72960,72966],[72968,72969],[72971,73014],73018,[73020,73021],[73023,73031],[73040,73049]],as=[[93760,93850]],cs=[[43744,43766],[43968,44013],[44016,44025]],ls=[[124928,125124],[125127,125142]],us=[[68e3,68023],[68028,68047],[68050,68095]],hs=[[67968,67999]],_s=[[93952,94026],[94031,94087],[94095,94111]],ds=[[43056,43065],[71168,71236],[71248,71257]],fs=[[6144,6169],[6176,6264],[6272,6314],8239,[71264,71276]],gs=[[92736,92766],[92768,92777],[92782,92783]],Ds=[[2662,2671],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70313]],ps=[[4096,4255],43310,[43488,43518],[43616,43647]],ms=[[67712,67742],[67751,67759]],bs=[[124112,124153]],vs=[[2404,2405],[3302,3311],7401,7410,7418,[43056,43061],[72096,72103],[72106,72151],[72154,72164]],Cs=[[6528,6571],[6576,6601],[6608,6618],[6622,6623]],Ss=[[70656,70747],[70749,70753]],Es=[1548,1563,1567,[1984,2042],[2045,2047],[64830,64831]],ys=[94177,[110960,111355]],Ts=[[123136,123180],[123184,123197],[123200,123209],[123214,123215]],Fs=[[5760,5788]],Os=[[7248,7295]],ws=[[68736,68786],[68800,68850],[68858,68863]],Bs=[[66304,66339],[66349,66351]],As=[[68224,68255]],Rs=[1155,[66384,66426]],xs=[[66464,66499],[66504,66517]],Ms=[[69376,69415]],Ls=[[68192,68223]],Is=[[68608,68680]],Ps=[1600,68338,[69488,69513]],$s=[[2385,2386],[2404,2405],[2817,2819],[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],[2876,2884],[2887,2888],[2891,2893],[2901,2903],[2908,2909],[2911,2915],[2918,2935],7386,7410],ks=[[66736,66771],[66776,66811]],Ns=[[66688,66717],[66720,66729]],Hs=[[92928,92997],[93008,93017],[93019,93025],[93027,93047],[93053,93071]],Xs=[[67680,67711]],zs=[[72384,72440]],Ws=[[6146,6147],6149,[43072,43127]],Ys=[[67840,67867],67871],js=[1600,[68480,68497],[68505,68508],[68521,68527]],Us=[[43312,43347],43359],Vs=[[5792,5866],[5870,5880]],Gs=[[2048,2093],[2096,2110]],Ks=[[43136,43205],[43214,43225]],qs=[2385,7383,7385,[7388,7389],7392,[70016,70111]],Js=[[66640,66687]],Zs=[[71040,71093],[71096,71133]],Qs=[[120832,121483],[121499,121503],[121505,121519]],ti=[[2404,2405],[3457,3459],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3530,[3535,3540],3542,[3544,3551],[3558,3567],[3570,3572],[70113,70132]],ei=[1600,[69424,69465]],ni=[[69840,69864],[69872,69881]],si=[[72272,72354]],ii=[[7040,7103],[7360,7367]],ri=[[2404,2405],[2534,2543],[43008,43052]],oi=[1548,[1563,1564],1567,1600,[1611,1621],1648,[1792,1805],[1807,1866],[1869,1871],[2144,2154],7672,7674],ai=[[5888,5909],5919,[5941,5942]],ci=[[5941,5942],[5984,5996],[5998,6e3],[6002,6003]],li=[[4160,4169],[6480,6509],[6512,6516]],ui=[[6688,6750],[6752,6780],[6783,6793],[6800,6809],[6816,6829]],hi=[[43648,43714],[43739,43743]],_i=[[2404,2405],[43056,43065],[71296,71353],[71360,71369]],di=[[2385,2386],[2404,2405],[2946,2947],[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],[3006,3010],[3014,3016],[3018,3021],3024,3031,[3046,3066],7386,43251,70401,70403,[70459,70460],[73664,73713],73727],fi=[[92784,92862],[92864,92873]],gi=[94176,[94208,100343],[100352,101119],[101632,101640]],Di=[[2385,2386],[2404,2405],[3072,3084],[3086,3088],[3090,3112],[3114,3129],[3132,3140],[3142,3144],[3146,3149],[3157,3158],[3160,3162],3165,[3168,3171],[3174,3183],[3191,3199],7386,7410],pi=[1548,[1563,1564],1567,[1632,1641],[1920,1969],65010,65021],mi=[[3585,3642],[3648,3675]],bi=[[3840,3911],[3913,3948],[3953,3991],[3993,4028],[4030,4044],[4046,4052],[4057,4058]],vi=[[11568,11623],[11631,11632],11647],Ci=[[2385,2386],[2404,2405],7410,[43056,43065],[70784,70855],[70864,70873]],Si=[[123536,123566]],Ei=[[66432,66461],66463],yi=[[42240,42539]],Ti=[[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004]],Fi=[[123584,123641],123647],Oi=[[71840,71922],71935],wi=[1548,1563,1567,[1632,1641],[69248,69289],[69291,69293],[69296,69297]],Bi=[[12289,12290],[12296,12305],[12308,12315],12539,[40960,42124],[42128,42182],[65377,65381]],Ai=[[72192,72263]],Ri=Object.freeze(Object.defineProperty({__proto__:null,Adlam:B5,Ahom:A5,Anatolian_Hieroglyphs:R5,Arabic:x5,Armenian:M5,Avestan:L5,Balinese:I5,Bamum:P5,Bassa_Vah:$5,Batak:k5,Bengali:N5,Bhaiksuki:H5,Bopomofo:X5,Brahmi:z5,Braille:W5,Buginese:Y5,Buhid:j5,Canadian_Aboriginal:U5,Carian:V5,Caucasian_Albanian:G5,Chakma:K5,Cham:q5,Cherokee:J5,Chorasmian:Z5,Common:Q5,Coptic:tn,Cuneiform:en,Cypriot:nn,Cypro_Minoan:sn,Cyrillic:rn,Deseret:on,Devanagari:an,Dives_Akuru:cn,Dogra:ln,Duployan:un,Egyptian_Hieroglyphs:hn,Elbasan:_n,Elymaic:dn,Ethiopic:fn,Georgian:gn,Glagolitic:Dn,Gothic:pn,Grantha:mn,Greek:bn,Gujarati:vn,Gunjala_Gondi:Cn,Gurmukhi:Sn,Han:En,Hangul:yn,Hanifi_Rohingya:Tn,Hanunoo:Fn,Hatran:On,Hebrew:wn,Hiragana:Bn,Imperial_Aramaic:An,Inherited:Rn,Inscriptional_Pahlavi:xn,Inscriptional_Parthian:Mn,Javanese:Ln,Kaithi:In,Kannada:Pn,Katakana:$n,Kawi:kn,Kayah_Li:Nn,Kharoshthi:Hn,Khitan_Small_Script:Xn,Khmer:zn,Khojki:Wn,Khudawadi:Yn,Lao:jn,Latin:Un,Lepcha:Vn,Limbu:Gn,Linear_A:Kn,Linear_B:qn,Lisu:Jn,Lycian:Zn,Lydian:Qn,Mahajani:ts,Makasar:es,Malayalam:ns,Mandaic:ss,Manichaean:is,Marchen:rs,Masaram_Gondi:os,Medefaidrin:as,Meetei_Mayek:cs,Mende_Kikakui:ls,Meroitic_Cursive:us,Meroitic_Hieroglyphs:hs,Miao:_s,Modi:ds,Mongolian:fs,Mro:gs,Multani:Ds,Myanmar:ps,Nabataean:ms,Nag_Mundari:bs,Nandinagari:vs,New_Tai_Lue:Cs,Newa:Ss,Nko:Es,Nushu:ys,Nyiakeng_Puachue_Hmong:Ts,Ogham:Fs,Ol_Chiki:Os,Old_Hungarian:ws,Old_Italic:Bs,Old_North_Arabian:As,Old_Permic:Rs,Old_Persian:xs,Old_Sogdian:Ms,Old_South_Arabian:Ls,Old_Turkic:Is,Old_Uyghur:Ps,Oriya:$s,Osage:ks,Osmanya:Ns,Pahawh_Hmong:Hs,Palmyrene:Xs,Pau_Cin_Hau:zs,Phags_Pa:Ws,Phoenician:Ys,Psalter_Pahlavi:js,Rejang:Us,Runic:Vs,Samaritan:Gs,Saurashtra:Ks,Sharada:qs,Shavian:Js,Siddham:Zs,SignWriting:Qs,Sinhala:ti,Sogdian:ei,Sora_Sompeng:ni,Soyombo:si,Sundanese:ii,Syloti_Nagri:ri,Syriac:oi,Tagalog:ai,Tagbanwa:ci,Tai_Le:li,Tai_Tham:ui,Tai_Viet:hi,Takri:_i,Tamil:di,Tangsa:fi,Tangut:gi,Telugu:Di,Thaana:pi,Thai:mi,Tibetan:bi,Tifinagh:vi,Tirhuta:Ci,Toto:Si,Ugaritic:Ei,Vai:yi,Vithkuqi:Ti,Wancho:Fi,Warang_Citi:Oi,Yezidi:wi,Yi:Bi,Zanabazar_Square:Ai},Symbol.toStringTag,{value:"Module"})),xi=[],Mi=[],Li=[],Ii=[],Pi=Object.freeze(Object.defineProperty({__proto__:null,C:xi,F:Mi,S:Li,T:Ii},Symbol.toStringTag,{value:"Module"})),$i=[[125184,125279]],ki=[[65792,65855]],Ni=[[71424,71503]],Hi=[[128768,128895]],Xi=[[64256,64335]],zi=[[82944,83583]],Wi=[[119296,119375]],Yi=[[65856,65935]],ji=[[65936,65999]],Ui=[[1536,1791]],Vi=[[2208,2303]],Gi=[[126464,126719]],Ki=[[64336,65023]],qi=[[65136,65279]],Ji=[[1872,1919]],Zi=[[1328,1423]],Qi=[[8592,8703]],tr=[[68352,68415]],er=[[6912,7039]],nr=[[42656,42751]],sr=[[92160,92735]],ir=[[0,127]],rr=[[92880,92927]],or=[[7104,7167]],ar=[[2432,2559]],cr=[[72704,72815]],lr=[[9600,9631]],ur=[[12544,12591]],hr=[[12704,12735]],_r=[[9472,9599]],dr=[[69632,69759]],fr=[[10240,10495]],gr=[[6656,6687]],Dr=[[5952,5983]],pr=[[118784,119039]],mr=[[13056,13311]],br=[[65072,65103]],vr=[[63744,64255]],Cr=[[194560,195103]],Sr=[[11904,12031]],Er=[[12736,12783]],yr=[[12288,12351]],Tr=[[19968,40959]],Fr=[[13312,19903]],Or=[[131072,173791]],wr=[[173824,177983]],Br=[[177984,178207]],Ar=[[178208,183983]],Rr=[[183984,191471]],xr=[[66208,66271]],Mr=[[66864,66927]],Lr=[[69888,69967]],Ir=[[43520,43615]],Pr=[[5024,5119]],$r=[[43888,43967]],kr=[[129536,129647]],Nr=[[768,879]],Hr=[[6832,6911]],Xr=[[8400,8447]],zr=[[7616,7679]],Wr=[[65056,65071]],Yr=[[43056,43071]],jr=[[9216,9279]],Ur=[[11392,11519]],Vr=[[66272,66303]],Gr=[[119648,119679]],Kr=[[73728,74751]],qr=[[74752,74879]],Jr=[[8352,8399]],Zr=[[67584,67647]],Qr=[[1024,1279]],to=[[11744,11775]],eo=[[42560,42655]],no=[[7296,7311]],so=[[1280,1327]],io=[[66560,66639]],ro=[[2304,2431]],oo=[[43232,43263]],ao=[[9984,10175]],co=[[71680,71759]],lo=[[127024,127135]],uo=[[113664,113823]],ho=[[74880,75087]],_o=[[77824,78895]],fo=[[66816,66863]],go=[[128512,128591]],Do=[[127232,127487]],po=[[9312,9471]],mo=[[12800,13055]],bo=[[127488,127743]],vo=[[4608,4991]],Co=[[11648,11743]],So=[[43776,43823]],Eo=[[4992,5023]],yo=[[8192,8303]],To=[[9632,9727]],Fo=[[128896,129023]],Oo=[[4256,4351]],wo=[[7312,7359]],Bo=[[11520,11567]],Ao=[[11264,11359]],Ro=[[122880,122927]],xo=[[66352,66383]],Mo=[[70400,70527]],Lo=[[880,1023]],Io=[[7936,8191]],Po=[[2688,2815]],$o=[[73056,73135]],ko=[[2560,2687]],No=[[65280,65519]],Ho=[[12592,12687]],Xo=[[4352,4607]],zo=[[43360,43391]],Wo=[[55216,55295]],Yo=[[44032,55215]],jo=[[68864,68927]],Uo=[[5920,5951]],Vo=[[67808,67839]],Go=[[1424,1535]],Ko=[[56192,56319]],qo=[[55296,56191]],Jo=[[12352,12447]],Zo=[[592,687]],Qo=[[12272,12287]],ta=[[94176,94207]],ea=[[67648,67679]],na=[[126064,126143]],sa=[[68448,68479]],ia=[[68416,68447]],ra=[[43392,43487]],oa=[[69760,69839]],aa=[[110848,110895]],ca=[[110592,110847]],la=[[12688,12703]],ua=[[12032,12255]],ha=[[3200,3327]],_a=[[12448,12543]],da=[[12784,12799]],fa=[[43264,43311]],ga=[[68096,68191]],Da=[[6016,6143]],pa=[[6624,6655]],ma=[[70144,70223]],ba=[[70320,70399]],va=[[3712,3839]],Ca=[[128,255]],Sa=[[256,383]],Ea=[[7680,7935]],ya=[[384,591]],Ta=[[11360,11391]],Fa=[[42784,43007]],Oa=[[43824,43887]],wa=[[7168,7247]],Ba=[[8448,8527]],Aa=[[6400,6479]],Ra=[[67072,67455]],xa=[[65664,65791]],Ma=[[65536,65663]],La=[[42192,42239]],Ia=[[56320,57343]],Pa=[[66176,66207]],$a=[[67872,67903]],ka=[[69968,70015]],Na=[[126976,127023]],Ha=[[73440,73471]],Xa=[[3328,3455]],za=[[2112,2143]],Wa=[[68288,68351]],Ya=[[72816,72895]],ja=[[72960,73055]],Ua=[[119808,120831]],Va=[[8704,8959]],Ga=[[119520,119551]],Ka=[[93760,93855]],qa=[[43968,44031]],Ja=[[43744,43775]],Za=[[124928,125151]],Qa=[[68e3,68095]],tc=[[67968,67999]],ec=[[93952,94111]],nc=[[10176,10223]],sc=[[10624,10751]],ic=[[9728,9983]],rc=[[11008,11263]],oc=[[127744,128511]],ac=[[8960,9215]],cc=[[71168,71263]],lc=[[42752,42783]],uc=[[6144,6319]],hc=[[71264,71295]],_c=[[92736,92783]],dc=[[70272,70319]],fc=[[119040,119295]],gc=[[4096,4255]],Dc=[[43616,43647]],pc=[[43488,43519]],mc=[[1984,2047]],bc=[[67712,67759]],vc=[[6528,6623]],Cc=[[70656,70783]],Sc=[[8528,8591]],Ec=[[110960,111359]],yc=[[5760,5791]],Tc=[[7248,7295]],Fc=[[68736,68863]],Oc=[[66304,66351]],wc=[[68224,68255]],Bc=[[66384,66431]],Ac=[[66464,66527]],Rc=[[69376,69423]],xc=[[68192,68223]],Mc=[[68608,68687]],Lc=[[9280,9311]],Ic=[[2816,2943]],Pc=[[128592,128639]],$c=[[66736,66815]],kc=[[66688,66735]],Nc=[[92928,93071]],Hc=[[67680,67711]],Xc=[[72384,72447]],zc=[[43072,43135]],Wc=[[66e3,66047]],Yc=[[67840,67871]],jc=[[7424,7551]],Uc=[[7552,7615]],Vc=[[127136,127231]],Gc=[[57344,63743]],Kc=[[68480,68527]],qc=[[43312,43359]],Jc=[[69216,69247]],Zc=[[5792,5887]],Qc=[[2048,2111]],tl=[[43136,43231]],el=[[70016,70111]],nl=[[66640,66687]],sl=[[113824,113839]],il=[[71040,71167]],rl=[[3456,3583]],ol=[[70112,70143]],al=[[65104,65135]],cl=[[69424,69487]],ll=[[69840,69887]],ul=[[72272,72367]],hl=[[688,767]],_l=[[65520,65535]],dl=[[7040,7103]],fl=[[7360,7375]],gl=[[8304,8351]],Dl=[[10224,10239]],pl=[[10496,10623]],ml=[[129024,129279]],bl=[[10752,11007]],vl=[[11776,11903]],Cl=[[129280,129535]],Sl=[[983040,1048575]],El=[[1048576,1114111]],yl=[[120832,121519]],Tl=[[43008,43055]],Fl=[[1792,1871]],Ol=[[2144,2159]],wl=[[5888,5919]],Bl=[[5984,6015]],Al=[[917504,917631]],Rl=[[6480,6527]],xl=[[6688,6831]],Ml=[[43648,43743]],Ll=[[119552,119647]],Il=[[71296,71375]],Pl=[[2944,3071]],$l=[[94208,100351]],kl=[[100352,101119]],Nl=[[3072,3199]],Hl=[[1920,1983]],Xl=[[3584,3711]],zl=[[3840,4095]],Wl=[[11568,11647]],Yl=[[70784,70879]],jl=[[128640,128767]],Ul=[[66432,66463]],Vl=[[5120,5759]],Gl=[[6320,6399]],Kl=[[42240,42559]],ql=[[65024,65039]],Jl=[[917760,917999]],Zl=[[7376,7423]],Ql=[[65040,65055]],tu=[[71840,71935]],eu=[[42128,42191]],nu=[[40960,42127]],su=[[19904,19967]],iu=[[72192,72271]],ru=[[2160,2207],[66928,67007],[67456,67519],[69248,69375],[69488,69631],[71936,72031],[72096,72191],[72368,72383],[72448,72543],[73472,73567],[73648,73727],[77712,77823],[78896,78943],[92784,92879],[101120,101759],[110576,110591],[110896,110959],[118528,118735],[119488,119519],[122624,122879],[122928,123023],[123136,123215],[123536,123647],[124112,124159],[124896,124927],[126208,126287],[129648,130047],[196608,205743]],ou=Object.freeze(Object.defineProperty({__proto__:null,Adlam:$i,Aegean_Numbers:ki,Ahom:Ni,Alchemical_Symbols:Hi,Alphabetic_Presentation_Forms:Xi,Anatolian_Hieroglyphs:zi,Ancient_Greek_Musical_Notation:Wi,Ancient_Greek_Numbers:Yi,Ancient_Symbols:ji,Arabic:Ui,Arabic_Extended_A:Vi,Arabic_Mathematical_Alphabetic_Symbols:Gi,Arabic_Presentation_Forms_A:Ki,Arabic_Presentation_Forms_B:qi,Arabic_Supplement:Ji,Armenian:Zi,Arrows:Qi,Avestan:tr,Balinese:er,Bamum:nr,Bamum_Supplement:sr,Basic_Latin:ir,Bassa_Vah:rr,Batak:or,Bengali:ar,Bhaiksuki:cr,Block_Elements:lr,Bopomofo:ur,Bopomofo_Extended:hr,Box_Drawing:_r,Brahmi:dr,Braille_Patterns:fr,Buginese:gr,Buhid:Dr,Byzantine_Musical_Symbols:pr,CJK_Compatibility:mr,CJK_Compatibility_Forms:br,CJK_Compatibility_Ideographs:vr,CJK_Compatibility_Ideographs_Supplement:Cr,CJK_Radicals_Supplement:Sr,CJK_Strokes:Er,CJK_Symbols_And_Punctuation:yr,CJK_Unified_Ideographs:Tr,CJK_Unified_Ideographs_Extension_A:Fr,CJK_Unified_Ideographs_Extension_B:Or,CJK_Unified_Ideographs_Extension_C:wr,CJK_Unified_Ideographs_Extension_D:Br,CJK_Unified_Ideographs_Extension_E:Ar,CJK_Unified_Ideographs_Extension_F:Rr,Carian:xr,Caucasian_Albanian:Mr,Chakma:Lr,Cham:Ir,Cherokee:Pr,Cherokee_Supplement:$r,Chess_Symbols:kr,Combining_Diacritical_Marks:Nr,Combining_Diacritical_Marks_Extended:Hr,Combining_Diacritical_Marks_For_Symbols:Xr,Combining_Diacritical_Marks_Supplement:zr,Combining_Half_Marks:Wr,Common_Indic_Number_Forms:Yr,Control_Pictures:jr,Coptic:Ur,Coptic_Epact_Numbers:Vr,Counting_Rod_Numerals:Gr,Cuneiform:Kr,Cuneiform_Numbers_And_Punctuation:qr,Currency_Symbols:Jr,Cypriot_Syllabary:Zr,Cyrillic:Qr,Cyrillic_Extended_A:to,Cyrillic_Extended_B:eo,Cyrillic_Extended_C:no,Cyrillic_Supplement:so,Deseret:io,Devanagari:ro,Devanagari_Extended:oo,Dingbats:ao,Dogra:co,Domino_Tiles:lo,Duployan:uo,Early_Dynastic_Cuneiform:ho,Egyptian_Hieroglyphs:_o,Elbasan:fo,Emoticons:go,Enclosed_Alphanumeric_Supplement:Do,Enclosed_Alphanumerics:po,Enclosed_CJK_Letters_And_Months:mo,Enclosed_Ideographic_Supplement:bo,Ethiopic:vo,Ethiopic_Extended:Co,Ethiopic_Extended_A:So,Ethiopic_Supplement:Eo,General_Punctuation:yo,Geometric_Shapes:To,Geometric_Shapes_Extended:Fo,Georgian:Oo,Georgian_Extended:wo,Georgian_Supplement:Bo,Glagolitic:Ao,Glagolitic_Supplement:Ro,Gothic:xo,Grantha:Mo,Greek_And_Coptic:Lo,Greek_Extended:Io,Gujarati:Po,Gunjala_Gondi:$o,Gurmukhi:ko,Halfwidth_And_Fullwidth_Forms:No,Hangul_Compatibility_Jamo:Ho,Hangul_Jamo:Xo,Hangul_Jamo_Extended_A:zo,Hangul_Jamo_Extended_B:Wo,Hangul_Syllables:Yo,Hanifi_Rohingya:jo,Hanunoo:Uo,Hatran:Vo,Hebrew:Go,High_Private_Use_Surrogates:Ko,High_Surrogates:qo,Hiragana:Jo,IPA_Extensions:Zo,Ideographic_Description_Characters:Qo,Ideographic_Symbols_And_Punctuation:ta,Imperial_Aramaic:ea,Indic_Siyaq_Numbers:na,Inscriptional_Pahlavi:sa,Inscriptional_Parthian:ia,Javanese:ra,Kaithi:oa,Kana_Extended_A:aa,Kana_Supplement:ca,Kanbun:la,Kangxi_Radicals:ua,Kannada:ha,Katakana:_a,Katakana_Phonetic_Extensions:da,Kayah_Li:fa,Kharoshthi:ga,Khmer:Da,Khmer_Symbols:pa,Khojki:ma,Khudawadi:ba,Lao:va,Latin_1_Supplement:Ca,Latin_Extended_A:Sa,Latin_Extended_Additional:Ea,Latin_Extended_B:ya,Latin_Extended_C:Ta,Latin_Extended_D:Fa,Latin_Extended_E:Oa,Lepcha:wa,Letterlike_Symbols:Ba,Limbu:Aa,Linear_A:Ra,Linear_B_Ideograms:xa,Linear_B_Syllabary:Ma,Lisu:La,Low_Surrogates:Ia,Lycian:Pa,Lydian:$a,Mahajani:ka,Mahjong_Tiles:Na,Makasar:Ha,Malayalam:Xa,Mandaic:za,Manichaean:Wa,Marchen:Ya,Masaram_Gondi:ja,Mathematical_Alphanumeric_Symbols:Ua,Mathematical_Operators:Va,Mayan_Numerals:Ga,Medefaidrin:Ka,Meetei_Mayek:qa,Meetei_Mayek_Extensions:Ja,Mende_Kikakui:Za,Meroitic_Cursive:Qa,Meroitic_Hieroglyphs:tc,Miao:ec,Miscellaneous_Mathematical_Symbols_A:nc,Miscellaneous_Mathematical_Symbols_B:sc,Miscellaneous_Symbols:ic,Miscellaneous_Symbols_And_Arrows:rc,Miscellaneous_Symbols_And_Pictographs:oc,Miscellaneous_Technical:ac,Modi:cc,Modifier_Tone_Letters:lc,Mongolian:uc,Mongolian_Supplement:hc,Mro:_c,Multani:dc,Musical_Symbols:fc,Myanmar:gc,Myanmar_Extended_A:Dc,Myanmar_Extended_B:pc,NKo:mc,Nabataean:bc,New_Tai_Lue:vc,Newa:Cc,Number_Forms:Sc,Nushu:Ec,Ogham:yc,Ol_Chiki:Tc,Old_Hungarian:Fc,Old_Italic:Oc,Old_North_Arabian:wc,Old_Permic:Bc,Old_Persian:Ac,Old_Sogdian:Rc,Old_South_Arabian:xc,Old_Turkic:Mc,Optical_Character_Recognition:Lc,Oriya:Ic,Ornamental_Dingbats:Pc,Osage:$c,Osmanya:kc,Pahawh_Hmong:Nc,Palmyrene:Hc,Pau_Cin_Hau:Xc,Phags_Pa:zc,Phaistos_Disc:Wc,Phoenician:Yc,Phonetic_Extensions:jc,Phonetic_Extensions_Supplement:Uc,Playing_Cards:Vc,Private_Use_Area:Gc,Psalter_Pahlavi:Kc,Rejang:qc,Rumi_Numeral_Symbols:Jc,Runic:Zc,Samaritan:Qc,Saurashtra:tl,Sharada:el,Shavian:nl,Shorthand_Format_Controls:sl,Siddham:il,Sinhala:rl,Sinhala_Archaic_Numbers:ol,Small_Form_Variants:al,Sogdian:cl,Sora_Sompeng:ll,Soyombo:ul,Spacing_Modifier_Letters:hl,Specials:_l,Sundanese:dl,Sundanese_Supplement:fl,Superscripts_And_Subscripts:gl,Supplemental_Arrows_A:Dl,Supplemental_Arrows_B:pl,Supplemental_Arrows_C:ml,Supplemental_Mathematical_Operators:bl,Supplemental_Punctuation:vl,Supplemental_Symbols_And_Pictographs:Cl,Supplementary_Private_Use_Area_A:Sl,Supplementary_Private_Use_Area_B:El,Sutton_SignWriting:yl,Syloti_Nagri:Tl,Syriac:Fl,Syriac_Supplement:Ol,Tagalog:wl,Tagbanwa:Bl,Tags:Al,Tai_Le:Rl,Tai_Tham:xl,Tai_Viet:Ml,Tai_Xuan_Jing_Symbols:Ll,Takri:Il,Tamil:Pl,Tangut:$l,Tangut_Components:kl,Telugu:Nl,Thaana:Hl,Thai:Xl,Tibetan:zl,Tifinagh:Wl,Tirhuta:Yl,Transport_And_Map_Symbols:jl,Ugaritic:Ul,Unified_Canadian_Aboriginal_Syllabics:Vl,Unified_Canadian_Aboriginal_Syllabics_Extended:Gl,Vai:Kl,Variation_Selectors:ql,Variation_Selectors_Supplement:Jl,Vedic_Extensions:Zl,Vertical_Forms:Ql,Warang_Citi:tu,Yi_Radicals:eu,Yi_Syllables:nu,Yijing_Hexagram_Symbols:su,Zanabazar_Square:iu,undefined:ru},Symbol.toStringTag,{value:"Module"})),au=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),cu=[41,93,125,3899,3901,5788,8262,8318,8334,8969,8971,9002,10089,10091,10093,10095,10097,10099,10101,10182,10215,10217,10219,10221,10223,10628,10630,10632,10634,10636,10638,10640,10642,10644,10646,10648,10713,10715,10749,11811,11813,11815,11817,11862,11864,11866,11868,12297,12299,12301,12303,12305,12309,12311,12313,12315,65114,65116,65118,65289,65341,65373,65376,65379],lu=[[0,39],[42,90],92,[94,122],124,[126,3897],[3902,5786],[5789,8260],[8263,8316],[8319,8332],[8335,8967],[8972,9e3],[9003,10087],[10102,10180],[10183,10213],[10224,10626],[10649,10711],[10716,10747],[10750,11809],[11818,11860],[11869,12295],[12306,12307],[12316,65112],[65119,65287],[65290,65338],65340,[65342,65370],65372,65374,65377,[65380,1114111]],uu=[40,91,123,3898,3900,5787,8261,8317,8333,8968,8970,9001,10088,10090,10092,10094,10096,10098,10100,10181,10214,10216,10218,10220,10222,10627,10629,10631,10633,10635,10637,10639,10641,10643,10645,10647,10712,10714,10748,11810,11812,11814,11816,11861,11863,11865,11867,12296,12298,12300,12302,12304,12308,12310,12312,12314,65113,65115,65117,65288,65339,65371,65375,65378],hu=Object.freeze(Object.defineProperty({__proto__:null,Close:cu,None:lu,Open:uu},Symbol.toStringTag,{value:"Module"})),_u=[35,38,42,[60,62],[64,90],[94,122],126,166,169,172,[174,175],181,[192,214],[216,246],[248,710],[718,719],[721,727],732,734,[736,767],[880,887],[890,893],895,[900,906],908,[910,929],[931,1154],[1162,1327],[1329,1366],[1369,1416],[1421,1422],1472,1475,[1523,1524],[1536,1544],[1550,1551],[1568,1610],[1645,1647],[1649,1747],1749,[1757,1758],[1765,1766],1769,[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],1969,[1994,2026],[2036,2039],2042,[2048,2069],2074,2084,2088,[2096,2110],[2112,2136],2142,[2144,2154],[2160,2190],[2192,2193],[2208,2249],2274,[2308,2361],2365,2384,[2392,2401],[2416,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],[2548,2552],2554,[2556,2557],[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],2678,[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2800,2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],[2928,2935],2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3056,3064],3066,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],[3192,3200],[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,[3406,3407],[3412,3414],[3416,3425],[3440,3448],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3572,3663,3840,3845,3859,[3861,3863],[3866,3871],[3882,3891],3894,3896,[3904,3911],[3913,3948],[3976,3980],[4032,4037],[4039,4044],[4046,4047],[4052,4056],[4172,4175],[4256,4293],4295,4301,[4304,4351],[4608,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],4960,[4962,4988],[4992,5017],[5024,5109],[5112,5117],[5121,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],6105,[6128,6137],[6144,6145],6151,6154,[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],6464,[6624,6678],[6686,6687],[6917,6963],[6981,6988],7004,[7009,7018],[7028,7036],[7043,7072],[7086,7087],[7098,7141],[7164,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7367],7379,[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8188],8190,8215,[8226,8227],8248,[8254,8259],[8266,8277],8284,[8289,8292],[8304,8305],[8309,8316],8320,[8325,8332],[8336,8348],[8448,8450],8452,[8454,8456],[8458,8466],[8468,8469],[8471,8480],[8483,8490],[8492,8531],[8534,8538],[8540,8541],8543,[8556,8559],[8570,8584],[8586,8587],[8602,8657],8659,[8661,8703],8705,[8708,8710],[8713,8714],[8716,8718],8720,8724,[8726,8729],[8731,8732],[8737,8738],8740,8742,8749,[8751,8755],[8760,8763],[8766,8775],[8777,8779],[8781,8785],[8787,8799],[8802,8803],[8808,8809],[8812,8813],[8816,8833],[8836,8837],[8840,8852],[8854,8856],[8858,8868],[8870,8894],[8896,8942],[8944,8967],[8972,8977],[8979,8985],[8988,9e3],[9003,9199],[9204,9254],[9280,9290],9471,[9548,9551],[9589,9599],[9616,9617],[9622,9631],9634,[9642,9649],[9652,9653],[9656,9659],[9662,9663],[9666,9669],[9673,9674],[9676,9677],[9682,9697],[9702,9710],[9712,9727],9732,[9735,9736],[9738,9741],[9744,9747],9753,[9760,9784],[9788,9791],9793,[9795,9823],9826,9830,9835,9838,[9840,9854],[9856,9885],[9888,9916],9934,9954,[9956,9959],[9989,9991],[9998,10070],[10072,10074],10081,[10085,10087],[10132,10180],[10183,10213],[10224,10626],[10649,10711],[10716,10747],[10750,11092],[11098,11123],[11126,11157],[11159,11502],[11506,11507],11517,[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],11798,[11802,11803],[11806,11807],11823,11826,[11829,11833],11839,11851,11853,[11856,11858],[19904,19967],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],42611,[42622,42653],[42656,42735],42738,[42752,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43048,43051],[43056,43063],43065,[43072,43123],[43138,43187],[43250,43259],[43261,43262],[43274,43301],[43312,43334],43359,[43396,43442],[43457,43462],[43466,43469],43471,[43486,43487],[43520,43560],[43584,43586],[43588,43595],43612,[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43883],[43888,44002],[64256,64262],[64275,64279],64297,[64336,64450],[64467,64829],[64832,64911],[64914,64967],64975,[65008,65019],[65021,65023],[65136,65140],[65142,65276],[65512,65518],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65799,65843],[65847,65934],[65936,65948],65952,[66e3,66044],[66176,66204],[66208,66256],[66273,66299],[66304,66339],[66349,66378],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66927,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67672,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67872,67897],67903,[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],68184,[68192,68255],[68288,68324],[68331,68335],[68352,68405],[68416,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68899],[69216,69246],[69248,69289],[69296,69297],[69376,69415],[69424,69445],[69457,69465],[69488,69505],[69510,69513],[69552,69579],[69600,69622],[69635,69687],[69705,69709],[69714,69733],[69745,69746],69749,[69763,69807],[69819,69821],69837,[69840,69864],[69891,69926],69956,69959,[69968,70002],70004,70006,[70019,70066],[70081,70084],70087,70093,70106,70108,[70113,70132],[70144,70161],[70163,70187],70202,70205,[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],70735,70749,[70751,70753],[70784,70831],[70852,70855],[71040,71086],[71110,71112],[71128,71131],[71168,71215],[71235,71236],[71296,71338],[71352,71353],[71680,71723],71739,[71840,71903],[71914,71922],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72256,72262,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72794,72812],[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],[73463,73464],73474,[73476,73488],[73490,73523],73648,[73664,73692],[73697,73713],[73728,74649],[74752,74862],[74880,75075],[77712,77810],[77824,78423],[78430,78465],[78467,78469],[78474,78712],[78716,78895],[78913,78918],[82944,83405],[83408,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92986,92995],92997,[93019,93025],[93027,93047],[93053,93071],[93760,93846],[93849,93850],[93952,94026],94032,[94099,94111],[101120,101589],[110576,110579],[110581,110587],[110589,110590],[113664,113770],[113776,113788],[113792,113800],[113808,113817],113820,[118608,118723],[118784,119029],[119040,119078],[119081,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119274],[119296,119361],119365,[119488,119507],[119520,119539],[119552,119638],[119648,119672],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120779],[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121478],121483,[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],[123214,123215],[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125127,125135],[125184,125251],125259,[126065,126123],[126125,126127],[126129,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[126704,126705],[127278,127279],[127338,127340],[127900,127901],[127925,127926],127932,128160,128162,128164,128175,[128177,128178],[128256,128262],[128279,128292],[128306,128329],[128468,128475],[128500,128505],[128592,128629],[128636,128639],[128768,128883],[128896,128980],[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],[129280,129291],[129536,129619],[129792,129938],[129940,129994]],du=[[167,168],170,[178,179],[182,186],[188,190],215,247,711,[713,715],717,720,[728,731],733,[8213,8214],[8224,8225],8251,8308,8319,[8321,8324],8453,8467,[8481,8482],8491,[8532,8533],8539,8542,[8544,8555],[8560,8569],8585,[8592,8601],8658,8660,8704,[8706,8707],[8711,8712],8715,8719,8721,8725,8730,[8733,8736],8739,8741,[8743,8748],8750,[8756,8759],[8764,8765],8776,8780,8786,[8800,8801],[8804,8807],[8810,8811],[8814,8815],[8834,8835],[8838,8839],8853,8857,8869,8895,8978,[9312,9470],[9472,9547],[9552,9588],[9600,9615],[9618,9621],[9632,9633],[9635,9641],[9650,9651],[9654,9655],[9660,9661],[9664,9665],[9670,9672],9675,[9678,9681],[9698,9701],9711,[9733,9734],9737,[9742,9743],[9750,9751],9792,9794,[9824,9825],[9827,9829],9831,[9833,9834],[9836,9837],9839,[9886,9887],[9929,9932],9938,[9941,9943],[9946,9947],[9949,9950],9955,[9960,9961],[9963,9968],9974,[9979,9980],10071,[10102,10131],[11093,11097],[12872,12879],65533,[127232,127244],[127248,127277],[127280,127337],[127344,127404]],fu=[9,124,173,1418,1470,[2404,2405],[3674,3675],3851,3892,3967,3973,[4030,4031],4050,[4170,4171],4961,5120,5760,[5867,5869],[5941,5942],[6100,6101],6104,6106,[6148,6149],[7002,7003],[7005,7008],[7037,7038],[7227,7231],[7294,7295],[8192,8198],[8200,8202],8208,[8210,8211],8231,8278,[8280,8283],[8285,8287],[11514,11516],11519,11632,[11790,11797],11799,11801,[11818,11821],[11824,11825],[11827,11828],[11836,11838],[11840,11841],[11843,11850],11852,[11854,11855],11869,12288,[42238,42239],42509,42511,[42739,42743],[43214,43215],[43310,43311],[43463,43465],[43613,43615],[43760,43761],44011,[65792,65794],66463,66512,67671,67871,[68176,68183],[68336,68341],[68409,68415],69293,[69703,69704],[69822,69825],[69952,69955],[70085,70086],70088,[70109,70111],[70200,70201],[70203,70204],70313,[70731,70734],[70746,70747],[71106,71107],[71113,71127],[71233,71234],[71484,71486],[72004,72006],[72257,72260],[72346,72348],[72353,72354],[72769,72773],[73539,73540],73727,[74864,74868],[92782,92783],92917,[92983,92985],92996,[93847,93848],113823,[121479,121482]],gu=[180,712,716,735,3191,3204,[3841,3844],[3846,3847],[3849,3850],[4048,4049],4051,6150,8189,[43124,43125],43260,70005,70107,71105,[71264,71276],72162,72255,72261,[72350,72352],[72448,72457],72816],Du=[8212,[11834,11835]],pu=[47],mu=[13],bu=[41,93],vu=[125,3899,3901,5788,8262,8318,8334,8969,8971,9002,10089,10091,10093,10095,10097,10099,10101,10182,10215,10217,10219,10221,10223,10628,10630,10632,10634,10636,10638,10640,10642,10644,10646,10648,10713,10715,10749,11811,11813,11815,11817,11862,11864,11866,11868,[12289,12290],12297,12299,12301,12303,12305,12309,12311,12313,12315,[12318,12319],64830,[65041,65042],65048,65078,65080,65082,65084,65086,65088,65090,65092,65096,65104,65106,65114,65116,65118,65289,65292,65294,65341,65373,[65376,65377],[65379,65380],[78427,78429],78466,78471,78473,[78714,78715],78904,78909,78911,83407],Cu=[[0,8],[14,31],[127,132],[134,159],[768,846],[848,859],[867,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],1564,[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2307],[2362,2364],[2366,2383],[2385,2391],[2402,2403],[2433,2435],2492,[2494,2500],[2503,2504],[2507,2509],2519,[2530,2531],2558,[2561,2563],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2691],2748,[2750,2757],[2759,2761],[2763,2765],[2786,2787],[2810,2815],[2817,2819],2876,[2878,2884],[2887,2888],[2891,2893],[2901,2903],[2914,2915],2946,[3006,3010],[3014,3016],[3018,3021],3031,[3072,3076],3132,[3134,3140],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3203],3260,[3262,3268],[3270,3272],[3274,3277],[3285,3286],[3298,3299],3315,[3328,3331],[3387,3388],[3390,3396],[3398,3400],[3402,3405],3415,[3426,3427],[3457,3459],3530,[3535,3540],3542,[3544,3551],[3570,3571],[3864,3865],3893,3895,3897,[3902,3903],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4957,4959],[5906,5909],[5938,5940],[5970,5971],[6002,6003],[6155,6157],6159,[6277,6278],6313,[6432,6443],[6448,6459],[6679,6683],6783,[6832,6862],[6912,6916],[6964,6980],[7019,7027],[7040,7042],[7073,7085],[7142,7155],[7204,7223],[7376,7378],[7380,7400],7405,7412,[7415,7417],[7616,7628],[7630,7675],[7677,7679],8204,[8206,8207],[8234,8238],[8294,8303],[8400,8432],[11503,11505],11647,[11744,11775],[12330,12335],12341,[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43043,43047],43052,[43136,43137],[43188,43205],[43232,43249],43263,[43302,43309],[43335,43347],[43392,43395],[43443,43456],[43561,43574],43587,[43596,43597],[43755,43759],[43765,43766],[44003,44010],[44012,44013],64286,[65024,65039],[65056,65071],[65529,65531],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],[69632,69634],[69688,69702],69744,[69747,69748],[69759,69762],[69808,69818],69826,[69888,69890],[69927,69940],[69957,69958],70003,[70016,70018],[70067,70080],[70089,70092],[70094,70095],[70188,70199],70206,70209,[70367,70378],[70400,70403],[70459,70460],[70462,70468],[70471,70472],[70475,70477],70487,[70498,70499],[70502,70508],[70512,70516],[70709,70726],70750,[70832,70851],[71087,71093],[71096,71104],[71132,71133],[71216,71232],[71339,71351],[71724,71738],[71984,71989],[71991,71992],[71995,71998],72e3,[72002,72003],[72145,72151],[72154,72160],72164,[72193,72202],[72243,72249],[72251,72254],72263,[72273,72283],[72330,72345],[72751,72758],[72760,72767],[72850,72871],[72873,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73098,73102],[73104,73105],[73107,73111],[73459,73462],[73472,73473],73475,[73524,73530],[73534,73538],78912,[78919,78933],[92912,92916],[92976,92982],94031,[94033,94087],[94095,94098],[94192,94193],[113821,113822],[113824,113827],[118528,118573],[118576,118598],[119141,119145],[119149,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],121461,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],917505,[917536,917631],[917760,917999]],Su=[[3585,3642],[3648,3662],[3713,3714],3716,[3718,3722],[3724,3747],3749,[3751,3773],[3776,3780],3782,[3784,3790],[3804,3807],[4096,4159],[4176,4239],[4250,4255],[6016,6099],6103,[6108,6109],[6480,6509],[6512,6516],[6528,6571],[6576,6601],6618,[6622,6623],[6688,6750],[6752,6780],[6816,6829],[43488,43503],[43514,43518],[43616,43714],[43739,43743],[71424,71450],[71453,71467],[71482,71483],[71487,71494]],Eu=[12353,12355,12357,12359,12361,12387,12419,12421,12423,12430,[12437,12438],12449,12451,12453,12455,12457,12483,12515,12517,12519,12526,[12533,12534],12540,[12784,12799],[65383,65392],110898,[110928,110930],110933,[110948,110951]],yu=[65532],Tu=[9757,9977,[9994,9997],127877,[127938,127940],127943,[127946,127948],[128066,128067],[128070,128080],[128102,128120],128124,[128129,128131],[128133,128135],128143,128145,128170,[128372,128373],128378,128400,[128405,128406],[128581,128583],[128587,128591],128675,[128692,128694],128704,128716,129292,129295,[129304,129311],129318,[129328,129337],[129340,129342],129399,[129461,129462],[129464,129465],129467,[129485,129487],[129489,129501],[129731,129733],[129776,129784]],Fu=[[127995,127999]],Ou=[33,63,1478,1563,[1565,1567],1748,2041,[3853,3857],3860,[6146,6147],[6152,6153],[6468,6469],[10082,10083],11513,11518,11822,[11859,11860],42510,[43126,43127],[65045,65046],[65110,65111],65281,65311,[71108,71109],72817],wu=[160,847,[860,866],3848,3852,3858,[4057,4058],6158,7629,7676,8199,8209,8239,[78896,78902],[78905,78907],94180],Bu=[44032,44060,44088,44116,44144,44172,44200,44228,44256,44284,44312,44340,44368,44396,44424,44452,44480,44508,44536,44564,44592,44620,44648,44676,44704,44732,44760,44788,44816,44844,44872,44900,44928,44956,44984,45012,45040,45068,45096,45124,45152,45180,45208,45236,45264,45292,45320,45348,45376,45404,45432,45460,45488,45516,45544,45572,45600,45628,45656,45684,45712,45740,45768,45796,45824,45852,45880,45908,45936,45964,45992,46020,46048,46076,46104,46132,46160,46188,46216,46244,46272,46300,46328,46356,46384,46412,46440,46468,46496,46524,46552,46580,46608,46636,46664,46692,46720,46748,46776,46804,46832,46860,46888,46916,46944,46972,47e3,47028,47056,47084,47112,47140,47168,47196,47224,47252,47280,47308,47336,47364,47392,47420,47448,47476,47504,47532,47560,47588,47616,47644,47672,47700,47728,47756,47784,47812,47840,47868,47896,47924,47952,47980,48008,48036,48064,48092,48120,48148,48176,48204,48232,48260,48288,48316,48344,48372,48400,48428,48456,48484,48512,48540,48568,48596,48624,48652,48680,48708,48736,48764,48792,48820,48848,48876,48904,48932,48960,48988,49016,49044,49072,49100,49128,49156,49184,49212,49240,49268,49296,49324,49352,49380,49408,49436,49464,49492,49520,49548,49576,49604,49632,49660,49688,49716,49744,49772,49800,49828,49856,49884,49912,49940,49968,49996,50024,50052,50080,50108,50136,50164,50192,50220,50248,50276,50304,50332,50360,50388,50416,50444,50472,50500,50528,50556,50584,50612,50640,50668,50696,50724,50752,50780,50808,50836,50864,50892,50920,50948,50976,51004,51032,51060,51088,51116,51144,51172,51200,51228,51256,51284,51312,51340,51368,51396,51424,51452,51480,51508,51536,51564,51592,51620,51648,51676,51704,51732,51760,51788,51816,51844,51872,51900,51928,51956,51984,52012,52040,52068,52096,52124,52152,52180,52208,52236,52264,52292,52320,52348,52376,52404,52432,52460,52488,52516,52544,52572,52600,52628,52656,52684,52712,52740,52768,52796,52824,52852,52880,52908,52936,52964,52992,53020,53048,53076,53104,53132,53160,53188,53216,53244,53272,53300,53328,53356,53384,53412,53440,53468,53496,53524,53552,53580,53608,53636,53664,53692,53720,53748,53776,53804,53832,53860,53888,53916,53944,53972,54e3,54028,54056,54084,54112,54140,54168,54196,54224,54252,54280,54308,54336,54364,54392,54420,54448,54476,54504,54532,54560,54588,54616,54644,54672,54700,54728,54756,54784,54812,54840,54868,54896,54924,54952,54980,55008,55036,55064,55092,55120,55148,55176],Au=[[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]],Ru=[[1488,1514],[1519,1522],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335]],xu=[45],Mu=[[8986,8987],[9200,9203],[9728,9731],[9748,9749],9752,[9754,9756],[9758,9759],[9785,9787],9832,9855,[9917,9928],9933,[9935,9937],[9939,9940],[9944,9945],9948,[9951,9953],9962,[9969,9973],[9975,9976],9978,[9981,9988],[9992,9993],10084,[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12291,12292],[12294,12295],[12306,12307],[12320,12329],[12336,12340],[12342,12346],[12349,12351],12354,12356,12358,12360,[12362,12386],[12388,12418],12420,12422,[12424,12429],[12431,12436],12447,12450,12452,12454,12456,[12458,12482],[12484,12514],12516,12518,[12520,12525],[12527,12532],[12535,12538],12543,[12549,12591],[12593,12686],[12688,12771],[12800,12830],[12832,12871],[12880,19903],[19968,40980],[40982,42124],[42128,42182],[63744,64255],[65072,65076],[65093,65094],[65097,65103],65105,65112,[65119,65126],65128,65131,[65282,65283],[65286,65287],[65290,65291],65293,[65295,65305],[65308,65310],[65312,65338],65340,[65342,65370],65372,65374,65382,[65393,65437],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65506,65508],[73541,73551],[94208,100343],[100352,101119],[101632,101640],[110592,110882],[110960,111355],[126976,127231],[127245,127247],[127341,127343],[127405,127461],[127488,127876],[127878,127899],[127902,127924],[127927,127931],[127933,127937],[127941,127942],[127944,127945],[127949,127994],[128e3,128065],[128068,128069],[128081,128101],[128121,128123],[128125,128128],128132,[128136,128142],128144,[128146,128159],128161,128163,[128165,128169],[128171,128174],128176,[128179,128255],[128263,128278],[128293,128305],[128330,128371],[128374,128377],[128379,128399],[128401,128404],[128407,128467],[128476,128499],[128506,128580],[128584,128586],[128640,128674],[128676,128691],[128695,128703],[128705,128715],[128717,128767],[128884,128895],[128981,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129279],[129293,129294],[129296,129303],[129312,129317],[129319,129327],[129338,129339],[129343,129398],[129400,129460],129463,129466,[129468,129484],129488,[129502,129535],[129620,129730],[129734,129775],[129785,129791],[130048,131069],[131072,196605],[196608,262141]],Lu=[44,46,[58,59],894,1417,[1548,1549],2040,8260,65040,[65043,65044]],Iu=[[8228,8230],8943,65049,68342],Pu=[[4352,4447],[43360,43388]],$u=[[4520,4607],[55243,55291]],ku=[[4448,4519],[55216,55238]],Nu=[10],Hu=[[11,12],[8232,8233]],Xu=[133],zu=[6102,[8252,8253],[8263,8265],12293,12316,[12347,12348],[12443,12446],12448,12539,[12541,12542],40981,[65108,65109],[65306,65307],65381,[65438,65439],[94176,94179],[128633,128635]],Wu=[[48,57],[1632,1641],[1643,1644],[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2662,2671],[2790,2799],[2918,2927],[3046,3055],[3174,3183],[3302,3311],[3430,3439],[3558,3567],[3664,3673],[3792,3801],[3872,3881],[4160,4169],[4240,4249],[6112,6121],[6160,6169],[6470,6479],[6608,6617],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],[42528,42537],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[66720,66729],[68912,68921],[69734,69743],[69872,69881],[69942,69951],[70096,70105],[70384,70393],[70736,70745],[70864,70873],[71248,71257],[71360,71369],[71472,71481],[71904,71913],[72016,72025],[72784,72793],[73040,73049],[73120,73129],[73552,73561],[92768,92777],[92864,92873],[93008,93017],[120782,120831],[123200,123209],[123632,123641],[124144,124153],[125264,125273],[130032,130041]],Yu=[40,91,123,161,191,3898,3900,5787,8218,8222,8261,8317,8333,8968,8970,9001,10088,10090,10092,10094,10096,10098,10100,10181,10214,10216,10218,10220,10222,10627,10629,10631,10633,10635,10637,10639,10641,10643,10645,10647,10712,10714,10748,11800,11810,11812,11814,11816,11842,11861,11863,11865,11867,12296,12298,12300,12302,12304,12308,12310,12312,12314,12317,64831,65047,65077,65079,65081,65083,65085,65087,65089,65091,65095,65113,65115,65117,65288,65339,65371,65375,65378,[78424,78426],78470,78472,78713,78903,78908,78910,83406,[125278,125279]],ju=[37,162,176,[1545,1547],1642,[2546,2547],2553,3449,[8240,8247],8279,8359,8374,8379,8382,8384,8451,8457,43064,65020,65130,65285,65504,[73693,73696],126124,126128],Uu=[36,43,92,[163,165],177,1423,[2046,2047],2555,2801,3065,3647,6107,[8352,8358],[8360,8373],[8375,8378],[8380,8381],8383,[8385,8399],8470,[8722,8723],65129,65284,65505,[65509,65510],123647],Vu=[34,39,171,187,[8216,8217],[8219,8221],8223,[8249,8250],[10075,10080],[11776,11789],[11804,11805],[11808,11809],[128630,128632]],Gu=[[127462,127487]],Ku=[32],qu=[[55296,57343]],Ju=[[888,889],[896,899],907,909,930,1328,[1367,1368],[1419,1420],1424,[1480,1487],[1515,1518],[1525,1535],1806,[1867,1868],[1970,1983],[2043,2044],[2094,2095],2111,[2140,2141],2143,[2155,2159],2191,[2194,2199],2436,[2445,2446],[2449,2450],2473,2481,[2483,2485],[2490,2491],[2501,2502],[2505,2506],[2511,2518],[2520,2523],2526,[2532,2533],[2559,2560],2564,[2571,2574],[2577,2578],2601,2609,2612,2615,[2618,2619],2621,[2627,2630],[2633,2634],[2638,2640],[2642,2648],2653,[2655,2661],[2679,2688],2692,2702,2706,2729,2737,2740,[2746,2747],2758,2762,[2766,2767],[2769,2783],[2788,2789],[2802,2808],2816,2820,[2829,2830],[2833,2834],2857,2865,2868,[2874,2875],[2885,2886],[2889,2890],[2894,2900],[2904,2907],2910,[2916,2917],[2936,2945],2948,[2955,2957],2961,[2966,2968],2971,2973,[2976,2978],[2981,2983],[2987,2989],[3002,3005],[3011,3013],3017,[3022,3023],[3025,3030],[3032,3045],[3067,3071],3085,3089,3113,[3130,3131],3141,3145,[3150,3156],3159,[3163,3164],[3166,3167],[3172,3173],[3184,3190],3213,3217,3241,3252,[3258,3259],3269,3273,[3278,3284],[3287,3292],3295,[3300,3301],3312,[3316,3327],3341,3345,3397,3401,[3408,3411],[3428,3429],3456,3460,[3479,3481],3506,3516,[3518,3519],[3527,3529],[3531,3534],3541,3543,[3552,3557],[3568,3569],[3573,3584],[3643,3646],[3676,3712],3715,3717,3723,3748,3750,[3774,3775],3781,3783,3791,[3802,3803],[3808,3839],3912,[3949,3952],3992,4029,4045,[4059,4095],4294,[4296,4300],[4302,4303],4681,[4686,4687],4695,4697,[4702,4703],4745,[4750,4751],4785,[4790,4791],4799,4801,[4806,4807],4823,4881,[4886,4887],[4955,4956],[4989,4991],[5018,5023],[5110,5111],[5118,5119],[5789,5791],[5881,5887],[5910,5918],[5943,5951],[5972,5983],5997,6001,[6004,6015],[6110,6111],[6122,6127],[6138,6143],[6170,6175],[6265,6271],[6315,6319],[6390,6399],6431,[6444,6447],[6460,6463],[6465,6467],[6510,6511],[6517,6527],[6572,6575],[6602,6607],[6619,6621],[6684,6685],6751,[6781,6782],[6794,6799],[6810,6815],[6830,6831],[6863,6911],[6989,6991],7039,[7156,7163],[7224,7226],[7242,7244],[7305,7311],[7355,7356],[7368,7375],[7419,7423],[7958,7959],[7966,7967],[8006,8007],[8014,8015],8024,8026,8028,8030,[8062,8063],8117,8133,[8148,8149],8156,[8176,8177],8181,8191,8293,[8306,8307],8335,[8349,8351],[8433,8447],[8588,8591],[9255,9279],[9291,9311],[11124,11125],11158,[11508,11512],11558,[11560,11564],[11566,11567],[11624,11630],[11633,11646],[11671,11679],11687,11695,11703,11711,11719,11727,11735,11743,[11870,11903],11930,[12020,12031],[12246,12271],[12284,12287],12352,[12439,12440],[12544,12548],12592,12687,[12772,12783],12831,[42125,42127],[42183,42191],[42540,42559],[42744,42751],[42955,42959],42962,42964,[42970,42993],[43053,43055],[43066,43071],[43128,43135],[43206,43213],[43226,43231],[43348,43358],[43389,43391],43470,[43482,43485],43519,[43575,43583],[43598,43599],[43610,43611],[43715,43738],[43767,43776],[43783,43784],[43791,43792],[43799,43807],43815,43823,[43884,43887],[44014,44015],[44026,44031],[55204,55215],[55239,55242],[55292,55295],[57344,63743],[64263,64274],[64280,64284],64311,64317,64319,64322,64325,[64451,64466],[64912,64913],[64968,64974],[64976,65007],[65050,65055],65107,65127,[65132,65135],65141,[65277,65278],65280,[65471,65473],[65480,65481],[65488,65489],[65496,65497],[65501,65503],65511,[65519,65528],[65534,65535],65548,65575,65595,65598,[65614,65615],[65630,65663],[65787,65791],[65795,65798],[65844,65846],65935,[65949,65951],[65953,65999],[66046,66175],[66205,66207],[66257,66271],[66300,66303],[66340,66348],[66379,66383],[66427,66431],66462,[66500,66503],[66518,66559],[66718,66719],[66730,66735],[66772,66775],[66812,66815],[66856,66863],[66916,66926],66939,66955,66963,66966,66978,66994,67002,[67005,67071],[67383,67391],[67414,67423],[67432,67455],67462,67505,[67515,67583],[67590,67591],67593,67638,[67641,67643],[67645,67646],67670,[67743,67750],[67760,67807],67827,[67830,67834],[67868,67870],[67898,67902],[67904,67967],[68024,68027],[68048,68049],68100,[68103,68107],68116,68120,[68150,68151],[68155,68158],[68169,68175],[68185,68191],[68256,68287],[68327,68330],[68343,68351],[68406,68408],[68438,68439],[68467,68471],[68498,68504],[68509,68520],[68528,68607],[68681,68735],[68787,68799],[68851,68857],[68904,68911],[68922,69215],69247,69290,[69294,69295],[69298,69372],[69416,69423],[69466,69487],[69514,69551],[69580,69599],[69623,69631],[69710,69713],[69750,69758],[69827,69836],[69838,69839],[69865,69871],[69882,69887],69941,[69960,69967],[70007,70015],70112,[70133,70143],70162,[70210,70271],70279,70281,70286,70302,[70314,70319],[70379,70383],[70394,70399],70404,[70413,70414],[70417,70418],70441,70449,70452,70458,[70469,70470],[70473,70474],[70478,70479],[70481,70486],[70488,70492],[70500,70501],[70509,70511],[70517,70655],70748,[70754,70783],[70856,70863],[70874,71039],[71094,71095],[71134,71167],[71237,71247],[71258,71263],[71277,71295],[71354,71359],[71370,71423],[71451,71452],[71468,71471],[71495,71679],[71740,71839],[71923,71934],[71943,71944],[71946,71947],71956,71959,71990,[71993,71994],[72007,72015],[72026,72095],[72104,72105],[72152,72153],[72165,72191],[72264,72271],[72355,72367],[72441,72447],[72458,72703],72713,72759,[72774,72783],[72813,72815],[72848,72849],72872,[72887,72959],72967,72970,[73015,73017],73019,73022,[73032,73039],[73050,73055],73062,73065,73103,73106,[73113,73119],[73130,73439],[73465,73471],73489,[73531,73533],[73562,73647],[73649,73663],[73714,73726],[74650,74751],74863,[74869,74879],[75076,77711],[77811,77823],[78934,82943],[83527,92159],[92729,92735],92767,[92778,92781],92863,[92874,92879],[92910,92911],[92918,92927],[92998,93007],93018,93026,[93048,93052],[93072,93759],[93851,93951],[94027,94030],[94088,94094],[94112,94175],[94181,94191],[94194,94207],[100344,100351],[101590,101631],[101641,110575],110580,110588,110591,[110883,110897],[110899,110927],[110931,110932],[110934,110947],[110952,110959],[111356,113663],[113771,113775],[113789,113791],[113801,113807],[113818,113819],[113828,118527],[118574,118575],[118599,118607],[118724,118783],[119030,119039],[119079,119080],[119275,119295],[119366,119487],[119508,119519],[119540,119551],[119639,119647],[119673,119807],119893,119965,[119968,119969],[119971,119972],[119975,119976],119981,119994,119996,120004,120070,[120075,120076],120085,120093,120122,120127,120133,[120135,120137],120145,[120486,120487],[120780,120781],[121484,121498],121504,[121520,122623],[122655,122660],[122667,122879],122887,[122905,122906],122914,122917,[122923,122927],[122990,123022],[123024,123135],[123181,123183],[123198,123199],[123210,123213],[123216,123535],[123567,123583],[123642,123646],[123648,124111],[124154,124895],124903,124908,124911,124927,[125125,125126],[125143,125183],[125260,125263],[125274,125277],[125280,126064],[126133,126208],[126270,126463],126468,126496,126499,[126501,126502],126504,126515,126520,126522,[126524,126529],[126531,126534],126536,126538,126540,126544,126547,[126549,126550],126552,126554,126556,126558,126560,126563,[126565,126566],126571,126579,126584,126589,126591,126602,[126620,126624],126628,126634,[126652,126703],[126706,126975],[131070,131071],[196606,196607],[262142,917504],[917506,917535],[917632,917759],[918e3,1114111]],Zu=[8288,65279],Qu=[8205],th=[8203],eh=Object.freeze(Object.defineProperty({__proto__:null,Alphabetic:_u,Ambiguous:du,Break_After:fu,Break_Before:gu,Break_Both:Du,Break_Symbols:pu,Carriage_Return:mu,Close_Parenthesis:bu,Close_Punctuation:vu,Combining_Mark:Cu,Complex_Context:Su,Conditional_Japanese_Starter:Eu,Contingent_Break:yu,E_Base:Tu,E_Modifier:Fu,Exclamation:Ou,Glue:wu,H2:Bu,H3:Au,Hebrew_Letter:Ru,Hyphen:xu,Ideographic:Mu,Infix_Numeric:Lu,Inseparable:Iu,JL:Pu,JT:$u,JV:ku,Line_Feed:Nu,Mandatory_Break:Hu,Next_Line:Xu,Nonstarter:zu,Numeric:Wu,Open_Punctuation:Yu,Postfix_Numeric:ju,Prefix_Numeric:Uu,Quotation:Vu,Regional_Indicator:Gu,Space:Ku,Surrogate:qu,Unknown:Ju,Word_Joiner:Zu,ZWJ:Qu,ZWSpace:th},Symbol.toStringTag,{value:"Module"})),nh=[[65,90],[97,122],170,181,186,[192,214],[216,246],[248,727],[734,767],[880,884],[886,887],[890,893],895,902,[904,906],908,[910,929],[931,1013],[1015,1153],[1162,1327],[1329,1366],[1369,1372],1374,[1376,1416],1418,1523,[1568,1610],[1646,1647],[1649,1747],1749,[1765,1766],[1774,1775],[1786,1788],1791,1808,[1810,1839],[1869,1957],1969,[1994,2026],[2036,2037],2042,[2048,2069],2074,2084,2088,[2112,2136],[2144,2154],[2160,2183],[2185,2190],[2208,2249],[2308,2361],2365,2384,[2392,2401],[2417,2432],[2437,2444],[2447,2448],[2451,2472],[2474,2480],2482,[2486,2489],2493,2510,[2524,2525],[2527,2529],[2544,2545],2556,[2565,2570],[2575,2576],[2579,2600],[2602,2608],[2610,2611],[2613,2614],[2616,2617],[2649,2652],2654,[2674,2676],[2693,2701],[2703,2705],[2707,2728],[2730,2736],[2738,2739],[2741,2745],2749,2768,[2784,2785],2809,[2821,2828],[2831,2832],[2835,2856],[2858,2864],[2866,2867],[2869,2873],2877,[2908,2909],[2911,2913],2929,2947,[2949,2954],[2958,2960],[2962,2965],[2969,2970],2972,[2974,2975],[2979,2980],[2984,2986],[2990,3001],3024,[3077,3084],[3086,3088],[3090,3112],[3114,3129],3133,[3160,3162],3165,[3168,3169],3200,[3205,3212],[3214,3216],[3218,3240],[3242,3251],[3253,3257],3261,[3293,3294],[3296,3297],[3313,3314],[3332,3340],[3342,3344],[3346,3386],3389,3406,[3412,3414],[3423,3425],[3450,3455],[3461,3478],[3482,3505],[3507,3515],3517,[3520,3526],3840,[3904,3911],[3913,3948],[3976,3980],[4256,4293],4295,4301,[4304,4346],[4348,4680],[4682,4685],[4688,4694],4696,[4698,4701],[4704,4744],[4746,4749],[4752,4784],[4786,4789],[4792,4798],4800,[4802,4805],[4808,4822],[4824,4880],[4882,4885],[4888,4954],[4992,5007],[5024,5109],[5112,5117],[5121,5740],[5743,5759],[5761,5786],[5792,5866],[5870,5880],[5888,5905],[5919,5937],[5952,5969],[5984,5996],[5998,6e3],[6176,6264],[6272,6276],[6279,6312],6314,[6320,6389],[6400,6430],[6656,6678],[6917,6963],[6981,6988],[7043,7072],[7086,7087],[7098,7141],[7168,7203],[7245,7247],[7258,7293],[7296,7304],[7312,7354],[7357,7359],[7401,7404],[7406,7411],[7413,7414],7418,[7424,7615],[7680,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8124],8126,[8130,8132],[8134,8140],[8144,8147],[8150,8155],[8160,8172],[8178,8180],[8182,8188],8305,8319,[8336,8348],8450,8455,[8458,8467],8469,[8473,8477],8484,8486,8488,[8490,8493],[8495,8505],[8508,8511],[8517,8521],8526,[8544,8584],[9398,9449],[11264,11492],[11499,11502],[11506,11507],[11520,11557],11559,11565,[11568,11623],11631,[11648,11670],[11680,11686],[11688,11694],[11696,11702],[11704,11710],[11712,11718],[11720,11726],[11728,11734],[11736,11742],11823,12293,[12347,12348],[12549,12591],[12593,12686],[12704,12735],[40960,42124],[42192,42237],[42240,42508],[42512,42527],[42538,42539],[42560,42606],[42623,42653],[42656,42735],[42760,42954],[42960,42961],42963,[42965,42969],[42994,43009],[43011,43013],[43015,43018],[43020,43042],[43072,43123],[43138,43187],[43250,43255],43259,[43261,43262],[43274,43301],[43312,43334],[43360,43388],[43396,43442],43471,[43520,43560],[43584,43586],[43588,43595],[43744,43754],[43762,43764],[43777,43782],[43785,43790],[43793,43798],[43808,43814],[43816,43822],[43824,43881],[43888,44002],[44032,55203],[55216,55238],[55243,55291],[64256,64262],[64275,64279],[64336,64433],[64467,64829],[64848,64911],[64914,64967],[65008,65019],[65136,65140],[65142,65276],[65313,65338],[65345,65370],[65440,65470],[65474,65479],[65482,65487],[65490,65495],[65498,65500],[65536,65547],[65549,65574],[65576,65594],[65596,65597],[65599,65613],[65616,65629],[65664,65786],[65856,65908],[66176,66204],[66208,66256],[66304,66335],[66349,66378],[66384,66421],[66432,66461],[66464,66499],[66504,66511],[66513,66517],[66560,66717],[66736,66771],[66776,66811],[66816,66855],[66864,66915],[66928,66938],[66940,66954],[66956,66962],[66964,66965],[66967,66977],[66979,66993],[66995,67001],[67003,67004],[67072,67382],[67392,67413],[67424,67431],[67456,67461],[67463,67504],[67506,67514],[67584,67589],67592,[67594,67637],[67639,67640],67644,[67647,67669],[67680,67702],[67712,67742],[67808,67826],[67828,67829],[67840,67861],[67872,67897],[67968,68023],[68030,68031],68096,[68112,68115],[68117,68119],[68121,68149],[68192,68220],[68224,68252],[68288,68295],[68297,68324],[68352,68405],[68416,68437],[68448,68466],[68480,68497],[68608,68680],[68736,68786],[68800,68850],[68864,68899],[69248,69289],[69296,69297],[69376,69404],69415,[69424,69445],[69488,69505],[69552,69572],[69600,69622],[69635,69687],[69745,69746],69749,[69763,69807],[69840,69864],[69891,69926],69956,69959,[69968,70002],70006,[70019,70066],[70081,70084],70106,70108,[70144,70161],[70163,70187],[70207,70208],[70272,70278],70280,[70282,70285],[70287,70301],[70303,70312],[70320,70366],[70405,70412],[70415,70416],[70419,70440],[70442,70448],[70450,70451],[70453,70457],70461,70480,[70493,70497],[70656,70708],[70727,70730],[70751,70753],[70784,70831],[70852,70853],70855,[71040,71086],[71128,71131],[71168,71215],71236,[71296,71338],71352,[71680,71723],[71840,71903],[71935,71942],71945,[71948,71955],[71957,71958],[71960,71983],71999,72001,[72096,72103],[72106,72144],72161,72163,72192,[72203,72242],72250,72272,[72284,72329],72349,[72368,72440],[72704,72712],[72714,72750],72768,[72818,72847],[72960,72966],[72968,72969],[72971,73008],73030,[73056,73061],[73063,73064],[73066,73097],73112,[73440,73458],73474,[73476,73488],[73490,73523],73648,[73728,74649],[74752,74862],[74880,75075],[77712,77808],[77824,78895],[78913,78918],[82944,83526],[92160,92728],[92736,92766],[92784,92862],[92880,92909],[92928,92975],[92992,92995],[93027,93047],[93053,93071],[93760,93823],[93952,94026],94032,[94099,94111],[94176,94177],94179,[113664,113770],[113776,113788],[113792,113800],[113808,113817],[119808,119892],[119894,119964],[119966,119967],119970,[119973,119974],[119977,119980],[119982,119993],119995,[119997,120003],[120005,120069],[120071,120074],[120077,120084],[120086,120092],[120094,120121],[120123,120126],[120128,120132],120134,[120138,120144],[120146,120485],[120488,120512],[120514,120538],[120540,120570],[120572,120596],[120598,120628],[120630,120654],[120656,120686],[120688,120712],[120714,120744],[120746,120770],[120772,120779],[122624,122654],[122661,122666],[122928,122989],[123136,123180],[123191,123197],123214,[123536,123565],[123584,123627],[124112,124139],[124896,124902],[124904,124907],[124909,124910],[124912,124926],[124928,125124],[125184,125251],125259,[126464,126467],[126469,126495],[126497,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],[126545,126546],126548,126551,126553,126555,126557,126559,[126561,126562],126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],126590,[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[127280,127305],[127312,127337],[127344,127369]],sh=[13],ih=[34],rh=[[768,879],[1155,1161],[1425,1469],1471,[1473,1474],[1476,1477],1479,[1552,1562],[1611,1631],1648,[1750,1756],[1759,1764],[1767,1768],[1770,1773],1809,[1840,1866],[1958,1968],[2027,2035],2045,[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2200,2207],[2250,2273],[2275,2307],[2362,2364],[2366,2383],[2385,2391],[2402,2403],[2433,2435],2492,[2494,2500],[2503,2504],[2507,2509],2519,[2530,2531],2558,[2561,2563],2620,[2622,2626],[2631,2632],[2635,2637],2641,[2672,2673],2677,[2689,2691],2748,[2750,2757],[2759,2761],[2763,2765],[2786,2787],[2810,2815],[2817,2819],2876,[2878,2884],[2887,2888],[2891,2893],[2901,2903],[2914,2915],2946,[3006,3010],[3014,3016],[3018,3021],3031,[3072,3076],3132,[3134,3140],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3203],3260,[3262,3268],[3270,3272],[3274,3277],[3285,3286],[3298,3299],3315,[3328,3331],[3387,3388],[3390,3396],[3398,3400],[3402,3405],3415,[3426,3427],[3457,3459],3530,[3535,3540],3542,[3544,3551],[3570,3571],3633,[3636,3642],[3655,3662],3761,[3764,3772],[3784,3790],[3864,3865],3893,3895,3897,[3902,3903],[3953,3972],[3974,3975],[3981,3991],[3993,4028],4038,[4139,4158],[4182,4185],[4190,4192],[4194,4196],[4199,4205],[4209,4212],[4226,4237],4239,[4250,4253],[4957,4959],[5906,5909],[5938,5940],[5970,5971],[6002,6003],[6068,6099],6109,[6155,6157],6159,[6277,6278],6313,[6432,6443],[6448,6459],[6679,6683],[6741,6750],[6752,6780],6783,[6832,6862],[6912,6916],[6964,6980],[7019,7027],[7040,7042],[7073,7085],[7142,7155],[7204,7223],[7376,7378],[7380,7400],7405,7412,[7415,7417],[7616,7679],8204,[8400,8432],[11503,11505],11647,[11744,11775],[12330,12335],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],43010,43014,43019,[43043,43047],43052,[43136,43137],[43188,43205],[43232,43249],43263,[43302,43309],[43335,43347],[43392,43395],[43443,43456],43493,[43561,43574],43587,[43596,43597],[43643,43645],43696,[43698,43700],[43703,43704],[43710,43711],43713,[43755,43759],[43765,43766],[44003,44010],[44012,44013],64286,[65024,65039],[65056,65071],[65438,65439],66045,66272,[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],68159,[68325,68326],[68900,68903],[69291,69292],[69373,69375],[69446,69456],[69506,69509],[69632,69634],[69688,69702],69744,[69747,69748],[69759,69762],[69808,69818],69826,[69888,69890],[69927,69940],[69957,69958],70003,[70016,70018],[70067,70080],[70089,70092],[70094,70095],[70188,70199],70206,70209,[70367,70378],[70400,70403],[70459,70460],[70462,70468],[70471,70472],[70475,70477],70487,[70498,70499],[70502,70508],[70512,70516],[70709,70726],70750,[70832,70851],[71087,71093],[71096,71104],[71132,71133],[71216,71232],[71339,71351],[71453,71467],[71724,71738],[71984,71989],[71991,71992],[71995,71998],72e3,[72002,72003],[72145,72151],[72154,72160],72164,[72193,72202],[72243,72249],[72251,72254],72263,[72273,72283],[72330,72345],[72751,72758],[72760,72767],[72850,72871],[72873,72886],[73009,73014],73018,[73020,73021],[73023,73029],73031,[73098,73102],[73104,73105],[73107,73111],[73459,73462],[73472,73473],73475,[73524,73530],[73534,73538],78912,[78919,78933],[92912,92916],[92976,92982],94031,[94033,94087],[94095,94098],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,121476,[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],123023,[123184,123190],123566,[123628,123631],[124140,124143],[125136,125142],[125252,125258],[127995,127999],[917536,917631],[917760,917999]],oh=[95,8239,[8255,8256],8276,[65075,65076],[65101,65103],65343],ah=[173,[1536,1541],1564,1757,1807,[2192,2193],2274,6158,[8206,8207],[8234,8238],[8288,8292],[8294,8303],65279,[65529,65531],69821,69837,[78896,78911],[113824,113827],[119155,119162],917505],ch=[[1488,1514],[1519,1522],64285,[64287,64296],[64298,64310],[64312,64316],64318,[64320,64321],[64323,64324],[64326,64335]],lh=[[12337,12341],[12443,12444],[12448,12538],[12540,12543],[12784,12799],[13008,13054],[13056,13143],[65382,65437],[110576,110579],[110581,110587],[110589,110590],110592,[110880,110882],110933,[110948,110951]],uh=[10],hh=[58,183,903,1375,1524,8231,65043,65109,65306],_h=[44,59,894,1417,[1548,1549],1644,2040,8260,65040,65044,65104,65108,65292,65307],dh=[46,[8216,8217],8228,65106,65287,65294],fh=[[11,12],133,[8232,8233]],gh=[[48,57],[1632,1641],1643,[1776,1785],[1984,1993],[2406,2415],[2534,2543],[2662,2671],[2790,2799],[2918,2927],[3046,3055],[3174,3183],[3302,3311],[3430,3439],[3558,3567],[3664,3673],[3792,3801],[3872,3881],[4160,4169],[4240,4249],[6112,6121],[6160,6169],[6470,6479],[6608,6617],[6784,6793],[6800,6809],[6992,7001],[7088,7097],[7232,7241],[7248,7257],[42528,42537],[43216,43225],[43264,43273],[43472,43481],[43504,43513],[43600,43609],[44016,44025],[65296,65305],[66720,66729],[68912,68921],[69734,69743],[69872,69881],[69942,69951],[70096,70105],[70384,70393],[70736,70745],[70864,70873],[71248,71257],[71360,71369],[71472,71481],[71904,71913],[72016,72025],[72784,72793],[73040,73049],[73120,73129],[73552,73561],[92768,92777],[92864,92873],[93008,93017],[120782,120831],[123200,123209],[123632,123641],[124144,124153],[125264,125273],[130032,130041]],Dh=[[0,9],[14,31],33,[35,38],[40,43],45,47,[60,64],[91,94],96,[123,132],[134,159],[161,169],[171,172],[174,180],182,[184,185],[187,191],215,247,[728,733],885,[888,889],[896,901],907,909,930,1014,1154,1328,[1367,1368],1373,[1419,1424],1470,1472,1475,1478,[1480,1487],[1515,1518],[1525,1535],[1542,1547],[1550,1551],1563,[1565,1567],1642,1645,1748,1769,[1789,1790],[1792,1806],[1867,1868],[1970,1983],[2038,2039],2041,[2043,2044],[2046,2047],[2094,2111],[2140,2143],[2155,2159],2184,2191,[2194,2199],[2404,2405],2416,2436,[2445,2446],[2449,2450],2473,2481,[2483,2485],[2490,2491],[2501,2502],[2505,2506],[2511,2518],[2520,2523],2526,[2532,2533],[2546,2555],2557,[2559,2560],2564,[2571,2574],[2577,2578],2601,2609,2612,2615,[2618,2619],2621,[2627,2630],[2633,2634],[2638,2640],[2642,2648],2653,[2655,2661],[2678,2688],2692,2702,2706,2729,2737,2740,[2746,2747],2758,2762,[2766,2767],[2769,2783],[2788,2789],[2800,2808],2816,2820,[2829,2830],[2833,2834],2857,2865,2868,[2874,2875],[2885,2886],[2889,2890],[2894,2900],[2904,2907],2910,[2916,2917],2928,[2930,2945],2948,[2955,2957],2961,[2966,2968],2971,2973,[2976,2978],[2981,2983],[2987,2989],[3002,3005],[3011,3013],3017,[3022,3023],[3025,3030],[3032,3045],[3056,3071],3085,3089,3113,[3130,3131],3141,3145,[3150,3156],3159,[3163,3164],[3166,3167],[3172,3173],[3184,3199],3204,3213,3217,3241,3252,[3258,3259],3269,3273,[3278,3284],[3287,3292],3295,[3300,3301],3312,[3316,3327],3341,3345,3397,3401,[3407,3411],[3416,3422],[3428,3429],[3440,3449],3456,3460,[3479,3481],3506,3516,[3518,3519],[3527,3529],[3531,3534],3541,3543,[3552,3557],[3568,3569],[3572,3632],[3634,3635],[3643,3654],3663,[3674,3760],[3762,3763],[3773,3783],3791,[3802,3839],[3841,3863],[3866,3871],[3882,3892],3894,3896,[3898,3901],3912,[3949,3952],3973,3992,[4029,4037],[4039,4095],4130,4136,4159,[4170,4175],[4186,4189],4193,[4197,4198],[4206,4208],[4213,4225],4238,[4254,4255],4294,[4296,4300],[4302,4303],4347,4681,[4686,4687],4695,4697,[4702,4703],4745,[4750,4751],4785,[4790,4791],4799,4801,[4806,4807],4823,4881,[4886,4887],[4955,4956],[4960,4991],[5008,5023],[5110,5111],[5118,5120],[5741,5742],[5787,5791],[5867,5869],[5881,5887],[5910,5918],[5941,5951],[5972,5983],5997,6001,[6004,6015],[6100,6102],[6104,6107],[6110,6111],[6122,6154],[6170,6175],[6265,6271],[6315,6319],[6390,6399],6431,[6444,6447],[6460,6469],[6510,6511],[6517,6527],[6570,6575],[6602,6607],[6619,6655],[6684,6740],6751,[6781,6782],[6794,6799],[6810,6831],[6863,6911],[6989,6991],[7002,7018],[7028,7039],[7156,7167],[7224,7231],[7242,7244],[7294,7295],[7305,7311],[7355,7356],[7360,7375],7379,[7419,7423],[7958,7959],[7966,7967],[8006,8007],[8014,8015],8024,8026,8028,8030,[8062,8063],8117,8125,[8127,8129],8133,[8141,8143],[8148,8149],[8156,8159],[8173,8177],8181,[8189,8191],8199,[8208,8215],[8218,8227],[8229,8230],[8240,8254],[8257,8259],[8261,8275],[8277,8286],8293,8304,[8306,8318],[8320,8335],[8349,8399],[8433,8449],[8451,8454],[8456,8457],8468,[8470,8472],[8478,8483],8485,8487,8489,8494,[8506,8507],[8512,8516],[8522,8525],[8527,8543],[8585,9397],[9450,9756],[9758,9791],9793,[9795,9876],[9879,9976],[9978,9991],9993,[9998,10083],[10085,11263],[11493,11498],[11508,11519],11558,[11560,11564],[11566,11567],[11624,11630],[11632,11646],[11671,11679],11687,11695,11703,11711,11719,11727,11735,11743,[11776,11822],[11824,12287],[12289,12292],[12294,12329],12336,[12342,12346],[12349,12440],[12445,12447],12539,[12544,12548],12592,[12687,12703],[12736,12783],[12800,13007],13055,[13144,40959],[42125,42191],[42238,42239],[42509,42511],[42540,42559],42611,42622,[42738,42759],[42955,42959],42962,42964,[42970,42993],[43048,43051],[43053,43071],[43124,43135],[43206,43215],[43226,43231],[43256,43258],43260,[43310,43311],[43348,43359],[43389,43391],[43457,43470],[43482,43492],[43494,43503],[43514,43519],[43575,43583],[43598,43599],[43610,43642],[43646,43695],43697,[43701,43702],[43705,43709],43712,[43714,43743],[43760,43761],[43767,43776],[43783,43784],[43791,43792],[43799,43807],43815,43823,[43882,43887],44011,[44014,44015],[44026,44031],[55204,55215],[55239,55242],[55292,64047],[64107,64255],[64263,64274],[64280,64284],64297,64311,64317,64319,64322,64325,[64434,64466],[64830,64847],[64912,64913],[64968,65007],[65020,65023],[65041,65042],[65045,65055],[65072,65074],[65077,65100],65105,65107,[65110,65135],65141,[65277,65278],[65280,65286],[65288,65291],65293,65295,[65308,65312],[65339,65342],65344,[65371,65381],[65471,65473],[65480,65481],[65488,65489],[65496,65497],[65501,65528],[65532,65535],65548,65575,65595,65598,[65614,65615],[65630,65663],[65787,65855],[65909,66044],[66046,66175],[66205,66207],[66257,66271],[66273,66303],[66336,66348],[66379,66383],[66427,66431],[66462,66463],[66500,66503],66512,[66518,66559],[66718,66719],[66730,66735],[66772,66775],[66812,66815],[66856,66863],[66916,66927],66939,66955,66963,66966,66978,66994,67002,[67005,67071],[67383,67391],[67414,67423],[67432,67455],67462,67505,[67515,67583],[67590,67591],67593,67638,[67641,67643],[67645,67646],[67670,67679],[67703,67711],[67743,67807],67827,[67830,67839],[67862,67871],[67898,67967],[68024,68029],[68032,68095],68100,[68103,68107],68116,68120,[68150,68151],[68155,68158],[68160,68191],[68221,68223],[68253,68287],68296,[68327,68351],[68406,68415],[68438,68447],[68467,68479],[68498,68607],[68681,68735],[68787,68799],[68851,68863],[68904,68911],[68922,69247],69290,[69293,69295],[69298,69372],[69405,69414],[69416,69423],[69457,69487],[69510,69551],[69573,69599],[69623,69631],[69703,69733],[69750,69758],[69819,69820],[69822,69825],[69827,69836],[69838,69839],[69865,69871],[69882,69887],69941,[69952,69955],[69960,69967],[70004,70005],[70007,70015],[70085,70088],70093,70107,[70109,70143],70162,[70200,70205],[70210,70271],70279,70281,70286,70302,[70313,70319],[70379,70383],[70394,70399],70404,[70413,70414],[70417,70418],70441,70449,70452,70458,[70469,70470],[70473,70474],[70478,70479],[70481,70486],[70488,70492],[70500,70501],[70509,70511],[70517,70655],[70731,70735],[70746,70749],[70754,70783],70854,[70856,70863],[70874,71039],[71094,71095],[71105,71127],[71134,71167],[71233,71235],[71237,71247],[71258,71295],[71353,71359],[71370,71452],[71468,71471],[71482,71679],[71739,71839],[71914,71934],[71943,71944],[71946,71947],71956,71959,71990,[71993,71994],[72004,72015],[72026,72095],[72104,72105],[72152,72153],72162,[72165,72191],[72255,72262],[72264,72271],[72346,72348],[72350,72367],[72441,72703],72713,72759,[72769,72783],[72794,72817],[72848,72849],72872,[72887,72959],72967,72970,[73015,73017],73019,73022,[73032,73039],[73050,73055],73062,73065,73103,73106,[73113,73119],[73130,73439],[73463,73471],73489,[73531,73533],[73539,73551],[73562,73647],[73649,73727],[74650,74751],[74863,74879],[75076,77711],[77809,77823],[78934,82943],[83527,92159],[92729,92735],92767,[92778,92783],92863,[92874,92879],[92910,92911],[92917,92927],[92983,92991],[92996,93007],[93018,93026],[93048,93052],[93072,93759],[93824,93951],[94027,94030],[94088,94094],[94112,94175],94178,[94181,94191],[94194,110575],110580,110588,110591,[110593,110879],[110883,110932],[110934,110947],[110952,113663],[113771,113775],[113789,113791],[113801,113807],[113818,113820],113823,[113828,118527],[118574,118575],[118599,119140],[119146,119148],[119171,119172],[119180,119209],[119214,119361],[119365,119807],119893,119965,[119968,119969],[119971,119972],[119975,119976],119981,119994,119996,120004,120070,[120075,120076],120085,120093,120122,120127,120133,[120135,120137],120145,[120486,120487],120513,120539,120571,120597,120629,120655,120687,120713,120745,120771,[120780,120781],[120832,121343],[121399,121402],[121453,121460],[121462,121475],[121477,121498],121504,[121520,122623],[122655,122660],[122667,122879],122887,[122905,122906],122914,122917,[122923,122927],[122990,123022],[123024,123135],[123181,123183],[123198,123199],[123210,123213],[123215,123535],[123567,123583],[123642,124111],[124154,124895],124903,124908,124911,124927,[125125,125135],[125143,125183],[125260,125263],[125274,126463],126468,126496,126499,[126501,126502],126504,126515,126520,126522,[126524,126529],[126531,126534],126536,126538,126540,126544,126547,[126549,126550],126552,126554,126556,126558,126560,126563,[126565,126566],126571,126579,126584,126589,126591,126602,[126620,126624],126628,126634,[126652,127279],[127306,127311],[127338,127343],[127370,127461],[127488,127751],[127753,127805],[127807,127858],[127860,127876],[127878,127890],[127892,127907],[127909,127911],[127913,127937],[127941,127942],[127944,127945],[127949,127978],127980,[127982,127994],[128e3,128065],[128068,128069],[128081,128101],[128106,128109],128111,[128121,128123],[128125,128128],128132,[128136,128138],[128140,128169],[128171,128186],[128189,128294],[128296,128299],[128301,128371],[128374,128377],[128379,128399],[128401,128404],[128407,128487],[128489,128580],[128584,128586],[128592,128639],[128641,128657],[128659,128674],[128676,128691],[128695,128703],[128705,128715],[128717,129303],[129312,129317],[129319,129327],[129338,129339],[129343,129488],[129502,130031],[130042,917504],[917506,917535],[917632,917759],[918e3,1114111]],ph=[[127462,127487]],mh=[39],bh=[32,5760,[8192,8198],[8200,8202],8287,12288],vh=[8205],Ch=Object.freeze(Object.defineProperty({__proto__:null,ALetter:nh,CR:sh,Double_Quote:ih,Extend:rh,ExtendNumLet:oh,Format:ah,Hebrew_Letter:ch,Katakana:lh,LF:uh,MidLetter:hh,MidNum:_h,MidNumLet:dh,Newline:fh,Numeric:gh,Other:Dh,Regional_Indicator:ph,Single_Quote:mh,WSegSpace:bh,ZWJ:vh},Symbol.toStringTag,{value:"Module"})),Sh=Object.freeze(Object.defineProperty({__proto__:null,Bidi_Class:F3,Bidi_Mirroring_Glyph:au,Bidi_Paired_Bracket_Type:hu,Binary_Property:p0,Block:ou,Case_Folding:Pi,General_Category:n3,Line_Break:eh,Script:w5,Script_Extensions:Ri,Word_Break:Ch},Symbol.toStringTag,{value:"Module"}));function G7(r){const n=Object.keys(r);if(n.length===0)throw new Error("Expected at least one category, but received 0.");if(n.some(e=>{const s=r[e];return s===void 0||s.length===0}))throw new Error("Expected at least one sub category, but received 0.");return n.map(e=>{const i=r[e].map(o=>Eh(e,o));return new E1().union(...i)}).reduce((e,s)=>e.intersect(s))}function Eh(r,n){const e=Sh[r][n];return new E1().union(...e)}const M6=G7({Script:["Han","Katakana","Hiragana","Hangul","Bopomofo"],General_Category:["Other_Letter","Letter_Number","Other_Symbol","Modifier_Letter"]}),yh=G7({Block:["CJK_Compatibility","CJK_Symbols_And_Punctuation","Vertical_Forms","CJK_Compatibility_Forms","Small_Form_Variants","Halfwidth_And_Fullwidth_Forms","Ideographic_Description_Characters","Kanbun","CJK_Strokes","Enclosed_CJK_Letters_And_Months"]}).subtract(M6),Th=x6(M6,yh);function Fh(){return x6(Th)}function Oh(){return x6(M6)}const D7=r=>({sbr:.5,sbo:r,spr:.5,spo:r});class B1{static get globalFontMeasureCache(){return this._globalFontMeasureCache}static setFontMeasureCache(n,t,e){this._globalFontMeasureCache.has(n)||this._globalFontMeasureCache.set(n,new Map);const s=this._globalFontMeasureCache.get(n);s&&s.set(t,e)}static clearFontMeasureCache(n){var e;const t=n.split("/");if(t.length===1){const s=t[0];this._globalFontMeasureCache.delete(s)}else if(t.length===2){const s=t[0],i=t[1];(e=this._globalFontMeasureCache.get(s))==null||e.delete(i)}else return!1;return!0}static getFontMeasureCache(n,t){var e;return(e=this._globalFontMeasureCache.get(n))==null?void 0:e.get(t)}static autoCleanFontMeasureCache(n=1e6){let t=0,e=!1;for(const s of this._globalFontMeasureCache){const[,i]=s;if(t+=i.size,t>n){e=!0;break}}if(e){let s=0;for(const i of this._globalFontMeasureCache){const[o,a]=i;if(s+=a.size,s>n/2){const c=s-n/2;this._clearMeasureCache(c,a);break}this._globalFontMeasureCache.delete(o)}return!0}return!1}static getBaselineOffsetInfo(n,t){if(this._fontDataMap.size===0)return D7(t);const e=n.split(",");for(let s of e){s=s.replace(/'/g,"");const i=this._fontDataMap.get(s);if(!i)continue;const{subscriptSizeRatio:o,subscriptOffset:a,superscriptSizeRatio:c,superscriptOffset:l}=i;return{sbr:o,sbo:a*t,spr:c,spo:l*t}}return D7(t)}static getTextSizeByDom(n,t){if(t in this._getTextHeightCache)return this._getTextHeightCache[t];let e=document.getElementById("universheetTextSizeTest");const s="float:left;white-space:nowrap;visibility:hidden;margin:0;padding:0;";e||(e=document.createElement("span"),e.id="universheetTextSizeTest",document.getElementsByTagName("body")[0].appendChild(e)),e.style.cssText+=`${s};${t}`,e.innerText=n;const i=e.getBoundingClientRect(),o={width:i.width,height:i.height};return this._getTextHeightCache[t]=o,o}static getTextSize(n,t){const{fontString:e,fontSize:s,fontFamily:i}=t;let o=this._getBoundingBoxByFont(i,s);if(!o){const a=this.getMeasureText(n,e);o=this._calculateBoundingBoxByMeasureText(a,s)}return o}static getMeasureText(n,t){if(!this._context){const g=document.createElement("canvas");this._context=g.getContext("2d")}const e=this._context,s=this.getFontMeasureCache(t,n);if(s!=null)return s;e.font=t;const i=e.measureText(n),{width:o,fontBoundingBoxAscent:a,fontBoundingBoxDescent:c,actualBoundingBoxAscent:l,actualBoundingBoxDescent:u}=i,h={width:o,fontBoundingBoxAscent:a,fontBoundingBoxDescent:c,actualBoundingBoxAscent:l,actualBoundingBoxDescent:u};if(a==null||c==null||Number.isNaN(a)||Number.isNaN(c)){const g=this.getTextSizeByDom(Y7,t).height;e.textBaseline==="top"?(h.fontBoundingBoxAscent=h.actualBoundingBoxAscent=g,h.fontBoundingBoxDescent=h.actualBoundingBoxDescent=0):e.textBaseline==="middle"?(h.fontBoundingBoxDescent=h.actualBoundingBoxDescent=g/2,h.fontBoundingBoxAscent=h.actualBoundingBoxAscent=g/2):(h.fontBoundingBoxDescent=h.actualBoundingBoxDescent=0,h.fontBoundingBoxAscent=h.actualBoundingBoxAscent=g)}return this.setFontMeasureCache(t,n,h),h}static _clearMeasureCache(n,t){let e=0;for(const s of t){const[i]=s;if(e>n)break;t.delete(i),e++}return!0}static _getBoundingBoxByFont(n,t=28,e=""){const s=this._fontDataMap.get(n);if(!s)return;const{notDefWidth:i,ascender:o,descender:a,typoAscender:c,typoDescender:l,strikeoutPosition:u,subscriptSizeRatio:h,subscriptOffset:g,superscriptSizeRatio:p,superscriptOffset:b,hdmxData:v,glyphHorizonMap:m}=s,S=v==null?void 0:v.indexOf(Math.floor(t)),E=m.get(e.charCodeAt(0));let y=i;if(E){const{width:T,pixelsPerEm:O=[]}=E;S?y=O[S]:y=T}return{width:y*t,ba:o*t,bd:a*t,aba:c*t,abd:l*t,sp:u*t,sbr:h,sbo:g*t,spr:p,spo:b*t}}static _calculateBoundingBoxByMeasureText(n,t){const{width:e,fontBoundingBoxAscent:s,fontBoundingBoxDescent:i,actualBoundingBoxAscent:o,actualBoundingBoxDescent:a}=n;return{width:e,ba:s,bd:i,aba:o,abd:a,sp:(s+i)/2,sbr:.5,sbo:t,spr:.5,spo:t}}}_(B1,"_getTextHeightCache",{}),_(B1,"_context"),_(B1,"_fontDataMap",new Map),_(B1,"_globalFontMeasureCache",new Map);const K7=180,wh=Math.PI/K7,Bh=K7/Math.PI,p7="rgb(",Ah="rgba(",c1=(r,n)=>r?n!=null?`${Ah+r.join(",")},${n})`:`${p7+r.join(",")})`:`${p7}0,0,0)`,Rh=100,A1=(r,n)=>{if(f.Tools.isNumber(r))return r;if(n&&r&&f.Tools.isString(r)&&r.substr(r.length-1,1)==="%"){const t=parseFloat(r)/Rh;return n*t}return 0},xh=16,C2=(r,n)=>(n||(n=window),n.requestPostAnimationFrame?n.requestPostAnimationFrame(r):n.requestAnimationFrame?n.requestAnimationFrame(r):n.msRequestAnimationFrame?n.msRequestAnimationFrame(r):n.webkitRequestAnimationFrame?n.webkitRequestAnimationFrame(r):n.mozRequestAnimationFrame?n.mozRequestAnimationFrame(r):n.oRequestAnimationFrame?n.oRequestAnimationFrame(r):setTimeout(r,xh)),q7=(r,n)=>(n||(n=window),n.requestPostAnimationFrame?n.cancelPostAnimationFrame(r):n.requestAnimationFrame?n.cancelAnimationFrame(r):n.msRequestAnimationFrame?n.msCancelAnimationFrame(r):n.webkitRequestAnimationFrame?n.webkitCancelAnimationFrame(r):n.mozRequestAnimationFrame?n.mozCancelAnimationFrame(r):n.oRequestAnimationFrame?n.oCancelAnimationFrame(r):clearTimeout(r)),L6=()=>{const r=document.createElement("canvas");try{r.style=r.style||{}}catch(n){console.error(n)}return r},Mh=()=>document.createElement("img"),J7=r=>r*Bh,x1=r=>r*wh,m6=()=>{let r="pointer";return typeof window<"u"&&!window.PointerEvent&&typeof navigator<"u"&&(r="mouse"),f.Tools.isTablet()&&!f.Tools.isIPhone()&&!(document&&"ontouchend"in document)&&(r="mouse"),r},Z7=()=>f.Tools.getBrowserType()==="safari",Lh=4,Q7=(r="obj",n=Lh)=>{const t=window.navigator.userAgent.replace(/[^a-zA-Z0-9]/g,"").split("");let e="";for(let i=0;i<n;i++)e+=t[Math.round(Math.random()*(t.length-1))];const s=new Date().getTime();return`${r}_${e}_${s}`};function I1(r){return Object.prototype.toString.apply(r)}function Z2(r){return I1(r)==="[object Function]"}function Ih(r){return I1(r)==="[object Date]"}function Ph(r){return I1(r)==="[object RegExp]"}function $h(r){return I1(r)==="[object Array]"}function b6(r){return I1(r)==="[object String]"}function kh(r){return I1(r)==="[object Number]"}function Nh(r){return I1(r)==="[object Object]"}function X2(r,n){return n=10**n,Math.round(r*n)/n}function X(r,n){return Math.round(r*n)/n}function S2(r,n){const t="Arial";if(!r){const h=`13px ${t}`;return{fontCache:h,fontString:h,fontSize:13,fontFamily:t}}let s=f.FontStyleType.ITALIC;(r.it===0||r.it===void 0)&&(s=f.FontStyleType.NORMAL);let i=f.FontStyleType.BOLD;(r.bl===0||r.bl===void 0)&&(i=f.FontStyleType.NORMAL);let o=13;r.fs&&(o=Math.ceil(r.fs));let a=t;if(r.ff){let h=r.ff;h=h.replace(/"/g,"").replace(/'/g,""),h.indexOf(" ")>-1&&(h=`"${h}"`),h==null&&(h=t),a=h}const{va:c}=r;if(c===f.BaselineOffset.SUBSCRIPT||c===f.BaselineOffset.SUPERSCRIPT){const h=B1.getBaselineOffsetInfo(a,o),{sbr:g,spr:p}=h;o*=c===f.BaselineOffset.SUBSCRIPT?g:p}const l=`${s} ${i} ${o}px ${a}`,u=`${l}, ${J2} `;return{fontCache:l,fontString:u,fontSize:o,fontFamily:a}}function Hh(r){return r.measureText("田").actualBoundingBoxAscent!=null}const Xh=Oh().toRegExp();function z2(r){return Xh.test(r)}const zh=Fh().toRegExp();function Q2(r){return zh.test(r)}function Wh(r){return!!/[\u0000-\u024F]/gi.exec(r)}function Yh(r){return!!/[\u0000-\u007F]/gi.exec(r)}function jh(r){return!!/[\u0080-\u00FF]/gi.exec(r)}function Uh(r){return!!/[\u0100-\u017F]/gi.exec(r)}function Vh(r){return!!/[\u0180-\u024F]/gi.exec(r)}const I6=/^(?:[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?))/g;function t4(r){return I6.test(r)}function P6(r){return/[\u0600-\u06FF]|[\u0750-\u0750]|[\u0870-\u08FF]|[\uFB50-\uFDFF]|[\uFE70-\uFEFF]/gi.test(r)}function $6(r){return/[\u0180-\u024F]/gi.test(r)}function e4(r){return/\s+/g.test(r)}const m7=1e3;let I2;function w2(){if(I2)return I2;let r=56;for(;r<m7*2;r++)if(matchMedia(`(max-resolution: ${r}dpi)`).matches===!0)return r;return I2=r,setTimeout(()=>{I2=null},m7),r}const n4=72,Gh=25.4;function Kh(r){return r/(n4/w2())}function qh(r){return r*(n4/w2())}function Jh(r){return r*(w2()/Gh)}function Zh(r){return r*w2()}function V1(r){const{scaleX:n=1,scaleY:t=1}=r;return Math.max(n,t)}function X1(r,n,t,e){const s=r-1,i=n-1,o=t[s]||0,a=t[r]||t[t.length-1],c=e[i]||0,l=e[n]||e[e.length-1];return{startY:o,endY:a,startX:c,endX:l}}function s2(r,n,t,e,s){let{startY:i,endY:o,startX:a,endX:c}=X1(r,n,t,e);const{isMerged:l,isMergedMainCell:u,startRow:h,startColumn:g,endRow:p,endColumn:b}=t6(r,n,s);let v={startRow:h,startColumn:g,endRow:p,endColumn:b,startY:0,endY:0,startX:0,endX:0};const m=t.length-1,S=e.length-1;if(l&&h!==-1&&g!==-1){const E=t[h-1]||0,y=t[p]||t[m],T=e[g-1]||0,O=e[b]||e[S];v={...v,startY:E,endY:y,startX:T,endX:O}}else if(!l&&p!==-1&&b!==-1){const E=t[p]||t[m],y=e[b]||e[S];v={...v,startY:i,endY:E,startX:a,endX:y}}return{isMerged:l,isMergedMainCell:u,actualRow:r,actualColumn:n,startY:i,endY:o,startX:a,endX:c,mergeInfo:v}}function t6(r,n,t){let e=!1,s=!1,i=r,o=n,a=r,c=n;if(t==null)return{actualRow:r,actualColumn:n,isMergedMainCell:s,isMerged:e,endRow:i,endColumn:o,startRow:a,startColumn:c};for(let l=0;l<t.length;l++){const{startRow:u,endRow:h,startColumn:g,endColumn:p}=t[l];if(r===u&&n===g){i=h,o=p,a=u,c=g,s=!0;break}if(r>=u&&r<=h&&n>=g&&n<=p){i=h,o=p,a=u,c=g,e=!0;break}}return{actualRow:r,actualColumn:n,isMergedMainCell:s,isMerged:e,endRow:i,endColumn:o,startRow:a,startColumn:c}}function s4(r,n,t,e){let s=!1;for(let i=n;i<=t;i++){const{isMerged:o,isMergedMainCell:a}=t6(r,i,e);if(!o&&!a){s=!0;break}}return s}function v6(r,n,t,e,s){const{startY:i,endY:o,startX:a,endX:c}=r;return r.startY=i+t,r.endY=o+t,r.startX=a+n,r.endX=c+n,{...r}}function i4(r,n){return!(r.left>n.right||r.top>n.bottom||n.left>r.right||n.top>r.bottom)}function r4(r){const n=document.createElement("style");document.head.appendChild(n);const t=n.sheet;for(const e of r)t==null||t.insertRule(e,t.cssRules.length)}function o4(r){for(let n=0,t=document.head.childNodes.length;n<t;n++){const e=document.head.childNodes[n];if(e.nodeName==="STYLE"&&e.textContent&&e.textContent.indexOf(r)>-1)return!0}return!1}function N1(r){return Number(r.replace(/px/gi,""))}function a4(r){const n=getComputedStyle(r),{borderTopWidth:t,borderLeftWidth:e,borderRightWidth:s,borderBottomWidth:i,width:o,height:a}=n;return{top:N1(t),left:N1(e),right:N1(s),bottom:N1(i),width:N1(o),height:N1(a)}}class R{constructor(n=0,t=0){this.x=n,this.y=t}static Zero(){return new R(0,0)}static One(){return new R(1,1)}static FromArray(n,t=0){return new R(n[t],n[t+1])}static FromArrayToRef(n,t,e){e.x=n[t],e.y=n[t+1]}static CatmullRom(n,t,e,s,i){const o=i*i,a=i*o,c=.5*(2*t.x+(-n.x+e.x)*i+(2*n.x-5*t.x+4*e.x-s.x)*o+(-n.x+3*t.x-3*e.x+s.x)*a),l=.5*(2*t.y+(-n.y+e.y)*i+(2*n.y-5*t.y+4*e.y-s.y)*o+(-n.y+3*t.y-3*e.y+s.y)*a);return new R(c,l)}static Clamp(n,t,e){let s=n.x;s=s>e.x?e.x:s,s=s<t.x?t.x:s;let i=n.y;return i=i>e.y?e.y:i,i=i<t.y?t.y:i,new R(s,i)}static Hermite(n,t,e,s,i){const o=i*i,a=i*o,c=2*a-3*o+1,l=-2*a+3*o,u=a-2*o+i,h=a-o,g=n.x*c+e.x*l+t.x*u+s.x*h,p=n.y*c+e.y*l+t.y*u+s.y*h;return new R(g,p)}static Hermite1stDerivative(n,t,e,s,i){const o=R.Zero();return this.Hermite1stDerivativeToRef(n,t,e,s,i,o),o}static Hermite1stDerivativeToRef(n,t,e,s,i,o){const a=i*i;o.x=(a-i)*6*n.x+(3*a-4*i+1)*t.x+(-a+i)*6*e.x+(3*a-2*i)*s.x,o.y=(a-i)*6*n.y+(3*a-4*i+1)*t.y+(-a+i)*6*e.y+(3*a-2*i)*s.y}static Lerp(n,t,e){const s=n.x+(t.x-n.x)*e,i=n.y+(t.y-n.y)*e;return new R(s,i)}static Dot(n,t){return n.x*t.x+n.y*t.y}static Normalize(n){const t=R.Zero();return this.NormalizeToRef(n,t),t}static NormalizeToRef(n,t){const e=n.length();e!==0&&(t.x=n.x/e,t.y=n.y/e)}static Minimize(n,t){const e=n.x<t.x?n.x:t.x,s=n.y<t.y?n.y:t.y;return new R(e,s)}static Maximize(n,t){const e=n.x>t.x?n.x:t.x,s=n.y>t.y?n.y:t.y;return new R(e,s)}static PointInTriangle(n,t,e,s){const i=.5*(-e.y*s.x+t.y*(-e.x+s.x)+t.x*(e.y-s.y)+e.x*s.y),o=i<0?-1:1,a=(t.y*s.x-t.x*s.y+(s.y-t.y)*n.x+(t.x-s.x)*n.y)*o,c=(t.x*e.y-t.y*e.x+(t.y-e.y)*n.x+(e.x-t.x)*n.y)*o;return a>0&&c>0&&a+c<2*i*o}static Distance(n,t){return Math.sqrt(R.DistanceSquared(n,t))}static DistanceSquared(n,t){const e=n.x-t.x,s=n.y-t.y;return e*e+s*s}static Center(n,t){return R.CenterToRef(n,t,R.Zero())}static CenterToRef(n,t,e){return e.copyFromFloats((n.x+t.x)/2,(n.y+t.y)/2)}static DistanceOfPointFromSegment(n,t,e){const s=R.DistanceSquared(t,e);if(s===0)return R.Distance(n,t);const i=e.subtract(t),o=Math.max(0,Math.min(1,R.Dot(n.subtract(t),i)/s)),a=t.add(i.multiplyByFloats(o,o));return R.Distance(n,a)}static create(n,t){return new R(n,t)}toString(){return`{X: ${this.x} Y: ${this.y}}`}getClassName(){return"Vector2"}getHashCode(){let n=this.x|0;return n=n*397^(this.y|0),n}toArray(n,t=0){return n[t]=this.x,n[t+1]=this.y,this}fromArray(n,t=0){return R.FromArrayToRef(n,t,this),this}asArray(){const n=new Array;return this.toArray(n,0),n}copyFrom(n){return this.x=n.x,this.y=n.y,this}copyFromFloats(n,t){return this.x=n,this.y=t,this}set(n,t){return this.copyFromFloats(n,t)}add(n){return new R(this.x+n.x,this.y+n.y)}addToRef(n,t){return t.x=this.x+n.x,t.y=this.y+n.y,this}addByPoint(n,t){return new R(this.x+n,this.y+t)}addInPlace(n){return this.x+=n.x,this.y+=n.y,this}subtract(n){return new R(this.x-n.x,this.y-n.y)}subtractByPoint(n,t){return new R(this.x-n,this.y-t)}subtractToRef(n,t){return t.x=this.x-n.x,t.y=this.y-n.y,this}subtractInPlace(n){return this.x-=n.x,this.y-=n.y,this}multiplyInPlace(n){return this.x*=n.x,this.y*=n.y,this}multiply(n){return new R(this.x*n.x,this.y*n.y)}multiplyToRef(n,t){return t.x=this.x*n.x,t.y=this.y*n.y,this}multiplyByFloats(n,t){return new R(this.x*n,this.y*t)}divide(n){return new R(this.x/n.x,this.y/n.y)}divideToRef(n,t){return t.x=this.x/n.x,t.y=this.y/n.y,this}divideInPlace(n){return this.divideToRef(n,this)}negate(){return new R(-this.x,-this.y)}negateInPlace(){return this.x*=-1,this.y*=-1,this}negateToRef(n){return n.copyFromFloats(this.x*-1,this.y*-1)}scaleInPlace(n){return this.x*=n,this.y*=n,this}scale(n){const t=new R(0,0);return this.scaleToRef(n,t),t}scaleToRef(n,t){return t.x=this.x*n,t.y=this.y*n,this}scaleAndAddToRef(n,t){return t.x+=this.x*n,t.y+=this.y*n,this}equals(n){return n&&this.x===n.x&&this.y===n.y}floor(){return new R(Math.floor(this.x),Math.floor(this.y))}fract(){return new R(this.x-Math.floor(this.x),this.y-Math.floor(this.y))}rotate(n){const t=Math.cos(n),e=Math.sin(n),s=t*this.x-e*this.y,i=e*this.x+t*this.y;return this.x=s,this.y=i,this}rotateToRef(n,t){const e=Math.cos(n),s=Math.sin(n);return t.x=e*this.x-s*this.y,t.y=s*this.x+e*this.y,this}rotateByPoint(n,t=R.create(0,0)){const e=Math.cos(n),s=Math.sin(n),i=t.x+(this.x-t.x)*e-(this.y-t.y)*s,o=t.y+(this.x-t.x)*s+(this.y-t.y)*e;return this.x=i,this.y=o,this}transformCoordinateOnRotate(n){const t=Math.sqrt(this.x**2+this.y**2),e=Math.atan2(this.y,this.x),s=-n+e;return this.x=t*Math.cos(s),this.y=t*Math.sin(s),this}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}lengthSquared(){return this.x*this.x+this.y*this.y}normalize(){return R.NormalizeToRef(this,this),this}clone(){return new R(this.x,this.y)}}const P2=[1,0,0,1,0,0];class o1{constructor(n=P2){_(this,"dirty",!1);_(this,"_m");this._m=n&&n.slice()||P2}static create(n=P2){return new this(n)}reset(){this._m[0]=1,this._m[1]=0,this._m[2]=0,this._m[3]=1,this._m[4]=0,this._m[5]=0}copy(){return new o1(this._m)}copyInto(n){n._m[0]=this._m[0],n._m[1]=this._m[1],n._m[2]=this._m[2],n._m[3]=this._m[3],n._m[4]=this._m[4],n._m[5]=this._m[5]}applyPoint(n,t=!1){const e=this._m,s=e[0]*n.x+e[2]*n.y,i=e[1]*n.x+e[3]*n.y;return t?new R(s,i):new R(s+e[4],i+e[5])}translate(n,t){return this._m[4]+=this._m[0]*n+this._m[2]*t,this._m[5]+=this._m[1]*n+this._m[3]*t,this}scale(n,t){return this._m[0]*=n,this._m[1]*=n,this._m[2]*=t,this._m[3]*=t,this}rotate(n){const t=x1(n),e=Math.cos(t),s=Math.sin(t),i=this._m[0]*e+this._m[2]*s,o=this._m[1]*e+this._m[3]*s,a=this._m[0]*-s+this._m[2]*e,c=this._m[1]*-s+this._m[3]*e;return this._m[0]=i,this._m[1]=o,this._m[2]=a,this._m[3]=c,this}getTranslation(){return{x:this._m[4],y:this._m[5]}}skew(n,t){const e=this._m[0]+this._m[2]*t,s=this._m[1]+this._m[3]*t,i=this._m[2]+this._m[0]*n,o=this._m[3]+this._m[1]*n;return this._m[0]=e,this._m[1]=s,this._m[2]=i,this._m[3]=o,this}multiply(n){const t=this._m[0]*n._m[0]+this._m[2]*n._m[1],e=this._m[1]*n._m[0]+this._m[3]*n._m[1],s=this._m[0]*n._m[2]+this._m[2]*n._m[3],i=this._m[1]*n._m[2]+this._m[3]*n._m[3],o=this._m[0]*n._m[4]+this._m[2]*n._m[5]+this._m[4],a=this._m[1]*n._m[4]+this._m[3]*n._m[5]+this._m[5];return this._m[0]=t,this._m[1]=e,this._m[2]=s,this._m[3]=i,this._m[4]=o,this._m[5]=a,this}invert(){const n=1/(this._m[0]*this._m[3]-this._m[1]*this._m[2]),t=this._m[3]*n,e=-this._m[1]*n,s=-this._m[2]*n,i=this._m[0]*n,o=n*(this._m[2]*this._m[5]-this._m[3]*this._m[4]),a=n*(this._m[1]*this._m[4]-this._m[0]*this._m[5]);return this._m[0]=t,this._m[1]=e,this._m[2]=s,this._m[3]=i,this._m[4]=o,this._m[5]=a,this}getMatrix(){return this._m}getMatrixByAccurate(n=3){return this._m.map(t=>X2(t,n))}setAbsolutePosition(n){const t=this._m[0],e=this._m[1],s=this._m[2],i=this._m[3],o=this._m[4],a=this._m[5],c=(t*(n.y-a)-e*(n.x-o))/(t*i-e*s),l=(n.x-o-s*c)/t;return this.translate(l,c)}decompose(){const n=this._m[0],t=this._m[1],e=this._m[2],s=this._m[3],i=this._m[4],o=this._m[5],a=n*s-t*e,c={x:i,y:o,angle:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(n!==0||t!==0){const l=Math.sqrt(n*n+t*t);c.angle=t>0?Math.acos(n/l):-Math.acos(n/l),c.scaleX=l,c.scaleY=a/l,c.skewX=(n*e+t*s)/a,c.skewY=0}else if(e!==0||s!==0){const l=Math.sqrt(e*e+s*s);c.angle=Math.PI/2-(s>0?Math.acos(-e/l):-Math.acos(e/l)),c.scaleX=a/l,c.scaleY=l,c.skewX=0,c.skewY=(n*e+t*s)/a}return c.angle=J7(c.angle),c}makeBoundingBoxFromPoints(n){if(this)for(let u=0;u<n.length;u++)n[u]=this.applyPoint(n[u]);const t=[n[0].x,n[1].x,n[2].x,n[3].x],e=Math.min(...t),i=Math.max(...t)-e,o=[n[0].y,n[1].y,n[2].y,n[3].y],a=Math.min(...o),l=Math.max(...o)-a;return{left:e,top:a,width:i,height:l,points:n}}composeMatrix(n){const t=new o1([1,0,0,1,n.left||0,n.top||0]);return n.angle&&t.rotate(n.angle),(n.scaleX!==1||n.scaleY!==1||n.skewX||n.skewY||n.flipX||n.flipY)&&t.multiply(this._calcDimensionsMatrix(n)),this._m=t.getMatrix(),this}clone(){return new o1([...this._m])}_calcDimensionsMatrix(n){const t=n.scaleX??1,e=n.scaleY??1,s=new o1([n.flipX?-t:t,0,0,n.flipY?-e:e,0,0]);return n.skewX&&s.multiply(new o1([1,0,Math.tan(x1(n.skewX)),1,0,0])),n.skewY&&s.multiply(new o1([1,Math.tan(x1(n.skewY)),0,1,0,0])),s}}const W2=["top","left","width","height","angle","scaleX","scaleY","skewX","skewY","flipX","flipY","strokeWidth"];class M1{constructor(n){_(this,"groupKey");_(this,"isInGroup",!1);_(this,"onTransformChangeObservable",new f.Observable);_(this,"onPointerDownObserver",new f.Observable);_(this,"onPointerMoveObserver",new f.Observable);_(this,"onPointerUpObserver",new f.Observable);_(this,"onDblclickObserver",new f.Observable);_(this,"onTripleClickObserver",new f.Observable);_(this,"onMouseWheelObserver",new f.Observable);_(this,"onPointerOutObserver",new f.Observable);_(this,"onPointerLeaveObserver",new f.Observable);_(this,"onPointerOverObserver",new f.Observable);_(this,"onPointerEnterObserver",new f.Observable);_(this,"onIsAddedToParentObserver",new f.Observable);_(this,"onDisposeObserver",new f.Observable);_(this,"_oKey");_(this,"_dirty",!0);_(this,"_top",0);_(this,"_topOrigin",0);_(this,"_left",0);_(this,"_leftOrigin",0);_(this,"_width",0);_(this,"_widthOrigin",0);_(this,"_height",0);_(this,"_heightOrigin",0);_(this,"_angle",0);_(this,"_scaleX",1);_(this,"_scaleY",1);_(this,"_skewX",0);_(this,"_skewY",0);_(this,"_flipX",!1);_(this,"_flipY",!1);_(this,"_strokeWidth",0);_(this,"_parent");_(this,"_zIndex",0);_(this,"_evented",!0);_(this,"_visible",!0);_(this,"_debounceParentDirty",!0);_(this,"_transform",new o1);_(this,"_cursor",i1.DEFAULT);_(this,"_isTransformer",!1);_(this,"_forceRender",!1);_(this,"_layer");n?this._oKey=n:this._oKey=Q7()}get transform(){return this._transform}get topOrigin(){return this._topOrigin}get leftOrigin(){return this._leftOrigin}get widthOrigin(){return this._widthOrigin}get heightOrigin(){return this._heightOrigin}get classType(){return N.BASE_OBJECT}get top(){return this._top}get left(){return this._left}get width(){return this._width}get height(){return this._height}get strokeWidth(){return this._strokeWidth}get angle(){return this._angle}get scaleX(){return this._scaleX}get scaleY(){return this._scaleY}get ancestorScaleX(){var t;const n=((t=this.getParent())==null?void 0:t.ancestorScaleX)||1;return this.scaleX*n}get ancestorScaleY(){var t;const n=((t=this.getParent())==null?void 0:t.ancestorScaleY)||1;return this.scaleY*n}get skewX(){return this._skewX}get skewY(){return this._skewY}get flipX(){return this._flipX}get flipY(){return this._flipY}get parent(){return this._parent}get oKey(){return this._oKey}get zIndex(){return this._zIndex}get evented(){return this._evented}get visible(){return this._visible}get debounceParentDirty(){return this._debounceParentDirty}get isTransformer(){return this._isTransformer}get cursor(){return this._cursor}get layer(){return this._layer}set transform(n){this._transform=n}set zIndex(n){this._zIndex=n}set parent(n){this._parent=n}set evented(n){this._evented=n}set debounceParentDirty(n){this._debounceParentDirty=n}set isTransformer(n){this._isTransformer=n}set cursor(n){this.setCursor(n)}set layer(n){this._layer=n}set top(n){var t;this._topOrigin=n,this._top=A1(n,(t=this._parent)==null?void 0:t.height)}set left(n){var t;this._leftOrigin=n,this._left=A1(n,(t=this._parent)==null?void 0:t.width)}set width(n){var t;this._widthOrigin=n,this._width=A1(n,(t=this._parent)==null?void 0:t.width)}set height(n){var t;this._heightOrigin=n,this._height=A1(n,(t=this._parent)==null?void 0:t.height)}set strokeWidth(n){this._strokeWidth=n}set angle(n){this._angle=n}set scaleX(n){this._scaleX=n}set scaleY(n){this._scaleY=n}set skewX(n){this._skewX=n}set flipY(n){this._flipY=n}set flipX(n){this._flipX=n}set skewY(n){this._skewY=n}makeDirty(n=!0){if(this._dirty=n,n){if(this._layer==null){this._dirty=!1;return}typeof this._layer.debounceParentTimeout=="function"&&this._layer.debounceParentTimeout(),this._layer.debounceParentTimeout=f.requestImmediateMacroTask(()=>{var t;(t=this._layer)==null||t.makeDirty(n)})}return this}makeDirtyNoDebounce(n=!0){var t;return this._dirty=n,n&&((t=this._layer)==null||t.makeDirty(n)),this}isDirty(){return this._dirty}translate(n,t){const e=this.top;t!==void 0&&(this.top=t);const s=this.left;return n!==void 0&&(this.left=n),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.translate,value:{top:this._top,left:this._left},preValue:{top:e,left:s}}),this}resize(n,t){const e=this.width;n!==void 0&&(this.width=n);const s=this.height;return t!==void 0&&(this.height=t),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.resize,value:{width:this._width,height:this._height},preValue:{width:e,height:s}}),this}scale(n,t){const e=this.scaleX;n!==void 0&&(this.scaleX=n);const s=this.scaleY;return t!==void 0&&(this.scaleY=t),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.scale,value:{scaleX:this._scaleX,scaleY:this._scaleY},preValue:{scaleX:e,scaleY:s}}),this}skew(n,t){const e=n;n!==void 0&&(this.skewX=n);const s=t;return t!==void 0&&(this.skewY=t),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.skew,value:{skewX:this._skewX,skewY:this._skewY},preValue:{skewX:e,skewY:s}}),this}flip(n,t){const e=n;n!==void 0&&(this.flipX=n);const s=t;return t!==void 0&&(this.flipY=t),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.flip,value:{flipX:this._flipX,flipY:this._flipY},preValue:{flipX:e,flipY:s}}),this}transformByState(n){const t=Object.keys(n),e={};if(t.length!==0)return t.forEach(s=>{n[s]!==void 0&&(e[s]=this[s],this[s]=n[s])}),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.all,value:n,preValue:e}),this}isRender(n){return this._forceRender?!1:n&&!this.isInGroup}getParent(){return this._parent}getState(){return{left:this.left,top:this.top,width:this.width,height:this.height,scaleX:this.scaleX,scaleY:this.scaleY,angle:this.angle,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY}}hide(){this._visible=!1,this._makeDirtyMix()}show(){this._visible=!0,this._makeDirtyMix()}render(n,t){}isHit(n){const t=this._getInverseCoord(n);return t.x>=-this.strokeWidth/2&&t.x<=this.width+this.strokeWidth/2&&t.y>=-this.strokeWidth/2&&t.y<=this.height+this.strokeWidth/2}on(n,t){return this[`on${n}Observer`].add(t.bind(this))}off(n,t){this[`on${n}Observer`].remove(t)}clear(n){this[`on${n}Observer`].clear()}triggerPointerMove(n){var t,e;return(t=this.onPointerMoveObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerPointerMove(n),!1)}triggerPointerDown(n){var t,e;return(t=this.onPointerDownObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerPointerDown(n),!1)}triggerPointerUp(n){var t,e;return(t=this.onPointerUpObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerPointerUp(n),!1)}triggerDblclick(n){var t,e;return(t=this.onDblclickObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerDblclick(n),!1)}triggerTripleClick(n){var t,e;return(t=this.onTripleClickObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerTripleClick(n),!1)}triggerMouseWheel(n){var t,e;return(t=this.onMouseWheelObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerMouseWheel(n),!1)}triggerPointerOut(n){var t,e;return(t=this.onPointerOutObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerPointerOut(n),!1)}triggerPointerLeave(n){var t,e;return(t=this.onPointerLeaveObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerPointerLeave(n),!1)}triggerPointerOver(n){var t;return this.onPointerOverObserver.notifyObservers(n)?!0:((t=this._parent)==null||t.triggerPointerOver(n),!1)}triggerPointerEnter(n){var t,e;return(t=this.onPointerEnterObserver.notifyObservers(n))!=null&&t.stopPropagation?!0:((e=this._parent)==null||e.triggerPointerEnter(n),!1)}dispose(){var n;this.onPointerDownObserver.clear(),this.onPointerMoveObserver.clear(),this.onPointerUpObserver.clear(),this.onMouseWheelObserver.clear(),this.onPointerOutObserver.clear(),this.onPointerLeaveObserver.clear(),this.onPointerOverObserver.clear(),this.onPointerEnterObserver.clear(),this.onDblclickObserver.clear(),this.onTripleClickObserver.clear(),this.onIsAddedToParentObserver.clear(),(n=this.parent)==null||n.removeObject(this),this.onDisposeObserver.notifyObservers(this)}toJson(){const n={};return W2.forEach(t=>{this[t]&&(n[t]=this[t])}),n}getScene(){let n=this.parent;if(n!=null){if(n.classType===N.SCENE)return n;for(;n;){if(n.classType===N.SCENE)return n;n=n.getParent()}}}resetCursor(){var n;(n=this.getScene())==null||n.resetCursor()}setCursor(n){var t;this._cursor=n,(t=this.getScene())==null||t.setCursor(n)}getEngine(){let n=this.getParent();for(;n!=null;){if(n===N.ENGINE)return n;n=n.getParent()}return null}getObjects(){return[]}_getInverseCoord(n){return this._transform.clone().invert().applyPoint(n)}_setTransForm(){const n=o1.create().composeMatrix({left:this.left+this.strokeWidth/2,top:this.top+this.strokeWidth/2,scaleX:this.scaleX,scaleY:this.scaleY,angle:this.angle,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY});this.transform=n,this._makeDirtyMix()}_makeDirtyMix(){this.debounceParentDirty?this.makeDirty(!0):this.makeDirtyNoDebounce(!0)}}var c4=(r=>(r[r.SPAN=0]="SPAN",r[r.DIVIDE=1]="DIVIDE",r[r.LINE=2]="LINE",r[r.COLUMN=3]="COLUMN",r[r.SECTION=4]="SECTION",r[r.PAGE=5]="PAGE",r[r.DRAWING=6]="DRAWING",r[r.BULLET=7]="BULLET",r[r.HEADER=8]="HEADER",r[r.FOOTER=9]="FOOTER",r[r.ALL=10]="ALL",r))(c4||{}),i2=(r=>(r[r.SECTION=0]="SECTION",r[r.PAGE=1]="PAGE",r[r.COLUMN=2]="COLUMN",r))(i2||{}),B2=(r=>(r[r.PARAGRAPH=0]="PARAGRAPH",r[r.BLOCK=1]="BLOCK",r))(B2||{}),a1=(r=>(r[r.LETTER=0]="LETTER",r[r.WORD=1]="WORD",r[r.LIST=2]="LIST",r[r.PLACEHOLDER=3]="PLACEHOLDER",r[r.TAB=4]="TAB",r[r.IMAGE=5]="IMAGE",r[r.AT=6]="AT",r[r.MATH=7]="MATH",r[r.MULTI_LINE=8]="MULTI_LINE",r[r.CUSTOM=9]="CUSTOM",r))(a1||{}),y1=(r=>(r[r.VERTICAL=0]="VERTICAL",r[r.HORIZONTAL=1]="HORIZONTAL",r[r.AUTO=2]="AUTO",r))(y1||{});function Qh(r){var e;const n=r==null?void 0:r.parent;return n==null?!1:((e=n.spanGroup[0])==null?void 0:e.spanType)===a1.LIST}function t_(r,n){const t=l4(r,n);if(t==null)return!1;const{paragraphStyle:e}=t;return e==null?!1:f.checkParagraphHasIndentByStyle(e)}function e_(r){const n=r==null?void 0:r.parent,t=n==null?void 0:n.parent,e=n==null?void 0:n.spanGroup,s=t==null?void 0:t.divides;if(e&&r&&s&&n){const i=e.indexOf(r);if(s.indexOf(n)===s.length-1&&i===e.length-1)return!0}return!1}function n_(r){const n=r==null?void 0:r.parent,t=n==null?void 0:n.parent,e=n==null?void 0:n.spanGroup,s=t==null?void 0:t.divides;if(e&&r&&s&&n){const i=e.indexOf(r),o=s.indexOf(n);if(o===0&&i===0||o===0&&i===1&&e[0].spanType===a1.LIST)return!0}return!1}function l4(r,n){var s;const t=(s=r==null?void 0:r.parent)==null?void 0:s.parent;if(t==null||n==null)return;const e=n.paragraphs;if(e!=null){for(const i of e)if(i.startIndex===t.paragraphIndex)return i}}function s_(r){return r==null?!1:[f.DataStreamTreeTokenType.PARAGRAPH,f.DataStreamTreeTokenType.TAB,f.DataStreamTreeTokenType.SECTION_BREAK].indexOf(r.streamType)!==-1||r.content===f.DataStreamTreeTokenType.SPACE}function i_(r,n){return r==null||n==null||r.parent==null||n.parent==null?!1:r.parent.parent===n.parent.parent}function k6(){let r=1;const t=L6().getContext("2d");return r=(()=>{const e=window.devicePixelRatio||1,s=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return e/s})(),r<1?1:r}function N6(r,n,t){let e=0,s=0,i=0,o=0;const{startX:a,startY:c,endX:l,endY:u}=t;n===J.TOP?(e=a,s=c,i=l,o=c):n===J.BOTTOM?(e=a,s=u,i=l,o=u):n===J.LEFT?(e=a,s=c,i=a,o=u):n===J.RIGHT&&(e=l,s=c,i=l,o=u),r.beginPath(),r.moveTo(e,s),r.lineTo(i,o),r.stroke()}function u4(r,n,t){let e=0,s=0,i=0,o=0;const{startX:a,startY:c,endX:l,endY:u}=t;n===J.TL_BR?(e=a,s=c,i=l,o=u):n===J.TL_BC?(e=a,s=c,i=(a+l)/2,o=u):n===J.TL_MR?(e=a,s=c,i=l,o=(c+u)/2):n===J.BL_TR?(e=a,s=u,i=l,o=c):n===J.ML_TR?(e=a,s=(c+u)/2,i=l,o=c):n===J.BC_TR&&(e=(a+l)/2,s=u,i=l,o=c),r.beginPath(),r.moveTo(e,s),r.lineTo(i,o),r.stroke()}function h4(r,n,t,e,s){let i=0,o=0,a=0,c=0;const{startX:l,startY:u,endX:h,endY:g}=t;n===J.TOP?(i=l,o=u,a=h,c=u):n===J.BOTTOM?(i=l,o=g,a=h,c=g):n===J.LEFT?(i=l,o=u,a=l,c=g):n===J.RIGHT&&(i=h,o=u,a=h,c=g),r.beginPath(),r.clearRect(i-1/e,o-1/s,a-i+2/e,c-o+2/s)}function H6(r,n){n===f.BorderStyleTypes.HAIR?r.setLineDash([1,2]):n===f.BorderStyleTypes.DASH_DOT_DOT||n===f.BorderStyleTypes.MEDIUM_DASH_DOT_DOT?r.setLineDash([2,2,5,2,2]):n===f.BorderStyleTypes.DASH_DOT||n===f.BorderStyleTypes.MEDIUM_DASH_DOT||n===f.BorderStyleTypes.SLANT_DASH_DOT?r.setLineDash([2,5,2]):n===f.BorderStyleTypes.DOTTED?r.setLineDash([2]):n===f.BorderStyleTypes.DASHED||n===f.BorderStyleTypes.MEDIUM_DASHED?r.setLineDash([3]):r.setLineDash([0])}function _4(){const r=d4(1);return r-Math.floor(r)}function d4(r){return Math.ceil(r/k6()*100)/100}function X6(r){let n=1;return r===f.BorderStyleTypes.MEDIUM||r===f.BorderStyleTypes.MEDIUM_DASH_DOT||r===f.BorderStyleTypes.MEDIUM_DASHED||r===f.BorderStyleTypes.MEDIUM_DASH_DOT_DOT?n=2:r===f.BorderStyleTypes.THICK&&(n=3),n}function E2(r,n,t,e,s=R.create(0,0)){const i=r.add(n).rotateByPoint(e),o=i.subtract(n),a=e-t;return o.rotateByPoint(a,i).add(s).transformCoordinateOnRotate(a)}function f4(r){return r>0?v2.DOWN:v2.UP}function z6(r,n,t){var b;const e=[];let s=0,i=0,o=0,a=0,c=0;const l=f4(t),u=r.length;t=Math.abs(t);const h=Math.tan(t),g=Math.sin(t),p=Math.cos(t);if(l===v2.UP){let v=0;for(let m=0;m<u;m++){const S=r[m],{lineHeight:E=0}=S;v+=m===0?0:E;const y=n*g+E*p;e.push(v/h),y>i&&(i=y),m===0&&(o+=E*g,c+=E*p)}o+=v/g+n*p,c-=i}else{let v=0,m=-1;const S=[];for(let T=u-1;T>=0;T--){const O=r[T],{lineHeight:F=0}=O,w=F/h,B=(n+w)*g;S.unshift(F/h),B>i&&(i=B,v=w,m=T),T===0?o+=F*g:T===u-1?o+=n*p+F/g:o+=F/g}let E=((b=r[m])==null?void 0:b.lineHeight)||0,y=0;for(let T=m+1;T<=u-1;T++){const O=r[T],{lineHeight:F=0}=O;E+=F,y+=S[T]||0,e[T]=-y}y=0;for(let T=m-1;T>=0;T--){const O=r[T],{lineHeight:F=0}=O;y+=S[T+1]||0,e[T]=y,s+=F}e[m]=0,u===1&&(o+=n*p),a=E/g-v*p}return{rotateTranslateXList:e,rotatedHeight:i,rotatedWidth:o,fixOffsetX:a,fixOffsetY:c,rotateTranslateY:s}}function r_(){const r=.5-_4();return{left:r,top:r}}var g4=(r=>(r[r.PointerMove=0]="PointerMove",r[r.PointerDown=1]="PointerDown",r[r.PointerUp=2]="PointerUp",r[r.Dblclick=3]="Dblclick",r[r.Keyboard=4]="Keyboard",r))(g4||{});class $2{}_($2,"DOM_DELTA_PIXEL",0),_($2,"DOM_DELTA_LINE",1),_($2,"DOM_DELTA_PAGE",2);var d1=(r=>(r[r.Generic=0]="Generic",r[r.Keyboard=1]="Keyboard",r[r.Mouse=2]="Mouse",r[r.Touch=3]="Touch",r))(d1||{}),L=(r=>(r[r.Horizontal=0]="Horizontal",r[r.Vertical=1]="Vertical",r[r.LeftClick=2]="LeftClick",r[r.MiddleClick=3]="MiddleClick",r[r.RightClick=4]="RightClick",r[r.BrowserBack=5]="BrowserBack",r[r.BrowserForward=6]="BrowserForward",r[r.MouseWheelX=7]="MouseWheelX",r[r.MouseWheelY=8]="MouseWheelY",r[r.MouseWheelZ=9]="MouseWheelZ",r[r.DeltaHorizontal=10]="DeltaHorizontal",r[r.DeltaVertical=11]="DeltaVertical",r[r.FakeMove=12]="FakeMove",r))(L||{});const D4=[new R(0,0),new R(1,1)];class p4{constructor(n=D4){this._lines=n}intersection(n){if(this._lines.length<1||n.length<1)return;const t=[];for(let e=1;e<this._lines.length;e++){const s=this._lines[e-1],i=this._lines[e];for(let o=1;o<n.length;o++){const a=this._lines[e-1],c=this._lines[e],l=this._intersection({from:s,to:i},{from:a,to:c});l&&t.push(l)}}return t}_intersection(n,t){const e=n.from,s=n.to,i=t.from,o=t.to,a=(e.x-i.x)*(s.y-i.y)-(e.y-i.y)*(s.x-i.x),c=(e.x-o.x)*(s.y-o.y)-(e.y-o.y)*(s.x-o.x);if(a*c>=0)return!1;const l=(i.x-e.x)*(o.y-e.y)-(i.y-e.y)*(o.x-e.x),u=l+a-c;if(l*u>=0)return!1;const h=l/(c-a),g=h*(s.x-e.x),p=h*(s.y-e.y);return new R(e.x+g,e.y+p)}}class m4{constructor(n=30){_(this,"_enabled",!0);_(this,"_rollingFrameTime");_(this,"_lastFrameTimeMs");this._rollingFrameTime=new b4(n)}get averageFrameTime(){return this._rollingFrameTime.average}get averageFrameTimeVariance(){return this._rollingFrameTime.variance}get instantaneousFrameTime(){return this._rollingFrameTime.history(0)}get averageFPS(){return 1e3/this._rollingFrameTime.average}get instantaneousFPS(){const n=this._rollingFrameTime.history(0);return n===0?0:1e3/n}get isSaturated(){return this._rollingFrameTime.isSaturated()}get isEnabled(){return this._enabled}sampleFrame(n=this.Now()){if(this._enabled){if(this._lastFrameTimeMs!=null){const t=n-this._lastFrameTimeMs;this._rollingFrameTime.add(t)}this._lastFrameTimeMs=n}}Now(){return performance&&performance.now?performance.now():Date.now()}enable(){this._enabled=!0}disable(){this._enabled=!1,this._lastFrameTimeMs=null}reset(){this._lastFrameTimeMs=null,this._rollingFrameTime.reset()}}class b4{constructor(n){_(this,"average",0);_(this,"variance",0);_(this,"_samples",[]);_(this,"_sampleCount",0);_(this,"_pos",0);_(this,"_m2",0);this._samples=new Array(n),this.reset()}add(n){let t;if(this.isSaturated()){const e=this._samples[this._pos];t=e-this.average,this.average-=t/(this._sampleCount-1),this._m2-=t*(e-this.average)}else this._sampleCount++;t=n-this.average,this.average+=t/this._sampleCount,this._m2+=t*(n-this.average),this.variance=this._m2/(this._sampleCount-1),this._samples[this._pos]=n,this._pos++,this._pos%=this._samples.length}history(n){if(n>=this._sampleCount||n>=this._samples.length)return 0;const t=this._wrapPosition(this._pos-1);return this._samples[this._wrapPosition(t-n)]}isSaturated(){return this._sampleCount>=this._samples.length}reset(){this.average=0,this.variance=0,this._sampleCount=0,this._pos=0,this._m2=0}_wrapPosition(n){const t=this._samples.length;return(n%t+t)%t}}const y2={strokeWidth:1,stroke:"rgba(0,0,0, 0)",strokeActive:"rgba(0,0,0, 1)",fill:"rgba(0, 0, 0, 0.2)"};var m2=(r=>(r.NONE="none",r.BACKWARD="backward",r.FORWARD="forward",r))(m2||{});function e2(r){const n=r.getScene(),t=r.getViewportByCoord(n),e=0,s=0;if(!t)return{scrollX:e,scrollY:s};const i=t.getActualScroll(t.scrollX,t.scrollY);return{scrollX:i.x,scrollY:i.y}}class c2{constructor(n){_(this,"isCache",!1);_(this,"_pixelRatio",1);_(this,"_canvasEle");_(this,"_context");_(this,"_width",0);_(this,"_height",0);n=n||{},this._canvasEle=L6(),this._canvasEle.style.padding="0",this._canvasEle.style.margin="0",this._canvasEle.style.border="0",this._canvasEle.style.background="transparent",this._canvasEle.style.position="absolute",this._canvasEle.style.top="0",this._canvasEle.style.left="0",this._canvasEle.tabIndex=1,this._canvasEle.style.touchAction="none",this._canvasEle.style.outline="0",this._context=this._canvasEle.getContext("2d"),this.setSize(n.width,n.height,n.pixelRatio)}getCanvasEle(){return this._canvasEle}getContext(){return this._context}getPixelRatio(){return this._pixelRatio}getWidth(){return this._width}getHeight(){return this._height}setSize(n,t,e){this._pixelRatio=e||k6(),n&&(this._width=n,this._canvasEle.width=n*this._pixelRatio,this._canvasEle.style.width=`${n}px`),t&&(this._height=t,this._canvasEle.height=t*this._pixelRatio,this._canvasEle.style.height=`${t}px`),this.getContext().setTransform(this._pixelRatio,0,0,this._pixelRatio,0,0)}setPixelRatio(n){this._width===0||this._height===0||(n<1&&(n=1),this.setSize(this._width,this._height,n))}dispose(){this.clear(),this._canvasEle.remove()}clear(){this.getContext().clearRect(0,0,this._width*this._pixelRatio,this._height*this._pixelRatio)}toDataURL(n,t){try{return this._canvasEle.toDataURL(n,t)}catch{try{return this._canvasEle.toDataURL()}catch(s){const{message:i}=s;return console.error(`Unable to get data URL. ${i} For more info read https://universheet.net/docs/Canvas.html.`),""}}}}class o_ extends c2{constructor(n={width:0,height:0}){super(n),this.setSize(n.width,n.height)}}class a_ extends c2{constructor(t={width:0,height:0}){super(t);_(this,"hitCanvas",!0);this.setSize(t.width,t.height)}}class W6 extends M1{constructor(){super(...arguments);_(this,"_extensions",new Map)}get extensions(){return this._extensions}register(...t){for(const e of t)e.parent=this,this._extensions.set(e.uKey,e)}unRegister(...t){for(const e of t)this._extensions.delete(e)}getExtensionsByOrder(){const t=Array.from(this._extensions.values());return t.sort(f.sortRules),t}getExtensionByKey(t){return this._extensions.get(t)}draw(t,e){}}function v4(){return[]}function C4(r,n,t){return c_(r,n,t)}function c_(r,n,t){return t===f.GlyphType.DECIMAL?b7(r,n):t===f.GlyphType.ZERO_DECIMAL?l_(r,n):t===f.GlyphType.UPPER_ALPHA?u_(r,n):t===f.GlyphType.ALPHA?h_(r,n):t===f.GlyphType.UPPER_ROMAN?__(r,n):t===f.GlyphType.ROMAN?d_(r,n):b7(r,n)}function b7(r,n){return(r+n).toString()}function l_(r,n){const t=r+n;return t<10?`0${t}`:t.toString()}function u_(r,n){return f.numberToListABC(r+n-1,!0)}function h_(r,n){return f.numberToListABC(r+n-1,!1)}function __(r,n){return S4(r+n,!0)}function d_(r,n){return S4(r+n,!1)}function S4(r,n=!1){const t={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1};let s={m:1e3,cm:900,d:500,cd:400,c:100,xc:90,l:50,xl:40,x:10,ix:9,v:5,iv:4,i:1};n&&(s=t);let i="";for(const o in s)for(;r>=s[o];)i+=o,r-=s[o];return i}function E4(r,n,t,e){var h,g;if(!r||!n)return;const{listId:s,listType:i,nestingLevel:o=0,textStyle:a}=r,c=n[i];return!c||!c.nestingLevel?C6(s,(h=t==null?void 0:t[o])==null?void 0:h.startIndexItem):c.nestingLevel[o]?f_(s,o,c.nestingLevel,t,a):C6(s,(g=t==null?void 0:t[o])==null?void 0:g.startIndexItem)}function C6(r,n=1){return{listId:r,symbol:"●",ts:{ff:"Arial",fs:9},startIndexItem:n,bBox:{width:8.4560546875,ba:7,bd:-1,aba:7,abd:-1,sp:-2,sbr:.5,sbo:0,spr:.5,spo:0},indentFirstLine:0,hanging:21,indentStart:0}}function f_(r,n,t,e,s,i){var O;const o=t[n],{bulletAlignment:a,glyphFormat:c,textStyle:l,startNumber:u,glyphType:h,glyphSymbol:g,indentFirstLine:p,hanging:b,indentStart:v}=o,m={...s,...l},S=S2(m);let E;g?E=g:E=g_(c,n,t,e);const y=B1.getTextSize(E,S),T=((O=e==null?void 0:e[n])==null?void 0:O.startIndexItem)??1;return{listId:r,symbol:E,ts:m,fontStyle:S,startIndexItem:T+1,bBox:y,nestingLevel:o,bulletAlign:a,bulletType:g?!1:!!h,indentFirstLine:p,hanging:b,indentStart:v}}function g_(r,n,t,e){var a;const s=r.split("%"),o=[s[0]];for(let c=1;c<s.length;c++){const l=s[c],{level:u,suffix:h}=p_(l);let g=((a=e==null?void 0:e[u])==null?void 0:a.startIndexItem)||1;u!==n&&(e==null?void 0:e[u])!==null&&(g-=1);const p=D_(g,t[u]);o.push(p,h)}return o.join("")}function D_(r=1,n){const{startNumber:t,glyphType:e,glyphSymbol:s}=n;return s||(e?C4(r,t,e):"●")}function p_(r){if(r==="")return{level:0,suffix:""};const n=r.split("");let t="",e="",s=!1;const i=/[0-9]/g;return n.forEach(o=>{!s&&i.test(`${t}${o}`)?t+=o:(s=!0,e+=o)}),{level:parseInt(t)-1,suffix:e}}function y4(r,n,t,e,s){return[]}function j1(r){return r[r.length-1]}function l2(r){var n;return(n=r.sections)==null?void 0:n[r.sections.length-1]}function m_(r){const n=l2(r).columns;return n==null?void 0:n[n.length-1]}function T4(r){var t;const n=(t=T2(r))==null?void 0:t.column.lines;return n==null?void 0:n[n.length-1]}function F4(r){return r.lines[r.lines.length-1]}function b_(r){const{pageWidth:n,marginLeft:t,marginRight:e}=r;return n-t-e}function v_(r){const n=r.parent,t=n==null?void 0:n.lines.indexOf(r);if(!(!t||t===-1||t-1<0))return n==null?void 0:n.lines[t-1]}function C_(r){var t;const n=(t=r.parent)==null?void 0:t.parent;if(n)return n}function T2(r){const n=l2(r);for(let t=0;t<n.columns.length;t++){const e=n.columns[t];if(!e.isFull)return{column:e,isLast:t===n.columns.length-1,index:t}}}function Y6(r){const n=T4(r);if(n)for(let t=0;t<n.divides.length;t++){const e=n.divides[t];if(!e.isFull)return{divide:e,isLast:t===n.divides.length-1,index:t}}}function S_(r,n){const t=r.divides.indexOf(n);if(t!==-1)return r.divides[t+1]}function E_(r){if(r)for(let n=0;n<r.divides.length;n++){const t=r.divides[n],e=r.divides[n+1];if(t.spanGroup.length===0||!e||e.spanGroup.length===0)return t}}function y_(r){var t;const n=(t=Y6(r))==null?void 0:t.divide.spanGroup;return n==null?void 0:n[n.length-1]}function O4(r){const n=l2(r),t=n.columns.length;for(let e=0;e<t;e++)if(!n.columns[e].isFull)return!1;return!0}function T_(r){if(r.sections.length>1)return!1;const n=l2(r),t=n.columns.length;for(let e=0;e<t;e++){const s=n.columns[e];if(!w4(s))return!1}return!0}function w4(r){const n=r.lines;if(n.length>1)return!1;const t=n[n.length-1];return F_(t)}function F_(r){if(!r)return!0;for(let n=0;n<r.divides.length;n++){const t=r.divides[n].spanGroup.length;if(t>1)return!1;if(t===1){const e=r.divides[n].spanGroup[0],{spanType:s}=e;if(s!==a1.TAB&&s!==a1.LIST)return!1}}return!0}function O_(){}function R1(r,n){if(r instanceof Object){const{v:t,u:e}=r;return e===f.NumberUnitType.POINT?t:t*n}return r}function e6(r=0,n,t=f.GridType.LINES,e=f.BooleanNumber.TRUE){let s=1;return j6(t,e)&&(s=r),s*=n,s}function j6(r=f.GridType.LINES,n=f.BooleanNumber.FALSE){return n===f.BooleanNumber.TRUE&&(r===f.GridType.LINES_AND_CHARS||r===f.GridType.SNAP_TO_CHARS)}function U6(r,n){const{paragraphStyle:t={}}=n,{linePitch:e=15.6,gridType:s=f.GridType.LINES,paragraphLineGapDefault:i=0}=r,{lineSpacing:o=1,spacingRule:a=f.SpacingRule.AUTO,snapToGrid:c=f.BooleanNumber.TRUE}=t;return{paragraphLineGapDefault:i,linePitch:e,gridType:s,lineSpacing:o,spacingRule:a,snapToGrid:c}}function B4(r,n){const{paragraphStyle:t={}}=n,{charSpace:e=0,gridType:s=f.GridType.LINES,defaultTabStop:i=36,documentTextStyle:o={}}=r,{fs:a=j7}=o,{snapToGrid:c=f.BooleanNumber.TRUE}=t;return{charSpace:e,documentFontSize:a,defaultTabStop:i,gridType:s,snapToGrid:c}}function Y2(r,n=-1){let t=n;for(const e of r){const{sections:s}=e,i=t;let o=i,a=-1/0,c=0;for(const l of s){const{columns:u}=l,h=o;let g=h,p=-1/0,b=0;for(const v of u){const{lines:m}=v,S=g;let E=S,y=0,T=-1/0,O=null;for(const F of m){const{divides:w,lineHeight:B}=F,A=E;let x=A,M=0,k=0;y+=B;const I=w.length;for(let H=0;H<I;H++){const P=w[H],{spanGroup:z}=P,$=x;let W=$;for(const j of z){const G=j.spanType===a1.LIST?0:j.count;W+=G;const Y=j.bBox,{ba:U}=Y;k=Math.max(k,U),H===I-1&&(M+=j.width)}H===I-1&&(M+=P.left),z.length!==0&&(P.st=$+1,P.ed=W>=P.st?W:P.st,x=P.ed)}F.st=A+1,F.ed=x>=F.st?x:F.st,F.width=M,F.asc=k,T=Math.max(T,M),F.top=((O==null?void 0:O.top)||0)+((O==null?void 0:O.lineHeight)||0),O=F,E=F.ed}v.st=S+1,v.ed=E>=v.st?E:v.st,v.height=y,v.width=T,b+=T,p=Math.max(p,v.height),g=v.ed}l.st=h+1,l.ed=g>=l.st?g:l.st,l.height=p,c+=p,a=Math.max(a,b),o=l.ed}e.st=i+1,e.ed=o>=e.st?o:e.st,e.height=c,e.width=a,t=e.ed}}function w_(r,n){for(const t of r){const{sections:e}=t;for(const s of e){const{columns:i}=s;for(const o of i){const{lines:a}=o;for(const c of a){const{divides:l,lineHeight:u}=c,h=l.length;for(let g=0;g<h;g++){const p=l[g],{spanGroup:b}=p;for(const v of b)n&&Z2(n)&&n(v)}}}}}}function A4(r,n){for(const t of r){const{sections:e}=t;for(const s of e){const{columns:i}=s;for(const o of i){const{lines:a}=o;for(const c of a)n&&Z2(n)&&n(c)}}}}function R4(r,n){for(const t of r){const{sections:e}=t;for(const s of e){const{columns:i}=s;for(const o of i)n&&Z2(n)&&n(o)}}}function x4(r,n,t,e,s=!1){const{relativeFrom:i,align:o,posOffset:a,percent:c}=r;if(o!=null)if(o===f.AlignTypeH.INSIDE||o===f.AlignTypeH.OUTSIDE)i===f.ObjectRelativeFromH.MARGIN||f.ObjectRelativeFromH.PAGE;else{if(i===f.ObjectRelativeFromH.COLUMN){const{width:l,left:u}=n;let h=0;return o===f.AlignTypeH.LEFT?h=u:o===f.AlignTypeH.RIGHT?h=u+l-e:o===f.AlignTypeH.CENTER&&(h=u+l/2-e/2),h}if(i!==f.ObjectRelativeFromH.LEFT_MARGIN){if(i!==f.ObjectRelativeFromH.MARGIN){if(i!==f.ObjectRelativeFromH.RIGHT_MARGIN){if(i!==f.ObjectRelativeFromH.INSIDE_MARGIN){if(i!==f.ObjectRelativeFromH.OUTSIDE_MARGIN){if(i===f.ObjectRelativeFromH.PAGE){const{pageWidth:l}=t;let u=0;return o===f.AlignTypeH.RIGHT?u=l-e:o===f.AlignTypeH.CENTER&&(u=l/2-e/2),u}}}}}}}else if(a){const{pageWidth:l,marginLeft:u,marginRight:h}=t,g=l-h;let p=0;return i===f.ObjectRelativeFromH.COLUMN?p=(s?0:(n==null?void 0:n.left)||0)+a:i===f.ObjectRelativeFromH.LEFT_MARGIN||(i===f.ObjectRelativeFromH.MARGIN?p=a+u:i===f.ObjectRelativeFromH.RIGHT_MARGIN||i===f.ObjectRelativeFromH.INSIDE_MARGIN||i===f.ObjectRelativeFromH.OUTSIDE_MARGIN||i===f.ObjectRelativeFromH.PAGE&&(p=a)),p+e>g&&(p=g-e),p}else if(c){const{pageWidth:l,marginLeft:u,marginRight:h}=t;if(i!==f.ObjectRelativeFromH.LEFT_MARGIN){if(i!==f.ObjectRelativeFromH.MARGIN){if(i!==f.ObjectRelativeFromH.RIGHT_MARGIN){if(i!==f.ObjectRelativeFromH.INSIDE_MARGIN){if(i!==f.ObjectRelativeFromH.OUTSIDE_MARGIN){if(i===f.ObjectRelativeFromH.PAGE)return c*l}}}}}}}function M4(r,n,t,e,s,i,o=!1){const{relativeFrom:a,align:c,posOffset:l,percent:u}=r;if(c!=null){if(a===f.ObjectRelativeFromV.LINE){let h=0;return c===f.AlignTypeV.BOTTOM?h=t+e-s:c===f.AlignTypeV.TOP?h=t:c===f.AlignTypeV.CENTER&&(h=t+e/2-s/2),h}if(a!==f.ObjectRelativeFromV.TOP_MARGIN){if(a!==f.ObjectRelativeFromV.MARGIN){if(a!==f.ObjectRelativeFromV.BOTTOM_MARGIN){if(a!==f.ObjectRelativeFromV.INSIDE_MARGIN){if(a!==f.ObjectRelativeFromV.OUTSIDE_MARGIN){if(a===f.ObjectRelativeFromV.PAGE){const{pageHeight:h}=n;let g=0;return c===f.AlignTypeV.BOTTOM?g=h-s:c===f.AlignTypeV.CENTER&&(g=h/2-s/2),g}}}}}}}else if(l){let h=0;return a===f.ObjectRelativeFromV.LINE?h=t||0+l:a===f.ObjectRelativeFromV.TOP_MARGIN||a===f.ObjectRelativeFromV.MARGIN||a===f.ObjectRelativeFromV.BOTTOM_MARGIN||a===f.ObjectRelativeFromV.INSIDE_MARGIN||a===f.ObjectRelativeFromV.OUTSIDE_MARGIN||(a===f.ObjectRelativeFromV.PAGE?h=l:a===f.ObjectRelativeFromV.PARAGRAPH&&(h=(o?0:i??t)+l)),h}else if(u){const{pageHeight:h,marginBottom:g,marginTop:p}=n;if(a!==f.ObjectRelativeFromV.TOP_MARGIN){if(a!==f.ObjectRelativeFromV.MARGIN){if(a!==f.ObjectRelativeFromV.BOTTOM_MARGIN){if(a!==f.ObjectRelativeFromV.INSIDE_MARGIN){if(a!==f.ObjectRelativeFromV.OUTSIDE_MARGIN){if(a===f.ObjectRelativeFromV.PAGE)return u*h}}}}}}}function L4(r){const n=r.spanGroup;let t=0;for(const e of n)t+=e.width;return t}const S6=new f.ObjectMatrix;function I4(){S6.reset()}function U1(r,n,t,e,s){const{startIndex:i}=t,o=n.getTextRun(r+i)||{ts:{},st:0,ed:0},{ts:a={},st:c,ed:l}=o,u=S6.getValue(c,l);if(u)return u;const{gridType:h=f.GridType.LINES,charSpace:g=0,documentTextStyle:p={},pageSize:b={width:1/0,height:1/0},marginRight:v=0,marginLeft:m=0,localeService:S}=e,{snapToGrid:E=f.BooleanNumber.TRUE}=s,y=S2(a),T={...p,...a},O=b.width||1/0-m-v,F={fontStyle:y,textStyle:T,charSpace:g,gridType:h,snapToGrid:E,pageWidth:O};return S6.setValue(c,l,F),F}function P4(r,n,t){return n6(a1.WORD,r,n,t)}function A2(r,n,t){return n6(a1.LETTER,r,n,t)}function $4(r,n){return n6(a1.TAB,f.DataStreamTreeTokenType.TAB,r,n)}function n6(r,n,t,e){const{fontStyle:s,textStyle:i,charSpace:o=1,gridType:a=f.GridType.LINES,snapToGrid:c=f.BooleanNumber.FALSE}=t,l=[f.DataStreamTreeTokenType.SECTION_BREAK,f.DataStreamTreeTokenType.TABLE_START,f.DataStreamTreeTokenType.TABLE_END,f.DataStreamTreeTokenType.TABLE_ROW_START,f.DataStreamTreeTokenType.TABLE_ROW_END,f.DataStreamTreeTokenType.TABLE_CELL_START,f.DataStreamTreeTokenType.TABLE_CELL_END,f.DataStreamTreeTokenType.CUSTOM_RANGE_START,f.DataStreamTreeTokenType.CUSTOM_RANGE_END,f.DataStreamTreeTokenType.COLUMN_BREAK,f.DataStreamTreeTokenType.PAGE_BREAK,f.DataStreamTreeTokenType.DOCS_END,f.DataStreamTreeTokenType.CUSTOM_BLOCK];let u=f.DataStreamTreeTokenType.LETTER;if(l.indexOf(n)>-1)return{content:"",ts:i,fontStyle:s,width:0,bBox:{width:0,ba:0,bd:0,aba:0,abd:0,sp:0,sbr:0,sbo:0,spr:0,spo:0},paddingLeft:0,left:0,spanType:a1.PLACEHOLDER,streamType:n,count:1};n===f.DataStreamTreeTokenType.PARAGRAPH&&(u=f.DataStreamTreeTokenType.PARAGRAPH);const h=B1.getTextSize(n,s),{width:g=0}=h;let p=e??g,b=0;return j6(a,c)&&(p=g+(Q2(n)?o:o/2),a===f.GridType.SNAP_TO_CHARS&&(b=(p-g)/2)),{content:n,ts:i,fontStyle:s,width:p,bBox:h,paddingLeft:b,left:0,spanType:r,streamType:u,count:n.length}}function k4(r,n,t){const{bBox:e,symbol:s,ts:i,fontStyle:o,bulletAlign:a=f.BulletAlignment.START,bulletType:c=!1}=n,l=e.width,u=Math.ceil(l/t);let h=(u<2?2:u)*t,g=0;c&&(a===f.BulletAlignment.CENTER?(g=-l/2,h-=g):a===f.BulletAlignment.END&&(g=-l,h-=g));const p=A_(r,n);return{content:s,ts:i,fontStyle:o,width:h,paddingLeft:0,bBox:p,left:g,spanType:a1.LIST,streamType:f.DataStreamTreeTokenType.LETTER,count:0}}function N4(r,n=0){const t=r.length;let e;for(let s=0;s<t;s++){const i=r[s];i.left=e?e.left+e.width:n,e=i}}function B_(r,n=0){r.left=n}function k2(r,n,t=0){N4(n,t);for(const e of n)e.parent=r;r.spanGroup.push(...n)}function A_(r,n){const{ba:t,bd:e}=r.bBox,{ba:s,bd:i}=n.bBox;return t+e>s+i?r.bBox:n.bBox}function H4(r,n){if(r==null)return!1;const{content:t}=r,{content:e}=n;if(t==null||e==null)return!1;const s=/[a-z\d]/i;return s.test(t)&&z2(e)||z2(t)&&s.test(e)}function X4(r,n,t,e,s,i){const o=[];let a=0;for(let c=0;c<n.length;c++){const l=n[c];if(e4(l))break;const u=U1(r+c,t,e,s,i),h=A2(l,u);o.push(h),a++}return{step:a,spanGroup:o}}function z4(r,n,t,e,s,i){const o=U1(r,t,e,s,i),a=[];let c=0;for(let l=0;l<n.length;l++){const u=n[l];if(P6(u))a.unshift(u),c++;else break}return{step:c,spanGroup:[A2(a.join(""),o)]}}function W4(r,n,t,e,s,i){const o=U1(r,t,e,s,i),a=n.match(I6);return{step:a[0].length,spanGroup:[A2(a[0],o)]}}function Y4(r,n,t,e,s,i){const o=U1(r,t,e,s,i),a=[];let c=0;for(let l=0;l<n.length;l++){const u=n[l];if($6(u))a.push(u),c++;else break}return{step:c,spanGroup:[P4(a.join(""),o)]}}function j4(r,n,t,e,s=0,i=!1,o,a,c){const{lineHeight:l=15.6,lineTop:u=0,contentHeight:h=0,paddingLeft:g=0,paddingRight:p=0,paddingTop:b=0,paddingBottom:v=0,marginTop:m=0,spaceBelowApply:S=0}=t,E=$_(n,r);E.lineIndex=s,E.paragraphStart=i,E.contentHeight=h,E.top=u,E.lineHeight=l,E.paddingTop=b,E.paddingBottom=v,E.marginTop=m,E.spaceBelowApply=S,E.divides=R_(l,u,e,g,p,o,a,c);for(const y of E.divides)y.parent=E;return E}function U4(r=15.6,n=0,t,e,s){let i=n;return e==null||e.forEach(o=>{const a=l6(o,r,n);a&&(i=Math.max(i,a))}),s==null||s.forEach(o=>{const a=l6(o,r,n);a&&(i=Math.max(i,a))}),t==null||t.forEach(o=>{const a=l6(o,r,n);a&&(i=Math.max(i,a))}),i}function l6(r,n,t){const{aTop:e,height:s,aLeft:i,width:o,angle:a=0,drawingOrigin:c}=r,{layoutType:l,distT:u=0,distB:h=0}=c;if(l!==f.PositionedObjectLayoutType.WRAP_TOP_AND_BOTTOM)return;if(a===0){const b=e-u,v=s+h;return b+v<t||b>n+t?void 0:b+s}let{top:g=0,height:p=0}=G4(a,i,o,e,s);if(g-=u,p+=h,!(g+p<t||g>n+t))return g+p}function R_(r,n,t,e,s,i,o,a){const c=[];return c.push({left:0,width:e},{left:t-s,width:s}),o==null||o.forEach((l,u)=>{const h=u6(l,r,n,t);h&&c.push(h)}),a==null||a.forEach((l,u)=>{const h=u6(l,r,n,t);h&&c.push(h)}),i==null||i.forEach((l,u)=>{const h=u6(l,r,n,t);h&&c.push(h)}),P_(t,c)}function V4(r,n){r.isFull=n}function x_(r,n){r.marginBottom=n}function M_(r){}function u6(r,n,t,e){const{aTop:s,height:i,aLeft:o,width:a,angle:c=0,drawingOrigin:l}=r,{layoutType:u}=l;if(u===f.PositionedObjectLayoutType.WRAP_NONE||u===f.PositionedObjectLayoutType.WRAP_TOP_AND_BOTTOM)return;if(u===f.PositionedObjectLayoutType.WRAP_POLYGON){const{start:g=[0,0],lineTo:p}=l;if(!p)return;const b=[];b.push(new R(g[0],g[1]));for(let v=0;v<p.length;v++){const m=p[v];b.push(new R(m[0],m[1]))}if(c!==0){const v=new o1().rotate(c);for(let m=0;m<b.length;m++){const S=b[m];b[m]=v.applyPoint(S)}}return v7(b,t,n,e)}if(c===0)return C7(s,i,o,a,t,n,e,l);const h=G4(c,o,a,s,i);if(u===f.PositionedObjectLayoutType.WRAP_SQUARE){const{left:g,width:p,top:b,height:v}=h;return C7(b,v,g,p,t,n,e,l)}return v7(h.points,t,n,e)}function G4(r,n,t,e,s){const i=new o1().rotate(r),o=new R(n,e),a=new R(n,e+s),c=new R(n+t,e),l=new R(n+t,e+s);return i.makeBoundingBoxFromPoints([o,a,c,l])}function v7(r,n,t,e){const s=new p4(r),i=s.intersection([new R(0,n),new R(e,n)]),o=s.intersection([new R(0,n+t),new R(e,n+t)]);if(!i&&!o)return;const a=L_([...r,...i||[],...o||[]]);return{left:a.min,width:a.max}}function L_(r,n=0){const t=[];for(let e=0;e<r.length;e++){const s=r[e];n===0?t.push(s.x):t.push(s.y)}return{max:Math.max(...t),min:Math.min(...t)}}function C7(r,n,t,e,s,i,o,a){const{layoutType:c,wrapText:l=f.WrapTextType.BOTH_SIDES,distL:u=0,distR:h=0,distT:g=0,distB:p=0}=a,b=r-(c===f.PositionedObjectLayoutType.WRAP_SQUARE?g:0),v=n+(c===f.PositionedObjectLayoutType.WRAP_SQUARE?p:0);if(b+v<s||b>i+s)return;let m=t-u,S=e+h;const E=I_(l,m,S,o);return E===1?S=o-m:E===2&&(m=0,S=t+e+h),{left:m,width:S}}function I_(r,n,t,e){let s=0;return r===f.WrapTextType.LEFT?s=1:r===f.WrapTextType.RIGHT?s=2:r===f.WrapTextType.LARGEST&&(n>e-n-t?s=1:s=2),s}function P_(r,n){n.sort((i,o)=>i.left>o.left?1:-1);const t=[];let e=0;const s=n.length;for(let i=0;i<s;i++){const o=n[i],{left:a,width:c}=o;if(a>e){let l=a-e;l=l<r?l:r-e;const u=S7(e,l);t.push(u)}if(e=Math.max(a+c,e),i===s-1&&a+c<r){const l=S7(a+c,r-a-c);t.push(l)}}return t}function S7(r,n){return{spanGroup:[],width:n,left:r,paddingLeft:0,isFull:!1,st:0,ed:0}}function $_(r,n){return{paragraphIndex:n,type:r,divides:[],lineHeight:0,contentHeight:0,top:0,asc:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0,spaceBelowApply:0,divideLen:0,st:-1,ed:-1,lineIndex:0,paragraphStart:!1}}function K4(r,n,t,e){if(e)if(e.has(r)){const s=e.get(r);s==null||s.elements.push(n)}else e.set(r,{elements:[n],paragraphIndex:r,top:t})}function V6(r,n,t,e,s,i){const o=[],a=new Map;for(const c of n.children){let l=[],u=t;o.length>0&&(u=o[o.length-1]),c.nodeType===f.DataStreamTreeNodeType.PARAGRAPH?l=ht(r,c,u,e,s):(c.nodeType,f.DataStreamTreeNodeType.TABLE),l.length===0&&(l=v4()),k_(o,l)}return{pages:o,renderedBlockIdMap:a}}function k_(r,n){const t=r.length-1,e=r[t],s=n[0];e===s&&n.splice(0,1),r.push(...n)}function N_(){}function G6(r=[],n=f.ColumnSeparatorType.NONE,t=0,e=0,s=1/0,i=1/0){const o=[];let a=0,c=0;if(r.length===0)o.push(h6(e,s,0,f.ColumnSeparatorType.NONE));else for(let u=0;u<r.length;u++){const{width:h,paddingEnd:g}=r[u];c=g,a=h,o.push(h6(e,a,c,n)),e+=a+c,u===r.length-1&&(a=s!==1/0?s-a:h,c=0,o.push(h6(e,a,c,n)))}const l={columns:o,colCount:(r==null?void 0:r.length)||1,height:i,top:t,st:0,ed:0};return o.forEach(u=>{u.parent=l}),l}function K6(r,n){r.isFull=n}function h6(r,n,t,e){return{lines:[],left:r,width:n,height:0,spaceWidth:t,separator:e,st:0,ed:0,drawingLRIds:[],isFull:!1}}function r2(r,n,t=1,e=i2.SECTION){var _1,b1,D1,l1;const s=H_(),{pageNumberStart:i=1,pageSize:o={width:1/0,height:1/0},pageOrient:a=f.PageOrientType.PORTRAIT,headerIds:c={},footerIds:l={},useFirstPageHeaderFooter:u,useEvenPageHeaderFooter:h,footerTreeMap:g,headerTreeMap:p,columnProperties:b=[],columnSeparatorType:v,marginTop:m=0,marginBottom:S=0,marginHeader:E=0,marginFooter:y=0,marginLeft:T=0,marginRight:O=0,renderConfig:F={}}=r,{skeHeaders:w,skeFooters:B}=n,{width:A=1/0,height:x=1/0}=o;s.pageNumber=t,s.pageNumberStart=i,s.renderConfig=F,s.marginLeft=T,s.marginRight=O,s.breakType=e,s.pageWidth=A,s.width=0,s.pageHeight=x,s.height=0,s.pageOrient=a;const{defaultHeaderId:M,evenPageHeaderId:k,firstPageHeaderId:I}=c,{defaultFooterId:H,evenPageFooterId:P,firstPageFooterId:z}=l;let $=M??"",W=H??"";t===i&&u?($=I??"",W=z??""):t%2===0&&h&&($=k??"",W=P??"");let j,G;$&&((_1=w.get($))!=null&&_1.has(A)?j=(b1=w.get($))==null?void 0:b1.get(A):p&&p.has($)&&(j=E7(p.get($),r,n),w.set($,new Map([[A,j]]))),s.headerId=$),W&&((D1=B.get(W))!=null&&D1.has(A)?G=(l1=B.get(W))==null?void 0:l1.get(A):g&&g.has(W)&&(G=E7(g.get(W),r,n),B.set($,new Map([[A,G]]))),s.footerId=W),s.marginTop=y7(m,E,j),s.marginBottom=y7(S,y,G);const Y=s.sections,U=Y[Y.length-1],{marginTop:q,marginBottom:s1,marginLeft:e1,marginRight:Q}=s,t1=A-e1-Q,V=x-q-s1;let K=0;U&&(K=U.top+U.height);const r1=G6(b,v,K,0,t1,V-K);return r1.parent=s,Y.push(r1),s}function H_(){return{sections:[],headerId:"",footerId:"",pageWidth:0,pageHeight:0,pageOrient:f.PageOrientType.PORTRAIT,pageNumber:1,pageNumberStart:1,verticalAlign:!1,angle:0,width:0,height:0,marginLeft:0,marginRight:0,marginTop:0,marginBottom:0,breakType:i2.SECTION,st:0,ed:0,skeDrawings:new Map}}function E7(r,n,t,e=!0){const{lists:s,footerTreeMap:i,headerTreeMap:o,localeService:a,pageSize:c,marginLeft:l=0,marginRight:u=0,drawings:h,marginTop:g=0,marginBottom:p=0,marginHeader:b=0,marginFooter:v=0}=n,m=(c==null?void 0:c.width)||1/0,S={lists:s,footerTreeMap:i,headerTreeMap:o,pageSize:{width:m-l-u,height:1/0},localeService:a,drawings:h},E=r2(S,t),y=V6(r,r.children[0],E,S,t).pages[0];Y2([y]);const T=y.sections[0].columns[0],O=T.height||0,{skeDrawings:F,st:w,ed:B}=y,A={lines:T.lines,skeDrawings:F,height:O,st:w,ed:B,marginLeft:l,marginRight:u};return e?{...A,marginTop:X_(g,b,O)}:{...A,marginBottom:z_(p,v,O)}}function y7(r,n,t){return!t||t.lines.length===0?r:Math.max(r,n,(t==null?void 0:t.height)||0)}function X_(r,n,t){const e=Math.max(r,n);return t>e?0:e-t}function z_(r,n,t){const e=Math.max(r,n);return t>e?0:e-t}function E6(r,n,t,e,s=!1){if(s)if(e.bulletSkeleton){const{bulletSkeleton:i,paragraphStyle:o={}}=e,{gridType:a=f.GridType.LINES,charSpace:c=0,defaultTabStop:l=1}=t,{snapToGrid:u=f.BooleanNumber.TRUE}=o,h=e6(c,l,a,u);K_(o,i,h);const g=k4(r[0],i,h);z1([g,...r],n,t,e,s)}else z1(r,n,t,e,s);else j2(r,n,t,e,s);return[...n]}function j2(r,n,t,e,s=!1,i=!0,o){var l;const a=j1(n),c=Y6(a);if(c){const u=T7(r),{divide:h}=c,g=(l=h==null?void 0:h.spanGroup)==null?void 0:l[h.spanGroup.length-1],p=(g==null?void 0:g.width)||0,b=(g==null?void 0:g.left)||0,v=H4(g,r[0]);let m=0,S=p+b;if(v&&i){const E=z2(g.content),y=" ";m=B1.getTextSize(y,E?r[0].fontStyle:g.fontStyle).width,S+=m,g.width+=m}if(S+u>h.width)if(V4(h,!0),c.isLast&&r.length===1&&(r[0].content===f.DataStreamTreeTokenType.SPACE||r[0].content===f.DataStreamTreeTokenType.PARAGRAPH))k2(h,r,S);else if((h==null?void 0:h.spanGroup.length)===0){const E=[];for(;r.length&&(E.push(r.shift()),!(T7(E)>h.width)););k2(h,E,S),r.length&&z1(r,n,t,e,s,o)}else z1(r,n,t,e,s,o);else{const E=h.parent,y=V_(r);if(E&&y&&!q_(E)){const{paragraphLineGapDefault:T,linePitch:O,lineSpacing:F,spacingRule:w,snapToGrid:B,gridType:A}=U6(t,e),{boundingBoxAscent:x,boundingBoxDescent:M}=y,k=x+M,{contentHeight:I}=Z4(k,T,O,A,F,w,B);if(E.contentHeight<I){const H=G_(E),P=H.length;let z=[],$=1;P>2&&H[0].spanType===a1.LIST?(z=[H[0],H[1]],$=2):z=[H[0]];const W=E.parent,{paragraphStart:j}=W==null?void 0:W.lines.pop();z1(z,n,t,e,j,x+M);for(let G=$;G<H.length;G++)j2([H[G]],n,t,e,s,!1);j2(r,n,t,e,s,!1);return}}k2(h,r,S)}}else z1(r,n,t,e,s,o)}function z1(r,n,t,e,s=!1,i){var $1,K1,O1,q1,k1;let o=j1(n),a=T2(o);if((!a||!a.column)&&(J4(r,n,t,e),o=j1(n),a=T2(o)),!a)return;const c=a.column,l=F4(c),{ba:u,bd:h}=r[0].bBox,g=i||u+h,{paragraphStyle:p={},paragraphAffectSkeDrawings:b,skeHeaders:v,skeFooters:m,drawingAnchor:S,paragraphIndex:E}=e,{spaceAbove:y=0,spaceBelow:T=0,indentFirstLine:O=0,hanging:F=0,indentStart:w=0,indentEnd:B=0}=p,{paragraphLineGapDefault:A,linePitch:x,lineSpacing:M,spacingRule:k,snapToGrid:I,gridType:H}=U6(t,e),{paddingTop:P,paddingBottom:z,contentHeight:$,lineSpacingApply:W}=Z4(g,A,x,H,M,k,I),{marginTop:j,spaceBelowApply:G}=Y_(W,y,T,s,l),Y=j+P+$+z;let U=c.parent;U||(U=l2(o));const q=(l==null?void 0:l.lineHeight)||0,s1=(l==null?void 0:l.top)||0,e1=q+s1,{pageWidth:Q,headerId:t1,footerId:V}=o,K=(K1=($1=v==null?void 0:v.get(t1))==null?void 0:$1.get(Q))==null?void 0:K1.skeDrawings,r1=(q1=(O1=m==null?void 0:m.get(V))==null?void 0:O1.get(Q))==null?void 0:q1.skeDrawings;j_(e1,Y,c,(k1=S==null?void 0:S.get(E))==null?void 0:k1.top,b);const _1=U4(Y,e1,o.skeDrawings,K,r1);if(Y+_1>U.height&&c.lines.length>0&&o.sections.length>0){K6(c,!0),q4(r,n,t,e,s,i);return}const b1=l?l.lineIndex+1:0,{charSpace:D1,defaultTabStop:l1}=B4(t,e),T1=e6(D1,l1,H,I),{paddingLeft:P1,paddingRight:G1,changeBulletWidth:u1}=W_(r[0],O,F,w,B,T1);u1.state&&(r[0].width=u1.hangingNumber);const F1=j4(E,B2.PARAGRAPH,{lineHeight:Y,contentHeight:$,lineTop:_1,paddingLeft:P1,paddingRight:G1,paddingTop:P,paddingBottom:z,marginTop:j,spaceBelowApply:G},c.width,b1,s,o.skeDrawings,K,r1);c.lines.push(F1),F1.parent=c,K4(E,F1,e1,S),j2(r,n,t,e,s,!0,i)}function q4(r,n,t,e,s=!1,i){const o=j1(n);O4(o)===!0?J4(r,n,t,e,s,i):z1(r,n,t,e,s,i)}function J4(r,n,t,e,s=!1,i){const o=j1(n),{skeHeaders:a,skeFooters:c}=e;n.push(r2(t,{skeHeaders:a,skeFooters:c},o==null?void 0:o.pageNumber)),q4(r,n,t,e,s,i)}function W_(r,n=0,t=0,e=0,s=0,i){const{spanType:o=a1.LETTER,bBox:a}=r,c=R1(n,i),l=R1(t,i),u=R1(e,i),h=R1(s,i);let g=u;const p=h,b={state:!1,hangingNumber:0};if(o===a1.LIST){const{width:v}=a;c>0?g+=c:l>0&&l>v&&(b.state=!0,b.hangingNumber=l)}else g+=l;return{paddingLeft:g,paddingRight:p,changeBulletWidth:b}}function Y_(r=0,n=0,t=0,e,s){let i=0,o=0;if(!e)return{marginTop:i,spaceBelowApply:o};if(i=R1(n,r),o=R1(t,r),s){const{spaceBelowApply:a}=s;a>i&&(i=0,s.lineHeight+=a,s.marginBottom=a)}return{marginTop:i,spaceBelowApply:o}}function Z4(r,n,t,e,s,i,o){let a=n,c=n;if(e===f.GridType.DEFAULT||o===f.BooleanNumber.FALSE)return i===f.SpacingRule.AUTO?{paddingTop:a,paddingBottom:c,contentHeight:s*r,lineSpacingApply:r}:{paddingTop:a,paddingBottom:c,contentHeight:Math.max(s,r),lineSpacingApply:s};let l=0;return i===f.SpacingRule.AUTO?l=s*t:l=s,r+n*2<l&&(a=c=(l-r)/2),{paddingTop:a,paddingBottom:c,contentHeight:r,lineSpacingApply:l}}function j_(r,n,t,e,s){var c;if(!s)return;const i=(c=t.parent)==null?void 0:c.parent;if(!i)return;const o=new Map,a=U_(t);s.forEach(l=>{if(!l)return;const{initialState:u,drawingOrigin:h}=l;if(u||!h)return;const{objectTransform:g}=h,{positionH:p,positionV:b,size:v,angle:m}=g,{width:S=0,height:E=0}=v;l.aLeft=x4(p,t,i,S,a)||0,l.aTop=M4(b,i,r,n,E,e,a)||0,l.width=S,l.height=E,l.angle=m,l.initialState=!0,o.set(l.objectId,l)}),i.skeDrawings=new Map([...i.skeDrawings,...o])}function U_(r){const n=r.parent;if(!n)return!1;const t=n==null?void 0:n.columns;if(!t)return!1;const e=t.length;for(let s=e-1;s>=0;s--){const o=t[s].lines,a=o.length;if(!(a<=0)){for(let c=a-1;c>=0;c--)if(o[c].paragraphStart)return!1}}return!0}function T7(r){const n=r.length;let t=0;for(let e=0;e<n;e++){const s=r[e];t+=s.width}return t}function V_(r){const n=r.length;let t=-1/0,e;for(let s=0;s<n;s++){const i=r[s],{ba:o,bd:a}=i.bBox;t<o+a&&(e={boundingBoxAscent:o,boundingBoxDescent:a}),t=o+a}return e}function G_(r){const n=r.divides,t=n.length,e=[];for(let s=0;s<t;s++){const i=n[s];e.push(...i.spanGroup)}return e}function K_(r,n,t){const{hanging:e,indentStart:s}=r,{hanging:i,indentStart:o}=n;e===void 0&&(r.hanging=i),s===void 0&&(r.indentStart=R1(o||0,t)-R1(i||0,t))}function q_(r){return!r.divides[0].spanGroup[0]}function Q4(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var q6=0,tt=-3;function F2(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function J_(r,n){this.source=r,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=n,this.destLen=0,this.ltree=new F2,this.dtree=new F2}var et=new F2,nt=new F2,J6=new Uint8Array(30),Z6=new Uint16Array(30),st=new Uint8Array(30),it=new Uint16Array(30),Z_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),F7=new F2,v1=new Uint8Array(320);function rt(r,n,t,e){var s,i;for(s=0;s<t;++s)r[s]=0;for(s=0;s<30-t;++s)r[s+t]=s/t|0;for(i=e,s=0;s<30;++s)n[s]=i,i+=1<<r[s]}function Q_(r,n){var t;for(t=0;t<7;++t)r.table[t]=0;for(r.table[7]=24,r.table[8]=152,r.table[9]=112,t=0;t<24;++t)r.trans[t]=256+t;for(t=0;t<144;++t)r.trans[24+t]=t;for(t=0;t<8;++t)r.trans[168+t]=280+t;for(t=0;t<112;++t)r.trans[176+t]=144+t;for(t=0;t<5;++t)n.table[t]=0;for(n.table[5]=32,t=0;t<32;++t)n.trans[t]=t}var O7=new Uint16Array(16);function _6(r,n,t,e){var s,i;for(s=0;s<16;++s)r.table[s]=0;for(s=0;s<e;++s)r.table[n[t+s]]++;for(r.table[0]=0,i=0,s=0;s<16;++s)O7[s]=i,i+=r.table[s];for(s=0;s<e;++s)n[t+s]&&(r.trans[O7[n[t+s]]++]=s)}function td(r){r.bitcount--||(r.tag=r.source[r.sourceIndex++],r.bitcount=7);var n=r.tag&1;return r.tag>>>=1,n}function S1(r,n,t){if(!n)return t;for(;r.bitcount<24;)r.tag|=r.source[r.sourceIndex++]<<r.bitcount,r.bitcount+=8;var e=r.tag&65535>>>16-n;return r.tag>>>=n,r.bitcount-=n,e+t}function y6(r,n){for(;r.bitcount<24;)r.tag|=r.source[r.sourceIndex++]<<r.bitcount,r.bitcount+=8;var t=0,e=0,s=0,i=r.tag;do e=2*e+(i&1),i>>>=1,++s,t+=n.table[s],e-=n.table[s];while(e>=0);return r.tag=i,r.bitcount-=s,n.trans[t+e]}function ed(r,n,t){var e,s,i,o,a,c;for(e=S1(r,5,257),s=S1(r,5,1),i=S1(r,4,4),o=0;o<19;++o)v1[o]=0;for(o=0;o<i;++o){var l=S1(r,3,0);v1[Z_[o]]=l}for(_6(F7,v1,0,19),a=0;a<e+s;){var u=y6(r,F7);switch(u){case 16:var h=v1[a-1];for(c=S1(r,2,3);c;--c)v1[a++]=h;break;case 17:for(c=S1(r,3,3);c;--c)v1[a++]=0;break;case 18:for(c=S1(r,7,11);c;--c)v1[a++]=0;break;default:v1[a++]=u;break}}_6(n,v1,0,e),_6(t,v1,e,s)}function w7(r,n,t){for(;;){var e=y6(r,n);if(e===256)return q6;if(e<256)r.dest[r.destLen++]=e;else{var s,i,o,a;for(e-=257,s=S1(r,J6[e],Z6[e]),i=y6(r,t),o=r.destLen-S1(r,st[i],it[i]),a=o;a<o+s;++a)r.dest[r.destLen++]=r.dest[a]}}}function nd(r){for(var n,t,e;r.bitcount>8;)r.sourceIndex--,r.bitcount-=8;if(n=r.source[r.sourceIndex+1],n=256*n+r.source[r.sourceIndex],t=r.source[r.sourceIndex+3],t=256*t+r.source[r.sourceIndex+2],n!==(~t&65535))return tt;for(r.sourceIndex+=4,e=n;e;--e)r.dest[r.destLen++]=r.source[r.sourceIndex++];return r.bitcount=0,q6}function sd(r,n){var t=new J_(r,n),e,s,i;do{switch(e=td(t),s=S1(t,2,0),s){case 0:i=nd(t);break;case 1:i=w7(t,et,nt);break;case 2:ed(t,t.ltree,t.dtree),i=w7(t,t.ltree,t.dtree);break;default:i=tt}if(i!==q6)throw new Error("Data error")}while(!e);return t.destLen<t.dest.length?typeof t.dest.slice=="function"?t.dest.slice(0,t.destLen):t.dest.subarray(0,t.destLen):t.dest}Q_(et,nt);rt(J6,Z6,4,3);rt(st,it,2,1);J6[28]=0;Z6[28]=258;var id=sd;const rd=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,B7=(r,n,t)=>{let e=r[n];r[n]=r[t],r[t]=e},od=r=>{const n=r.length;for(let t=0;t<n;t+=4)B7(r,t,t+3),B7(r,t+1,t+2)},ad=r=>{rd&&od(r)};var cd={swap32LE:ad};const A7=id,{swap32LE:ld}=cd,Q6=11,W1=5,ud=Q6-W1,hd=65536>>Q6,_d=1<<ud,dd=_d-1,N2=2,fd=1<<W1,d6=fd-1,ot=65536>>W1,gd=1024>>W1,Dd=ot+gd,pd=Dd,md=32,bd=pd+md,vd=1<<N2;class Cd{constructor(n){const t=typeof n.readUInt32BE=="function"&&typeof n.slice=="function";if(t||n instanceof Uint8Array){let e;if(t)this.highStart=n.readUInt32LE(0),this.errorValue=n.readUInt32LE(4),e=n.readUInt32LE(8),n=n.slice(12);else{const s=new DataView(n.buffer);this.highStart=s.getUint32(0,!0),this.errorValue=s.getUint32(4,!0),e=s.getUint32(8,!0),n=n.subarray(12)}n=A7(n,new Uint8Array(e)),n=A7(n,new Uint8Array(e)),ld(n),this.data=new Uint32Array(n.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=n)}get(n){let t;return n<0||n>1114111?this.errorValue:n<55296||n>56319&&n<=65535?(t=(this.data[n>>W1]<<N2)+(n&d6),this.data[t]):n<=65535?(t=(this.data[ot+(n-55296>>W1)]<<N2)+(n&d6),this.data[t]):n<this.highStart?(t=this.data[bd-hd+(n>>Q6)],t=this.data[t+(n>>W1&dd)],t=(t<<N2)+(n&d6),this.data[t]):this.data[this.data.length-vd]}}var Sd=Cd;const Ed=Q4(Sd);var at={};(function(r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(t){var e=typeof Uint8Array<"u"?Uint8Array:Array,s=43,i=47,o=48,a=97,c=65,l=45,u=95;function h(b){var v=b.charCodeAt(0);if(v===s||v===l)return 62;if(v===i||v===u)return 63;if(v<o)return-1;if(v<o+10)return v-o+26+26;if(v<c+26)return v-c;if(v<a+26)return v-a+26}function g(b){var v,m,S,E,y,T;if(b.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var O=b.length;y=b.charAt(O-2)==="="?2:b.charAt(O-1)==="="?1:0,T=new e(b.length*3/4-y),S=y>0?b.length-4:b.length;var F=0;function w(B){T[F++]=B}for(v=0,m=0;v<S;v+=4,m+=3)E=h(b.charAt(v))<<18|h(b.charAt(v+1))<<12|h(b.charAt(v+2))<<6|h(b.charAt(v+3)),w((E&16711680)>>16),w((E&65280)>>8),w(E&255);return y===2?(E=h(b.charAt(v))<<2|h(b.charAt(v+1))>>4,w(E&255)):y===1&&(E=h(b.charAt(v))<<10|h(b.charAt(v+1))<<4|h(b.charAt(v+2))>>2,w(E>>8&255),w(E&255)),T}function p(b){var v,m=b.length%3,S="",E,y;function T(F){return n.charAt(F)}function O(F){return T(F>>18&63)+T(F>>12&63)+T(F>>6&63)+T(F&63)}for(v=0,y=b.length-m;v<y;v+=3)E=(b[v]<<16)+(b[v+1]<<8)+b[v+2],S+=O(E);switch(m){case 1:E=b[b.length-1],S+=T(E>>2),S+=T(E<<4&63),S+="==";break;case 2:E=(b[b.length-2]<<8)+b[b.length-1],S+=T(E>>10),S+=T(E>>4&63),S+=T(E<<2&63),S+="=";break}return S}t.toByteArray=g,t.fromByteArray=p})(r)})(at);const yd=Q4(at);var ct={};const Td=5,R7=12,Fd=13,Od=16,wd=17,Bd=22,x7=28,M7=31,Ad=33,H2=34,Rd=35,f6=36,T6=37,lt=38,xd=39,Md=40,D2=41,Ld=42,d=0,D=1,Z=2,ut=3,C=4,Id=[[C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,C,ut,C,C,C,C,C,C,C,C,C,C,C],[d,C,C,D,D,C,C,C,C,D,D,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,C,C,C,C,D,D,D,D,D,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[C,C,C,D,D,D,C,C,C,D,D,D,D,D,D,D,D,D,D,D,C,Z,C,D,D,D,D,D,D,D,D,D,D],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,D,D,D,D,D,D,C,Z,C,D,D,D,D,D,D,D,D,D,D],[d,C,C,D,D,D,C,C,C,d,d,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,d,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,d,D,d,D,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,d,D,D,D,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,d,d,D,D,D,D,D,D,D,d,d,C,Z,C,D,D,D,D,D,d,D,D,D,d],[D,C,C,D,D,D,C,C,C,d,d,D,D,D,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,d,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,d,D,C,C,C,d,d,D,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,d,D,C,C,C,d,d,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,D,D,D,D,D,D,C,Z,C,D,D,D,D,D,D,D,D,D,d],[d,C,C,D,D,D,C,C,C,d,d,d,d,d,d,D,D,D,d,C,C,Z,C,d,d,d,d,d,d,d,d,D,d],[d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,C,d,d,d,d,d,d,d,d,d,d,d,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,D,D,D,D,D,D,C,Z,C,D,D,D,D,D,D,D,D,D,D],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,D,D,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,d,D,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,Z,C,D,D,D,D,d,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,D,D,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,d,D,d,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,d,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,D,d,d,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,D,D,d],[d,C,C,D,D,D,C,C,C,d,D,d,d,d,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[D,C,C,D,D,D,C,C,C,D,D,D,D,D,d,D,D,D,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d],[d,C,C,D,D,d,C,C,C,d,d,d,d,d,d,d,d,d,d,d,C,Z,C,d,d,d,d,d,d,d,d,D,d]],Pd=yd.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/"),$d=new Ed(Pd),L7=function(r){switch(r){case Ad:return R7;case xd:case Md:case Ld:return R7;case Rd:return Td;default:return r}},I7=function(r){switch(r){case T6:case lt:return H2;case D2:return Bd;default:return r}};class g6{constructor(n,t=!1){this.position=n,this.required=t}}class kd{nextCodePoint(){const n=this.string.charCodeAt(this.pos++),t=this.string.charCodeAt(this.pos);return 55296<=n&&n<=56319&&56320<=t&&t<=57343?(this.pos++,(n-55296)*1024+(t-56320)+65536):n}nextCharClass(){return L7($d.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case D2:return!1;case H2:case T6:case lt:return this.curClass=H2,!1;case f6:return this.curClass=f6,!1}return null}getPairTableBreak(n){let t=!1;switch(Id[this.curClass][this.nextClass]){case d:t=!0;break;case D:t=n===D2;break;case Z:if(t=n===D2,!t)return t=!1,t;break;case ut:if(n!==D2)return t;break}return this.LB8a&&(t=!1),this.LB21a&&(this.curClass===Od||this.curClass===wd)?(t=!1,this.LB21a=!1):this.LB21a=this.curClass===Fd,this.curClass===x7?(this.LB30a++,this.LB30a==2&&this.nextClass===x7&&(t=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,t}nextBreak(){if(this.curClass==null){let n=this.nextCharClass();this.curClass=I7(n),this.nextClass=n,this.LB8a=n===M7,this.LB30a=0}for(;this.pos<this.string.length;){this.lastPos=this.pos;const n=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===H2||this.curClass===f6&&this.nextClass!==T6)return this.curClass=I7(L7(this.nextClass)),new g6(this.lastPos,!0);let t=this.getSimpleBreak();if(t===null&&(t=this.getPairTableBreak(n)),this.LB8a=this.nextClass===M7,t)return new g6(this.lastPos)}return this.lastPos<this.string.length?(this.lastPos=this.string.length,new g6(this.string.length)):null}constructor(n){this.string=n,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}}ct=kd;function ht(r,n,t,e,s){const{gridType:i=f.GridType.LINES,charSpace:o=0,defaultTabStop:a=10.5,pageSize:c={width:1/0,height:1/0},marginRight:l=0,marginLeft:u=0,lists:h,drawings:g={},localeService:p}=e,{endIndex:b,startIndex:v,content:m="",blocks:S=[]}=n,E=r.getParagraph(b)||{startIndex:0},{paragraphStyle:y={},bullet:T}=E,{skeHeaders:O,skeFooters:F,skeListLevel:w,drawingAnchor:B}=s,A=new Map,x={paragraphIndex:b,paragraphStyle:y,paragraphAffectSkeDrawings:A,skeHeaders:O,skeFooters:F,drawingAnchor:B},M=Nd(T,w),k=E4(T,h,M);Hd(T,k,w),x.bulletSkeleton=k;const{horizontalAlign:I=f.HorizontalAlign.UNSPECIFIED,snapToGrid:H=f.BooleanNumber.TRUE}=y;let P=[t];const z=new Map;for(let G=0,Y=S.length;G<Y;G++){const U=S[G],q=r.getCustomBlock(U);if(q==null)continue;z.set(U,q);const s1=q.blockId,e1=g[s1];e1.layoutType!==f.PositionedObjectLayoutType.INLINE&&A.set(s1,Xd(e1))}I4();const $=new ct(m);let W=0,j;for(;j=$.nextBreak();){let Y=m.slice(W,j.position),U=W,q=[],s1=W===0;const e1=()=>{q.length!==0&&(P=E6(q,P,e,x,s1),q=[],s1=!1)};for(;Y.length>0;){const Q=Y[0],t1=U+v;if(Q===f.DataStreamTreeTokenType.TAB){const V=U1(U,r,n,e,y),K=e6(o,a,i,H),r1=$4(V,K);e1(),P=E6([r1],P,e,x,s1),U++,Y=Y.substring(1);continue}if(/\s/.test(Q)||Q2(Q)){const V=U1(U,r,n,e,y),K=A2(Q,V);q.push(K),U++,Y=Y.substring(1)}else if(t4(Y)){const{step:V,spanGroup:K}=W4(U,Y,r,n,e,y);q.push(...K),U+=V,Y=Y.substring(V)}else if(P6(Q)){const{step:V,spanGroup:K}=z4(U,Y,r,n,e,y);q.push(...K),U+=V,Y=Y.substring(V)}else if($6(Q)){const{step:V,spanGroup:K}=Y4(U,Y,r,n,e,y);q.push(...K),U+=V,Y=Y.substring(V)}else{const{step:V,spanGroup:K}=X4(U,Y,r,n,e,y);q.push(...K),U+=V,Y=Y.substring(V)}if(Q===f.DataStreamTreeTokenType.CUSTOM_BLOCK){let V=z.get(t1);if(V==null&&(V=r.getCustomBlock(t1)),V!=null){const K=V.blockId;g[K].layoutType===f.PositionedObjectLayoutType.INLINE&&(P=y4())}}else if(Q===f.DataStreamTreeTokenType.PAGE_BREAK)e1(),P.push(r2(e,s,P7(P[P.length-1]),i2.PAGE)),A.clear();else if(Q===f.DataStreamTreeTokenType.COLUMN_BREAK){e1();const V=P[P.length-1],K=T2(V);K&&!K.isLast?K6(K.column,!0):P.push(r2(e,s,P7(V),i2.COLUMN))}}e1(),W=j.position}return A4(P,G=>{zd(G,I)}),P}function Nd(r,n){if(!r||!n)return;const{listId:t,nestingLevel:e}=r,s=n==null?void 0:n.get(t);let i=e;i<0&&(i=0);const o=[];for(let a=i;a>=0;a--){const c=s==null?void 0:s[a];o[a]=c||null}return o}function Hd(r,n,t){if(!r||!n)return;const{listId:e,nestingLevel:s}=r,i=[...(t==null?void 0:t.get(e))||[]];i[s]=n,i.splice(s+1),t==null||t.set(e,i)}function Xd(r){return{objectId:r.objectId,aLeft:0,aTop:0,width:0,height:0,angle:0,initialState:!1,drawingOrigin:r}}function P7(r){return r.pageNumber+1}function zd(r,n){if(n===f.HorizontalAlign.UNSPECIFIED||n===f.HorizontalAlign.LEFT)return;const{divides:t}=r,e=t.length;for(let s=0;s<e;s++){const i=t[s],{width:o}=i,a=L4(i);o!==1/0&&(n===f.HorizontalAlign.CENTER?i.paddingLeft=(o-a)/2:n===f.HorizontalAlign.RIGHT?i.paddingLeft=o-a:f.HorizontalAlign.JUSTIFIED)}}function Wd(r=0,n,t=f.ColumnSeparatorType.NONE,e=1/0){const{left:s,width:i,spaceWidth:o}=Yd(r,n,e);return{lines:[],left:s,width:i,height:0,spaceWidth:o,separator:t,st:0,ed:0,drawingLRIds:[],isFull:!1}}function Yd(r=0,n,t){let e=0,s=0,i=0;for(let o=0;o<=r;o++){const{width:a,paddingEnd:c}=n[o];o===n.length-1?(e=t===1/0?t-e:a,s=0):(s=c,e=a,i+=e+s)}return{width:e,spaceWidth:s,left:i-e-s}}class O2{constructor(){_(this,"_translateX",0);_(this,"_translateY",0);_(this,"_translateSaveList",[])}get x(){return this._translateX}get y(){return this._translateY}reset(){this.translateBy(0,0),this._translateSaveList=[]}translateBy(n=0,t=0){this._translateX=n,this._translateY=t}translate(n=0,t=0){this._translateX+=n,this._translateY+=t}translateSave(){this._translateSaveList.push({x:this._translateX,y:this._translateY})}translateRestore(){const n=this._translateSaveList.pop();n&&(this._translateX=n.x,this._translateY=n.y)}translatePagePadding(n){const{marginTop:t=0,marginBottom:e=0,marginLeft:s=0,marginRight:i=0}=n;this.translate(s,t)}restorePagePadding(n){const{marginTop:t=0,marginBottom:e=0,marginLeft:s=0,marginRight:i=0}=n;this.translate(-s,-t)}translatePage(n,t=y1.VERTICAL,e=0,s=0,i=0,o=0){const{sections:a,marginTop:c=0,marginBottom:l=0,marginLeft:u=0,marginRight:h=0,pageWidth:g,pageHeight:p,width:b,height:v,pageNumber:m=1,renderConfig:S={}}=n;let E=0,y=0;return t===y1.VERTICAL?E+=p+s:t===y1.HORIZONTAL&&(y+=g+e),this.translate(y,E),{x:y,y:E}}translateSection(n){const{top:t=0}=n;return this.translate(0,t),{x:0,y:t}}translateColumn(n){const{left:t}=n;return this.translate(t,0),{x:t,y:0}}translateLine(n,t=!1){const{top:e,marginBottom:s=0,marginTop:i=0,paddingTop:o=0,paddingBottom:a=0}=n,c=e+(t===!0?i:0)+o;return this.translate(0,c),{x:0,y:c}}translateDivide(n){const{left:t,paddingLeft:e}=n,s=t+e;return this.translate(s,0),{x:s,y:0}}translateSpan(n){const{left:t}=n;return this.translate(t,0),{x:t,y:0}}}var _t=(r=>(r[r.NORMAL=0]="NORMAL",r[r.START=1]="START",r[r.END=2]="END",r))(_t||{}),b2=(r=>(r[r.page=0]="page",r[r.section=1]="section",r[r.column=2]="column",r[r.line=3]="line",r[r.divide=4]="divide",r[r.span=5]="span",r))(b2||{});const H1={page:0,section:1,column:2,line:3,divide:4,span:5};function t7(r,n){return r.page>n.page?!1:r.page<n.page?!0:r.section>n.section?!1:r.section<n.section?!0:r.column>n.column?!1:r.column<n.column?!0:r.line>n.line?!1:r.line<n.line?!0:r.divide>n.divide?!1:r.divide<n.divide?!0:r.span>n.span?!1:(r.span<n.span,!0)}function U2(r,n){return t7(r,n)?{start:r,end:n}:{start:n,end:r}}function F6(r){const n=r.length;if(n===0)return;const t=r[0],e=r[n-1],s=r.length===1&&t.collapsed;return{startOffset:t.startOffset,endOffset:e.endOffset,collapsed:s}}function jd(r,n,t,e){let s=e,i=e;for(let o=0;o<r.length;o++){const c=r[o].count;o<n&&(s+=c),o<t&&(i+=c)}return{startOffset:s,endOffset:i}}class dt{constructor(n,t){_(this,"_liquid",new O2);_(this,"_currentStartState",{page:0,section:0,column:0,line:0,divide:0,span:0});_(this,"_currentEndState",{page:0,section:0,column:0,line:0,divide:0,span:0});this._documentOffsetConfig=n,this._docSkeleton=t}getRangePointData(n,t){const e=[],s=[],i=[];if(n==null||t==null)return{borderBoxPointGroup:e,contentBoxPointGroup:s,cursorList:i};const{start:o,end:a}=U2(n,t);return this._selectionIterator(o,a,(c,l,u,h,g,p)=>{const{lineHeight:b,marginTop:v,contentHeight:m}=p,{spanGroup:S,st:E}=g,{x:y,y:T}=this._liquid;let O,F;const w=S[c],B=S[l],A=(w==null?void 0:w.left)||0,x=(w==null?void 0:w.width)||0,M=(B==null?void 0:B.left)||0,k=(B==null?void 0:B.width)||0,I=(w==null?void 0:w.spanType)===a1.LIST,{startOffset:H,endOffset:P}=jd(S,c,l,E),z=o.span===c&&u?o.isBack:!0,$=a.span===l&&h?a.isBack:!1,W=o===a;if(c===0&&l===S.length-1)O={startX:y+A+(I?x:0),startY:T,endX:y+M+k,endY:T+b},F={startX:y+A+(I?x:0),startY:T+v,endX:y+M+k,endY:T+v+m};else{const j=z&&!I;O={startX:y+A+(j?0:x),startY:T,endX:y+M+($?0:k),endY:T+b},F={startX:y+A+(j?0:x),startY:T+v,endX:y+M+($?0:k),endY:T+v+m}}e.push(this._pushToPoints(O)),s.push(this._pushToPoints(F)),i.push({startOffset:z?H:H+w.count,endOffset:$?P:P+B.count,collapsed:W})}),{borderBoxPointGroup:e,contentBoxPointGroup:s,cursorList:i}}_resetCurrentNodePositionState(){this._currentStartState={page:0,section:0,column:0,line:0,divide:0,span:0},this._currentEndState={page:0,section:0,column:0,line:0,divide:0,span:0}}_setNodePositionState(n=0,t,e,s){s===t?this._currentStartState[n]=1:this._currentStartState[n]=0,s===e?this._currentEndState[n]=2:this._currentEndState[n]=0}_checkPreviousNodePositionState(n,t=!0){let e=n,s;for(;e>=0;){const i=b2[e];let o;if(t?o=this._currentStartState[i]:o=this._currentEndState[i],o===void 0)return;if(s===void 0&&(s=o),o!==s)return 0;e--}return s}_getSelectionRuler(n,t,e,s,i){let o=0,a=s;const c=b2[n],l=b2[n+1];if(l===null||c===null)return{start_next:o,end_next:a};const u=t[c],h=e[c];this._setNodePositionState(c,u,h,i);const g=this._checkPreviousNodePositionState(n),p=this._checkPreviousNodePositionState(n,!1);return g===1&&(o=t[l]),p===2&&(a=e[l]),{start_next:o,end_next:a}}_pushToPoints(n){const{startX:t,startY:e,endX:s,endY:i}=n,o=[];return o.push({x:t,y:e}),o.push({x:s,y:e}),o.push({x:s,y:i}),o.push({x:t,y:i}),o.push({x:t,y:e}),o}_selectionIterator(n,t,e){const s=this._docSkeleton;if(!s)return[];this._liquid.reset();const i=s.getSkeletonData();if(i==null)return[];const o=i.pages,{page:a}=n,{page:c}=t;if(this._resetCurrentNodePositionState(),this._documentOffsetConfig==null)return[];const{pageLayoutType:l,pageMarginLeft:u,pageMarginTop:h}=this._documentOffsetConfig;for(let g=0;g<=a-1;g++){const p=o[g];this._liquid.translatePage(p,l,u,h)}for(let g=a;g<=c;g++){const p=o[g],b=p.sections,{start_next:v,end_next:m}=this._getSelectionRuler(H1.page,n,t,b.length-1,g);this._liquid.translateSave(),this._liquid.translatePagePadding(p);for(let S=v;S<=m;S++){const E=b[S],y=E.columns,{start_next:T,end_next:O}=this._getSelectionRuler(H1.section,n,t,y.length-1,S);this._liquid.translateSection(E);for(let F=T;F<=O;F++){const w=y[F],B=w.lines,{start_next:A,end_next:x}=this._getSelectionRuler(H1.column,n,t,B.length-1,F);this._liquid.translateColumn(w);for(let M=A;M<=x;M++){const k=B[M],{divides:I}=k,{start_next:H,end_next:P}=this._getSelectionRuler(H1.line,n,t,I.length-1,M);this._liquid.translateSave(),this._liquid.translateLine(k);for(let z=H;z<=P;z++){const $=I[z];this._liquid.translateSave(),this._liquid.translateDivide($);const W=$.spanGroup,{start_next:j,end_next:G}=this._getSelectionRuler(H1.divide,n,t,W.length-1,z);let Y=!1,U=!1;g===a&&S===v&&F===T&&M===A&&z===H&&(Y=!0),g===c&&S===m&&F===O&&M===x&&z===P&&(U=!0),e&&e(j,G,Y,U,$,k,w,E,p),this._liquid.translateRestore()}this._liquid.translateRestore()}}}this._liquid.translateRestore(),this._liquid.translatePage(p,l,u,h)}}}const ft=["hoverCursor","moveCursor","fillRule","globalCompositeOperation","paintFirst","stroke","strokeScaleEnabled","fill","fillAfterStrokeEnabled","hitStrokeWidth","strokeLineJoin","strokeLineCap","shadowColor","shadowBlur","shadowOffset","shadowOffsetX","shadowOffsetY","shadowOpacity","shadowEnabled","shadowForStrokeEnabled","strokeDashArray","strokeDashOffset","strokeMiterLimit"];class u2 extends M1{constructor(t,e){super(t);_(this,"_hoverCursor");_(this,"_moveCursor",null);_(this,"_fillRule","nonzero");_(this,"_globalCompositeOperation","source-over");_(this,"_paintFirst","fill");_(this,"_stroke");_(this,"_strokeScaleEnabled",!1);_(this,"_fill");_(this,"_fillAfterStrokeEnabled",!1);_(this,"_hitStrokeWidth",0);_(this,"_strokeLineJoin","round");_(this,"_strokeLineCap","round");_(this,"_shadowColor");_(this,"_shadowBlur",0);_(this,"_shadowOffset");_(this,"_shadowOffsetX",0);_(this,"_shadowOffsetY",0);_(this,"_shadowOpacity",0);_(this,"_shadowEnabled",!1);_(this,"_shadowForStrokeEnabled",!1);_(this,"_strokeDashArray");_(this,"_strokeDashOffset",0);_(this,"_strokeMiterLimit",0);_(this,"_type",A6.RECT);this._initialProps(e)}get hoverCursor(){return this._hoverCursor}get moveCursor(){return this._moveCursor}get fillRule(){return this._fillRule}get globalCompositeOperation(){return this._globalCompositeOperation}get paintFirst(){return this._paintFirst}get stroke(){return this._stroke}get strokeScaleEnabled(){return this._strokeScaleEnabled}get fill(){return this._fill}get fillAfterStrokeEnabled(){return this._fillAfterStrokeEnabled}get hitStrokeWidth(){return this._hitStrokeWidth}get strokeLineJoin(){return this._strokeLineJoin}get strokeLineCap(){return this._strokeLineCap}get shadowColor(){return this._shadowColor}get shadowBlur(){return this._shadowBlur}get shadowOffset(){return this._shadowOffset}get shadowOffsetX(){return this._shadowOffsetX}get shadowOffsetY(){return this._shadowOffsetY}get shadowOpacity(){return this._shadowOpacity}get shadowEnabled(){return this._shadowEnabled}get shadowForStrokeEnabled(){return this._shadowForStrokeEnabled}get strokeDashArray(){return this._strokeDashArray}get strokeDashOffset(){return this._strokeDashOffset}get strokeMiterLimit(){return this._strokeMiterLimit}static drawWith(t,e){}static _renderPaintInOrder(t,e){e.paintFirst==="stroke"?(this._renderStroke(t,e),this._renderFill(t,e)):(this._renderFill(t,e),this._renderStroke(t,e))}static _renderFill(t,e){e.fill&&(t.save(),this.__setFillStyles(t,e),e.fillRule==="evenodd"?t.fill("evenodd"):t.fill(),t.restore())}static _renderStroke(t,e){const{stroke:s,strokeWidth:i,shadowEnabled:o,shadowForStrokeEnabled:a,strokeScaleEnabled:c,parent:l}=e;let{scaleX:u,scaleY:h}=e;if(!(!s||i===0)){if(o&&!a&&this.__removeShadow(t),t.save(),c&&l){const g=this.__getObjectScaling();t.scale(1/g.scaleX,1/g.scaleY)}else c&&(u=u??1,h=h??1,t.scale(1/u,1/h));this.__setLineDash(t),this.__setStrokeStyles(t,e),t.stroke(),t.restore()}}static __getObjectScaling(){return{scaleX:1,scaleY:1}}static __removeShadow(t){}static __setFillStyles(t,e){t.fillStyle=e.fill}static __setStrokeStyles(t,e){const{strokeWidth:s,strokeLineCap:i,strokeDashOffset:o,strokeLineJoin:a,strokeMiterLimit:c,stroke:l}=e;t.lineWidth=s,t.lineCap=i,t.lineDashOffset=o,t.lineJoin=a,t.miterLimit=c,t.strokeStyle=l}static __setLineDash(t){}render(t,e){if(!this.visible)return this.makeDirty(!1),this;if(this.isRender()){const{top:i,left:o,bottom:a,right:c}=e.viewBound;if(this.width+this.strokeWidth<o||c<0||this.height+this.strokeWidth<i||a<0)return this}const s=this.transform.getMatrix();return t.save(),t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._draw(t),t.restore(),this.makeDirty(!1),this}setProps(t){if(!t)return;const e=Object.keys(t);if(e.length!==0)return e.forEach(s=>{if(t[s]===void 0)return!0;W2.indexOf(s)===-1&&(this[`_${s}`]=t[s])}),this.makeDirty(!0),this}toJson(){const t={};return ft.forEach(e=>{this[e]&&(t[e]=this[e])}),{...super.toJson(),...t}}_draw(t){}_initialProps(t){if(!t)return;const e=Object.keys(t);if(e.length===0)return;const s={};let i=!1;e.forEach(o=>{if(t[o]===void 0)return!0;W2.indexOf(o)>-1?(s[o]=t[o],i=!0):this[`_${o}`]=t[o]}),i&&this.transformByState(s),this.makeDirty(!0)}}const gt=["radius"];class f1 extends u2{constructor(t,e){super(t,e);_(this,"_radius",0);e!=null&&e.radius&&(this._radius=e.radius)}get radius(){return this._radius}static drawWith(t,e){let{radius:s,width:i,height:o}=e;if(s=s??0,i=i??30,o=o??30,t.beginPath(),e.strokeDashArray&&t.setLineDash(e.strokeDashArray),!s)t.rect(0,0,i,o);else{let a=0,c=0,l=0,u=0;a=c=l=u=Math.min(s,i/2,o/2),t.moveTo(a,0),t.lineTo(i-c,0),t.arc(i-c,c,c,Math.PI*3/2,0,!1),t.lineTo(i,o-u),t.arc(i-u,o-u,u,0,Math.PI/2,!1),t.lineTo(l,o),t.arc(l,o-l,l,Math.PI/2,Math.PI,!1),t.lineTo(0,a),t.arc(a,a,a,Math.PI,Math.PI*3/2,!1)}t.closePath(),this._renderPaintInOrder(t,e)}toJson(){const t={};return gt.forEach(e=>{this[e]&&(t[e]=this[e])}),{...super.toJson(),...t}}_draw(t){f1.drawWith(t,this)}}const Dt=["pointsGroup"];class s6 extends u2{constructor(t,e){super(t,e);_(this,"_pointsGroup");this._pointsGroup=(e==null?void 0:e.pointsGroup)||[[]],this._setFixBoundingBox(),this.onTransformChangeObservable.add(s=>{const{type:i,value:o,preValue:a}=s;(i===n1.resize||i===n1.all)&&this.resizePolygon(a)})}get pointsGroup(){return this._pointsGroup}static drawWith(t,e){let{pointsGroup:s}=e;s=s??[[]],e.strokeDashArray&&t.setLineDash(e.strokeDashArray),t.beginPath();for(const i of s){t.moveTo(i[0].x,i[0].y);for(let o=1;o<i.length;o++){const a=i[o];t.lineTo(a.x,a.y)}}t.closePath(),this._renderPaintInOrder(t,e)}updatePointGroup(t){this._pointsGroup=t,this._setFixBoundingBox()}resizePolygon(t){const{left:e,top:s,width:i,height:o}=this._getSelfRect(),{width:a,height:c}=t;let l,u;a?l=this.width-a:l=0,c?u=this.height-c:u=0;const h=l/i,g=u/o;this.scaleX+=h,this.scaleY+=g,this.left=this.left-e*h,this.top=this.top-s*g,this._setTransForm()}toJson(){const t={};return Dt.forEach(e=>{this[e]&&(t[e]=this[e])}),{...super.toJson(),...t}}getState(){const{left:t,top:e,width:s,height:i}=this.getRect();return{left:t,top:e,width:s,height:i,scaleX:this.scaleX,scaleY:this.scaleY,angle:this.angle,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY}}getRect(){const{left:t,top:e,width:s,height:i}=this._getSelfRect();return{left:t*this.scaleX+this.left,top:e*this.scaleY+this.top,width:s*this.scaleX,height:i*this.scaleY}}_draw(t){s6.drawWith(t,this)}_setFixBoundingBox(){const{width:t,height:e,left:s,top:i}=this._getSelfRect();this.left=this.left+s,this.top=this.top+i,this.width=t,this.height=e;const o=this.pointsGroup;for(const a of o)for(const c of a)c.x-=s,c.y-=i;this._setTransForm()}_getSelfRect(){const t=this.pointsGroup;let e=t[0][0].x,s=t[0][0].x,i=t[0][0].y,o=t[0][0].y;for(const a of t)for(const c of a)e=Math.min(e,c.x),s=Math.max(s,c.x),i=Math.min(i,c.y),o=Math.max(o,c.y);return{left:e,top:i,width:s-e,height:o-i}}}const Ud="__TestSelectionRange__",Vd="__TestSelectionAnchor__",$7=6;function pt(r,n,t,e){const{startOffset:s,endOffset:i,style:o=y2}=n,a=t.findNodePositionByCharIndex(s),c=s!==i?t.findNodePositionByCharIndex(i):null,l=new V2(r,e,t,a,c,o);return l.refresh(),l}class V2{constructor(n,t,e,s,i,o=y2){_(this,"_current",!1);_(this,"_rangeShape");_(this,"_anchorShape");_(this,"_cursorList",[]);this._scene=n,this._documentOffsetConfig=t,this._docSkeleton=e,this.anchorNodePosition=s,this.focusNodePosition=i,this.style=o}get startOffset(){const{startOffset:n}=F6(this._cursorList)??{},t=this._docSkeleton.getViewModel().getBody();if(n==null||t==null)return n;const e=t.dataStream.length-2;return Math.min(e,n)}get endOffset(){const{endOffset:n}=F6(this._cursorList)??{},t=this._docSkeleton.getViewModel().getBody();if(n==null||t==null)return n;const e=t.dataStream.length-2;return Math.min(n,e)}get collapsed(){const{startOffset:n,endOffset:t}=this;return n!=null&&n===t}get startNodePosition(){if(this.anchorNodePosition==null)return null;if(this.focusNodePosition==null)return this.anchorNodePosition;const{start:n}=U2(this.anchorNodePosition,this.focusNodePosition);return n}get endNodePosition(){if(this.anchorNodePosition==null)return this.focusNodePosition;if(this.focusNodePosition==null)return null;const{end:n}=U2(this.anchorNodePosition,this.focusNodePosition);return n}get direction(){const{collapsed:n,anchorNodePosition:t,focusNodePosition:e}=this;return n||t==null||e==null?m2.NONE:t7(t,e)?m2.FORWARD:m2.BACKWARD}getAnchor(){return this._anchorShape}activeStatic(){var n,t;(t=this._anchorShape)==null||t.setProps({stroke:((n=this.style)==null?void 0:n.strokeActive)||c1(f.COLORS.black,1)})}deactivateStatic(){var n,t;(t=this._anchorShape)==null||t.setProps({stroke:((n=this.style)==null?void 0:n.stroke)||c1(f.COLORS.black,0)})}isActive(){return this._current===!0}activate(){this._current=!0}deactivate(){this._current=!1}dispose(){var n,t;(n=this._rangeShape)==null||n.dispose(),this._rangeShape=null,(t=this._anchorShape)==null||t.dispose(),this._anchorShape=null}isIntersection(n){const{startOffset:t,endOffset:e}=this,{startOffset:s,endOffset:i}=n;return t==null||e==null||s==null||i==null?!1:t<=i&&e>=s}refresh(){var u,h;const{_documentOffsetConfig:n,_docSkeleton:t}=this,e=this.anchorNodePosition,s=this.focusNodePosition;if((u=this._anchorShape)==null||u.hide(),(h=this._rangeShape)==null||h.hide(),this._isEmpty())return;const{docsLeft:i,docsTop:o}=n,a=new dt(n,t);if(this._isCollapsed()){const{contentBoxPointGroup:g,cursorList:p}=a.getRangePointData(e,e);this._setCursorList(p),g.length>0&&this._createOrUpdateAnchor(g,i,o);return}const{borderBoxPointGroup:c,cursorList:l}=a.getRangePointData(e,s);this._setCursorList(l),c.length>0&&this._createOrUpdateRange(c,i,o)}_isEmpty(){return this.anchorNodePosition==null&&this.focusNodePosition==null}_isCollapsed(){const n=this.anchorNodePosition,t=this.focusNodePosition;if(n!=null&&t==null)return!0;if(n==null||t==null)return!1;const e=Object.keys(H1);for(const s of e){const i=n[s],o=t[s];if(i!==o)return!1}return n.isBack===t.isBack}_createOrUpdateRange(n,t,e){var o;if(this._rangeShape){this._rangeShape.translate(t,e),this._rangeShape.updatePointGroup(n),this._rangeShape.show();return}const s=.2,i=new s6(Ud+f.Tools.generateRandomId($7),{pointsGroup:n,fill:((o=this.style)==null?void 0:o.fill)||c1(f.COLORS.black,s),left:t,top:e,evented:!1,debounceParentDirty:!1});this._rangeShape=i,this._scene.addObject(i,2)}_getAnchorBounding(n){const t=n[0],e=t[0],s=t[2],{x:i,y:o}=e,{x:a,y:c}=s;return{left:i,top:o,width:a-i,height:c-o}}_createOrUpdateAnchor(n,t,e){var l,u;const s=this._getAnchorBounding(n),{left:i,top:o,height:a}=s;if(this._anchorShape){this._anchorShape.transformByState({left:i+t,top:o+e,height:a}),this._anchorShape.show();return}const c=new f1(Vd+f.Tools.generateRandomId($7),{left:i+t,top:o+e,height:a,strokeWidth:((l=this.style)==null?void 0:l.strokeWidth)||1,stroke:((u=this.style)==null?void 0:u.stroke)||c1(f.COLORS.black,0),evented:!1});this._anchorShape=c,this._scene.addObject(c,2)}_setCursorList(n){n.length!==0&&(this._cursorList=n)}}var Gd=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,qd=(r,n,t,e)=>{for(var s=e>1?void 0:e?Kd(n,t):n,i=r.length-1,o;i>=0;i--)(o=r[i])&&(s=(e?o(n,t,s):o(s))||s);return e&&s&&Gd(n,t,s),s},Jd=(r,n)=>(t,e)=>n(t,e,r);exports.Skeleton=class extends f.Disposable{constructor(t){super();_(this,"_fontLocale");_(this,"_dirty",!0);this._localService=t,this._localeInitial()}get dirty(){return this._dirty}getFontLocale(){return this._fontLocale}makeDirty(t){this._dirty=t}_localeInitial(){}};exports.Skeleton=qd([Jd(0,n2.Inject(f.LocaleService))],exports.Skeleton);const Zd={columnProperties:[],columnSeparatorType:f.ColumnSeparatorType.NONE,sectionType:f.SectionType.SECTION_TYPE_UNSPECIFIED,startIndex:0};var mt=(r=>(r.PENDING="pending",r.CALCULATING="calculating",r.READY="ready",r.INVALID="invalid",r))(mt||{});class o2 extends exports.Skeleton{constructor(t,e){super(e);_(this,"_skeletonData");_(this,"_renderedBlockIdMap",new Map);_(this,"_findLiquid",new O2);this._docViewModel=t}static create(t,e){return new o2(t,e)}getViewModel(){return this._docViewModel}calculate(t){this.dirty&&(this._skeletonData=this._createSkeleton(t))}getSkeletonData(){return this._skeletonData}getActualSize(){const t=this.getSkeletonData();let e=-1/0,s=0;return t==null||t.pages.forEach(i=>{const{width:o,height:a}=i;e=Math.max(e,o),s+=a}),{actualWidth:e,actualHeight:s}}_getPageActualWidth(t){let e=-1/0;for(const s of t.sections)for(const i of s.columns)for(const o of i.lines){let a=0;for(const c of o.divides)for(const l of c.spanGroup)a+=l.width;e=Math.max(e,a)}return e}getPageSize(){return this.getViewModel().getDataModel().documentStyle.pageSize}findPositionBySpan(t){const e=t.parent,s=e==null?void 0:e.parent,i=s==null?void 0:s.parent,o=i==null?void 0:i.parent,a=o==null?void 0:o.parent,c=this.getSkeletonData();if(!e||!i||!o||!a||!c)return;const l=e.spanGroup.indexOf(t),u=s.divides.indexOf(e),h=i.lines.indexOf(s),g=o.columns.indexOf(i),p=a.sections.indexOf(o),b=c.pages.indexOf(a);return{span:l,divide:u,line:h,column:g,section:p,page:b}}findNodePositionByCharIndex(t,e=!0){const s=this._findNodeIterator(t);if(s==null)return;const i=this.getSkeletonData();if(!i)return;const o=i.pages,{span:a,divide:c,line:l,column:u,section:h,page:g}=s;return{span:c.spanGroup.indexOf(a),divide:l.divides.indexOf(c),line:u.lines.indexOf(l),column:h.columns.indexOf(u),section:g.sections.indexOf(h),page:o.indexOf(g),isBack:e}}findNodeByCharIndex(t){const e=this._findNodeIterator(t);return e==null?void 0:e.span}findSpanByPosition(t){if(t==null)return;const e=this.getSkeletonData();if(e==null)return;const{divide:s,line:i,column:o,section:a,page:c,isBack:l}=t;let{span:u}=t;l===!0&&(u-=1),u=u<0?0:u;const h=e.pages[c].sections[a].columns[o].lines[i].divides[s].spanGroup;return h[u].spanType===a1.LIST?h[u+1]:h[u]}findNodeByCoord(t,e,s,i){const{x:o,y:a}=t;this._findLiquid.reset();const c=this.getSkeletonData();if(c==null)return;const l=c.pages;let u=[],h=[],g=1/0;for(let p=0,b=l.length;p<b;p++){const v=l[p];this._findLiquid.translatePagePadding(v);const m=v.sections;for(const S of m){const{columns:E,height:y}=S;this._findLiquid.translateSection(S);for(const T of E){const{lines:O,width:F}=T;this._findLiquid.translateColumn(T);const w=O.length;for(let B=0;B<w;B++){const A=O[B],{divides:x,type:M,lineHeight:k=0}=A;if(M!==B2.BLOCK){this._findLiquid.translateSave(),this._findLiquid.translateLine(A);const{y:I}=this._findLiquid,H=I,P=I+k,z=Math.abs(a-P),$=x.length;for(let W=0;W<$;W++){const j=x[W],{spanGroup:G,width:Y}=j;this._findLiquid.translateSave(),this._findLiquid.translateDivide(j);const{x:U}=this._findLiquid;for(const q of G){if(!q.content||q.content.length===0)continue;const{width:s1,left:e1}=q,Q=U+e1,t1=U+e1+s1,V=Math.abs(o-t1);if(a>=H&&a<=P){if(o>=Q&&o<=t1)return{node:q,ratioX:o/(Q+t1),ratioY:a/(H+P)};g!==-1/0&&(u=[],h=[]),u.push({node:q,ratioX:o/(Q+t1),ratioY:a/(H+P)}),h.push(V),g=-1/0;continue}z<g&&(g=z,u=[],h=[]),z===g&&(u.push({node:q,ratioX:o/(Q+t1),ratioY:a/(H+P)}),h.push(V))}this._findLiquid.translateRestore()}this._findLiquid.translateRestore()}}}}this._findLiquid.restorePagePadding(v),this._translatePage(v,e,s,i)}return this._getNearestNode(u,h)}_getNearestNode(t,e){const s=Math.min(...e),i=e.indexOf(s);return t[i]}_getPageBoundingBox(t,e){const{pageWidth:s,pageHeight:i}=t,{x:o,y:a}=this._findLiquid;let c=-1,l=-1;return e===y1.VERTICAL?(c=s,l=a+i):e===y1.HORIZONTAL&&(c=o+s,l=i),{startX:o,startY:a,endX:c,endY:l}}_translatePage(t,e,s,i){this._findLiquid.translatePage(t,e,s,i)}_createSkeleton(t){var V;const e={width:1/0,height:1/0},s=this.getViewModel(),{headerTreeMap:i,footerTreeMap:o}=s,{documentStyle:a,drawings:c,lists:l={}}=s.getDataModel(),u={...f.PRESET_LIST_TYPE,...l},{pageNumberStart:h=1,pageSize:g=e,pageOrient:p=f.PageOrientType.PORTRAIT,defaultHeaderId:b,defaultFooterId:v,evenPageHeaderId:m,evenPageFooterId:S,firstPageHeaderId:E,firstPageFooterId:y,useFirstPageHeaderFooter:T,useEvenPageHeaderFooter:O,marginTop:F=0,marginBottom:w=0,marginRight:B=0,marginLeft:A=0,marginHeader:x=0,marginFooter:M=0,charSpace:k=0,linePitch:I=15.6,gridType:H=f.GridType.LINES,paragraphLineGapDefault:P=0,defaultTabStop:z=10.5,textStyle:$={fs:14},renderConfig:W={horizontalAlign:f.HorizontalAlign.UNSPECIFIED,verticalAlign:f.VerticalAlign.UNSPECIFIED,centerAngle:0,vertexAngle:0,wrapStrategy:f.WrapStrategy.UNSPECIFIED}}=a,j=this._getNullSke(),G={headerTreeMap:i,footerTreeMap:o,lists:u,drawings:c,charSpace:k,linePitch:I,gridType:H,localeService:this._localService,paragraphLineGapDefault:P,defaultTabStop:z,documentTextStyle:$},{skeHeaders:Y,skeFooters:U,skeListLevel:q,drawingAnchor:s1}=j,e1={skeHeaders:Y,skeFooters:U,skeListLevel:q,drawingAnchor:s1},Q=[];j.pages=Q;const t1=this.getViewModel();t1.resetCache();for(let K=0,r1=t1.children.length;K<r1;K++){const _1=t1.children[K],b1=t1.getSectionBreak(_1.endIndex)||Zd,{pageNumberStart:D1=h,pageSize:l1=g,pageOrient:T1=p,marginTop:P1=F,marginBottom:G1=w,marginRight:u1=B,marginLeft:F1=A,marginHeader:$1=x,marginFooter:K1=M,defaultHeaderId:O1=b,defaultFooterId:q1=v,evenPageHeaderId:k1=m,evenPageFooterId:M2=S,firstPageHeaderId:r6=E,firstPageFooterId:o6=y,useFirstPageHeaderFooter:d2=T,useEvenPageHeaderFooter:f2=O,columnProperties:g2=[],columnSeparatorType:L2=f.ColumnSeparatorType.NONE,contentDirection:a6,sectionType:J1,textDirection:$t,renderConfig:kt=W}=b1,c6=t1.children[K+1],u7=(V=t1.getSectionBreak(c6==null?void 0:c6.endIndex))==null?void 0:V.sectionType,Nt={defaultHeaderId:O1,evenPageHeaderId:k1,firstPageHeaderId:r6},Ht={defaultFooterId:q1,evenPageFooterId:M2,firstPageFooterId:o6};l1.width===null&&(l1.width=1/0),l1.height===null&&(l1.height=1/0);const h7={pageNumberStart:D1,pageSize:l1,pageOrient:T1,marginTop:P1,marginBottom:G1,marginRight:u1,marginLeft:F1,marginHeader:$1,marginFooter:K1,headerIds:Nt,footerIds:Ht,useFirstPageHeaderFooter:d2,useEvenPageHeaderFooter:f2,columnProperties:g2,columnSeparatorType:L2,contentDirection:a6,sectionType:J1,sectionTypeNext:u7,textDirection:$t,renderConfig:kt,...G};let Z1=j1(Q),_7=!1;J1===f.SectionType.CONTINUOUS?(Y2(Q),this._addNewSectionByContinuous(Z1,g2,L2),_7=!0):Z1=r2(h7,e1,Z1==null?void 0:Z1.pageNumber);const Xt=V6(t1,_1,Z1,h7,e1,this._renderedBlockIdMap);u7===f.SectionType.CONTINUOUS&&g2.length>0;const{pages:d7}=Xt;_7&&d7.splice(0,1),Q.push(...d7)}return Y2(Q),this._setPageParent(Q,j),j}_setPageParent(t,e){for(const s of t)s.parent=e}_addNewSectionByContinuous(t,e,s){const i=t.sections,o=i[i.length-1],{pageWidth:a,pageHeight:c,marginTop:l,marginBottom:u,marginLeft:h,marginRight:g}=t,p=a-h-g,b=c-l-u,v=((o==null?void 0:o.top)||0)+((o==null?void 0:o.height)||0),m=G6(e,s,v,0,p,b-v);m.parent=t,i.push(m)}_getNullSke(){return{pages:[],left:0,top:0,st:0,skeHeaders:new Map,skeFooters:new Map,skeListLevel:new Map,drawingAnchor:new Map}}_findNodeIterator(t){const e=this.getSkeletonData();if(!e)return;const s=e.pages;for(const i of s){const{sections:o,st:a,ed:c}=i;if(!(t<a||t>c))for(const l of o){const{columns:u,st:h,ed:g}=l;if(!(t<h||t>g))for(const p of u){const{lines:b,st:v,ed:m}=p;if(!(t<v||t>m))for(const S of b){const{divides:E,st:y,ed:T}=S,O=E.length;if(!(t<y||t>T))for(let F=0;F<O;F++){const w=E[F],{spanGroup:B,st:A,ed:x}=w;if(t<A||t>x)continue;let M=t-A;for(const k of B)if(M-=k.count,M<0)return{page:i,section:l,column:p,line:S,divide:w,span:k}}}}}}}}class e7{constructor(){_(this,"uKey","");_(this,"type");_(this,"zIndex",0);_(this,"parent");_(this,"translateX",0);_(this,"translateY",0);_(this,"extensionOffset",{})}draw(n,t,e,s){}clearCache(){}_getScale(n){return V1(n)}}const R2=f.Registry.create(),n7=f.Registry.create(),s7=f.Registry.create(),h2=f.Registry.create();var O6=(r=>(r[r.SPAN=0]="SPAN",r[r.LINE=1]="LINE",r))(O6||{});class i6 extends e7{constructor(){super(...arguments);_(this,"type",0);_(this,"translateX",0);_(this,"translateY",0)}}const Qd="DefaultDocsBackgroundExtension",tf=10;let ef=class extends i6{constructor(){super(...arguments);_(this,"uKey",Qd);_(this,"zIndex",tf);_(this,"_preBackgroundColor","")}draw(t,e,s){var g;const i=(g=s.parent)==null?void 0:g.parent;if(!i)return;const{contentHeight:o=0}=i,{ts:a,width:c}=s;if(!a)return;const{bg:l}=a;if(!l)return;const u=f.getColorStyle(l),{spanStartPoint:h=R.create(0,0)}=this.extensionOffset;u&&(t.fillStyle=u,t.fillRect(h.x-.5,h.y,c+1,o+1))}clearCache(){this._preBackgroundColor=""}};h2.add(new ef);const nf="DefaultDocsBorderExtension";let sf=class extends i6{constructor(){super(...arguments);_(this,"uKey",nf);_(this,"zIndex",30);_(this,"_preBorderStyle");_(this,"_preBorderColor","")}draw(t,e,s){var v;const i=(v=s.parent)==null?void 0:v.parent;if(!i)return;const{asc:o=0,lineHeight:a=0}=i,{ts:c,left:l,width:u}=s;if(!c)return;const{bd:h}=c;if(!h)return;const g=this._getScale(e),p=this._createBorderCache(h);t.save(),t.translate(g1/g,g1/g);const{spanStartPoint:b=R.create(0,0)}=this.extensionOffset;for(const m of p.keys()){const S=p.get(m);if(!S)continue;const{s:E,cl:y}=S,T=f.getColorStyle(y)||Y1;E!==this._preBorderStyle&&(H6(t,E),t.lineWidth=X6(E)/g,this._preBorderStyle=E),T!==this._preBorderColor&&(t.strokeStyle=T||Y1,this._preBorderColor=T),N6(t,m,{startX:X(b.x,g),startY:X(b.y,g),endX:X(b.x+u,g),endY:X(b.y+a,g)})}t.restore()}clearCache(){this._preBorderStyle=null,this._preBorderColor=""}_createBorderCache(t){const{t:e,b:s,l:i,r:o}=t,a=new Map;return e&&a.set(J.TOP,e),s&&a.set(J.BOTTOM,s),i&&a.set(J.LEFT,i),o&&a.set(J.RIGHT,o),a}};h2.add(new sf);const rf="DefaultDocsFontAndBaseLineExtension",of=20;class af extends i6{constructor(){super(...arguments);_(this,"uKey",rf);_(this,"zIndex",of);_(this,"_preFontString","");_(this,"_preFontColor","")}draw(t,e,s){var b;if(!((b=s.parent)==null?void 0:b.parent))return;const{ts:o,content:a,fontStyle:c,bBox:l}=s,{spanPointWithFont:u=R.create(0,0)}=this.extensionOffset;if(a==null)return;if(!o){this._fillText(t,s,u);return}this._preFontString!==(c==null?void 0:c.fontString)&&(t.font=this._preFontString=(c==null?void 0:c.fontString)||"");const{cl:h,va:g}=o,p=f.getColorStyle(h)||Y1;if(p&&this._preFontColor!==p&&(t.fillStyle=p),g===f.BaselineOffset.SUBSCRIPT||g===f.BaselineOffset.SUPERSCRIPT){let v=0;g===f.BaselineOffset.SUPERSCRIPT&&(v=-l.sbo),u.y+=v}this._fillText(t,s,u)}_fillText(t,e,s){const{renderConfig:i,spanStartPoint:o,centerPoint:a}=this.extensionOffset,{content:c,width:l,bBox:u}=e,{aba:h,abd:g}=u;if(c==null||o==null||a==null)return;const{vertexAngle:p,centerAngle:b}=i??{},v=90;p===v&&b===v&&!Q2(c)?(t.save(),t.translate(o.x+a.x,o.y+a.y),t.rotate(Math.PI/2),t.translate(-l/2,(h+g)/2-g),t.fillText(c,0,0),t.restore()):t.fillText(c,s.x,s.y)}clearCache(){this._preFontString="",this._preFontColor=""}}h2.add(new af);const cf="DefaultDocsLineExtension",lf=40;class uf extends i6{constructor(){super(...arguments);_(this,"uKey",cf);_(this,"zIndex",lf);_(this,"_preBackgroundColor","")}draw(t,e,s){var v;const i=(v=s.parent)==null?void 0:v.parent;if(!i)return;const{contentHeight:o=0}=i,{ts:a,bBox:c}=s;if(!a)return;const{sp:l}=c,u=V1(e),h=.5,{ul:g,st:p,ol:b}=a;if(g){const m=o+p6-h;this._drawLine(t,s,g,m,u)}if(p){const m=l-h;this._drawLine(t,s,p,m,u)}if(b){const m=-p6-h;this._drawLine(t,s,b,m,u)}}clearCache(){this._preBackgroundColor=""}_drawLine(t,e,s,i,o){const{s:a,cl:c,t:l}=s;if(a===f.BooleanNumber.TRUE){const{originTranslate:u=R.create(0,0),alignOffset:h=R.create(0,0),renderConfig:g={}}=this.extensionOffset,{left:p,width:b}=e,{centerAngle:v=0,vertexAngle:m=0}=g,S=x1(v),E=x1(m);t.save(),t.translate(g1/o,g1/o),t.beginPath();const y=f.getColorStyle(c)||Y1;t.strokeStyle=y,this._setLineType(t,l||f.TextDecoration.SINGLE);const T=E2(u.addByPoint(p,i),R.create(0,0),S,E,h),O=E2(u.addByPoint(p+b,i),R.create(0,0),S,E,h);t.moveTo(X(T.x,o),X(T.y,o)),t.lineTo(X(O.x,o),X(O.y,o)),t.stroke(),t.restore()}}_setLineType(t,e){e===f.TextDecoration.DASH_DOT_DOT_HEAVY||e===f.TextDecoration.DOT_DOT_DASH?t.setLineDash([2,2,5,2,2]):e===f.TextDecoration.DASH_DOT_HEAVY||e===f.TextDecoration.DOT_DASH?t.setLineDash([2,5,2]):e===f.TextDecoration.DOTTED||e===f.TextDecoration.DOTTED_HEAVY?t.setLineDash([2]):e===f.TextDecoration.DASH||e===f.TextDecoration.DASHED_HEAVY?t.setLineDash([3]):e===f.TextDecoration.DASH_LONG||e===f.TextDecoration.DASH_LONG_HEAVY?t.setLineDash([6]):t.setLineDash([0])}_getLineWidth(t){let e=1;return t===f.TextDecoration.WAVY_HEAVY||t===f.TextDecoration.DASHED_HEAVY||t===f.TextDecoration.DOTTED_HEAVY||t===f.TextDecoration.DASH_DOT_HEAVY||t===f.TextDecoration.DASH_LONG_HEAVY||t===f.TextDecoration.DASH_DOT_DOT_HEAVY?e=2:t===f.TextDecoration.THICK&&(e=3),e}}h2.add(new uf);class hf extends W6{constructor(t,e){super(t);_(this,"pageMarginLeft",0);_(this,"pageMarginTop",0);_(this,"pageLayoutType",y1.VERTICAL);this._skeleton=e}getSkeleton(){return this._skeleton}setSkeleton(t){this._skeleton=t}render(t,e){if(!this.visible)return this.makeDirty(!1),this;if(!this._skeleton)return;const s=this.transform.getMatrix();t.save(),t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._draw(t,e),t.restore()}getParentScale(){if(!this.parent)return{scaleX:1,scaleY:1};let{scaleX:t=1,scaleY:e=1}=this.parent;return this.parent.classType===N.SCENE&&(t=this.parent.ancestorScaleX||1,e=this.parent.ancestorScaleY||1),{scaleX:t,scaleY:e}}scrollBySelection(){}syncSelection(){}remainActiveSelection(){}findNodeByCoord(t,e){}findCoordByNode(t){}_getBounding(t){}_draw(t,e){}}class x2 extends hf{constructor(t,e,s){super(t,e);_(this,"onPageRenderObservable",new f.Observable);_(this,"docsLeft",0);_(this,"docsTop",0);_(this,"_drawLiquid");_(this,"_findLiquid");_(this,"_skeletonObserver");this.setConfig(s),this._drawLiquid=new O2,this._findLiquid=new O2,this._initialDefaultExtension(),this.makeDirty(!0)}static create(t,e,s){return new x2(t,e,s)}setConfig(t){this.pageMarginLeft=(t==null?void 0:t.pageMarginLeft)||17,this.pageMarginTop=(t==null?void 0:t.pageMarginTop)||14,this.pageLayoutType=(t==null?void 0:t.pageLayoutType)||y1.VERTICAL}getOffsetConfig(){const{transform:t,pageLayoutType:e,pageMarginLeft:s,pageMarginTop:i,left:o,top:a}=this;return{documentTransform:t,pageLayoutType:e,pageMarginLeft:s,pageMarginTop:i,docsLeft:o,docsTop:a}}getEngine(){return this.getScene().getEngine()}draw(t,e){var g;if(!this.getSkeleton())return;this._drawLiquid.reset();const i=(g=this.getSkeleton())==null?void 0:g.getSkeletonData();if(i==null)return;this._drawLiquid.reset();const{pages:o}=i,a=this.getParentScale(),c=V1(a),l=this.getExtensionsByOrder();for(const p of l)p.clearCache();let u=0,h=0;for(let p=0,b=o.length;p<b;p++){const v=o[p],{sections:m,marginTop:S=0,marginBottom:E=0,marginLeft:y=0,marginRight:T=0,width:O,height:F,renderConfig:w={}}=v,{verticalAlign:B=f.VerticalAlign.TOP,horizontalAlign:A=f.HorizontalAlign.LEFT,centerAngle:x=0,vertexAngle:M=0,wrapStrategy:k=f.WrapStrategy.UNSPECIFIED}=w,I=this._horizontalHandler(O*c,y*c,T*c,A),H=this._verticalHandler(F*c,S*c,E*c,B),P=R.create(I/c,H/c),z=x1(x),$=x1(M),W=$-z;this.onPageRenderObservable.notifyObservers({page:v,pageLeft:h,pageTop:u,ctx:t}),this._startRotation(t,W);for(const Y of m){const{columns:U}=Y;this._drawLiquid.translateSection(Y);for(const q of U){const{lines:s1,width:e1}=q;this._drawLiquid.translateColumn(q);const Q=s1.length;let t1,V=null;if($!==0){const{rotateTranslateXList:K,rotatedHeight:r1,rotatedWidth:_1,fixOffsetX:b1,fixOffsetY:D1,rotateTranslateY:l1}=z6(s1,e1,$);let T1=_1;r1>this.height&&k!==f.WrapStrategy.WRAP&&(k===f.WrapStrategy.OVERFLOW||$>0)&&(T1=this.height/Math.tan(Math.abs($)));const P1=this._horizontalHandler(T1,y,T,A);let u1=this._verticalHandler(r1,S,E,B)-D1;r1>this.height&&($<0?u1=this.height-(r1+D1):u1=-D1),t1=R.create(P1+b1,u1),this._drawLiquid.translate(0,-l1),V=K}else t1=P;for(let K=0;K<Q;K++){const r1=s1[K],{divides:_1,asc:b1=0,type:D1,lineHeight:l1=0}=r1,T1=b1,P1=T1*Math.sin(z),G1=T1*Math.cos(z);if(D1===B2.BLOCK)for(const u1 of l)u1.type===O6.LINE&&(u1.extensionOffset={alignOffset:t1,renderConfig:w},u1.draw(t,a,r1));else{this._drawLiquid.translateSave(),this._drawLiquid.translateLine(r1,!0),V&&this._drawLiquid.translate(V[K]);const u1=_1.length;for(let F1=0;F1<u1;F1++){const $1=_1[F1],{spanGroup:K1}=$1;this._drawLiquid.translateSave(),this._drawLiquid.translateDivide($1);for(const O1 of K1){if(!O1.content||O1.content.length===0)continue;const{width:q1,left:k1,paddingLeft:M2}=O1,{x:r6,y:o6}=this._drawLiquid,d2=R.create(r6,o6),f2=R.create(q1/2,l1/2),g2=E2(d2.addByPoint(k1+M2,0),f2,z,$,t1),L2=E2(d2.addByPoint(k1+P1+M2,G1),f2,z,$,t1),a6={originTranslate:d2,spanStartPoint:g2,spanPointWithFont:L2,centerPoint:f2,alignOffset:t1,renderConfig:w};for(const J1 of l)J1.type===O6.SPAN&&(J1.extensionOffset=a6,J1.draw(t,a,O1))}this._drawLiquid.translateRestore()}this._drawLiquid.translateRestore()}}}}this._resetRotation(t,W);const{x:j,y:G}=this._drawLiquid.translatePage(v,this.pageLayoutType,this.pageMarginLeft,this.pageMarginTop);h+=j,u+=G}}changeSkeleton(t){return this.setSkeleton(t),this}_draw(t,e){this.draw(t,e)}_horizontalHandler(t,e,s,i){let o=0;return i===f.HorizontalAlign.CENTER?o=(this.width-t)/2:i===f.HorizontalAlign.RIGHT?o=this.width-t-s:o=e,o}_verticalHandler(t,e,s,i){let o=0;return i===f.VerticalAlign.MIDDLE?o=(this.height-t)/2:i===f.VerticalAlign.BOTTOM?o=this.height-t-s:o=e,o}_startRotation(t,e){t.rotate(e||0)}_resetRotation(t,e){t.rotate(-e||0)}_initialDefaultExtension(){h2.getData().forEach(t=>{this.register(t)})}}class _f{}function df(r){const n=r.getBoundingClientRect(),t=document.body,e=document.documentElement,s=window.pageYOffset||e.scrollTop||t.scrollTop,i=window.pageXOffset||e.scrollLeft||t.scrollLeft,o=e.clientTop||t.clientTop,a=e.clientLeft||t.clientLeft,c=n.top+s-o,l=n.left+i-a;return{top:c,left:l}}var bt=(r=>(r[r.ALL=0]="ALL",r[r.X=1]="X",r[r.Y=2]="Y",r[r.NONE=3]="NONE",r))(bt||{});class a2{constructor(n,t=0,e,s=.05,i=.05){_(this,"_requestNewFrameNumber",-1);_(this,"_viewport");_(this,"_offsetX",0);_(this,"_offsetY",0);_(this,"_moveX",0);_(this,"_moveY",0);_(this,"_scrollX",0);_(this,"_scrollY",0);_(this,"_scrollFunction");this._scene=n,this._scrollTimerType=t,this._padding=e,this._smoothRatioX=s,this._smoothRatioY=i,this._padding||(this._padding={t:20,b:20,l:46,r:60})}static create(n,t=0,e){return new a2(n,t,e)}startScroll(n,t,e){this._offsetX=n,this._offsetY=t,this._moveX=n,this._moveY=t,e!=null?this._viewport=e:this._viewport=this.getViewportByCoord(this._scene),this._runRenderLoop()}_scroll(n){const t=(n==null?void 0:n.top)||0,e=t+((n==null?void 0:n.height)||0),s=(n==null?void 0:n.left)||0,i=s+((n==null?void 0:n.width)||0),{t:o=0,b:a=0,r:c=0,l=0}=this._padding;let u=0,h=0,g=!1;if(this._scrollTimerType!==2&&(this._moveX<s+l&&(u=(this._moveX-s-l)*this._smoothRatioX,g=!0),this._moveX>i-c&&(u=(this._moveX-i+c)*this._smoothRatioX,g=!0)),this._scrollTimerType!==1&&(this._moveY<t+o&&(h=(this._moveY-t-o)*this._smoothRatioY,g=!0),this._moveY>e-a&&(h=(this._moveY-e+a)*this._smoothRatioY,g=!0)),!g)return;const p=n==null?void 0:n.scrollBy({x:u,y:h}),b=n==null?void 0:n.getActualScroll(u,h);if(this._scrollX=(b==null?void 0:b.x)||0,this._scrollY=(b==null?void 0:b.y)||0,p){const v=this._findAncestorScene(n==null?void 0:n.scene),m=this.getViewportByCoord(v);m&&this._scroll(m)}}scrolling(n,t,e){this._moveX=n,this._moveY=t,this._scrollFunction=e}stopScroll(){q7(this._requestNewFrameNumber)}dispose(){this.stopScroll(),delete this._scrollFunction}getViewportByCoord(n){return n==null?void 0:n.getActiveViewportByRelativeCoord(R.FromArray([this._offsetX,this._offsetY]))}getScene(){return this._scene}_runRenderLoop(){this._scroll(this._viewport),this._scrollFunction&&this._scrollFunction(this._scrollX,this._scrollY),this._requestNewFrameNumber=C2(this._runRenderLoop.bind(this))}_findAncestorScene(n){let t=n==null?void 0:n.getParent();for(;t;){if(t.classType===N.SCENE)return t;t=(t==null?void 0:t.getParent)&&(t==null?void 0:t.getParent())}}}function vt(r){const n=r==null?void 0:r.getCanvasElement();if(!n)return{left:0,top:0};const{top:t,left:e}=df(n);return{left:e,top:t}}function k7(r){var c;const n=(c=r.parent)==null?void 0:c.parent,t=n==null?void 0:n.parent;if(n==null||t==null)return;const{paragraphIndex:e}=n,s=t.lines.filter(l=>l.paragraphIndex===e);let i=-1,o="",a=!1;for(const l of s)for(const u of l.divides)for(const h of u.spanGroup)a||(i+=h.count),h===r&&(a=!0),o+=h.count>0?h.content:"";return{st:s[0].st,ed:e,content:o,nodeIndex:i}}class ff extends f.RxDisposable{constructor(){super();_(this,"_onInputBefore$",new p1.BehaviorSubject(null));_(this,"onInputBefore$",this._onInputBefore$.asObservable());_(this,"_onKeydown$",new p1.BehaviorSubject(null));_(this,"onKeydown$",this._onKeydown$.asObservable());_(this,"_onInput$",new p1.BehaviorSubject(null));_(this,"onInput$",this._onInput$.asObservable());_(this,"_onCompositionstart$",new p1.BehaviorSubject(null));_(this,"onCompositionstart$",this._onCompositionstart$.asObservable());_(this,"_onCompositionupdate$",new p1.BehaviorSubject(null));_(this,"onCompositionupdate$",this._onCompositionupdate$.asObservable());_(this,"_onCompositionend$",new p1.BehaviorSubject(null));_(this,"onCompositionend$",this._onCompositionend$.asObservable());_(this,"_onSelectionStart$",new p1.BehaviorSubject(null));_(this,"onSelectionStart$",this._onSelectionStart$.asObservable());_(this,"_onPaste$",new p1.BehaviorSubject(null));_(this,"onPaste$",this._onPaste$.asObservable());_(this,"_textSelectionInner$",new p1.BehaviorSubject(null));_(this,"textSelectionInner$",this._textSelectionInner$.asObservable());_(this,"_container");_(this,"_inputParent");_(this,"_input");_(this,"_cursor");_(this,"_moveObserver");_(this,"_upObserver");_(this,"_viewportScrollX",0);_(this,"_viewportScrollY",0);_(this,"_rangeList",[]);_(this,"_currentSegmentId","");_(this,"_selectionStyle",y2);_(this,"_isSelectionEnabled",!0);_(this,"_viewPortObserverMap",new Map);_(this,"_isIMEInputApply",!1);_(this,"_activeViewport");_(this,"_docSkeleton");_(this,"_scene");_(this,"_document");this._initDOM()}__getEditorContainer(){return this._container}getViewPort(){return this._activeViewport}setSegment(t){this._currentSegmentId=t}setStyle(t=y2){this._selectionStyle=t}resetStyle(){this.setStyle()}enableSelection(){this._isSelectionEnabled=!0}disableSelection(){this._isSelectionEnabled=!1}addTextRanges(t){const{_scene:e,_docSkeleton:s}=this,i=this._document.getOffsetConfig();for(const o of t){const a=pt(e,o,s,i);this._add(a)}this._textSelectionInner$.next({textRanges:this._getAllTextRanges(),segmentId:this._currentSegmentId,style:this._selectionStyle}),this._updateDomCursorPositionAndSize(),this._scrollToSelection()}sync(){this._updateDomCursorPositionAndSize()}activate(t,e){this._container.style.left=`${t}px`,this._container.style.top=`${e}px`,this._container.style.zIndex="1000",this._cursor.style.animation="univer_cursor_blinkStyle 1s steps(1) infinite",this._cursor.style.display="revert",this.focus()}focus(){this._input.focus()}blur(){this._input.blur()}deactivate(){this._container.style.left="0px",this._container.style.top="0px",this._cursor.style.animation="",this._cursor.style.display="none"}changeRuntime(t,e,s){t!==this._docSkeleton&&this.removeAllTextRanges(),this._docSkeleton=t,this._scene=e,this._activeViewport=e.getViewports()[0],this._document=s}handleDblClick(t){if(!this._scene||!this._isSelectionEnabled)return;const{offsetX:e,offsetY:s}=t,i=this._findNodeByCoord(e,s);if(i==null||i.node==null)return;const o=k7(i.node);if(o==null)return;const{content:a,st:c,nodeIndex:l}=o;if(l===-1||Intl.Segmenter==null)return;const h=new Intl.Segmenter(void 0,{granularity:"word"}).segment(a);let g=-1/0,p=-1/0;for(const{segment:b,index:v,isWordLike:m}of h)if(v<=l&&l<v+b.length&&m){g=v+c,p=v+c+b.length;break}if(Number.isFinite(g)&&Number.isFinite(p)){this.removeAllTextRanges();const b=[{startOffset:g,endOffset:p}];this.addTextRanges(b)}}handleTripleClick(t){if(!this._scene||!this._isSelectionEnabled)return;const{offsetX:e,offsetY:s}=t,i=this._findNodeByCoord(e,s);if(i==null||i.node==null)return;const o=k7(i.node);if(o==null)return;this.removeAllTextRanges();const{st:a,ed:c}=o,l=[{startOffset:a,endOffset:c,collapsed:a===c}];this.addTextRanges(l)}eventTrigger(t){var p;if(!this._scene||!this._isSelectionEnabled)return;const e=this._scene,{offsetX:s,offsetY:i}=t;this._attachScrollEvent(this._activeViewport||e.getActiveViewportByCoord(R.FromArray([s,i])));const o=this._findNodeByCoord(s,i),a=this._getNodePosition(o);if(a==null){this._removeAllTextRanges();return}if((o==null?void 0:o.node.streamType)===f.DataStreamTreeTokenType.PARAGRAPH&&(a.isBack=!0),t.ctrlKey||this._isEmpty()){const b=new V2(e,this._document.getOffsetConfig(),this._docSkeleton,a);this._addTextRange(b)}else this._updateTextRangePosition(a);this._activeSelectionRefresh(),e.disableEvent();const c=a2.create(e);c.startScroll(s,i);const{scrollX:l,scrollY:u}=e2(c);this._viewportScrollX=l,this._viewportScrollY=u,this._onSelectionStart$.next((p=this._getActiveRangeInstance())==null?void 0:p.startNodePosition);let h=s,g=i;this._moveObserver=e.onPointerMoveObserver.add(b=>{const{offsetX:v,offsetY:m}=b;e.setCursor(i1.TEXT),!(Math.sqrt((v-h)**2+(m-g)**2)<3)&&(this._moving(v,m,c),c.scrolling(v,m,()=>{this._moving(v,m,c)}),h=v,g=m)}),this._upObserver=e.onPointerUpObserver.add(()=>{e.onPointerMoveObserver.remove(this._moveObserver),e.onPointerUpObserver.remove(this._upObserver),e.enableEvent(),this._textSelectionInner$.next({textRanges:this._getAllTextRanges(),segmentId:this._currentSegmentId,style:this._selectionStyle}),c.dispose(),this._updateDomCursorPositionAndSize()})}removeAllTextRanges(){this._removeAllTextRanges(),this.deactivate()}_getAllTextRanges(){return this._rangeList}_getActiveRange(){const t=this._rangeList.find(l=>l.isActive());if(t==null)return null;const{startOffset:e,endOffset:s,collapsed:i,startNodePosition:o,endNodePosition:a,direction:c}=t;return e==null||s==null?null:{startOffset:e,endOffset:s,collapsed:i,startNodePosition:o,endNodePosition:a,direction:c,segmentId:this._currentSegmentId,style:this._selectionStyle}}_add(t){t!=null&&(this._addTextRange(t),t.refresh())}_getActiveRangeInstance(){return this._rangeList.find(t=>t.isActive())}dispose(){super.dispose(),this._detachEvent(),this._container.remove()}_initDOM(){const t=document.createElement("div");t.style.position="fixed",t.style.left="0px",t.style.top="0px";const e=document.createElement("div"),s=document.createElement("div"),i=document.createElement("div");e.appendChild(s),t.appendChild(e),t.appendChild(i),this._container=t,this._inputParent=e,this._input=s,this._cursor=i,this._initInput(),this._initDOMCursor(),this._initInputEvents(),document.body.appendChild(t)}_initInput(){this._inputParent.style.cssText=`
|
|
2
2
|
position:absolute;
|
|
3
3
|
height:1px;
|
|
4
4
|
width:1px;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
z-index: 0;
|
|
27
27
|
pointer-events: none;
|
|
28
28
|
display: none
|
|
29
|
-
`,
|
|
29
|
+
`,o4("keyframes univer_cursor_blinkStyle")||r4([`
|
|
30
30
|
@-webkit-keyframes univer_cursor_blinkStyle {
|
|
31
31
|
0% {
|
|
32
32
|
opacity: 1;
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
opacity: 1;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
`])}_getNodePosition(t){var c;if(t==null)return;const{node:e,ratioX:s}=t,i=(c=this._docSkeleton)==null?void 0:c.findPositionBySpan(e);if(i==null)return;const a=s<.5;return{...i,isBack:a}}_interactTextRange(t){const e=[];let s=!1;this._rangeList.forEach(i=>{if(i===t)return!0;t.isIntersection(i)?(s=!0,i.dispose()):e.push(i)}),s&&(e.push(t),this._rangeList=e)}_removeAllTextRanges(){this._rangeList.forEach(t=>{t.dispose()}),this._rangeList=[]}_deactivateAllTextRanges(){this._rangeList.forEach(t=>{t.deactivate()})}_addTextRange(t){this._deactivateAllTextRanges(),t.activate(),this._rangeList.push(t)}_updateTextRangePosition(t){if(!this._scene)return;let e=this._rangeList.pop();e||(e=new G2(this._scene,this._documentOffsetConfig,this._docSkeleton,t)),this._removeAllTextRanges(),e.activate(),e.anchorNodePosition=t,e.focusNodePosition=null,this._rangeList=[e]}_isEmpty(){return this._rangeList.length===0}_getCanvasOffset(){var e;const t=(e=this._scene)==null?void 0:e.getEngine();return bt(t)}_scrollToSelection(){var y;const t=this._getActiveRangeInstance(),e=t==null?void 0:t.getAnchor();if(!e||e&&!e.visible||this._activeViewport==null)return;const{scaleX:s,scaleY:i}=((y=this._scene)==null?void 0:y.getAncestorScale())||{scaleX:1,scaleY:1},{left:o,top:a,height:c,width:l}=e,{left:u,top:h,right:g,bottom:p}=this._activeViewport.getBounding().viewBound,m=l/s,v=c/i;let b=0,S=0;a<h?b=a-h:a>p-v&&(b=a-p+v),o<u?S=o-u:o>g-m&&(S=o-g+m);const E=this._activeViewport.getBarScroll(S,b);this._activeViewport.scrollBy(E)}_updateDomCursorPositionAndSize(){var p;const t=this._getActiveRangeInstance(),e=t==null?void 0:t.getAnchor();if(!e||e&&!e.visible||this._activeViewport==null){this.focus();return}const{height:s,left:i,top:o}=e,a=this._activeViewport.getAbsoluteVector(B.FromArray([i,o])),{scaleY:c}=((p=this._scene)==null?void 0:p.getAncestorScale())||{scaleX:1,scaleY:1},{x:l,y:u}=a;this._cursor.style.height=`${s*c}px`;let{left:h,top:g}=this._getCanvasOffset();h+=l,g+=u,this.activate(h,g)}_moving(t,e,s){if(this._docSkeleton==null)return;const i=this._findNodeByCoord(t,e),o=this._getNodePosition(i);if(!o)return;const a=this._getActiveRangeInstance();a&&(a.focusNodePosition=o,a.refresh(),this.deactivate(),this._interactTextRange(a))}_attachScrollEvent(t){if(t==null)return;const e=t.viewPortKey;if(this._viewPortObserverMap.has(e))return;const s=t.onScrollBeforeObserver.add(o=>{if(!o.viewport)return;const c=this._getActiveRangeInstance();c==null||c.activeStatic(),this._cursor.style.display="none"}),i=t.onScrollStopObserver.add(o=>{const a=o.viewport;if(!a)return;const c=a.getBounding(),l=this._getActiveRangeInstance(),u=l==null?void 0:l.getAnchor();if(!(!u||u&&!u.visible)){if(c){const{left:h,top:g,right:p,bottom:m}=c.viewBound;if(u.strokeWidth<h||p<0||u.strokeWidth<g||m<0)return}this._updateDomCursorPositionAndSize(),l==null||l.deactivateStatic(),this._cursor.style.display="revert"}});this._viewPortObserverMap.set(e,{scrollBefore:s,scrollStop:i})}_initInputEvents(){this._input.addEventListener("keydown",t=>{this._isIMEInputApply||this._eventHandle(t,e=>{this._onKeydown$.next(e)})}),this._input.addEventListener("input",t=>{this._isIMEInputApply||this._eventHandle(t,e=>{this._onInputBefore$.next(e),this._onInput$.next(e)})}),this._input.addEventListener("compositionstart",t=>{this._isIMEInputApply=!0,this._eventHandle(t,e=>{this._onCompositionstart$.next(e)})}),this._input.addEventListener("compositionend",t=>{this._isIMEInputApply=!1,this._eventHandle(t,e=>{this._onCompositionend$.next(e)})}),this._input.addEventListener("compositionupdate",t=>{this._eventHandle(t,e=>{this._onInputBefore$.next(e),this._onCompositionupdate$.next(e)})}),this._input.addEventListener("paste",t=>{this._eventHandle(t,e=>{this._onPaste$.next(e)})})}_eventHandle(t,e){const s=this._input.textContent||"";this._input.innerHTML="";const i=this._getActiveRange(),o=this._getAllTextRanges();e({event:t,content:s,activeRange:i,rangeList:o})}_getTransformCoordForDocumentOffset(t,e){const{documentTransform:s}=this._documentOffsetConfig;if(this._activeViewport==null||s==null)return;const i=this._activeViewport.getRelativeVector(B.FromArray([t,e]));if(i)return s.clone().invert().applyPoint(i)}_findNodeByCoord(t,e){var c;const s=this._getTransformCoordForDocumentOffset(t,e);if(s==null)return;const{pageLayoutType:i=b1.VERTICAL,pageMarginLeft:o,pageMarginTop:a}=this._documentOffsetConfig;return(c=this._docSkeleton)==null?void 0:c.findNodeByCoord(s,i,o,a)}_detachEvent(){this._onInputBefore$.complete(),this._onKeydown$.complete(),this._onInput$.complete(),this._onCompositionstart$.complete(),this._onCompositionupdate$.complete(),this._onCompositionend$.complete(),this._onSelectionStart$.complete()}_activeSelectionRefresh(){if(this._docSkeleton==null)return;const t=this._getActiveRangeInstance();t==null||t.refresh()}}const ff=s2.createIdentifier("deprecated.univer.doc.text-selection-render-manager");class gf{}class r7 extends Y6{constructor(n,t){super(n),this._skeleton=t}getSkeleton(){return this._skeleton}updateSkeleton(n){this._skeleton=n}render(n,t){if(!this.visible)return this.makeDirty(!1),this;n.save(),this._draw(n,t),n.restore()}getParentScale(){let{scaleX:n=1,scaleY:t=1}=this.parent;return this.parent.classType===P.SCENE_VIEWER&&(n=this.parent.ancestorScaleX||1,t=this.parent.ancestorScaleY||1),{scaleX:n,scaleY:t}}getDocuments(){}getNoMergeCellPositionByIndex(n,t){}getScrollXYByRelativeCoords(n){return{x:0,y:0}}getSelectionBounding(n,t,e,s){}_draw(n,t){}}class o7 extends r7{_draw(n,t){this.draw(n,t)}}class Df extends o7{constructor(t,e){super(t,e);_(this,"_columnHeaderLayoutExtension");this._initialDefaultExtension(),this.makeDirty(!0)}get columnHeaderLayoutExtension(){return this._columnHeaderLayoutExtension}draw(t,e){const s=this.getSkeleton();if(!s)return;const i=this.getParentScale();s.calculateSegment(e);const o=s.rowColumnSegment;if(o.startColumn===-1&&o.endColumn===-1)return;const a=G1(i),{rowHeaderWidth:c}=s;t.translate(K(c,a),0);const l=this.getExtensionsByOrder();for(const u of l)u.draw(t,i,s)}isHit(t){const e=this._getInverseCoord(t),s=this.getSkeleton();if(!s)return!1;const{rowHeaderWidth:i,columnHeaderHeight:o}=s;return e.x>i&&e.y>=0&&e.y<=o}_initialDefaultExtension(){i7.getData().forEach(t=>{this.register(t)}),this._columnHeaderLayoutExtension=this.getExtensionByKey("DefaultColumnHeaderLayoutExtension")}}var vt=(r=>(r[r.GRID=0]="GRID",r))(vt||{});class d2 extends n7{constructor(){super(...arguments);_(this,"type",0)}getCellIndex(t,e,s,i,o){return i2(t,e,s,i,o)}isRenderDiffRangesByCell(t,e,s){if(s==null)return!0;for(const i of s){const{startRow:o,startColumn:a,endRow:c,endColumn:l}=i;if(t>=o&&t<=c&&e>=a&&e<=l)return!0}return!1}isRenderDiffRangesByColumn(t,e){if(e==null)return!0;for(const s of e){const{startColumn:i,endColumn:o}=s;if(t>=i&&t<=o)return!0}return!1}isRenderDiffRangesByRow(t,e){if(e==null)return!0;for(const s of e){const{startRow:i,endRow:o}=s;if(t>=i&&t<=o)return!0}return!1}}const pf="DefaultBackgroundExtension",mf=50;class Ct extends d2{constructor(){super(...arguments);_(this,"uKey",pf);_(this,"zIndex",mf)}draw(t,e,s,i){const{dataMergeCache:o,stylesCache:a}=s,{background:c,backgroundPositions:l}=a;if(!s)return;const{rowHeightAccumulation:u,columnTotalWidth:h,columnWidthAccumulation:g,rowTotalHeight:p}=s;!u||!g||h===void 0||p===void 0||(t.save(),t.globalCompositeOperation="destination-over",c&&Object.keys(c).forEach(m=>{const v=c[m];t.fillStyle=m||c1([255,255,255]),t.beginPath(),v.forValue((b,S)=>{const E=l==null?void 0:l.getValue(b,S);if(E==null)return!0;let{startY:y,endY:T,startX:F,endX:O}=E;const{isMerged:w,isMergedMainCell:R,mergeInfo:x}=E;if(w||!this.isRenderDiffRangesByRow(x.startRow,i)&&!this.isRenderDiffRangesByRow(x.endRow,i)||!this.isRenderDiffRangesByColumn(x.startColumn,i)&&!this.isRenderDiffRangesByColumn(x.endColumn,i))return!0;R&&(y=x.startY,T=x.endY,F=x.startX,O=x.endX),t.moveTo(F,y),t.lineTo(F,T),t.lineTo(O,T),t.lineTo(O,y)}),t.closePath(),t.fill()}),t.restore())}}x2.add(new Ct);const bf="DefaultBorderExtension",vf=30;class St extends d2{constructor(){super(...arguments);_(this,"uKey",bf);_(this,"zIndex",vf)}draw(t,e,s,i){const{dataMergeCache:o,stylesCache:a,overflowCache:c}=s,{border:l}=a;if(!s)return;const{rowHeightAccumulation:u,columnTotalWidth:h,columnWidthAccumulation:g,rowTotalHeight:p}=s;if(!u||!g||h===void 0||p===void 0)return;t.save();const m=this._getScale(e);let v,b;t.translate(g1/m,g1/m),l==null||l.forValue((S,E,y)=>{if(!y)return!0;const T=this.getCellIndex(S,E,u,g,o);let{startY:F,endY:O,startX:w,endX:R}=T;const{isMerged:x,isMergedMainCell:$,mergeInfo:A}=T;if(x||($&&(F=A.startY,O=A.endY,w=A.startX,R=A.endX),!this.isRenderDiffRangesByRow(A.startRow-1,i)&&!this.isRenderDiffRangesByRow(A.endRow+1,i))||!this.isRenderDiffRangesByColumn(A.startColumn-1,i)&&!this.isRenderDiffRangesByColumn(A.endColumn+1,i))return!0;for(const k in y){const{type:N,style:I,color:L}=y[k];this._getOverflowExclusion(c,N,S,E)||(I!==v&&(X6(t,I),t.lineWidth=z6(I)/m,v=I),L!==b&&(t.strokeStyle=L||j1,b=L),H6(t,N,{startX:K(w,m),startY:K(F,m),endX:K(R,m),endY:K(O,m)}))}}),t.closePath(),t.restore()}_getOverflowExclusion(t,e,s,i){let o=!1;return e===e1.TOP||e===e1.BOTTOM||t==null||t.forRow((a,c)=>{if(a!==s)return!0;c.forEach(l=>{const u=t.getValue(a,l),{startColumn:h,endColumn:g}=u;if(e===e1.LEFT&&i>h&&i<=g||e===e1.RIGHT&&i>=h&&i<g)return o=!0,!1})}),o}}x2.add(new St);const Cf="DefaultColumnHeaderLayoutExtension";class Et extends d2{constructor(){super(...arguments);_(this,"uKey",Cf);_(this,"zIndex",10)}draw(t,e,s){const{rowColumnSegment:i,columnHeaderHeight:o=0}=s,{startColumn:a,endColumn:c}=i;if(!s)return;const{rowHeightAccumulation:l,columnTotalWidth:u,columnWidthAccumulation:h,rowTotalHeight:g}=s;if(!l||!h||u===void 0||g===void 0)return;const p=this._getScale(e);t.fillStyle=c1([248,249,250]),t.fillRect(0,0,u,o),t.textAlign="center",t.textBaseline="middle",t.fillStyle=c1([0,0,0]),t.beginPath(),t.lineWidth=L1(1)/p,t.translate(g1/p,g1/p),t.strokeStyle=c1([217,217,217]),t.font=`13px ${Z2}`;let m=0;const v=h.length;for(let S=a-1;S<=c;S++){if(S<0||S>v-1)continue;const E=h[S];if(m===E)continue;t.moveTo(K(E,p),0),t.lineTo(K(E,p),o);const y=m+(E-m)/2;t.fillText(f.numberToABC(S),y,o/2+x6),m=E}const b=o-1/p;t.moveTo(0,K(b,p)),t.lineTo(u,K(b,p)),t.stroke()}}i7.add(new Et);const Sf="DefaultFontExtension",Ef=40;class yt extends d2{constructor(){super(...arguments);_(this,"uKey",Sf);_(this,"zIndex",Ef);_(this,"changeFontColor",new f.ObjectMatrix)}getDocuments(){const t=this.parent;return t==null?void 0:t.getDocuments()}setChangeFontColor(t,e,s){this.changeFontColor.setValue(t,e,s)}draw(t,e,s,i){const{stylesCache:o,dataMergeCache:a,overflowCache:c}=s,{font:l}=o;if(!s)return;const{rowHeightAccumulation:u,columnTotalWidth:h,columnWidthAccumulation:g,rowTotalHeight:p}=s;if(!u||!g||h===void 0||p===void 0)return;t.save();const m=this._getScale(e);l&&Object.keys(l).forEach(v=>{l[v].forValue((S,E,y)=>{const T=this.getCellIndex(S,E,u,g,a);let{startY:F,endY:O,startX:w,endX:R}=T;const{isMerged:x,isMergedMainCell:$,mergeInfo:A}=T;if(x||($&&(F=A.startY,O=A.endY,w=A.startX,R=A.endX),!this.isRenderDiffRangesByRow(A.startRow,i)&&!this.isRenderDiffRangesByRow(A.endRow,i)))return!0;const k=R-w,N=O-F,I=c.getValue(S,E),{horizontalAlign:L}=y;if(t.save(),t.beginPath(),I){const{startColumn:X,startRow:H,endColumn:z,endRow:Y}=I;X===z&&X===E?(t.rect(w,F,k,N),t.clearRect(w+1,F+1,k-2,N-2)):L===f.HorizontalAlign.CENTER?this._clipRectangle(t,H,Y,X,z,m,u,g):L===f.HorizontalAlign.RIGHT?this._clipRectangle(t,H,S,X,E,m,u,g):this._clipRectangle(t,S,Y,E,z,m,u,g)}else t.rect(w,F,k,N),t.clearRect(w+1,F+1,k-2,N-2);t.clip(),t.translate(w,F),this._renderDocuments(t,y,w,F,R,O,S,E),t.restore()})}),t.restore()}_renderDocuments(t,e,s,i,o,a,c,l){const u=this.getDocuments();if(u==null)throw new Error("documents is null");const{documentSkeleton:h,angle:g,wrapStrategy:p}=e,m=o-s,v=a-i;p===f.WrapStrategy.WRAP&&g===0?(h.getViewModel().getDataModel().updateDocumentDataPageSize(m),h.calculate()):h.getViewModel().getDataModel().updateDocumentDataPageSize(1/0),h.makeDirty(!1),u.resize(m,v),u.changeSkeleton(h).render(t)}_clipRectangle(t,e,s,i,o,a,c,l){const u=c[e-1]||0,h=c[s]||c[c.length-1],g=l[i-1]||0,p=l[o]||l[l.length-1];t.rect(g,u,p-g,h-u),t.clearRect(g,u,p-g,h-u)}}x2.add(new yt);const yf="DefaultRowHeaderLayoutExtension";class Tt extends d2{constructor(){super(...arguments);_(this,"uKey",yf);_(this,"zIndex",10)}draw(t,e,s){const{rowColumnSegment:i,rowHeaderWidth:o=0,columnHeaderHeight:a=0}=s,{startRow:c,endRow:l,startColumn:u,endColumn:h}=i;if(!s)return;const{rowHeightAccumulation:g,columnTotalWidth:p,columnWidthAccumulation:m,rowTotalHeight:v}=s;if(!g||!m||p===void 0||v===void 0)return;const b=this._getScale(e);t.fillStyle=c1([248,249,250]),t.fillRect(0,0,o,v),t.textAlign="center",t.textBaseline="middle",t.fillStyle=c1([0,0,0]),t.beginPath(),t.lineWidth=L1(1)/b,t.translate(g1/b,g1/b),t.strokeStyle=c1([217,217,217]),t.font=`13px ${Z2}`;let S=0;const E=g.length;for(let T=c-1;T<=l;T++){if(T<0||T>E-1)continue;const F=g[T];if(S===F)continue;t.moveTo(0,K(F,b)),t.lineTo(o,K(F,b));const O=S+(F-S)/2;t.fillText(`${T+1}`,o/2,O+x6),S=F}const y=o-1/b;t.moveTo(K(y,b),0),t.lineTo(K(y,b),v),t.stroke()}}s7.add(new Tt);var Ft=(r=>(r[r.OFF=0]="OFF",r[r.ON=1]="ON",r))(Ft||{});class Tf extends o7{constructor(t,e){super(t,e);_(this,"_rowHeaderLayoutExtension");this._initialDefaultExtension(),this.makeDirty(!0)}get rowHeaderLayoutExtension(){return this._rowHeaderLayoutExtension}draw(t,e){const s=this.getSkeleton();if(!s)return;const i=this.getParentScale();s.calculateSegment(e);const o=s.rowColumnSegment;if(o.startRow===-1&&o.endRow===-1)return;const a=G1(i),{columnHeaderHeight:c}=s;t.translate(0,K(c,a));const l=this.getExtensionsByOrder();for(const u of l)u.draw(t,i,s)}isHit(t){const e=this._getInverseCoord(t),s=this.getSkeleton();if(!s)return!1;const{rowHeaderWidth:i,columnHeaderHeight:o}=s;return e.x>=0&&e.x<=i&&e.y>o}_initialDefaultExtension(){s7.getData().forEach(t=>{this.register(t)}),this._rowHeaderLayoutExtension=this.getExtensionByKey("DefaultRowHeaderLayoutExtension")}}class w1{constructor(n,t){_(this,"children",[]);_(this,"parent");_(this,"startIndex",-1);_(this,"endIndex",-1);_(this,"blocks",[]);this.nodeType=n,this.content=t}static create(n,t){return new w1(n,t)}dispose(){this.children.forEach(n=>{n.dispose()}),this.parent=null,this.blocks=[]}getProps(){const{children:n,parent:t,startIndex:e,endIndex:s,nodeType:i,content:o}=this;return{children:n,parent:t,startIndex:e,endIndex:s,nodeType:i,content:o}}addBlocks(n){this.blocks=this.blocks.concat(n)}setIndexRange(n,t){this.startIndex=n,this.endIndex=t}insertText(n,t){this.content=f.insertTextToContent(this.content||"",t-this.startIndex,n)}exclude(n){const{startIndex:t,endIndex:e}=this;return n<t||n>e}plus(n){this.startIndex+=n,this.endIndex+=n,this._addIndexForBlock(n)}selfPlus(n,t){this.endIndex+=n,t==null&&(t=this.startIndex),this._addIndexForBlock(n,t)}split(n){const{children:t,parent:e,startIndex:s,nodeType:i,content:o=""}=this.getProps();if(this.exclude(n))return;const a=0,c=n-s,l=c,u=o.slice(a,c),h=w1.create(i,u);h.parent=e,h.setIndexRange(a,c-1);const g=o.slice(l),p=w1.create(i,g);p.parent=e,p.setIndexRange(l,l+g.length-1);const m=[],v=[];for(const b of t){const{startIndex:S}=b;if(b.exclude(n))n<S?m.push(b):v.push(b);else{const E=b.split(n);if(E==null){m.push(b);continue}const{firstNode:y,lastNode:T}=E;m.push(y),m.push(T)}}return h.children=m,p.children=v,h._resetBlocks(),p._resetBlocks(),{firstNode:h,lastNode:p}}getPositionInParent(){var t;const n=(t=this.parent)==null?void 0:t.children.indexOf(this);return n??-1}remove(){this.children=[],this.parent!=null&&(this.parent.children.splice(this.getPositionInParent(),1),this.parent=null)}minus(n,t){const e=f.horizontalLineSegmentsSubtraction(this.startIndex,this.endIndex,n,t);if(e.length===0)return;const s=this.startIndex;this.startIndex=e[0],this.endIndex=e[1],this.content!=null&&(this.content=f.deleteContent(this.content||"",n-s,t-s+1))}merge(n){const{startIndex:t,endIndex:e,children:s}=n;this.endIndex+=e-t+1,this.children.push(...s),this.content+=n.content||"",n.remove()}_addIndexForBlock(n,t=-1/0){for(let e=0,s=this.blocks.length;e<s;e++){const i=this.blocks[e];i>=t&&(this.blocks[e]=i+n)}}_resetBlocks(){if(this.nodeType===f.DataStreamTreeNodeType.PARAGRAPH&&this.content!=null&&this.content.length!==0){this.blocks=[];for(let n=0,t=this.content.length;n<t;n++)this.content[n]===f.DataStreamTreeTokenType.CUSTOM_BLOCK&&this.blocks.push(this.startIndex+n)}}}class I1{constructor(n){_(this,"children",[]);_(this,"_sectionBreakCurrentIndex",0);_(this,"_paragraphCurrentIndex",0);_(this,"_textRunCurrentIndex",0);_(this,"_customBlockCurrentIndex",0);_(this,"_tableBlockCurrentIndex",0);_(this,"_customRangeCurrentIndex",0);_(this,"headerTreeMap",new Map);_(this,"footerTreeMap",new Map);this._documentDataModel=n,n.getBody()!=null&&(this.children=this._transformToTree(n.getBody().dataStream),this._buildHeaderFooterViewModel())}dispose(){this.children.forEach(n=>{n.dispose()})}selfPlus(n,t){}getPositionInParent(){return 0}getLastIndex(){return this.children[this.children.length-1].endIndex}getBody(){return this._documentDataModel.getBody()}getDataModel(){return this._documentDataModel}getSelfOrHeaderFooterViewModel(n){return n==null?this:this.headerTreeMap.has(n)?this.headerTreeMap.get(n):this.footerTreeMap.has(n)?this.footerTreeMap.get(n):this}reset(n){this._documentDataModel=n,this.children=this._transformToTree(n.getBody().dataStream),this._buildHeaderFooterViewModel()}insert(n,t=0){var o;const e=n.dataStream;let s=e.length;const i=this._getParagraphByIndex(this.children,t);if(i!=null)if(e[s-1]===f.DataStreamTreeTokenType.SECTION_BREAK){const a=new f.DocumentDataModel({body:n}),c=new I1(a);s-=1;const l=c.children;for(const p of l)this._forEachDown(p,m=>{m.plus(t)});const u=i.split(t);if(u==null)return;const{firstNode:h,lastNode:g}=u;(o=i.parent)==null||o.children.splice(i.getPositionInParent(),1,h,...l,g),this._forEachTop(i.parent,p=>{p.selfPlus(s,p.getPositionInParent());const m=p.children;let v=!1;for(const b of m)b===g&&(v=!0),v&&this._forEachDown(b,S=>{S.plus(s)})})}else s===1&&e[s-1]===f.DataStreamTreeTokenType.PARAGRAPH?this._insertParagraph(i,t):(i.insertText(e,t),i.selfPlus(s,t),this._forEachTop(i.parent,a=>{a.selfPlus(s,a.getPositionInParent());const c=a.children;let l=!1;for(const u of c)u.startIndex>t&&(l=!0),l&&this._forEachDown(u,h=>{h.plus(s)})}))}delete(n,t){const e=this.children;this._deleteTree(e,n,t)}getText(){const n=[];function t(e){e.content&&n.push(e.content),e.children.forEach(t)}return this.children.forEach(e=>t(e)),n.join("")}resetCache(){this._sectionBreakCurrentIndex=0,this._paragraphCurrentIndex=0,this._textRunCurrentIndex=0,this._customBlockCurrentIndex=0,this._tableBlockCurrentIndex=0,this._customRangeCurrentIndex=0}getSectionBreak(n){if(n==null)return;const t=this.getBody().sectionBreaks;if(t!=null)for(let e=this._sectionBreakCurrentIndex;e<t.length;e++){const s=t[e];if(s.startIndex===n)return this._sectionBreakCurrentIndex=e,s}}getParagraph(n){const t=this.getBody().paragraphs;if(t!=null)for(let e=this._paragraphCurrentIndex;e<t.length;e++){const s=t[e];if(s.startIndex===n)return this._paragraphCurrentIndex=e,s}}getTextRunRange(n=0,t){const e=this.getBody().textRuns;if(e==null)return[{st:n,ed:t}];const s=[];for(let a=this._textRunCurrentIndex,c=e.length;a<c;a++){const l=e[a];if(l.st>t){this._textRunCurrentIndex=a;break}else if(l.ed<n){this._textRunCurrentIndex=a;continue}else s.push({st:l.st<n?n:l.st,ed:l.ed>t?t:l.ed,sId:l.sId,ts:l.ts}),this._textRunCurrentIndex=a}const i=s[0]||{st:t+1};i.st>n&&s.push({st:n,ed:i.st-1});const o=s[s.length-1]||{ed:n-1};return o.ed<t&&s.push({st:o.ed+1,ed:t}),s}getTextRun(n){const t=this.getBody().textRuns;if(t==null)return;const e=t[this._textRunCurrentIndex];if(e!=null){if(n>=e.st&&n<e.ed)return e;if(n<e.st)return}for(let s=this._textRunCurrentIndex,i=t.length;s<i;s++){const o=t[s];if(n>=o.st&&n<o.ed)return this._textRunCurrentIndex=s,o}}getCustomBlock(n){const t=this.getBody().customBlocks;if(t!=null)for(let e=this._customBlockCurrentIndex;e<t.length;e++){const s=t[e];if(s.startIndex===n)return this._customBlockCurrentIndex=e,s}}getTable(n){const t=this.getBody().tables;if(t!=null)for(let e=this._tableBlockCurrentIndex;e<t.length;e++){const s=t[e];if(s.startIndex===n)return this._tableBlockCurrentIndex=e,s}}getCustomRange(n){const t=this.getBody().customRanges;if(t!=null)for(let e=0,s=t.length;e<s;e++){const i=t[e];if(n>=i.startIndex&&n<=i.endIndex)return i}}_transformToTree(n){const t=n.length;let e="";const s=[];let i=[],o=[];for(let a=0;a<t;a++){const c=n[a];if(c===f.DataStreamTreeTokenType.PARAGRAPH){e+=f.DataStreamTreeTokenType.PARAGRAPH;const l=w1.create(f.DataStreamTreeNodeType.PARAGRAPH,e);l.setIndexRange(a-e.length+1,a),l.addBlocks(o),i.push(l),e="",o=[]}else if(c===f.DataStreamTreeTokenType.SECTION_BREAK){const l=w1.create(f.DataStreamTreeNodeType.SECTION_BREAK);this._batchParent(l,i);const u=i[i.length-1];u&&u.content&&(u.content+=f.DataStreamTreeTokenType.SECTION_BREAK),s.push(l),i=[]}else c===f.DataStreamTreeTokenType.TABLE_START?i.push(w1.create(f.DataStreamTreeNodeType.TABLE)):c===f.DataStreamTreeTokenType.TABLE_ROW_START?i.push(w1.create(f.DataStreamTreeNodeType.TABLE_ROW)):c===f.DataStreamTreeTokenType.TABLE_CELL_START?i.push(w1.create(f.DataStreamTreeNodeType.TABLE_CELL)):c===f.DataStreamTreeTokenType.TABLE_END?this._processPreviousNodesUntil(i,f.DataStreamTreeNodeType.TABLE):c===f.DataStreamTreeTokenType.TABLE_ROW_END?this._processPreviousNodesUntil(i,f.DataStreamTreeNodeType.TABLE_ROW):c===f.DataStreamTreeTokenType.TABLE_CELL_END?this._processPreviousNodesUntil(i,f.DataStreamTreeNodeType.TABLE_CELL):(c===f.DataStreamTreeTokenType.CUSTOM_BLOCK&&o.push(a),e+=c)}return s}_processPreviousNodesUntil(n,t){const e=[];let s=n.pop();for(;s&&s.nodeType!==t;)e.push(s),s=n.pop();const i=n[n.length-1];if(this._batchParent(i,e,f.DataStreamTreeNodeType.TABLE),t===f.DataStreamTreeNodeType.TABLE_CELL){const o=e[0],a=e[e.length];o.content=f.DataStreamTreeTokenType.TABLE_CELL_START+o.content||"",o.startIndex-=1,a.content+=f.DataStreamTreeTokenType.TABLE_CELL_END,a.endIndex+=1}else if(t===f.DataStreamTreeNodeType.TABLE_ROW){const o=e[0].children[0];let a=e[e.length];a=a.children[a.children.length-1],o.content=f.DataStreamTreeTokenType.TABLE_ROW_START+o.content||"",o.startIndex-=1,a.content+=f.DataStreamTreeTokenType.TABLE_ROW_END,a.endIndex+=1}else if(t===f.DataStreamTreeNodeType.TABLE){const o=e[0].children[0].children[0];let a=e[e.length];a=a.children[a.children.length-1],a=a.children[a.children.length-1],o.content=f.DataStreamTreeTokenType.TABLE_START+o.content||"",o.startIndex-=1,a.content+=f.DataStreamTreeTokenType.TABLE_END,a.endIndex+=1}}_batchParent(n,t,e=f.DataStreamTreeNodeType.SECTION_BREAK){for(const i of t)i.parent=n,n.children.push(i);const s=e===f.DataStreamTreeNodeType.SECTION_BREAK?0:1;n.setIndexRange(t[0].startIndex-s,t[t.length-1].endIndex+1)}_buildHeaderFooterViewModel(){const{headerModelMap:n,footerModelMap:t}=this._documentDataModel;for(const[e,s]of n)this.headerTreeMap.set(e,new I1(s));for(const[e,s]of t)this.footerTreeMap.set(e,new I1(s))}_getParagraphByIndex(n,t){for(const e of n){const{children:s}=e;if(!e.exclude(t))return e.nodeType===f.DataStreamTreeNodeType.PARAGRAPH?e:this._getParagraphByIndex(s,t)}return null}_forEachTop(n,t){let e=n;for(;e;)t(e),e=e.parent;t(this)}_forEachDown(n,t){t(n);const e=n.children;for(n of e)this._forEachDown(n,t)}_deleteTree(n,t,e){const s=t,i=t+e-1;let o=null,a=n.length,c=0;for(;c<a;){const l=n[c],{startIndex:u,endIndex:h,children:g}=l;if(this._deleteTree(g,t,e),s===i&&i===h){if(l.nodeType===f.DataStreamTreeNodeType.PARAGRAPH){const p=this._getNextNode(l);if(p==null){c++;continue}l.minus(s,i),l.merge(p),a--}}else if(s<=u&&i>=h){l.remove(),a--;continue}else if(u<=s&&h>=i)l.minus(s,i);else if(i>u&&i<h){if(l.minus(u,i),o!=null){o.merge(l),o=null,a--;continue}}else s>u&&s<h?(l.minus(s,h),o=l):u>i&&l.plus(-e);c++}}_getNextNode(n){var s;const t=n.getPositionInParent(),e=(s=n.parent)==null?void 0:s.children;return e==null?void 0:e[t+1]}_insertParagraph(n,t=0){var c;const e=n.startIndex,s=n.endIndex,i=n.split(t);if(i==null)return;const{firstNode:o,lastNode:a}=i;o.content+=f.DataStreamTreeTokenType.PARAGRAPH,o.selfPlus(1),o.plus(e),this._forEachDown(a,l=>{l.plus(e+1)}),(c=n.parent)==null||c.children.splice(n.getPositionInParent(),1,o,a),this._forEachTop(n.parent,l=>{l.selfPlus(1,l.getPositionInParent());const u=l.children;let h=!1;for(const g of u)g!==a&&(g.startIndex>=s+1&&(h=!0),h&&this._forEachDown(g,p=>{p.plus(1)}))})}}function K2(r,n=0){const t=r==null?void 0:r.getSkeletonData(),e=x1(n);if(!t)return;const{pages:s}=t,i=s[s.length-1];if(e===0){const{width:u,height:h}=i;return{width:u,height:h}}let o=0,a=0;const c=[];A4([i],u=>{const{lines:h,width:g,spaceWidth:p}=u,{rotatedHeight:m,rotatedWidth:v}=W6(h,g,e);a+=m,c.push({rotatedWidth:v,spaceWidth:p})});const l=c.length;for(let u=0;u<l;u++){const{rotatedWidth:h}=c[u];u===0&&(o+=h)}return{width:o,height:a}}const t2=90,H7={t:0,b:0,l:2,r:2};class a7 extends exports.Skeleton{constructor(t,e,s,i,o){super(o);_(this,"_rowHeightAccumulation",[]);_(this,"_rowTotalHeight",0);_(this,"_columnWidthAccumulation",[]);_(this,"_columnTotalWidth",0);_(this,"_rowHeaderWidth",0);_(this,"_columnHeaderHeight",0);_(this,"_rowColumnSegment",{startRow:-1,endRow:-1,startColumn:-1,endColumn:-1});_(this,"_dataMergeCache",[]);_(this,"_overflowCache",new f.ObjectMatrix);_(this,"_stylesCache",{background:{},backgroundPositions:new f.ObjectMatrix,font:{},border:new f.ObjectMatrix});_(this,"_renderedCellCache",new f.ObjectMatrix);_(this,"_showGridlines",f.BooleanNumber.TRUE);_(this,"_marginTop",0);_(this,"_marginLeft",0);this._worksheet=t,this._config=e,this._cellData=s,this._styles=i,this.updateLayout()}get rowHeightAccumulation(){return this._rowHeightAccumulation}get rowTotalHeight(){return this._rowTotalHeight}get columnWidthAccumulation(){return this._columnWidthAccumulation}get columnTotalWidth(){return this._columnTotalWidth}get rowHeaderWidth(){return this._rowHeaderWidth}get columnHeaderHeight(){return this._columnHeaderHeight}get rowColumnSegment(){return this._rowColumnSegment}get dataMergeCache(){return this._dataMergeCache}get stylesCache(){return this._stylesCache}get overflowCache(){return this._overflowCache}get showGridlines(){return this._showGridlines}get mergeData(){return this._config.mergeData}get rowHeaderWidthAndMarginLeft(){return this.rowHeaderWidth+this._marginLeft}get columnHeaderHeightAndMarginTop(){return this.columnHeaderHeight+this._marginTop}static create(t,e,s,i,o){return new a7(t,e,s,i,o)}getWorksheetConfig(){return this._config}getCellData(){return this._cellData}getsStyles(){return this._styles}setOverflowCache(t){this._overflowCache=t}setMarginLeft(t){this._marginLeft=t}setMarginTop(t){this._marginTop=t}calculateSegment(t){if(this._config&&(this.updateLayout(),!(!this._rowHeightAccumulation||!this._columnWidthAccumulation)))return t!=null&&(this._rowColumnSegment=this.getRowColumnSegment(t)),!0}calculateWithoutClearingCache(t){if(!this.calculateSegment(t))return;const{mergeData:e}=this._config;return this._dataMergeCache=e&&this._getMergeCells(e,this._rowColumnSegment),this._calculateStylesCache(),this}calculate(t){return this._resetCache(),this.calculateWithoutClearingCache(t),this}calculateAutoHeightInRange(t){var a;if(!f.Tools.isArray(t))return[];const e=[],{mergeData:s,rowData:i}=this._config,o=i;for(const c of t){const{startRow:l,endRow:u,startColumn:h,endColumn:g}=c;for(let p=l;p<=u;p++){if(e.some(({row:v})=>v===p)||((a=o[p])==null?void 0:a.isAutoHeight)===!1)continue;if(i4(p,h,g,s)){const v=this._calculateRowAutoHeight(p);e.push({row:p,autoHeight:v})}}}return e}_calculateRowAutoHeight(t){var u;const{columnCount:e,columnData:s,mergeData:i,defaultRowHeight:o}=this._config,a=s;let c=o;const l=this._worksheet;if(!l)return c;for(let h=0;h<e;h++){const{isMerged:g,isMergedMainCell:p}=e6(t,h,i);if(g||p)continue;const m=l.getCell(t,h),v=m&&this._getCellDocumentModel(m);if(v==null)continue;const{documentModel:b,textRotation:S,wrapStrategy:E}=v;if(b==null)continue;const y=new I1(b);let{a:T}=S;const{v:F=f.BooleanNumber.FALSE}=S;F===f.BooleanNumber.TRUE&&(T=t2);const O=(u=a[h])==null?void 0:u.w;typeof O=="number"&&E===f.WrapStrategy.WRAP&&b.updateDocumentDataPageSize(O);const w=a2.create(y,this._localService);w.calculate();const{height:R=0}=K2(w,T)??{};c=Math.max(c,R)}return Math.min(c,G7)}updateLayout(){if(!this.dirty)return;const{rowData:t,columnData:e,defaultRowHeight:s,defaultColumnWidth:i,rowCount:o,columnCount:a,rowHeader:c,columnHeader:l,showGridlines:u}=this._config,{rowTotalHeight:h,rowHeightAccumulation:g}=this._generateRowMatrixCache(o,t,s),{columnTotalWidth:p,columnWidthAccumulation:m}=this._generateColumnMatrixCache(a,e,i);return this._rowHeaderWidth=c.hidden!==f.BooleanNumber.TRUE?c.width:0,this._columnHeaderHeight=l.hidden!==f.BooleanNumber.TRUE?l.height:0,this._rowTotalHeight=h,this._rowHeightAccumulation=g,this._columnTotalWidth=p,this._columnWidthAccumulation=m,this._showGridlines=u,this.makeDirty(!1),this}getRowColumnSegment(t){return this._getBounding(this._rowHeightAccumulation,this._columnWidthAccumulation,t==null?void 0:t.viewBound)}getRowColumnSegmentByViewBound(t){return this._getBounding(this._rowHeightAccumulation,this._columnWidthAccumulation,t)}getMergeBounding(t,e,s,i){const o=this._config.mergeData;if(!o)return{startRow:t,startColumn:e,endRow:s,endColumn:i};let a=!0;const c=new f.ObjectMatrix;for(;a;){a=!1;for(let l=0;l<o.length;l++){const{startRow:u,startColumn:h,endRow:g,endColumn:p}=o[l];if(c.getValue(u,h))continue;r4({left:e,top:t,right:i,bottom:s},{left:h,top:u,right:p,bottom:g})&&(t=Math.min(t,u),e=Math.min(e,h),s=Math.max(s,g),i=Math.max(i,p),c.setValue(u,h,!0),a=!0)}}return{startRow:t,startColumn:e,endRow:s,endColumn:i}}appendToOverflowCache(t,e,s,i){this._overflowCache.setValue(t,e,{startRow:t,endRow:t,startColumn:s,endColumn:i})}getColumnCount(){return this._columnWidthAccumulation.length}getRowCount(){return this._rowHeightAccumulation.length}getOverflowPosition(t,e,s,i,o){const{width:a}=t;let c=i,l=i;return e===f.HorizontalAlign.CENTER?(c=this._getOverflowBound(s,i,0,a/2,e),l=this._getOverflowBound(s,i,o-1,a/2,e)):e===f.HorizontalAlign.RIGHT?c=this._getOverflowBound(s,i,0,a):l=this._getOverflowBound(s,i,o-1,a),{startColumn:c,endColumn:l}}getNoMergeCellPositionByIndex(t,e,s,i){const{rowHeightAccumulation:o,columnWidthAccumulation:a,rowHeaderWidthAndMarginLeft:c,columnHeaderHeightAndMarginTop:l}=this;let{startY:u,endY:h,startX:g,endX:p}=z1(t,e,o,a);return u+=l,h+=l,g+=c,p+=c,{startY:u,endY:h,startX:g,endX:p}}getNoMergeCellPositionByIndexWithNoHeader(t,e,s,i){const{rowHeightAccumulation:o,columnWidthAccumulation:a}=this,{startY:c,endY:l,startX:u,endX:h}=z1(t,e,o,a);return{startY:c,endY:l,startX:u,endX:h}}calculateCellIndexByPosition(t,e,s,i,o){const{row:a,column:c}=this.getCellPositionByOffset(t,e,s,i,o);return this.getCellByIndex(a,c,s,i)}getCellPositionByOffset(t,e,s,i,o){const a=this.getRowPositionByOffsetY(e,i,o),c=this.getColumnPositionByOffsetX(t,s,o);return{row:a,column:c}}getColumnPositionByOffsetX(t,e,s){t=this.getTransformOffsetX(t,e,s);const{columnWidthAccumulation:i}=this;let o=f.searchArray(i,t);return o===1/0?o=i.length-1:o===-1&&(o=0),o}getRowPositionByOffsetY(t,e,s){const{rowHeightAccumulation:i}=this;t=this.getTransformOffsetY(t,e,s);let o=f.searchArray(i,t);return o===1/0?o=i.length-1:o===-1&&(o=0),o}getTransformOffsetX(t,e,s){const{x:i}=s;return t=t/e+i-this.rowHeaderWidthAndMarginLeft,t}getTransformOffsetY(t,e,s){const{y:i}=s;return t=t/e+i-this.columnHeaderHeightAndMarginTop,t}getOffsetByPositionX(t){const{columnWidthAccumulation:e,rowHeaderWidthAndMarginLeft:s}=this,i=e.length-1,o=e[t];return o!=null?o+s:t<0?s:e[i]+s}getOffsetByPositionY(t){const{rowHeightAccumulation:e,columnHeaderHeightAndMarginTop:s}=this,i=e.length-1,o=e[t];return o!=null?o+s:t<0?s:e[i]+s}getCellByIndex(t,e,s,i){const{rowHeightAccumulation:o,columnWidthAccumulation:a,rowHeaderWidthAndMarginLeft:c,columnHeaderHeightAndMarginTop:l}=this,u=i2(t,e,o,a,this._config.mergeData),{isMerged:h,isMergedMainCell:g}=u;let{startY:p,endY:m,startX:v,endX:b,mergeInfo:S}=u;return p+=l,m+=l,v+=c,b+=c,S=C6(S,c,l),{actualRow:t,actualColumn:e,startY:p,endY:m,startX:v,endX:b,isMerged:h,isMergedMainCell:g,mergeInfo:S}}getCellByIndexWithNoHeader(t,e,s,i){const{rowHeightAccumulation:o,columnWidthAccumulation:a}=this,c=i2(t,e,o,a,this._config.mergeData),{isMerged:l,isMergedMainCell:u}=c,{startY:h,endY:g,startX:p,endX:m,mergeInfo:v}=c,b=C6(v,0,0);return{actualRow:t,actualColumn:e,startY:h,endY:g,startX:p,endX:m,isMerged:l,isMergedMainCell:u,mergeInfo:b}}convertTransformToOffsetX(t,e,s){const{x:i}=s;return t=(t-i)*e,t}convertTransformToOffsetY(t,e,s){const{y:i}=s;return t=(t-i)*e,t}getSelectionBounding(t,e,s,i){return this.getMergeBounding(t,e,s,i)}getBlankCellDocumentModel(t){const e=this._getCellDocumentModel(t,void 0,void 0,!0);if(e!=null)return e.documentModel==null&&(e.documentModel=this._getDocumentDataByStyle("",{},{})),e;const s="";let i="document";const o={a:0,v:f.BooleanNumber.FALSE},a=f.HorizontalAlign.UNSPECIFIED,c=f.VerticalAlign.UNSPECIFIED,l=f.WrapStrategy.UNSPECIFIED,u=H7;return i=E2({},this._localService).fontCache,{documentModel:this._getDocumentDataByStyle(s,{},{}),fontString:i,textRotation:o,wrapStrategy:l,verticalAlign:c,horizontalAlign:a,paddingData:u}}getCellDocumentModelWithFormula(t){return this._getCellDocumentModel(t,!0,!0,!0)}_getCellDocumentModel(t,e=!1,s=!1,i=!1){var v;const o=this._styles.getStyleByCell(t);if(!t)return;let a,c="document";const l=this._getOtherStyle(o),u=i?{a:0,v:f.BooleanNumber.FALSE}:l.textRotation||{a:0,v:f.BooleanNumber.FALSE},h=l.horizontalAlign||f.HorizontalAlign.UNSPECIFIED,g=l.verticalAlign||f.VerticalAlign.UNSPECIFIED,p=l.wrapStrategy||f.WrapStrategy.UNSPECIFIED,m=l.paddingData||H7;if(t.f&&s)a=this._getDocumentDataByStyle(t.f.toString(),{},{});else if(t.p){const{a:b=0,v:S=f.BooleanNumber.FALSE}=u;let E=0,y=b;S===f.BooleanNumber.TRUE&&(E=t2,y=t2),a=this._updateConfigAndGetDocumentModel(e?f.Tools.deepClone(t.p):t.p,h,{horizontalAlign:h,verticalAlign:g,centerAngle:E,vertexAngle:y,wrapStrategy:p})}else if(t.v!=null){const b=this._getFontFormat(o);c=E2(b,this._localService).fontCache,a=this._getDocumentDataByStyle(t.v.toString(),b,{...l,textRotation:u})}return{documentModel:a,fontString:c,textRotation:u,wrapStrategy:p,verticalAlign:g,horizontalAlign:h,paddingData:m,fill:(v=o==null?void 0:o.bg)==null?void 0:v.rgb}}getDecomposedOffset(t,e){let s=f.searchArray(this._columnWidthAccumulation,t),i=0;s===-1||s===0?(s=0,i=t):i=t-this._columnWidthAccumulation[s-1];let o=f.searchArray(this._rowHeightAccumulation,e),a=0;return o===-1||o===0?(o=0,a=e):a=e-this._rowHeightAccumulation[o-1],{row:o,column:s,columnOffset:i,rowOffset:a}}_getBounding(t,e,s){const i=t.length,o=e.length;if(!s)return{startRow:0,endRow:i-1,startColumn:0,endColumn:o-1};let a=-1,c=-1,l=-1,u=-1;const h=f.searchArray(t,s.top-this.columnHeaderHeightAndMarginTop),g=f.searchArray(t,s.bottom-this.columnHeaderHeightAndMarginTop);h===-1&&g===-1?(a=-1,c=-1):(h===-1?a=0:a=h,g===1/0||g>=i?c=i-1:c=g);const p=f.searchArray(e,s.left-this.rowHeaderWidthAndMarginLeft),m=f.searchArray(e,s.right-this.rowHeaderWidthAndMarginLeft);return p===-1&&m===-1?(l=-1,u=-1):(p===-1?l=0:l=p,m===1/0||m>=o?u=o-1:u=m),{startRow:a,endRow:c,startColumn:l,endColumn:u}}_generateRowMatrixCache(t,e,s){let i=0;const o=[],a=e;for(let c=0;c<t;c++){let l=s;if(a[c]!=null){const u=a[c];if(!u)continue;const{h=s,ah:g,isAutoHeight:p}=u;(p==null||p)&&typeof g=="number"?l=g:l=h,u.hd===f.BooleanNumber.TRUE&&(l=0)}i+=l,o.push(i)}return{rowTotalHeight:i,rowHeightAccumulation:o}}_generateColumnMatrixCache(t,e,s){let i=0;const o=[],a=e;for(let c=0;c<t;c++){let l=s;if(a[c]!=null){const u=a[c];if(!u)continue;u.w!=null&&(l=u.w),u.hd===f.BooleanNumber.TRUE&&(l=0)}i+=l,o.push(i)}return{columnTotalWidth:i,columnWidthAccumulation:o}}_getOverflowBound(t,e,s,i,o=f.HorizontalAlign.LEFT){var c,l;let a=0;if(e>s){const u=this._columnWidthAccumulation.length-1;for(let h=e;h>=s;h--){const g=h,p=(c=this._worksheet)==null?void 0:c.getCell(t,g);if(!f.isEmptyCell(p)&&g!==e||this.intersectMergeRange(t,g))return g===e?g:g+1>u?u:g+1;const{startX:m,endX:v}=z1(t,g,this.rowHeightAccumulation,this.columnWidthAccumulation);if(o===f.HorizontalAlign.CENTER&&g===e?a+=(v-m)/2:a+=v-m,i<a)return g}return e}for(let u=e;u<=s;u++){const h=u,g=(l=this._worksheet)==null?void 0:l.getCell(t,h);if(!f.isEmptyCell(g)&&h!==e||this.intersectMergeRange(t,h))return h===e?h:h-1<0?0:h-1;const{startX:p,endX:m}=z1(t,h,this.rowHeightAccumulation,this.columnWidthAccumulation);if(o===f.HorizontalAlign.CENTER&&h===e?a+=(m-p)/2:a+=m-p,i<a)return h}return s}intersectMergeRange(t,e){const s=this.dataMergeCache;for(const i of s){const{startRow:o,endRow:a,startColumn:c,endColumn:l}=i;if(t>=o&&t<=a&&e>=c&&e<=l)return!0}return!1}_calculateStylesCache(){const t=this._dataMergeCache,e=this._rowColumnSegment,s=this.columnWidthAccumulation,{startRow:i,endRow:o,startColumn:a,endColumn:c}=e;for(let l=i;l<=o;l++){for(let u=a;u<=c;u++)this._setCellCache(l,u,!1);for(let u=0;u<a;u++)this._setCellCache(l,u,!0);for(let u=c+1;u<s.length;u++)this._setCellCache(l,u,!0)}for(const l of t)this._setCellCache(l.startRow,l.startColumn,!1)}_resetCache(){this._stylesCache={background:{},backgroundPositions:new f.ObjectMatrix,font:{},border:new f.ObjectMatrix},this._renderedCellCache=new f.ObjectMatrix}_setCellCache(t,e,s){var F;if(this._renderedCellCache.getValue(t,e)||t===-1||e===-1||(this._renderedCellCache.setValue(t,e,!0),!this._worksheet)||this._worksheet.getColVisible(e)===!1||this._worksheet.getRowVisible(t)===!1)return!0;const a=this._worksheet.getCell(t,e);if(!a)return!0;const c=this._stylesCache,l=this._styles.getStyleByCell(a);if(!s&&l&&l.bg&&l.bg.rgb){const O=l.bg.rgb;c.background[O]||(c.background[O]=new f.ObjectMatrix),c.background[O].setValue(t,e,O);const R=this.getCellByIndexWithNoHeader(t,e,1,1);(F=c.backgroundPositions)==null||F.setValue(t,e,R)}if(!s&&l&&l.bd&&(this._setBorderProps(t,e,e1.TOP,l,c),this._setBorderProps(t,e,e1.BOTTOM,l,c),this._setBorderProps(t,e,e1.LEFT,l,c),this._setBorderProps(t,e,e1.RIGHT,l,c)),f.isNullCell(a))return;const u=a&&this._getCellDocumentModel(a);if(u==null)return;const{documentModel:h,fontString:g,textRotation:p,wrapStrategy:m,verticalAlign:v,horizontalAlign:b}=u;if(h==null)return;const S=new I1(h);c.font[g]||(c.font[g]=new f.ObjectMatrix);const E=c.font[g];let{a:y}=p;const{v:T=f.BooleanNumber.FALSE}=p;if(T===f.BooleanNumber.TRUE&&(y=t2),S){const O=a2.create(S,this._localService);O.calculate(),E.setValue(t,e,{documentSkeleton:O,angle:y,verticalAlign:v,horizontalAlign:b,wrapStrategy:m})}}_updateConfigAndGetDocumentModel(t,e,s){var o;if(!s||!((o=t.body)!=null&&o.dataStream))return;t.documentStyle||(t.documentStyle={}),t.documentStyle.renderConfig=s;const i=t.body.paragraphs||[];for(const a of i)a.paragraphStyle||(a.paragraphStyle={}),a.paragraphStyle.horizontalAlign=e;return new f.DocumentDataModel(t)}_getDocumentDataByStyle(t,e,s){const i=t.length,{textRotation:o={a:0,v:f.BooleanNumber.FALSE},paddingData:a={t:0,r:2,b:0,l:2},horizontalAlign:c=f.HorizontalAlign.UNSPECIFIED,verticalAlign:l=f.VerticalAlign.UNSPECIFIED,wrapStrategy:u=f.WrapStrategy.UNSPECIFIED}=s,{a:h=0,v:g=f.BooleanNumber.FALSE}=o,{t:p,r:m,b:v,l:b}=a;let S=0,E=h;g===f.BooleanNumber.TRUE&&(S=t2,E=t2);const y={id:"d",body:{dataStream:`${t}${f.DEFAULT_EMPTY_DOCUMENT_VALUE}`,textRuns:[{ts:e,st:0,ed:i}],paragraphs:[{startIndex:i,paragraphStyle:{horizontalAlign:c}}]},documentStyle:{pageSize:{width:1/0,height:1/0},marginTop:p,marginBottom:v,marginRight:m,marginLeft:b,renderConfig:{horizontalAlign:c,verticalAlign:l,centerAngle:S,vertexAngle:E,wrapStrategy:u}}};return new f.DocumentDataModel(y)}_setBorderProps(t,e,s,i,o){var u;const a=(u=i.bd)==null?void 0:u[s];if(!a||!o.border)return!0;const c=f.getColorStyle(a.cl)||j1,l=o.border;l.getValue(t,e)||l.setValue(t,e,{[s]:{}}),l.getValue(t,e)[s]={type:s,style:a.s,color:c}}_getFontFormat(t){if(!t)return{};const{ff:e,fs:s,it:i,bl:o,ul:a,st:c,ol:l,cl:u}=t,h={};return e&&(h.ff=e),s&&(h.fs=s),i&&(h.it=i),o&&(h.bl=o),a&&(h.ul=a),c&&(h.st=c),l&&(h.ol=l),u&&(h.cl=u),h}_getOtherStyle(t){if(!t)return{};const{tr:e,td:s,ht:i,vt:o,tb:a,pd:c}=t;return{textRotation:e,textDirection:s,horizontalAlign:i,verticalAlign:o,wrapStrategy:a,paddingData:c}}_getMergeCells(t,e){const s=this.columnWidthAccumulation.length-1;e?e={startRow:e.startRow,endRow:e.endRow,endColumn:s,startColumn:0}:e={startRow:0,startColumn:0,endRow:this.rowHeightAccumulation.length-1,endColumn:s};const{startRow:i,startColumn:o,endRow:a,endColumn:c}=e,l=[];for(let u=0;u<t.length;u++){const{startRow:h,endRow:g,startColumn:p,endColumn:m}=t[u];for(let v=i;v<=a;v++){let b=!1;for(let S=o;S<=c;S++)if(v>=h&&v<=g&&S>=p&&S<=m){l.push({startRow:h,endRow:g,startColumn:p,endColumn:m}),b=!0;break}if(b)break}}return l}}const Ff="__SHEET_EXTENSION_FONT_DOCUMENT_INSTANCE__";class Of extends r7{constructor(t,e,s=!0){super(t,e);_(this,"_backgroundExtension");_(this,"_borderExtension");_(this,"_fontExtension");_(this,"_cacheCanvas");_(this,"_refreshIncrementalState",!1);_(this,"_forceDirty",!1);_(this,"_overflowCacheRuntime",{});_(this,"_overflowCacheRuntimeRange",new f.ObjectMatrix);_(this,"_overflowCacheRuntimeTimeout",-1);_(this,"_documents",new M2(Ff,void 0,{pageMarginLeft:0,pageMarginTop:0}));this._allowCache=s,this._allowCache&&(this._cacheCanvas=new l2,this.onIsAddedToParentObserver.add(i=>{var o;(o=i==null?void 0:i.getEngine())==null||o.onTransformChangeObservable.add(()=>{this._resizeCacheCanvas()}),this._resizeCacheCanvas(),this._addMakeDirtyToScroll()})),this._initialDefaultExtension(),this.makeDirty(!0)}get backgroundExtension(){return this._backgroundExtension}get borderExtension(){return this._borderExtension}get fontExtension(){return this._fontExtension}getDocuments(){return this._documents}draw(t,e){const s=this.getSkeleton();if(!s)return;const i=this.getParentScale();this._calculateOverflow();const o=this._refreshIncrementalState?e==null?void 0:e.diffBounds.map(c=>s.getRowColumnSegmentByViewBound(c)):void 0,a=this.getExtensionsByOrder();for(const c of a)c.draw(t,i,s,o);clearTimeout(this._overflowCacheRuntimeTimeout),this._overflowCacheRuntimeTimeout=setTimeout(()=>{this._overflowCacheRuntimeRange.reset(),this._overflowCacheRuntime={}},1e3)}isHit(t){const e=this._getInverseCoord(t),s=this.getSkeleton();if(!s)return!1;const{rowHeaderWidth:i,columnHeaderHeight:o}=s;return e.x>i&&e.y>o}getNoMergeCellPositionByIndex(t,e){const s=this.getSkeleton();if(!s)return;const{rowHeightAccumulation:i,columnWidthAccumulation:o,rowHeaderWidth:a,columnHeaderHeight:c}=s;this.getParentScale();let{startY:l,endY:u,startX:h,endX:g}=z1(t,e,i,o);return l+=c,u+=c,h+=a,g+=a,{startY:l,endY:u,startX:h,endX:g}}getScrollXYByRelativeCoords(t){const e=this.getParent();let s=0,i=0;const o=e.getActiveViewportByRelativeCoord(t);if(o){const a=o.actualScrollX||0,c=o.actualScrollY||0;s+=a,i+=c}return{x:s,y:i}}makeForceDirty(t=!0){this._forceDirty=t}getAncestorScrollXY(t,e){let s=this.getParent(),i=0,o=0;const a=B.FromArray([t,e]);for(;s;){if(s.classType===P.SCENE){const l=s.getActiveViewportByCoord(a);if(l){const u=l.actualScrollX||0,h=l.actualScrollY||0;i+=u,o+=h}}s=(s==null?void 0:s.getParent)&&(s==null?void 0:s.getParent())}return{x:i,y:o}}getSelectionBounding(t,e,s,i){var o;return(o=this.getSkeleton())==null?void 0:o.getMergeBounding(t,e,s,i)}render(t,e){if(!this.visible)return this.makeDirty(!1),this;e.viewBound;const s=this.getSkeleton();if(!s)return;s.calculateWithoutClearingCache(e);const i=s.rowColumnSegment;if(i.startRow===-1&&i.endRow===-1||i.startColumn===-1&&i.endColumn===-1)return;t.save();const o=this.getParentScale(),a=G1(o),{rowHeaderWidth:c,columnHeaderHeight:l}=s;if(t.translate(K(c,a),K(l,a)),this._drawAuxiliary(t),e&&this._allowCache===!0){const{viewBound:u,diffBounds:h,diffX:g,diffY:p,viewPortPosition:m,viewPortKey:v}=e;if(v==="viewColumnRight"||v==="viewRowBottom"||v==="viewLeftTop")return;if(v==="viewMain"){const b=this._cacheCanvas.getContext();b.save();const{left:S,top:E,right:y,bottom:T}=m,F=y-S+c,O=T-E+l;if(g!==0&&p!==0||h[0]==null||g===0&&p===0||this._forceDirty)(this.isDirty()||this._forceDirty)&&(this._cacheCanvas.clear(),b.setTransform(t.getTransform()),this._draw(b,e)),this._applyCache(t,S,E,F,O,S,E,F,O),this._forceDirty=!1;else{if(this.isDirty()){const w=this._cacheCanvas.getPixelRatio();b.save(),b.globalCompositeOperation="copy",b.setTransform(1,0,0,1,0,0),b.drawImage(this._cacheCanvas.getCanvasEle(),K(g,a)*w*a,K(p,a)*w*a),b.restore(),this._refreshIncrementalState=!0,b.setTransform(t.getTransform()),this._draw(b,e),this._refreshIncrementalState=!1}this._applyCache(t,S,E,F,O,S,E,F,O)}b.restore()}else this._draw(t,e)}else this._draw(t,e);return t.restore(),this.makeDirty(!1),this}_resizeCacheCanvas(){const t=this._getAncestorSize();if(!t||this._cacheCanvas==null)return;const{width:e,height:s}=t;this._cacheCanvas.setSize(e,s),this.makeDirty(!0)}_applyCache(t,e=0,s=0,i=0,o=0,a=0,c=0,l=0,u=0){if(!t)return;const h=this._cacheCanvas.getPixelRatio(),g=this._cacheCanvas.getContext();g.save(),t.save(),t.setTransform(1,0,0,1,0,0),g.setTransform(1,0,0,1,0,0),t.drawImage(this._cacheCanvas.getCanvasEle(),e,s,i*h,o*h,a,c,l*h,u*h),t.restore(),g.restore()}_draw(t,e){this.draw(t,e)}_getAncestorSize(){const t=this._getAncestorParent();if(t){if(t.classType===P.ENGINE){const e=t.getCanvas();return{width:e.getWidth(),height:e.getHeight()}}if(t.classType===P.SCENE_VIEWER)return{width:t.width,height:t.height}}}_getAncestorParent(){let t=this.parent;for(;t;){if(t.classType===P.ENGINE||t.classType===P.SCENE_VIEWER)return t;t=(t==null?void 0:t.getParent)&&(t==null?void 0:t.getParent())}}_initialDefaultExtension(){x2.getData().sort(f.sortRules).forEach(t=>{this.register(t)}),this._backgroundExtension=this.getExtensionByKey("DefaultBackgroundExtension"),this._borderExtension=this.getExtensionByKey("DefaultBorderExtension"),this._fontExtension=this.getExtensionByKey("DefaultFontExtension")}_addMakeDirtyToScroll(){this._hasScrollViewportOperator(this,t=>{t.onScrollBeforeObserver.add(()=>{this.makeDirty(!0)})})}_hasScrollViewportOperator(t,e){let s=t.getParent();for(;s;){if(s.classType===P.SCENE){const i=s.getViewports(),o=this._getHasScrollViewports(i);for(const a of o)a&&e(a)}s=(s==null?void 0:s.getParent)&&(s==null?void 0:s.getParent())}}_getHasScrollViewports(t){const e=[];for(const s of t)s.getScrollBar()&&e.push(s);return e}_calculateOverflow(){const t=this.getSkeleton();if(!t)return;const e=t.getColumnCount(),{stylesCache:s,rowHeightAccumulation:i,columnWidthAccumulation:o,mergeData:a}=t,{font:c}=s;c&&Object.keys(c).forEach(l=>{const u=c[l];u.forRow((h,g)=>{this._overflowCacheRuntime[h]==null&&(g.forEach(p=>{const m=u.getValue(h,p),{documentSkeleton:v,angle:b=0,horizontalAlign:S,wrapStrategy:E}=m,y=t.getCellData().getValue(h,p),T=this.getSkeleton();if(!T)return!0;const{t:F=f.CellValueType.STRING}=y||{};if(E===f.WrapStrategy.OVERFLOW&&F!==f.CellValueType.NUMBER&&F!==f.CellValueType.BOOLEAN&&S!==f.HorizontalAlign.JUSTIFIED){if(t.intersectMergeRange(h,p))return!0;let O=K2(v,b);if(!O)return!0;if(b!==0){const{startY:$,endY:A,startX:k,endX:N}=i2(h,p,i,o,a),I=N-k,L=A-$;O.height>L&&(O={width:L/Math.tan(Math.abs(b))+I,height:L})}const w=t.getOverflowPosition(O,S,h,p,e),{startColumn:R,endColumn:x}=w;this._overflowCacheRuntimeRange.setValue(h,p,{startRow:h,endRow:h,startColumn:R,endColumn:x})}else if(E===f.WrapStrategy.WRAP&&b!==0){if(t.intersectMergeRange(h,p))return!0;const{startY:O,endY:w}=i2(h,p,i,o,a),R=w-O;v.getViewModel().getDataModel().updateDocumentDataPageSize(R),v.calculate();const x=K2(v,b);if(!x)return!0;const{startColumn:$,endColumn:A}=T.getOverflowPosition(x,S,h,p,T.getColumnCount());this._overflowCacheRuntimeRange.setValue(h,p,{startRow:h,endRow:h,startColumn:$,endColumn:A})}}),this._overflowCacheRuntime[h]=!0)}),u.forValue((h,g,p)=>{})}),t.setOverflowCache(this._overflowCacheRuntimeRange)}_drawAuxiliary(t){const e=this.getSkeleton();if(e==null)return;const{rowColumnSegment:s,dataMergeCache:i,overflowCache:o,stylesCache:a,showGridlines:c}=e,{border:l,backgroundPositions:u}=a,{startRow:h,endRow:g,startColumn:p,endColumn:m}=s;if(!e||c===f.BooleanNumber.FALSE)return;const{rowHeightAccumulation:v,columnTotalWidth:b,columnWidthAccumulation:S,rowTotalHeight:E}=e;if(!v||!S||b===void 0||E===void 0)return;t.save();const{scaleX:y,scaleY:T}=this.getParentScale(),F=Math.max(y,T);t.beginPath(),t.lineWidth=L1(1)/F,t.strokeStyle=c1([212,212,212]);const O=b,w=E,R=S.length,x=v.length,$=h,A=g,k=0;t.translate(g1/F,g1/F);for(let N=$;N<=A;N++){if(N<0||N>x-1)continue;const I=v[N];t.moveTo(0,K(I,F)),t.lineTo(O,K(I,F))}for(let N=p;N<=m;N++){if(N<0||N>R-1)continue;const I=S[N];t.moveTo(K(I,F),k),t.lineTo(K(I,F),w)}t.stroke(),t.closePath(),l==null||l.forValue((N,I,L)=>{if(!L)return!0;const X=e.getCellByIndexWithNoHeader(N,I,y,T);let{startY:H,endY:z,startX:Y,endX:J}=X;const{isMerged:W,isMergedMainCell:j,mergeInfo:G}=X;if(W||(j&&(H=G.startY,z=G.endY,Y=G.startX,J=G.endX),!(G.startRow>=$&&G.endRow<=A)))return!0;for(const s1 in L){const{type:t1}=L[s1];h4(t,t1,{startX:Y,startY:H,endX:J,endY:z},y,T)}}),t.closePath(),this._clearRectangle(t,F,v,S,i),this._clearRectangle(t,F,v,S,o.toNativeArray()),this._clearBackground(t,F,u),t.restore()}_clearRectangle(t,e,s,i,o){if(o!=null)for(const a of o){const{startRow:c,endRow:l,startColumn:u,endColumn:h}=a,g=K(s[c-1]||0,e),p=K(s[l]||s[s.length-1],e),m=K(i[u-1]||0,e),v=K(i[h]||i[i.length-1],e);t.clearRect(m,g,v-m,p-g),t.beginPath(),t.moveTo(m,g),t.lineTo(v,g),t.lineTo(v,p),t.lineTo(m,p),t.lineTo(m,g),t.stroke(),t.closePath()}}_clearBackground(t,e,s){s==null||s.forValue((i,o,a)=>{let{startY:c,endY:l,startX:u,endX:h}=a;const{isMerged:g,isMergedMainCell:p,mergeInfo:m}=a;if(g)return!0;p&&(c=m.startY,l=m.endY,u=m.startX,h=m.endX),t.clearRect(u,c,h-u,l-c)})}}function X7(r,n,t){r.onPointerEnterObserver.add(e=>{n(r,e)}),r.onPointerLeaveObserver.add(e=>{t(r,e)})}class c7 extends M1{constructor(t,e){super(t);_(this,"_subScenes",new Map);_(this,"_activeSubScene");_(this,"_allowSelectedClipElement",!1);this._initialProps(e)}get classType(){return P.SCENE_VIEWER}render(t,e){var i;if(!this.visible)return this.makeDirty(!1),this;if(e){const{left:o,top:a,right:c,bottom:l}=e.viewBound;if(this.width+this.strokeWidth<o||c<0||this.height+this.strokeWidth<a||l<0)return this}const s=this.transform.getMatrix();return t.save(),t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),(i=this._activeSubScene)==null||i.makeDirtyNoParent(!0).render(t),t.restore(),this.makeDirty(!1),this}getSubScenes(){return this._subScenes}getActiveSubScene(){return this._activeSubScene}getSubScene(t){for(const[e,s]of this._subScenes)if(e===t)return s}addSubScene(t){this._activeSubScene=t,this._subScenes.set(t.sceneKey,t),this.makeDirty()}removeSubScene(t){const e=this._subScenes.get(t);this._subScenes.delete(t),this._activeSubScene===e&&(this._activeSubScene=this._subScenes.values().next().value),this.makeDirty()}activeSubScene(t){if(t==null)return;const e=this._subScenes.get(t);this._activeSubScene!==e&&(this._activeSubScene=e,this.makeDirty())}enableSelectedClipElement(){this._allowSelectedClipElement=!0}disableSelectedClipElement(){this._allowSelectedClipElement=!1}allowSelectedClipElement(){return this._allowSelectedClipElement}pick(t){var i;if(this._activeSubScene===void 0)return;const s=this.transform.clone().invert().applyPoint(t);return(i=this._activeSubScene)==null?void 0:i.pick(s)}dispose(){super.dispose(),this._subScenes.forEach(t=>{t.dispose()})}_initialProps(t){if(!t)return;const e=Object.keys(t);if(e.length===0)return;const s={};let i=!1;e.forEach(o=>{if(t[o]===void 0)return!0;s[o]=t[o],i=!0}),i&&this.transformByState(s),this.makeDirty(!0)}}const Ot=["dataArray"];class h1 extends h2{constructor(t,e){super(t,e);_(this,"_dataArray",[]);_(this,"pathLength",0);_(this,"_selfRectCache",{left:0,top:0,width:0,height:0});_(this,"_reCalculateCache",!0);e!=null&&e.data?this._dataArray=h1.parsePathData(e.data):e!=null&&e.dataArray&&(this._dataArray=e.dataArray);for(let s=0;s<this.dataArray.length;++s)this.pathLength+=this.dataArray[s].pathLength;this._setFixBoundingBox(),this.onTransformChangeObservable.add(s=>{const{type:i,value:o,preValue:a}=s;if(i===n1.resize||i===n1.all){this._reCalculateCache=!0;const{left:c,top:l,width:u,height:h}=this._getSelfRect(),{width:g,height:p}=a;let m,v;g?m=this.width-g:m=0,p?v=this.height-p:v=0;const b=m/u,S=v/h;this.scaleX+=b,this.scaleY+=S,this.left=this.left-c*b,this.top=this.top-l*S,this._setTransForm()}})}get dataArray(){return this._dataArray}static drawWith(t,e){const s=e.dataArray;if(s){t.beginPath();for(let i=0;i<s.length;i++){const o=s[i].command,a=s[i].points;switch(o){case"L":t.lineTo(a[0],a[1]);break;case"M":t.moveTo(a[0],a[1]);break;case"C":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"Q":t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case"A":{const c=a[0],l=a[1],u=a[2],h=a[3],g=a[4],p=a[5],m=a[6],v=a[7],b=u>h?u:h,S=u>h?1:u/h,E=u>h?h/u:1;t.translate(c,l),t.rotate(m),t.scale(S,E),t.arc(0,0,b,g,g+p,!!(1-v)),t.scale(1/S,1/E),t.rotate(-m),t.translate(-c,-l);break}case"z":t.closePath();break}}this._renderPaintInOrder(t,e)}}static getLineLength(t,e,s,i){return Math.sqrt((s-t)*(s-t)+(i-e)*(i-e))}static getPointOnLine(t,e,s,i,o,a,c){a===void 0&&(a=e),c===void 0&&(c=s);const l=(o-s)/(i-e+1e-8);let u=Math.sqrt(t*t/(1+l*l));i<e&&(u*=-1);let h=l*u,g;if(i===e)g={x:a,y:c+h};else if((c-s)/(a-e+1e-8)===l)g={x:a+u,y:c+h};else{const p=this.getLineLength(e,s,i,o);let m=(a-e)*(i-e)+(c-s)*(o-s);m/=p*p;const v=e+m*(i-e),b=s+m*(o-s),S=this.getLineLength(a,c,v,b),E=Math.sqrt(t*t-S*S);u=Math.sqrt(E*E/(1+l*l)),i<e&&(u*=-1),h=l*u,g={x:v+u,y:b+h}}return g}static getPointOnCubicBezier(t,e,s,i,o,a,c,l,u){function h(S){return S*S*S}function g(S){return 3*S*S*(1-S)}function p(S){return 3*S*(1-S)*(1-S)}function m(S){return(1-S)*(1-S)*(1-S)}const v=l*h(t)+a*g(t)+i*p(t)+e*m(t),b=u*h(t)+c*g(t)+o*p(t)+s*m(t);return{x:v,y:b}}static getPointOnQuadraticBezier(t,e,s,i,o,a,c){function l(m){return m*m}function u(m){return 2*m*(1-m)}function h(m){return(1-m)*(1-m)}const g=a*l(t)+i*u(t)+e*h(t),p=c*l(t)+o*u(t)+s*h(t);return{x:g,y:p}}static getPointOnEllipticalArc(t,e,s,i,o,a){const c=Math.cos(a),l=Math.sin(a),u={x:s*Math.cos(o),y:i*Math.sin(o)};return{x:t+(u.x*c-u.y*l),y:e+(u.x*l+u.y*c)}}static parsePathData(t){if(!t)return[];let e=t;const s=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(new RegExp(" ","g"),",");for(let g=0,p=s.length;g<p;g++)e=e.replace(new RegExp(s[g],"g"),`|${s[g]}`);const i=e.split("|"),o=[],a=[];let c=0,l=0;const u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let h;for(let g=1,p=i.length;g<p;g++){let m=i[g],v=m.charAt(0);for(m=m.slice(1),a.length=0;h=u.exec(m);)a.push(h[0]);const b=[];for(let S=0,E=a.length;S<E;S++){if(a[S]==="00"){b.push(0,0);continue}const y=parseFloat(a[S]);isNaN(y)?b.push(0):b.push(y)}for(;b.length>0&&!isNaN(b[0]);){let S,E=[];const y=c,T=l;let F,O,w,R,x,$,A,k,N,I;switch(v){case"l":c+=b.shift()||0,l+=b.shift()||0,S="L",E.push(c,l);break;case"L":c=b.shift()||0,l=b.shift()||0,E.push(c,l);break;case"m":{const L=b.shift()||0,X=b.shift()||0;if(c+=L,l+=X,S="M",o.length>2&&o[o.length-1].command==="z"){for(let H=o.length-2;H>=0;H--)if(o[H].command==="M"){c=o[H].points[0]+L,l=o[H].points[1]+X;break}}E.push(c,l),v="l";break}case"M":c=b.shift()||0,l=b.shift()||0,S="M",E.push(c,l),v="L";break;case"h":c+=b.shift()||0,S="L",E.push(c,l);break;case"H":c=b.shift()||0,S="L",E.push(c,l);break;case"v":l+=b.shift()||0,S="L",E.push(c,l);break;case"V":l=b.shift()||0,S="L",E.push(c,l);break;case"C":E.push(b.shift()||0,b.shift()||0,b.shift()||0,b.shift()||0),c=b.shift()||0,l=b.shift()||0,E.push(c,l);break;case"c":E.push(c+(b.shift()||0),l+(b.shift()||0),c+(b.shift()||0),l+(b.shift()||0)),c+=b.shift()||0,l+=b.shift()||0,S="C",E.push(c,l);break;case"S":O=c,w=l,F=o[o.length-1],F.command==="C"&&(O=c+(c-F.points[2]),w=l+(l-F.points[3])),E.push(O,w,b.shift()||0,b.shift()||0),c=b.shift()||0,l=b.shift()||0,S="C",E.push(c,l);break;case"s":O=c,w=l,F=o[o.length-1],F.command==="C"&&(O=c+(c-F.points[2]),w=l+(l-F.points[3])),E.push(O,w,c+(b.shift()||0),l+(b.shift()||0)),c+=b.shift()||0,l+=b.shift()||0,S="C",E.push(c,l);break;case"Q":E.push(b.shift()||0,b.shift()||0),c=b.shift()||0,l=b.shift()||0,E.push(c,l);break;case"q":E.push(c+(b.shift()||0),l+(b.shift()||0)),c+=b.shift()||0,l+=b.shift()||0,S="Q",E.push(c,l);break;case"T":O=c,w=l,F=o[o.length-1],F.command==="Q"&&(O=c+(c-F.points[0]),w=l+(l-F.points[1])),c=b.shift()||0,l=b.shift()||0,S="Q",E.push(O,w,c,l);break;case"t":O=c,w=l,F=o[o.length-1],F.command==="Q"&&(O=c+(c-F.points[0]),w=l+(l-F.points[1])),c+=b.shift()||0,l+=b.shift()||0,S="Q",E.push(O,w,c,l);break;case"A":R=b.shift()||0,x=b.shift()||0,$=b.shift()||0,A=b.shift()||0,k=b.shift()||0,N=c,I=l,c=b.shift()||0,l=b.shift()||0,S="A",E=this.convertEndpointToCenterParameterization(N,I,c,l,A,k,R,x,$);break;case"a":R=b.shift()||0,x=b.shift()||0,$=b.shift()||0,A=b.shift()||0,k=b.shift()||0,N=c,I=l,c+=b.shift()||0,l+=b.shift()||0,S="A",E=this.convertEndpointToCenterParameterization(N,I,c,l,A,k,R,x,$);break}o.push({command:S||v,points:E,start:{x:y,y:T},pathLength:this.calcLength(y,T,S||v,E)})}(v==="z"||v==="Z")&&o.push({command:"z",points:[],start:{x:0,y:0},pathLength:0})}return o}static calcLength(t,e,s,i){let o,a,c,l;const u=h1;switch(s){case"L":return u.getLineLength(t,e,i[0],i[1]);case"C":for(o=0,a=u.getPointOnCubicBezier(0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),l=.01;l<=1;l+=.01)c=u.getPointOnCubicBezier(l,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),o+=u.getLineLength(a.x,a.y,c.x,c.y),a=c;return o;case"Q":for(o=0,a=u.getPointOnQuadraticBezier(0,t,e,i[0],i[1],i[2],i[3]),l=.01;l<=1;l+=.01)c=u.getPointOnQuadraticBezier(l,t,e,i[0],i[1],i[2],i[3]),o+=u.getLineLength(a.x,a.y,c.x,c.y),a=c;return o;case"A":{o=0;const h=i[4],g=i[5],p=i[4]+g;let m=Math.PI/180;if(Math.abs(h-p)<m&&(m=Math.abs(h-p)),a=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],h,0),g<0)for(l=h-m;l>p;l-=m)c=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),o+=u.getLineLength(a.x,a.y,c.x,c.y),a=c;else for(l=h+m;l<p;l+=m)c=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),o+=u.getLineLength(a.x,a.y,c.x,c.y),a=c;return c=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),o+=u.getLineLength(a.x,a.y,c.x,c.y),o}}return 0}static convertEndpointToCenterParameterization(t,e,s,i,o,a,c,l,u){const h=u*(Math.PI/180),g=Math.cos(h)*(t-s)/2+Math.sin(h)*(e-i)/2,p=-1*Math.sin(h)*(t-s)/2+Math.cos(h)*(e-i)/2,m=g*g/(c*c)+p*p/(l*l);m>1&&(c*=Math.sqrt(m),l*=Math.sqrt(m));let v=Math.sqrt((c*c*(l*l)-c*c*(p*p)-l*l*(g*g))/(c*c*(p*p)+l*l*(g*g)));o===a&&(v*=-1),isNaN(v)&&(v=0);const b=v*c*p/l,S=v*-l*g/c,E=(t+s)/2+Math.cos(h)*b-Math.sin(h)*S,y=(e+i)/2+Math.sin(h)*b+Math.cos(h)*S,T=A=>Math.sqrt(A[0]*A[0]+A[1]*A[1]),F=(A,k)=>(A[0]*k[0]+A[1]*k[1])/(T(A)*T(k)),O=(A,k)=>(A[0]*k[1]<A[1]*k[0]?-1:1)*Math.acos(F(A,k)),w=O([1,0],[(g-b)/c,(p-S)/l]),R=[(g-b)/c,(p-S)/l],x=[(-1*g-b)/c,(-1*p-S)/l];let $=O(R,x);return F(R,x)<=-1&&($=Math.PI),F(R,x)>=1&&($=0),a===0&&$>0&&($-=2*Math.PI),a===1&&$<0&&($+=2*Math.PI),[E,y,c,l,w,$,h,a]}toJson(){const t={};return Ot.forEach(e=>{this[e]&&(t[e]=this[e])}),{...super.toJson(),...t}}getState(){const{left:t,top:e,width:s,height:i}=this.getRect();return{left:t,top:e,width:s,height:i,scaleX:this.scaleX,scaleY:this.scaleY,angle:this.angle,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY}}getRect(){const{left:t,top:e,width:s,height:i}=this._getSelfRect();return{left:t*this.scaleX+this.left,top:e*this.scaleY+this.top,width:s*this.scaleX,height:i*this.scaleY}}getLength(){return this.pathLength}getPointAtLength(t){let e,s=0;const i=this.dataArray.length;if(!i)return null;for(;s<i&&t>this.dataArray[s].pathLength;)t-=this.dataArray[s].pathLength,++s;if(s===i)return e=this.dataArray[s-1].points.slice(-2),{x:e[0],y:e[1]};if(t<.01)return e=this.dataArray[s].points.slice(0,2),{x:e[0],y:e[1]};const o=this.dataArray[s],a=o.points;switch(o.command){case"L":return h1.getPointOnLine(t,o.start.x,o.start.y,a[0],a[1]);case"C":return h1.getPointOnCubicBezier(t/o.pathLength,o.start.x,o.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return h1.getPointOnQuadraticBezier(t/o.pathLength,o.start.x,o.start.y,a[0],a[1],a[2],a[3]);case"A":{const c=a[0],l=a[1],u=a[2],h=a[3];let g=a[4];const p=a[5],m=a[6];return g+=p*t/o.pathLength,h1.getPointOnEllipticalArc(c,l,u,h,g,m)}}return null}_draw(t){h1.drawWith(t,this)}_setFixBoundingBox(){const{left:t,top:e,width:s,height:i}=this._getSelfRect(),o=this.width/s,a=this.height/i;this.left=this.left-t*o,this.top=this.top-e*a,this.scaleX=o,this.scaleY=a,this.width=s,this.height=i,this._setTransForm()}_getSelfRect(){if(!this._reCalculateCache)return this._selfRectCache;let t=[];this.dataArray.forEach(u=>{if(u.command==="A"){const h=u.points[4],g=u.points[5],p=u.points[4]+g;let m=Math.PI/180;if(Math.abs(h-p)<m&&(m=Math.abs(h-p)),g<0)for(let v=h-m;v>p;v-=m){const b=h1.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],v,0);t.push(b.x,b.y)}else for(let v=h+m;v<p;v+=m){const b=h1.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],v,0);t.push(b.x,b.y)}}else if(u.command==="C")for(let h=0;h<=1;h+=.01){const g=h1.getPointOnCubicBezier(h,u.start.x,u.start.y,u.points[0],u.points[1],u.points[2],u.points[3],u.points[4],u.points[5]);t.push(g.x,g.y)}else t=t.concat(u.points)});let e=t[0],s=t[0],i=t[1],o=t[1],a,c;for(let u=0;u<t.length/2;u++)a=t[u*2],c=t[u*2+1],isNaN(a)||(e=Math.min(e,a),s=Math.max(s,a)),isNaN(c)||(i=Math.min(i,c),o=Math.max(o,c));const l={left:e,top:i,width:s-e,height:o-i};return this._selfRectCache=l,l}}var wt=(r=>(r.LEFT="__slideNavigationLeft__",r.RIGHT="__slideNavigationRight__",r))(wt||{});const z7="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m200.746667-478.506667l1.749333-1.664 30.165333-30.165333-330.496-330.581333a42.837333 42.837333 0 0 0-60.288 0 42.538667 42.538667 0 0 0 0 60.330666l270.08 270.165334-270.08 269.952a42.496 42.496 0 0 0 0 60.288c16.64 16.64 43.861333 16.469333 60.288 0.042666l298.581334-298.368z";class wf extends c7{constructor(){super(...arguments);_(this,"onSlideChangePageByNavigationObservable",new f.Observable);_(this,"_navigationEnabled",!1)}activeFirstPage(){const e=this.getSubScenes().keys().next().value;e!=null&&this.changePage(e)}addPage(t){const e=t.sceneKey;this.getSubScene(e)==null&&(this.addSubScene(t),this.addNavigation())}changePage(t){t!==null&&(this.removeNavigation(),this.activeSubScene(t),this.addNavigation())}hasPage(t){return this.getSubScene(t)}addNavigation(){const t=this.getActiveSubScene();if(t==null||this._navigationEnabled===!1)return;const e=new h1("__slideNavigationLeft__",{data:z7,width:60,height:60,left:90,top:(this.height-30)/2,fill:this._getArrowColor(),flipX:!0}),s=new h1("__slideNavigationRight__",{data:z7,width:60,height:60,left:this.width-90,top:(this.height-30)/2,fill:this._getArrowColor()}),i=(a,c)=>{a.setCursor(i1.POINTER),a.setProps({fill:this._getArrowColor(!0)})},o=(a,c)=>{a.setCursor(i1.DEFAULT),a.setProps({fill:this._getArrowColor()})};X7(e,i,o),X7(s,i,o),this._addNavTrigger(e,s),t.addObjects([e,s],7)}removeNavigation(){var e,s;const t=this.getActiveSubScene();t==null||this._navigationEnabled===!1||((e=t.getObject("__slideNavigationLeft__"))==null||e.dispose(),(s=t.getObject("__slideNavigationRight__"))==null||s.dispose())}enableNav(){this._navigationEnabled=!0}disableNav(){this._navigationEnabled=!1}hiddenNav(){var e,s;const t=this.getActiveSubScene();t==null||this._navigationEnabled===!1||((e=t.getObject("__slideNavigationLeft__"))==null||e.hide(),(s=t.getObject("__slideNavigationRight__"))==null||s.hide())}showNav(){var e,s;const t=this.getActiveSubScene();t==null||this._navigationEnabled===!1||((e=t.getObject("__slideNavigationLeft__"))==null||e.show(),(s=t.getObject("__slideNavigationRight__"))==null||s.show())}renderToThumb(t,e,s=1,i=1){const o=this.getSubScene(e);o!=null&&(t.save(),t.scale(s,i),o.makeDirtyNoParent(!0).render(t),t.restore())}_getSubScenesIndex(t){if(t==null)return;const e=Array.from(this.getSubScenes()),s=e.length;let i=0;for(let c=0;c<s;c++){const[l]=e[c];if(t===l){i=c;break}}let o=i+1,a=i-1;return o=o>=s?0:o,a=a<0?s-1:a,{nextScene:e[o][1],previousScene:e[a][1]}}_addNavTrigger(t,e){t.onPointerDownObserver.add(()=>{var o;const s=this._getSubScenesIndex((o=this.getActiveSubScene())==null?void 0:o.sceneKey),i=s==null?void 0:s.previousScene.sceneKey;this.changePage(i),this.onSlideChangePageByNavigationObservable.notifyObservers(i)}),e.onPointerDownObserver.add(()=>{var o;const s=this._getSubScenesIndex((o=this.getActiveSubScene())==null?void 0:o.sceneKey),i=s==null?void 0:s.nextScene.sceneKey;this.changePage(i),this.onSlideChangePageByNavigationObservable.notifyObservers(i)})}_getArrowColor(t=!1){return t?c1(f.COLORS.white,.8):c1(f.COLORS.white,.5)}}class Bf extends M1{constructor(n,t=s=>{},e){super(n),this._render=t,this._isHitCustom=e}toJson(){return{...super.toJson()}}render(n,t){if(!this.visible)return this.makeDirty(!1),this;if(t&&!this.isInGroup){const{top:s,left:i,bottom:o,right:a}=t.viewBound;if(this.width+this.strokeWidth<i||a<0||this.height+this.strokeWidth<s||o<0)return this}const e=this.transform.getMatrix();return n.save(),n.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._render(n),n.restore(),this.makeDirty(!1),this}isHit(n){return this._isHitCustom?this._isHitCustom(n):super.isHit(n)}}class Af extends f.Disposable{constructor(){super(...arguments);_(this,"onInputChangedObservable",new f.Observable);_(this,"onTransformChangeObservable",new f.Observable);_(this,"_scenes",{});_(this,"_activeScene",null)}get classType(){return P.ENGINE}get activeScene(){return this._activeScene}get width(){return 0}get height(){return 0}getScenes(){return this._scenes}getScene(t){return this._scenes[t]}hasScene(t){return t in this._scenes}addScene(t){const e=t.sceneKey;return this.hasScene(e)&&console.warn("Scenes has similar key, it will be covered"),this._scenes[e]=t,t}setActiveScene(t){const e=this.getScene(t);return e&&(this._activeScene=e),e}hasActiveScene(){return this._activeScene!=null}dispose(){super.dispose();const t=this.getScenes();Object.keys(t).forEach(s=>{t[s].dispose()})}remainScene(t){const e=this.getScenes();if(e[t]){const s=e[t];return delete e[t],s}}}class q2 extends Af{constructor(t=100,e=100){super();_(this,"renderEvenInBackground",!0);_(this,"onBeginFrameObservable",new f.Observable);_(this,"onEndFrameObservable",new f.Observable);_(this,"_container");_(this,"_canvas",new l2);_(this,"_canvasEle");_(this,"_renderingQueueLaunched",!1);_(this,"_activeRenderLoops",new Array);_(this,"_renderFunction",()=>{});_(this,"_requestNewFrameHandler",-1);_(this,"_frameId",-1);_(this,"_usingSafari",Q7());_(this,"_fps",60);_(this,"_deltaTime",0);_(this,"_performanceMonitor",new p4);_(this,"_pointerMoveEvent");_(this,"_pointerDownEvent");_(this,"_pointerUpEvent");_(this,"_pointerBlurEvent");_(this,"_pointerWheelEvent");_(this,"_pointerEnterEvent");_(this,"_pointerLeaveEvent");_(this,"pointer",{});_(this,"_mouseId",-1);_(this,"_isUsingFirefox",navigator.userAgent.indexOf("Firefox")!==-1);this._canvasEle=this._canvas.getCanvasEle(),this._canvas.setSize(t,e),this._handleKeyboardAction(),this._handlePointerAction()}get width(){return this._canvas.getWidth()}get height(){return this._canvas.getHeight()}get requestNewFrameHandler(){return this._requestNewFrameHandler}get frameId(){return this._frameId}setCanvasCursor(t){const e=this.getCanvas().getCanvasEle();e.style.cursor=t}clearCanvas(){this.getCanvas().clear()}getCanvas(){return this._canvas}getCanvasElement(){return this._canvas.getCanvasEle()}getPixelRatio(){return this._canvas.getPixelRatio()}setContainer(t){this._container=t,this._container.appendChild(this._canvasEle),this.resize();let e;const s=new ResizeObserver(()=>{e||(e=window.requestIdleCallback(()=>{this.resize(),e=void 0}))});s.observe(this._container),this.disposeWithMe(f.toDisposable(()=>{s.unobserve(this._container)}))}resize(){if(!this._container)return;const{width:t,height:e}=c4(this._container);this.resizeBySize(t,e)}resizeBySize(t,e){const s=this.width,i=this.height;this._canvas.setSize(t,e),this.onTransformChangeObservable.notifyObservers({type:n1.resize,value:{width:t,height:e},preValue:{width:s,height:i}})}dispose(){super.dispose();const t=b6();this._canvasEle.removeEventListener(`${t}leave`,this._pointerLeaveEvent),this._canvasEle.removeEventListener(`${t}enter`,this._pointerEnterEvent),this._canvasEle.removeEventListener(`${t}move`,this._pointerMoveEvent),this._canvasEle.removeEventListener(`${t}down`,this._pointerDownEvent),this._canvasEle.removeEventListener(`${t}up`,this._pointerUpEvent),this._canvasEle.removeEventListener("blur",this._pointerBlurEvent),this._canvasEle.removeEventListener(this._getWheelEventName(),this._pointerWheelEvent),this._activeRenderLoops=[],this._canvas.dispose(),this.onBeginFrameObservable.clear(),this.onEndFrameObservable.clear(),this.onTransformChangeObservable.clear()}runRenderLoop(t){this._activeRenderLoops.indexOf(t)===-1&&(this._activeRenderLoops.push(t),this._renderingQueueLaunched||(this._renderingQueueLaunched=!0,this._renderFunction=this._renderLoop.bind(this),this._requestNewFrameHandler=S2(this._renderFunction)))}stopRenderLoop(t){if(!t){this._activeRenderLoops.length=0,this._cancelFrame();return}const e=this._activeRenderLoops.indexOf(t);e>=0&&(this._activeRenderLoops.splice(e,1),this._activeRenderLoops.length===0&&this._cancelFrame())}beginFrame(){this._measureFps(),this.onBeginFrameObservable.notifyObservers(this)}endFrame(){this._frameId++,this.onEndFrameObservable.notifyObservers(this)}getFps(){return this._fps}getDeltaTime(){return this._deltaTime}_renderFrame(){for(let t=0;t<this._activeRenderLoops.length;t++){const e=this._activeRenderLoops[t];e()}}_cancelFrame(){if(this._renderingQueueLaunched&&this._requestNewFrameHandler){if(this._renderingQueueLaunched=!1,typeof window>"u"){if(typeof cancelAnimationFrame=="function")return cancelAnimationFrame(this._requestNewFrameHandler)}else{const{cancelAnimationFrame:t}=this._getHostWindow()||window;if(typeof t=="function")return t(this._requestNewFrameHandler)}return clearTimeout(this._requestNewFrameHandler)}}_getHostWindow(){var t,e;return typeof window>"u"?null:(e=(t=this._canvasEle)==null?void 0:t.ownerDocument)!=null&&e.defaultView?this._canvasEle.ownerDocument.defaultView:window}_renderLoop(){let t=!0;this.renderEvenInBackground||(t=!1),t&&(this.beginFrame(),this._renderFrame(),this.endFrame()),this._activeRenderLoops.length>0?this._requestNewFrameHandler=S2(this._renderFunction):this._renderingQueueLaunched=!1}_measureFps(){this._performanceMonitor.sampleFrame(),this._fps=this._performanceMonitor.averageFPS,this._deltaTime=this._performanceMonitor.instantaneousFrameTime||0}_handleKeyboardAction(){const t=s=>{const i=s;i.deviceType=d1.Keyboard,i.inputIndex=s.keyCode,i.previousState=0,i.currentState=1,this.onInputChangedObservable.notifyObservers(i)},e=s=>{const i=s;i.deviceType=d1.Keyboard,i.inputIndex=s.keyCode,i.previousState=1,i.currentState=0,this.onInputChangedObservable.notifyObservers(i)};this._canvasEle.addEventListener("keydown",t),this._canvasEle.addEventListener("keyup",e)}_handlePointerAction(){const t=b6();this._pointerMoveEvent=e=>{const s=this._getPointerType(e),i=this.pointer[M.Horizontal],o=this.pointer[M.Vertical],a=this.pointer[M.DeltaHorizontal],c=this.pointer[M.DeltaVertical];this.pointer[M.Horizontal]=e.clientX,this.pointer[M.Vertical]=e.clientY,this.pointer[M.DeltaHorizontal]=e.movementX,this.pointer[M.DeltaVertical]=e.movementY;const l=e;l.deviceType=s,i!==e.clientX&&(l.inputIndex=M.Horizontal,l.previousState=i,l.currentState=this.pointer[M.Horizontal],this.onInputChangedObservable.notifyObservers(l)),o!==e.clientY&&(l.inputIndex=M.Vertical,l.previousState=o,l.currentState=this.pointer[M.Vertical],this.onInputChangedObservable.notifyObservers(l)),this.pointer[M.DeltaHorizontal]!==0&&(l.inputIndex=M.DeltaHorizontal,l.previousState=a,l.currentState=this.pointer[M.DeltaHorizontal],this.onInputChangedObservable.notifyObservers(l)),this.pointer[M.DeltaVertical]!==0&&(l.inputIndex=M.DeltaVertical,l.previousState=c,l.currentState=this.pointer[M.DeltaVertical],this.onInputChangedObservable.notifyObservers(l)),!this._usingSafari&&e.button!==-1&&(l.inputIndex=e.button+2,l.previousState=this.pointer[e.button+2],this.pointer[e.button+2]=this.pointer[e.button+2]?0:1,l.currentState=this.pointer[e.button+2],this.onInputChangedObservable.notifyObservers(l))},this._pointerDownEvent=e=>{const s=e,i=this._getPointerType(s),o=this.pointer[M.Horizontal],a=this.pointer[M.Vertical],c=this.pointer[s.button+2];i===d1.Mouse?(this._mouseId===-1&&(s.pointerId===void 0?this._mouseId=this._isUsingFirefox?0:1:this._mouseId=s.pointerId),document.pointerLockElement||this._canvasEle.setPointerCapture(this._mouseId)):s.pointerId&&!document.pointerLockElement&&this._canvasEle.setPointerCapture(s.pointerId),this.pointer[M.Horizontal]=s.clientX,this.pointer[M.Vertical]=s.clientY,this.pointer[s.button+2]=1;const l=s;l.deviceType=i,o!==s.clientX&&(l.inputIndex=M.Horizontal,l.previousState=o,l.currentState=this.pointer[M.Horizontal],this.onInputChangedObservable.notifyObservers(l)),a!==s.clientY&&(l.inputIndex=M.Vertical,l.previousState=a,l.currentState=this.pointer[M.Vertical],this.onInputChangedObservable.notifyObservers(l)),l.inputIndex=s.button+2,l.previousState=c,l.currentState=this.pointer[s.button+2],this.onInputChangedObservable.notifyObservers(l)},this._pointerUpEvent=e=>{const s=e,i=this._getPointerType(s),o=this.pointer[M.Horizontal],a=this.pointer[M.Vertical],c=this.pointer[s.button+2];this.pointer[M.Horizontal]=s.clientX,this.pointer[M.Vertical]=s.clientY,this.pointer[s.button+2]=0;const l=s;l.deviceType=i,o!==s.clientX&&(l.inputIndex=M.Horizontal,l.previousState=o,l.currentState=this.pointer[M.Horizontal],this.onInputChangedObservable.notifyObservers(l)),a!==s.clientY&&(l.inputIndex=M.Vertical,l.previousState=a,l.currentState=this.pointer[M.Vertical],this.onInputChangedObservable.notifyObservers(l)),l.inputIndex=s.button+2,l.previousState=c,l.currentState=this.pointer[s.button+2],i===d1.Mouse&&this._mouseId>=0&&this._canvasEle.hasPointerCapture(this._mouseId)?this._canvasEle.releasePointerCapture(this._mouseId):l.pointerId&&this._canvasEle.hasPointerCapture(l.pointerId)&&this._canvasEle.releasePointerCapture(l.pointerId),this.onInputChangedObservable.notifyObservers(l),i!==d1.Mouse&&(this.pointer={})},this._pointerEnterEvent=e=>{const s=this._getPointerType(e),i=e;i.deviceType=s,i.currentState=2,this.onInputChangedObservable.notifyObservers(i)},this._pointerLeaveEvent=e=>{const s=this._getPointerType(e),i=e;i.deviceType=s,i.currentState=3,this.onInputChangedObservable.notifyObservers(i)},this._pointerBlurEvent=e=>{this._mouseId>=0&&this._canvasEle.hasPointerCapture(this._mouseId)&&(this._canvasEle.releasePointerCapture(this._mouseId),this._mouseId=-1),this.pointer={}},this._pointerWheelEvent=e=>{const s=d1.Mouse,i=this.pointer[M.MouseWheelX],o=this.pointer[M.MouseWheelY],a=this.pointer[M.MouseWheelZ];this.pointer[M.MouseWheelX]=e.deltaX||0,this.pointer[M.MouseWheelY]=e.deltaY||e.wheelDelta||0,this.pointer[M.MouseWheelZ]=e.deltaZ||0;const c=e;c.deviceType=s,this.pointer[M.MouseWheelX]!==0&&(c.inputIndex=M.MouseWheelX,c.previousState=i,c.currentState=this.pointer[M.MouseWheelX],this.onInputChangedObservable.notifyObservers(c)),this.pointer[M.MouseWheelY]!==0&&(c.inputIndex=M.MouseWheelY,c.previousState=o,c.currentState=this.pointer[M.MouseWheelY],this.onInputChangedObservable.notifyObservers(c)),this.pointer[M.MouseWheelZ]!==0&&(c.inputIndex=M.MouseWheelZ,c.previousState=a,c.currentState=this.pointer[M.MouseWheelZ],this.onInputChangedObservable.notifyObservers(c))},this._canvasEle.addEventListener(`${t}enter`,this._pointerEnterEvent),this._canvasEle.addEventListener(`${t}leave`,this._pointerLeaveEvent),this._canvasEle.addEventListener(`${t}move`,this._pointerMoveEvent),this._canvasEle.addEventListener(`${t}down`,this._pointerDownEvent),this._canvasEle.addEventListener(`${t}up`,this._pointerUpEvent),this._canvasEle.addEventListener("blur",this._pointerBlurEvent),this._canvasEle.addEventListener(this._getWheelEventName(),this._pointerWheelEvent,this._getPassive()?{passive:!1}:!1)}_getWheelEventName(){return"onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll"}_getPassive(){let t=!1;const e=()=>{};try{const s={passive:{get(){t=!0}}};this._canvasEle.addEventListener("test",e,s),this._canvasEle.removeEventListener("test",e,s)}catch{}return t}_getPointerType(t){let e=d1.Mouse;return(t.pointerType==="touch"||t.pointerType==="pen"||t.touches)&&(e=d1.Touch),e}}class Bt extends M1{constructor(t,...e){super(t);_(this,"_objects",[]);this.addObjects(...e)}get classType(){return P.GROUP}set cursor(t){this.setCursor(t)}addObjects(...t){for(const e of t)this.addObject(e)}addObject(t){let e=t;if(v6(t)){const s=this.getScene();if(e=s==null?void 0:s.getObject(t),!e){console.info("No object be added");return}e.parent=this,e.isInGroup=!0,e.groupKey=this.oKey,this._objects.push(e)}else t.parent=this,t.isInGroup=!0,t.groupKey=this.oKey,this._objects.push(t)}removeObject(t){const e=this.getObjects(),s=e.length;if(v6(t))for(let i=0;i<s;i++){const o=e[i];if(o.oKey===t){e.splice(i,1),this.parent.removeObject(o);return}}else for(let i=0;i<s;i++){const o=e[i];if(o===t){e.splice(i,1),this.parent.removeObject(o);return}}}getObjectsByOrder(){const t=[];this._objects.sort(f.sortRules);for(const e of this._objects)!e.isInGroup&&e.visible&&t.push(e);return t}getObjects(){return this._objects}render(t,e){t.save();const s=this.transform.getMatrix();t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._objects.sort(f.sortRules);for(const i of this._objects)i.render(t,this._transformBounds(e));t.restore()}resize(t,e){return this}scale(t,e){return this}skew(t,e){return this}flip(t,e){return this}isHit(t){return!0}pick(t){}dispose(){this.getObjects().forEach(t=>{t.dispose()}),super.dispose()}_transformBounds(t){return t}}class At{constructor(n,t=[],e=1,s=!1){_(this,"_objects",[]);_(this,"_cacheCanvas");_(this,"_dirty",!0);this._scene=n,this._zIndex=e,this._allowCache=s,this.addObjects(t),this._allowCache&&this._initialCacheCanvas()}get scene(){return this._scene}get zIndex(){return this._zIndex}enableCache(){this._allowCache=!0,this._initialCacheCanvas()}disableCache(){var n;this._allowCache=!1,(n=this._cacheCanvas)==null||n.dispose(),this._cacheCanvas=null}isAllowCache(){return this._allowCache}getObjectsByOrder(){const n=[];this._objects.sort(f.sortRules);for(const t of this._objects)!t.isInGroup&&t.visible&&n.push(t);return n}getObjectsByOrderForPick(){const n=[];this._objects.sort(f.sortRules);for(const t of this._objects)t.classType!==P.GROUP&&t.visible&&n.push(t);return n}getObjects(){return this._objects}addObject(n){if(n.classType===P.GROUP){const t=n.getObjects();for(const e of t)this.scene.getObject(e.oKey)||(this._objects.push(e),this.scene.setObjectBehavior(e))}return this._objects.push(n),this.scene.setObjectBehavior(n),this.scene.applyTransformer(n),n.layer=this,this}removeObject(n){const t=this.getObjects(),e=t.length;if(n instanceof M1){for(let s=0;s<e;s++)if(t[s]===n){t.splice(s,1);return}}else for(let s=0;s<e;s++)if(t[s].oKey===n){t.splice(s,1);return}}addObjects(n){return n.forEach(t=>{this.addObject(t)}),this}removeObjects(n){const t=this.getObjects(),e=t.length;for(let s=e-1;s>=0;s--){let i=t[s];const o=n.length;if(o===0)break;for(let a=0;a<o;a++){const c=n[a];if(i=c instanceof M1?i:i.oKey,i===c){t.splice(s,1);break}}}}makeDirty(n=!0){return this._dirty=n,this}isDirty(){return this._dirty}render(n,t=!1){var s;const e=n||((s=this._scene.getEngine())==null?void 0:s.getCanvas().getContext());if(this._allowCache&&this._cacheCanvas){if(this.isDirty()){const i=this._cacheCanvas.getContext();this._cacheCanvas.clear(),i.save(),i.setTransform(e.getTransform()),this._draw(i,t),i.restore()}this._applyCache(e)}else e.save(),this._draw(e,t),e.restore();return this.makeDirty(!1),this}_initialCacheCanvas(){this._cacheCanvas=new l2,this._scene.getEngine().onTransformChangeObservable.add(()=>{this._resizeCacheCanvas()})}_draw(n,t){var e;(e=this._scene.getViewports())==null||e.forEach(s=>s.render(n,this.getObjectsByOrder(),t))}_applyCache(n){if(!n||this._cacheCanvas==null)return;const t=this._cacheCanvas.getWidth(),e=this._cacheCanvas.getHeight();n.drawImage(this._cacheCanvas.getCanvasEle(),0,0,t,e)}_resizeCacheCanvas(){var t;const n=this._scene.getEngine();(t=this._cacheCanvas)==null||t.setSize(n.width,n.height),this.makeDirty(!0)}clear(){this._objects=[]}dispose(){var n;this.getObjects().forEach(t=>{t.dispose()}),this.clear(),(n=this._cacheCanvas)==null||n.dispose()}}const Rf=["__SpreadsheetTransformerResizeLT__","__SpreadsheetTransformerResizeCT__","__SpreadsheetTransformerResizeRT__","__SpreadsheetTransformerResizeLM__","__SpreadsheetTransformerResizeRM__","__SpreadsheetTransformerResizeLB__","__SpreadsheetTransformerResizeCB__","__SpreadsheetTransformerResizeRB__"];class xf{constructor(n,t){_(this,"hoverEnabled",!1);_(this,"hoverEnterFunc");_(this,"hoverLeaveFunc");_(this,"resizeEnabled",!0);_(this,"rotateEnabled",!0);_(this,"rotationSnaps",[]);_(this,"rotationSnapTolerance",5);_(this,"rotateAnchorOffset",50);_(this,"rotateSize",10);_(this,"rotateCornerRadius",10);_(this,"borderEnabled",!0);_(this,"borderStroke","rgb(97, 97, 97)");_(this,"borderStrokeWidth",1);_(this,"borderDash",[]);_(this,"borderSpacing",10);_(this,"anchorFill","rgb(255,255,255)");_(this,"anchorStroke","rgb(185,185,185)");_(this,"anchorStrokeWidth",1);_(this,"anchorSize",10);_(this,"anchorCornerRadius",10);_(this,"keepRatio",!0);_(this,"centeredScaling",!1);_(this,"enabledAnchors",[1,1,1,1,1,1,1,1]);_(this,"flipEnabled",!1);_(this,"ignoreStroke",!1);_(this,"boundBoxFunc");_(this,"useSingleNodeRotation",!1);_(this,"shouldOverdrawWholeArea",!1);_(this,"onChangeStartObservable",new f.Observable);_(this,"onChangingObservable",new f.Observable);_(this,"onChangeEndObservable",new f.Observable);_(this,"onClearControlObservable",new f.Observable);_(this,"onCreateControlObservable",new f.Observable);_(this,"_startOffsetX",-1);_(this,"_startOffsetY",-1);_(this,"_viewportScrollX",-1);_(this,"_viewportScrollY",-1);_(this,"_moveObserver");_(this,"_upObserver");_(this,"_cancelFocusObserver");_(this,"_transformerControlMap",new Map);_(this,"_selectedObjectMap",new Map);this._scene=n,this._initialProps(t)}getScene(){return this._scene}hideControl(){this._hideControl()}attachTo(n){if(n.isTransformer)return this.hoverEnabled&&(this.hoverEnterFunc&&n.onPointerEnterObserver.add(this.hoverEnterFunc),this.hoverLeaveFunc&&n.onPointerLeaveObserver.add(this.hoverLeaveFunc)),n.onPointerDownObserver.add((t,e)=>{const{offsetX:s,offsetY:i}=t;this._startOffsetX=s,this._startOffsetY=i;const o=this._getTopScene();if(!o)return;this._addCancelObserver(o),o.disableEvent();const a=c2.create(o);a.startScroll(s,i);const{scrollX:c,scrollY:l}=n2(a);this._viewportScrollX=c,this._viewportScrollY=l,this._updateActiveObjectList(n,t),this._moveObserver=o.onPointerMoveObserver.add(u=>{const{offsetX:h,offsetY:g}=u;this._moving(h,g,a),this._hideControl(),a.scrolling(h,g,()=>{this._moving(h,g,a)})}),this._upObserver=o.onPointerUpObserver.add(u=>{o.onPointerMoveObserver.remove(this._moveObserver),o.onPointerUpObserver.remove(this._upObserver),o.enableEvent(),this._updateControl(),a.dispose(),this.onChangeEndObservable.notifyObservers({objects:this._selectedObjectMap,type:2})}),e.stopPropagation()}),n}dispose(){this._moveObserver=null,this._upObserver=null,this._transformerControlMap.forEach(n=>{n.dispose()}),this._selectedObjectMap.forEach(n=>{n.dispose()}),this.onChangeStartObservable.clear(),this.onChangingObservable.clear(),this.onChangeEndObservable.clear()}_initialProps(n){if(!n)return;const t=Object.keys(n);t.length!==0&&t.forEach(e=>{if(n[e]===void 0)return!0;this[e]=n[e]})}_updateControlChildren(){this._updateControlIterator((n,t)=>{const{left:e,top:s,width:i,height:o,scaleX:a,scaleY:c}=t.getState();n.getObjects().forEach(u=>{const h=u.oKey,g=this._checkTransformerType(h);if(!g)return!0;if(g==="__SpreadsheetTransformerOutline__")u.transformByState(this._getOutlinePosition(i,o,a,c));else{const{left:p,top:m}=this._getRotateAnchorPosition(g,o,i,a,c);u.transformByState({left:p,top:m})}}),n.transformByState({left:e,top:s})})}_anchorMoving(n,t,e,s){const{scrollX:i,scrollY:o}=n2(s),a=t-this._viewportScrollX+i,c=e-this._viewportScrollY+o,l=a-this._startOffsetX,u=c-this._startOffsetY;this._selectedObjectMap.forEach(h=>{const{left:g,top:p,width:m,height:v}=h,b={};switch(n){case"__SpreadsheetTransformerResizeLT__":b.left=g+l,b.top=p+u,b.width=m-l,b.height=v-u;break;case"__SpreadsheetTransformerResizeCT__":b.top=p+u,b.height=v-u;break;case"__SpreadsheetTransformerResizeRT__":b.top=p+u,b.width=m+l,b.height=v-u;break;case"__SpreadsheetTransformerResizeLM__":b.left=g+l,b.width=m-l;break;case"__SpreadsheetTransformerResizeRM__":b.width=l+m;break;case"__SpreadsheetTransformerResizeLB__":b.left=g+l,b.width=m-l,b.height=v+u;break;case"__SpreadsheetTransformerResizeCB__":b.height=u+v;break;case"__SpreadsheetTransformerResizeRB__":b.width=l+m,b.height=u+v;break}h.transformByState(b)}),this._updateControlChildren(),this.onChangingObservable.notifyObservers({objects:this._selectedObjectMap,moveX:l,moveY:u,type:1}),this._startOffsetX=a,this._startOffsetY=c}_attachEventToAnchor(n,t="__SpreadsheetTransformerResizeLT__"){n.onPointerDownObserver.add((e,s)=>{const{offsetX:i,offsetY:o}=e;this._startOffsetX=i,this._startOffsetY=o;const a=this._getTopScene();if(a==null)return;a.disableEvent();const c=c2.create(a);c.startScroll(i,o);const{scrollX:l,scrollY:u}=n2(c);this._viewportScrollX=l,this._viewportScrollY=u;const h=this._getRotateAnchorCursor(t);this._moveObserver=a.onPointerMoveObserver.add(g=>{const{offsetX:p,offsetY:m}=g;this._anchorMoving(t,p,m,c),c.scrolling(p,m,()=>{this._anchorMoving(t,p,m,c)}),a.setCursor(h)}),this._upObserver=a.onPointerUpObserver.add(g=>{a.onPointerMoveObserver.remove(this._moveObserver),a.onPointerUpObserver.remove(this._upObserver),a.enableEvent(),a.resetCursor(),c.dispose(),this.onChangeEndObservable.notifyObservers({objects:this._selectedObjectMap,type:2})}),s.stopPropagation()})}_attachEventToRotate(n){n.onPointerDownObserver.add((t,e)=>{const{offsetX:s,offsetY:i}=t;this._startOffsetX=s,this._startOffsetY=i;const o=this._getTopScene();o!=null&&(o.disableEvent(),this._viewportScrollX=scrollX,this._viewportScrollY=scrollY,this._moveObserver=o.onPointerMoveObserver.add(a=>{}),this._upObserver=o.onPointerUpObserver.add(a=>{o.onPointerMoveObserver.remove(this._moveObserver),o.onPointerUpObserver.remove(this._upObserver),o.enableEvent()}),e.stopPropagation())})}_getOutlinePosition(n,t,e,s){return{left:-this.borderSpacing-this.borderStrokeWidth,top:-this.borderSpacing-this.borderStrokeWidth,width:n+this.borderSpacing*2,height:t+this.borderSpacing*2}}_getRotateAnchorCursor(n){let t=i1.NORTH_WEST_RESIZE;switch(n){case"__SpreadsheetTransformerRotate__":t=i1.MOVE;break;case"__SpreadsheetTransformerRotateLine__":t=i1.MOVE;break;case"__SpreadsheetTransformerResizeLT__":break;case"__SpreadsheetTransformerResizeCT__":t=i1.NORTH_RESIZE;break;case"__SpreadsheetTransformerResizeRT__":t=i1.NORTH_EAST_RESIZE;break;case"__SpreadsheetTransformerResizeLM__":t=i1.WEST_RESIZE;break;case"__SpreadsheetTransformerResizeRM__":t=i1.EAST_RESIZE;break;case"__SpreadsheetTransformerResizeLB__":t=i1.SOUTH_WEST_RESIZE;break;case"__SpreadsheetTransformerResizeCB__":t=i1.SOUTH_RESIZE;break;case"__SpreadsheetTransformerResizeRB__":t=i1.SOUTH_EAST_RESIZE;break}return t}_getRotateAnchorPosition(n,t,e,s,i){let o=-this.anchorSize/2,a=-this.anchorSize/2;switch(n){case"__SpreadsheetTransformerRotate__":o=e/2-this.rotateSize/2,a=-this.rotateAnchorOffset-this.borderSpacing-this.borderStrokeWidth*2-this.rotateSize;break;case"__SpreadsheetTransformerRotateLine__":o=e/2,a=-this.rotateAnchorOffset-this.borderSpacing-this.borderStrokeWidth;break;case"__SpreadsheetTransformerResizeLT__":o+=-this.borderSpacing-this.borderStrokeWidth,a+=-this.borderSpacing-this.borderStrokeWidth;break;case"__SpreadsheetTransformerResizeCT__":o+=e/2,a+=-this.borderSpacing-this.borderStrokeWidth;break;case"__SpreadsheetTransformerResizeRT__":o+=e+this.borderSpacing-this.borderStrokeWidth,a+=-this.borderSpacing-this.borderStrokeWidth;break;case"__SpreadsheetTransformerResizeLM__":o+=-this.borderSpacing-this.borderStrokeWidth,a+=t/2;break;case"__SpreadsheetTransformerResizeRM__":o+=e+this.borderSpacing-this.borderStrokeWidth,a+=t/2;break;case"__SpreadsheetTransformerResizeLB__":o+=-this.borderSpacing-this.borderStrokeWidth,a+=t+this.borderSpacing-this.borderStrokeWidth;break;case"__SpreadsheetTransformerResizeCB__":o+=e/2,a+=t+this.borderSpacing-this.borderStrokeWidth;break;case"__SpreadsheetTransformerResizeRB__":o+=e+this.borderSpacing-this.borderStrokeWidth,a+=t+this.borderSpacing-this.borderStrokeWidth;break}return{left:o,top:a}}_createResizeAnchor(n,t,e){const{height:s,width:i,scaleX:o,scaleY:a}=t.getState(),{left:c,top:l}=this._getRotateAnchorPosition(n,s,i,o,a),u=this._getRotateAnchorCursor(n),h=new f1(`${n}_${e}`,{zIndex:e-1,fill:this.anchorFill,stroke:this.anchorStroke,strokeWidth:this.anchorStrokeWidth,width:this.anchorSize,height:this.anchorSize,radius:this.anchorCornerRadius,left:c,top:l});return this._attachHover(h,u,i1.DEFAULT),h}_checkTransformerType(n){if(n.indexOf("__SpreadsheetTransformerOutline__")>-1)return"__SpreadsheetTransformerOutline__";if(n.indexOf("__SpreadsheetTransformerRotate__")>-1)return"__SpreadsheetTransformerRotate__";if(n.indexOf("__SpreadsheetTransformerRotateLine__")>-1)return"__SpreadsheetTransformerRotateLine__";if(n.indexOf("__SpreadsheetTransformerResizeLT__")>-1)return"__SpreadsheetTransformerResizeLT__";if(n.indexOf("__SpreadsheetTransformerResizeCT__")>-1)return"__SpreadsheetTransformerResizeCT__";if(n.indexOf("__SpreadsheetTransformerResizeRT__")>-1)return"__SpreadsheetTransformerResizeRT__";if(n.indexOf("__SpreadsheetTransformerResizeLM__")>-1)return"__SpreadsheetTransformerResizeLM__";if(n.indexOf("__SpreadsheetTransformerResizeRM__")>-1)return"__SpreadsheetTransformerResizeRM__";if(n.indexOf("__SpreadsheetTransformerResizeLB__")>-1)return"__SpreadsheetTransformerResizeLB__";if(n.indexOf("__SpreadsheetTransformerResizeCB__")>-1)return"__SpreadsheetTransformerResizeCB__";if(n.indexOf("__SpreadsheetTransformerResizeRB__")>-1)return"__SpreadsheetTransformerResizeRB__"}_updateControlIterator(n){this._transformerControlMap.forEach((t,e)=>{const s=this._selectedObjectMap.get(e);if(!s)return!0;n(t,s)})}_updateControl(){this._updateControlIterator((n,t)=>{const{left:e,top:s}=t.getState();n.transformByState({left:e,top:s}),n.show(),n.makeDirty(!0)})}_hideControl(){this._transformerControlMap.forEach(n=>{n.hide(),n.makeDirty(!0)})}_attachHover(n,t,e){n.onPointerEnterObserver.add(()=>{n.cursor=t}),n.onPointerLeaveObserver.add(()=>{n.cursor=e})}_clearControl(){this._transformerControlMap.forEach(n=>{n.dispose()}),this._transformerControlMap.clear(),this.onClearControlObservable.notifyObservers(null)}_createControl(n){const{left:t,top:e,height:s,width:i,angle:o,scaleX:a,scaleY:c,skewX:l,skewY:u,flipX:h,flipY:g}=n.getState(),p=n.oKey,m=this._selectedObjectMap.size,v=[];if(this.borderEnabled){const E=new f1(`__SpreadsheetTransformerOutline___${m}`,{zIndex:m-1,evented:!1,strokeWidth:this.borderStrokeWidth,stroke:this.borderStroke,...this._getOutlinePosition(i,s,a,c)});v.push(E)}if(this.resizeEnabled){const{left:E,top:y}=this._getRotateAnchorPosition("__SpreadsheetTransformerRotateLine__",s,i,a,c),T=new f1(`__SpreadsheetTransformerRotateLine___${m}`,{zIndex:m-1,evented:!1,left:E,top:y,height:this.rotateAnchorOffset,width:1,strokeWidth:this.borderStrokeWidth,stroke:this.borderStroke}),{left:F,top:O}=this._getRotateAnchorPosition("__SpreadsheetTransformerRotate__",s,i,a,c),w=this._getRotateAnchorCursor("__SpreadsheetTransformerRotate__"),R=new f1(`__SpreadsheetTransformerRotate___${m}`,{zIndex:m-1,left:F,top:O,height:this.rotateSize,width:this.rotateSize,radius:this.rotateCornerRadius,strokeWidth:this.borderStrokeWidth*2,stroke:this.borderStroke});this._attachEventToRotate(R),this._attachHover(R,w,i1.DEFAULT),v.push(T,R)}if(this.resizeEnabled)for(let E=0,y=this.enabledAnchors.length;E<y;E++){if(this.enabledAnchors[E]!==1)continue;const F=Rf[E],O=this._createResizeAnchor(F,n,m);this._attachEventToAnchor(O,F),v.push(O)}const b=new Bt(`__SpreadsheetTransformer___${m}`,...v);return b.zIndex=m,b.evented=!1,b.transformByState({left:t,top:e}),this.getScene().addObject(b,2),this._transformerControlMap.set(p,b),this.onCreateControlObservable.notifyObservers(b),b}_getTopScene(){var t;return(t=this.getScene().getEngine())==null?void 0:t.activeScene}_moving(n,t,e){const{scrollX:s,scrollY:i}=n2(e),o=n-this._viewportScrollX+s,a=t-this._viewportScrollY+i,c=o-this._startOffsetX,l=a-this._startOffsetY;this._selectedObjectMap.forEach(u=>{u.translate(c+u.left,l+u.top)}),this.onChangingObservable.notifyObservers({objects:this._selectedObjectMap,moveX:c,moveY:l,type:1}),this._startOffsetX=o,this._startOffsetY=a}_updateActiveObjectList(n,t){this._selectedObjectMap.has(n.oKey)||(t.ctrlKey||(this._selectedObjectMap.clear(),this._clearControl()),this._selectedObjectMap.set(n.oKey,n),this._createControl(n))}_addCancelObserver(n){n.onPointerDownObserver.remove(this._cancelFocusObserver),this._cancelFocusObserver=n.onPointerDownObserver.add(t=>{this._selectedObjectMap.clear(),this._clearControl(),n.onPointerDownObserver.remove(this._cancelFocusObserver)})}}const m1=class m1{constructor(n){_(this,"_alreadyAttached",!1);_(this,"_onInputObserver");_(this,"_onPointerMove");_(this,"_onPointerDown");_(this,"_onPointerUp");_(this,"_onPointerEnter");_(this,"_onPointerLeave");_(this,"_onMouseWheel");_(this,"_onKeyDown");_(this,"_onKeyUp");_(this,"_scene");_(this,"_currentMouseEnterPicked");_(this,"_startingPosition",new B(1/0,1/0));_(this,"_delayedTimeout",-1);_(this,"_delayedTripeTimeout",-1);_(this,"_doubleClickOccurred",0);_(this,"_tripleClickState",!1);_(this,"_currentObject");this._scene=n}mouseLeaveEnterHandler(n){var e;const t=this._currentObject;if(t==null)(e=this._currentMouseEnterPicked)==null||e.triggerPointerLeave(n),this._currentMouseEnterPicked=null;else if(t!==this._currentMouseEnterPicked){const s=this._currentMouseEnterPicked;this._currentMouseEnterPicked=t,s==null||s.triggerPointerLeave(n),t==null||t.triggerPointerEnter(n)}}attachControl(n=!0,t=!0,e=!0,s=!0,i=!0,o=!0){const a=this._scene.getEngine();a&&(this._onPointerEnter=c=>{var l;c.pointerId===void 0&&(c.pointerId=0),this._currentObject=this._getCurrentObject(c.offsetX,c.offsetY),(l=this._currentObject)==null||l.triggerPointerMove(c),this.mouseLeaveEnterHandler(c)},this._onPointerLeave=c=>{c.pointerId===void 0&&(c.pointerId=0),this._currentObject=null,this.mouseLeaveEnterHandler(c)},this._onPointerMove=c=>{var u;c.pointerId===void 0&&(c.pointerId=0),this._currentObject=this._getCurrentObject(c.offsetX,c.offsetY);const l=(u=this._currentObject)==null?void 0:u.triggerPointerMove(c);this.mouseLeaveEnterHandler(c),this._checkDirectSceneEventTrigger(!l,this._currentObject)&&this._scene.onPointerMoveObserver.hasObservers()&&this._scene.onPointerMoveObserver.notifyObservers(c)},this._onPointerDown=c=>{c.pointerId===void 0&&(c.pointerId=0);const l=this._getCurrentObject(c.offsetX,c.offsetY),u=l==null?void 0:l.triggerPointerDown(c);this._checkDirectSceneEventTrigger(!u,l)&&this._scene.onPointerDownObserver.hasObservers()&&this._scene.onPointerDownObserver.notifyObservers(c)},this._onPointerUp=c=>{c.pointerId===void 0&&(c.pointerId=0);const l=this._getCurrentObject(c.offsetX,c.offsetY),u=l==null?void 0:l.triggerPointerUp(c);this._checkDirectSceneEventTrigger(!u,l)&&this._scene.onPointerUpObserver.hasObservers()&&this._scene.onPointerUpObserver.notifyObservers(c),this._prePointerDoubleOrTripleClick(c)},this._onMouseWheel=c=>{const l=this._getCurrentObject(c.offsetX,c.offsetY),u=l==null?void 0:l.triggerMouseWheel(c);this._scene.getViewports().forEach(h=>{h.onMouseWheelObserver.hasObservers()&&h.onMouseWheelObserver.notifyObservers(c)}),this._checkDirectSceneEventTrigger(!u,l)&&this._scene.onMouseWheelObserver.hasObservers()&&this._scene.onMouseWheelObserver.notifyObservers(c)},this._onKeyDown=c=>{this._scene.onKeyDownObservable.hasObservers()&&this._scene.onKeyDownObservable.notifyObservers(c)},this._onKeyUp=c=>{this._scene.onKeyUpObservable.hasObservers()&&this._scene.onKeyUpObservable.notifyObservers(c)},this._onInputObserver=a.onInputChangedObservable.add(c=>{const l=c;c.deviceType===d1.Keyboard&&(c.currentState===1&&this._onKeyDown(l),c.currentState===0&&this._onKeyUp(l)),(c.deviceType===d1.Mouse||c.deviceType===d1.Touch)&&(n&&c.inputIndex>=M.LeftClick&&c.inputIndex<=M.RightClick&&c.currentState===1&&this._onPointerDown(l),t&&c.inputIndex>=M.LeftClick&&c.inputIndex<=M.RightClick&&c.currentState===0&&this._onPointerUp(l),e&&(c.inputIndex===M.Horizontal||c.inputIndex===M.Vertical||c.inputIndex===M.DeltaHorizontal||c.inputIndex===M.DeltaVertical)?this._onPointerMove(l):s&&(c.inputIndex===M.MouseWheelX||c.inputIndex===M.MouseWheelY||c.inputIndex===M.MouseWheelZ)?this._onMouseWheel(l):i&&c.currentState===2?this._onPointerEnter(l):o&&c.currentState===3&&this._onPointerLeave(l))}),this._alreadyAttached=!0)}detachControl(){if(!this._alreadyAttached)return;const n=this._scene.getEngine();n&&(n.onInputChangedObservable.remove(this._onInputObserver),this._alreadyAttached=!1)}_getCurrentObject(n,t){var e;return(e=this._scene)==null?void 0:e.pick(B.FromArray([n,t]))}_checkDirectSceneEventTrigger(n,t){let e=!1;t==null&&(e=!0);let s=!0;if(t&&t.classType===P.BASE_OBJECT){const i=t.getScene();i&&(s=i.getParent().classType!==P.SCENE_VIEWER)}return!this._scene.evented&&n&&s||e}_isPointerSwiping(n,t){return Math.abs(this._startingPosition.x-n)>m1.DragMovementThreshold||Math.abs(this._startingPosition.y-t)>m1.DragMovementThreshold}_prePointerDoubleOrTripleClick(n){var i,o,a,c;const{clientX:t,clientY:e}=n;this._delayedTimeout=setTimeout(()=>{this._resetDoubleClickParam()},m1.DoubleClickDelay),this._isPointerSwiping(t,e)&&this._resetDoubleClickParam(),this._doubleClickOccurred+=1,this._tripleClickState&&((o=(i=this._scene)==null?void 0:i.pick(B.FromArray([n.offsetX,n.offsetY])))==null||o.triggerTripleClick(n),this._scene.onTripleClickObserver.hasObservers()&&this._scene.onTripleClickObserver.notifyObservers(n)),this._doubleClickOccurred===2&&((c=(a=this._scene)==null?void 0:a.pick(B.FromArray([n.offsetX,n.offsetY])))==null||c.triggerDblclick(n),this._scene.onDblclickObserver.hasObservers()&&this._scene.onDblclickObserver.notifyObservers(n),this._resetDoubleClickParam(),this._tripleClickState=!0,clearTimeout(this._delayedTripeTimeout),this._delayedTripeTimeout=setTimeout(()=>{this._tripleClickState=!1},m1.TripleClickDelay)),this._startingPosition.x=t,this._startingPosition.y=e}_resetDoubleClickParam(){this._doubleClickOccurred=0,clearTimeout(this._delayedTimeout)}};_(m1,"DragMovementThreshold",2),_(m1,"LongPressDelay",500),_(m1,"DoubleClickDelay",500),_(m1,"TripleClickDelay",300),_(m1,"ExclusiveDoubleClickMode",!1);let B6=m1;class Mf{constructor(n){_(this,"onTransformChangeObservable",new f.Observable);_(this,"onPointerDownObserver",new f.Observable);_(this,"onPointerMoveObserver",new f.Observable);_(this,"onPointerUpObserver",new f.Observable);_(this,"onPointerEnterObserver",new f.Observable);_(this,"onPointerLeaveObserver",new f.Observable);_(this,"onDblclickObserver",new f.Observable);_(this,"onTripleClickObserver",new f.Observable);_(this,"onMouseWheelObserver",new f.Observable);_(this,"onKeyDownObservable",new f.Observable);_(this,"onKeyUpObservable",new f.Observable);_(this,"debounceParentTimeout",-1);_(this,"_sceneKey","");_(this,"_width",100);_(this,"_height",100);_(this,"_scaleX",1);_(this,"_scaleY",1);_(this,"_transform",new o1);_(this,"_evented",!0);this._sceneKey=n}get classType(){return P.SCENE}get transform(){return this._transform}get width(){return this._width}get height(){return this._height}get scaleX(){return this._scaleX}get scaleY(){return this._scaleY}get sceneKey(){return this._sceneKey}get evented(){return this._evented}set transform(n){this._transform=n}set width(n){this._width=n}set height(n){this._height=n}set scaleX(n){this._scaleX=n}set scaleY(n){this._scaleY=n}enableEvent(){this._evented=!0}disableEvent(){this._evented=!1}on(n,t){return this[`on${n}Observer`].add(t.bind(this))}off(n,t){this[`on${n}Observer`].remove(t)}remove(n){this[`on${n}Observer`].clear()}triggerKeyDown(n){this.onKeyDownObservable.notifyObservers(n)}triggerKeyUp(n){this.onKeyUpObservable.notifyObservers(n)}triggerPointerUp(n){}triggerMouseWheel(n){}triggerPointerMove(n){}triggerDblclick(n){}triggerTripleClick(n){}triggerPointerDown(n){}triggerPointerOut(n){}triggerPointerLeave(n){}triggerPointerOver(n){}triggerPointerEnter(n){}renderObjects(n,t){}render(n){}getParent(){}dispose(){}getObject(n){}addObject(n,t=1){}addObjects(n,t=1){}getEngine(){}setObjectBehavior(n){}applyTransformer(n){}makeDirtyNoParent(n=!0){return this}makeDirty(n=!0){return this}pick(n){}getViewports(){return[]}removeViewport(n){}}class Rt extends Mf{constructor(t,e,s){var i;super(t);_(this,"_layers",[]);_(this,"_viewports",[]);_(this,"_cursor",i1.DEFAULT);_(this,"_defaultCursor",i1.DEFAULT);_(this,"_addObject$",new p1.BehaviorSubject(this));_(this,"addObject$",this._addObject$.asObservable());_(this,"_transformer");_(this,"_transformerOpenState",!1);_(this,"_inputManager");if(this._parent=e,s&&this.transformByState(s),this._parent.classType===P.ENGINE){const o=this._parent;o.addScene(this),o.hasActiveScene()||o.setActiveScene(t),this._inputManager=new B6(this)}else this._parent.classType===P.SCENE_VIEWER&&this._parent.addSubScene(this);(i=this._parent)==null||i.onTransformChangeObservable.add(o=>{this._setTransForm()})}get ancestorScaleX(){const t=this.getParent();let e=1;return t.classType===P.SCENE_VIEWER&&(e=t.ancestorScaleX),this.scaleX*e}get ancestorScaleY(){const t=this.getParent();let e=1;return t.classType===P.SCENE_VIEWER&&(e=t.ancestorScaleY),this.scaleY*e}set cursor(t){this.setCursor(t)}attachControl(t=!0,e=!0,s=!0,i=!0){var o;if(this._parent.classType===P.ENGINE)return(o=this._inputManager)==null||o.attachControl(t,e,s,i),this}detachControl(){var t;return(t=this._inputManager)==null||t.detachControl(),this}makeDirty(t=!0){var e;return this._layers.forEach(s=>{s.makeDirty(t)}),this._parent.classType===P.SCENE_VIEWER&&((e=this._parent)==null||e.makeDirty(t)),this}makeDirtyNoParent(t=!0){return this._viewports.forEach(e=>{e.makeDirty(t)}),this}enableLayerCache(...t){t.forEach(e=>{this.getLayer(e).enableCache()})}disableLayerCache(...t){t.forEach(e=>{this.getLayer(e).disableCache()})}isDirty(){for(let t=0;t<this._layers.length;t++)if(this._layers[t].isDirty()===!0)return!0;return!1}getCursor(){return this._cursor}resetCursor(){this.setCursor(this._defaultCursor)}setCursor(t){this._cursor=t;const e=this.getEngine();e&&e.setCanvasCursor(t)}setDefaultCursor(t){this._defaultCursor=t,this.resetCursor()}resize(t,e){const s=this.width;t!==void 0&&(this.width=t);const i=this.height;return e!==void 0&&(this.height=e),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.resize,value:{width:this.width,height:this.height},preValue:{width:s,height:i}}),this}scale(t,e){const s=this.scaleX;t!==void 0&&(this.scaleX=t);const i=this.scaleY;return e!==void 0&&(this.scaleY=e),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.scale,value:{scaleX:this.scaleX,scaleY:this.scaleY},preValue:{scaleX:s,scaleY:i}}),this}scaleBy(t,e){const s=this.scaleX;t!==void 0&&(this.scaleX+=t);const i=this.scaleY;return e!==void 0&&(this.scaleY+=e),this.scaleX=z2(this.scaleX,1),this.scaleY=z2(this.scaleY,1),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.scale,value:{scaleX:this.scaleX,scaleY:this.scaleY},preValue:{scaleX:s,scaleY:i}}),this}transformByState(t){const e=Object.keys(t),s={};e.length!==0&&(e.forEach(i=>{t[i]!==void 0&&(s[i]=this[i],this[i]=t[i])}),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.all,value:t,preValue:s}))}getParent(){return this._parent}getEngine(){if(this._parent.classType===P.ENGINE)return this._parent;let t=this._parent;for(;t;){if(t.classType===P.ENGINE)return t;t=t==null?void 0:t.getParent()}return null}getLayers(){return this._layers}getLayer(t=1){for(const e of this._layers)if(e.zIndex===t)return e;return this._createDefaultLayer(t)}getLayerMaxZIndex(){let t=Number.MIN_VALUE;for(let e=0;e<this._layers.length;e++){const s=this._layers[e];s.zIndex>=t&&(t=s.zIndex)}return t}addLayer(...t){this._layers.push(...t)}addObject(t,e=1){var s;return(s=this.getLayer(e))==null||s.addObject(t),this._addObject$.next(this),this}setObjectBehavior(t){t.parent||(t.parent=this),t.onIsAddedToParentObserver.notifyObservers(this)}addObjects(t,e=1){var s;return(s=this.getLayer(e))==null||s.addObjects(t),this._addObject$.next(this),this}removeObject(t){if(t==null)return;const e=this.getLayers();for(const s of e)s.removeObject(t);return this}removeObjects(t){if(t==null)return;const e=this.getLayers();for(const s of e)s.removeObjects(t);return this}getAllObjects(){const t=[];this._layers.sort(f.sortRules);for(const e of this._layers)t.push(...e.getObjectsByOrder());return t}getAllObjectsByOrder(t=!1){const e=[],s=t?f.sortRulesByDesc:f.sortRules;this._layers.sort(s);for(const i of this._layers)e.push(...i.getObjectsByOrder().sort(s));return e}getAllObjectsByOrderForPick(t=!1){const e=[],s=t?f.sortRulesByDesc:f.sortRules;this._layers.sort(s);for(const i of this._layers)e.push(...i.getObjectsByOrderForPick().sort(s));return e}getObject(t){for(const e of this._layers){const s=e.getObjectsByOrder();for(const i of s)if(i.oKey===t)return i}}fuzzyMathObjects(t){const e=[];for(const s of this._layers){const i=s.getObjectsByOrder();for(const o of i)o.oKey.indexOf(t)>-1&&i.push(o)}return e}addViewport(...t){return this._viewports.push(...t),this}removeViewport(t){for(let e=0,s=this._viewports.length;e<s;e++){const i=this._viewports[e];if(i.viewPortKey===t)return this._viewports.splice(e,1),i}}getViewports(){return this._viewports}getViewport(t){for(const e of this._viewports)if(e.viewPortKey===t)return e}changeObjectOrder(){}render(t){var s;if(!this.isDirty())return;!t&&((s=this.getEngine())==null||s.clearCanvas());const e=this._layers.sort(f.sortRules);for(let i=0,o=e.length;i<o;i++)e[i].render(t,i===o-1)}async requestRender(t){return new Promise((e,s)=>{this.render(t),S2(e)})}openTransformer(t){this._transformer||(this._transformer=new xf(this,t)),this._transformerOpenState=!0}closeTransformer(t=!1){t&&(this._transformer=null),this._transformerOpenState=!1}applyTransformer(t){var e;this._transformerOpenState&&((e=this._transformer)==null||e.attachTo(t))}getTransformer(){return this._transformer}getActiveViewportByRelativeCoord(t){return this._viewports.find(e=>e.isHit(t))}getActiveViewportByCoord(t){return t=this.getRelativeCoord(t),this.getActiveViewportByRelativeCoord(t)}getScrollXYByRelativeCoords(t,e){return e||(e=this.getActiveViewportByRelativeCoord(t)),e?this.getScrollXY(e):{x:0,y:0}}getScrollXY(t){let e=0,s=0;if(t){const i=t.actualScrollX||0,o=t.actualScrollY||0;e+=i,s+=o}return{x:e,y:s}}getRelativeCoord(t){let e=this.getParent();const s=[];for(;e;)(e.classType===P.SCENE||e.classType===P.SCENE_VIEWER)&&s.push(e),e=(e==null?void 0:e.getParent)&&(e==null?void 0:e.getParent());s.reverse();for(const i of s)if(i.classType===P.SCENE){const a=i.getActiveViewportByCoord(t);if(a){const c=a.actualScrollX||0,l=a.actualScrollY||0;t=t.addByPoint(c,l)}}else i.classType===P.SCENE_VIEWER&&(t=i.transform.clone().invert().applyPoint(t));return t}clearLayer(){this._layers=[]}clearViewports(){this._viewports=[]}getAncestorScale(){let{scaleX:t=1,scaleY:e=1}=this;return this.classType===P.SCENE_VIEWER&&(t=this.ancestorScaleX||1,e=this.ancestorScaleY||1),{scaleX:t,scaleY:e}}dispose(){var t;this.getLayers().forEach(e=>{e.dispose()}),this.getViewports().forEach(e=>{e.dispose()}),this.clearLayer(),this.clearViewports(),this.detachControl(),(t=this._transformer)==null||t.dispose(),this.onPointerDownObserver.clear(),this.onPointerMoveObserver.clear(),this.onPointerUpObserver.clear(),this.onPointerEnterObserver.clear(),this.onPointerLeaveObserver.clear(),this.onDblclickObserver.clear(),this.onTripleClickObserver.clear(),this.onMouseWheelObserver.clear(),this.onKeyDownObservable.clear(),this.onKeyUpObservable.clear()}pick(t){let e=this.getActiveViewportByCoord(t);if(e||(e=this._viewports[0]),!this.evented||!e)return;const s=e.pickScrollBar(t);if(s)return s;const i=e.getRelativeVector(t);let o=null;const a=this.getAllObjectsByOrderForPick().reverse(),c=a.length;for(let l=0;l<c;l++){const u=a[l];if(!u.visible||!u.evented||u.classType===P.GROUP)continue;let h=i;if(u.isInGroup&&u.parent.classType===P.GROUP){const{cumLeft:g,cumTop:p}=this._getGroupCumLeftRight(u);h=h.clone().add(B.FromArray([-g,-p]))}if(u.isHit(h)){if(u.classType===P.SCENE_VIEWER){const g=u.pick(h);g?o=g:o=u.getActiveSubScene()}else o=u;break}else if(u.classType===P.SCENE_VIEWER&&u.allowSelectedClipElement()){const g=u.pick(h);if(g){o=g;break}}}return!o&&this._parent.classType===P.ENGINE?this:o}triggerKeyDown(t){this.onKeyDownObservable.notifyObservers(t)}triggerKeyUp(t){this.onKeyUpObservable.notifyObservers(t)}triggerPointerUp(t){var e,s;return!((e=this.onPointerUpObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===P.SCENE_VIEWER?((s=this._parent)==null||s.triggerPointerUp(t),!1):!0}triggerMouseWheel(t){var e,s;return!((e=this.onMouseWheelObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===P.SCENE_VIEWER?((s=this._parent)==null||s.triggerMouseWheel(t),!1):!0}triggerPointerMove(t){var e,s;return!((e=this.onPointerMoveObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===P.SCENE_VIEWER?((s=this._parent)==null||s.triggerPointerMove(t),!1):!0}triggerDblclick(t){var e,s;return!((e=this.onDblclickObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===P.SCENE_VIEWER?((s=this._parent)==null||s.triggerDblclick(t),!1):!0}triggerTripleClick(t){var e,s;return!((e=this.onTripleClickObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===P.SCENE_VIEWER?((s=this._parent)==null||s.triggerTripleClick(t),!1):!0}triggerPointerDown(t){var e,s;return!((e=this.onPointerDownObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===P.SCENE_VIEWER?((s=this._parent)==null||s.triggerPointerDown(t),!1):!0}triggerPointerOut(t){var e;return this._parent.classType===P.SCENE_VIEWER?((e=this._parent)==null||e.triggerPointerOut(t),!1):!0}triggerPointerLeave(t){var e,s;return!((e=this.onPointerLeaveObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===P.SCENE_VIEWER?((s=this._parent)==null||s.triggerPointerLeave(t),!1):!0}triggerPointerOver(t){var e;return this._parent.classType===P.SCENE_VIEWER?((e=this._parent)==null||e.triggerPointerOver(t),!1):!0}triggerPointerEnter(t){var e,s;return!((e=this.onPointerEnterObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===P.SCENE_VIEWER?((s=this._parent)==null||s.triggerPointerEnter(t),!1):!0}_createDefaultLayer(t=1){const e=new At(this,[],t);return this.addLayer(e),e}_setTransForm(){const t=o1.create().composeMatrix({scaleX:this.scaleX,scaleY:this.scaleY});this.transform=t,this.getViewports().forEach(e=>{e.resetSizeAndScrollBar()}),this.makeDirty(!0)}_getGroupCumLeftRight(t){let e=t.parent,s=0,i=0;for(;e.classType===P.GROUP;){const{left:o,top:a}=e;s+=o,i+=a,e=e.parent}return{cumLeft:s,cumTop:i}}}const Lf={width:1500,height:1e3},If="_UNIVER_SCENE_";class xt{constructor(){_(this,"_defaultEngine",new q2);_(this,"_currentUnitId","");_(this,"_renderMap",new Map);_(this,"_currentRender$",new p1.BehaviorSubject(this._currentUnitId));_(this,"currentRender$",this._currentRender$.asObservable())}get defaultEngine(){return this._defaultEngine}dispose(){this._renderMap.forEach(n=>{this._disposeItem(n)}),this._renderMap.clear(),this._currentRender$.complete()}createRenderWithParent(n,t){const e=this.getRenderById(t);if(e==null)throw new Error("parent render is null");const{scene:s,engine:i}=e,o=this._createRender(n,i,!1),a=o.scene,c=new c7(n);return c.addSubScene(a),s.addObject(c),o}createRender(n){const t=new q2;return this._createRender(n,t)}_createRender(n,t,e=!0){const s=this.getRenderById(n);let i=!0;s!=null&&s.engine===t&&(i=!1),this._disposeItem(s,i);const{width:o,height:a}=Lf,c=new Rt(If+n,t,{width:o,height:a}),l={unitId:n,engine:t,scene:c,mainComponent:null,components:new Map,isMainScene:e};return this.addItem(n,l),l}addItem(n,t){this._renderMap.set(n,t)}removeItem(n){const t=this._renderMap.get(n);t!=null&&this._disposeItem(t),this._renderMap.delete(n)}setCurrent(n){this._currentUnitId=n,this._currentRender$.next(n)}getCurrent(){return this.getRenderById(this._currentUnitId)}getRenderById(n){return this._renderMap.get(n)}getRenderAll(){return this._renderMap}_disposeItem(n,t=!0){if(n==null)return;const{engine:e,scene:s,components:i,mainComponent:o}=n;i==null||i.forEach(a=>{a.dispose()}),o==null||o.dispose(),s.dispose(),t&&e.dispose()}}const Mt=s2.createIdentifier("univer.render-manager-service");var Pf=Object.defineProperty,$f=Object.getOwnPropertyDescriptor,kf=(r,n,t,e)=>{for(var s=e>1?void 0:e?$f(n,t):n,i=r.length-1,o;i>=0;i--)(o=r[i])&&(s=(e?o(n,t,s):o(s))||s);return e&&s&&Pf(n,t,s),s},Nf=(r,n)=>(t,e)=>n(t,e,r);const Lt=s2.createIdentifier("univer.render-engine"),Hf="render-engine";var p6;exports.UniverRenderEnginePlugin=(p6=class extends f.Plugin{constructor(n,t){super(Hf),this._injector=t,this._injector.add([Lt,{useFactory:()=>new q2}]),this._injector.add([Mt,{useClass:xt}])}},_(p6,"type",f.PluginType.Univer),p6);exports.UniverRenderEnginePlugin=kf([Nf(1,s2.Inject(s2.Injector))],exports.UniverRenderEnginePlugin);const It=["radius"];class l7 extends h2{constructor(t,e){super(t,e);_(this,"_radius");this._radius=(e==null?void 0:e.radius)||10,this._setFixBoundingBox(),this.onTransformChangeObservable.add(s=>{const{type:i,value:o,preValue:a}=s;if(i===n1.resize||i===n1.all){const c=Math.min(this.width,this.height);this._radius=c/2,this.width=c,this.height=c,this._setTransForm()}})}get radius(){return this._radius}static drawWith(t,e){let{radius:s}=e;s=s??10,t.beginPath(),e.strokeDashArray&&t.setLineDash(e.strokeDashArray),t.beginPath(),t.arc(s,s,s||0,0,Math.PI*2,!1),t.closePath(),this._renderPaintInOrder(t,e)}toJson(){const t={};return It.forEach(e=>{this[e]&&(t[e]=this[e])}),{...super.toJson(),...t}}_draw(t){l7.drawWith(t,this)}_setFixBoundingBox(){this.transformByState({width:this._radius*2,height:this._radius*2})}}class Xf{}class zf{}class J2 extends h2{constructor(t,e){super(t,e);_(this,"_props");_(this,"_native");this._props={autoWidth:!1,autoHeight:!1,...e},e.image?(this._native=e.image,this._init()):e.url&&(this._native=document.createElement("img"),this._native.src=e.url,this._native.onload=()=>{var s;(s=e.success)==null||s.call(e),this._init(),this.makeDirty(!0)},this._native.onerror=()=>{e.fail?e.fail():(this._native.src="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTMwNC4xMjggNDU2LjE5MmM0OC42NCAwIDg4LjA2NC0zOS40MjQgODguMDY0LTg4LjA2NHMtMzkuNDI0LTg4LjA2NC04OC4wNjQtODguMDY0LTg4LjA2NCAzOS40MjQtODguMDY0IDg4LjA2NCAzOS40MjQgODguMDY0IDg4LjA2NCA4OC4wNjR6bTAtMTE2LjIyNGMxNS4zNiAwIDI4LjE2IDEyLjI4OCAyOC4xNiAyOC4xNnMtMTIuMjg4IDI4LjE2LTI4LjE2IDI4LjE2LTI4LjE2LTEyLjI4OC0yOC4xNi0yOC4xNiAxMi4yODgtMjguMTYgMjguMTYtMjguMTZ6IiBmaWxsPSIjZTZlNmU2Ii8+PHBhdGggZD0iTTg4Ny4yOTYgMTU5Ljc0NEgxMzYuNzA0Qzk2Ljc2OCAxNTkuNzQ0IDY0IDE5MiA2NCAyMzIuNDQ4djU1OS4xMDRjMCAzOS45MzYgMzIuMjU2IDcyLjcwNCA3Mi43MDQgNzIuNzA0aDE5OC4xNDRMNTAwLjIyNCA2ODguNjRsLTM2LjM1Mi0yMjIuNzIgMTYyLjMwNC0xMzAuNTYtNjEuNDQgMTQzLjg3MiA5Mi42NzIgMjE0LjAxNi0xMDUuNDcyIDE3MS4wMDhoMzM1LjM2QzkyNy4yMzIgODY0LjI1NiA5NjAgODMyIDk2MCA3OTEuNTUyVjIzMi40NDhjMC0zOS45MzYtMzIuMjU2LTcyLjcwNC03Mi43MDQtNzIuNzA0em0tMTM4Ljc1MiA3MS42OHYuNTEySDg1Ny42YzE2LjM4NCAwIDMwLjIwOCAxMy4zMTIgMzAuMjA4IDMwLjIwOHYzOTkuODcyTDY3My4yOCA0MDguMDY0bDc1LjI2NC0xNzYuNjR6TTMwNC42NCA3OTIuMDY0SDE2NS44ODhjLTE2LjM4NCAwLTMwLjIwOC0xMy4zMTItMzAuMjA4LTMwLjIwOHYtOS43MjhsMTM4Ljc1Mi0xNjQuMzUyIDEwNC45NiAxMjQuNDE2LTc0Ljc1MiA3OS44NzJ6bTgxLjkyLTM1NS44NGwzNy4zNzYgMjI4Ljg2NC0uNTEyLjUxMi0xNDIuODQ4LTE2OS45ODRjLTMuMDcyLTMuNTg0LTkuMjE2LTMuNTg0LTEyLjI4OCAwTDEzNS42OCA2NTIuOFYyNjIuMTQ0YzAtMTYuMzg0IDEzLjMxMi0zMC4yMDggMzAuMjA4LTMwLjIwOGg0NzQuNjI0TDM4Ni41NiA0MzYuMjI0em01MDEuMjQ4IDMyNS42MzJjMCAxNi44OTYtMTMuMzEyIDMwLjIwOC0yOS42OTYgMzAuMjA4SDY4MC45Nmw1Ny4zNDQtOTMuMTg0LTg3LjU1Mi0yMDIuMjQgNy4xNjgtNy42OCAyMjkuODg4IDI3Mi44OTZ6IiBmaWxsPSIjZTZlNmU2Ii8+PC9zdmc+",this._init(),this.makeDirty(!0))})}static drawWith(t,e){var s;if((s=e._native)!=null&&s.complete){const{width:i,height:o}=e;try{t.drawImage(e._native,0,0,i,o)}catch(a){console.error(a)}}}static create(t,e,s){return new J2(t,{url:e,success:s})}getPictureProps(){return this._props}_draw(t){J2.drawWith(t,this)}_init(){var t,e;this._props.autoWidth&&this.resize(((t=this._native)==null?void 0:t.width)||0),this._props.autoHeight&&this.resize(void 0,((e=this._native)==null?void 0:e.height)||0)}}const A6=["text","richText"];class Wf extends M1{constructor(t,e,s){super(e);_(this,"_documentData");_(this,"_documentSkeleton");_(this,"_documents");_(this,"_ff");_(this,"_fs",12);_(this,"_it",f.BooleanNumber.FALSE);_(this,"_bl",f.BooleanNumber.FALSE);_(this,"_ul",{s:f.BooleanNumber.FALSE});_(this,"_st",{s:f.BooleanNumber.FALSE});_(this,"_ol",{s:f.BooleanNumber.FALSE});_(this,"_bg");_(this,"_bd");_(this,"_cl");this._localeService=t,s!=null&&s.richText?this._documentData=s.richText:s&&(this._fs=s.fs,this._ff=s.ff,this._it=s.it,this._bl=s.bl,this._ul=s.ul,this._st=s.st,this._ol=s.ol,this._bg=s.bg,this._bd=s.bd,this._cl=s.cl,this._documentData=this._convertToDocumentData(s.text||""));const i=new f.DocumentDataModel(this._documentData),o=new I1(i);this._documentSkeleton=a2.create(o,this._localeService),this._documents=new M2(`${this.oKey}_DOCUMENTS`,this._documentSkeleton,{pageMarginLeft:0,pageMarginTop:0}),this._initialProps(s),this.onTransformChangeObservable.add(a=>{const{type:c}=a;if(c===n1.resize||c===n1.all){i.updateDocumentDataPageSize(this.width),this._documentSkeleton.makeDirty(!0),this._documentSkeleton.calculate();const l=this.getDocsSkeletonPageSize();this.height=(l==null?void 0:l.height)||this.height,this._setTransForm()}})}get documentData(){return this._documentData}getDocsSkeletonPageSize(){var a;const t=(a=this._documentSkeleton)==null?void 0:a.getSkeletonData();if(!t)return;const{pages:e}=t,s=e[e.length-1],{width:i,height:o}=s;return{width:i,height:o}}setProps(t){if(!t)return;const e=Object.keys(t);if(e.length!==0)return e.forEach(s=>{if(t[s]===void 0)return!0;A6.indexOf(s)===-1&&(this[`_${s}`]=t[s])}),this.makeDirty(!0),this}render(t,e){if(!this.visible)return this.makeDirty(!1),this;if(this.isRender()){const{top:i,left:o,bottom:a,right:c}=e.viewBound;if(this.width+this.strokeWidth<o||c<0||this.height+this.strokeWidth<i||a<0)return this}const s=this.transform.getMatrix();return t.save(),t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._draw(t),t.restore(),this.makeDirty(!1),this}toJson(){const t={};return A6.forEach(e=>{this[e]&&(t[e]=this[e])}),{...super.toJson(),...t}}_draw(t){this._documents.render(t)}_convertToDocumentData(t){const e=t.length;return{id:"d",body:{dataStream:`${t}${f.DEFAULT_EMPTY_DOCUMENT_VALUE}`,textRuns:[{ts:{fs:this._fs||14,ff:this._ff,it:this._it,bl:this._bl,ul:this._ul,st:this._st,ol:this._ol,bg:this._bg,bd:this._bd,cl:this._cl},st:0,ed:e-1}]},documentStyle:{pageSize:{width:1/0,height:1/0}}}}_initialProps(t){this._documentSkeleton.getViewModel().getDataModel().updateDocumentDataPageSize(t==null?void 0:t.width,t==null?void 0:t.height),this._documentSkeleton.calculate();const e=this.getDocsSkeletonPageSize();this.transformByState({width:(e==null?void 0:e.width)||0,height:(e==null?void 0:e.height)||0,left:(t==null?void 0:t.left)||0,top:(t==null?void 0:t.top)||0,angle:t==null?void 0:t.angle}),this.setProps(t),this.makeDirty(!0)}}class Yf{constructor(){_(this,"enableHorizontal",!0);_(this,"enableVertical",!0);_(this,"horizontalThumbWidth",0);_(this,"horizontalMinusMiniThumb",0);_(this,"horizontalBarWidth",0);_(this,"verticalThumbHeight",0);_(this,"verticalBarHeight",0);_(this,"verticalMinusMiniThumb",0);_(this,"horizonBarRect");_(this,"horizonThumbRect");_(this,"verticalBarRect");_(this,"verticalThumbRect");_(this,"placeholderBarRect")}get limitX(){var n;return(n=this.horizonThumbRect)!=null&&n.visible?this.horizontalBarWidth-this.horizontalThumbWidth:0}get limitY(){var n;return(n=this.verticalThumbRect)!=null&&n.visible?this.verticalBarHeight-this.verticalThumbHeight:0}get ratioScrollX(){return this.enableHorizontal===!1||this.horizontalThumbWidth===void 0||this.horizontalBarWidth===void 0?1:(this.horizontalThumbWidth-this.horizontalMinusMiniThumb)*this.miniThumbRatioX/this.horizontalBarWidth}get ratioScrollY(){return this.enableVertical===!1||this.verticalThumbHeight===void 0||this.verticalBarHeight===void 0?1:(this.verticalThumbHeight-this.verticalMinusMiniThumb)*this.miniThumbRatioY/this.verticalBarHeight}get miniThumbRatioX(){const n=this.horizontalBarWidth-this.horizontalThumbWidth,t=this.horizontalBarWidth-(this.horizontalThumbWidth-this.horizontalMinusMiniThumb);return n/t}get miniThumbRatioY(){const n=this.verticalBarHeight-this.verticalThumbHeight,t=this.verticalBarHeight-(this.verticalThumbHeight-this.verticalMinusMiniThumb);return n/t}pick(n){var t,e,s,i;return(t=this.horizonThumbRect)!=null&&t.isHit(n)?this.horizonThumbRect:(e=this.verticalThumbRect)!=null&&e.isHit(n)?this.verticalThumbRect:(s=this.horizonBarRect)!=null&&s.isHit(n)?this.horizonBarRect:(i=this.verticalBarRect)!=null&&i.isHit(n)?this.verticalBarRect:null}dispose(){var n,t,e,s,i;(n=this.horizonBarRect)==null||n.dispose(),(t=this.horizonThumbRect)==null||t.dispose(),(e=this.verticalBarRect)==null||e.dispose(),(s=this.verticalThumbRect)==null||s.dispose(),(i=this.placeholderBarRect)==null||i.dispose()}hasHorizonThumb(){var n;return((n=this.horizonThumbRect)==null?void 0:n.visible)||!1}hasVerticalThumb(){var n;return((n=this.verticalThumbRect)==null?void 0:n.visible)||!1}resize(n=0,t=0,e=0,s=0){}makeDirty(n){}render(n,t=0,e=0){}}const e2=17;class u7 extends Yf{constructor(t,e){super();_(this,"_view");_(this,"_mainScene");_(this,"_lastX",-1);_(this,"_lastY",-1);_(this,"_isHorizonMove",!1);_(this,"_isVerticalMove",!1);_(this,"_horizonPointerMoveObserver");_(this,"_horizonPointerUpObserver");_(this,"_verticalPointerMoveObserver");_(this,"_verticalPointerUpObserver");_(this,"barSize",14);_(this,"barBorder",1);_(this,"thumbMargin",2);_(this,"thumbLengthRatio",1);_(this,"thumbBackgroundColor","#cccccc");_(this,"thumbHoverBackgroundColor","#b2b2b2");_(this,"thumbActiveBackgroundColor","#999999");_(this,"barBackgroundColor","rgba(255,255,255,0.5)");_(this,"barBorderColor","rgba(255,255,255,0.7)");t||console.warn("Missing viewport"),this.setProps(e),this._view=t,this._initialScrollRect(),this._view.setScrollBar(this)}static attachTo(t,e){return new u7(t,e)}dispose(){var t,e,s,i;super.dispose(),(t=this._mainScene)==null||t.onPointerMoveObserver.remove(this._horizonPointerMoveObserver),(e=this._mainScene)==null||e.onPointerMoveObserver.remove(this._verticalPointerMoveObserver),(s=this._mainScene)==null||s.onPointerUpObserver.remove(this._horizonPointerUpObserver),(i=this._mainScene)==null||i.onPointerUpObserver.remove(this._verticalPointerUpObserver),this._mainScene=null,this._view.removeScrollBar()}render(t,e=0,s=0){const{scrollX:i,scrollY:o}=this._view;t.save();const c=new o1([1,0,0,1,e,s]).getMatrix();t.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this.enableHorizontal&&(this.horizonBarRect.render(t),this.horizonThumbRect.translate(i).render(t)),this.enableVertical&&(this.verticalBarRect.render(t),this.verticalThumbRect.translate(void 0,o).render(t)),this.enableHorizontal&&this.enableVertical&&this.placeholderBarRect.render(t),t.restore()}resize(t=0,e=0,s=0,i=0){var o;t===0&&t===0||(this._resizeHorizontal(t,e,s),this._resizeVertical(t,e,i),this.enableHorizontal&&this.enableVertical&&((o=this.placeholderBarRect)==null||o.transformByState({left:t-this.barSize,top:e-this.barSize,width:this.barSize-this.barBorder,height:this.barSize-this.barBorder})))}makeDirty(t){var e,s,i,o,a;(e=this.horizonBarRect)==null||e.makeDirty(t),(s=this.horizonThumbRect)==null||s.makeDirty(t),(i=this.verticalBarRect)==null||i.makeDirty(t),(o=this.verticalThumbRect)==null||o.makeDirty(t),(a=this.placeholderBarRect)==null||a.makeDirty(t),this.makeViewDirty(t)}makeViewDirty(t){(this._mainScene||this._view.scene).makeDirty(t)}pick(t){var e,s,i,o;return(e=this.horizonThumbRect)!=null&&e.isHit(t)?this.horizonThumbRect:(s=this.verticalThumbRect)!=null&&s.isHit(t)?this.verticalThumbRect:(i=this.horizonBarRect)!=null&&i.isHit(t)?this.horizonBarRect:(o=this.verticalBarRect)!=null&&o.isHit(t)?this.verticalBarRect:null}setProps(t){if(!t)return;const e=Object.keys(t);e.length!==0&&e.forEach(s=>{t[s]!==void 0&&(this[`${s}`]=t[s])})}_resizeHorizontal(t,e,s){var i,o,a,c,l;this.enableHorizontal&&(this.horizontalMinusMiniThumb=0,this.horizontalBarWidth=t-(this.enableVertical?this.barSize:0)-this.barBorder,this.horizontalThumbWidth=this.horizontalBarWidth*(this.horizontalBarWidth-this.barBorder)/s*this.thumbLengthRatio,this.horizontalThumbWidth<e2&&(this.horizontalMinusMiniThumb=e2-this.horizontalThumbWidth,this.horizontalThumbWidth=e2),(i=this.horizonBarRect)==null||i.transformByState({left:0,top:e-this.barSize,width:this.horizontalBarWidth,height:this.barSize-this.barBorder}),this.horizontalThumbWidth>=t?(o=this.horizonThumbRect)==null||o.setProps({visible:!1}):((a=this.horizonThumbRect)!=null&&a.visible||(c=this.horizonThumbRect)==null||c.setProps({visible:!0}),(l=this.horizonThumbRect)==null||l.transformByState({left:this._view.scrollX,top:e-this.barSize+this.thumbMargin,width:this.horizontalThumbWidth,height:this.barSize-this.thumbMargin*2})))}_resizeVertical(t,e,s){var i,o,a,c,l;this.enableVertical&&(this.verticalMinusMiniThumb=0,this.verticalBarHeight=e-(this.enableHorizontal?this.barSize:0)-this.barBorder,this.verticalThumbHeight=this.verticalBarHeight*this.verticalBarHeight/s*this.thumbLengthRatio,this.verticalThumbHeight<e2&&(this.verticalMinusMiniThumb=e2-this.verticalThumbHeight,this.verticalThumbHeight=e2),(i=this.verticalBarRect)==null||i.transformByState({left:t-this.barSize,top:0,width:this.barSize-this.barBorder,height:this.verticalBarHeight}),this.verticalThumbHeight>=e?(o=this.verticalThumbRect)==null||o.setProps({visible:!1}):((a=this.verticalThumbRect)!=null&&a.visible||(c=this.verticalThumbRect)==null||c.setProps({visible:!0}),(l=this.verticalThumbRect)==null||l.transformByState({left:t-this.barSize+this.thumbMargin,top:this._view.scrollY,width:this.barSize-this.thumbMargin*2,height:this.verticalThumbHeight})))}_initialScrollRect(){this.enableHorizontal&&(this.horizonBarRect=new f1("__horizonBarRect__",{fill:this.barBackgroundColor,strokeWidth:this.barBorder,stroke:this.barBorderColor}),this.horizonThumbRect=new f1("__horizonThumbRect__",{radius:6,fill:this.thumbBackgroundColor})),this.enableVertical&&(this.verticalBarRect=new f1("__verticalBarRect__",{fill:this.barBackgroundColor,strokeWidth:this.barBorder,stroke:this.barBorderColor}),this.verticalThumbRect=new f1("__verticalThumbRect__",{radius:6,fill:this.thumbBackgroundColor})),this.enableHorizontal&&this.enableVertical&&(this.placeholderBarRect=new f1("__placeholderBarRect__",{fill:this.barBackgroundColor,strokeWidth:this.barBorder,stroke:this.barBorderColor})),this._initialVerticalEvent(),this._initialHorizontalEvent()}_initialVerticalEvent(){var e,s,i,o;if(!this.enableVertical)return;const t=this._mainScene||this._view.scene;(e=this.verticalThumbRect)==null||e.on(S1.PointerEnter,this._hoverFunc(this.thumbHoverBackgroundColor,this.verticalThumbRect)),(s=this.verticalThumbRect)==null||s.on(S1.PointerLeave,this._hoverFunc(this.thumbBackgroundColor,this.verticalThumbRect)),(i=this.verticalBarRect)==null||i.on(S1.PointerDown,(a,c)=>{const l=a;this._view.scrollTo({y:l.offsetY-this._view.top-this.verticalThumbHeight/2}),c.stopPropagation()}),(o=this.verticalThumbRect)==null||o.on(S1.PointerDown,(a,c)=>{const l=a,u=this.verticalThumbRect;this._isVerticalMove=!0,this._lastX=l.offsetX,this._lastY=l.offsetY,u==null||u.setProps({fill:this.thumbActiveBackgroundColor}),t.disableEvent(),this.makeViewDirty(!0),c.stopPropagation()}),this._verticalPointerMoveObserver=t.onPointerMoveObserver.add((a,c)=>{const l=a;this._isVerticalMove&&(this._view.scrollByBar({y:l.offsetY-this._lastY}),this._lastY=l.offsetY)}),this._verticalPointerUpObserver=t.onPointerUpObserver.add((a,c)=>{const l=this.verticalThumbRect;this._isVerticalMove=!1,t.enableEvent(),l==null||l.setProps({fill:this.thumbBackgroundColor}),this.makeViewDirty(!0)})}_hoverFunc(t,e){return(s,i)=>{if(this._isHorizonMove||this._isVerticalMove)return;e.setProps({fill:t}),this.makeViewDirty(!0)}}_initialHorizontalEvent(){var e,s,i,o;if(!this.enableHorizontal)return;const t=this._mainScene||this._view.scene;(e=this.horizonThumbRect)==null||e.on(S1.PointerEnter,this._hoverFunc(this.thumbHoverBackgroundColor,this.horizonThumbRect)),(s=this.horizonThumbRect)==null||s.on(S1.PointerLeave,this._hoverFunc(this.thumbBackgroundColor,this.horizonThumbRect)),(i=this.horizonBarRect)==null||i.on(S1.PointerDown,(a,c)=>{const l=a;this._view.scrollTo({x:l.offsetX-this._view.left-this.horizontalThumbWidth/2}),c.stopPropagation()}),(o=this.horizonThumbRect)==null||o.on(S1.PointerDown,(a,c)=>{var u;const l=a;this._isHorizonMove=!0,this._lastX=l.offsetX,this._lastY=l.offsetY,(u=this.horizonThumbRect)==null||u.setProps({fill:this.thumbActiveBackgroundColor}),this.makeViewDirty(!0),t.disableEvent(),c.stopPropagation()}),this._horizonPointerMoveObserver=t.onPointerMoveObserver.add((a,c)=>{const l=a;this._isHorizonMove&&(this._view.scrollByBar({x:l.offsetX-this._lastX}),this._lastX=l.offsetX)}),this._horizonPointerUpObserver=t.onPointerUpObserver.add((a,c)=>{const l=this.horizonThumbRect;this._isHorizonMove=!1,t.enableEvent(),l==null||l.setProps({fill:this.thumbBackgroundColor}),this.makeViewDirty(!0)})}}class jf{}const Uf=3;class Vf{constructor(n,t,e){_(this,"scrollX",0);_(this,"scrollY",0);_(this,"actualScrollX",0);_(this,"actualScrollY",0);_(this,"onMouseWheelObserver",new f.Observable);_(this,"onScrollAfterObserver",new f.Observable);_(this,"onScrollBeforeObserver",new f.Observable);_(this,"onScrollStopObserver",new f.Observable);_(this,"onScrollByBarObserver",new f.Observable);_(this,"_viewPortKey","");_(this,"_dirty",!0);_(this,"_topOrigin",0);_(this,"_leftOrigin",0);_(this,"_bottomOrigin",0);_(this,"_rightOrigin",0);_(this,"_widthOrigin");_(this,"_heightOrigin");_(this,"_top",0);_(this,"_left",0);_(this,"_bottom",0);_(this,"_right",0);_(this,"_width");_(this,"_height");_(this,"_scene");_(this,"_scrollBar");_(this,"_isWheelPreventDefaultX",!1);_(this,"_isWheelPreventDefaultY",!1);_(this,"_scrollStopNum",0);_(this,"_preScrollX",0);_(this,"_preScrollY",0);_(this,"_renderClipState",!0);_(this,"_active",!0);_(this,"_paddingStartX",0);_(this,"_paddingEndX",0);_(this,"_paddingStartY",0);_(this,"_paddingEndY",0);_(this,"_isRelativeX",!1);_(this,"_isRelativeY",!1);_(this,"_preViewportBound");var s;this._viewPortKey=n,this._scene=t,(e==null?void 0:e.active)!=null&&(this._active=e.active),this._setWithAndHeight(e),this._isWheelPreventDefaultX=(e==null?void 0:e.isWheelPreventDefaultX)||!1,this._isWheelPreventDefaultY=(e==null?void 0:e.isWheelPreventDefaultY)||!1,this._resizeCacheCanvasAndScrollBar(),(s=this._scene)==null||s.getParent().onTransformChangeObservable.add(()=>{this._resizeCacheCanvasAndScrollBar()})}get scene(){return this._scene}get width(){return this._width}get height(){return this._height}get viewPortKey(){return this._viewPortKey}get topOrigin(){return this._topOrigin}get leftOrigin(){return this._leftOrigin}get bottomOrigin(){return this._bottomOrigin}get rightOrigin(){return this._rightOrigin}get top(){return this._top}get left(){return this._left}get bottom(){return this._bottom}get right(){return this._right}get isWheelPreventDefaultX(){return this._isWheelPreventDefaultX}get isWheelPreventDefaultY(){return this._isWheelPreventDefaultY}set width(n){this._width=n}set height(n){this._height=n}get isActive(){return this._active===!1||(this.height||0)<=0||(this.width||0)<=0?!1:this._active}set top(n){var t,e;this._topOrigin=n,this._top=A1(n,(e=(t=this._scene)==null?void 0:t.getParent())==null?void 0:e.height)}set left(n){var t;this._leftOrigin=n,this._left=A1(n,(t=this.scene.getParent())==null?void 0:t.width)}set bottom(n){var t;this._bottomOrigin=n,this._bottom=A1(n,(t=this.scene.getParent())==null?void 0:t.height)}set right(n){var t;this._rightOrigin=n,this._right=A1(n,(t=this.scene.getParent())==null?void 0:t.width)}enable(){this._active=!0}disable(){this._active=!1}resetSizeAndScrollBar(){this._resizeCacheCanvasAndScrollBar()}setScrollBar(n){this._scrollBar&&console.warn("Old scrollBar will be replaced "),this._scrollBar=n,this._resizeCacheCanvasAndScrollBar()}removeScrollBar(){this._scrollBar=null}resize(n){Object.keys(n).length!==0&&(this._setWithAndHeight(n),this._resizeCacheCanvasAndScrollBar())}setPadding(n){const{startX:t=0,startY:e=0,endX:s=0,endY:i=0}=n;this._paddingStartX=t,this._paddingEndX=s,this._paddingStartY=e,this._paddingEndY=i,this._resizeCacheCanvasAndScrollBar()}resetPadding(){this.setPadding({startX:0,endX:0,startY:0,endY:0})}makeDirty(n=!0,t=!1){if(this._dirty=n,t){const e=this.scene.getParent();e.classType===P.SCENE_VIEWER&&e.makeDirty(!0)}}isDirty(){return this._dirty}scrollTo(n,t=!0){return this._scroll(0,n,t)}scrollBy(n,t=!0){return this._scroll(1,n,t)}scrollByBar(n,t=!0){this._scroll(1,n,t,!0)}scrollByOffset(n=0,t=0,e=!0){if(!this._scrollBar||this.isActive===!1)return;const s=n+this._paddingStartX,i=t+this._paddingStartY,o=this.getBarScroll(s,i);return this.scrollBy(o,e)}getBarScroll(n,t){let e=n-this._paddingStartX,s=t-this._paddingStartY;if(this._scrollBar){e*=this._scrollBar.ratioScrollX,s*=this._scrollBar.ratioScrollY;const{scaleX:i,scaleY:o}=this.scene;e*=i,s*=o}else this.scrollX!==void 0&&(e=this.scrollX),this.scrollY!==void 0&&(s=this.scrollY);return{x:e,y:s}}getActualScroll(n,t){let e=n,s=t;if(this._scrollBar){e/=this._scrollBar.ratioScrollX,s/=this._scrollBar.ratioScrollY;const{scaleX:i,scaleY:o}=this.scene;e/=i,s/=o}else this.actualScrollX!==void 0&&(e=this.actualScrollX),this.actualScrollY!==void 0&&(s=this.actualScrollY);return{x:Math.round(e+this._paddingStartX),y:Math.round(s+this._paddingStartY)}}getTransformedScroll(){const n=this.scrollX,t=this.scrollY;return this.getActualScroll(n,t)}getScrollBar(){return this._scrollBar}updateScroll(n){this._preScrollX=this.scrollX,this._preScrollY=this.scrollY;const{scrollX:t,scrollY:e,actualScrollX:s,actualScrollY:i}=n;return t!==void 0&&(this.scrollX=t),e!==void 0&&(this.scrollY=e),s!==void 0&&(this.actualScrollX=s),i!==void 0&&(this.actualScrollY=i),this}getScrollBarTransForm(){const n=o1.create();return n.multiply(o1.create([1,0,0,1,this._left,this._top])),n}render(n,t=[],e=!1){var u;if(this.isActive===!1)return;const s=n||((u=this._scene.getEngine())==null?void 0:u.getCanvas().getContext()),i=this._scene.transform.clone();i.multiply(o1.create([1,0,0,1,Math.round(-this.actualScrollX||0),Math.round(-this.actualScrollY||0)]));const o=s;if(!o)return;const a=i.getMatrix(),c=this.getScrollBarTransForm().getMatrix();if(o.save(),this._renderClipState){o.beginPath();const{scaleX:h,scaleY:g}=this._getBoundScale(a[0],a[3]);o.rect(this.left,this.top,(this.width||0)*h,(this.height||0)*g),o.clip()}o.transform(a[0],a[1],a[2],a[3],a[4],a[5]);const l=this._calViewportRelativeBounding();t.forEach(h=>{h.render(o,l)}),o.restore(),this._scrollBar&&e&&(o.save(),o.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawScrollbar(o),o.restore()),this.makeDirty(!1),this._scrollRendered(),this._preViewportBound=l}getBounding(){return this._calViewportRelativeBounding()}getRelativeVector(n){const t=this.scene.transform.clone().invert(),e=this.getTransformedScroll();return t.applyPoint(n).add(B.FromArray([e.x,e.y]))}getAbsoluteVector(n){const t=this.scene.transform.clone(),e=this.getTransformedScroll();return t.applyPoint(n.subtract(B.FromArray([e.x,e.y])))}onMouseWheel(n,t){if(!this._scrollBar||this.isActive===!1)return;let e;if(n.inputIndex===M.MouseWheelX){const s=Math.abs(n.deltaX),i=this._scene.width,a=(this.width||1)/i*s;n.deltaX>0?e=this.scrollBy({x:a}):e=this.scrollBy({x:-a}),this._scene.getParent().classType===P.SCENE_VIEWER?e!=null&&e.isLimitedX||t.stopPropagation():this._isWheelPreventDefaultX?n.preventDefault():e!=null&&e.isLimitedX||n.preventDefault()}if(n.inputIndex===M.MouseWheelY){const s=Math.abs(n.deltaY),i=this._scene.height;let a=(this.height||1)/i*s;n.shiftKey?(a*=Uf,n.deltaY>0?e=this.scrollBy({x:a}):e=this.scrollBy({x:-a}),this._scene.getParent().classType===P.SCENE_VIEWER?e!=null&&e.isLimitedX||t.stopPropagation():this._isWheelPreventDefaultX?n.preventDefault():e!=null&&e.isLimitedX||n.preventDefault()):(n.deltaY>0?e=this.scrollBy({y:a}):e=this.scrollBy({y:-a}),this._scene.getParent().classType===P.SCENE_VIEWER?e!=null&&e.isLimitedY||t.stopPropagation():this._isWheelPreventDefaultY?n.preventDefault():e!=null&&e.isLimitedY||n.preventDefault())}n.inputIndex,M.MouseWheelZ,this._scene.makeDirty(!0)}isHit(n){if(this.isActive===!1)return;const{width:t,height:e}=this._getViewPortSize();return n.x>=this.left&&n.x<=this.left+(t||0)&&n.y>=this.top&&n.y<=this.top+(e||0)}pickScrollBar(n){if(!this._scrollBar)return;const e=this.getScrollBarTransForm().invert().applyPoint(n);return this._scrollBar.pick(e)}openClip(){this._renderClipState=!0}closeClip(){this._renderClipState=!1}dispose(){var n;this.onMouseWheelObserver.clear(),this.onScrollAfterObserver.clear(),this.onScrollBeforeObserver.clear(),this.onScrollStopObserver.clear(),(n=this._scrollBar)==null||n.dispose(),this._scene.removeViewport(this._viewPortKey)}limitedScroll(){var i,o;if(!this._scrollBar)return;const n=((i=this._scrollBar)==null?void 0:i.limitX)||1/0,t=((o=this._scrollBar)==null?void 0:o.limitY)||1/0;let e=!0,s=!0;return this.scrollX<0?this.scrollX=0:this.scrollX>n?this.scrollX=n:e=!1,this.scrollY<0?this.scrollY=0:this.scrollY>t?this.scrollY=t:s=!1,{isLimitedX:e,isLimitedY:s}}_resizeCacheCanvasAndScrollBar(){var i;const{width:n,height:t}=this._getViewPortSize(),e=(this._scene.width-this._paddingEndX)*this._scene.scaleX,s=(this._scene.height-this._paddingEndY)*this._scene.scaleY;(i=this._scrollBar)==null||i.resize(n,t,e,s),this.makeDirty(!0)}_getViewPortSize(){const n=this._scene.getParent(),{width:t,height:e}=n,{scaleX:s=1,scaleY:i=1}=this._scene;let o,a,c=this.left*s,l=this.top*i;return this._leftOrigin!=null&&(c=this._leftOrigin*s),this._topOrigin!=null&&(l=this._topOrigin*i),this._widthOrigin!=null?o=this._widthOrigin*s:(o=t-(c+this._right),this.width=o),this._heightOrigin!=null?a=this._heightOrigin*i:(a=e-(l+this._bottom),this.height=a),this._left=c,this._top=l,{width:o,height:a}}_scrollRendered(){this._preScrollX=this.scrollX,this._preScrollY=this.scrollY}_triggerScrollStop(n,t,e,s=!0){clearTimeout(this._scrollStopNum),this._scrollStopNum=setTimeout(()=>{var i,o;this.onScrollStopObserver.notifyObservers({viewport:this,scrollX:this.scrollX,scrollY:this.scrollY,x:t,y:e,actualScrollX:n.x,actualScrollY:n.y,limitX:(i=this._scrollBar)==null?void 0:i.limitX,limitY:(o=this._scrollBar)==null?void 0:o.limitY,isTrigger:s})},0)}_scroll(n,t,e=!0,s=!1){var l,u,h,g,p,m;const{x:i,y:o}=t;if(this._scrollBar==null)return;i!==void 0&&(this._scrollBar.hasHorizonThumb()?n===1?this.scrollX+=i:this.scrollX=i:this.scrollX=0),o!==void 0&&(this._scrollBar.hasVerticalThumb()?n===1?this.scrollY+=o:this.scrollY=o:this.scrollY=0);const a=this.limitedScroll();this.onScrollBeforeObserver.notifyObservers({viewport:this,scrollX:this.scrollX,scrollY:this.scrollY,x:i,y:o,limitX:(l=this._scrollBar)==null?void 0:l.limitX,limitY:(u=this._scrollBar)==null?void 0:u.limitY,isTrigger:e}),this._scrollBar?this._scrollBar.makeDirty(!0):this.makeDirty(!0);const c=this.getTransformedScroll();return this.actualScrollX=c.x,this.actualScrollY=c.y,this.onScrollAfterObserver.notifyObservers({viewport:this,scrollX:this.scrollX,scrollY:this.scrollY,x:i,y:o,actualScrollX:c.x,actualScrollY:c.y,limitX:(h=this._scrollBar)==null?void 0:h.limitX,limitY:(g=this._scrollBar)==null?void 0:g.limitY,isTrigger:e}),s&&this.onScrollByBarObserver.notifyObservers({viewport:this,scrollX:this.scrollX,scrollY:this.scrollY,x:i,y:o,actualScrollX:c.x,actualScrollY:c.y,limitX:(p=this._scrollBar)==null?void 0:p.limitX,limitY:(m=this._scrollBar)==null?void 0:m.limitY,isTrigger:e}),this._triggerScrollStop(c,i,o,e),a}_calViewportRelativeBounding(){var l;if(this.isActive===!1)return{viewBound:{left:-1,top:-1,right:-1,bottom:-1},diffBounds:[],diffX:-1,diffY:-1,viewPortPosition:{top:0,left:0,bottom:0,right:0},viewPortKey:this.viewPortKey};const n=this.left,t=(this.width||0)+this.left,e=this.top,s=(this.height||0)+this.top,i=this.getRelativeVector(B.FromArray([n,e])),o=this.getRelativeVector(B.FromArray([t,s])),a={top:i.y,left:i.x,right:o.x,bottom:o.y},c=(l=this._preViewportBound)==null?void 0:l.viewBound;return{viewBound:a,diffBounds:this._diffViewBound(a,c),diffX:Math.round(((c==null?void 0:c.left)||0)-a.left),diffY:Math.round(((c==null?void 0:c.top)||0)-a.top),viewPortPosition:{top:e,left:n,bottom:s,right:t},viewPortKey:this.viewPortKey}}_diffViewBound(n,t){if(t==null)return[n];const e={startRow:n.top,endRow:n.bottom,startColumn:n.left,endColumn:n.right},s={startRow:t.top,endRow:t.bottom,startColumn:t.left,endColumn:t.right};return f.Rectangle.subtract(e,s).map(o=>{const{startRow:a,endRow:c,startColumn:l,endColumn:u}=o;return{left:l,top:a,right:u,bottom:c}})}_drawScrollbar(n){if(!this._scrollBar)return;const t=this._scene.getParent();t.classType===P.SCENE_VIEWER?this._scrollBar.render(n):t.classType===P.ENGINE&&this._scrollBar.render(n)}_setWithAndHeight(n){this.top=(n==null?void 0:n.top)||0,this.left=(n==null?void 0:n.left)||0,this.bottom=(n==null?void 0:n.bottom)||0,this.right=(n==null?void 0:n.right)||0,n!=null&&n.width?(this.width=n==null?void 0:n.width,this._widthOrigin=this.width,this._isRelativeX=!1):(this.width=null,this._widthOrigin=null,this._isRelativeX=!0),n!=null&&n.height?(this.height=n==null?void 0:n.height,this._heightOrigin=this.height,this._isRelativeY=!1):(this.height=null,this._heightOrigin=null,this._isRelativeY=!0)}_getBoundScale(n,t){return n=this._isRelativeX&&n<1?1:n,t=this._isRelativeY&&t<1?1:t,{scaleX:n,scaleY:t}}}exports.ArabicHandler=X4;exports.BASE_OBJECT_ARRAY=Y2;exports.BORDER_TYPE=e1;exports.Background=Ct;exports.BaseObject=M1;exports.Border=St;exports.BreakType=r2;exports.CIRCLE_OBJECT_ARRAY=It;exports.COLOR_BLACK_RGB=j1;exports.CURSOR_TYPE=i1;exports.Canvas=l2;exports.Circle=l7;exports.ColumnHeaderLayout=Et;exports.ComponentExtension=n7;exports.Control=Xf;exports.CustomObject=Bf;exports.DEFAULT_DOCUMENT_FONTSIZE=U7;exports.DEFAULT_FONTFACE_PLANE=Z2;exports.DEFAULT_MEASURE_TEXT=j7;exports.DEFAULT_OFFSET_SPACING=m6;exports.DEFAULT_SELECTION_LAYER_INDEX=jt;exports.DEFAULT_SKELETON_FOOTER=Yt;exports.DEFAULT_SKELETON_HEADER=Wt;exports.DOCUMENT_CONTEXT_CLIP_TYPE=V7;exports.DeviceInputEventType=f4;exports.DeviceType=d1;exports.DocumentHorizonBar=hf;exports.DocumentSkeleton=a2;exports.DocumentSkeletonState=pt;exports.DocumentVerticalBar=gf;exports.DocumentViewModel=I1;exports.Documents=M2;exports.DocumentsSpanAndLineExtensionRegistry=_2;exports.Drawing=zf;exports.EMOJI_REG=P6;exports.EVENT_TYPE=S1;exports.Engine=q2;exports.EventConstants=k2;exports.FIX_ONE_PIXEL_BLUR_OFFSET=g1;exports.Font=yt;exports.FontCache=B1;exports.Group=Bt;exports.HitCanvas=o_;exports.INITIAL_MATRIX=$2;exports.INITIAL_Path2=g4;exports.IRenderManagerService=Mt;exports.IRenderingEngine=Lt;exports.ITextSelectionRenderManager=ff;exports.IsSafari=Q7;exports.LINK_VIEW_PORT_TYPE=W7;exports.Layer=At;exports.LineType=A2;exports.Liquid=w2;exports.MAXIMUM_ROW_HEIGHT=G7;exports.MIDDLE_CELL_POS_MAGIC_NUMBER=x6;exports.NORMAL_TEXT_SELECTION_PLUGIN_STYLE=T2;exports.NodePositionConvertToCursor=_t;exports.NodePositionMap=X1;exports.NodePositionStateType=ht;exports.NodePositionType=v2;exports.ORIENTATION_TYPE=C2;exports.PATH_OBJECT_ARRAY=Ot;exports.PageLayoutType=b1;exports.Path=h1;exports.Path2=D4;exports.PerformanceMonitor=p4;exports.Picture=J2;exports.PointerInput=M;exports.RANGE_DIRECTION=b2;exports.RECT_OBJECT_ARRAY=ft;exports.REGULAR_POLYGON_OBJECT_ARRAY=gt;exports.RENDER_CLASS_TYPE=P;exports.RICHTEXT_OBJECT_ARRAY=A6;exports.Rect=f1;exports.RegularPolygon=i6;exports.RenderComponent=Y6;exports.RenderManagerService=xt;exports.RichText=Wf;exports.RollingAverage=m4;exports.RowHeaderLayout=Tt;exports.SHAPE_OBJECT_ARRAY=dt;exports.SHAPE_TYPE=R6;exports.SHEET_EXTENSION_TYPE=vt;exports.SLIDE_NAVIGATION_KEY=wt;exports.Scene=Rt;exports.SceneCanvas=r_;exports.SceneViewer=c7;exports.ScrollBar=u7;exports.ScrollTimer=c2;exports.ScrollTimerType=mt;exports.Selection=jf;exports.Shape=h2;exports.SheetColumnHeaderExtensionRegistry=i7;exports.SheetComponent=r7;exports.SheetExtension=d2;exports.SheetRowHeaderExtensionRegistry=s7;exports.ShowGridlinesState=Ft;exports.SkeletonType=l4;exports.Slide=wf;exports.SpanType=a1;exports.Spreadsheet=Of;exports.SpreadsheetColumnHeader=Df;exports.SpreadsheetExtensionRegistry=x2;exports.SpreadsheetHeader=o7;exports.SpreadsheetRowHeader=Tf;exports.SpreadsheetSkeleton=a7;exports.TRANSFORM_CHANGE_OBSERVABLE_TYPE=n1;exports.TextRange=G2;exports.TextSelectionRenderManager=df;exports.TibetanHandler=W4;exports.Transform=o1;exports.Vector2=B;exports.Viewport=Vf;exports._createSkeletonWordOrLetter=s6;exports.addSpanToDivide=N2;exports.calculateLineTopByDrawings=j4;exports.calculateParagraphLayout=y6;exports.calculateRectRotate=y2;exports.cancelRequestFrame=J7;exports.checkStyle=a4;exports.clearFontCreateConfigCache=L4;exports.clearLineByBorderType=h4;exports.columnIterator=A4;exports.compareNodePosition=V2;exports.compareNodePositionLogic=e7;exports.createAndUpdateBlockAnchor=G4;exports.createCanvasElement=I6;exports.createImageElement=xh;exports.createSkeletonBulletSpan=$4;exports.createSkeletonColumn=zd;exports.createSkeletonLetterSpan=R2;exports.createSkeletonLine=Y4;exports.createSkeletonPage=o2;exports.createSkeletonSection=K6;exports.createSkeletonTabSpan=P4;exports.createSkeletonWordSpan=I4;exports.cursorConvertToTextRange=Dt;exports.dealWidthBlocksByMultiColumnAndContinuous=k_;exports.dealWidthInlineDrawing=E4;exports.dealWidthParagraph=ut;exports.dealWithBlockError=b4;exports.dealWithBullet=S4;exports.dealWithSections=G6;exports.degToRad=x1;exports.drawLineByBorderType=H6;exports.emojiHandler=z4;exports.fixLineWidthByScale=K;exports.generateRandomKey=t4;exports.getBulletOrderedSymbol=v4;exports.getCanvasOffsetByEngine=bt;exports.getCellByIndex=i2;exports.getCellInfoInMergeData=e6;exports.getCellPositionByIndex=z1;exports.getCharSpaceApply=n6;exports.getCharSpaceConfig=w4;exports.getColor=c1;exports.getColumnByDivide=v_;exports.getCurrentScrollXY=n2;exports.getDPI=B2;exports.getDefaultBulletSke=S6;exports.getDevicePixelRatio=N6;exports.getDocsSkeletonPageSize=K2;exports.getFontCreateConfig=V1;exports.getFontStyleString=E2;exports.getLastColumn=p_;exports.getLastLine=y4;exports.getLastLineByColumn=T4;exports.getLastNotFullColumnInfo=F2;exports.getLastNotFullDivideInfo=j6;exports.getLastPage=U1;exports.getLastRemainingDivide=S_;exports.getLastSection=u2;exports.getLastSpan=E_;exports.getLineHeightConfig=V6;exports.getLineOffset=_4;exports.getLineWidth=z6;exports.getLineWith=L1;exports.getNextDivide=C_;exports.getNumberUnitValue=R1;exports.getOneTextSelectionRange=O6;exports.getPageContentWidth=m_;exports.getParagraphBySpan=u4;exports.getPointerPrefix=b6;exports.getPositionHorizon=R4;exports.getPositionVertical=x4;exports.getPreLine=b_;exports.getRotateOffsetAndFarthestHypotenuse=W6;exports.getRotateOrientation=d4;exports.getScale=G1;exports.getSizeForDom=c4;exports.getSpanGroupWidth=M4;exports.getTranslateInSpreadContextWithPixelRatio=i_;exports.getValueType=P1;exports.hasAllLatin=zh;exports.hasArabic=$6;exports.hasBasicLatin=Wh;exports.hasCJK=t6;exports.hasCJKText=W2;exports.hasLatinExtendedA=jh;exports.hasLatinExtendedB=Uh;exports.hasLatinOneSupplement=Yh;exports.hasListSpan=Zh;exports.hasMixedTextLayout=N4;exports.hasSpace=n4;exports.hasTibetan=k6;exports.hasUnMergedCellInRow=i4;exports.injectStyle=o4;exports.isArray=Ph;exports.isBlankColumn=O4;exports.isBlankPage=y_;exports.isColumnFull=F4;exports.isDate=Lh;exports.isFirstSpan=e_;exports.isFunction=Q2;exports.isIndentBySpan=Qh;exports.isLastSpan=t_;exports.isNumber=$h;exports.isObject=kh;exports.isPlaceholderOrSpace=n_;exports.isRectIntersect=r4;exports.isRegExp=Ih;exports.isSameLine=s_;exports.isString=v6;exports.isSupportBoundingBox=Nh;exports.lineIterator=B4;exports.mergeInfoOffset=C6;exports.otherHandler=H4;exports.precisionTo=z2;exports.ptToMM=qh;exports.ptToPx=Gh;exports.pxToInch=Jh;exports.pxToNum=H1;exports.pxToPt=Kh;exports.radToDeg=Z7;exports.reCalculateLineDivide=F_;exports.requestNewFrame=S2;exports.setColumnFullState=q6;exports.setDivideFullState=U4;exports.setLineMarginBottom=R_;exports.setLineType=X6;exports.setSpanGroupLeft=k4;exports.setSpanLeft=w_;exports.spanIterator=O_;exports.startWithEmoji=e4;exports.toPx=A1;exports.updateBlockIndex=j2;exports.updateDivideInLine=x_;exports.validationGrid=U6;
|
|
73
|
+
`])}_getNodePosition(t){var c;if(t==null)return;const{node:e,ratioX:s}=t,i=(c=this._docSkeleton)==null?void 0:c.findPositionBySpan(e);if(i==null)return;const a=s<.5;return{...i,isBack:a}}_interactTextRange(t){const e=[];let s=!1;this._rangeList.forEach(i=>{if(i===t)return!0;t.isIntersection(i)?(s=!0,i.dispose()):e.push(i)}),s&&(e.push(t),this._rangeList=e)}_removeAllTextRanges(){this._rangeList.forEach(t=>{t.dispose()}),this._rangeList=[]}_deactivateAllTextRanges(){this._rangeList.forEach(t=>{t.deactivate()})}_addTextRange(t){this._deactivateAllTextRanges(),t.activate(),this._rangeList.push(t)}_updateTextRangePosition(t){if(!this._scene)return;let e=this._rangeList.pop();e||(e=new V2(this._scene,this._document.getOffsetConfig(),this._docSkeleton,t)),this._removeAllTextRanges(),e.activate(),e.anchorNodePosition=t,e.focusNodePosition=null,this._rangeList=[e]}_isEmpty(){return this._rangeList.length===0}_getCanvasOffset(){var e;const t=(e=this._scene)==null?void 0:e.getEngine();return vt(t)}_scrollToSelection(){var y;const t=this._getActiveRangeInstance(),e=t==null?void 0:t.getAnchor();if(!e||e&&!e.visible||this._activeViewport==null)return;const{scaleX:s,scaleY:i}=((y=this._scene)==null?void 0:y.getAncestorScale())||{scaleX:1,scaleY:1},{left:o,top:a,height:c,width:l}=e,{left:u,top:h,right:g,bottom:p}=this._activeViewport.getBounding().viewBound,b=l/s,v=c/i;let m=0,S=0;a<h?m=a-h:a>p-v&&(m=a-p+v),o<u?S=o-u:o>g-b&&(S=o-g+b);const E=this._activeViewport.getBarScroll(S,m);this._activeViewport.scrollBy(E)}_updateDomCursorPositionAndSize(){var p;const t=this._getActiveRangeInstance(),e=t==null?void 0:t.getAnchor();if(!e||e&&!e.visible||this._activeViewport==null){this.focus();return}const{height:s,left:i,top:o}=e,a=this._activeViewport.getAbsoluteVector(R.FromArray([i,o])),{scaleY:c}=((p=this._scene)==null?void 0:p.getAncestorScale())||{scaleX:1,scaleY:1},{x:l,y:u}=a;this._cursor.style.height=`${s*c}px`;let{left:h,top:g}=this._getCanvasOffset();h+=l,g+=u,this.activate(h,g)}_moving(t,e,s){if(this._docSkeleton==null)return;const i=this._findNodeByCoord(t,e),o=this._getNodePosition(i);if(!o)return;const a=this._getActiveRangeInstance();a&&(a.focusNodePosition=o,a.refresh(),this.deactivate(),this._interactTextRange(a))}_attachScrollEvent(t){if(t==null)return;const e=t.viewPortKey;if(this._viewPortObserverMap.has(e))return;const s=t.onScrollBeforeObserver.add(o=>{if(!o.viewport)return;const c=this._getActiveRangeInstance();c==null||c.activeStatic(),this._cursor.style.display="none"}),i=t.onScrollStopObserver.add(o=>{const a=o.viewport;if(!a)return;const c=a.getBounding(),l=this._getActiveRangeInstance(),u=l==null?void 0:l.getAnchor();if(!(!u||u&&!u.visible)){if(c){const{left:h,top:g,right:p,bottom:b}=c.viewBound;if(u.left<h||u.left>p||u.top<g||u.top>b){l==null||l.deactivateStatic();return}}this._updateDomCursorPositionAndSize(),l==null||l.deactivateStatic(),this._cursor.style.display="revert"}});this._viewPortObserverMap.set(e,{scrollBefore:s,scrollStop:i})}_initInputEvents(){this._input.addEventListener("keydown",t=>{this._isIMEInputApply||this._eventHandle(t,e=>{this._onKeydown$.next(e)})}),this._input.addEventListener("input",t=>{this._isIMEInputApply||this._eventHandle(t,e=>{this._onInputBefore$.next(e),this._onInput$.next(e)})}),this._input.addEventListener("compositionstart",t=>{this._isIMEInputApply=!0,this._eventHandle(t,e=>{this._onCompositionstart$.next(e)})}),this._input.addEventListener("compositionend",t=>{this._isIMEInputApply=!1,this._eventHandle(t,e=>{this._onCompositionend$.next(e)})}),this._input.addEventListener("compositionupdate",t=>{this._eventHandle(t,e=>{this._onInputBefore$.next(e),this._onCompositionupdate$.next(e)})}),this._input.addEventListener("paste",t=>{this._eventHandle(t,e=>{this._onPaste$.next(e)})})}_eventHandle(t,e){const s=this._input.textContent||"";this._input.innerHTML="";const i=this._getActiveRange(),o=this._getAllTextRanges();e({event:t,content:s,activeRange:i,rangeList:o})}_getTransformCoordForDocumentOffset(t,e){const{documentTransform:s}=this._document.getOffsetConfig();if(this._activeViewport==null||s==null)return;const i=this._activeViewport.getRelativeVector(R.FromArray([t,e]));if(i)return s.clone().invert().applyPoint(i)}_findNodeByCoord(t,e){var c;const s=this._getTransformCoordForDocumentOffset(t,e);if(s==null)return;const{pageLayoutType:i=y1.VERTICAL,pageMarginLeft:o,pageMarginTop:a}=this._document.getOffsetConfig();return(c=this._docSkeleton)==null?void 0:c.findNodeByCoord(s,i,o,a)}_detachEvent(){this._onInputBefore$.complete(),this._onKeydown$.complete(),this._onInput$.complete(),this._onCompositionstart$.complete(),this._onCompositionupdate$.complete(),this._onCompositionend$.complete(),this._onSelectionStart$.complete()}_activeSelectionRefresh(){if(this._docSkeleton==null)return;const t=this._getActiveRangeInstance();t==null||t.refresh()}}const gf=n2.createIdentifier("univer.doc.text-selection-render-manager");class Df{}class i7 extends W6{constructor(n,t){super(n),this._skeleton=t}getSkeleton(){return this._skeleton}updateSkeleton(n){this._skeleton=n}render(n,t){if(!this.visible)return this.makeDirty(!1),this;n.save(),this._draw(n,t),n.restore()}getParentScale(){let{scaleX:n=1,scaleY:t=1}=this.parent;return this.parent.classType===N.SCENE_VIEWER&&(n=this.parent.ancestorScaleX||1,t=this.parent.ancestorScaleY||1),{scaleX:n,scaleY:t}}getDocuments(){}getNoMergeCellPositionByIndex(n,t){}getScrollXYByRelativeCoords(n){return{x:0,y:0}}getSelectionBounding(n,t,e,s){}_draw(n,t){}}class r7 extends i7{_draw(n,t){this.draw(n,t)}}class pf extends r7{constructor(t,e){super(t,e);_(this,"_columnHeaderLayoutExtension");this._initialDefaultExtension(),this.makeDirty(!0)}get columnHeaderLayoutExtension(){return this._columnHeaderLayoutExtension}draw(t,e){const s=this.getSkeleton();if(!s)return;const i=this.getParentScale();s.calculateSegment(e);const o=s.rowColumnSegment;if(o.startColumn===-1&&o.endColumn===-1)return;const a=V1(i),{rowHeaderWidth:c}=s;t.translate(X(c,a),0);const l=this.getExtensionsByOrder();for(const u of l)u.draw(t,i,s)}isHit(t){const e=this._getInverseCoord(t),s=this.getSkeleton();if(!s)return!1;const{rowHeaderWidth:i,columnHeaderHeight:o}=s;return e.x>i&&e.y>=0&&e.y<=o}_initialDefaultExtension(){s7.getData().forEach(t=>{this.register(t)}),this._columnHeaderLayoutExtension=this.getExtensionByKey("DefaultColumnHeaderLayoutExtension")}}var Ct=(r=>(r[r.GRID=0]="GRID",r))(Ct||{});class _2 extends e7{constructor(){super(...arguments);_(this,"type",0)}getCellIndex(t,e,s,i,o){return s2(t,e,s,i,o)}isRenderDiffRangesByCell(t,e,s){if(s==null||s.length===0)return!0;for(const i of s){const{startRow:o,startColumn:a,endRow:c,endColumn:l}=i;if(t>=o&&t<=c&&e>=a&&e<=l)return!0}return!1}isRenderDiffRangesByColumn(t,e){if(e==null||e.length===0)return!0;for(const s of e){const{startColumn:i,endColumn:o}=s;if(t>=i&&t<=o)return!0}return!1}isRenderDiffRangesByRow(t,e){if(e==null||e.length===0)return!0;for(const s of e){const{startRow:i,endRow:o}=s;if(t>=i&&t<=o)return!0}return!1}}const mf="DefaultBackgroundExtension",bf=50;class St extends _2{constructor(){super(...arguments);_(this,"uKey",mf);_(this,"zIndex",bf)}draw(t,e,s,i){const{dataMergeCache:o,stylesCache:a}=s,{background:c,backgroundPositions:l}=a;if(!s)return;const{rowHeightAccumulation:u,columnTotalWidth:h,columnWidthAccumulation:g,rowTotalHeight:p}=s;if(!u||!g||h===void 0||p===void 0)return;t.save();const{a:b=1,d:v=1}=t.getTransform(),m=this._getScale({scaleX:b,scaleY:v});t.globalCompositeOperation="destination-over",c&&Object.keys(c).forEach(S=>{const E=c[S];t.fillStyle=S||c1([255,255,255]),t.beginPath(),E.forValue((y,T)=>{const O=l==null?void 0:l.getValue(y,T);if(O==null)return!0;let{startY:F,endY:w,startX:B,endX:A}=O;const{isMerged:x,isMergedMainCell:M,mergeInfo:k}=O;if(x||!this.isRenderDiffRangesByRow(k.startRow,i)&&!this.isRenderDiffRangesByRow(k.endRow,i))return!0;M&&(F=k.startY,w=k.endY,B=k.startX,A=k.endX),F=X(F,m),w=X(w,m),B=X(B,m),A=X(A,m),t.moveTo(B,F),t.lineTo(B,w),t.lineTo(A,w),t.lineTo(A,F)}),t.closePath(),t.fill()}),t.restore()}}R2.add(new St);const vf="DefaultBorderExtension",Cf=30;class Et extends _2{constructor(){super(...arguments);_(this,"uKey",vf);_(this,"zIndex",Cf)}draw(t,e,s,i){const{dataMergeCache:o,stylesCache:a,overflowCache:c}=s,{border:l}=a;if(!s)return;const{rowHeightAccumulation:u,columnTotalWidth:h,columnWidthAccumulation:g,rowTotalHeight:p}=s;if(!u||!g||h===void 0||p===void 0)return;t.save();const{a:b=1,d:v=1}=t.getTransform(),m=this._getScale({scaleX:b,scaleY:v});let S,E;t.translate(g1/m,g1/m),l==null||l.forValue((y,T,O)=>{if(!O)return!0;const F=this.getCellIndex(y,T,u,g,o);let{startY:w,endY:B,startX:A,endX:x}=F;const{isMerged:M,isMergedMainCell:k,mergeInfo:I}=F;if(M||(k&&(w=I.startY,B=I.endY,A=I.startX,x=I.endX),w=X(w,m),B=X(B,m),A=X(A,m),x=X(x,m),!this.isRenderDiffRangesByRow(I.startRow,i)&&!this.isRenderDiffRangesByRow(I.endRow,i)))return!0;for(const H in O){const{type:P,style:z,color:$}=O[H];z!==S&&(H6(t,z),t.lineWidth=X6(z)/m,S=z),$!==E&&(t.strokeStyle=$||Y1,E=$),u4(t,P,{startX:A,startY:w,endX:x,endY:B}),!this._getOverflowExclusion(c,P,y,T)&&N6(t,P,{startX:A,startY:w,endX:x,endY:B})}}),t.closePath(),t.restore()}_getOverflowExclusion(t,e,s,i){let o=!1;return e===J.TOP||e===J.BOTTOM||t==null||t.forRow((a,c)=>{if(a!==s)return!0;c.forEach(l=>{const u=t.getValue(a,l),{startColumn:h,endColumn:g}=u;if(e===J.LEFT&&i>h&&i<=g||e===J.RIGHT&&i>=h&&i<g)return o=!0,!1})}),o}}R2.add(new Et);const Sf="DefaultColumnHeaderLayoutExtension";class yt extends _2{constructor(){super(...arguments);_(this,"uKey",Sf);_(this,"zIndex",10)}draw(t,e,s){const{rowColumnSegment:i,columnHeaderHeight:o=0}=s,{startColumn:a,endColumn:c}=i;if(!s)return;const{rowHeightAccumulation:l,columnTotalWidth:u,columnWidthAccumulation:h,rowTotalHeight:g}=s;if(!l||!h||u===void 0||g===void 0)return;const{a:p=1,d:b=1}=t.getTransform(),v=this._getScale({scaleX:p,scaleY:b});t.fillStyle=c1([248,249,250]),t.fillRect(0,0,u,o),t.textAlign="center",t.textBaseline="middle",t.fillStyle=c1([0,0,0]),t.beginPath(),t.lineWidth=1/v,t.translate(g1/v,g1/v),t.strokeStyle=c1([217,217,217]),t.font=`13px ${J2}`;let m=0;const S=h.length;for(let y=a-1;y<=c;y++){if(y<0||y>S-1)continue;const T=h[y];if(m===T)continue;t.moveTo(X(T,v),0),t.lineTo(X(T,v),o);const O=m+(T-m)/2;t.fillText(f.numberToABC(y),O,o/2+R6),m=T}const E=o-1/v;t.moveTo(0,X(E,v)),t.lineTo(u,X(E,v)),t.stroke()}}s7.add(new yt);const Ef="DefaultFontExtension",yf=40;class Tt extends _2{constructor(){super(...arguments);_(this,"uKey",Ef);_(this,"zIndex",yf);_(this,"changeFontColor",new f.ObjectMatrix)}getDocuments(){const t=this.parent;return t==null?void 0:t.getDocuments()}setChangeFontColor(t,e,s){this.changeFontColor.setValue(t,e,s)}draw(t,e,s,i){const{stylesCache:o,dataMergeCache:a,overflowCache:c}=s,{font:l}=o;if(!s)return;const{rowHeightAccumulation:u,columnTotalWidth:h,columnWidthAccumulation:g,rowTotalHeight:p}=s;if(!u||!g||h===void 0||p===void 0)return;t.save();const{a:b=1,d:v=1}=t.getTransform(),m=this._getScale({scaleX:b,scaleY:v});l&&Object.keys(l).forEach(S=>{l[S].forValue((y,T,O)=>{const F=this.getCellIndex(y,T,u,g,a);let{startY:w,endY:B,startX:A,endX:x}=F;const{isMerged:M,isMergedMainCell:k,mergeInfo:I}=F;if(M||(k&&(w=I.startY,B=I.endY,A=I.startX,x=I.endX),w=X(w,m),B=X(B,m),A=X(A,m),x=X(x,m),!this.isRenderDiffRangesByRow(I.startRow,i)&&!this.isRenderDiffRangesByRow(I.endRow,i))||!this.isRenderDiffRangesByColumn(I.startColumn,i)&&!this.isRenderDiffRangesByColumn(I.endColumn,i))return!0;const H=x-A,P=B-w,z=c.getValue(y,T),{horizontalAlign:$}=O;if(t.save(),t.beginPath(),z){const{startColumn:W,startRow:j,endColumn:G,endRow:Y}=z;W===G&&W===T?(t.rect(A+1/m,w+1/m,H-2/m,P-2/m),t.clip()):$===f.HorizontalAlign.CENTER?this._clipRectangle(t,j,Y,W,G,m,u,g):$===f.HorizontalAlign.RIGHT?this._clipRectangle(t,j,y,W,T,m,u,g):this._clipRectangle(t,y,Y,T,G,m,u,g)}else t.rect(A+1/m,w+1/m,H-2/m,P-2/m),t.clip();t.translate(A,w),this._renderDocuments(t,O,A,w,x,B,y,T),t.restore()})}),t.restore()}_renderDocuments(t,e,s,i,o,a,c,l){const u=this.getDocuments();if(u==null)throw new Error("documents is null");const{documentSkeleton:h,angle:g,wrapStrategy:p}=e,b=o-s,v=a-i;p===f.WrapStrategy.WRAP&&g===0?(h.getViewModel().getDataModel().updateDocumentDataPageSize(b),h.calculate()):h.getViewModel().getDataModel().updateDocumentDataPageSize(1/0),h.makeDirty(!1),u.resize(b,v),u.changeSkeleton(h).render(t)}_clipRectangle(t,e,s,i,o,a,c,l){const u=X(c[e-1]||0,a),h=X(c[s]||c[c.length-1],a),g=X(l[i-1]||0,a),p=X(l[o]||l[l.length-1],a);t.rect(g,u,p-g,h-u),t.clip(),t.clearRect(g,u,p-g,h-u)}}R2.add(new Tt);const Tf="DefaultRowHeaderLayoutExtension";class Ft extends _2{constructor(){super(...arguments);_(this,"uKey",Tf);_(this,"zIndex",10)}draw(t,e,s){const{rowColumnSegment:i,rowHeaderWidth:o=0,columnHeaderHeight:a=0}=s,{startRow:c,endRow:l,startColumn:u,endColumn:h}=i;if(!s)return;const{rowHeightAccumulation:g,columnTotalWidth:p,columnWidthAccumulation:b,rowTotalHeight:v}=s;if(!g||!b||p===void 0||v===void 0)return;const{a:m=1,d:S=1}=t.getTransform(),E=this._getScale({scaleX:m,scaleY:S});t.fillStyle=c1([248,249,250]),t.fillRect(0,0,o,v),t.textAlign="center",t.textBaseline="middle",t.fillStyle=c1([0,0,0]),t.beginPath(),t.lineWidth=1/E,t.translate(g1/E,g1/E),t.strokeStyle=c1([217,217,217]),t.font=`13px ${J2}`;let y=0;const T=g.length;for(let F=c-1;F<=l;F++){if(F<0||F>T-1)continue;const w=g[F];if(y===w)continue;t.moveTo(0,X(w,E)),t.lineTo(o,X(w,E));const B=y+(w-y)/2;t.fillText(`${F+1}`,o/2,B+R6),y=w}const O=o-1/E;t.moveTo(X(O,E),0),t.lineTo(X(O,E),v),t.stroke()}}n7.add(new Ft);var Ot=(r=>(r[r.OFF=0]="OFF",r[r.ON=1]="ON",r))(Ot||{});class Ff extends r7{constructor(t,e){super(t,e);_(this,"_rowHeaderLayoutExtension");this._initialDefaultExtension(),this.makeDirty(!0)}get rowHeaderLayoutExtension(){return this._rowHeaderLayoutExtension}draw(t,e){const s=this.getSkeleton();if(!s)return;const i=this.getParentScale();s.calculateSegment(e);const o=s.rowColumnSegment;if(o.startRow===-1&&o.endRow===-1)return;const a=V1(i),{columnHeaderHeight:c}=s;t.translate(0,X(c,a));const l=this.getExtensionsByOrder();for(const u of l)u.draw(t,i,s)}isHit(t){const e=this._getInverseCoord(t),s=this.getSkeleton();if(!s)return!1;const{rowHeaderWidth:i,columnHeaderHeight:o}=s;return e.x>=0&&e.x<=i&&e.y>o}_initialDefaultExtension(){n7.getData().forEach(t=>{this.register(t)}),this._rowHeaderLayoutExtension=this.getExtensionByKey("DefaultRowHeaderLayoutExtension")}}class w1{constructor(n,t){_(this,"children",[]);_(this,"parent");_(this,"startIndex",-1);_(this,"endIndex",-1);_(this,"blocks",[]);this.nodeType=n,this.content=t}static create(n,t){return new w1(n,t)}dispose(){this.children.forEach(n=>{n.dispose()}),this.parent=null,this.blocks=[]}getProps(){const{children:n,parent:t,startIndex:e,endIndex:s,nodeType:i,content:o}=this;return{children:n,parent:t,startIndex:e,endIndex:s,nodeType:i,content:o}}addBlocks(n){this.blocks=this.blocks.concat(n)}setIndexRange(n,t){this.startIndex=n,this.endIndex=t}insertText(n,t){this.content=f.insertTextToContent(this.content||"",t-this.startIndex,n)}exclude(n){const{startIndex:t,endIndex:e}=this;return n<t||n>e}plus(n){this.startIndex+=n,this.endIndex+=n,this._addIndexForBlock(n)}selfPlus(n,t){this.endIndex+=n,t==null&&(t=this.startIndex),this._addIndexForBlock(n,t)}split(n){const{children:t,parent:e,startIndex:s,nodeType:i,content:o=""}=this.getProps();if(this.exclude(n))return;const a=0,c=n-s,l=c,u=o.slice(a,c),h=w1.create(i,u);h.parent=e,h.setIndexRange(a,c-1);const g=o.slice(l),p=w1.create(i,g);p.parent=e,p.setIndexRange(l,l+g.length-1);const b=[],v=[];for(const m of t){const{startIndex:S}=m;if(m.exclude(n))n<S?b.push(m):v.push(m);else{const E=m.split(n);if(E==null){b.push(m);continue}const{firstNode:y,lastNode:T}=E;b.push(y),b.push(T)}}return h.children=b,p.children=v,h._resetBlocks(),p._resetBlocks(),{firstNode:h,lastNode:p}}getPositionInParent(){var t;const n=(t=this.parent)==null?void 0:t.children.indexOf(this);return n??-1}remove(){this.children=[],this.parent!=null&&(this.parent.children.splice(this.getPositionInParent(),1),this.parent=null)}minus(n,t){const e=f.horizontalLineSegmentsSubtraction(this.startIndex,this.endIndex,n,t);if(e.length===0)return;const s=this.startIndex;this.startIndex=e[0],this.endIndex=e[1],this.content!=null&&(this.content=f.deleteContent(this.content||"",n-s,t-s+1))}merge(n){const{startIndex:t,endIndex:e,children:s}=n;this.endIndex+=e-t+1,this.children.push(...s),this.content+=n.content||"",n.remove()}_addIndexForBlock(n,t=-1/0){for(let e=0,s=this.blocks.length;e<s;e++){const i=this.blocks[e];i>=t&&(this.blocks[e]=i+n)}}_resetBlocks(){if(this.nodeType===f.DataStreamTreeNodeType.PARAGRAPH&&this.content!=null&&this.content.length!==0){this.blocks=[];for(let n=0,t=this.content.length;n<t;n++)this.content[n]===f.DataStreamTreeTokenType.CUSTOM_BLOCK&&this.blocks.push(this.startIndex+n)}}}class L1{constructor(n){_(this,"children",[]);_(this,"_sectionBreakCurrentIndex",0);_(this,"_paragraphCurrentIndex",0);_(this,"_textRunCurrentIndex",0);_(this,"_customBlockCurrentIndex",0);_(this,"_tableBlockCurrentIndex",0);_(this,"_customRangeCurrentIndex",0);_(this,"headerTreeMap",new Map);_(this,"footerTreeMap",new Map);this._documentDataModel=n,n.getBody()!=null&&(this.children=this._transformToTree(n.getBody().dataStream),this._buildHeaderFooterViewModel())}dispose(){this.children.forEach(n=>{n.dispose()})}selfPlus(n,t){}getPositionInParent(){return 0}getLastIndex(){return this.children[this.children.length-1].endIndex}getBody(){return this._documentDataModel.getBody()}getDataModel(){return this._documentDataModel}getSelfOrHeaderFooterViewModel(n){return n==null?this:this.headerTreeMap.has(n)?this.headerTreeMap.get(n):this.footerTreeMap.has(n)?this.footerTreeMap.get(n):this}reset(n){this._documentDataModel=n,this.children=this._transformToTree(n.getBody().dataStream),this._buildHeaderFooterViewModel()}insert(n,t=0){var o;const e=n.dataStream;let s=e.length;const i=this._getParagraphByIndex(this.children,t);if(i!=null)if(e[s-1]===f.DataStreamTreeTokenType.SECTION_BREAK){const a=new f.DocumentDataModel({body:n}),c=new L1(a);s-=1;const l=c.children;for(const p of l)this._forEachDown(p,b=>{b.plus(t)});const u=i.split(t);if(u==null)return;const{firstNode:h,lastNode:g}=u;(o=i.parent)==null||o.children.splice(i.getPositionInParent(),1,h,...l,g),this._forEachTop(i.parent,p=>{p.selfPlus(s,p.getPositionInParent());const b=p.children;let v=!1;for(const m of b)m===g&&(v=!0),v&&this._forEachDown(m,S=>{S.plus(s)})})}else s===1&&e[s-1]===f.DataStreamTreeTokenType.PARAGRAPH?this._insertParagraph(i,t):(i.insertText(e,t),i.selfPlus(s,t),this._forEachTop(i.parent,a=>{a.selfPlus(s,a.getPositionInParent());const c=a.children;let l=!1;for(const u of c)u.startIndex>t&&(l=!0),l&&this._forEachDown(u,h=>{h.plus(s)})}))}delete(n,t){const e=this.children;this._deleteTree(e,n,t)}getText(){const n=[];function t(e){e.content&&n.push(e.content),e.children.forEach(t)}return this.children.forEach(e=>t(e)),n.join("")}resetCache(){this._sectionBreakCurrentIndex=0,this._paragraphCurrentIndex=0,this._textRunCurrentIndex=0,this._customBlockCurrentIndex=0,this._tableBlockCurrentIndex=0,this._customRangeCurrentIndex=0}getSectionBreak(n){if(n==null)return;const t=this.getBody().sectionBreaks;if(t!=null)for(let e=this._sectionBreakCurrentIndex;e<t.length;e++){const s=t[e];if(s.startIndex===n)return this._sectionBreakCurrentIndex=e,s}}getParagraph(n){const t=this.getBody().paragraphs;if(t!=null)for(let e=this._paragraphCurrentIndex;e<t.length;e++){const s=t[e];if(s.startIndex===n)return this._paragraphCurrentIndex=e,s}}getTextRunRange(n=0,t){const e=this.getBody().textRuns;if(e==null)return[{st:n,ed:t}];const s=[];for(let a=this._textRunCurrentIndex,c=e.length;a<c;a++){const l=e[a];if(l.st>t){this._textRunCurrentIndex=a;break}else if(l.ed<n){this._textRunCurrentIndex=a;continue}else s.push({st:l.st<n?n:l.st,ed:l.ed>t?t:l.ed,sId:l.sId,ts:l.ts}),this._textRunCurrentIndex=a}const i=s[0]||{st:t+1};i.st>n&&s.push({st:n,ed:i.st-1});const o=s[s.length-1]||{ed:n-1};return o.ed<t&&s.push({st:o.ed+1,ed:t}),s}getTextRun(n){const t=this.getBody().textRuns;if(t==null)return;const e=t[this._textRunCurrentIndex];if(e!=null){if(n>=e.st&&n<e.ed)return e;if(n<e.st)return}for(let s=this._textRunCurrentIndex,i=t.length;s<i;s++){const o=t[s];if(n>=o.st&&n<o.ed)return this._textRunCurrentIndex=s,o}}getCustomBlock(n){const t=this.getBody().customBlocks;if(t!=null)for(let e=this._customBlockCurrentIndex;e<t.length;e++){const s=t[e];if(s.startIndex===n)return this._customBlockCurrentIndex=e,s}}getTable(n){const t=this.getBody().tables;if(t!=null)for(let e=this._tableBlockCurrentIndex;e<t.length;e++){const s=t[e];if(s.startIndex===n)return this._tableBlockCurrentIndex=e,s}}getCustomRange(n){const t=this.getBody().customRanges;if(t!=null)for(let e=0,s=t.length;e<s;e++){const i=t[e];if(n>=i.startIndex&&n<=i.endIndex)return i}}_transformToTree(n){const t=n.length;let e="";const s=[];let i=[],o=[];for(let a=0;a<t;a++){const c=n[a];if(c===f.DataStreamTreeTokenType.PARAGRAPH){e+=f.DataStreamTreeTokenType.PARAGRAPH;const l=w1.create(f.DataStreamTreeNodeType.PARAGRAPH,e);l.setIndexRange(a-e.length+1,a),l.addBlocks(o),i.push(l),e="",o=[]}else if(c===f.DataStreamTreeTokenType.SECTION_BREAK){const l=w1.create(f.DataStreamTreeNodeType.SECTION_BREAK);this._batchParent(l,i);const u=i[i.length-1];u&&u.content&&(u.content+=f.DataStreamTreeTokenType.SECTION_BREAK),s.push(l),i=[]}else c===f.DataStreamTreeTokenType.TABLE_START?i.push(w1.create(f.DataStreamTreeNodeType.TABLE)):c===f.DataStreamTreeTokenType.TABLE_ROW_START?i.push(w1.create(f.DataStreamTreeNodeType.TABLE_ROW)):c===f.DataStreamTreeTokenType.TABLE_CELL_START?i.push(w1.create(f.DataStreamTreeNodeType.TABLE_CELL)):c===f.DataStreamTreeTokenType.TABLE_END?this._processPreviousNodesUntil(i,f.DataStreamTreeNodeType.TABLE):c===f.DataStreamTreeTokenType.TABLE_ROW_END?this._processPreviousNodesUntil(i,f.DataStreamTreeNodeType.TABLE_ROW):c===f.DataStreamTreeTokenType.TABLE_CELL_END?this._processPreviousNodesUntil(i,f.DataStreamTreeNodeType.TABLE_CELL):(c===f.DataStreamTreeTokenType.CUSTOM_BLOCK&&o.push(a),e+=c)}return s}_processPreviousNodesUntil(n,t){const e=[];let s=n.pop();for(;s&&s.nodeType!==t;)e.push(s),s=n.pop();const i=n[n.length-1];if(this._batchParent(i,e,f.DataStreamTreeNodeType.TABLE),t===f.DataStreamTreeNodeType.TABLE_CELL){const o=e[0],a=e[e.length];o.content=f.DataStreamTreeTokenType.TABLE_CELL_START+o.content||"",o.startIndex-=1,a.content+=f.DataStreamTreeTokenType.TABLE_CELL_END,a.endIndex+=1}else if(t===f.DataStreamTreeNodeType.TABLE_ROW){const o=e[0].children[0];let a=e[e.length];a=a.children[a.children.length-1],o.content=f.DataStreamTreeTokenType.TABLE_ROW_START+o.content||"",o.startIndex-=1,a.content+=f.DataStreamTreeTokenType.TABLE_ROW_END,a.endIndex+=1}else if(t===f.DataStreamTreeNodeType.TABLE){const o=e[0].children[0].children[0];let a=e[e.length];a=a.children[a.children.length-1],a=a.children[a.children.length-1],o.content=f.DataStreamTreeTokenType.TABLE_START+o.content||"",o.startIndex-=1,a.content+=f.DataStreamTreeTokenType.TABLE_END,a.endIndex+=1}}_batchParent(n,t,e=f.DataStreamTreeNodeType.SECTION_BREAK){for(const i of t)i.parent=n,n.children.push(i);const s=e===f.DataStreamTreeNodeType.SECTION_BREAK?0:1;n.setIndexRange(t[0].startIndex-s,t[t.length-1].endIndex+1)}_buildHeaderFooterViewModel(){const{headerModelMap:n,footerModelMap:t}=this._documentDataModel;for(const[e,s]of n)this.headerTreeMap.set(e,new L1(s));for(const[e,s]of t)this.footerTreeMap.set(e,new L1(s))}_getParagraphByIndex(n,t){for(const e of n){const{children:s}=e;if(!e.exclude(t))return e.nodeType===f.DataStreamTreeNodeType.PARAGRAPH?e:this._getParagraphByIndex(s,t)}return null}_forEachTop(n,t){let e=n;for(;e;)t(e),e=e.parent;t(this)}_forEachDown(n,t){t(n);const e=n.children;for(n of e)this._forEachDown(n,t)}_deleteTree(n,t,e){const s=t,i=t+e-1;let o=null,a=n.length,c=0;for(;c<a;){const l=n[c],{startIndex:u,endIndex:h,children:g}=l;if(this._deleteTree(g,t,e),s===i&&i===h){if(l.nodeType===f.DataStreamTreeNodeType.PARAGRAPH){const p=this._getNextNode(l);if(p==null){c++;continue}l.minus(s,i),l.merge(p),a--}}else if(s<=u&&i>=h){l.remove(),a--;continue}else if(u<=s&&h>=i)l.minus(s,i);else if(i>u&&i<h){if(l.minus(u,i),o!=null){o.merge(l),o=null,a--;continue}}else s>u&&s<h?(l.minus(s,h),o=l):u>i&&l.plus(-e);c++}}_getNextNode(n){var s;const t=n.getPositionInParent(),e=(s=n.parent)==null?void 0:s.children;return e==null?void 0:e[t+1]}_insertParagraph(n,t=0){var c;const e=n.startIndex,s=n.endIndex,i=n.split(t);if(i==null)return;const{firstNode:o,lastNode:a}=i;o.content+=f.DataStreamTreeTokenType.PARAGRAPH,o.selfPlus(1),o.plus(e),this._forEachDown(a,l=>{l.plus(e+1)}),(c=n.parent)==null||c.children.splice(n.getPositionInParent(),1,o,a),this._forEachTop(n.parent,l=>{l.selfPlus(1,l.getPositionInParent());const u=l.children;let h=!1;for(const g of u)g!==a&&(g.startIndex>=s+1&&(h=!0),h&&this._forEachDown(g,p=>{p.plus(1)}))})}}function G2(r,n=0){const t=r==null?void 0:r.getSkeletonData(),e=x1(n);if(!t)return;const{pages:s}=t,i=s[s.length-1];if(e===0){const{width:u,height:h}=i;return{width:u,height:h}}let o=0,a=0;const c=[];R4([i],u=>{const{lines:h,width:g,spaceWidth:p}=u,{rotatedHeight:b,rotatedWidth:v}=z6(h,g,e);a+=b,c.push({rotatedWidth:v,spaceWidth:p})});const l=c.length;for(let u=0;u<l;u++){const{rotatedWidth:h}=c[u];u===0&&(o+=h)}return{width:o,height:a}}const Q1=90,N7={t:0,b:0,l:2,r:2};class o7 extends exports.Skeleton{constructor(t,e,s,i,o){super(o);_(this,"_rowHeightAccumulation",[]);_(this,"_rowTotalHeight",0);_(this,"_columnWidthAccumulation",[]);_(this,"_columnTotalWidth",0);_(this,"_rowHeaderWidth",0);_(this,"_columnHeaderHeight",0);_(this,"_rowColumnSegment",{startRow:-1,endRow:-1,startColumn:-1,endColumn:-1});_(this,"_dataMergeCache",[]);_(this,"_overflowCache",new f.ObjectMatrix);_(this,"_stylesCache",{background:{},backgroundPositions:new f.ObjectMatrix,font:{},border:new f.ObjectMatrix});_(this,"_renderedCellCache",new f.ObjectMatrix);_(this,"_showGridlines",f.BooleanNumber.TRUE);_(this,"_marginTop",0);_(this,"_marginLeft",0);this._worksheet=t,this._config=e,this._cellData=s,this._styles=i,this.updateLayout()}get rowHeightAccumulation(){return this._rowHeightAccumulation}get rowTotalHeight(){return this._rowTotalHeight}get columnWidthAccumulation(){return this._columnWidthAccumulation}get columnTotalWidth(){return this._columnTotalWidth}get rowHeaderWidth(){return this._rowHeaderWidth}get columnHeaderHeight(){return this._columnHeaderHeight}get rowColumnSegment(){return this._rowColumnSegment}get dataMergeCache(){return this._dataMergeCache}get stylesCache(){return this._stylesCache}get overflowCache(){return this._overflowCache}get showGridlines(){return this._showGridlines}get mergeData(){return this._config.mergeData}get rowHeaderWidthAndMarginLeft(){return this.rowHeaderWidth+this._marginLeft}get columnHeaderHeightAndMarginTop(){return this.columnHeaderHeight+this._marginTop}static create(t,e,s,i,o){return new o7(t,e,s,i,o)}getWorksheetConfig(){return this._config}getCellData(){return this._cellData}getsStyles(){return this._styles}setOverflowCache(t){this._overflowCache=t}setMarginLeft(t){this._marginLeft=t}setMarginTop(t){this._marginTop=t}calculateSegment(t){if(this._config&&(this.updateLayout(),!(!this._rowHeightAccumulation||!this._columnWidthAccumulation)))return t!=null&&(this._rowColumnSegment=this.getRowColumnSegment(t)),!0}calculateWithoutClearingCache(t){if(!this.calculateSegment(t))return;const{mergeData:e}=this._config;return this._dataMergeCache=e&&this._getMergeCells(e,this._rowColumnSegment),this._calculateStylesCache(),this}calculate(t){return this._resetCache(),this.calculateWithoutClearingCache(t),this}calculateAutoHeightInRange(t){var a;if(!f.Tools.isArray(t))return[];const e=[],{mergeData:s,rowData:i}=this._config,o=i;for(const c of t){const{startRow:l,endRow:u,startColumn:h,endColumn:g}=c;for(let p=l;p<=u;p++){if(e.some(({row:v})=>v===p)||((a=o[p])==null?void 0:a.isAutoHeight)===!1)continue;if(s4(p,h,g,s)){const v=this._calculateRowAutoHeight(p);e.push({row:p,autoHeight:v})}}}return e}_calculateRowAutoHeight(t){var u;const{columnCount:e,columnData:s,mergeData:i,defaultRowHeight:o}=this._config,a=s;let c=o;const l=this._worksheet;if(!l)return c;for(let h=0;h<e;h++){const{isMerged:g,isMergedMainCell:p}=t6(t,h,i);if(g||p)continue;const b=l.getCell(t,h),v=b&&this._getCellDocumentModel(b);if(v==null)continue;const{documentModel:m,textRotation:S,wrapStrategy:E}=v;if(m==null)continue;const y=new L1(m);let{a:T}=S;const{v:O=f.BooleanNumber.FALSE}=S;O===f.BooleanNumber.TRUE&&(T=Q1);const F=(u=a[h])==null?void 0:u.w;typeof F=="number"&&E===f.WrapStrategy.WRAP&&m.updateDocumentDataPageSize(F);const w=o2.create(y,this._localService);w.calculate();const{height:B=0}=G2(w,T)??{};c=Math.max(c,B)}return Math.min(c,V7)}updateLayout(){if(!this.dirty)return;const{rowData:t,columnData:e,defaultRowHeight:s,defaultColumnWidth:i,rowCount:o,columnCount:a,rowHeader:c,columnHeader:l,showGridlines:u}=this._config,{rowTotalHeight:h,rowHeightAccumulation:g}=this._generateRowMatrixCache(o,t,s),{columnTotalWidth:p,columnWidthAccumulation:b}=this._generateColumnMatrixCache(a,e,i);return this._rowHeaderWidth=c.hidden!==f.BooleanNumber.TRUE?c.width:0,this._columnHeaderHeight=l.hidden!==f.BooleanNumber.TRUE?l.height:0,this._rowTotalHeight=h,this._rowHeightAccumulation=g,this._columnTotalWidth=p,this._columnWidthAccumulation=b,this._showGridlines=u,this.makeDirty(!1),this}getRowColumnSegment(t){return this._getBounding(this._rowHeightAccumulation,this._columnWidthAccumulation,t==null?void 0:t.viewBound)}getRowColumnSegmentByViewBound(t){return this._getBounding(this._rowHeightAccumulation,this._columnWidthAccumulation,t)}getMergeBounding(t,e,s,i){const o=this._config.mergeData;if(!o)return{startRow:t,startColumn:e,endRow:s,endColumn:i};let a=!0;const c=new f.ObjectMatrix;for(;a;){a=!1;for(let l=0;l<o.length;l++){const{startRow:u,startColumn:h,endRow:g,endColumn:p}=o[l];if(c.getValue(u,h))continue;i4({left:e,top:t,right:i,bottom:s},{left:h,top:u,right:p,bottom:g})&&(t=Math.min(t,u),e=Math.min(e,h),s=Math.max(s,g),i=Math.max(i,p),c.setValue(u,h,!0),a=!0)}}return{startRow:t,startColumn:e,endRow:s,endColumn:i}}appendToOverflowCache(t,e,s,i){this._overflowCache.setValue(t,e,{startRow:t,endRow:t,startColumn:s,endColumn:i})}getColumnCount(){return this._columnWidthAccumulation.length}getRowCount(){return this._rowHeightAccumulation.length}getOverflowPosition(t,e,s,i,o){const{width:a}=t;let c=i,l=i;return e===f.HorizontalAlign.CENTER?(c=this._getOverflowBound(s,i,0,a/2,e),l=this._getOverflowBound(s,i,o-1,a/2,e)):e===f.HorizontalAlign.RIGHT?c=this._getOverflowBound(s,i,0,a):l=this._getOverflowBound(s,i,o-1,a),{startColumn:c,endColumn:l}}getNoMergeCellPositionByIndex(t,e,s,i){const{rowHeightAccumulation:o,columnWidthAccumulation:a,rowHeaderWidthAndMarginLeft:c,columnHeaderHeightAndMarginTop:l}=this;let{startY:u,endY:h,startX:g,endX:p}=X1(t,e,o,a);return u+=l,h+=l,g+=c,p+=c,{startY:u,endY:h,startX:g,endX:p}}getNoMergeCellPositionByIndexWithNoHeader(t,e,s,i){const{rowHeightAccumulation:o,columnWidthAccumulation:a}=this,{startY:c,endY:l,startX:u,endX:h}=X1(t,e,o,a);return{startY:c,endY:l,startX:u,endX:h}}calculateCellIndexByPosition(t,e,s,i,o){const{row:a,column:c}=this.getCellPositionByOffset(t,e,s,i,o);return this.getCellByIndex(a,c,s,i)}getCellPositionByOffset(t,e,s,i,o){const a=this.getRowPositionByOffsetY(e,i,o),c=this.getColumnPositionByOffsetX(t,s,o);return{row:a,column:c}}getColumnPositionByOffsetX(t,e,s){t=this.getTransformOffsetX(t,e,s);const{columnWidthAccumulation:i}=this;let o=f.searchArray(i,t);return o===1/0?o=i.length-1:o===-1&&(o=0),o}getRowPositionByOffsetY(t,e,s){const{rowHeightAccumulation:i}=this;t=this.getTransformOffsetY(t,e,s);let o=f.searchArray(i,t);return o===1/0?o=i.length-1:o===-1&&(o=0),o}getTransformOffsetX(t,e,s){const{x:i}=s;return t=t/e+i-this.rowHeaderWidthAndMarginLeft,t}getTransformOffsetY(t,e,s){const{y:i}=s;return t=t/e+i-this.columnHeaderHeightAndMarginTop,t}getOffsetByPositionX(t){const{columnWidthAccumulation:e,rowHeaderWidthAndMarginLeft:s}=this,i=e.length-1,o=e[t];return o!=null?o+s:t<0?s:e[i]+s}getOffsetByPositionY(t){const{rowHeightAccumulation:e,columnHeaderHeightAndMarginTop:s}=this,i=e.length-1,o=e[t];return o!=null?o+s:t<0?s:e[i]+s}getCellByIndex(t,e,s,i){const{rowHeightAccumulation:o,columnWidthAccumulation:a,rowHeaderWidthAndMarginLeft:c,columnHeaderHeightAndMarginTop:l}=this,u=s2(t,e,o,a,this._config.mergeData),{isMerged:h,isMergedMainCell:g}=u;let{startY:p,endY:b,startX:v,endX:m,mergeInfo:S}=u;return p+=l,b+=l,v+=c,m+=c,S=v6(S,c,l),{actualRow:t,actualColumn:e,startY:p,endY:b,startX:v,endX:m,isMerged:h,isMergedMainCell:g,mergeInfo:S}}getCellByIndexWithNoHeader(t,e,s,i){const{rowHeightAccumulation:o,columnWidthAccumulation:a}=this,c=s2(t,e,o,a,this._config.mergeData),{isMerged:l,isMergedMainCell:u}=c,{startY:h,endY:g,startX:p,endX:b,mergeInfo:v}=c,m=v6(v,0,0);return{actualRow:t,actualColumn:e,startY:h,endY:g,startX:p,endX:b,isMerged:l,isMergedMainCell:u,mergeInfo:m}}convertTransformToOffsetX(t,e,s){const{x:i}=s;return t=(t-i)*e,t}convertTransformToOffsetY(t,e,s){const{y:i}=s;return t=(t-i)*e,t}getSelectionBounding(t,e,s,i){return this.getMergeBounding(t,e,s,i)}getBlankCellDocumentModel(t){const e=this._getCellDocumentModel(t,void 0,void 0,!0);if(e!=null)return e.documentModel==null&&(e.documentModel=this._getDocumentDataByStyle("",{},{})),e;const s="";let i="document";const o={a:0,v:f.BooleanNumber.FALSE},a=f.HorizontalAlign.UNSPECIFIED,c=f.VerticalAlign.UNSPECIFIED,l=f.WrapStrategy.UNSPECIFIED,u=N7;return i=S2({},this._localService).fontCache,{documentModel:this._getDocumentDataByStyle(s,{},{}),fontString:i,textRotation:o,wrapStrategy:l,verticalAlign:c,horizontalAlign:a,paddingData:u}}getCellDocumentModelWithFormula(t){return this._getCellDocumentModel(t,!0,!0,!0)}_getCellDocumentModel(t,e=!1,s=!1,i=!1){var v;const o=this._styles.getStyleByCell(t);if(!t)return;let a,c="document";const l=this._getOtherStyle(o),u=i?{a:0,v:f.BooleanNumber.FALSE}:l.textRotation||{a:0,v:f.BooleanNumber.FALSE},h=l.horizontalAlign||f.HorizontalAlign.UNSPECIFIED,g=l.verticalAlign||f.VerticalAlign.UNSPECIFIED,p=l.wrapStrategy||f.WrapStrategy.UNSPECIFIED,b=l.paddingData||N7;if(t.f&&s)a=this._getDocumentDataByStyle(t.f.toString(),{},{});else if(t.p){const{a:m=0,v:S=f.BooleanNumber.FALSE}=u;let E=0,y=m;S===f.BooleanNumber.TRUE&&(E=Q1,y=Q1),a=this._updateConfigAndGetDocumentModel(e?f.Tools.deepClone(t.p):t.p,h,{horizontalAlign:h,verticalAlign:g,centerAngle:E,vertexAngle:y,wrapStrategy:p})}else if(t.v!=null){const m=this._getFontFormat(o);c=S2(m,this._localService).fontCache,a=this._getDocumentDataByStyle(t.v.toString(),m,{...l,textRotation:u})}return{documentModel:a,fontString:c,textRotation:u,wrapStrategy:p,verticalAlign:g,horizontalAlign:h,paddingData:b,fill:(v=o==null?void 0:o.bg)==null?void 0:v.rgb}}getDecomposedOffset(t,e){let s=f.searchArray(this._columnWidthAccumulation,t),i=0;s===-1||s===0?(s=0,i=t):i=t-this._columnWidthAccumulation[s-1];let o=f.searchArray(this._rowHeightAccumulation,e),a=0;return o===-1||o===0?(o=0,a=e):a=e-this._rowHeightAccumulation[o-1],{row:o,column:s,columnOffset:i,rowOffset:a}}_getBounding(t,e,s){const i=t.length,o=e.length;if(!s)return{startRow:0,endRow:i-1,startColumn:0,endColumn:o-1};let a=-1,c=-1,l=-1,u=-1;const h=f.searchArray(t,s.top-this.columnHeaderHeightAndMarginTop),g=f.searchArray(t,s.bottom-this.columnHeaderHeightAndMarginTop);h===-1&&g===-1?(a=-1,c=-1):(h===-1?a=0:a=h,g===1/0||g>=i?c=i-1:c=g);const p=f.searchArray(e,s.left-this.rowHeaderWidthAndMarginLeft),b=f.searchArray(e,s.right-this.rowHeaderWidthAndMarginLeft);return p===-1&&b===-1?(l=-1,u=-1):(p===-1?l=0:l=p,b===1/0||b>=o?u=o-1:u=b),{startRow:a,endRow:c,startColumn:l,endColumn:u}}_generateRowMatrixCache(t,e,s){let i=0;const o=[],a=e;for(let c=0;c<t;c++){let l=s;if(a[c]!=null){const u=a[c];if(!u)continue;const{h=s,ah:g,isAutoHeight:p}=u;(p==null||p)&&typeof g=="number"?l=g:l=h,u.hd===f.BooleanNumber.TRUE&&(l=0)}i+=l,o.push(i)}return{rowTotalHeight:i,rowHeightAccumulation:o}}_generateColumnMatrixCache(t,e,s){let i=0;const o=[],a=e;for(let c=0;c<t;c++){let l=s;if(a[c]!=null){const u=a[c];if(!u)continue;u.w!=null&&(l=u.w),u.hd===f.BooleanNumber.TRUE&&(l=0)}i+=l,o.push(i)}return{columnTotalWidth:i,columnWidthAccumulation:o}}_getOverflowBound(t,e,s,i,o=f.HorizontalAlign.LEFT){var c,l;let a=0;if(e>s){const u=this._columnWidthAccumulation.length-1;for(let h=e;h>=s;h--){const g=h,p=(c=this._worksheet)==null?void 0:c.getCell(t,g);if(!f.isEmptyCell(p)&&g!==e||this.intersectMergeRange(t,g))return g===e?g:g+1>u?u:g+1;const{startX:b,endX:v}=X1(t,g,this.rowHeightAccumulation,this.columnWidthAccumulation);if(o===f.HorizontalAlign.CENTER&&g===e?a+=(v-b)/2:a+=v-b,i<a)return g}return e}for(let u=e;u<=s;u++){const h=u,g=(l=this._worksheet)==null?void 0:l.getCell(t,h);if(!f.isEmptyCell(g)&&h!==e||this.intersectMergeRange(t,h))return h===e?h:h-1<0?0:h-1;const{startX:p,endX:b}=X1(t,h,this.rowHeightAccumulation,this.columnWidthAccumulation);if(o===f.HorizontalAlign.CENTER&&h===e?a+=(b-p)/2:a+=b-p,i<a)return h}return s}intersectMergeRange(t,e){const s=this.dataMergeCache;for(const i of s){const{startRow:o,endRow:a,startColumn:c,endColumn:l}=i;if(t>=o&&t<=a&&e>=c&&e<=l)return!0}return!1}_calculateStylesCache(){const t=this._dataMergeCache,e=this._rowColumnSegment,s=this.columnWidthAccumulation,{startRow:i,endRow:o,startColumn:a,endColumn:c}=e;if(c!==-1){for(let l=i;l<=o;l++){for(let u=a;u<=c;u++)this._setCellCache(l,u,!1);for(let u=0;u<a;u++)this._setCellCache(l,u,!0);for(let u=c+1;u<s.length;u++)this._setCellCache(l,u,!0)}for(const l of t)this._setCellCache(l.startRow,l.startColumn,!1)}}_resetCache(){this._stylesCache={background:{},backgroundPositions:new f.ObjectMatrix,font:{},border:new f.ObjectMatrix},this._renderedCellCache=new f.ObjectMatrix}_setCellCache(t,e,s){var O;if(this._renderedCellCache.getValue(t,e)||t===-1||e===-1||(this._renderedCellCache.setValue(t,e,!0),!this._worksheet)||this._worksheet.getColVisible(e)===!1||this._worksheet.getRowVisible(t)===!1)return!0;const a=this._worksheet.getCell(t,e);if(!a)return!0;const c=this._stylesCache,l=this._styles.getStyleByCell(a);if(!s&&l&&l.bg&&l.bg.rgb){const F=l.bg.rgb;c.background[F]||(c.background[F]=new f.ObjectMatrix),c.background[F].setValue(t,e,F);const B=this.getCellByIndexWithNoHeader(t,e,1,1);(O=c.backgroundPositions)==null||O.setValue(t,e,B)}if(!s&&l&&l.bd&&(this._setBorderProps(t,e,J.TOP,l,c),this._setBorderProps(t,e,J.BOTTOM,l,c),this._setBorderProps(t,e,J.LEFT,l,c),this._setBorderProps(t,e,J.RIGHT,l,c),this._setBorderProps(t,e,J.TL_BR,l,c),this._setBorderProps(t,e,J.TL_BC,l,c),this._setBorderProps(t,e,J.TL_MR,l,c),this._setBorderProps(t,e,J.BL_TR,l,c),this._setBorderProps(t,e,J.ML_TR,l,c),this._setBorderProps(t,e,J.BC_TR,l,c)),f.isNullCell(a))return;const u=a&&this._getCellDocumentModel(a);if(u==null)return;const{documentModel:h,fontString:g,textRotation:p,wrapStrategy:b,verticalAlign:v,horizontalAlign:m}=u;if(h==null)return;const S=new L1(h);c.font[g]||(c.font[g]=new f.ObjectMatrix);const E=c.font[g];let{a:y}=p;const{v:T=f.BooleanNumber.FALSE}=p;if(T===f.BooleanNumber.TRUE&&(y=Q1),S){const F=o2.create(S,this._localService);F.calculate(),E.setValue(t,e,{documentSkeleton:F,angle:y,verticalAlign:v,horizontalAlign:m,wrapStrategy:b})}}_updateConfigAndGetDocumentModel(t,e,s){var o;if(!s||!((o=t.body)!=null&&o.dataStream))return;t.documentStyle||(t.documentStyle={}),t.documentStyle.renderConfig=s;const i=t.body.paragraphs||[];for(const a of i)a.paragraphStyle||(a.paragraphStyle={}),a.paragraphStyle.horizontalAlign=e;return new f.DocumentDataModel(t)}_getDocumentDataByStyle(t,e,s){const i=t.length,{textRotation:o={a:0,v:f.BooleanNumber.FALSE},paddingData:a={t:0,r:2,b:0,l:2},horizontalAlign:c=f.HorizontalAlign.UNSPECIFIED,verticalAlign:l=f.VerticalAlign.UNSPECIFIED,wrapStrategy:u=f.WrapStrategy.UNSPECIFIED}=s,{a:h=0,v:g=f.BooleanNumber.FALSE}=o,{t:p,r:b,b:v,l:m}=a;let S=0,E=h;g===f.BooleanNumber.TRUE&&(S=Q1,E=Q1);const y={id:"d",body:{dataStream:`${t}${f.DEFAULT_EMPTY_DOCUMENT_VALUE}`,textRuns:[{ts:e,st:0,ed:i}],paragraphs:[{startIndex:i,paragraphStyle:{horizontalAlign:c}}]},documentStyle:{pageSize:{width:1/0,height:1/0},marginTop:p,marginBottom:v,marginRight:b,marginLeft:m,renderConfig:{horizontalAlign:c,verticalAlign:l,centerAngle:S,vertexAngle:E,wrapStrategy:u}}};return new f.DocumentDataModel(y)}_setBorderProps(t,e,s,i,o){var u;const a=(u=i.bd)==null?void 0:u[s];if(!a||!o.border)return!0;const c=f.getColorStyle(a.cl)||Y1,l=o.border;l.getValue(t,e)||l.setValue(t,e,{[s]:{}}),l.getValue(t,e)[s]={type:s,style:a.s,color:c}}_getFontFormat(t){if(!t)return{};const{ff:e,fs:s,it:i,bl:o,ul:a,st:c,ol:l,cl:u}=t,h={};return e&&(h.ff=e),s&&(h.fs=s),i&&(h.it=i),o&&(h.bl=o),a&&(h.ul=a),c&&(h.st=c),l&&(h.ol=l),u&&(h.cl=u),h}_getOtherStyle(t){if(!t)return{};const{tr:e,td:s,ht:i,vt:o,tb:a,pd:c}=t;return{textRotation:e,textDirection:s,horizontalAlign:i,verticalAlign:o,wrapStrategy:a,paddingData:c}}_getMergeCells(t,e){const s=this.columnWidthAccumulation.length-1;e?e={startRow:e.startRow,endRow:e.endRow,endColumn:s,startColumn:0}:e={startRow:0,startColumn:0,endRow:this.rowHeightAccumulation.length-1,endColumn:s};const{startRow:i,startColumn:o,endRow:a,endColumn:c}=e,l=[];for(let u=0;u<t.length;u++){const{startRow:h,endRow:g,startColumn:p,endColumn:b}=t[u];for(let v=i;v<=a;v++){let m=!1;for(let S=o;S<=c;S++)if(v>=h&&v<=g&&S>=p&&S<=b){l.push({startRow:h,endRow:g,startColumn:p,endColumn:b}),m=!0;break}if(m)break}}return l}}const Of="__SHEET_EXTENSION_FONT_DOCUMENT_INSTANCE__";class wf extends i7{constructor(t,e,s=!0){super(t,e);_(this,"_backgroundExtension");_(this,"_borderExtension");_(this,"_fontExtension");_(this,"_cacheCanvas");_(this,"_refreshIncrementalState",!1);_(this,"_forceDirty",!1);_(this,"_overflowCacheRuntime",{});_(this,"_overflowCacheRuntimeRange",new f.ObjectMatrix);_(this,"_overflowCacheRuntimeTimeout",-1);_(this,"_documents",new x2(Of,void 0,{pageMarginLeft:0,pageMarginTop:0}));this._allowCache=s,this._allowCache&&(this._cacheCanvas=new c2,this.onIsAddedToParentObserver.add(i=>{var o;(o=i==null?void 0:i.getEngine())==null||o.onTransformChangeObservable.add(()=>{this._resizeCacheCanvas()}),this._resizeCacheCanvas(),this._addMakeDirtyToScroll()})),this._initialDefaultExtension(),this.makeDirty(!0)}get backgroundExtension(){return this._backgroundExtension}get borderExtension(){return this._borderExtension}get fontExtension(){return this._fontExtension}getDocuments(){return this._documents}draw(t,e){const s=this.getSkeleton();if(!s)return;const i=this.getParentScale();this._calculateOverflow();const o=this._refreshIncrementalState?e==null?void 0:e.diffBounds.map(c=>s.getRowColumnSegmentByViewBound(c)):void 0,a=this.getExtensionsByOrder();for(const c of a)c.draw(t,i,s,o);clearTimeout(this._overflowCacheRuntimeTimeout),this._overflowCacheRuntimeTimeout=setTimeout(()=>{this._overflowCacheRuntimeRange.reset(),this._overflowCacheRuntime={}},1e3)}isHit(t){const e=this._getInverseCoord(t),s=this.getSkeleton();if(!s)return!1;const{rowHeaderWidth:i,columnHeaderHeight:o}=s;return e.x>i&&e.y>o}getNoMergeCellPositionByIndex(t,e){const s=this.getSkeleton();if(!s)return;const{rowHeightAccumulation:i,columnWidthAccumulation:o,rowHeaderWidth:a,columnHeaderHeight:c}=s;this.getParentScale();let{startY:l,endY:u,startX:h,endX:g}=X1(t,e,i,o);return l+=c,u+=c,h+=a,g+=a,{startY:l,endY:u,startX:h,endX:g}}getScrollXYByRelativeCoords(t){const e=this.getParent();let s=0,i=0;const o=e.getActiveViewportByRelativeCoord(t);if(o){const a=o.actualScrollX||0,c=o.actualScrollY||0;s+=a,i+=c}return{x:s,y:i}}makeForceDirty(t=!0){this.makeDirty(t),this._forceDirty=t}getSelectionBounding(t,e,s,i){var o;return(o=this.getSkeleton())==null?void 0:o.getMergeBounding(t,e,s,i)}render(t,e){if(!this.visible)return this.makeDirty(!1),this;e.viewBound;const s=this.getSkeleton();if(!s)return;s.calculateWithoutClearingCache(e);const i=s.rowColumnSegment;if(i.startRow===-1&&i.endRow===-1||i.startColumn===-1&&i.endColumn===-1)return;t.save();const{a:o=1,d:a=1}=t.getTransform(),c=V1({scaleX:o,scaleY:a}),{rowHeaderWidth:l,columnHeaderHeight:u}=s;if(t.translate(X(l,c),X(u,c)),this._drawAuxiliary(t),e&&this._allowCache===!0){const{viewBound:h,diffBounds:g,diffX:p,diffY:b,viewPortPosition:v,viewPortKey:m}=e;if(m==="viewMain"){const S=this._cacheCanvas.getContext();S.save();const{left:E,top:y,right:T,bottom:O}=v,F=T-E+l,w=O-y+u;p!==0||g[0]==null||p===0&&b===0||this._forceDirty?((this.isDirty()||this._forceDirty)&&(this._cacheCanvas.clear(),S.setTransform(t.getTransform()),this._draw(S,e),this._forceDirty=!1),this._applyCache(t,E,y,F,w,E,y,F,w)):(this.isDirty()&&(this._cacheCanvas.getPixelRatio(),S.save(),S.globalCompositeOperation="copy",S.setTransform(1,0,0,1,0,0),S.drawImage(this._cacheCanvas.getCanvasEle(),X(p,c)*c,X(b,c)*c),S.restore(),this._refreshIncrementalState=!0,S.setTransform(t.getTransform()),this._draw(S,e),this._refreshIncrementalState=!1),this._applyCache(t,E,y,F,w,E,y,F,w)),S.restore()}else this._draw(t,e)}else this._draw(t,e);return t.restore(),this.makeDirty(!1),this}_resizeCacheCanvas(){const t=this._getAncestorSize();if(!t||this._cacheCanvas==null)return;const{width:e,height:s}=t;this._cacheCanvas.setSize(e,s),this.makeDirty(!0)}_applyCache(t,e=0,s=0,i=0,o=0,a=0,c=0,l=0,u=0){if(!t)return;const h=this._cacheCanvas.getPixelRatio(),g=this._cacheCanvas.getContext();g.save(),t.save(),t.setTransform(1,0,0,1,0,0),g.setTransform(1,0,0,1,0,0),t.drawImage(this._cacheCanvas.getCanvasEle(),e,s,i*h,o*h,a,c,l*h,u*h),t.restore(),g.restore()}_draw(t,e){this.draw(t,e)}_getAncestorSize(){const t=this._getAncestorParent();if(t){if(t.classType===N.ENGINE){const e=t.getCanvas();return{width:e.getWidth(),height:e.getHeight()}}if(t.classType===N.SCENE_VIEWER)return{width:t.width,height:t.height}}}_getAncestorParent(){let t=this.parent;for(;t;){if(t.classType===N.ENGINE||t.classType===N.SCENE_VIEWER)return t;t=(t==null?void 0:t.getParent)&&(t==null?void 0:t.getParent())}}_initialDefaultExtension(){R2.getData().sort(f.sortRules).forEach(t=>{this.register(t)}),this._backgroundExtension=this.getExtensionByKey("DefaultBackgroundExtension"),this._borderExtension=this.getExtensionByKey("DefaultBorderExtension"),this._fontExtension=this.getExtensionByKey("DefaultFontExtension")}_addMakeDirtyToScroll(){this._hasScrollViewportOperator(this,t=>{t.onScrollBeforeObserver.add(()=>{this.makeDirty(!0)})})}_hasScrollViewportOperator(t,e){let s=t.getParent();for(;s;){if(s.classType===N.SCENE){const i=s.getViewports(),o=this._getHasScrollViewports(i);for(const a of o)a&&e(a)}s=(s==null?void 0:s.getParent)&&(s==null?void 0:s.getParent())}}_getHasScrollViewports(t){const e=[];for(const s of t)s.getScrollBar()&&e.push(s);return e}_calculateOverflow(){const t=this.getSkeleton();if(!t)return;const e=t.getColumnCount(),{stylesCache:s,rowHeightAccumulation:i,columnWidthAccumulation:o,mergeData:a}=t,{font:c}=s;c&&Object.keys(c).forEach(l=>{const u=c[l];u.forRow((h,g)=>{this._overflowCacheRuntime[h]==null&&(g.forEach(p=>{const b=u.getValue(h,p),{documentSkeleton:v,angle:m=0,horizontalAlign:S,wrapStrategy:E}=b,y=t.getCellData().getValue(h,p),T=this.getSkeleton();if(!T)return!0;const{t:O=f.CellValueType.STRING}=y||{};if(E===f.WrapStrategy.OVERFLOW&&O!==f.CellValueType.NUMBER&&O!==f.CellValueType.BOOLEAN&&S!==f.HorizontalAlign.JUSTIFIED){if(t.intersectMergeRange(h,p))return!0;let F=G2(v,m);if(!F)return!0;if(m!==0){const{startY:x,endY:M,startX:k,endX:I}=s2(h,p,i,o,a),H=I-k,P=M-x;F.height>P&&(F={width:P/Math.tan(Math.abs(m))+H,height:P})}const w=t.getOverflowPosition(F,S,h,p,e),{startColumn:B,endColumn:A}=w;this._overflowCacheRuntimeRange.setValue(h,p,{startRow:h,endRow:h,startColumn:B,endColumn:A})}else if(E===f.WrapStrategy.WRAP&&m!==0){if(t.intersectMergeRange(h,p))return!0;const{startY:F,endY:w}=s2(h,p,i,o,a),B=w-F;v.getViewModel().getDataModel().updateDocumentDataPageSize(B),v.calculate();const A=G2(v,m);if(!A)return!0;const{startColumn:x,endColumn:M}=T.getOverflowPosition(A,S,h,p,T.getColumnCount());this._overflowCacheRuntimeRange.setValue(h,p,{startRow:h,endRow:h,startColumn:x,endColumn:M})}}),this._overflowCacheRuntime[h]=!0)}),u.forValue((h,g,p)=>{})}),t.setOverflowCache(this._overflowCacheRuntimeRange)}_drawAuxiliary(t){const e=this.getSkeleton();if(e==null)return;const{rowColumnSegment:s,dataMergeCache:i,overflowCache:o,stylesCache:a,showGridlines:c}=e,{border:l,backgroundPositions:u}=a,{startRow:h,endRow:g,startColumn:p,endColumn:b}=s;if(!e||c===f.BooleanNumber.FALSE)return;const{rowHeightAccumulation:v,columnTotalWidth:m,columnWidthAccumulation:S,rowTotalHeight:E}=e;if(!v||!S||m===void 0||E===void 0)return;t.save();const{a:y=1,d:T=1}=t.getTransform(),O=Math.max(y,T);t.beginPath(),t.lineWidth=1/O,t.strokeStyle=c1([212,212,212]);const F=m,w=E,B=S.length,A=v.length,x=h,M=g,k=0;t.translate(g1/O,g1/O);for(let I=x;I<=M;I++){if(I<0||I>A-1)continue;const H=v[I];t.moveTo(0,X(H,O)),t.lineTo(F,X(H,O))}for(let I=p;I<=b;I++){if(I<0||I>B-1)continue;const H=S[I];t.moveTo(X(H,O),k),t.lineTo(X(H,O),w)}t.stroke(),t.closePath(),l==null||l.forValue((I,H,P)=>{if(!P)return!0;const z=e.getCellByIndexWithNoHeader(I,H,y,T);let{startY:$,endY:W,startX:j,endX:G}=z;const{isMerged:Y,isMergedMainCell:U,mergeInfo:q}=z;if(Y||(U&&($=q.startY,W=q.endY,j=q.startX,G=q.endX),$=X($,O),W=X(W,O),j=X(j,O),G=X(G,O),!(q.startRow>=x&&q.endRow<=M)))return!0;for(const s1 in P){const{type:e1}=P[s1];h4(t,e1,{startX:j,startY:$,endX:G,endY:W},y,T)}}),t.closePath(),this._clearRectangle(t,O,v,S,i),this._clearRectangle(t,O,v,S,o.toNativeArray()),this._clearBackground(t,O,u),t.restore()}_clearRectangle(t,e,s,i,o){if(o!=null)for(const a of o){const{startRow:c,endRow:l,startColumn:u,endColumn:h}=a,g=X(s[c-1]||0,e),p=X(s[l]||s[s.length-1],e),b=X(i[u-1]||0,e),v=X(i[h]||i[i.length-1],e);t.clearRect(b,g,v-b,p-g),t.beginPath(),t.moveTo(b,g),t.lineTo(v,g),t.lineTo(v,p),t.lineTo(b,p),t.lineTo(b,g),t.stroke(),t.closePath()}}_clearBackground(t,e,s){s==null||s.forValue((i,o,a)=>{let{startY:c,endY:l,startX:u,endX:h}=a;const{isMerged:g,isMergedMainCell:p,mergeInfo:b}=a;if(g)return!0;p&&(c=b.startY,l=b.endY,u=b.startX,h=b.endX),t.clearRect(u,c,h-u,l-c)})}}function H7(r,n,t){r.onPointerEnterObserver.add(e=>{n(r,e)}),r.onPointerLeaveObserver.add(e=>{t(r,e)})}class a7 extends M1{constructor(t,e){super(t);_(this,"_subScenes",new Map);_(this,"_activeSubScene");_(this,"_allowSelectedClipElement",!1);this._initialProps(e)}get classType(){return N.SCENE_VIEWER}render(t,e){var i;if(!this.visible)return this.makeDirty(!1),this;if(e){const{left:o,top:a,right:c,bottom:l}=e.viewBound;if(this.width+this.strokeWidth<o||c<0||this.height+this.strokeWidth<a||l<0)return this}const s=this.transform.getMatrix();return t.save(),t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),(i=this._activeSubScene)==null||i.makeDirtyNoParent(!0).render(t),t.restore(),this.makeDirty(!1),this}getSubScenes(){return this._subScenes}getActiveSubScene(){return this._activeSubScene}getSubScene(t){for(const[e,s]of this._subScenes)if(e===t)return s}addSubScene(t){this._activeSubScene=t,this._subScenes.set(t.sceneKey,t),this.makeDirty()}removeSubScene(t){const e=this._subScenes.get(t);this._subScenes.delete(t),this._activeSubScene===e&&(this._activeSubScene=this._subScenes.values().next().value),this.makeDirty()}activeSubScene(t){if(t==null)return;const e=this._subScenes.get(t);this._activeSubScene!==e&&(this._activeSubScene=e,this.makeDirty())}enableSelectedClipElement(){this._allowSelectedClipElement=!0}disableSelectedClipElement(){this._allowSelectedClipElement=!1}allowSelectedClipElement(){return this._allowSelectedClipElement}pick(t){var i;if(this._activeSubScene===void 0)return;const s=this.transform.clone().invert().applyPoint(t);return(i=this._activeSubScene)==null?void 0:i.pick(s)}dispose(){super.dispose(),this._subScenes.forEach(t=>{t.dispose()})}_initialProps(t){if(!t)return;const e=Object.keys(t);if(e.length===0)return;const s={};let i=!1;e.forEach(o=>{if(t[o]===void 0)return!0;s[o]=t[o],i=!0}),i&&this.transformByState(s),this.makeDirty(!0)}}const wt=["dataArray"];class h1 extends u2{constructor(t,e){super(t,e);_(this,"_dataArray",[]);_(this,"pathLength",0);_(this,"_selfRectCache",{left:0,top:0,width:0,height:0});_(this,"_reCalculateCache",!0);e!=null&&e.data?this._dataArray=h1.parsePathData(e.data):e!=null&&e.dataArray&&(this._dataArray=e.dataArray);for(let s=0;s<this.dataArray.length;++s)this.pathLength+=this.dataArray[s].pathLength;this._setFixBoundingBox(),this.onTransformChangeObservable.add(s=>{const{type:i,value:o,preValue:a}=s;if(i===n1.resize||i===n1.all){this._reCalculateCache=!0;const{left:c,top:l,width:u,height:h}=this._getSelfRect(),{width:g,height:p}=a;let b,v;g?b=this.width-g:b=0,p?v=this.height-p:v=0;const m=b/u,S=v/h;this.scaleX+=m,this.scaleY+=S,this.left=this.left-c*m,this.top=this.top-l*S,this._setTransForm()}})}get dataArray(){return this._dataArray}static drawWith(t,e){const s=e.dataArray;if(s){t.beginPath();for(let i=0;i<s.length;i++){const o=s[i].command,a=s[i].points;switch(o){case"L":t.lineTo(a[0],a[1]);break;case"M":t.moveTo(a[0],a[1]);break;case"C":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"Q":t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case"A":{const c=a[0],l=a[1],u=a[2],h=a[3],g=a[4],p=a[5],b=a[6],v=a[7],m=u>h?u:h,S=u>h?1:u/h,E=u>h?h/u:1;t.translate(c,l),t.rotate(b),t.scale(S,E),t.arc(0,0,m,g,g+p,!!(1-v)),t.scale(1/S,1/E),t.rotate(-b),t.translate(-c,-l);break}case"z":t.closePath();break}}this._renderPaintInOrder(t,e)}}static getLineLength(t,e,s,i){return Math.sqrt((s-t)*(s-t)+(i-e)*(i-e))}static getPointOnLine(t,e,s,i,o,a,c){a===void 0&&(a=e),c===void 0&&(c=s);const l=(o-s)/(i-e+1e-8);let u=Math.sqrt(t*t/(1+l*l));i<e&&(u*=-1);let h=l*u,g;if(i===e)g={x:a,y:c+h};else if((c-s)/(a-e+1e-8)===l)g={x:a+u,y:c+h};else{const p=this.getLineLength(e,s,i,o);let b=(a-e)*(i-e)+(c-s)*(o-s);b/=p*p;const v=e+b*(i-e),m=s+b*(o-s),S=this.getLineLength(a,c,v,m),E=Math.sqrt(t*t-S*S);u=Math.sqrt(E*E/(1+l*l)),i<e&&(u*=-1),h=l*u,g={x:v+u,y:m+h}}return g}static getPointOnCubicBezier(t,e,s,i,o,a,c,l,u){function h(S){return S*S*S}function g(S){return 3*S*S*(1-S)}function p(S){return 3*S*(1-S)*(1-S)}function b(S){return(1-S)*(1-S)*(1-S)}const v=l*h(t)+a*g(t)+i*p(t)+e*b(t),m=u*h(t)+c*g(t)+o*p(t)+s*b(t);return{x:v,y:m}}static getPointOnQuadraticBezier(t,e,s,i,o,a,c){function l(b){return b*b}function u(b){return 2*b*(1-b)}function h(b){return(1-b)*(1-b)}const g=a*l(t)+i*u(t)+e*h(t),p=c*l(t)+o*u(t)+s*h(t);return{x:g,y:p}}static getPointOnEllipticalArc(t,e,s,i,o,a){const c=Math.cos(a),l=Math.sin(a),u={x:s*Math.cos(o),y:i*Math.sin(o)};return{x:t+(u.x*c-u.y*l),y:e+(u.x*l+u.y*c)}}static parsePathData(t){if(!t)return[];let e=t;const s=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(new RegExp(" ","g"),",");for(let g=0,p=s.length;g<p;g++)e=e.replace(new RegExp(s[g],"g"),`|${s[g]}`);const i=e.split("|"),o=[],a=[];let c=0,l=0;const u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let h;for(let g=1,p=i.length;g<p;g++){let b=i[g],v=b.charAt(0);for(b=b.slice(1),a.length=0;h=u.exec(b);)a.push(h[0]);const m=[];for(let S=0,E=a.length;S<E;S++){if(a[S]==="00"){m.push(0,0);continue}const y=parseFloat(a[S]);isNaN(y)?m.push(0):m.push(y)}for(;m.length>0&&!isNaN(m[0]);){let S,E=[];const y=c,T=l;let O,F,w,B,A,x,M,k,I,H;switch(v){case"l":c+=m.shift()||0,l+=m.shift()||0,S="L",E.push(c,l);break;case"L":c=m.shift()||0,l=m.shift()||0,E.push(c,l);break;case"m":{const P=m.shift()||0,z=m.shift()||0;if(c+=P,l+=z,S="M",o.length>2&&o[o.length-1].command==="z"){for(let $=o.length-2;$>=0;$--)if(o[$].command==="M"){c=o[$].points[0]+P,l=o[$].points[1]+z;break}}E.push(c,l),v="l";break}case"M":c=m.shift()||0,l=m.shift()||0,S="M",E.push(c,l),v="L";break;case"h":c+=m.shift()||0,S="L",E.push(c,l);break;case"H":c=m.shift()||0,S="L",E.push(c,l);break;case"v":l+=m.shift()||0,S="L",E.push(c,l);break;case"V":l=m.shift()||0,S="L",E.push(c,l);break;case"C":E.push(m.shift()||0,m.shift()||0,m.shift()||0,m.shift()||0),c=m.shift()||0,l=m.shift()||0,E.push(c,l);break;case"c":E.push(c+(m.shift()||0),l+(m.shift()||0),c+(m.shift()||0),l+(m.shift()||0)),c+=m.shift()||0,l+=m.shift()||0,S="C",E.push(c,l);break;case"S":F=c,w=l,O=o[o.length-1],O.command==="C"&&(F=c+(c-O.points[2]),w=l+(l-O.points[3])),E.push(F,w,m.shift()||0,m.shift()||0),c=m.shift()||0,l=m.shift()||0,S="C",E.push(c,l);break;case"s":F=c,w=l,O=o[o.length-1],O.command==="C"&&(F=c+(c-O.points[2]),w=l+(l-O.points[3])),E.push(F,w,c+(m.shift()||0),l+(m.shift()||0)),c+=m.shift()||0,l+=m.shift()||0,S="C",E.push(c,l);break;case"Q":E.push(m.shift()||0,m.shift()||0),c=m.shift()||0,l=m.shift()||0,E.push(c,l);break;case"q":E.push(c+(m.shift()||0),l+(m.shift()||0)),c+=m.shift()||0,l+=m.shift()||0,S="Q",E.push(c,l);break;case"T":F=c,w=l,O=o[o.length-1],O.command==="Q"&&(F=c+(c-O.points[0]),w=l+(l-O.points[1])),c=m.shift()||0,l=m.shift()||0,S="Q",E.push(F,w,c,l);break;case"t":F=c,w=l,O=o[o.length-1],O.command==="Q"&&(F=c+(c-O.points[0]),w=l+(l-O.points[1])),c+=m.shift()||0,l+=m.shift()||0,S="Q",E.push(F,w,c,l);break;case"A":B=m.shift()||0,A=m.shift()||0,x=m.shift()||0,M=m.shift()||0,k=m.shift()||0,I=c,H=l,c=m.shift()||0,l=m.shift()||0,S="A",E=this.convertEndpointToCenterParameterization(I,H,c,l,M,k,B,A,x);break;case"a":B=m.shift()||0,A=m.shift()||0,x=m.shift()||0,M=m.shift()||0,k=m.shift()||0,I=c,H=l,c+=m.shift()||0,l+=m.shift()||0,S="A",E=this.convertEndpointToCenterParameterization(I,H,c,l,M,k,B,A,x);break}o.push({command:S||v,points:E,start:{x:y,y:T},pathLength:this.calcLength(y,T,S||v,E)})}(v==="z"||v==="Z")&&o.push({command:"z",points:[],start:{x:0,y:0},pathLength:0})}return o}static calcLength(t,e,s,i){let o,a,c,l;const u=h1;switch(s){case"L":return u.getLineLength(t,e,i[0],i[1]);case"C":for(o=0,a=u.getPointOnCubicBezier(0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),l=.01;l<=1;l+=.01)c=u.getPointOnCubicBezier(l,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),o+=u.getLineLength(a.x,a.y,c.x,c.y),a=c;return o;case"Q":for(o=0,a=u.getPointOnQuadraticBezier(0,t,e,i[0],i[1],i[2],i[3]),l=.01;l<=1;l+=.01)c=u.getPointOnQuadraticBezier(l,t,e,i[0],i[1],i[2],i[3]),o+=u.getLineLength(a.x,a.y,c.x,c.y),a=c;return o;case"A":{o=0;const h=i[4],g=i[5],p=i[4]+g;let b=Math.PI/180;if(Math.abs(h-p)<b&&(b=Math.abs(h-p)),a=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],h,0),g<0)for(l=h-b;l>p;l-=b)c=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),o+=u.getLineLength(a.x,a.y,c.x,c.y),a=c;else for(l=h+b;l<p;l+=b)c=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),o+=u.getLineLength(a.x,a.y,c.x,c.y),a=c;return c=u.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),o+=u.getLineLength(a.x,a.y,c.x,c.y),o}}return 0}static convertEndpointToCenterParameterization(t,e,s,i,o,a,c,l,u){const h=u*(Math.PI/180),g=Math.cos(h)*(t-s)/2+Math.sin(h)*(e-i)/2,p=-1*Math.sin(h)*(t-s)/2+Math.cos(h)*(e-i)/2,b=g*g/(c*c)+p*p/(l*l);b>1&&(c*=Math.sqrt(b),l*=Math.sqrt(b));let v=Math.sqrt((c*c*(l*l)-c*c*(p*p)-l*l*(g*g))/(c*c*(p*p)+l*l*(g*g)));o===a&&(v*=-1),isNaN(v)&&(v=0);const m=v*c*p/l,S=v*-l*g/c,E=(t+s)/2+Math.cos(h)*m-Math.sin(h)*S,y=(e+i)/2+Math.sin(h)*m+Math.cos(h)*S,T=M=>Math.sqrt(M[0]*M[0]+M[1]*M[1]),O=(M,k)=>(M[0]*k[0]+M[1]*k[1])/(T(M)*T(k)),F=(M,k)=>(M[0]*k[1]<M[1]*k[0]?-1:1)*Math.acos(O(M,k)),w=F([1,0],[(g-m)/c,(p-S)/l]),B=[(g-m)/c,(p-S)/l],A=[(-1*g-m)/c,(-1*p-S)/l];let x=F(B,A);return O(B,A)<=-1&&(x=Math.PI),O(B,A)>=1&&(x=0),a===0&&x>0&&(x-=2*Math.PI),a===1&&x<0&&(x+=2*Math.PI),[E,y,c,l,w,x,h,a]}toJson(){const t={};return wt.forEach(e=>{this[e]&&(t[e]=this[e])}),{...super.toJson(),...t}}getState(){const{left:t,top:e,width:s,height:i}=this.getRect();return{left:t,top:e,width:s,height:i,scaleX:this.scaleX,scaleY:this.scaleY,angle:this.angle,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY}}getRect(){const{left:t,top:e,width:s,height:i}=this._getSelfRect();return{left:t*this.scaleX+this.left,top:e*this.scaleY+this.top,width:s*this.scaleX,height:i*this.scaleY}}getLength(){return this.pathLength}getPointAtLength(t){let e,s=0;const i=this.dataArray.length;if(!i)return null;for(;s<i&&t>this.dataArray[s].pathLength;)t-=this.dataArray[s].pathLength,++s;if(s===i)return e=this.dataArray[s-1].points.slice(-2),{x:e[0],y:e[1]};if(t<.01)return e=this.dataArray[s].points.slice(0,2),{x:e[0],y:e[1]};const o=this.dataArray[s],a=o.points;switch(o.command){case"L":return h1.getPointOnLine(t,o.start.x,o.start.y,a[0],a[1]);case"C":return h1.getPointOnCubicBezier(t/o.pathLength,o.start.x,o.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return h1.getPointOnQuadraticBezier(t/o.pathLength,o.start.x,o.start.y,a[0],a[1],a[2],a[3]);case"A":{const c=a[0],l=a[1],u=a[2],h=a[3];let g=a[4];const p=a[5],b=a[6];return g+=p*t/o.pathLength,h1.getPointOnEllipticalArc(c,l,u,h,g,b)}}return null}_draw(t){h1.drawWith(t,this)}_setFixBoundingBox(){const{left:t,top:e,width:s,height:i}=this._getSelfRect(),o=this.width/s,a=this.height/i;this.left=this.left-t*o,this.top=this.top-e*a,this.scaleX=o,this.scaleY=a,this.width=s,this.height=i,this._setTransForm()}_getSelfRect(){if(!this._reCalculateCache)return this._selfRectCache;let t=[];this.dataArray.forEach(u=>{if(u.command==="A"){const h=u.points[4],g=u.points[5],p=u.points[4]+g;let b=Math.PI/180;if(Math.abs(h-p)<b&&(b=Math.abs(h-p)),g<0)for(let v=h-b;v>p;v-=b){const m=h1.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],v,0);t.push(m.x,m.y)}else for(let v=h+b;v<p;v+=b){const m=h1.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],v,0);t.push(m.x,m.y)}}else if(u.command==="C")for(let h=0;h<=1;h+=.01){const g=h1.getPointOnCubicBezier(h,u.start.x,u.start.y,u.points[0],u.points[1],u.points[2],u.points[3],u.points[4],u.points[5]);t.push(g.x,g.y)}else t=t.concat(u.points)});let e=t[0],s=t[0],i=t[1],o=t[1],a,c;for(let u=0;u<t.length/2;u++)a=t[u*2],c=t[u*2+1],isNaN(a)||(e=Math.min(e,a),s=Math.max(s,a)),isNaN(c)||(i=Math.min(i,c),o=Math.max(o,c));const l={left:e,top:i,width:s-e,height:o-i};return this._selfRectCache=l,l}}var Bt=(r=>(r.LEFT="__slideNavigationLeft__",r.RIGHT="__slideNavigationRight__",r))(Bt||{});const X7="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m200.746667-478.506667l1.749333-1.664 30.165333-30.165333-330.496-330.581333a42.837333 42.837333 0 0 0-60.288 0 42.538667 42.538667 0 0 0 0 60.330666l270.08 270.165334-270.08 269.952a42.496 42.496 0 0 0 0 60.288c16.64 16.64 43.861333 16.469333 60.288 0.042666l298.581334-298.368z";class Bf extends a7{constructor(){super(...arguments);_(this,"onSlideChangePageByNavigationObservable",new f.Observable);_(this,"_navigationEnabled",!1)}activeFirstPage(){const e=this.getSubScenes().keys().next().value;e!=null&&this.changePage(e)}addPage(t){const e=t.sceneKey;this.getSubScene(e)==null&&(this.addSubScene(t),this.addNavigation())}changePage(t){t!==null&&(this.removeNavigation(),this.activeSubScene(t),this.addNavigation())}hasPage(t){return this.getSubScene(t)}addNavigation(){const t=this.getActiveSubScene();if(t==null||this._navigationEnabled===!1)return;const e=new h1("__slideNavigationLeft__",{data:X7,width:60,height:60,left:90,top:(this.height-30)/2,fill:this._getArrowColor(),flipX:!0}),s=new h1("__slideNavigationRight__",{data:X7,width:60,height:60,left:this.width-90,top:(this.height-30)/2,fill:this._getArrowColor()}),i=(a,c)=>{a.setCursor(i1.POINTER),a.setProps({fill:this._getArrowColor(!0)})},o=(a,c)=>{a.setCursor(i1.DEFAULT),a.setProps({fill:this._getArrowColor()})};H7(e,i,o),H7(s,i,o),this._addNavTrigger(e,s),t.addObjects([e,s],7)}removeNavigation(){var e,s;const t=this.getActiveSubScene();t==null||this._navigationEnabled===!1||((e=t.getObject("__slideNavigationLeft__"))==null||e.dispose(),(s=t.getObject("__slideNavigationRight__"))==null||s.dispose())}enableNav(){this._navigationEnabled=!0}disableNav(){this._navigationEnabled=!1}hiddenNav(){var e,s;const t=this.getActiveSubScene();t==null||this._navigationEnabled===!1||((e=t.getObject("__slideNavigationLeft__"))==null||e.hide(),(s=t.getObject("__slideNavigationRight__"))==null||s.hide())}showNav(){var e,s;const t=this.getActiveSubScene();t==null||this._navigationEnabled===!1||((e=t.getObject("__slideNavigationLeft__"))==null||e.show(),(s=t.getObject("__slideNavigationRight__"))==null||s.show())}renderToThumb(t,e,s=1,i=1){const o=this.getSubScene(e);o!=null&&(t.save(),t.scale(s,i),o.makeDirtyNoParent(!0).render(t),t.restore())}_getSubScenesIndex(t){if(t==null)return;const e=Array.from(this.getSubScenes()),s=e.length;let i=0;for(let c=0;c<s;c++){const[l]=e[c];if(t===l){i=c;break}}let o=i+1,a=i-1;return o=o>=s?0:o,a=a<0?s-1:a,{nextScene:e[o][1],previousScene:e[a][1]}}_addNavTrigger(t,e){t.onPointerDownObserver.add(()=>{var o;const s=this._getSubScenesIndex((o=this.getActiveSubScene())==null?void 0:o.sceneKey),i=s==null?void 0:s.previousScene.sceneKey;this.changePage(i),this.onSlideChangePageByNavigationObservable.notifyObservers(i)}),e.onPointerDownObserver.add(()=>{var o;const s=this._getSubScenesIndex((o=this.getActiveSubScene())==null?void 0:o.sceneKey),i=s==null?void 0:s.nextScene.sceneKey;this.changePage(i),this.onSlideChangePageByNavigationObservable.notifyObservers(i)})}_getArrowColor(t=!1){return t?c1(f.COLORS.white,.8):c1(f.COLORS.white,.5)}}class Af extends M1{constructor(n,t=s=>{},e){super(n),this._render=t,this._isHitCustom=e}toJson(){return{...super.toJson()}}render(n,t){if(!this.visible)return this.makeDirty(!1),this;if(t&&!this.isInGroup){const{top:s,left:i,bottom:o,right:a}=t.viewBound;if(this.width+this.strokeWidth<i||a<0||this.height+this.strokeWidth<s||o<0)return this}const e=this.transform.getMatrix();return n.save(),n.transform(e[0],e[1],e[2],e[3],e[4],e[5]),this._render(n),n.restore(),this.makeDirty(!1),this}isHit(n){return this._isHitCustom?this._isHitCustom(n):super.isHit(n)}}class Rf extends f.Disposable{constructor(){super(...arguments);_(this,"onInputChangedObservable",new f.Observable);_(this,"onTransformChangeObservable",new f.Observable);_(this,"_scenes",{});_(this,"_activeScene",null)}get classType(){return N.ENGINE}get activeScene(){return this._activeScene}get width(){return 0}get height(){return 0}getScenes(){return this._scenes}getScene(t){return this._scenes[t]}hasScene(t){return t in this._scenes}addScene(t){const e=t.sceneKey;return this.hasScene(e)&&console.warn("Scenes has similar key, it will be covered"),this._scenes[e]=t,t}setActiveScene(t){const e=this.getScene(t);return e&&(this._activeScene=e),e}hasActiveScene(){return this._activeScene!=null}dispose(){super.dispose();const t=this.getScenes();Object.keys(t).forEach(s=>{t[s].dispose()})}remainScene(t){const e=this.getScenes();if(e[t]){const s=e[t];return delete e[t],s}}}class K2 extends Rf{constructor(t=100,e=100){super();_(this,"renderEvenInBackground",!0);_(this,"onBeginFrameObservable",new f.Observable);_(this,"onEndFrameObservable",new f.Observable);_(this,"_container");_(this,"_canvas",new c2);_(this,"_canvasEle");_(this,"_renderingQueueLaunched",!1);_(this,"_activeRenderLoops",new Array);_(this,"_renderFunction",()=>{});_(this,"_requestNewFrameHandler",-1);_(this,"_frameId",-1);_(this,"_usingSafari",Z7());_(this,"_fps",60);_(this,"_deltaTime",0);_(this,"_performanceMonitor",new m4);_(this,"_pointerMoveEvent");_(this,"_pointerDownEvent");_(this,"_pointerUpEvent");_(this,"_pointerBlurEvent");_(this,"_pointerWheelEvent");_(this,"_pointerEnterEvent");_(this,"_pointerLeaveEvent");_(this,"pointer",{});_(this,"_mouseId",-1);_(this,"_isUsingFirefox",navigator.userAgent.indexOf("Firefox")!==-1);this._canvasEle=this._canvas.getCanvasEle(),this._canvas.setSize(t,e),this._handleKeyboardAction(),this._handlePointerAction()}get width(){return this._canvas.getWidth()}get height(){return this._canvas.getHeight()}get requestNewFrameHandler(){return this._requestNewFrameHandler}get frameId(){return this._frameId}setCanvasCursor(t){const e=this.getCanvas().getCanvasEle();e.style.cursor=t}clearCanvas(){this.getCanvas().clear()}getCanvas(){return this._canvas}getCanvasElement(){return this._canvas.getCanvasEle()}getPixelRatio(){return this._canvas.getPixelRatio()}setContainer(t){this._container=t,this._container.appendChild(this._canvasEle),this.resize();let e;const s=new ResizeObserver(()=>{e||(e=window.requestIdleCallback(()=>{this.resize(),e=void 0}))});s.observe(this._container),this.disposeWithMe(f.toDisposable(()=>{s.unobserve(this._container)}))}resize(){if(!this._container)return;const{width:t,height:e}=a4(this._container);this.resizeBySize(t,e)}resizeBySize(t,e){const s=this.width,i=this.height;this._canvas.setSize(t,e),this.onTransformChangeObservable.notifyObservers({type:n1.resize,value:{width:t,height:e},preValue:{width:s,height:i}})}dispose(){super.dispose();const t=m6();this._canvasEle.removeEventListener(`${t}leave`,this._pointerLeaveEvent),this._canvasEle.removeEventListener(`${t}enter`,this._pointerEnterEvent),this._canvasEle.removeEventListener(`${t}move`,this._pointerMoveEvent),this._canvasEle.removeEventListener(`${t}down`,this._pointerDownEvent),this._canvasEle.removeEventListener(`${t}up`,this._pointerUpEvent),this._canvasEle.removeEventListener("blur",this._pointerBlurEvent),this._canvasEle.removeEventListener(this._getWheelEventName(),this._pointerWheelEvent),this._activeRenderLoops=[],this._canvas.dispose(),this.onBeginFrameObservable.clear(),this.onEndFrameObservable.clear(),this.onTransformChangeObservable.clear()}runRenderLoop(t){this._activeRenderLoops.indexOf(t)===-1&&(this._activeRenderLoops.push(t),this._renderingQueueLaunched||(this._renderingQueueLaunched=!0,this._renderFunction=this._renderLoop.bind(this),this._requestNewFrameHandler=C2(this._renderFunction)))}stopRenderLoop(t){if(!t){this._activeRenderLoops.length=0,this._cancelFrame();return}const e=this._activeRenderLoops.indexOf(t);e>=0&&(this._activeRenderLoops.splice(e,1),this._activeRenderLoops.length===0&&this._cancelFrame())}beginFrame(){this._measureFps(),this.onBeginFrameObservable.notifyObservers(this)}endFrame(){this._frameId++,this.onEndFrameObservable.notifyObservers(this)}getFps(){return this._fps}getDeltaTime(){return this._deltaTime}_renderFrame(){for(let t=0;t<this._activeRenderLoops.length;t++){const e=this._activeRenderLoops[t];e()}}_cancelFrame(){if(this._renderingQueueLaunched&&this._requestNewFrameHandler){if(this._renderingQueueLaunched=!1,typeof window>"u"){if(typeof cancelAnimationFrame=="function")return cancelAnimationFrame(this._requestNewFrameHandler)}else{const{cancelAnimationFrame:t}=this._getHostWindow()||window;if(typeof t=="function")return t(this._requestNewFrameHandler)}return clearTimeout(this._requestNewFrameHandler)}}_getHostWindow(){var t,e;return typeof window>"u"?null:(e=(t=this._canvasEle)==null?void 0:t.ownerDocument)!=null&&e.defaultView?this._canvasEle.ownerDocument.defaultView:window}_renderLoop(){let t=!0;this.renderEvenInBackground||(t=!1),t&&(this.beginFrame(),this._renderFrame(),this.endFrame()),this._activeRenderLoops.length>0?this._requestNewFrameHandler=C2(this._renderFunction):this._renderingQueueLaunched=!1}_measureFps(){this._performanceMonitor.sampleFrame(),this._fps=this._performanceMonitor.averageFPS,this._deltaTime=this._performanceMonitor.instantaneousFrameTime||0}_handleKeyboardAction(){const t=s=>{const i=s;i.deviceType=d1.Keyboard,i.inputIndex=s.keyCode,i.previousState=0,i.currentState=1,this.onInputChangedObservable.notifyObservers(i)},e=s=>{const i=s;i.deviceType=d1.Keyboard,i.inputIndex=s.keyCode,i.previousState=1,i.currentState=0,this.onInputChangedObservable.notifyObservers(i)};this._canvasEle.addEventListener("keydown",t),this._canvasEle.addEventListener("keyup",e)}_handlePointerAction(){const t=m6();this._pointerMoveEvent=e=>{const s=this._getPointerType(e),i=this.pointer[L.Horizontal],o=this.pointer[L.Vertical],a=this.pointer[L.DeltaHorizontal],c=this.pointer[L.DeltaVertical];this.pointer[L.Horizontal]=e.clientX,this.pointer[L.Vertical]=e.clientY,this.pointer[L.DeltaHorizontal]=e.movementX,this.pointer[L.DeltaVertical]=e.movementY;const l=e;l.deviceType=s,i!==e.clientX&&(l.inputIndex=L.Horizontal,l.previousState=i,l.currentState=this.pointer[L.Horizontal],this.onInputChangedObservable.notifyObservers(l)),o!==e.clientY&&(l.inputIndex=L.Vertical,l.previousState=o,l.currentState=this.pointer[L.Vertical],this.onInputChangedObservable.notifyObservers(l)),this.pointer[L.DeltaHorizontal]!==0&&(l.inputIndex=L.DeltaHorizontal,l.previousState=a,l.currentState=this.pointer[L.DeltaHorizontal],this.onInputChangedObservable.notifyObservers(l)),this.pointer[L.DeltaVertical]!==0&&(l.inputIndex=L.DeltaVertical,l.previousState=c,l.currentState=this.pointer[L.DeltaVertical],this.onInputChangedObservable.notifyObservers(l)),!this._usingSafari&&e.button!==-1&&(l.inputIndex=e.button+2,l.previousState=this.pointer[e.button+2],this.pointer[e.button+2]=this.pointer[e.button+2]?0:1,l.currentState=this.pointer[e.button+2],this.onInputChangedObservable.notifyObservers(l))},this._pointerDownEvent=e=>{const s=e,i=this._getPointerType(s),o=this.pointer[L.Horizontal],a=this.pointer[L.Vertical],c=this.pointer[s.button+2];i===d1.Mouse?(this._mouseId===-1&&(s.pointerId===void 0?this._mouseId=this._isUsingFirefox?0:1:this._mouseId=s.pointerId),document.pointerLockElement||this._canvasEle.setPointerCapture(this._mouseId)):s.pointerId&&!document.pointerLockElement&&this._canvasEle.setPointerCapture(s.pointerId),this.pointer[L.Horizontal]=s.clientX,this.pointer[L.Vertical]=s.clientY,this.pointer[s.button+2]=1;const l=s;l.deviceType=i,o!==s.clientX&&(l.inputIndex=L.Horizontal,l.previousState=o,l.currentState=this.pointer[L.Horizontal],this.onInputChangedObservable.notifyObservers(l)),a!==s.clientY&&(l.inputIndex=L.Vertical,l.previousState=a,l.currentState=this.pointer[L.Vertical],this.onInputChangedObservable.notifyObservers(l)),l.inputIndex=s.button+2,l.previousState=c,l.currentState=this.pointer[s.button+2],this.onInputChangedObservable.notifyObservers(l)},this._pointerUpEvent=e=>{const s=e,i=this._getPointerType(s),o=this.pointer[L.Horizontal],a=this.pointer[L.Vertical],c=this.pointer[s.button+2];this.pointer[L.Horizontal]=s.clientX,this.pointer[L.Vertical]=s.clientY,this.pointer[s.button+2]=0;const l=s;l.deviceType=i,o!==s.clientX&&(l.inputIndex=L.Horizontal,l.previousState=o,l.currentState=this.pointer[L.Horizontal],this.onInputChangedObservable.notifyObservers(l)),a!==s.clientY&&(l.inputIndex=L.Vertical,l.previousState=a,l.currentState=this.pointer[L.Vertical],this.onInputChangedObservable.notifyObservers(l)),l.inputIndex=s.button+2,l.previousState=c,l.currentState=this.pointer[s.button+2],i===d1.Mouse&&this._mouseId>=0&&this._canvasEle.hasPointerCapture(this._mouseId)?this._canvasEle.releasePointerCapture(this._mouseId):l.pointerId&&this._canvasEle.hasPointerCapture(l.pointerId)&&this._canvasEle.releasePointerCapture(l.pointerId),this.onInputChangedObservable.notifyObservers(l),i!==d1.Mouse&&(this.pointer={})},this._pointerEnterEvent=e=>{const s=this._getPointerType(e),i=e;i.deviceType=s,i.currentState=2,this.onInputChangedObservable.notifyObservers(i)},this._pointerLeaveEvent=e=>{const s=this._getPointerType(e),i=e;i.deviceType=s,i.currentState=3,this.onInputChangedObservable.notifyObservers(i)},this._pointerBlurEvent=e=>{this._mouseId>=0&&this._canvasEle.hasPointerCapture(this._mouseId)&&(this._canvasEle.releasePointerCapture(this._mouseId),this._mouseId=-1),this.pointer={}},this._pointerWheelEvent=e=>{const s=d1.Mouse,i=this.pointer[L.MouseWheelX],o=this.pointer[L.MouseWheelY],a=this.pointer[L.MouseWheelZ];this.pointer[L.MouseWheelX]=e.deltaX||0,this.pointer[L.MouseWheelY]=e.deltaY||e.wheelDelta||0,this.pointer[L.MouseWheelZ]=e.deltaZ||0;const c=e;c.deviceType=s,this.pointer[L.MouseWheelX]!==0&&(c.inputIndex=L.MouseWheelX,c.previousState=i,c.currentState=this.pointer[L.MouseWheelX],this.onInputChangedObservable.notifyObservers(c)),this.pointer[L.MouseWheelY]!==0&&(c.inputIndex=L.MouseWheelY,c.previousState=o,c.currentState=this.pointer[L.MouseWheelY],this.onInputChangedObservable.notifyObservers(c)),this.pointer[L.MouseWheelZ]!==0&&(c.inputIndex=L.MouseWheelZ,c.previousState=a,c.currentState=this.pointer[L.MouseWheelZ],this.onInputChangedObservable.notifyObservers(c))},this._canvasEle.addEventListener(`${t}enter`,this._pointerEnterEvent),this._canvasEle.addEventListener(`${t}leave`,this._pointerLeaveEvent),this._canvasEle.addEventListener(`${t}move`,this._pointerMoveEvent),this._canvasEle.addEventListener(`${t}down`,this._pointerDownEvent),this._canvasEle.addEventListener(`${t}up`,this._pointerUpEvent),this._canvasEle.addEventListener("blur",this._pointerBlurEvent),this._canvasEle.addEventListener(this._getWheelEventName(),this._pointerWheelEvent,this._getPassive()?{passive:!1}:!1)}_getWheelEventName(){return"onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll"}_getPassive(){let t=!1;const e=()=>{};try{const s={passive:{get(){t=!0}}};this._canvasEle.addEventListener("test",e,s),this._canvasEle.removeEventListener("test",e,s)}catch{}return t}_getPointerType(t){let e=d1.Mouse;return(t.pointerType==="touch"||t.pointerType==="pen"||t.touches)&&(e=d1.Touch),e}}class At extends M1{constructor(t,...e){super(t);_(this,"_objects",[]);this.addObjects(...e)}get classType(){return N.GROUP}set cursor(t){this.setCursor(t)}addObjects(...t){for(const e of t)this.addObject(e)}addObject(t){let e=t;if(b6(t)){const s=this.getScene();if(e=s==null?void 0:s.getObject(t),!e){console.info("No object be added");return}e.parent=this,e.isInGroup=!0,e.groupKey=this.oKey,this._objects.push(e)}else t.parent=this,t.isInGroup=!0,t.groupKey=this.oKey,this._objects.push(t)}removeObject(t){const e=this.getObjects(),s=e.length;if(b6(t))for(let i=0;i<s;i++){const o=e[i];if(o.oKey===t){e.splice(i,1),this.parent.removeObject(o);return}}else for(let i=0;i<s;i++){const o=e[i];if(o===t){e.splice(i,1),this.parent.removeObject(o);return}}}getObjectsByOrder(){const t=[];this._objects.sort(f.sortRules);for(const e of this._objects)!e.isInGroup&&e.visible&&t.push(e);return t}getObjects(){return this._objects}render(t,e){t.save();const s=this.transform.getMatrix();t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._objects.sort(f.sortRules);for(const i of this._objects)i.render(t,this._transformBounds(e));t.restore()}resize(t,e){return this}scale(t,e){return this}skew(t,e){return this}flip(t,e){return this}isHit(t){return!0}pick(t){}dispose(){this.getObjects().forEach(t=>{t.dispose()}),super.dispose()}_transformBounds(t){return t}}class Rt{constructor(n,t=[],e=1,s=!1){_(this,"_objects",[]);_(this,"_cacheCanvas");_(this,"_dirty",!0);this._scene=n,this._zIndex=e,this._allowCache=s,this.addObjects(t),this._allowCache&&this._initialCacheCanvas()}get scene(){return this._scene}get zIndex(){return this._zIndex}enableCache(){this._allowCache=!0,this._initialCacheCanvas()}disableCache(){var n;this._allowCache=!1,(n=this._cacheCanvas)==null||n.dispose(),this._cacheCanvas=null}isAllowCache(){return this._allowCache}getObjectsByOrder(){const n=[];this._objects.sort(f.sortRules);for(const t of this._objects)!t.isInGroup&&t.visible&&n.push(t);return n}getObjectsByOrderForPick(){const n=[];this._objects.sort(f.sortRules);for(const t of this._objects)t.classType!==N.GROUP&&t.visible&&n.push(t);return n}getObjects(){return this._objects}addObject(n){if(n.classType===N.GROUP){const t=n.getObjects();for(const e of t)this.scene.getObject(e.oKey)||(this._objects.push(e),this.scene.setObjectBehavior(e))}return this._objects.push(n),this.scene.setObjectBehavior(n),this.scene.applyTransformer(n),n.layer=this,this}removeObject(n){const t=this.getObjects(),e=t.length;if(n instanceof M1){for(let s=0;s<e;s++)if(t[s]===n){t.splice(s,1);return}}else for(let s=0;s<e;s++)if(t[s].oKey===n){t.splice(s,1);return}}addObjects(n){return n.forEach(t=>{this.addObject(t)}),this}removeObjects(n){const t=this.getObjects(),e=t.length;for(let s=e-1;s>=0;s--){let i=t[s];const o=n.length;if(o===0)break;for(let a=0;a<o;a++){const c=n[a];if(i=c instanceof M1?i:i.oKey,i===c){t.splice(s,1);break}}}}makeDirty(n=!0){return this._dirty=n,this}isDirty(){return this._dirty}render(n,t=!1){var s;const e=n||((s=this._scene.getEngine())==null?void 0:s.getCanvas().getContext());if(this._allowCache&&this._cacheCanvas){if(this.isDirty()){const i=this._cacheCanvas.getContext();this._cacheCanvas.clear(),i.save(),i.setTransform(e.getTransform()),this._draw(i,t),i.restore()}this._applyCache(e)}else e.save(),this._draw(e,t),e.restore();return this.makeDirty(!1),this}_initialCacheCanvas(){this._cacheCanvas=new c2,this._scene.getEngine().onTransformChangeObservable.add(()=>{this._resizeCacheCanvas()})}_draw(n,t){var e;(e=this._scene.getViewports())==null||e.forEach(s=>s.render(n,this.getObjectsByOrder(),t))}_applyCache(n){if(!n||this._cacheCanvas==null)return;const t=this._cacheCanvas.getWidth(),e=this._cacheCanvas.getHeight();n.drawImage(this._cacheCanvas.getCanvasEle(),0,0,t,e)}_resizeCacheCanvas(){var t;const n=this._scene.getEngine();(t=this._cacheCanvas)==null||t.setSize(n.width,n.height),this.makeDirty(!0)}clear(){this._objects=[]}dispose(){var n;this.getObjects().forEach(t=>{t.dispose()}),this.clear(),(n=this._cacheCanvas)==null||n.dispose()}}const xf=["__SpreadsheetTransformerResizeLT__","__SpreadsheetTransformerResizeCT__","__SpreadsheetTransformerResizeRT__","__SpreadsheetTransformerResizeLM__","__SpreadsheetTransformerResizeRM__","__SpreadsheetTransformerResizeLB__","__SpreadsheetTransformerResizeCB__","__SpreadsheetTransformerResizeRB__"];class Mf{constructor(n,t){_(this,"hoverEnabled",!1);_(this,"hoverEnterFunc");_(this,"hoverLeaveFunc");_(this,"resizeEnabled",!0);_(this,"rotateEnabled",!0);_(this,"rotationSnaps",[]);_(this,"rotationSnapTolerance",5);_(this,"rotateAnchorOffset",50);_(this,"rotateSize",10);_(this,"rotateCornerRadius",10);_(this,"borderEnabled",!0);_(this,"borderStroke","rgb(97, 97, 97)");_(this,"borderStrokeWidth",1);_(this,"borderDash",[]);_(this,"borderSpacing",10);_(this,"anchorFill","rgb(255,255,255)");_(this,"anchorStroke","rgb(185,185,185)");_(this,"anchorStrokeWidth",1);_(this,"anchorSize",10);_(this,"anchorCornerRadius",10);_(this,"keepRatio",!0);_(this,"centeredScaling",!1);_(this,"enabledAnchors",[1,1,1,1,1,1,1,1]);_(this,"flipEnabled",!1);_(this,"ignoreStroke",!1);_(this,"boundBoxFunc");_(this,"useSingleNodeRotation",!1);_(this,"shouldOverdrawWholeArea",!1);_(this,"onChangeStartObservable",new f.Observable);_(this,"onChangingObservable",new f.Observable);_(this,"onChangeEndObservable",new f.Observable);_(this,"onClearControlObservable",new f.Observable);_(this,"onCreateControlObservable",new f.Observable);_(this,"_startOffsetX",-1);_(this,"_startOffsetY",-1);_(this,"_viewportScrollX",-1);_(this,"_viewportScrollY",-1);_(this,"_moveObserver");_(this,"_upObserver");_(this,"_cancelFocusObserver");_(this,"_transformerControlMap",new Map);_(this,"_selectedObjectMap",new Map);this._scene=n,this._initialProps(t)}getScene(){return this._scene}hideControl(){this._hideControl()}attachTo(n){if(n.isTransformer)return this.hoverEnabled&&(this.hoverEnterFunc&&n.onPointerEnterObserver.add(this.hoverEnterFunc),this.hoverLeaveFunc&&n.onPointerLeaveObserver.add(this.hoverLeaveFunc)),n.onPointerDownObserver.add((t,e)=>{const{offsetX:s,offsetY:i}=t;this._startOffsetX=s,this._startOffsetY=i;const o=this._getTopScene();if(!o)return;this._addCancelObserver(o),o.disableEvent();const a=a2.create(o);a.startScroll(s,i);const{scrollX:c,scrollY:l}=e2(a);this._viewportScrollX=c,this._viewportScrollY=l,this._updateActiveObjectList(n,t),this._moveObserver=o.onPointerMoveObserver.add(u=>{const{offsetX:h,offsetY:g}=u;this._moving(h,g,a),this._hideControl(),a.scrolling(h,g,()=>{this._moving(h,g,a)})}),this._upObserver=o.onPointerUpObserver.add(u=>{o.onPointerMoveObserver.remove(this._moveObserver),o.onPointerUpObserver.remove(this._upObserver),o.enableEvent(),this._updateControl(),a.dispose(),this.onChangeEndObservable.notifyObservers({objects:this._selectedObjectMap,type:2})}),e.stopPropagation()}),n}dispose(){this._moveObserver=null,this._upObserver=null,this._transformerControlMap.forEach(n=>{n.dispose()}),this._selectedObjectMap.forEach(n=>{n.dispose()}),this.onChangeStartObservable.clear(),this.onChangingObservable.clear(),this.onChangeEndObservable.clear()}_initialProps(n){if(!n)return;const t=Object.keys(n);t.length!==0&&t.forEach(e=>{if(n[e]===void 0)return!0;this[e]=n[e]})}_updateControlChildren(){this._updateControlIterator((n,t)=>{const{left:e,top:s,width:i,height:o,scaleX:a,scaleY:c}=t.getState();n.getObjects().forEach(u=>{const h=u.oKey,g=this._checkTransformerType(h);if(!g)return!0;if(g==="__SpreadsheetTransformerOutline__")u.transformByState(this._getOutlinePosition(i,o,a,c));else{const{left:p,top:b}=this._getRotateAnchorPosition(g,o,i,a,c);u.transformByState({left:p,top:b})}}),n.transformByState({left:e,top:s})})}_anchorMoving(n,t,e,s){const{scrollX:i,scrollY:o}=e2(s),a=t-this._viewportScrollX+i,c=e-this._viewportScrollY+o,l=a-this._startOffsetX,u=c-this._startOffsetY;this._selectedObjectMap.forEach(h=>{const{left:g,top:p,width:b,height:v}=h,m={};switch(n){case"__SpreadsheetTransformerResizeLT__":m.left=g+l,m.top=p+u,m.width=b-l,m.height=v-u;break;case"__SpreadsheetTransformerResizeCT__":m.top=p+u,m.height=v-u;break;case"__SpreadsheetTransformerResizeRT__":m.top=p+u,m.width=b+l,m.height=v-u;break;case"__SpreadsheetTransformerResizeLM__":m.left=g+l,m.width=b-l;break;case"__SpreadsheetTransformerResizeRM__":m.width=l+b;break;case"__SpreadsheetTransformerResizeLB__":m.left=g+l,m.width=b-l,m.height=v+u;break;case"__SpreadsheetTransformerResizeCB__":m.height=u+v;break;case"__SpreadsheetTransformerResizeRB__":m.width=l+b,m.height=u+v;break}h.transformByState(m)}),this._updateControlChildren(),this.onChangingObservable.notifyObservers({objects:this._selectedObjectMap,moveX:l,moveY:u,type:1}),this._startOffsetX=a,this._startOffsetY=c}_attachEventToAnchor(n,t="__SpreadsheetTransformerResizeLT__"){n.onPointerDownObserver.add((e,s)=>{const{offsetX:i,offsetY:o}=e;this._startOffsetX=i,this._startOffsetY=o;const a=this._getTopScene();if(a==null)return;a.disableEvent();const c=a2.create(a);c.startScroll(i,o);const{scrollX:l,scrollY:u}=e2(c);this._viewportScrollX=l,this._viewportScrollY=u;const h=this._getRotateAnchorCursor(t);this._moveObserver=a.onPointerMoveObserver.add(g=>{const{offsetX:p,offsetY:b}=g;this._anchorMoving(t,p,b,c),c.scrolling(p,b,()=>{this._anchorMoving(t,p,b,c)}),a.setCursor(h)}),this._upObserver=a.onPointerUpObserver.add(g=>{a.onPointerMoveObserver.remove(this._moveObserver),a.onPointerUpObserver.remove(this._upObserver),a.enableEvent(),a.resetCursor(),c.dispose(),this.onChangeEndObservable.notifyObservers({objects:this._selectedObjectMap,type:2})}),s.stopPropagation()})}_attachEventToRotate(n){n.onPointerDownObserver.add((t,e)=>{const{offsetX:s,offsetY:i}=t;this._startOffsetX=s,this._startOffsetY=i;const o=this._getTopScene();o!=null&&(o.disableEvent(),this._viewportScrollX=scrollX,this._viewportScrollY=scrollY,this._moveObserver=o.onPointerMoveObserver.add(a=>{}),this._upObserver=o.onPointerUpObserver.add(a=>{o.onPointerMoveObserver.remove(this._moveObserver),o.onPointerUpObserver.remove(this._upObserver),o.enableEvent()}),e.stopPropagation())})}_getOutlinePosition(n,t,e,s){return{left:-this.borderSpacing-this.borderStrokeWidth,top:-this.borderSpacing-this.borderStrokeWidth,width:n+this.borderSpacing*2,height:t+this.borderSpacing*2}}_getRotateAnchorCursor(n){let t=i1.NORTH_WEST_RESIZE;switch(n){case"__SpreadsheetTransformerRotate__":t=i1.MOVE;break;case"__SpreadsheetTransformerRotateLine__":t=i1.MOVE;break;case"__SpreadsheetTransformerResizeLT__":break;case"__SpreadsheetTransformerResizeCT__":t=i1.NORTH_RESIZE;break;case"__SpreadsheetTransformerResizeRT__":t=i1.NORTH_EAST_RESIZE;break;case"__SpreadsheetTransformerResizeLM__":t=i1.WEST_RESIZE;break;case"__SpreadsheetTransformerResizeRM__":t=i1.EAST_RESIZE;break;case"__SpreadsheetTransformerResizeLB__":t=i1.SOUTH_WEST_RESIZE;break;case"__SpreadsheetTransformerResizeCB__":t=i1.SOUTH_RESIZE;break;case"__SpreadsheetTransformerResizeRB__":t=i1.SOUTH_EAST_RESIZE;break}return t}_getRotateAnchorPosition(n,t,e,s,i){let o=-this.anchorSize/2,a=-this.anchorSize/2;switch(n){case"__SpreadsheetTransformerRotate__":o=e/2-this.rotateSize/2,a=-this.rotateAnchorOffset-this.borderSpacing-this.borderStrokeWidth*2-this.rotateSize;break;case"__SpreadsheetTransformerRotateLine__":o=e/2,a=-this.rotateAnchorOffset-this.borderSpacing-this.borderStrokeWidth;break;case"__SpreadsheetTransformerResizeLT__":o+=-this.borderSpacing-this.borderStrokeWidth,a+=-this.borderSpacing-this.borderStrokeWidth;break;case"__SpreadsheetTransformerResizeCT__":o+=e/2,a+=-this.borderSpacing-this.borderStrokeWidth;break;case"__SpreadsheetTransformerResizeRT__":o+=e+this.borderSpacing-this.borderStrokeWidth,a+=-this.borderSpacing-this.borderStrokeWidth;break;case"__SpreadsheetTransformerResizeLM__":o+=-this.borderSpacing-this.borderStrokeWidth,a+=t/2;break;case"__SpreadsheetTransformerResizeRM__":o+=e+this.borderSpacing-this.borderStrokeWidth,a+=t/2;break;case"__SpreadsheetTransformerResizeLB__":o+=-this.borderSpacing-this.borderStrokeWidth,a+=t+this.borderSpacing-this.borderStrokeWidth;break;case"__SpreadsheetTransformerResizeCB__":o+=e/2,a+=t+this.borderSpacing-this.borderStrokeWidth;break;case"__SpreadsheetTransformerResizeRB__":o+=e+this.borderSpacing-this.borderStrokeWidth,a+=t+this.borderSpacing-this.borderStrokeWidth;break}return{left:o,top:a}}_createResizeAnchor(n,t,e){const{height:s,width:i,scaleX:o,scaleY:a}=t.getState(),{left:c,top:l}=this._getRotateAnchorPosition(n,s,i,o,a),u=this._getRotateAnchorCursor(n),h=new f1(`${n}_${e}`,{zIndex:e-1,fill:this.anchorFill,stroke:this.anchorStroke,strokeWidth:this.anchorStrokeWidth,width:this.anchorSize,height:this.anchorSize,radius:this.anchorCornerRadius,left:c,top:l});return this._attachHover(h,u,i1.DEFAULT),h}_checkTransformerType(n){if(n.indexOf("__SpreadsheetTransformerOutline__")>-1)return"__SpreadsheetTransformerOutline__";if(n.indexOf("__SpreadsheetTransformerRotate__")>-1)return"__SpreadsheetTransformerRotate__";if(n.indexOf("__SpreadsheetTransformerRotateLine__")>-1)return"__SpreadsheetTransformerRotateLine__";if(n.indexOf("__SpreadsheetTransformerResizeLT__")>-1)return"__SpreadsheetTransformerResizeLT__";if(n.indexOf("__SpreadsheetTransformerResizeCT__")>-1)return"__SpreadsheetTransformerResizeCT__";if(n.indexOf("__SpreadsheetTransformerResizeRT__")>-1)return"__SpreadsheetTransformerResizeRT__";if(n.indexOf("__SpreadsheetTransformerResizeLM__")>-1)return"__SpreadsheetTransformerResizeLM__";if(n.indexOf("__SpreadsheetTransformerResizeRM__")>-1)return"__SpreadsheetTransformerResizeRM__";if(n.indexOf("__SpreadsheetTransformerResizeLB__")>-1)return"__SpreadsheetTransformerResizeLB__";if(n.indexOf("__SpreadsheetTransformerResizeCB__")>-1)return"__SpreadsheetTransformerResizeCB__";if(n.indexOf("__SpreadsheetTransformerResizeRB__")>-1)return"__SpreadsheetTransformerResizeRB__"}_updateControlIterator(n){this._transformerControlMap.forEach((t,e)=>{const s=this._selectedObjectMap.get(e);if(!s)return!0;n(t,s)})}_updateControl(){this._updateControlIterator((n,t)=>{const{left:e,top:s}=t.getState();n.transformByState({left:e,top:s}),n.show(),n.makeDirty(!0)})}_hideControl(){this._transformerControlMap.forEach(n=>{n.hide(),n.makeDirty(!0)})}_attachHover(n,t,e){n.onPointerEnterObserver.add(()=>{n.cursor=t}),n.onPointerLeaveObserver.add(()=>{n.cursor=e})}_clearControl(){this._transformerControlMap.forEach(n=>{n.dispose()}),this._transformerControlMap.clear(),this.onClearControlObservable.notifyObservers(null)}_createControl(n){const{left:t,top:e,height:s,width:i,angle:o,scaleX:a,scaleY:c,skewX:l,skewY:u,flipX:h,flipY:g}=n.getState(),p=n.oKey,b=this._selectedObjectMap.size,v=[];if(this.borderEnabled){const E=new f1(`__SpreadsheetTransformerOutline___${b}`,{zIndex:b-1,evented:!1,strokeWidth:this.borderStrokeWidth,stroke:this.borderStroke,...this._getOutlinePosition(i,s,a,c)});v.push(E)}if(this.resizeEnabled){const{left:E,top:y}=this._getRotateAnchorPosition("__SpreadsheetTransformerRotateLine__",s,i,a,c),T=new f1(`__SpreadsheetTransformerRotateLine___${b}`,{zIndex:b-1,evented:!1,left:E,top:y,height:this.rotateAnchorOffset,width:1,strokeWidth:this.borderStrokeWidth,stroke:this.borderStroke}),{left:O,top:F}=this._getRotateAnchorPosition("__SpreadsheetTransformerRotate__",s,i,a,c),w=this._getRotateAnchorCursor("__SpreadsheetTransformerRotate__"),B=new f1(`__SpreadsheetTransformerRotate___${b}`,{zIndex:b-1,left:O,top:F,height:this.rotateSize,width:this.rotateSize,radius:this.rotateCornerRadius,strokeWidth:this.borderStrokeWidth*2,stroke:this.borderStroke});this._attachEventToRotate(B),this._attachHover(B,w,i1.DEFAULT),v.push(T,B)}if(this.resizeEnabled)for(let E=0,y=this.enabledAnchors.length;E<y;E++){if(this.enabledAnchors[E]!==1)continue;const O=xf[E],F=this._createResizeAnchor(O,n,b);this._attachEventToAnchor(F,O),v.push(F)}const m=new At(`__SpreadsheetTransformer___${b}`,...v);return m.zIndex=b,m.evented=!1,m.transformByState({left:t,top:e}),this.getScene().addObject(m,2),this._transformerControlMap.set(p,m),this.onCreateControlObservable.notifyObservers(m),m}_getTopScene(){var t;return(t=this.getScene().getEngine())==null?void 0:t.activeScene}_moving(n,t,e){const{scrollX:s,scrollY:i}=e2(e),o=n-this._viewportScrollX+s,a=t-this._viewportScrollY+i,c=o-this._startOffsetX,l=a-this._startOffsetY;this._selectedObjectMap.forEach(u=>{u.translate(c+u.left,l+u.top)}),this.onChangingObservable.notifyObservers({objects:this._selectedObjectMap,moveX:c,moveY:l,type:1}),this._startOffsetX=o,this._startOffsetY=a}_updateActiveObjectList(n,t){this._selectedObjectMap.has(n.oKey)||(t.ctrlKey||(this._selectedObjectMap.clear(),this._clearControl()),this._selectedObjectMap.set(n.oKey,n),this._createControl(n))}_addCancelObserver(n){n.onPointerDownObserver.remove(this._cancelFocusObserver),this._cancelFocusObserver=n.onPointerDownObserver.add(t=>{this._selectedObjectMap.clear(),this._clearControl(),n.onPointerDownObserver.remove(this._cancelFocusObserver)})}}const m1=class m1{constructor(n){_(this,"_alreadyAttached",!1);_(this,"_onInputObserver");_(this,"_onPointerMove");_(this,"_onPointerDown");_(this,"_onPointerUp");_(this,"_onPointerEnter");_(this,"_onPointerLeave");_(this,"_onMouseWheel");_(this,"_onKeyDown");_(this,"_onKeyUp");_(this,"_scene");_(this,"_currentMouseEnterPicked");_(this,"_startingPosition",new R(1/0,1/0));_(this,"_delayedTimeout",-1);_(this,"_delayedTripeTimeout",-1);_(this,"_doubleClickOccurred",0);_(this,"_tripleClickState",!1);_(this,"_currentObject");this._scene=n}mouseLeaveEnterHandler(n){var e;const t=this._currentObject;if(t==null)(e=this._currentMouseEnterPicked)==null||e.triggerPointerLeave(n),this._currentMouseEnterPicked=null;else if(t!==this._currentMouseEnterPicked){const s=this._currentMouseEnterPicked;this._currentMouseEnterPicked=t,s==null||s.triggerPointerLeave(n),t==null||t.triggerPointerEnter(n)}}attachControl(n=!0,t=!0,e=!0,s=!0,i=!0,o=!0){const a=this._scene.getEngine();a&&(this._onPointerEnter=c=>{var l;c.pointerId===void 0&&(c.pointerId=0),this._currentObject=this._getCurrentObject(c.offsetX,c.offsetY),(l=this._currentObject)==null||l.triggerPointerMove(c),this.mouseLeaveEnterHandler(c)},this._onPointerLeave=c=>{c.pointerId===void 0&&(c.pointerId=0),this._currentObject=null,this.mouseLeaveEnterHandler(c)},this._onPointerMove=c=>{var u;c.pointerId===void 0&&(c.pointerId=0),this._currentObject=this._getCurrentObject(c.offsetX,c.offsetY);const l=(u=this._currentObject)==null?void 0:u.triggerPointerMove(c);this.mouseLeaveEnterHandler(c),this._checkDirectSceneEventTrigger(!l,this._currentObject)&&this._scene.onPointerMoveObserver.hasObservers()&&this._scene.onPointerMoveObserver.notifyObservers(c)},this._onPointerDown=c=>{c.pointerId===void 0&&(c.pointerId=0);const l=this._getCurrentObject(c.offsetX,c.offsetY),u=l==null?void 0:l.triggerPointerDown(c);this._checkDirectSceneEventTrigger(!u,l)&&this._scene.onPointerDownObserver.hasObservers()&&this._scene.onPointerDownObserver.notifyObservers(c)},this._onPointerUp=c=>{c.pointerId===void 0&&(c.pointerId=0);const l=this._getCurrentObject(c.offsetX,c.offsetY),u=l==null?void 0:l.triggerPointerUp(c);this._checkDirectSceneEventTrigger(!u,l)&&this._scene.onPointerUpObserver.hasObservers()&&this._scene.onPointerUpObserver.notifyObservers(c),this._prePointerDoubleOrTripleClick(c)},this._onMouseWheel=c=>{const l=this._getCurrentObject(c.offsetX,c.offsetY),u=l==null?void 0:l.triggerMouseWheel(c);this._scene.getViewports().forEach(h=>{h.onMouseWheelObserver.hasObservers()&&h.onMouseWheelObserver.notifyObservers(c)}),this._checkDirectSceneEventTrigger(!u,l)&&this._scene.onMouseWheelObserver.hasObservers()&&this._scene.onMouseWheelObserver.notifyObservers(c)},this._onKeyDown=c=>{this._scene.onKeyDownObservable.hasObservers()&&this._scene.onKeyDownObservable.notifyObservers(c)},this._onKeyUp=c=>{this._scene.onKeyUpObservable.hasObservers()&&this._scene.onKeyUpObservable.notifyObservers(c)},this._onInputObserver=a.onInputChangedObservable.add(c=>{const l=c;c.deviceType===d1.Keyboard&&(c.currentState===1&&this._onKeyDown(l),c.currentState===0&&this._onKeyUp(l)),(c.deviceType===d1.Mouse||c.deviceType===d1.Touch)&&(n&&c.inputIndex>=L.LeftClick&&c.inputIndex<=L.RightClick&&c.currentState===1&&this._onPointerDown(l),t&&c.inputIndex>=L.LeftClick&&c.inputIndex<=L.RightClick&&c.currentState===0&&this._onPointerUp(l),e&&(c.inputIndex===L.Horizontal||c.inputIndex===L.Vertical||c.inputIndex===L.DeltaHorizontal||c.inputIndex===L.DeltaVertical)?this._onPointerMove(l):s&&(c.inputIndex===L.MouseWheelX||c.inputIndex===L.MouseWheelY||c.inputIndex===L.MouseWheelZ)?this._onMouseWheel(l):i&&c.currentState===2?this._onPointerEnter(l):o&&c.currentState===3&&this._onPointerLeave(l))}),this._alreadyAttached=!0)}detachControl(){if(!this._alreadyAttached)return;const n=this._scene.getEngine();n&&(n.onInputChangedObservable.remove(this._onInputObserver),this._alreadyAttached=!1)}_getCurrentObject(n,t){var e;return(e=this._scene)==null?void 0:e.pick(R.FromArray([n,t]))}_checkDirectSceneEventTrigger(n,t){let e=!1;t==null&&(e=!0);let s=!0;if(t&&t.classType===N.BASE_OBJECT){const i=t.getScene();i&&(s=i.getParent().classType!==N.SCENE_VIEWER)}return!this._scene.evented&&n&&s||e}_isPointerSwiping(n,t){return Math.abs(this._startingPosition.x-n)>m1.DragMovementThreshold||Math.abs(this._startingPosition.y-t)>m1.DragMovementThreshold}_prePointerDoubleOrTripleClick(n){var i,o,a,c;const{clientX:t,clientY:e}=n;this._delayedTimeout=setTimeout(()=>{this._resetDoubleClickParam()},m1.DoubleClickDelay),this._isPointerSwiping(t,e)&&this._resetDoubleClickParam(),this._doubleClickOccurred+=1,this._tripleClickState&&((o=(i=this._scene)==null?void 0:i.pick(R.FromArray([n.offsetX,n.offsetY])))==null||o.triggerTripleClick(n),this._scene.onTripleClickObserver.hasObservers()&&this._scene.onTripleClickObserver.notifyObservers(n)),this._doubleClickOccurred===2&&((c=(a=this._scene)==null?void 0:a.pick(R.FromArray([n.offsetX,n.offsetY])))==null||c.triggerDblclick(n),this._scene.onDblclickObserver.hasObservers()&&this._scene.onDblclickObserver.notifyObservers(n),this._resetDoubleClickParam(),this._tripleClickState=!0,clearTimeout(this._delayedTripeTimeout),this._delayedTripeTimeout=setTimeout(()=>{this._tripleClickState=!1},m1.TripleClickDelay)),this._startingPosition.x=t,this._startingPosition.y=e}_resetDoubleClickParam(){this._doubleClickOccurred=0,clearTimeout(this._delayedTimeout)}};_(m1,"DragMovementThreshold",2),_(m1,"LongPressDelay",500),_(m1,"DoubleClickDelay",500),_(m1,"TripleClickDelay",300),_(m1,"ExclusiveDoubleClickMode",!1);let w6=m1;class Lf{constructor(n){_(this,"onTransformChangeObservable",new f.Observable);_(this,"onPointerDownObserver",new f.Observable);_(this,"onPointerMoveObserver",new f.Observable);_(this,"onPointerUpObserver",new f.Observable);_(this,"onPointerEnterObserver",new f.Observable);_(this,"onPointerLeaveObserver",new f.Observable);_(this,"onDblclickObserver",new f.Observable);_(this,"onTripleClickObserver",new f.Observable);_(this,"onMouseWheelObserver",new f.Observable);_(this,"onKeyDownObservable",new f.Observable);_(this,"onKeyUpObservable",new f.Observable);_(this,"debounceParentTimeout",-1);_(this,"_sceneKey","");_(this,"_width",100);_(this,"_height",100);_(this,"_scaleX",1);_(this,"_scaleY",1);_(this,"_transform",new o1);_(this,"_evented",!0);this._sceneKey=n}get classType(){return N.SCENE}get transform(){return this._transform}get width(){return this._width}get height(){return this._height}get scaleX(){return this._scaleX}get scaleY(){return this._scaleY}get sceneKey(){return this._sceneKey}get evented(){return this._evented}set transform(n){this._transform=n}set width(n){this._width=n}set height(n){this._height=n}set scaleX(n){this._scaleX=n}set scaleY(n){this._scaleY=n}enableEvent(){this._evented=!0}disableEvent(){this._evented=!1}on(n,t){return this[`on${n}Observer`].add(t.bind(this))}off(n,t){this[`on${n}Observer`].remove(t)}remove(n){this[`on${n}Observer`].clear()}triggerKeyDown(n){this.onKeyDownObservable.notifyObservers(n)}triggerKeyUp(n){this.onKeyUpObservable.notifyObservers(n)}triggerPointerUp(n){}triggerMouseWheel(n){}triggerPointerMove(n){}triggerDblclick(n){}triggerTripleClick(n){}triggerPointerDown(n){}triggerPointerOut(n){}triggerPointerLeave(n){}triggerPointerOver(n){}triggerPointerEnter(n){}renderObjects(n,t){}render(n){}getParent(){}dispose(){}getObject(n){}addObject(n,t=1){}addObjects(n,t=1){}getEngine(){}setObjectBehavior(n){}applyTransformer(n){}makeDirtyNoParent(n=!0){return this}makeDirty(n=!0){return this}pick(n){}getViewports(){return[]}removeViewport(n){}getAncestorScale(){return{scaleX:1,scaleY:1}}}class xt extends Lf{constructor(t,e,s){var i;super(t);_(this,"_layers",[]);_(this,"_viewports",[]);_(this,"_cursor",i1.DEFAULT);_(this,"_defaultCursor",i1.DEFAULT);_(this,"_addObject$",new p1.BehaviorSubject(this));_(this,"addObject$",this._addObject$.asObservable());_(this,"_transformer");_(this,"_transformerOpenState",!1);_(this,"_inputManager");if(this._parent=e,s&&this.transformByState(s),this._parent.classType===N.ENGINE){const o=this._parent;o.addScene(this),o.hasActiveScene()||o.setActiveScene(t),this._inputManager=new w6(this)}else this._parent.classType===N.SCENE_VIEWER&&this._parent.addSubScene(this);(i=this._parent)==null||i.onTransformChangeObservable.add(o=>{this._setTransForm()})}get ancestorScaleX(){const t=this.getParent();let e=1;return t.classType===N.SCENE_VIEWER&&(e=t.ancestorScaleX),this.scaleX*e}get ancestorScaleY(){const t=this.getParent();let e=1;return t.classType===N.SCENE_VIEWER&&(e=t.ancestorScaleY),this.scaleY*e}set cursor(t){this.setCursor(t)}attachControl(t=!0,e=!0,s=!0,i=!0){var o;if(this._parent.classType===N.ENGINE)return(o=this._inputManager)==null||o.attachControl(t,e,s,i),this}detachControl(){var t;return(t=this._inputManager)==null||t.detachControl(),this}makeDirty(t=!0){var e;return this._layers.forEach(s=>{s.makeDirty(t)}),this._parent.classType===N.SCENE_VIEWER&&((e=this._parent)==null||e.makeDirty(t)),this}makeDirtyNoParent(t=!0){return this._viewports.forEach(e=>{e.makeDirty(t)}),this}enableLayerCache(...t){t.forEach(e=>{this.getLayer(e).enableCache()})}disableLayerCache(...t){t.forEach(e=>{this.getLayer(e).disableCache()})}isDirty(){for(let t=0;t<this._layers.length;t++)if(this._layers[t].isDirty()===!0)return!0;return!1}getCursor(){return this._cursor}resetCursor(){this.setCursor(this._defaultCursor)}setCursor(t){this._cursor=t;const e=this.getEngine();e&&e.setCanvasCursor(t)}setDefaultCursor(t){this._defaultCursor=t,this.resetCursor()}resize(t,e){const s=this.width;t!==void 0&&(this.width=t);const i=this.height;return e!==void 0&&(this.height=e),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.resize,value:{width:this.width,height:this.height},preValue:{width:s,height:i}}),this}scale(t,e){const s=this.scaleX;t!==void 0&&(this.scaleX=t);const i=this.scaleY;return e!==void 0&&(this.scaleY=e),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.scale,value:{scaleX:this.scaleX,scaleY:this.scaleY},preValue:{scaleX:s,scaleY:i}}),this}scaleBy(t,e){const s=this.scaleX;t!==void 0&&(this.scaleX+=t);const i=this.scaleY;return e!==void 0&&(this.scaleY+=e),this.scaleX=X2(this.scaleX,1),this.scaleY=X2(this.scaleY,1),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.scale,value:{scaleX:this.scaleX,scaleY:this.scaleY},preValue:{scaleX:s,scaleY:i}}),this}transformByState(t){const e=Object.keys(t),s={};e.length!==0&&(e.forEach(i=>{t[i]!==void 0&&(s[i]=this[i],this[i]=t[i])}),this._setTransForm(),this.onTransformChangeObservable.notifyObservers({type:n1.all,value:t,preValue:s}))}getParent(){return this._parent}getEngine(){if(this._parent.classType===N.ENGINE)return this._parent;let t=this._parent;for(;t;){if(t.classType===N.ENGINE)return t;t=t==null?void 0:t.getParent()}return null}getLayers(){return this._layers}getLayer(t=1){for(const e of this._layers)if(e.zIndex===t)return e;return this._createDefaultLayer(t)}getLayerMaxZIndex(){let t=Number.MIN_VALUE;for(let e=0;e<this._layers.length;e++){const s=this._layers[e];s.zIndex>=t&&(t=s.zIndex)}return t}addLayer(...t){this._layers.push(...t)}addObject(t,e=1){var s;return(s=this.getLayer(e))==null||s.addObject(t),this._addObject$.next(this),this}setObjectBehavior(t){t.parent||(t.parent=this),t.onIsAddedToParentObserver.notifyObservers(this)}addObjects(t,e=1){var s;return(s=this.getLayer(e))==null||s.addObjects(t),this._addObject$.next(this),this}removeObject(t){if(t==null)return;const e=this.getLayers();for(const s of e)s.removeObject(t);return this}removeObjects(t){if(t==null)return;const e=this.getLayers();for(const s of e)s.removeObjects(t);return this}getAllObjects(){const t=[];this._layers.sort(f.sortRules);for(const e of this._layers)t.push(...e.getObjectsByOrder());return t}getAllObjectsByOrder(t=!1){const e=[],s=t?f.sortRulesByDesc:f.sortRules;this._layers.sort(s);for(const i of this._layers)e.push(...i.getObjectsByOrder().sort(s));return e}getAllObjectsByOrderForPick(t=!1){const e=[],s=t?f.sortRulesByDesc:f.sortRules;this._layers.sort(s);for(const i of this._layers)e.push(...i.getObjectsByOrderForPick().sort(s));return e}getObject(t){for(const e of this._layers){const s=e.getObjectsByOrder();for(const i of s)if(i.oKey===t)return i}}fuzzyMathObjects(t){const e=[];for(const s of this._layers){const i=s.getObjectsByOrder();for(const o of i)o.oKey.indexOf(t)>-1&&i.push(o)}return e}addViewport(...t){return this._viewports.push(...t),this}removeViewport(t){for(let e=0,s=this._viewports.length;e<s;e++){const i=this._viewports[e];if(i.viewPortKey===t)return this._viewports.splice(e,1),i}}getViewports(){return this._viewports}getViewport(t){for(const e of this._viewports)if(e.viewPortKey===t)return e}changeObjectOrder(){}render(t){var s;if(!this.isDirty())return;!t&&((s=this.getEngine())==null||s.clearCanvas());const e=this._layers.sort(f.sortRules);for(let i=0,o=e.length;i<o;i++)e[i].render(t,i===o-1)}async requestRender(t){return new Promise((e,s)=>{this.render(t),C2(e)})}openTransformer(t){this._transformer||(this._transformer=new Mf(this,t)),this._transformerOpenState=!0}closeTransformer(t=!1){t&&(this._transformer=null),this._transformerOpenState=!1}applyTransformer(t){var e;this._transformerOpenState&&((e=this._transformer)==null||e.attachTo(t))}getTransformer(){return this._transformer}getActiveViewportByRelativeCoord(t){return this._viewports.find(e=>e.isHit(t))}getActiveViewportByCoord(t){return t=this.getRelativeCoord(t),this.getActiveViewportByRelativeCoord(t)}getScrollXYByRelativeCoords(t,e){return e||(e=this.getActiveViewportByRelativeCoord(t)),e?this.getScrollXY(e):{x:0,y:0}}getScrollXY(t){let e=0,s=0;if(t){const i=t.actualScrollX||0,o=t.actualScrollY||0;e+=i,s+=o}return{x:e,y:s}}getRelativeCoord(t){let e=this.getParent();const s=[];for(;e;)(e.classType===N.SCENE||e.classType===N.SCENE_VIEWER)&&s.push(e),e=(e==null?void 0:e.getParent)&&(e==null?void 0:e.getParent());s.reverse();for(const i of s)if(i.classType===N.SCENE){const a=i.getActiveViewportByCoord(t);if(a){const c=a.actualScrollX||0,l=a.actualScrollY||0;t=t.addByPoint(c,l)}}else i.classType===N.SCENE_VIEWER&&(t=i.transform.clone().invert().applyPoint(t));return t}clearLayer(){this._layers=[]}clearViewports(){this._viewports=[]}getAncestorScale(){let{scaleX:t=1,scaleY:e=1}=this;return this.classType===N.SCENE_VIEWER&&(t=this.ancestorScaleX||1,e=this.ancestorScaleY||1),{scaleX:t,scaleY:e}}dispose(){var t;this.getLayers().forEach(e=>{e.dispose()}),this.getViewports().forEach(e=>{e.dispose()}),this.clearLayer(),this.clearViewports(),this.detachControl(),(t=this._transformer)==null||t.dispose(),this.onPointerDownObserver.clear(),this.onPointerMoveObserver.clear(),this.onPointerUpObserver.clear(),this.onPointerEnterObserver.clear(),this.onPointerLeaveObserver.clear(),this.onDblclickObserver.clear(),this.onTripleClickObserver.clear(),this.onMouseWheelObserver.clear(),this.onKeyDownObservable.clear(),this.onKeyUpObservable.clear()}pick(t){let e=this.getActiveViewportByCoord(t);if(e||(e=this._viewports[0]),!this.evented||!e)return;const s=e.pickScrollBar(t);if(s)return s;const i=e.getRelativeVector(t);let o=null;const a=this.getAllObjectsByOrderForPick().reverse(),c=a.length;for(let l=0;l<c;l++){const u=a[l];if(!u.visible||!u.evented||u.classType===N.GROUP)continue;let h=i;if(u.isInGroup&&u.parent.classType===N.GROUP){const{cumLeft:g,cumTop:p}=this._getGroupCumLeftRight(u);h=h.clone().add(R.FromArray([-g,-p]))}if(u.isHit(h)){if(u.classType===N.SCENE_VIEWER){const g=u.pick(h);g?o=g:o=u.getActiveSubScene()}else o=u;break}else if(u.classType===N.SCENE_VIEWER&&u.allowSelectedClipElement()){const g=u.pick(h);if(g){o=g;break}}}return!o&&this._parent.classType===N.ENGINE?this:o}triggerKeyDown(t){this.onKeyDownObservable.notifyObservers(t)}triggerKeyUp(t){this.onKeyUpObservable.notifyObservers(t)}triggerPointerUp(t){var e,s;return!((e=this.onPointerUpObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===N.SCENE_VIEWER?((s=this._parent)==null||s.triggerPointerUp(t),!1):!0}triggerMouseWheel(t){var e,s;return!((e=this.onMouseWheelObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===N.SCENE_VIEWER?((s=this._parent)==null||s.triggerMouseWheel(t),!1):!0}triggerPointerMove(t){var e,s;return!((e=this.onPointerMoveObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===N.SCENE_VIEWER?((s=this._parent)==null||s.triggerPointerMove(t),!1):!0}triggerDblclick(t){var e,s;return!((e=this.onDblclickObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===N.SCENE_VIEWER?((s=this._parent)==null||s.triggerDblclick(t),!1):!0}triggerTripleClick(t){var e,s;return!((e=this.onTripleClickObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===N.SCENE_VIEWER?((s=this._parent)==null||s.triggerTripleClick(t),!1):!0}triggerPointerDown(t){var e,s;return!((e=this.onPointerDownObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===N.SCENE_VIEWER?((s=this._parent)==null||s.triggerPointerDown(t),!1):!0}triggerPointerOut(t){var e;return this._parent.classType===N.SCENE_VIEWER?((e=this._parent)==null||e.triggerPointerOut(t),!1):!0}triggerPointerLeave(t){var e,s;return!((e=this.onPointerLeaveObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===N.SCENE_VIEWER?((s=this._parent)==null||s.triggerPointerLeave(t),!1):!0}triggerPointerOver(t){var e;return this._parent.classType===N.SCENE_VIEWER?((e=this._parent)==null||e.triggerPointerOver(t),!1):!0}triggerPointerEnter(t){var e,s;return!((e=this.onPointerEnterObserver.notifyObservers(t))!=null&&e.stopPropagation)&&this._parent.classType===N.SCENE_VIEWER?((s=this._parent)==null||s.triggerPointerEnter(t),!1):!0}_createDefaultLayer(t=1){const e=new Rt(this,[],t);return this.addLayer(e),e}_setTransForm(){const t=o1.create().composeMatrix({scaleX:this.scaleX,scaleY:this.scaleY});this.transform=t,this.getViewports().forEach(e=>{e.resetSizeAndScrollBar()}),this.makeDirty(!0)}_getGroupCumLeftRight(t){let e=t.parent,s=0,i=0;for(;e.classType===N.GROUP;){const{left:o,top:a}=e;s+=o,i+=a,e=e.parent}return{cumLeft:s,cumTop:i}}}const If={width:1500,height:1e3},Pf="_UNIVER_SCENE_";class Mt{constructor(){_(this,"_defaultEngine",new K2);_(this,"_currentUnitId","");_(this,"_renderMap",new Map);_(this,"_currentRender$",new p1.BehaviorSubject(this._currentUnitId));_(this,"currentRender$",this._currentRender$.asObservable())}get defaultEngine(){return this._defaultEngine}dispose(){this._renderMap.forEach(n=>{this._disposeItem(n)}),this._renderMap.clear(),this._currentRender$.complete()}createRenderWithParent(n,t){const e=this.getRenderById(t);if(e==null)throw new Error("parent render is null");const{scene:s,engine:i}=e,o=this._createRender(n,i,!1),a=o.scene,c=new a7(n);return c.addSubScene(a),s.addObject(c),o}createRender(n){const t=new K2;return this._createRender(n,t)}_createRender(n,t,e=!0){const s=this.getRenderById(n);let i=!0;s!=null&&s.engine===t&&(i=!1),this._disposeItem(s,i);const{width:o,height:a}=If,c=new xt(Pf+n,t,{width:o,height:a}),l={unitId:n,engine:t,scene:c,mainComponent:null,components:new Map,isMainScene:e};return this.addItem(n,l),l}addItem(n,t){this._renderMap.set(n,t)}removeItem(n){const t=this._renderMap.get(n);t!=null&&this._disposeItem(t),this._renderMap.delete(n)}setCurrent(n){this._currentUnitId=n,this._currentRender$.next(n)}getCurrent(){return this.getRenderById(this._currentUnitId)}getRenderById(n){return this._renderMap.get(n)}getRenderAll(){return this._renderMap}_disposeItem(n,t=!0){if(n==null)return;const{engine:e,scene:s,components:i,mainComponent:o}=n;i==null||i.forEach(a=>{a.dispose()}),o==null||o.dispose(),s.dispose(),t&&e.dispose()}}const Lt=n2.createIdentifier("univer.render-manager-service");var $f=Object.defineProperty,kf=Object.getOwnPropertyDescriptor,Nf=(r,n,t,e)=>{for(var s=e>1?void 0:e?kf(n,t):n,i=r.length-1,o;i>=0;i--)(o=r[i])&&(s=(e?o(n,t,s):o(s))||s);return e&&s&&$f(n,t,s),s},Hf=(r,n)=>(t,e)=>n(t,e,r);const It=n2.createIdentifier("univer.render-engine"),Xf="render-engine";var D6;exports.UniverRenderEnginePlugin=(D6=class extends f.Plugin{constructor(n,t){super(Xf),this._injector=t,this._injector.add([It,{useFactory:()=>new K2}]),this._injector.add([Lt,{useClass:Mt}])}},_(D6,"type",f.PluginType.Univer),D6);exports.UniverRenderEnginePlugin=Nf([Hf(1,n2.Inject(n2.Injector))],exports.UniverRenderEnginePlugin);const Pt=["radius"];class c7 extends u2{constructor(t,e){super(t,e);_(this,"_radius");this._radius=(e==null?void 0:e.radius)||10,this._setFixBoundingBox(),this.onTransformChangeObservable.add(s=>{const{type:i,value:o,preValue:a}=s;if(i===n1.resize||i===n1.all){const c=Math.min(this.width,this.height);this._radius=c/2,this.width=c,this.height=c,this._setTransForm()}})}get radius(){return this._radius}static drawWith(t,e){let{radius:s}=e;s=s??10,t.beginPath(),e.strokeDashArray&&t.setLineDash(e.strokeDashArray),t.beginPath(),t.arc(s,s,s||0,0,Math.PI*2,!1),t.closePath(),this._renderPaintInOrder(t,e)}toJson(){const t={};return Pt.forEach(e=>{this[e]&&(t[e]=this[e])}),{...super.toJson(),...t}}_draw(t){c7.drawWith(t,this)}_setFixBoundingBox(){this.transformByState({width:this._radius*2,height:this._radius*2})}}class zf{}class Wf{}class q2 extends u2{constructor(t,e){super(t,e);_(this,"_props");_(this,"_native");this._props={autoWidth:!1,autoHeight:!1,...e},e.image?(this._native=e.image,this._init()):e.url&&(this._native=document.createElement("img"),this._native.src=e.url,this._native.onload=()=>{var s;(s=e.success)==null||s.call(e),this._init(),this.makeDirty(!0)},this._native.onerror=()=>{e.fail?e.fail():(this._native.src="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTMwNC4xMjggNDU2LjE5MmM0OC42NCAwIDg4LjA2NC0zOS40MjQgODguMDY0LTg4LjA2NHMtMzkuNDI0LTg4LjA2NC04OC4wNjQtODguMDY0LTg4LjA2NCAzOS40MjQtODguMDY0IDg4LjA2NCAzOS40MjQgODguMDY0IDg4LjA2NCA4OC4wNjR6bTAtMTE2LjIyNGMxNS4zNiAwIDI4LjE2IDEyLjI4OCAyOC4xNiAyOC4xNnMtMTIuMjg4IDI4LjE2LTI4LjE2IDI4LjE2LTI4LjE2LTEyLjI4OC0yOC4xNi0yOC4xNiAxMi4yODgtMjguMTYgMjguMTYtMjguMTZ6IiBmaWxsPSIjZTZlNmU2Ii8+PHBhdGggZD0iTTg4Ny4yOTYgMTU5Ljc0NEgxMzYuNzA0Qzk2Ljc2OCAxNTkuNzQ0IDY0IDE5MiA2NCAyMzIuNDQ4djU1OS4xMDRjMCAzOS45MzYgMzIuMjU2IDcyLjcwNCA3Mi43MDQgNzIuNzA0aDE5OC4xNDRMNTAwLjIyNCA2ODguNjRsLTM2LjM1Mi0yMjIuNzIgMTYyLjMwNC0xMzAuNTYtNjEuNDQgMTQzLjg3MiA5Mi42NzIgMjE0LjAxNi0xMDUuNDcyIDE3MS4wMDhoMzM1LjM2QzkyNy4yMzIgODY0LjI1NiA5NjAgODMyIDk2MCA3OTEuNTUyVjIzMi40NDhjMC0zOS45MzYtMzIuMjU2LTcyLjcwNC03Mi43MDQtNzIuNzA0em0tMTM4Ljc1MiA3MS42OHYuNTEySDg1Ny42YzE2LjM4NCAwIDMwLjIwOCAxMy4zMTIgMzAuMjA4IDMwLjIwOHYzOTkuODcyTDY3My4yOCA0MDguMDY0bDc1LjI2NC0xNzYuNjR6TTMwNC42NCA3OTIuMDY0SDE2NS44ODhjLTE2LjM4NCAwLTMwLjIwOC0xMy4zMTItMzAuMjA4LTMwLjIwOHYtOS43MjhsMTM4Ljc1Mi0xNjQuMzUyIDEwNC45NiAxMjQuNDE2LTc0Ljc1MiA3OS44NzJ6bTgxLjkyLTM1NS44NGwzNy4zNzYgMjI4Ljg2NC0uNTEyLjUxMi0xNDIuODQ4LTE2OS45ODRjLTMuMDcyLTMuNTg0LTkuMjE2LTMuNTg0LTEyLjI4OCAwTDEzNS42OCA2NTIuOFYyNjIuMTQ0YzAtMTYuMzg0IDEzLjMxMi0zMC4yMDggMzAuMjA4LTMwLjIwOGg0NzQuNjI0TDM4Ni41NiA0MzYuMjI0em01MDEuMjQ4IDMyNS42MzJjMCAxNi44OTYtMTMuMzEyIDMwLjIwOC0yOS42OTYgMzAuMjA4SDY4MC45Nmw1Ny4zNDQtOTMuMTg0LTg3LjU1Mi0yMDIuMjQgNy4xNjgtNy42OCAyMjkuODg4IDI3Mi44OTZ6IiBmaWxsPSIjZTZlNmU2Ii8+PC9zdmc+",this._init(),this.makeDirty(!0))})}static drawWith(t,e){var s;if((s=e._native)!=null&&s.complete){const{width:i,height:o}=e;try{t.drawImage(e._native,0,0,i,o)}catch(a){console.error(a)}}}static create(t,e,s){return new q2(t,{url:e,success:s})}getPictureProps(){return this._props}_draw(t){q2.drawWith(t,this)}_init(){var t,e;this._props.autoWidth&&this.resize(((t=this._native)==null?void 0:t.width)||0),this._props.autoHeight&&this.resize(void 0,((e=this._native)==null?void 0:e.height)||0)}}const B6=["text","richText"];class Yf extends M1{constructor(t,e,s){super(e);_(this,"_documentData");_(this,"_documentSkeleton");_(this,"_documents");_(this,"_ff");_(this,"_fs",12);_(this,"_it",f.BooleanNumber.FALSE);_(this,"_bl",f.BooleanNumber.FALSE);_(this,"_ul",{s:f.BooleanNumber.FALSE});_(this,"_st",{s:f.BooleanNumber.FALSE});_(this,"_ol",{s:f.BooleanNumber.FALSE});_(this,"_bg");_(this,"_bd");_(this,"_cl");this._localeService=t,s!=null&&s.richText?this._documentData=s.richText:s&&(this._fs=s.fs,this._ff=s.ff,this._it=s.it,this._bl=s.bl,this._ul=s.ul,this._st=s.st,this._ol=s.ol,this._bg=s.bg,this._bd=s.bd,this._cl=s.cl,this._documentData=this._convertToDocumentData(s.text||""));const i=new f.DocumentDataModel(this._documentData),o=new L1(i);this._documentSkeleton=o2.create(o,this._localeService),this._documents=new x2(`${this.oKey}_DOCUMENTS`,this._documentSkeleton,{pageMarginLeft:0,pageMarginTop:0}),this._initialProps(s),this.onTransformChangeObservable.add(a=>{const{type:c}=a;if(c===n1.resize||c===n1.all){i.updateDocumentDataPageSize(this.width),this._documentSkeleton.makeDirty(!0),this._documentSkeleton.calculate();const l=this.getDocsSkeletonPageSize();this.height=(l==null?void 0:l.height)||this.height,this._setTransForm()}})}get documentData(){return this._documentData}getDocsSkeletonPageSize(){var a;const t=(a=this._documentSkeleton)==null?void 0:a.getSkeletonData();if(!t)return;const{pages:e}=t,s=e[e.length-1],{width:i,height:o}=s;return{width:i,height:o}}setProps(t){if(!t)return;const e=Object.keys(t);if(e.length!==0)return e.forEach(s=>{if(t[s]===void 0)return!0;B6.indexOf(s)===-1&&(this[`_${s}`]=t[s])}),this.makeDirty(!0),this}render(t,e){if(!this.visible)return this.makeDirty(!1),this;if(this.isRender()){const{top:i,left:o,bottom:a,right:c}=e.viewBound;if(this.width+this.strokeWidth<o||c<0||this.height+this.strokeWidth<i||a<0)return this}const s=this.transform.getMatrix();return t.save(),t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._draw(t),t.restore(),this.makeDirty(!1),this}toJson(){const t={};return B6.forEach(e=>{this[e]&&(t[e]=this[e])}),{...super.toJson(),...t}}_draw(t){this._documents.render(t)}_convertToDocumentData(t){const e=t.length;return{id:"d",body:{dataStream:`${t}${f.DEFAULT_EMPTY_DOCUMENT_VALUE}`,textRuns:[{ts:{fs:this._fs||14,ff:this._ff,it:this._it,bl:this._bl,ul:this._ul,st:this._st,ol:this._ol,bg:this._bg,bd:this._bd,cl:this._cl},st:0,ed:e-1}]},documentStyle:{pageSize:{width:1/0,height:1/0}}}}_initialProps(t){this._documentSkeleton.getViewModel().getDataModel().updateDocumentDataPageSize(t==null?void 0:t.width,t==null?void 0:t.height),this._documentSkeleton.calculate();const e=this.getDocsSkeletonPageSize();this.transformByState({width:(e==null?void 0:e.width)||0,height:(e==null?void 0:e.height)||0,left:(t==null?void 0:t.left)||0,top:(t==null?void 0:t.top)||0,angle:t==null?void 0:t.angle}),this.setProps(t),this.makeDirty(!0)}}class jf{constructor(){_(this,"enableHorizontal",!0);_(this,"enableVertical",!0);_(this,"horizontalThumbWidth",0);_(this,"horizontalMinusMiniThumb",0);_(this,"horizontalBarWidth",0);_(this,"verticalThumbHeight",0);_(this,"verticalBarHeight",0);_(this,"verticalMinusMiniThumb",0);_(this,"horizonBarRect");_(this,"horizonThumbRect");_(this,"verticalBarRect");_(this,"verticalThumbRect");_(this,"placeholderBarRect")}get limitX(){var n;return(n=this.horizonThumbRect)!=null&&n.visible?this.horizontalBarWidth-this.horizontalThumbWidth:0}get limitY(){var n;return(n=this.verticalThumbRect)!=null&&n.visible?this.verticalBarHeight-this.verticalThumbHeight:0}get ratioScrollX(){return this.enableHorizontal===!1||this.horizontalThumbWidth===void 0||this.horizontalBarWidth===void 0?1:(this.horizontalThumbWidth-this.horizontalMinusMiniThumb)*this.miniThumbRatioX/this.horizontalBarWidth}get ratioScrollY(){return this.enableVertical===!1||this.verticalThumbHeight===void 0||this.verticalBarHeight===void 0?1:(this.verticalThumbHeight-this.verticalMinusMiniThumb)*this.miniThumbRatioY/this.verticalBarHeight}get miniThumbRatioX(){const n=this.horizontalBarWidth-this.horizontalThumbWidth,t=this.horizontalBarWidth-(this.horizontalThumbWidth-this.horizontalMinusMiniThumb);return n/t}get miniThumbRatioY(){const n=this.verticalBarHeight-this.verticalThumbHeight,t=this.verticalBarHeight-(this.verticalThumbHeight-this.verticalMinusMiniThumb);return n/t}pick(n){var t,e,s,i;return(t=this.horizonThumbRect)!=null&&t.isHit(n)?this.horizonThumbRect:(e=this.verticalThumbRect)!=null&&e.isHit(n)?this.verticalThumbRect:(s=this.horizonBarRect)!=null&&s.isHit(n)?this.horizonBarRect:(i=this.verticalBarRect)!=null&&i.isHit(n)?this.verticalBarRect:null}dispose(){var n,t,e,s,i;(n=this.horizonBarRect)==null||n.dispose(),(t=this.horizonThumbRect)==null||t.dispose(),(e=this.verticalBarRect)==null||e.dispose(),(s=this.verticalThumbRect)==null||s.dispose(),(i=this.placeholderBarRect)==null||i.dispose()}hasHorizonThumb(){var n;return((n=this.horizonThumbRect)==null?void 0:n.visible)||!1}hasVerticalThumb(){var n;return((n=this.verticalThumbRect)==null?void 0:n.visible)||!1}resize(n=0,t=0,e=0,s=0){}makeDirty(n){}render(n,t=0,e=0){}}const t2=17;class l7 extends jf{constructor(t,e){super();_(this,"_view");_(this,"_mainScene");_(this,"_lastX",-1);_(this,"_lastY",-1);_(this,"_isHorizonMove",!1);_(this,"_isVerticalMove",!1);_(this,"_horizonPointerMoveObserver");_(this,"_horizonPointerUpObserver");_(this,"_verticalPointerMoveObserver");_(this,"_verticalPointerUpObserver");_(this,"barSize",14);_(this,"barBorder",1);_(this,"thumbMargin",2);_(this,"thumbLengthRatio",1);_(this,"thumbBackgroundColor","#cccccc");_(this,"thumbHoverBackgroundColor","#b2b2b2");_(this,"thumbActiveBackgroundColor","#999999");_(this,"barBackgroundColor","rgba(255,255,255,0.5)");_(this,"barBorderColor","rgba(255,255,255,0.7)");t||console.warn("Missing viewport"),this.setProps(e),this._view=t,this._initialScrollRect(),this._view.setScrollBar(this)}static attachTo(t,e){return new l7(t,e)}dispose(){var t,e,s,i;super.dispose(),(t=this._mainScene)==null||t.onPointerMoveObserver.remove(this._horizonPointerMoveObserver),(e=this._mainScene)==null||e.onPointerMoveObserver.remove(this._verticalPointerMoveObserver),(s=this._mainScene)==null||s.onPointerUpObserver.remove(this._horizonPointerUpObserver),(i=this._mainScene)==null||i.onPointerUpObserver.remove(this._verticalPointerUpObserver),this._mainScene=null,this._view.removeScrollBar()}render(t,e=0,s=0){const{scrollX:i,scrollY:o}=this._view;t.save();const c=new o1([1,0,0,1,e,s]).getMatrix();t.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this.enableHorizontal&&(this.horizonBarRect.render(t),this.horizonThumbRect.translate(i).render(t)),this.enableVertical&&(this.verticalBarRect.render(t),this.verticalThumbRect.translate(void 0,o).render(t)),this.enableHorizontal&&this.enableVertical&&this.placeholderBarRect.render(t),t.restore()}resize(t=0,e=0,s=0,i=0){var o;t===0&&t===0||(this._resizeHorizontal(t,e,s),this._resizeVertical(t,e,i),this.enableHorizontal&&this.enableVertical&&((o=this.placeholderBarRect)==null||o.transformByState({left:t-this.barSize,top:e-this.barSize,width:this.barSize-this.barBorder,height:this.barSize-this.barBorder})))}makeDirty(t){var e,s,i,o,a;(e=this.horizonBarRect)==null||e.makeDirty(t),(s=this.horizonThumbRect)==null||s.makeDirty(t),(i=this.verticalBarRect)==null||i.makeDirty(t),(o=this.verticalThumbRect)==null||o.makeDirty(t),(a=this.placeholderBarRect)==null||a.makeDirty(t),this.makeViewDirty(t)}makeViewDirty(t){(this._mainScene||this._view.scene).makeDirty(t)}pick(t){var e,s,i,o;return(e=this.horizonThumbRect)!=null&&e.isHit(t)?this.horizonThumbRect:(s=this.verticalThumbRect)!=null&&s.isHit(t)?this.verticalThumbRect:(i=this.horizonBarRect)!=null&&i.isHit(t)?this.horizonBarRect:(o=this.verticalBarRect)!=null&&o.isHit(t)?this.verticalBarRect:null}setProps(t){if(!t)return;const e=Object.keys(t);e.length!==0&&e.forEach(s=>{t[s]!==void 0&&(this[`${s}`]=t[s])})}_resizeHorizontal(t,e,s){var i,o,a,c,l;this.enableHorizontal&&(this.horizontalMinusMiniThumb=0,this.horizontalBarWidth=t-(this.enableVertical?this.barSize:0)-this.barBorder,this.horizontalThumbWidth=this.horizontalBarWidth*(this.horizontalBarWidth-this.barBorder)/s*this.thumbLengthRatio,this.horizontalThumbWidth<t2&&(this.horizontalMinusMiniThumb=t2-this.horizontalThumbWidth,this.horizontalThumbWidth=t2),(i=this.horizonBarRect)==null||i.transformByState({left:0,top:e-this.barSize,width:this.horizontalBarWidth,height:this.barSize-this.barBorder}),this.horizontalThumbWidth>=t?(o=this.horizonThumbRect)==null||o.setProps({visible:!1}):((a=this.horizonThumbRect)!=null&&a.visible||(c=this.horizonThumbRect)==null||c.setProps({visible:!0}),(l=this.horizonThumbRect)==null||l.transformByState({left:this._view.scrollX,top:e-this.barSize+this.thumbMargin,width:this.horizontalThumbWidth,height:this.barSize-this.thumbMargin*2})))}_resizeVertical(t,e,s){var i,o,a,c,l;this.enableVertical&&(this.verticalMinusMiniThumb=0,this.verticalBarHeight=e-(this.enableHorizontal?this.barSize:0)-this.barBorder,this.verticalThumbHeight=this.verticalBarHeight*this.verticalBarHeight/s*this.thumbLengthRatio,this.verticalThumbHeight<t2&&(this.verticalMinusMiniThumb=t2-this.verticalThumbHeight,this.verticalThumbHeight=t2),(i=this.verticalBarRect)==null||i.transformByState({left:t-this.barSize,top:0,width:this.barSize-this.barBorder,height:this.verticalBarHeight}),this.verticalThumbHeight>=e?(o=this.verticalThumbRect)==null||o.setProps({visible:!1}):((a=this.verticalThumbRect)!=null&&a.visible||(c=this.verticalThumbRect)==null||c.setProps({visible:!0}),(l=this.verticalThumbRect)==null||l.transformByState({left:t-this.barSize+this.thumbMargin,top:this._view.scrollY,width:this.barSize-this.thumbMargin*2,height:this.verticalThumbHeight})))}_initialScrollRect(){this.enableHorizontal&&(this.horizonBarRect=new f1("__horizonBarRect__",{fill:this.barBackgroundColor,strokeWidth:this.barBorder,stroke:this.barBorderColor}),this.horizonThumbRect=new f1("__horizonThumbRect__",{radius:6,fill:this.thumbBackgroundColor})),this.enableVertical&&(this.verticalBarRect=new f1("__verticalBarRect__",{fill:this.barBackgroundColor,strokeWidth:this.barBorder,stroke:this.barBorderColor}),this.verticalThumbRect=new f1("__verticalThumbRect__",{radius:6,fill:this.thumbBackgroundColor})),this.enableHorizontal&&this.enableVertical&&(this.placeholderBarRect=new f1("__placeholderBarRect__",{fill:this.barBackgroundColor,strokeWidth:this.barBorder,stroke:this.barBorderColor})),this._initialVerticalEvent(),this._initialHorizontalEvent()}_initialVerticalEvent(){var e,s,i,o;if(!this.enableVertical)return;const t=this._mainScene||this._view.scene;(e=this.verticalThumbRect)==null||e.on(C1.PointerEnter,this._hoverFunc(this.thumbHoverBackgroundColor,this.verticalThumbRect)),(s=this.verticalThumbRect)==null||s.on(C1.PointerLeave,this._hoverFunc(this.thumbBackgroundColor,this.verticalThumbRect)),(i=this.verticalBarRect)==null||i.on(C1.PointerDown,(a,c)=>{const l=a;this._view.scrollTo({y:l.offsetY-this._view.top-this.verticalThumbHeight/2}),c.stopPropagation()}),(o=this.verticalThumbRect)==null||o.on(C1.PointerDown,(a,c)=>{const l=a,u=this.verticalThumbRect;this._isVerticalMove=!0,this._lastX=l.offsetX,this._lastY=l.offsetY,u==null||u.setProps({fill:this.thumbActiveBackgroundColor}),t.disableEvent(),this.makeViewDirty(!0),c.stopPropagation()}),this._verticalPointerMoveObserver=t.onPointerMoveObserver.add((a,c)=>{const l=a;this._isVerticalMove&&(this._view.scrollByBar({y:l.offsetY-this._lastY}),this._lastY=l.offsetY)}),this._verticalPointerUpObserver=t.onPointerUpObserver.add((a,c)=>{const l=this.verticalThumbRect;this._isVerticalMove=!1,t.enableEvent(),l==null||l.setProps({fill:this.thumbBackgroundColor}),this.makeViewDirty(!0)})}_hoverFunc(t,e){return(s,i)=>{if(this._isHorizonMove||this._isVerticalMove)return;e.setProps({fill:t}),this.makeViewDirty(!0)}}_initialHorizontalEvent(){var e,s,i,o;if(!this.enableHorizontal)return;const t=this._mainScene||this._view.scene;(e=this.horizonThumbRect)==null||e.on(C1.PointerEnter,this._hoverFunc(this.thumbHoverBackgroundColor,this.horizonThumbRect)),(s=this.horizonThumbRect)==null||s.on(C1.PointerLeave,this._hoverFunc(this.thumbBackgroundColor,this.horizonThumbRect)),(i=this.horizonBarRect)==null||i.on(C1.PointerDown,(a,c)=>{const l=a;this._view.scrollTo({x:l.offsetX-this._view.left-this.horizontalThumbWidth/2}),c.stopPropagation()}),(o=this.horizonThumbRect)==null||o.on(C1.PointerDown,(a,c)=>{var u;const l=a;this._isHorizonMove=!0,this._lastX=l.offsetX,this._lastY=l.offsetY,(u=this.horizonThumbRect)==null||u.setProps({fill:this.thumbActiveBackgroundColor}),this.makeViewDirty(!0),t.disableEvent(),c.stopPropagation()}),this._horizonPointerMoveObserver=t.onPointerMoveObserver.add((a,c)=>{const l=a;this._isHorizonMove&&(this._view.scrollByBar({x:l.offsetX-this._lastX}),this._lastX=l.offsetX)}),this._horizonPointerUpObserver=t.onPointerUpObserver.add((a,c)=>{const l=this.horizonThumbRect;this._isHorizonMove=!1,t.enableEvent(),l==null||l.setProps({fill:this.thumbBackgroundColor}),this.makeViewDirty(!0)})}}class Uf{}const Vf=3;class Gf{constructor(n,t,e){_(this,"scrollX",0);_(this,"scrollY",0);_(this,"actualScrollX",0);_(this,"actualScrollY",0);_(this,"onMouseWheelObserver",new f.Observable);_(this,"onScrollAfterObserver",new f.Observable);_(this,"onScrollBeforeObserver",new f.Observable);_(this,"onScrollStopObserver",new f.Observable);_(this,"onScrollByBarObserver",new f.Observable);_(this,"_viewPortKey","");_(this,"_dirty",!0);_(this,"_topOrigin",0);_(this,"_leftOrigin",0);_(this,"_bottomOrigin",0);_(this,"_rightOrigin",0);_(this,"_widthOrigin");_(this,"_heightOrigin");_(this,"_top",0);_(this,"_left",0);_(this,"_bottom",0);_(this,"_right",0);_(this,"_width");_(this,"_height");_(this,"_scene");_(this,"_scrollBar");_(this,"_isWheelPreventDefaultX",!1);_(this,"_isWheelPreventDefaultY",!1);_(this,"_scrollStopNum",0);_(this,"_preScrollX",0);_(this,"_preScrollY",0);_(this,"_renderClipState",!0);_(this,"_active",!0);_(this,"_paddingStartX",0);_(this,"_paddingEndX",0);_(this,"_paddingStartY",0);_(this,"_paddingEndY",0);_(this,"_isRelativeX",!1);_(this,"_isRelativeY",!1);_(this,"_preViewportBound");var s;this._viewPortKey=n,this._scene=t,(e==null?void 0:e.active)!=null&&(this._active=e.active),this._setWithAndHeight(e),this._isWheelPreventDefaultX=(e==null?void 0:e.isWheelPreventDefaultX)||!1,this._isWheelPreventDefaultY=(e==null?void 0:e.isWheelPreventDefaultY)||!1,this._resizeCacheCanvasAndScrollBar(),(s=this._scene)==null||s.getParent().onTransformChangeObservable.add(()=>{this._resizeCacheCanvasAndScrollBar()})}get scene(){return this._scene}get width(){return this._width}get height(){return this._height}get viewPortKey(){return this._viewPortKey}get topOrigin(){return this._topOrigin}get leftOrigin(){return this._leftOrigin}get bottomOrigin(){return this._bottomOrigin}get rightOrigin(){return this._rightOrigin}get top(){return this._top}get left(){return this._left}get bottom(){return this._bottom}get right(){return this._right}get isWheelPreventDefaultX(){return this._isWheelPreventDefaultX}get isWheelPreventDefaultY(){return this._isWheelPreventDefaultY}set width(n){this._width=n}set height(n){this._height=n}get isActive(){return this._active===!1||(this.height||0)<=0||(this.width||0)<=0?!1:this._active}set top(n){var t,e;this._topOrigin=n,this._top=A1(n,(e=(t=this._scene)==null?void 0:t.getParent())==null?void 0:e.height)}set left(n){var t;this._leftOrigin=n,this._left=A1(n,(t=this.scene.getParent())==null?void 0:t.width)}set bottom(n){var t;this._bottomOrigin=n,this._bottom=A1(n,(t=this.scene.getParent())==null?void 0:t.height)}set right(n){var t;this._rightOrigin=n,this._right=A1(n,(t=this.scene.getParent())==null?void 0:t.width)}enable(){this._active=!0}disable(){this._active=!1}resetSizeAndScrollBar(){this._resizeCacheCanvasAndScrollBar()}setScrollBar(n){this._scrollBar&&console.warn("Old scrollBar will be replaced "),this._scrollBar=n,this._resizeCacheCanvasAndScrollBar()}removeScrollBar(){this._scrollBar=null}resize(n){Object.keys(n).length!==0&&(this._setWithAndHeight(n),this._resizeCacheCanvasAndScrollBar())}setPadding(n){const{startX:t=0,startY:e=0,endX:s=0,endY:i=0}=n;this._paddingStartX=t,this._paddingEndX=s,this._paddingStartY=e,this._paddingEndY=i,this._resizeCacheCanvasAndScrollBar()}resetPadding(){this.setPadding({startX:0,endX:0,startY:0,endY:0})}makeDirty(n=!0,t=!1){if(this._dirty=n,t){const e=this.scene.getParent();e.classType===N.SCENE_VIEWER&&e.makeDirty(!0)}}isDirty(){return this._dirty}scrollTo(n,t=!0){return this._scroll(0,n,t)}scrollBy(n,t=!0){return this._scroll(1,n,t)}scrollByBar(n,t=!0){var i,o;this._scroll(1,n,t);const{x:e,y:s}=n;this.onScrollByBarObserver.notifyObservers({viewport:this,scrollX:this.scrollX,scrollY:this.scrollY,x:e,y:s,actualScrollX:this.actualScrollX,actualScrollY:this.actualScrollY,limitX:(i=this._scrollBar)==null?void 0:i.limitX,limitY:(o=this._scrollBar)==null?void 0:o.limitY,isTrigger:t})}scrollByOffset(n=0,t=0,e=!0){if(!this._scrollBar||this.isActive===!1)return;const s=n+this._paddingStartX,i=t+this._paddingStartY,o=this.getBarScroll(s,i);return this.scrollBy(o,e)}getBarScroll(n,t){let e=n-this._paddingStartX,s=t-this._paddingStartY;if(this._scrollBar){e*=this._scrollBar.ratioScrollX,s*=this._scrollBar.ratioScrollY;const{scaleX:i,scaleY:o}=this.scene;e*=i,s*=o}else this.scrollX!==void 0&&(e=this.scrollX),this.scrollY!==void 0&&(s=this.scrollY);return{x:e,y:s}}getActualScroll(n,t){let e=n,s=t;if(this._scrollBar){e/=this._scrollBar.ratioScrollX,s/=this._scrollBar.ratioScrollY;const{scaleX:o,scaleY:a}=this.scene;e/=o,s/=a}else this.actualScrollX!==void 0&&(e=this.actualScrollX),this.actualScrollY!==void 0&&(s=this.actualScrollY);const i=this._getScale();return{x:X(e+this._paddingStartX,i),y:X(s+this._paddingStartY,i)}}_getScale(){var i;const n=this._scene,t=((i=n.getEngine())==null?void 0:i.getPixelRatio())||1,{scaleX:e,scaleY:s}=n.getAncestorScale();return Math.max(e*t,s*t)}getTransformedScroll(){const n=this.scrollX,t=this.scrollY;return this.getActualScroll(n,t)}getScrollBar(){return this._scrollBar}updateScroll(n){this._preScrollX=this.scrollX,this._preScrollY=this.scrollY;const{scrollX:t,scrollY:e,actualScrollX:s,actualScrollY:i}=n;return t!==void 0&&(this.scrollX=t),e!==void 0&&(this.scrollY=e),s!==void 0&&(this.actualScrollX=s),i!==void 0&&(this.actualScrollY=i),this}getScrollBarTransForm(){const n=o1.create();return n.multiply(o1.create([1,0,0,1,this._left,this._top])),n}render(n,t=[],e=!1){var g;if(this.isActive===!1)return;const s=n||((g=this._scene.getEngine())==null?void 0:g.getCanvas().getContext()),i=this._scene.transform.clone(),{a:o=1,d:a=1}=s.getTransform();i.multiply(o1.create([1,0,0,1,X(-this.actualScrollX||0,o),X(-this.actualScrollY||0,a)]));const c=s,l=i.getMatrix(),u=this.getScrollBarTransForm().getMatrix();if(c.save(),this._renderClipState){c.beginPath();const{scaleX:p,scaleY:b}=this._getBoundScale(l[0],l[3]);c.rect(this.left,this.top,(this.width||0)*p,(this.height||0)*b),c.clip()}c.transform(l[0],l[1],l[2],l[3],l[4],l[5]);const h=this._calViewportRelativeBounding();t.forEach(p=>{p.render(c,h)}),c.restore(),this._scrollBar&&e&&(c.save(),c.transform(u[0],u[1],u[2],u[3],u[4],u[5]),this._drawScrollbar(c),c.restore()),this.makeDirty(!1),this._scrollRendered(),this._preViewportBound=h}getBounding(){return this._calViewportRelativeBounding()}getRelativeVector(n){const t=this.scene.transform.clone().invert(),e=this.getTransformedScroll();return t.applyPoint(n).add(R.FromArray([e.x,e.y]))}getAbsoluteVector(n){const t=this.scene.transform.clone(),e=this.getTransformedScroll();return t.applyPoint(n.subtract(R.FromArray([e.x,e.y])))}onMouseWheel(n,t){if(!this._scrollBar||this.isActive===!1)return;let e;if(n.inputIndex===L.MouseWheelX){const s=Math.abs(n.deltaX),i=this._scene.width,a=(this.width||1)/i*s;n.deltaX>0?e=this.scrollBy({x:a}):e=this.scrollBy({x:-a}),this._scene.getParent().classType===N.SCENE_VIEWER?e!=null&&e.isLimitedX||t.stopPropagation():this._isWheelPreventDefaultX?n.preventDefault():e!=null&&e.isLimitedX||n.preventDefault()}if(n.inputIndex===L.MouseWheelY){const s=Math.abs(n.deltaY),i=this._scene.height;let a=(this.height||1)/i*s;n.shiftKey?(a*=Vf,n.deltaY>0?e=this.scrollBy({x:a}):e=this.scrollBy({x:-a}),this._scene.getParent().classType===N.SCENE_VIEWER?e!=null&&e.isLimitedX||t.stopPropagation():this._isWheelPreventDefaultX?n.preventDefault():e!=null&&e.isLimitedX||n.preventDefault()):(n.deltaY>0?e=this.scrollBy({y:a}):e=this.scrollBy({y:-a}),this._scene.getParent().classType===N.SCENE_VIEWER?e!=null&&e.isLimitedY||t.stopPropagation():this._isWheelPreventDefaultY?n.preventDefault():e!=null&&e.isLimitedY||n.preventDefault())}n.inputIndex,L.MouseWheelZ,this._scene.makeDirty(!0)}isHit(n){if(this.isActive===!1)return;const{width:t,height:e}=this._getViewPortSize();return n.x>=this.left&&n.x<=this.left+(t||0)&&n.y>=this.top&&n.y<=this.top+(e||0)}pickScrollBar(n){if(!this._scrollBar)return;const e=this.getScrollBarTransForm().invert().applyPoint(n);return this._scrollBar.pick(e)}openClip(){this._renderClipState=!0}closeClip(){this._renderClipState=!1}dispose(){var n;this.onMouseWheelObserver.clear(),this.onScrollAfterObserver.clear(),this.onScrollBeforeObserver.clear(),this.onScrollStopObserver.clear(),(n=this._scrollBar)==null||n.dispose(),this._scene.removeViewport(this._viewPortKey)}limitedScroll(){var i,o;if(!this._scrollBar)return;const n=((i=this._scrollBar)==null?void 0:i.limitX)||1/0,t=((o=this._scrollBar)==null?void 0:o.limitY)||1/0;let e=!0,s=!0;return this.scrollX<0?this.scrollX=0:this.scrollX>n?this.scrollX=n:e=!1,this.scrollY<0?this.scrollY=0:this.scrollY>t?this.scrollY=t:s=!1,{isLimitedX:e,isLimitedY:s}}_resizeCacheCanvasAndScrollBar(){var i;const{width:n,height:t}=this._getViewPortSize(),e=(this._scene.width-this._paddingEndX)*this._scene.scaleX,s=(this._scene.height-this._paddingEndY)*this._scene.scaleY;(i=this._scrollBar)==null||i.resize(n,t,e,s),this.makeDirty(!0)}_getViewPortSize(){const n=this._scene.getParent(),{width:t,height:e}=n,{scaleX:s=1,scaleY:i=1}=this._scene;let o,a,c=this.left*s,l=this.top*i;return this._leftOrigin!=null&&(c=this._leftOrigin*s),this._topOrigin!=null&&(l=this._topOrigin*i),this._widthOrigin!=null?o=this._widthOrigin*s:(o=t-(c+this._right),this.width=o),this._heightOrigin!=null?a=this._heightOrigin*i:(a=e-(l+this._bottom),this.height=a),this._left=c,this._top=l,{width:o,height:a}}_scrollRendered(){this._preScrollX=this.scrollX,this._preScrollY=this.scrollY}_triggerScrollStop(n,t,e,s=!0){clearTimeout(this._scrollStopNum),this._scrollStopNum=setTimeout(()=>{var i,o;this.onScrollStopObserver.notifyObservers({viewport:this,scrollX:this.scrollX,scrollY:this.scrollY,x:t,y:e,actualScrollX:n.x,actualScrollY:n.y,limitX:(i=this._scrollBar)==null?void 0:i.limitX,limitY:(o=this._scrollBar)==null?void 0:o.limitY,isTrigger:s})},200)}_scroll(n,t,e=!0){var c,l,u,h;const{x:s,y:i}=t;if(this._scrollBar==null)return;s!==void 0&&(this._scrollBar.hasHorizonThumb()?n===1?this.scrollX+=s:this.scrollX=s:this.scrollX=0),i!==void 0&&(this._scrollBar.hasVerticalThumb()?n===1?this.scrollY+=i:this.scrollY=i:this.scrollY=0);const o=this.limitedScroll();this.onScrollBeforeObserver.notifyObservers({viewport:this,scrollX:this.scrollX,scrollY:this.scrollY,x:s,y:i,limitX:(c=this._scrollBar)==null?void 0:c.limitX,limitY:(l=this._scrollBar)==null?void 0:l.limitY,isTrigger:e}),this._scrollBar?this._scrollBar.makeDirty(!0):this.makeDirty(!0);const a=this.getTransformedScroll();return this.actualScrollX=a.x,this.actualScrollY=a.y,this.onScrollAfterObserver.notifyObservers({viewport:this,scrollX:this.scrollX,scrollY:this.scrollY,x:s,y:i,actualScrollX:a.x,actualScrollY:a.y,limitX:(u=this._scrollBar)==null?void 0:u.limitX,limitY:(h=this._scrollBar)==null?void 0:h.limitY,isTrigger:e}),this._triggerScrollStop(a,s,i,e),o}_calViewportRelativeBounding(){var l;if(this.isActive===!1)return{viewBound:{left:-1,top:-1,right:-1,bottom:-1},diffBounds:[],diffX:-1,diffY:-1,viewPortPosition:{top:0,left:0,bottom:0,right:0},viewPortKey:this.viewPortKey};const n=this.left,t=(this.width||0)+this.left,e=this.top,s=(this.height||0)+this.top,i=this.getRelativeVector(R.FromArray([n,e])),o=this.getRelativeVector(R.FromArray([t,s])),a={top:i.y,left:i.x,right:o.x,bottom:o.y},c=(l=this._preViewportBound)==null?void 0:l.viewBound;return{viewBound:a,diffBounds:this._diffViewBound(a,c),diffX:((c==null?void 0:c.left)||0)-a.left,diffY:((c==null?void 0:c.top)||0)-a.top,viewPortPosition:{top:e,left:n,bottom:s,right:t},viewPortKey:this.viewPortKey}}_diffViewBound(n,t){if(t==null)return[n];const e={startRow:n.top,endRow:n.bottom,startColumn:n.left,endColumn:n.right},s={startRow:t.top,endRow:t.bottom,startColumn:t.left,endColumn:t.right};return f.Rectangle.subtract(e,s).map(o=>{const{startRow:a,endRow:c,startColumn:l,endColumn:u}=o;return{left:l,top:a,right:u,bottom:c}})}_drawScrollbar(n){if(!this._scrollBar)return;const t=this._scene.getParent();t.classType===N.SCENE_VIEWER?this._scrollBar.render(n):t.classType===N.ENGINE&&this._scrollBar.render(n)}_setWithAndHeight(n){this.top=(n==null?void 0:n.top)||0,this.left=(n==null?void 0:n.left)||0,this.bottom=(n==null?void 0:n.bottom)||0,this.right=(n==null?void 0:n.right)||0,n!=null&&n.width?(this.width=n==null?void 0:n.width,this._widthOrigin=this.width,this._isRelativeX=!1):(this.width=null,this._widthOrigin=null,this._isRelativeX=!0),n!=null&&n.height?(this.height=n==null?void 0:n.height,this._heightOrigin=this.height,this._isRelativeY=!1):(this.height=null,this._heightOrigin=null,this._isRelativeY=!0)}_getBoundScale(n,t){return n=this._isRelativeX&&n<1?1:n,t=this._isRelativeY&&t<1?1:t,{scaleX:n,scaleY:t}}}exports.ArabicHandler=z4;exports.BASE_OBJECT_ARRAY=W2;exports.BORDER_TYPE=J;exports.Background=St;exports.BaseObject=M1;exports.Border=Et;exports.BreakType=i2;exports.CIRCLE_OBJECT_ARRAY=Pt;exports.COLOR_BLACK_RGB=Y1;exports.CURSOR_TYPE=i1;exports.Canvas=c2;exports.Circle=c7;exports.ColumnHeaderLayout=yt;exports.ComponentExtension=e7;exports.Control=zf;exports.CustomObject=Af;exports.DEFAULT_DOCUMENT_FONTSIZE=j7;exports.DEFAULT_FONTFACE_PLANE=J2;exports.DEFAULT_MEASURE_TEXT=Y7;exports.DEFAULT_OFFSET_SPACING=p6;exports.DEFAULT_SELECTION_LAYER_INDEX=Ut;exports.DEFAULT_SKELETON_FOOTER=jt;exports.DEFAULT_SKELETON_HEADER=Yt;exports.DOCUMENT_CONTEXT_CLIP_TYPE=U7;exports.DeviceInputEventType=g4;exports.DeviceType=d1;exports.DocumentHorizonBar=_f;exports.DocumentSkeleton=o2;exports.DocumentSkeletonState=mt;exports.DocumentVerticalBar=Df;exports.DocumentViewModel=L1;exports.Documents=x2;exports.DocumentsSpanAndLineExtensionRegistry=h2;exports.Drawing=Wf;exports.EMOJI_REG=I6;exports.EVENT_TYPE=C1;exports.Engine=K2;exports.EventConstants=$2;exports.FIX_ONE_PIXEL_BLUR_OFFSET=g1;exports.Font=Tt;exports.FontCache=B1;exports.Group=At;exports.HitCanvas=a_;exports.INITIAL_MATRIX=P2;exports.INITIAL_Path2=D4;exports.IRenderManagerService=Lt;exports.IRenderingEngine=It;exports.ITextSelectionRenderManager=gf;exports.IsSafari=Z7;exports.LINK_VIEW_PORT_TYPE=z7;exports.Layer=Rt;exports.LineType=B2;exports.Liquid=O2;exports.MAXIMUM_ROW_HEIGHT=V7;exports.MIDDLE_CELL_POS_MAGIC_NUMBER=R6;exports.NORMAL_TEXT_SELECTION_PLUGIN_STYLE=y2;exports.NodePositionConvertToCursor=dt;exports.NodePositionMap=H1;exports.NodePositionStateType=_t;exports.NodePositionType=b2;exports.ORIENTATION_TYPE=v2;exports.PATH_OBJECT_ARRAY=wt;exports.PageLayoutType=y1;exports.Path=h1;exports.Path2=p4;exports.PerformanceMonitor=m4;exports.Picture=q2;exports.PointerInput=L;exports.RANGE_DIRECTION=m2;exports.RECT_OBJECT_ARRAY=gt;exports.REGULAR_POLYGON_OBJECT_ARRAY=Dt;exports.RENDER_CLASS_TYPE=N;exports.RICHTEXT_OBJECT_ARRAY=B6;exports.Rect=f1;exports.RegularPolygon=s6;exports.RenderComponent=W6;exports.RenderManagerService=Mt;exports.RichText=Yf;exports.RollingAverage=b4;exports.RowHeaderLayout=Ft;exports.SHAPE_OBJECT_ARRAY=ft;exports.SHAPE_TYPE=A6;exports.SHEET_EXTENSION_TYPE=Ct;exports.SLIDE_NAVIGATION_KEY=Bt;exports.Scene=xt;exports.SceneCanvas=o_;exports.SceneViewer=a7;exports.ScrollBar=l7;exports.ScrollTimer=a2;exports.ScrollTimerType=bt;exports.Selection=Uf;exports.Shape=u2;exports.SheetColumnHeaderExtensionRegistry=s7;exports.SheetComponent=i7;exports.SheetExtension=_2;exports.SheetRowHeaderExtensionRegistry=n7;exports.ShowGridlinesState=Ot;exports.SkeletonType=c4;exports.Slide=Bf;exports.SpanType=a1;exports.Spreadsheet=wf;exports.SpreadsheetColumnHeader=pf;exports.SpreadsheetExtensionRegistry=R2;exports.SpreadsheetHeader=r7;exports.SpreadsheetRowHeader=Ff;exports.SpreadsheetSkeleton=o7;exports.TRANSFORM_CHANGE_OBSERVABLE_TYPE=n1;exports.TextRange=V2;exports.TextSelectionRenderManager=ff;exports.TibetanHandler=Y4;exports.Transform=o1;exports.Vector2=R;exports.Viewport=Gf;exports._createSkeletonWordOrLetter=n6;exports.addSpanToDivide=k2;exports.calculateLineTopByDrawings=U4;exports.calculateParagraphLayout=E6;exports.calculateRectRotate=E2;exports.cancelRequestFrame=q7;exports.checkStyle=o4;exports.clearFontCreateConfigCache=I4;exports.clearLineByBorderType=h4;exports.columnIterator=R4;exports.compareNodePosition=U2;exports.compareNodePositionLogic=t7;exports.createAndUpdateBlockAnchor=K4;exports.createCanvasElement=L6;exports.createImageElement=Mh;exports.createSkeletonBulletSpan=k4;exports.createSkeletonColumn=Wd;exports.createSkeletonLetterSpan=A2;exports.createSkeletonLine=j4;exports.createSkeletonPage=r2;exports.createSkeletonSection=G6;exports.createSkeletonTabSpan=$4;exports.createSkeletonWordSpan=P4;exports.cursorConvertToTextRange=pt;exports.dealWidthBlocksByMultiColumnAndContinuous=N_;exports.dealWidthInlineDrawing=y4;exports.dealWidthParagraph=ht;exports.dealWithBlockError=v4;exports.dealWithBullet=E4;exports.dealWithSections=V6;exports.degToRad=x1;exports.drawDiagonalLineByBorderType=u4;exports.drawLineByBorderType=N6;exports.emojiHandler=W4;exports.fixLineWidthByScale=X;exports.generateRandomKey=Q7;exports.getBulletOrderedSymbol=C4;exports.getCanvasOffsetByEngine=vt;exports.getCellByIndex=s2;exports.getCellInfoInMergeData=t6;exports.getCellPositionByIndex=X1;exports.getCharSpaceApply=e6;exports.getCharSpaceConfig=B4;exports.getColor=c1;exports.getColumnByDivide=C_;exports.getCurrentScrollXY=e2;exports.getDPI=w2;exports.getDefaultBulletSke=C6;exports.getDevicePixelRatio=k6;exports.getDocsSkeletonPageSize=G2;exports.getFontCreateConfig=U1;exports.getFontStyleString=S2;exports.getLastColumn=m_;exports.getLastLine=T4;exports.getLastLineByColumn=F4;exports.getLastNotFullColumnInfo=T2;exports.getLastNotFullDivideInfo=Y6;exports.getLastPage=j1;exports.getLastRemainingDivide=E_;exports.getLastSection=l2;exports.getLastSpan=y_;exports.getLineHeightConfig=U6;exports.getLineOffset=_4;exports.getLineWidth=X6;exports.getLineWith=d4;exports.getNextDivide=S_;exports.getNumberUnitValue=R1;exports.getOneTextSelectionRange=F6;exports.getPageContentWidth=b_;exports.getParagraphBySpan=l4;exports.getPointerPrefix=m6;exports.getPositionHorizon=x4;exports.getPositionVertical=M4;exports.getPreLine=v_;exports.getRotateOffsetAndFarthestHypotenuse=z6;exports.getRotateOrientation=f4;exports.getScale=V1;exports.getSizeForDom=a4;exports.getSpanGroupWidth=L4;exports.getTranslateInSpreadContextWithPixelRatio=r_;exports.getValueType=I1;exports.hasAllLatin=Wh;exports.hasArabic=P6;exports.hasBasicLatin=Yh;exports.hasCJK=Q2;exports.hasCJKText=z2;exports.hasLatinExtendedA=Uh;exports.hasLatinExtendedB=Vh;exports.hasLatinOneSupplement=jh;exports.hasListSpan=Qh;exports.hasMixedTextLayout=H4;exports.hasSpace=e4;exports.hasTibetan=$6;exports.hasUnMergedCellInRow=s4;exports.injectStyle=r4;exports.isArray=$h;exports.isBlankColumn=w4;exports.isBlankPage=T_;exports.isColumnFull=O4;exports.isDate=Ih;exports.isFirstSpan=n_;exports.isFunction=Z2;exports.isIndentBySpan=t_;exports.isLastSpan=e_;exports.isNumber=kh;exports.isObject=Nh;exports.isPlaceholderOrSpace=s_;exports.isRectIntersect=i4;exports.isRegExp=Ph;exports.isSameLine=i_;exports.isString=b6;exports.isSupportBoundingBox=Hh;exports.lineIterator=A4;exports.mergeInfoOffset=v6;exports.otherHandler=X4;exports.precisionTo=X2;exports.ptToMM=Jh;exports.ptToPx=Kh;exports.pxToInch=Zh;exports.pxToNum=N1;exports.pxToPt=qh;exports.radToDeg=J7;exports.reCalculateLineDivide=O_;exports.requestNewFrame=C2;exports.setColumnFullState=K6;exports.setDivideFullState=V4;exports.setLineMarginBottom=x_;exports.setLineType=H6;exports.setSpanGroupLeft=N4;exports.setSpanLeft=B_;exports.spanIterator=w_;exports.startWithEmoji=t4;exports.toPx=A1;exports.updateBlockIndex=Y2;exports.updateDivideInLine=M_;exports.validationGrid=j6;
|