@cocalc/static
Version:
CoCalc's static frontend Webpack-based build system and framework
1 lines • 182 kB
JavaScript
(self.webpackChunk_cocalc_static=self.webpackChunk_cocalc_static||[]).push([[6821],{18829:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Actions:()=>Fe});var i=r(85460),n=r(94873),o=r(81805),a=r(56160),s=r(95788),c=r(24620),l=r(66988),h=r(5010),u=r(56393),f=r(4538),d=r(30191),_=navigator.platform,p=navigator.userAgent,b=(p.includes("MSIE"),p.toLowerCase().includes("opera"),p.toLowerCase().includes("firefox"),p.toLowerCase().includes("safari")&&p.toLowerCase().includes("chrome"),_.includes("Mac")),m=_.includes("Win"),g=function(){var e,t={8:"BackSpace",9:"Tab",12:"KP_Begin",13:"Return",16:"Shift_L",17:"Control_L",18:"Alt_L",19:"Pause",20:"Caps_Lock",27:"Escape",31:"Mode_switch",32:"space",33:"Prior",34:"Next",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",42:"Print",45:"Insert",46:"Delete",58:"colon",59:"semicolon",60:"less",61:"equal",62:"greater",63:"question",64:"at",91:"Menu",92:"Menu",93:"KP_Enter",106:"KP_Multiply",107:"KP_Add",109:"KP_Subtract",110:"KP_Delete",111:"KP_Divide",144:"Num_Lock",145:"Scroll_Lock",160:"dead_circumflex",167:"underscore",161:"exclam",162:"quotedbl",163:"numbersign",164:"dollar",165:"percent",166:"ampersand",168:"parenleft",169:"parenright",170:"asterisk",171:"plus",172:"bar",173:"minus",174:"braceleft",175:"braceright",176:"asciitilde",186:"semicolon",187:"equal",188:"comma",189:"minus",190:"period",191:"slash",192:"grave",219:"bracketleft",220:"backslash",221:"bracketright",222:"apostrophe"};for(e=0;e<26;e++)t[65+e]="abcdefghijklmnopqrstuvwxyz"[e];for(e=0;e<10;e++)t[48+e]=""+e,t[96+e]=""+e;for(e=1;e<=24;e++)t[111+e]="F"+e;return t}(),v=function(){for(var e={Escape:"Escape",Tab:"Tab",CapsLock:"Caps_Lock",ShiftLeft:"Shift_L",ControlLeft:"Control_L",MetaLeft:"Meta_L",AltLeft:"Alt_L",Space:"space",AltRight:"Alt_R",MetaRight:"Meta_R",ContextMenu:"Menu_R",ControlRight:"Control_L",ShiftRight:"Shift_R",Enter:"Return",Backspace:"BackSpace",ScrollLock:"Scroll_Lock",Pause:"Pause",NumLock:"Num_Lock",Insert:"Insert",Home:"Home",PageUp:"Prior",Delete:"Delete",End:"End",PageDown:"Next"},t=0;t<=9;t++)e["Numpad"+t]=""+t,e["KP"+t]="KP"+t;for(var r=1;r<=20;r++)e["F"+r]="F"+r;return e}(),y={NumpadDivide:"KP_Divide",NumpadMultiply:"KP_Multiply",NumpadSubstract:"KP_Substract",NumpadAdd:"KP_Add",NumpadEnter:"KP_Enter",NumpadDecimal:"KP_Decimal",Insert:"KP_Insert",End:"KP_End",ArrowDown:"KP_Down",PageDown:"KP_Next",ArrowLeft:"KP_Left",Clear:"KP_Begin",ArrowRight:"KP_Right",Home:"KP_Home",ArrowUp:"KP_Up",PageUp:"KP_Prior"},w={space:32,exclam:33,quotedbl:34,numbersign:35,dollar:36,percent:37,ampersand:38,apostrophe:39,parenleft:40,parenright:41,asterisk:42,plus:43,comma:44,minus:45,period:46,slash:47,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,colon:58,semicolon:59,less:60,equal:61,greater:62,question:63,at:64,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,bracketleft:91,backslash:92,bracketright:93,asciicircum:94,underscore:95,grave:96,a:97,b:98,c:99,d:100,e:101,f:102,g:103,h:104,i:105,j:106,k:107,l:108,m:109,n:110,o:111,p:112,q:113,r:114,s:115,t:116,u:117,v:118,w:119,x:120,y:121,z:122,braceleft:123,bar:124,braceright:125,asciitilde:126,nobreakspace:160,exclamdown:161,cent:162,sterling:163,currency:164,yen:165,brokenbar:166,section:167,diaeresis:168,copyright:169,ordfeminine:170,guillemotleft:171,notsign:172,hyphen:173,registered:174,macron:175,degree:176,plusminus:177,twosuperior:178,threesuperior:179,acute:180,mu:181,paragraph:182,periodcentered:183,cedilla:184,onesuperior:185,masculine:186,guillemotright:187,onequarter:188,onehalf:189,threequarters:190,questiondown:191,Agrave:192,Aacute:193,Acircumflex:194,Atilde:195,Adiaeresis:196,Aring:197,AE:198,Ccedilla:199,Egrave:200,Eacute:201,Ecircumflex:202,Ediaeresis:203,Igrave:204,Iacute:205,Icircumflex:206,Idiaeresis:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocircumflex:212,Otilde:213,Odiaeresis:214,multiply:215,Oslash:216,Ooblique:216,Ugrave:217,Uacute:218,Ucircumflex:219,Udiaeresis:220,Yacute:221,THORN:222,ssharp:223,agrave:224,aacute:225,acircumflex:226,atilde:227,adiaeresis:228,aring:229,ae:230,ccedilla:231,egrave:232,eacute:233,ecircumflex:234,ediaeresis:235,igrave:236,iacute:237,icircumflex:238,idiaeresis:239,eth:240,ntilde:241,ograve:242,oacute:243,ocircumflex:244,otilde:245,odiaeresis:246,division:247,oslash:248,ooblique:248,ugrave:249,uacute:250,ucircumflex:251,udiaeresis:252,yacute:253,thorn:254,ydiaeresis:255,Aogonek:260,breve:728,Lstroke:321,Lcaron:317,Sacute:346,Scaron:352,Scedilla:350,Tcaron:356,Zacute:377,Zcaron:381,Zabovedot:379,aogonek:261,ogonek:731,lstroke:322,lcaron:318,sacute:347,caron:711,scaron:353,scedilla:351,tcaron:357,zacute:378,doubleacute:733,zcaron:382,zabovedot:380,Racute:340,Abreve:258,Lacute:313,Cacute:262,Ccaron:268,Eogonek:280,Ecaron:282,Dcaron:270,Dstroke:272,Nacute:323,Ncaron:327,Odoubleacute:336,Rcaron:344,Uring:366,Udoubleacute:368,Tcedilla:354,racute:341,abreve:259,lacute:314,cacute:263,ccaron:269,eogonek:281,ecaron:283,dcaron:271,dstroke:273,nacute:324,ncaron:328,odoubleacute:337,rcaron:345,uring:367,udoubleacute:369,tcedilla:355,abovedot:729,Hstroke:294,Hcircumflex:292,Iabovedot:304,Gbreve:286,Jcircumflex:308,hstroke:295,hcircumflex:293,idotless:305,gbreve:287,jcircumflex:309,Cabovedot:266,Ccircumflex:264,Gabovedot:288,Gcircumflex:284,Ubreve:364,Scircumflex:348,cabovedot:267,ccircumflex:265,gabovedot:289,gcircumflex:285,ubreve:365,scircumflex:349,kra:312,Rcedilla:342,Itilde:296,Lcedilla:315,Emacron:274,Gcedilla:290,Tslash:358,rcedilla:343,itilde:297,lcedilla:316,emacron:275,gcedilla:291,tslash:359,ENG:330,eng:331,Amacron:256,Iogonek:302,Eabovedot:278,Imacron:298,Ncedilla:325,Omacron:332,Kcedilla:310,Uogonek:370,Utilde:360,Umacron:362,amacron:257,iogonek:303,eabovedot:279,imacron:299,ncedilla:326,omacron:333,kcedilla:311,uogonek:371,utilde:361,umacron:363,Wcircumflex:372,wcircumflex:373,Ycircumflex:374,ycircumflex:375,Babovedot:7682,babovedot:7683,Dabovedot:7690,dabovedot:7691,Fabovedot:7710,fabovedot:7711,Mabovedot:7744,mabovedot:7745,Pabovedot:7766,pabovedot:7767,Sabovedot:7776,sabovedot:7777,Tabovedot:7786,tabovedot:7787,Wgrave:7808,wgrave:7809,Wacute:7810,wacute:7811,Wdiaeresis:7812,wdiaeresis:7813,Ygrave:7922,ygrave:7923,OE:338,oe:339,Ydiaeresis:376,overline:8254,kana_fullstop:12290,kana_openingbracket:12300,kana_closingbracket:12301,kana_comma:12289,kana_conjunctive:12539,kana_WO:12530,kana_a:12449,kana_i:12451,kana_u:12453,kana_e:12455,kana_o:12457,kana_ya:12515,kana_yu:12517,kana_yo:12519,kana_tsu:12483,prolongedsound:12540,kana_A:12450,kana_I:12452,kana_U:12454,kana_E:12456,kana_O:12458,kana_KA:12459,kana_KI:12461,kana_KU:12463,kana_KE:12465,kana_KO:12467,kana_SA:12469,kana_SHI:12471,kana_SU:12473,kana_SE:12475,kana_SO:12477,kana_TA:12479,kana_CHI:12481,kana_TSU:12484,kana_TE:12486,kana_TO:12488,kana_NA:12490,kana_NI:12491,kana_NU:12492,kana_NE:12493,kana_NO:12494,kana_HA:12495,kana_HI:12498,kana_FU:12501,kana_HE:12504,kana_HO:12507,kana_MA:12510,kana_MI:12511,kana_MU:12512,kana_ME:12513,kana_MO:12514,kana_YA:12516,kana_YU:12518,kana_YO:12520,kana_RA:12521,kana_RI:12522,kana_RU:12523,kana_RE:12524,kana_RO:12525,kana_WA:12527,kana_N:12531,voicedsound:12443,semivoicedsound:12444,Farsi_0:1776,Farsi_1:1777,Farsi_2:1778,Farsi_3:1779,Farsi_4:1780,Farsi_5:1781,Farsi_6:1782,Farsi_7:1783,Farsi_8:1784,Farsi_9:1785,Arabic_percent:1642,Arabic_superscript_alef:1648,Arabic_tteh:1657,Arabic_peh:1662,Arabic_tcheh:1670,Arabic_ddal:1672,Arabic_rreh:1681,Arabic_comma:1548,Arabic_fullstop:1748,Arabic_0:1632,Arabic_1:1633,Arabic_2:1634,Arabic_3:1635,Arabic_4:1636,Arabic_5:1637,Arabic_6:1638,Arabic_7:1639,Arabic_8:1640,Arabic_9:1641,Arabic_semicolon:1563,Arabic_question_mark:1567,Arabic_hamza:1569,Arabic_maddaonalef:1570,Arabic_hamzaonalef:1571,Arabic_hamzaonwaw:1572,Arabic_hamzaunderalef:1573,Arabic_hamzaonyeh:1574,Arabic_alef:1575,Arabic_beh:1576,Arabic_tehmarbuta:1577,Arabic_teh:1578,Arabic_theh:1579,Arabic_jeem:1580,Arabic_hah:1581,Arabic_khah:1582,Arabic_dal:1583,Arabic_thal:1584,Arabic_ra:1585,Arabic_zain:1586,Arabic_seen:1587,Arabic_sheen:1588,Arabic_sad:1589,Arabic_dad:1590,Arabic_tah:1591,Arabic_zah:1592,Arabic_ain:1593,Arabic_ghain:1594,Arabic_tatweel:1600,Arabic_feh:1601,Arabic_qaf:1602,Arabic_kaf:1603,Arabic_lam:1604,Arabic_meem:1605,Arabic_noon:1606,Arabic_ha:1607,Arabic_waw:1608,Arabic_alefmaksura:1609,Arabic_yeh:1610,Arabic_fathatan:1611,Arabic_dammatan:1612,Arabic_kasratan:1613,Arabic_fatha:1614,Arabic_damma:1615,Arabic_kasra:1616,Arabic_shadda:1617,Arabic_sukun:1618,Arabic_madda_above:1619,Arabic_hamza_above:1620,Arabic_hamza_below:1621,Arabic_jeh:1688,Arabic_veh:1700,Arabic_keheh:1705,Arabic_gaf:1711,Arabic_noon_ghunna:1722,Arabic_heh_doachashmee:1726,Farsi_yeh:1740,Arabic_farsi_yeh:1740,Arabic_yeh_baree:1746,Arabic_heh_goal:1729,Cyrillic_GHE_bar:1170,Cyrillic_ghe_bar:1171,Cyrillic_ZHE_descender:1174,Cyrillic_zhe_descender:1175,Cyrillic_KA_descender:1178,Cyrillic_ka_descender:1179,Cyrillic_KA_vertstroke:1180,Cyrillic_ka_vertstroke:1181,Cyrillic_EN_descender:1186,Cyrillic_en_descender:1187,Cyrillic_U_straight:1198,Cyrillic_u_straight:1199,Cyrillic_U_straight_bar:1200,Cyrillic_u_straight_bar:1201,Cyrillic_HA_descender:1202,Cyrillic_ha_descender:1203,Cyrillic_CHE_descender:1206,Cyrillic_che_descender:1207,Cyrillic_CHE_vertstroke:1208,Cyrillic_che_vertstroke:1209,Cyrillic_SHHA:1210,Cyrillic_shha:1211,Cyrillic_SCHWA:1240,Cyrillic_schwa:1241,Cyrillic_I_macron:1250,Cyrillic_i_macron:1251,Cyrillic_O_bar:1256,Cyrillic_o_bar:1257,Cyrillic_U_macron:1262,Cyrillic_u_macron:1263,Serbian_dje:1106,Macedonia_gje:1107,Cyrillic_io:1105,Ukrainian_ie:1108,Macedonia_dse:1109,Ukrainian_i:1110,Ukrainian_yi:1111,Cyrillic_je:1112,Cyrillic_lje:1113,Cyrillic_nje:1114,Serbian_tshe:1115,Macedonia_kje:1116,Ukrainian_ghe_with_upturn:1169,Byelorussian_shortu:1118,Cyrillic_dzhe:1119,numerosign:8470,Serbian_DJE:1026,Macedonia_GJE:1027,Cyrillic_IO:1025,Ukrainian_IE:1028,Macedonia_DSE:1029,Ukrainian_I:1030,Ukrainian_YI:1031,Cyrillic_JE:1032,Cyrillic_LJE:1033,Cyrillic_NJE:1034,Serbian_TSHE:1035,Macedonia_KJE:1036,Ukrainian_GHE_WITH_UPTURN:1168,Byelorussian_SHORTU:1038,Cyrillic_DZHE:1039,Cyrillic_yu:1102,Cyrillic_a:1072,Cyrillic_be:1073,Cyrillic_tse:1094,Cyrillic_de:1076,Cyrillic_ie:1077,Cyrillic_ef:1092,Cyrillic_ghe:1075,Cyrillic_ha:1093,Cyrillic_i:1080,Cyrillic_shorti:1081,Cyrillic_ka:1082,Cyrillic_el:1083,Cyrillic_em:1084,Cyrillic_en:1085,Cyrillic_o:1086,Cyrillic_pe:1087,Cyrillic_ya:1103,Cyrillic_er:1088,Cyrillic_es:1089,Cyrillic_te:1090,Cyrillic_u:1091,Cyrillic_zhe:1078,Cyrillic_ve:1074,Cyrillic_softsign:1100,Cyrillic_yeru:1099,Cyrillic_ze:1079,Cyrillic_sha:1096,Cyrillic_e:1101,Cyrillic_shcha:1097,Cyrillic_che:1095,Cyrillic_hardsign:1098,Cyrillic_YU:1070,Cyrillic_A:1040,Cyrillic_BE:1041,Cyrillic_TSE:1062,Cyrillic_DE:1044,Cyrillic_IE:1045,Cyrillic_EF:1060,Cyrillic_GHE:1043,Cyrillic_HA:1061,Cyrillic_I:1048,Cyrillic_SHORTI:1049,Cyrillic_KA:1050,Cyrillic_EL:1051,Cyrillic_EM:1052,Cyrillic_EN:1053,Cyrillic_O:1054,Cyrillic_PE:1055,Cyrillic_YA:1071,Cyrillic_ER:1056,Cyrillic_ES:1057,Cyrillic_TE:1058,Cyrillic_U:1059,Cyrillic_ZHE:1046,Cyrillic_VE:1042,Cyrillic_SOFTSIGN:1068,Cyrillic_YERU:1067,Cyrillic_ZE:1047,Cyrillic_SHA:1064,Cyrillic_E:1069,Cyrillic_SHCHA:1065,Cyrillic_CHE:1063,Cyrillic_HARDSIGN:1066,Greek_ALPHAaccent:902,Greek_EPSILONaccent:904,Greek_ETAaccent:905,Greek_IOTAaccent:906,Greek_IOTAdieresis:938,Greek_OMICRONaccent:908,Greek_UPSILONaccent:910,Greek_UPSILONdieresis:939,Greek_OMEGAaccent:911,Greek_accentdieresis:901,Greek_horizbar:8213,Greek_alphaaccent:940,Greek_epsilonaccent:941,Greek_etaaccent:942,Greek_iotaaccent:943,Greek_iotadieresis:970,Greek_iotaaccentdieresis:912,Greek_omicronaccent:972,Greek_upsilonaccent:973,Greek_upsilondieresis:971,Greek_upsilonaccentdieresis:944,Greek_omegaaccent:974,Greek_ALPHA:913,Greek_BETA:914,Greek_GAMMA:915,Greek_DELTA:916,Greek_EPSILON:917,Greek_ZETA:918,Greek_ETA:919,Greek_THETA:920,Greek_IOTA:921,Greek_KAPPA:922,Greek_LAMDA:923,Greek_LAMBDA:923,Greek_MU:924,Greek_NU:925,Greek_XI:926,Greek_OMICRON:927,Greek_PI:928,Greek_RHO:929,Greek_SIGMA:931,Greek_TAU:932,Greek_UPSILON:933,Greek_PHI:934,Greek_CHI:935,Greek_PSI:936,Greek_OMEGA:937,Greek_alpha:945,Greek_beta:946,Greek_gamma:947,Greek_delta:948,Greek_epsilon:949,Greek_zeta:950,Greek_eta:951,Greek_theta:952,Greek_iota:953,Greek_kappa:954,Greek_lamda:955,Greek_lambda:955,Greek_mu:956,Greek_nu:957,Greek_xi:958,Greek_omicron:959,Greek_pi:960,Greek_rho:961,Greek_sigma:963,Greek_finalsmallsigma:962,Greek_tau:964,Greek_upsilon:965,Greek_phi:966,Greek_chi:967,Greek_psi:968,Greek_omega:969,leftradical:9143,topintegral:8992,botintegral:8993,topleftsqbracket:9121,botleftsqbracket:9123,toprightsqbracket:9124,botrightsqbracket:9126,topleftparens:9115,botleftparens:9117,toprightparens:9118,botrightparens:9120,leftmiddlecurlybrace:9128,rightmiddlecurlybrace:9132,lessthanequal:8804,notequal:8800,greaterthanequal:8805,integral:8747,therefore:8756,variation:8733,infinity:8734,nabla:8711,approximate:8764,similarequal:8771,ifonlyif:8660,implies:8658,identical:8801,radical:8730,includedin:8834,includes:8835,intersection:8745,union:8746,logicaland:8743,logicalor:8744,partialderivative:8706,function:402,leftarrow:8592,uparrow:8593,rightarrow:8594,downarrow:8595,soliddiamond:9670,checkerboard:9618,ht:9225,ff:9228,cr:9229,lf:9226,nl:9252,vt:9227,lowrightcorner:9496,uprightcorner:9488,upleftcorner:9484,lowleftcorner:9492,crossinglines:9532,horizlinescan1:9146,horizlinescan3:9147,horizlinescan5:9472,horizlinescan7:9148,horizlinescan9:9149,leftt:9500,rightt:9508,bott:9524,topt:9516,vertbar:9474,emspace:8195,enspace:8194,em3space:8196,em4space:8197,digitspace:8199,punctspace:8200,thinspace:8201,hairspace:8202,emdash:8212,endash:8211,ellipsis:8230,doubbaselinedot:8229,onethird:8531,twothirds:8532,onefifth:8533,twofifths:8534,threefifths:8535,fourfifths:8536,onesixth:8537,fivesixths:8538,careof:8453,figdash:8210,oneeighth:8539,threeeighths:8540,fiveeighths:8541,seveneighths:8542,trademark:8482,leftsinglequotemark:8216,rightsinglequotemark:8217,leftdoublequotemark:8220,rightdoublequotemark:8221,prescription:8478,permille:8240,minutes:8242,seconds:8243,latincross:10013,club:9827,diamond:9830,heart:9829,maltesecross:10016,dagger:8224,doubledagger:8225,checkmark:10003,ballotcross:10007,musicalsharp:9839,musicalflat:9837,malesymbol:9794,femalesymbol:9792,telephone:9742,telephonerecorder:8981,phonographcopyright:8471,caret:8248,singlelowquotemark:8218,doublelowquotemark:8222,downtack:8868,downstile:8970,jot:8728,quad:9109,uptack:8869,circle:9675,upstile:8968,lefttack:8867,righttack:8866,hebrew_doublelowline:8215,hebrew_aleph:1488,hebrew_bet:1489,hebrew_gimel:1490,hebrew_dalet:1491,hebrew_he:1492,hebrew_waw:1493,hebrew_zain:1494,hebrew_chet:1495,hebrew_tet:1496,hebrew_yod:1497,hebrew_finalkaph:1498,hebrew_kaph:1499,hebrew_lamed:1500,hebrew_finalmem:1501,hebrew_mem:1502,hebrew_finalnun:1503,hebrew_nun:1504,hebrew_samech:1505,hebrew_ayin:1506,hebrew_finalpe:1507,hebrew_pe:1508,hebrew_finalzade:1509,hebrew_zade:1510,hebrew_qoph:1511,hebrew_resh:1512,hebrew_shin:1513,hebrew_taw:1514,Thai_kokai:3585,Thai_khokhai:3586,Thai_khokhuat:3587,Thai_khokhwai:3588,Thai_khokhon:3589,Thai_khorakhang:3590,Thai_ngongu:3591,Thai_chochan:3592,Thai_choching:3593,Thai_chochang:3594,Thai_soso:3595,Thai_chochoe:3596,Thai_yoying:3597,Thai_dochada:3598,Thai_topatak:3599,Thai_thothan:3600,Thai_thonangmontho:3601,Thai_thophuthao:3602,Thai_nonen:3603,Thai_dodek:3604,Thai_totao:3605,Thai_thothung:3606,Thai_thothahan:3607,Thai_thothong:3608,Thai_nonu:3609,Thai_bobaimai:3610,Thai_popla:3611,Thai_phophung:3612,Thai_fofa:3613,Thai_phophan:3614,Thai_fofan:3615,Thai_phosamphao:3616,Thai_moma:3617,Thai_yoyak:3618,Thai_rorua:3619,Thai_ru:3620,Thai_loling:3621,Thai_lu:3622,Thai_wowaen:3623,Thai_sosala:3624,Thai_sorusi:3625,Thai_sosua:3626,Thai_hohip:3627,Thai_lochula:3628,Thai_oang:3629,Thai_honokhuk:3630,Thai_paiyannoi:3631,Thai_saraa:3632,Thai_maihanakat:3633,Thai_saraaa:3634,Thai_saraam:3635,Thai_sarai:3636,Thai_saraii:3637,Thai_saraue:3638,Thai_sarauee:3639,Thai_sarau:3640,Thai_sarauu:3641,Thai_phinthu:3642,Thai_baht:3647,Thai_sarae:3648,Thai_saraae:3649,Thai_sarao:3650,Thai_saraaimaimuan:3651,Thai_saraaimaimalai:3652,Thai_lakkhangyao:3653,Thai_maiyamok:3654,Thai_maitaikhu:3655,Thai_maiek:3656,Thai_maitho:3657,Thai_maitri:3658,Thai_maichattawa:3659,Thai_thanthakhat:3660,Thai_nikhahit:3661,Thai_leksun:3664,Thai_leknung:3665,Thai_leksong:3666,Thai_leksam:3667,Thai_leksi:3668,Thai_lekha:3669,Thai_lekhok:3670,Thai_lekchet:3671,Thai_lekpaet:3672,Thai_lekkao:3673,Armenian_ligature_ew:1415,Armenian_full_stop:1417,Armenian_verjaket:1417,Armenian_separation_mark:1373,Armenian_but:1373,Armenian_hyphen:1418,Armenian_yentamna:1418,Armenian_exclam:1372,Armenian_amanak:1372,Armenian_accent:1371,Armenian_shesht:1371,Armenian_question:1374,Armenian_paruyk:1374,Armenian_AYB:1329,Armenian_ayb:1377,Armenian_BEN:1330,Armenian_ben:1378,Armenian_GIM:1331,Armenian_gim:1379,Armenian_DA:1332,Armenian_da:1380,Armenian_YECH:1333,Armenian_yech:1381,Armenian_ZA:1334,Armenian_za:1382,Armenian_E:1335,Armenian_e:1383,Armenian_AT:1336,Armenian_at:1384,Armenian_TO:1337,Armenian_to:1385,Armenian_ZHE:1338,Armenian_zhe:1386,Armenian_INI:1339,Armenian_ini:1387,Armenian_LYUN:1340,Armenian_lyun:1388,Armenian_KHE:1341,Armenian_khe:1389,Armenian_TSA:1342,Armenian_tsa:1390,Armenian_KEN:1343,Armenian_ken:1391,Armenian_HO:1344,Armenian_ho:1392,Armenian_DZA:1345,Armenian_dza:1393,Armenian_GHAT:1346,Armenian_ghat:1394,Armenian_TCHE:1347,Armenian_tche:1395,Armenian_MEN:1348,Armenian_men:1396,Armenian_HI:1349,Armenian_hi:1397,Armenian_NU:1350,Armenian_nu:1398,Armenian_SHA:1351,Armenian_sha:1399,Armenian_VO:1352,Armenian_vo:1400,Armenian_CHA:1353,Armenian_cha:1401,Armenian_PE:1354,Armenian_pe:1402,Armenian_JE:1355,Armenian_je:1403,Armenian_RA:1356,Armenian_ra:1404,Armenian_SE:1357,Armenian_se:1405,Armenian_VEV:1358,Armenian_vev:1406,Armenian_TYUN:1359,Armenian_tyun:1407,Armenian_RE:1360,Armenian_re:1408,Armenian_TSO:1361,Armenian_tso:1409,Armenian_VYUN:1362,Armenian_vyun:1410,Armenian_PYUR:1363,Armenian_pyur:1411,Armenian_KE:1364,Armenian_ke:1412,Armenian_O:1365,Armenian_o:1413,Armenian_FE:1366,Armenian_fe:1414,Armenian_apostrophe:1370,Georgian_an:4304,Georgian_ban:4305,Georgian_gan:4306,Georgian_don:4307,Georgian_en:4308,Georgian_vin:4309,Georgian_zen:4310,Georgian_tan:4311,Georgian_in:4312,Georgian_kan:4313,Georgian_las:4314,Georgian_man:4315,Georgian_nar:4316,Georgian_on:4317,Georgian_par:4318,Georgian_zhar:4319,Georgian_rae:4320,Georgian_san:4321,Georgian_tar:4322,Georgian_un:4323,Georgian_phar:4324,Georgian_khar:4325,Georgian_ghan:4326,Georgian_qar:4327,Georgian_shin:4328,Georgian_chin:4329,Georgian_can:4330,Georgian_jil:4331,Georgian_cil:4332,Georgian_char:4333,Georgian_xan:4334,Georgian_jhan:4335,Georgian_hae:4336,Georgian_he:4337,Georgian_hie:4338,Georgian_we:4339,Georgian_har:4340,Georgian_hoe:4341,Georgian_fi:4342,Xabovedot:7818,Ibreve:300,Zstroke:437,Gcaron:486,Ocaron:466,Obarred:415,xabovedot:7819,ibreve:301,zstroke:438,gcaron:487,ocaron:466,obarred:629,SCHWA:399,schwa:601,EZH:439,ezh:658,Lbelowdot:7734,lbelowdot:7735,Abelowdot:7840,abelowdot:7841,Ahook:7842,ahook:7843,Acircumflexacute:7844,acircumflexacute:7845,Acircumflexgrave:7846,acircumflexgrave:7847,Acircumflexhook:7848,acircumflexhook:7849,Acircumflextilde:7850,acircumflextilde:7851,Acircumflexbelowdot:7852,acircumflexbelowdot:7853,Abreveacute:7854,abreveacute:7855,Abrevegrave:7856,abrevegrave:7857,Abrevehook:7858,abrevehook:7859,Abrevetilde:7860,abrevetilde:7861,Abrevebelowdot:7862,abrevebelowdot:7863,Ebelowdot:7864,ebelowdot:7865,Ehook:7866,ehook:7867,Etilde:7868,etilde:7869,Ecircumflexacute:7870,ecircumflexacute:7871,Ecircumflexgrave:7872,ecircumflexgrave:7873,Ecircumflexhook:7874,ecircumflexhook:7875,Ecircumflextilde:7876,ecircumflextilde:7877,Ecircumflexbelowdot:7878,ecircumflexbelowdot:7879,Ihook:7880,ihook:7881,Ibelowdot:7882,ibelowdot:7883,Obelowdot:7884,obelowdot:7885,Ohook:7886,ohook:7887,Ocircumflexacute:7888,ocircumflexacute:7889,Ocircumflexgrave:7890,ocircumflexgrave:7891,Ocircumflexhook:7892,ocircumflexhook:7893,Ocircumflextilde:7894,ocircumflextilde:7895,Ocircumflexbelowdot:7896,ocircumflexbelowdot:7897,Ohornacute:7898,ohornacute:7899,Ohorngrave:7900,ohorngrave:7901,Ohornhook:7902,ohornhook:7903,Ohorntilde:7904,ohorntilde:7905,Ohornbelowdot:7906,ohornbelowdot:7907,Ubelowdot:7908,ubelowdot:7909,Uhook:7910,uhook:7911,Uhornacute:7912,uhornacute:7913,Uhorngrave:7914,uhorngrave:7915,Uhornhook:7916,uhornhook:7917,Uhorntilde:7918,uhorntilde:7919,Uhornbelowdot:7920,uhornbelowdot:7921,Ybelowdot:7924,ybelowdot:7925,Yhook:7926,yhook:7927,Ytilde:7928,ytilde:7929,Ohorn:416,ohorn:417,Uhorn:431,uhorn:432,EcuSign:8352,ColonSign:8353,CruzeiroSign:8354,FFrancSign:8355,LiraSign:8356,MillSign:8357,NairaSign:8358,PesetaSign:8359,RupeeSign:8360,WonSign:8361,NewSheqelSign:8362,DongSign:8363,EuroSign:8364,zerosuperior:8304,foursuperior:8308,fivesuperior:8309,sixsuperior:8310,sevensuperior:8311,eightsuperior:8312,ninesuperior:8313,zerosubscript:8320,onesubscript:8321,twosubscript:8322,threesubscript:8323,foursubscript:8324,fivesubscript:8325,sixsubscript:8326,sevensubscript:8327,eightsubscript:8328,ninesubscript:8329,partdifferential:8706,emptyset:8709,elementof:8712,notelementof:8713,containsas:8715,squareroot:8730,cuberoot:8731,fourthroot:8732,dintegral:8748,tintegral:8749,because:8757,approxeq:8773,notapproxeq:8775,notidentical:8802,stricteq:8803,braille_blank:10240,braille_dots_1:10241,braille_dots_2:10242,braille_dots_12:10243,braille_dots_3:10244,braille_dots_13:10245,braille_dots_23:10246,braille_dots_123:10247,braille_dots_4:10248,braille_dots_14:10249,braille_dots_24:10250,braille_dots_124:10251,braille_dots_34:10252,braille_dots_134:10253,braille_dots_234:10254,braille_dots_1234:10255,braille_dots_5:10256,braille_dots_15:10257,braille_dots_25:10258,braille_dots_125:10259,braille_dots_35:10260,braille_dots_135:10261,braille_dots_235:10262,braille_dots_1235:10263,braille_dots_45:10264,braille_dots_145:10265,braille_dots_245:10266,braille_dots_1245:10267,braille_dots_345:10268,braille_dots_1345:10269,braille_dots_2345:10270,braille_dots_12345:10271,braille_dots_6:10272,braille_dots_16:10273,braille_dots_26:10274,braille_dots_126:10275,braille_dots_36:10276,braille_dots_136:10277,braille_dots_236:10278,braille_dots_1236:10279,braille_dots_46:10280,braille_dots_146:10281,braille_dots_246:10282,braille_dots_1246:10283,braille_dots_346:10284,braille_dots_1346:10285,braille_dots_2346:10286,braille_dots_12346:10287,braille_dots_56:10288,braille_dots_156:10289,braille_dots_256:10290,braille_dots_1256:10291,braille_dots_356:10292,braille_dots_1356:10293,braille_dots_2356:10294,braille_dots_12356:10295,braille_dots_456:10296,braille_dots_1456:10297,braille_dots_2456:10298,braille_dots_12456:10299,braille_dots_3456:10300,braille_dots_13456:10301,braille_dots_23456:10302,braille_dots_123456:10303,braille_dots_7:10304,braille_dots_17:10305,braille_dots_27:10306,braille_dots_127:10307,braille_dots_37:10308,braille_dots_137:10309,braille_dots_237:10310,braille_dots_1237:10311,braille_dots_47:10312,braille_dots_147:10313,braille_dots_247:10314,braille_dots_1247:10315,braille_dots_347:10316,braille_dots_1347:10317,braille_dots_2347:10318,braille_dots_12347:10319,braille_dots_57:10320,braille_dots_157:10321,braille_dots_257:10322,braille_dots_1257:10323,braille_dots_357:10324,braille_dots_1357:10325,braille_dots_2357:10326,braille_dots_12357:10327,braille_dots_457:10328,braille_dots_1457:10329,braille_dots_2457:10330,braille_dots_12457:10331,braille_dots_3457:10332,braille_dots_13457:10333,braille_dots_23457:10334,braille_dots_123457:10335,braille_dots_67:10336,braille_dots_167:10337,braille_dots_267:10338,braille_dots_1267:10339,braille_dots_367:10340,braille_dots_1367:10341,braille_dots_2367:10342,braille_dots_12367:10343,braille_dots_467:10344,braille_dots_1467:10345,braille_dots_2467:10346,braille_dots_12467:10347,braille_dots_3467:10348,braille_dots_13467:10349,braille_dots_23467:10350,braille_dots_123467:10351,braille_dots_567:10352,braille_dots_1567:10353,braille_dots_2567:10354,braille_dots_12567:10355,braille_dots_3567:10356,braille_dots_13567:10357,braille_dots_23567:10358,braille_dots_123567:10359,braille_dots_4567:10360,braille_dots_14567:10361,braille_dots_24567:10362,braille_dots_124567:10363,braille_dots_34567:10364,braille_dots_134567:10365,braille_dots_234567:10366,braille_dots_1234567:10367,braille_dots_8:10368,braille_dots_18:10369,braille_dots_28:10370,braille_dots_128:10371,braille_dots_38:10372,braille_dots_138:10373,braille_dots_238:10374,braille_dots_1238:10375,braille_dots_48:10376,braille_dots_148:10377,braille_dots_248:10378,braille_dots_1248:10379,braille_dots_348:10380,braille_dots_1348:10381,braille_dots_2348:10382,braille_dots_12348:10383,braille_dots_58:10384,braille_dots_158:10385,braille_dots_258:10386,braille_dots_1258:10387,braille_dots_358:10388,braille_dots_1358:10389,braille_dots_2358:10390,braille_dots_12358:10391,braille_dots_458:10392,braille_dots_1458:10393,braille_dots_2458:10394,braille_dots_12458:10395,braille_dots_3458:10396,braille_dots_13458:10397,braille_dots_23458:10398,braille_dots_123458:10399,braille_dots_68:10400,braille_dots_168:10401,braille_dots_268:10402,braille_dots_1268:10403,braille_dots_368:10404,braille_dots_1368:10405,braille_dots_2368:10406,braille_dots_12368:10407,braille_dots_468:10408,braille_dots_1468:10409,braille_dots_2468:10410,braille_dots_12468:10411,braille_dots_3468:10412,braille_dots_13468:10413,braille_dots_23468:10414,braille_dots_123468:10415,braille_dots_568:10416,braille_dots_1568:10417,braille_dots_2568:10418,braille_dots_12568:10419,braille_dots_3568:10420,braille_dots_13568:10421,braille_dots_23568:10422,braille_dots_123568:10423,braille_dots_4568:10424,braille_dots_14568:10425,braille_dots_24568:10426,braille_dots_124568:10427,braille_dots_34568:10428,braille_dots_134568:10429,braille_dots_234568:10430,braille_dots_1234568:10431,braille_dots_78:10432,braille_dots_178:10433,braille_dots_278:10434,braille_dots_1278:10435,braille_dots_378:10436,braille_dots_1378:10437,braille_dots_2378:10438,braille_dots_12378:10439,braille_dots_478:10440,braille_dots_1478:10441,braille_dots_2478:10442,braille_dots_12478:10443,braille_dots_3478:10444,braille_dots_13478:10445,braille_dots_23478:10446,braille_dots_123478:10447,braille_dots_578:10448,braille_dots_1578:10449,braille_dots_2578:10450,braille_dots_12578:10451,braille_dots_3578:10452,braille_dots_13578:10453,braille_dots_23578:10454,braille_dots_123578:10455,braille_dots_4578:10456,braille_dots_14578:10457,braille_dots_24578:10458,braille_dots_124578:10459,braille_dots_34578:10460,braille_dots_134578:10461,braille_dots_234578:10462,braille_dots_1234578:10463,braille_dots_678:10464,braille_dots_1678:10465,braille_dots_2678:10466,braille_dots_12678:10467,braille_dots_3678:10468,braille_dots_13678:10469,braille_dots_23678:10470,braille_dots_123678:10471,braille_dots_4678:10472,braille_dots_14678:10473,braille_dots_24678:10474,braille_dots_124678:10475,braille_dots_34678:10476,braille_dots_134678:10477,braille_dots_234678:10478,braille_dots_1234678:10479,braille_dots_5678:10480,braille_dots_15678:10481,braille_dots_25678:10482,braille_dots_125678:10483,braille_dots_35678:10484,braille_dots_135678:10485,braille_dots_235678:10486,braille_dots_1235678:10487,braille_dots_45678:10488,braille_dots_145678:10489,braille_dots_245678:10490,braille_dots_1245678:10491,braille_dots_345678:10492,braille_dots_1345678:10493,braille_dots_2345678:10494,braille_dots_12345678:10495,Sinh_ng:3458,Sinh_h2:3459,Sinh_a:3461,Sinh_aa:3462,Sinh_ae:3463,Sinh_aee:3464,Sinh_i:3465,Sinh_ii:3466,Sinh_u:3467,Sinh_uu:3468,Sinh_ri:3469,Sinh_rii:3470,Sinh_lu:3471,Sinh_luu:3472,Sinh_e:3473,Sinh_ee:3474,Sinh_ai:3475,Sinh_o:3476,Sinh_oo:3477,Sinh_au:3478,Sinh_ka:3482,Sinh_kha:3483,Sinh_ga:3484,Sinh_gha:3485,Sinh_ng2:3486,Sinh_nga:3487,Sinh_ca:3488,Sinh_cha:3489,Sinh_ja:3490,Sinh_jha:3491,Sinh_nya:3492,Sinh_jnya:3493,Sinh_nja:3494,Sinh_tta:3495,Sinh_ttha:3496,Sinh_dda:3497,Sinh_ddha:3498,Sinh_nna:3499,Sinh_ndda:3500,Sinh_tha:3501,Sinh_thha:3502,Sinh_dha:3503,Sinh_dhha:3504,Sinh_na:3505,Sinh_ndha:3507,Sinh_pa:3508,Sinh_pha:3509,Sinh_ba:3510,Sinh_bha:3511,Sinh_ma:3512,Sinh_mba:3513,Sinh_ya:3514,Sinh_ra:3515,Sinh_la:3517,Sinh_va:3520,Sinh_sha:3521,Sinh_ssha:3522,Sinh_sa:3523,Sinh_ha:3524,Sinh_lla:3525,Sinh_fa:3526,Sinh_al:3530,Sinh_aa2:3535,Sinh_ae2:3536,Sinh_aee2:3537,Sinh_i2:3538,Sinh_ii2:3539,Sinh_u2:3540,Sinh_uu2:3542,Sinh_ru2:3544,Sinh_e2:3545,Sinh_ee2:3546,Sinh_ai2:3547,Sinh_o2:3548,Sinh_oo2:3549,Sinh_au2:3550,Sinh_lu2:3551,Sinh_ruu2:3570,Sinh_luu2:3571,Sinh_kunddaliya:3572},k=Object.keys(w).reduce((function(e,t){return Object.assign({},e,function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},String.fromCharCode(w[t]),t))}),{});function A(e){return e.charCodeAt(0)}function S(){return Math.round(96*window.devicePixelRatio)}function E(){return performance?Math.round(performance.now()):Date.now()}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10400,r="";if(e.subarray)for(var i=0,n=e.length;i<n;i+=t)r+=String.fromCharCode.apply(null,e.subarray(i,Math.min(i+t,n)));else for(var o=0,a=e.length;o<a;o+=t)r+=String.fromCharCode.apply(null,e.slice(o,Math.min(o+t,a)));return window.btoa(r)}function C(){for(var e=[],t=0;t<36;t++)e[t]=8===t||13===t||18===t||23===t?"-":"0123456789abcdef".substr(Math.floor(16*Math.random()),1);return e.join("")}var I=r(66887);function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function O(e,t,r,i,n,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(i,n)}function L(e){return function(){var t=this,r=arguments;return new Promise((function(i,n){var o=e.apply(t,r);function a(e){O(o,i,n,a,s,"next",e)}function s(e){O(o,i,n,a,s,"throw",e)}a(void 0)}))}}function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var R=function(e,t){var r,i,n,o,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]<n[3])){a.label=o[1];break}if(6===o[0]&&a.label<n[1]){a.label=n[1],n=o;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(o);break}n[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{r=n=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},B=function(){function e(t,r){var i=t.wid,n=t.canvas,o=t.context;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listening=!0,this.paintQueue=[],this.delay=50,this.drawCanvas=document.createElement("canvas"),this.drawCanvas.width=n.width,this.drawCanvas.height=n.height;var a=this.drawCanvas.getContext("2d");if(null==a)throw Error("unable to get draw context");this.drawContext=a,this.drawContext.imageSmoothingEnabled=!1,this.canvas=n,this.context=o,this.wid=i,this.send=r,this.push=this.push.bind(this),this.stop=this.stop.bind(this),this.render=this.render.bind(this),window.requestAnimationFrame(this.render)}var t=e.prototype;return t.render=function(){var e=this;return L((function(){var t,r,i,n,o,a,c,l,h,u,f,d,_,p,b,m;return R(this,(function(g){switch(g.label){case 0:return e.listening?0!==e.paintQueue.length?[3,2]:(e.delay=Math.min(1e3,1.3*e.delay),[4,(0,s.delay)(e.delay)]):[2];case 1:return g.sent(),window.requestAnimationFrame(e.render),[2];case 2:e.delay=25,g.label=3;case 3:t=M(e.paintQueue.shift(),2),r=t[0],i=t[1],n=E(),o=n-r,a=M(i,9),c=a[0],l=a[1],h=a[2],u=a[3],f=a[4],d=a[5],_=a[6],p=a[7],b=(b=a[8])||{},g.label=4;case 4:return g.trys.push([4,6,,7]),[4,e.paint({x:c,y:l,w:h,h:u,coding:f,data:d,sequence:_,rowstride:p,options:b})];case 5:return g.sent(),e.send("damage-sequence",_,e.wid,h,u,o,""),[3,7];case 6:return m=g.sent(),console.warn("renderer error --",m),e.send("damage-sequence",_,e.wid,h,u,-1,""),[3,7];case 7:return e.set_size(),e.copy_to_screen(),window.requestAnimationFrame(e.render),[2]}}))}))()},t.push=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.paintQueue.push([E(),t])},t.stop=function(){this.listening=!1},t.paint=function(e){var t=this;return L((function(){var r,i;return R(this,(function(n){switch(n.label){case 0:switch(r=e.coding,(i=e.options).scaled_size&&(e.w=i.scaled_size[0],e.h=i.scaled_size[1]),r){case"jpeg":case"png":case"webp":return[3,1];case"rgb32":return[3,3];case"mpeg1":return[3,4];case"h264":return[3,5];case"h264+mp4":case"vp8+webm":case"mpeg4+mp4":return[3,6];case"scroll":return[3,7]}return[3,8];case 1:return[4,t.render_raw_image(e)];case 2:return n.sent(),[3,9];case 3:return t.render_rgb_image(e),[3,9];case 4:case 5:case 6:return console.warn("Skipping frame using",r),[3,9];case 7:return t.render_scroll(e),[3,9];case 8:console.warn("Skipping frame using *unknown* coding",r),n.label=9;case 9:return[2]}}))}))()},t.set_size=function(){this.canvas.width==this.drawCanvas.width&&this.canvas.height==this.drawCanvas.height||(this.canvas.width=this.drawCanvas.width,this.canvas.height=this.drawCanvas.height)},t.copy_to_screen=function(){this.context.drawImage(this.drawCanvas,0,0)},t.render_raw_image=function(e){var t=e.x,r=e.y,i=e.coding,n=e.data,o=this;return L((function(){var e,a;return R(this,(function(s){switch(s.label){case 0:return e=x(n),a=new Image,[4,new Promise((function(t,r){a.onload=t,a.onerror=r,a.src="data:image/".concat(i,";base64,").concat(e)}))];case 1:if(s.sent(),a.width<=0||a.height<=0)throw Error("Invalid image size ".concat(a.width,"x").concat(a.height));return o.drawContext.drawImage(a,t,r),[2]}}))}))()},t.render_rgb_image=function(e){var t=e.x,r=e.y,i=e.w,n=e.h,o=e.data,a=e.options,s=this.drawContext.createImageData(i,n);if(a.zlib>0)o=(0,I.inflateSync)(o);else if(a.lz4>0){var c=function(e){var t=e.subarray(0,4),r=t[0]|t[1]<<8|t[2]<<16|t[3]<<24,i=new Uint8Array(r);return{uncompressedSize:window.lz4.decodeBlock(e,i,4),inflated:i}}(o),l=c.uncompressedSize;o=c.inflated.slice(0,l)}if(o.length>s.data.length)throw Error("render_rgb_image: Data size mismatch");s.data.set(o),this.drawContext.putImageData(s,t,r)},t.render_scroll=function(e){for(var t=e.data,r=0;r<t.length;r++){var i=M(t[r],6),n=i[0],o=i[1],a=i[2],s=i[3],c=i[4],l=i[5];this.drawContext.drawImage(this.canvas,n,o,a,s,n+c,o+l,a,s)}},e}();function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function j(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?U(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var P=4e3,D=3e3,z=function(){function e(t){var r=t.parent,i=t.wid,n=t.x,o=t.y,a=t.w,s=t.h,c=t.metadata,l=t.properties,h=t.send,u=t.is_overlay;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.is_overlay=!1,this.scale=1,this.parent=r,this.is_overlay=u,this.send=h,this.canvas=document.createElement("canvas"),this.jq_canvas=$(this.canvas),null==this.parent&&this.jq_canvas.css({"max-width":"100%","max-height":"100%"}),this.w=this.canvas.width=a,this.h=this.canvas.height=s,this.wid=i,this.x=n,this.y=o,this.properties=l,this.metadata=c,r&&c&&c["transient-for"]&&c["window-type"]&&"DIALOG"===c["window-type"][0]&&r.close_on_click(i),this.canvas.wid=i;var f=this.canvas.getContext("2d");if(!f)throw Error("unable to get 2d canvas context");this.context=f,this.renderer=new B({wid:this.wid,canvas:this.canvas,context:this.context},h)}var t=e.prototype;return t.close_on_click=function(e){void 0===this._close_on_click?this._close_on_click=new Set([e]):this._close_on_click.add(e)},t.do_close_on_click=function(){if(void 0!==this._close_on_click){var e=!0,t=!1,r=void 0;try{for(var i,n=this._close_on_click[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;this.send("close-window",o)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}delete this._close_on_click}},t.draw=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(i=this.renderer).push.apply(i,j(t))},t.updateMetadata=function(e){Object.assign(this.metadata,e)},t.destroy=function(){void 0!==this.canvas&&(this.renderer.stop(),this.jq_canvas.remove(),(0,c.close)(this))},t.updateGeometry=function(e,t,r){if(null!=this.renderer){this.renderer.drawCanvas.width!=e&&(this.renderer.drawCanvas.width=e),this.renderer.drawCanvas.height!=t&&(this.renderer.drawCanvas.height=t);var i=this.metadata["size-constraints"],n=!(i&&i["maximum-size"]);null==this.parent&&n?this.jq_canvas.css("width","100%"):(this.jq_canvas.css("width",e/r),this.jq_canvas.css("left",this.x/r)),null==this.parent&&n?this.jq_canvas.css("height","100%"):(this.jq_canvas.css("height",t/r),this.jq_canvas.css("top",this.y/r))}},t.rescale=function(e,t,r){if(null!=this.renderer){this.rescale_params={scale:e,width:t,height:r};var i=Math.round(t*e),n=Math.round(r*e),o=this.metadata["size-constraints"];if(null!=o){var a=o["minimum-size"];null!=a&&(i<a[0]&&(i=a[0]),n<a[1]&&(n=a[1]));var s=o["maximum-size"];null!=s&&(i>s[0]&&(i=s[0]),n>s[1]&&(n=s[1]))}if(n>D&&(n=D),i>P&&(i=P),n<10&&(n=10),i<10&&(i=10),this.updateGeometry(i,n,e),this.scale=e,this.w=i,this.h=n,!this.is_overlay&&null!=this.parent){var c=this.parent;this.x=Math.round(c.x+(c.w-this.w)/2),this.y=Math.round(c.y+(c.h-this.h)/2)}this.is_overlay||this.send("configure-window",this.wid,this.x,this.y,this.w,this.h,this.properties)}},e}();function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function N(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?G(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var K={Win:{type:"win32",name:"Microsoft Windows"},Mac:{type:"darwin",name:"Mac OSX"},Linux:{type:"linux",name:"Linux"},X11:{type:"posix",name:"Posix"}};function q(e,t){var r,i,n,o,a=(r=navigator.appVersion,i=navigator.oscpu,n=navigator.cpuClass,o=Object.keys(K).find((function(e){return r.includes(e)})),Object.assign({type:"unknown",name:"unknown",processor:i||n||"unknown",platform:r},o?K[o]:{})),s={name:"Chrome",agent:navigator.userAgent},c=function(e){var t,r,i,n,o,a=Object.keys(g).reduce((function(e,t){return N(e).concat([[parseInt(t,10),g[t],parseInt(t,10),0,0]])}),[]);return{share:e.share,steal:e.steal,windows:!0,"file-transfer":e.transfer,printing:e.printing,"file-size-limit":10,auto_refresh_delay:500,randr_notify:!0,raw_window_icons:!0,cursors:!0,bell:e.bell,system_tray:!0,"server-window-resize":!0,named_cursors:!1,"notify-startup-complete":!0,"window.raise":!0,"window.initiate-moveresize":!0,"metadata.supported":["above","below","title","size-hints","class-instance","transient-for","window-type","decorations","override-redirect","modal"],"sound.receive":!1,"sound.send":!1,"sound.server_driven":!0,"sound.bundle-metadata":!0,keyboard:e.keyboard,xkbmap_layout:e.xkbmap_layout||"us",xkbmap_keycodes:a,xkbmap_print:"",xkbmap_query:"",desktop_size:e.screen,desktop_mode_size:e.screen,screen_sizes:(t=e.screen[0],r=e.screen[1],i=e.dpi,n=Math.round(25.4*t/i),o=Math.round(25.4*r/i),[["HTML",t,r,n,o,[["Canvas",0,0,t,r,n,o]],0,0,t,r]]),dpi:e.dpi,clipboard_enabled:e.clipboard,"clipboard.want_targets":!0,"clipboard.greedy":!0,"clipboard.selections":["CLIPBOARD","PRIMARY"],notifications:e.notifications,"notifications.close":!0,"notifications.actions":!0}}(e),l=function(e,t){var r=["hmac","hmac+md5","xor"].concat(N(Object.keys(d.md.algorithms).map((function(e){return"hmac+".concat(e)})))),i=["jpeg","png","rgb","rgb32"];(function(){try{var e=document.createElement("canvas");if(e.getContext("2d"))return 0==e.toDataURL("image/webp").indexOf("data:image/webp")}catch(e){console.warn(e)}return!1})()&&i.push("webp");var n,o,a=e.image_codecs.length>0?e.image_codecs:i;return{digest:r,"salt-digest":r,"generic-rgb-encodings":!0,"sound.decoders":e.audio_codecs.length>0?e.audio_codecs:t,encodings:a,"encoding.generic":!0,"encoding.rgb24zlib":!0,"encoding.rgb_zlib":!0,"encoding.icons.max_size":[30,30],"encodings.core":a,"encodings.rgb_formats":["RGBX","RGBA"],"encodings.window-icon":["png"],"encodings.cursor":["png"],"encoding.flush":!0,"encoding.transparency":!0,"encoding.client_options":!0,"encoding.csc_atoms":!0,"encoding.scrolling":!0,"encoding.color-gamut":(o={rec2020:"(color-gamut: rec2020)",P3:"(color-gamut: p3)",srgb:"(color-gamut: srgb)"},"function"==typeof window.matchMedia&&(n=Object.keys(o).find((function(e){return window.matchMedia(o[e]).matches}))),n||""),"encoding.video_scaling":!0,"encoding.video_max_size":[1024,768],"encoding.eos":!0,"encoding.full_csc_modes":{mpeg1:["YUV420P"],h264:["YUV420P"],"mpeg4+mp4":["YUV420P"],"h264+mp4":["YUV420P"],"vp8+webm":["YUV420P"],webp:["BGRX","BGRA"]},"encoding.h264.YUV420P.profile":"baseline","encoding.h264.YUV420P.level":"2.1","encoding.h264.cabac":!1,"encoding.h264.deblocking-filter":!1,"encoding.h264.fast-decode":!0,"encoding.h264+mp4.YUV420P.profile":"main","encoding.h264+mp4.YUV420P.level":"3.0","encoding.h264.score-delta":-20,"encoding.h264+mp4.score-delta":50,"encoding.mpeg4+mp4.score-delta":50,"encoding.vp8+webm.score-delta":50}}(e,t);return Object.assign({version:"2.4",platform:a.type,"platform.name":a.name,"patform.processor":a.processor,"platform.platform":a.platform,"session-type":s.name,"session-type.full":s.agent,namespace:!0,client_type:"HTML5",username:e.username,uuid:e.uuid,argv:[window.location.href],zlib:e.zlib,lzi:!1,lz4:e.lz4,"encoding.rgb_lz4":!0,"lz4.js.version":window.lz4.version,compression_level:e.compression_level,rencode:!1,bencode:!0,yaml:!1,"open-url":!0},c,l,{})}var H={altKey:"alt",ctrlKey:"control",metaKey:"meta",shiftKey:"shift"},Y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.capsLock=!1,this.numLock=!1,this.altGr=!1,this.alt_modifier="",this.meta_modifier="",this.altgr_modifier="",this.control_modifier="",this.send=t}var t=e.prototype;return t.process_modifier_keycodes=function(e){for(var t in e)for(var r=e[t],i=0;i<r.length;i++)for(var n=r[i],o=0;o<n.length;o++)"Alt_L"==n[o]?this.alt_modifier=t:"Meta_L"==n[o]?this.meta_modifier=t:"ISO_Level3_Shift"==n[o]||"Mode_switch"==n[o]?this.altgr_modifier=t:"Control_L"==n[o]&&(this.control_modifier=t)},t.translateModifiers=function(e){var t=e.slice(),r=e.indexOf("alt");return r>=0&&(t[r]=this.alt_modifier),(r=e.indexOf("meta"))>=0&&(t[r]=this.meta_modifier),(r=e.indexOf("control"))>=0&&(t[r]=this.control_modifier),(r=e.indexOf("altgr"))>=0&&(t[r]=this.altgr_modifier),t},t.getEventModifiers=function(e){var t=[];for(var r in H)e[r]&&t.push(H[r]);return t},t.getModifiers=function(e){var t=this.getEventModifiers(e);return this.capsLock&&t.push("lock"),this.numLock&&t.push("numlock"),this.altGr&&t.push("altgr"),this.translateModifiers(t)},t.modifiers=function(e){return this.getModifiers(e)},t.process=function(e,t){if(function(e){return 86===(e.which||e.keyCode)&&(e.ctrlKey||e.metaKey)}(e))return!0;var r=t?t.wid:0,i=this.getEventModifiers(e),n=this.modifiers(e),o=n.includes("shift");if("keydown"===e.type||"keyup"===e.type){var a=e.which||e.keyCode;if(229===a)return!1;var s="keydown"===e.type;144===a&&s&&(this.numLock=!this.numLock);var c=e.key||String.fromCharCode(a),l=e.code||"";return a>=96&&l!=c&&c in y?(l=y[c],this.numLock="0123456789.".includes(l)):l in v?l=v[l]:c in k?l=k[c]:a in g&&(l=g[a]),l.match("_L$")&&2===e.location&&(l=l.replace("_L","_R")),("AltGraph"===c||"Alt_R"===l&&m)&&(this.altGr=s,l="ISO_Level3_Shift",c="AltGraph"),"Alt"!==c||s||(this.altGr=!1),(this.capsLock&&o||!this.capsLock&&!o)&&(c=c.toLowerCase()),this.send("key-action",r,l,s,n,a,c,a,0),b&&s&&i.includes("meta")&&this.send("key-action",r,l,!1,n,a,c,a,0),!1}return"keypress"===e.type&&(this.capsLock=function(e,t){var r=e.which||e.keyCode;return!!(r>=97&&r<=122&&t)||r>=65&&r<=90&&!t}(e,o),!0)},e}(),F=function(){for(var e=document.createElement("div"),t=0,r=["wheel","mousewheel","DOMMouseScroll"];t<r.length;t++){var i=r[t],n="on".concat(i);if(e.setAttribute(n,"return;"),"function"==typeof e[n])return i}return console.warn("Unable to determine wheel event name"),"broken-mousewheel"}();var W,Z=function(){function e(t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.wheel_delta_x=0,this.wheel_delta_y=0,this.send=t,this.keyboard=r,this.findSurface=i}var t=e.prototype;return t.process=function(e){if(null!=e.clientX&&null!=e.clientY){var t=document.elementFromPoint(e.clientX,e.clientY);if(t){var r=t.wid;if(void 0!==r){var i=this.findSurface(r);if(void 0!==i){var n=this.keyboard.modifiers(e),o=function(e,t){var r=t.canvas.getBoundingClientRect(),i=r.top,n=r.left,o=r.bottom,a=r.right;if(!(e.clientX<n||e.clientX>=a||e.clientY<i||e.clientY>=o)&&a!==n&&i!==o){var s=Math.round(t.canvas.width*((e.clientX-n)/(a-n))+t.x),c=Math.round(t.canvas.height*((e.clientY-i)/(o-i))+t.y),l=function(e){var t=e.which?Math.max(0,e.which):e.button?Math.max(0,e.button)+1:0;return 4===t?t=8:5===t&&(t=9),t}(e);return{x:s,y:c,button:l,buttons:[]}}}(e,i);if(null!=o){var a=o.x,s=o.y,c=o.button,l=o.buttons;switch(e.type){case"mousemove":this.send("pointer-position",r,[a,s],n,l);break;case"mousedown":case"mouseup":var h="mousedown"===e.type;i.do_close_on_click(),this.send("button-action",r,c,h,[a,s],n,l);break;case F:return void this.do_window_mouse_scroll({ev:e,wid:r,x:a,y:s,buttons:l,modifiers:n})}return i}}else console.warn("process mouse -- weird, we clicked on surface ".concat(r," but can't find it"))}}}},t.do_window_mouse_scroll=function(e){var t=e.ev,r=e.wid,i=e.x,n=e.y,o=e.buttons,a=e.modifiers,s=function(e){var t=0,r=0,i=0,n=0;return"detail"in(e=e.originalEvent)&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),i=10*t,n=10*r,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||n)&&e.deltaMode&&(1==e.deltaMode?(i*=40,n*=40):(i*=800,n*=800)),i&&!t&&(t=i<1?-1:1),n&&!r&&(r=n<1?-1:1),{spinX:t,spinY:r,pixelX:i,pixelY:n,deltaMode:e.deltaMode||0}}(t),c=120,l=Math.min(1200,s.pixelX),h=Math.min(1200,s.pixelY),u=Math.abs(l),f=Math.abs(h);u>=40&&u<=160?this.wheel_delta_x=l>0?c:-120:this.wheel_delta_x+=l,f>=40&&f<=160?this.wheel_delta_y=h>0?c:-120:this.wheel_delta_y+=h;for(var d=Math.abs(this.wheel_delta_x),_=Math.abs(this.wheel_delta_y),p=this.wheel_delta_x>=0?6:7,b=this.wheel_delta_y>=0?5:4;d>=c;)d-=c,this.send("button-action",r,p,!0,[i,n],a,o),this.send("button-action",r,p,!1,[i,n],a,o);for(;_>=c;)_-=c,this.send("button-action",r,b,!0,[i,n],a,o),this.send("button-action",r,b,!1,[i,n],a,o);this.wheel_delta_x=this.wheel_delta_x>=0?d:-d,this.wheel_delta_y=this.wheel_delta_y>=0?_:-_},e}();function X(e){if(null==e)throw Error("invalid: cannot bencode null");switch(te(e)){case"string":return(t=e).length+":"+t;case"number":return re(e);case"list":return function(e){var t;for(var r in t="l",e)t+=X(e[r]);return t+"e"}(e);case"dictionary":return function(e){var t;for(var r in t="d",e)t+=X(r)+X(e[r]);return t+"e"}(e);case"boolean":return re(e?1:0);default:throw Error("invalid object type in source: ".concat(te(e)))}var t}function J(e){"string"!=typeof e&&(e=function(e){for(var t="",r=10400,i=e.slice,n=0,o=e.length;n<o;n+=r)t+=i?String.fromCharCode.apply(null,e.slice(n,Math.min(n+r,o))):String.fromCharCode.apply(null,e.subarray(n,Math.min(n+r,o)));return t}(e));var t=V(e);return null==t?null:t[0]}function V(e){switch(e.charAt(0)){case